openai-api-mock 0.2.0 → 0.2.2
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.
- package/README.md +107 -47
- package/dist/index.cjs +331 -353
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +331 -353
- package/dist/index.js.map +1 -1
- package/index.d.ts +10 -3
- package/package.json +9 -5
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const nock = require("nock");
|
|
4
4
|
const node_stream = require("node:stream");
|
|
5
|
-
var e = [{ name: "Aegean Airlines", iataCode: "A3" }, { name: "Aeroflot", iataCode: "SU" }, { name: "Aerolineas Argentinas", iataCode: "AR" }, { name: "Aeromexico", iataCode: "AM" }, { name: "Air Algerie", iataCode: "AH" }, { name: "Air Arabia", iataCode: "G9" }, { name: "Air Canada", iataCode: "AC" }, { name: "Air China", iataCode: "CA" }, { name: "Air Europa", iataCode: "UX" }, { name: "Air France", iataCode: "AF" }, { name: "Air India", iataCode: "AI" }, { name: "Air Mauritius", iataCode: "MK" }, { name: "Air New Zealand", iataCode: "NZ" }, { name: "Air Niugini", iataCode: "PX" }, { name: "Air Tahiti", iataCode: "VT" }, { name: "Air Tahiti Nui", iataCode: "TN" }, { name: "Air Transat", iataCode: "TS" }, { name: "AirAsia X", iataCode: "D7" }, { name: "AirAsia", iataCode: "AK" }, { name: "Aircalin", iataCode: "SB" }, { name: "Alaska Airlines", iataCode: "AS" }, { name: "Alitalia", iataCode: "AZ" }, { name: "All Nippon Airways", iataCode: "NH" }, { name: "Allegiant Air", iataCode: "G4" }, { name: "American Airlines", iataCode: "AA" }, { name: "Asiana Airlines", iataCode: "OZ" }, { name: "Avianca", iataCode: "AV" }, { name: "Azul Linhas Aereas Brasileiras", iataCode: "AD" }, { name: "Azur Air", iataCode: "ZF" }, { name: "Beijing Capital Airlines", iataCode: "JD" }, { name: "Boliviana de Aviacion", iataCode: "OB" }, { name: "British Airways", iataCode: "BA" }, { name: "Cathay Pacific", iataCode: "CX" }, { name: "Cebu Pacific Air", iataCode: "5J" }, { name: "China Airlines", iataCode: "CI" }, { name: "China Eastern Airlines", iataCode: "MU" }, { name: "China Southern Airlines", iataCode: "CZ" }, { name: "Condor", iataCode: "DE" }, { name: "Copa Airlines", iataCode: "CM" }, { name: "Delta Air Lines", iataCode: "DL" }, { name: "Easyfly", iataCode: "VE" }, { name: "EasyJet", iataCode: "U2" }, { name: "EcoJet", iataCode: "8J" }, { name: "Egyptair", iataCode: "MS" }, { name: "El Al", iataCode: "LY" }, { name: "Emirates Airlines", iataCode: "EK" }, { name: "Ethiopian Airlines", iataCode: "ET" }, { name: "Etihad Airways", iataCode: "EY" }, { name: "EVA Air", iataCode: "BR" }, { name: "Fiji Airways", iataCode: "FJ" }, { name: "Finnair", iataCode: "AY" }, { name: "Flybondi", iataCode: "FO" }, { name: "Flydubai", iataCode: "FZ" }, { name: "FlySafair", iataCode: "FA" }, { name: "Frontier Airlines", iataCode: "F9" }, { name: "Garuda Indonesia", iataCode: "GA" }, { name: "Go First", iataCode: "G8" }, { name: "Gol Linhas Aereas Inteligentes", iataCode: "G3" }, { name: "Hainan Airlines", iataCode: "HU" }, { name: "Hawaiian Airlines", iataCode: "HA" }, { name: "IndiGo Airlines", iataCode: "6E" }, { name: "Japan Airlines", iataCode: "JL" }, { name: "Jeju Air", iataCode: "7C" }, { name: "Jet2", iataCode: "LS" }, { name: "JetBlue Airways", iataCode: "B6" }, { name: "JetSMART", iataCode: "JA" }, { name: "Juneyao Airlines", iataCode: "HO" }, { name: "Kenya Airways", iataCode: "KQ" }, { name: "KLM Royal Dutch Airlines", iataCode: "KL" }, { name: "Korean Air", iataCode: "KE" }, { name: "Kulula.com", iataCode: "MN" }, { name: "LATAM Airlines", iataCode: "LA" }, { name: "Lion Air", iataCode: "JT" }, { name: "LOT Polish Airlines", iataCode: "LO" }, { name: "Lufthansa", iataCode: "LH" }, { name: "Libyan Airlines", iataCode: "LN" }, { name: "Linea Aerea Amaszonas", iataCode: "Z8" }, { name: "Malaysia Airlines", iataCode: "MH" }, { name: "Nordwind Airlines", iataCode: "N4" }, { name: "Norwegian Air Shuttle", iataCode: "DY" }, { name: "Oman Air", iataCode: "WY" }, { name: "Pakistan International Airlines", iataCode: "PK" }, { name: "Pegasus Airlines", iataCode: "PC" }, { name: "Philippine Airlines", iataCode: "PR" }, { name: "Qantas Group", iataCode: "QF" }, { name: "Qatar Airways", iataCode: "QR" }, { name: "Republic Airways", iataCode: "YX" }, { name: "Royal Air Maroc", iataCode: "AT" }, { name: "Ryanair", iataCode: "FR" }, { name: "S7 Airlines", iataCode: "S7" }, { name: "SAS", iataCode: "SK" }, { name: "Satena", iataCode: "9R" }, { name: "Saudia", iataCode: "SV" }, { name: "Shandong Airlines", iataCode: "SC" }, { name: "Sichuan Airlines", iataCode: "3U" }, { name: "Singapore Airlines", iataCode: "SQ" }, { name: "Sky Airline", iataCode: "H2" }, { name: "SkyWest Airlines", iataCode: "OO" }, { name: "South African Airways", iataCode: "SA" }, { name: "Southwest Airlines", iataCode: "WN" }, { name: "SpiceJet", iataCode: "SG" }, { name: "Spirit Airlines", iataCode: "NK" }, { name: "Spring Airlines", iataCode: "
|
|
5
|
+
var e = [{ name: "Aegean Airlines", iataCode: "A3" }, { name: "Aeroflot", iataCode: "SU" }, { name: "Aerolineas Argentinas", iataCode: "AR" }, { name: "Aeromexico", iataCode: "AM" }, { name: "Air Algerie", iataCode: "AH" }, { name: "Air Arabia", iataCode: "G9" }, { name: "Air Canada", iataCode: "AC" }, { name: "Air China", iataCode: "CA" }, { name: "Air Europa", iataCode: "UX" }, { name: "Air France", iataCode: "AF" }, { name: "Air India", iataCode: "AI" }, { name: "Air Mauritius", iataCode: "MK" }, { name: "Air New Zealand", iataCode: "NZ" }, { name: "Air Niugini", iataCode: "PX" }, { name: "Air Tahiti", iataCode: "VT" }, { name: "Air Tahiti Nui", iataCode: "TN" }, { name: "Air Transat", iataCode: "TS" }, { name: "AirAsia X", iataCode: "D7" }, { name: "AirAsia", iataCode: "AK" }, { name: "Aircalin", iataCode: "SB" }, { name: "Alaska Airlines", iataCode: "AS" }, { name: "Alitalia", iataCode: "AZ" }, { name: "All Nippon Airways", iataCode: "NH" }, { name: "Allegiant Air", iataCode: "G4" }, { name: "American Airlines", iataCode: "AA" }, { name: "Asiana Airlines", iataCode: "OZ" }, { name: "Avianca", iataCode: "AV" }, { name: "Azul Linhas Aereas Brasileiras", iataCode: "AD" }, { name: "Azur Air", iataCode: "ZF" }, { name: "Beijing Capital Airlines", iataCode: "JD" }, { name: "Boliviana de Aviacion", iataCode: "OB" }, { name: "British Airways", iataCode: "BA" }, { name: "Cathay Pacific", iataCode: "CX" }, { name: "Cebu Pacific Air", iataCode: "5J" }, { name: "China Airlines", iataCode: "CI" }, { name: "China Eastern Airlines", iataCode: "MU" }, { name: "China Southern Airlines", iataCode: "CZ" }, { name: "Condor", iataCode: "DE" }, { name: "Copa Airlines", iataCode: "CM" }, { name: "Delta Air Lines", iataCode: "DL" }, { name: "Easyfly", iataCode: "VE" }, { name: "EasyJet", iataCode: "U2" }, { name: "EcoJet", iataCode: "8J" }, { name: "Egyptair", iataCode: "MS" }, { name: "El Al", iataCode: "LY" }, { name: "Emirates Airlines", iataCode: "EK" }, { name: "Ethiopian Airlines", iataCode: "ET" }, { name: "Etihad Airways", iataCode: "EY" }, { name: "EVA Air", iataCode: "BR" }, { name: "Fiji Airways", iataCode: "FJ" }, { name: "Finnair", iataCode: "AY" }, { name: "Flybondi", iataCode: "FO" }, { name: "Flydubai", iataCode: "FZ" }, { name: "FlySafair", iataCode: "FA" }, { name: "Frontier Airlines", iataCode: "F9" }, { name: "Garuda Indonesia", iataCode: "GA" }, { name: "Go First", iataCode: "G8" }, { name: "Gol Linhas Aereas Inteligentes", iataCode: "G3" }, { name: "Hainan Airlines", iataCode: "HU" }, { name: "Hawaiian Airlines", iataCode: "HA" }, { name: "IndiGo Airlines", iataCode: "6E" }, { name: "Japan Airlines", iataCode: "JL" }, { name: "Jeju Air", iataCode: "7C" }, { name: "Jet2", iataCode: "LS" }, { name: "JetBlue Airways", iataCode: "B6" }, { name: "JetSMART", iataCode: "JA" }, { name: "Juneyao Airlines", iataCode: "HO" }, { name: "Kenya Airways", iataCode: "KQ" }, { name: "KLM Royal Dutch Airlines", iataCode: "KL" }, { name: "Korean Air", iataCode: "KE" }, { name: "Kulula.com", iataCode: "MN" }, { name: "LATAM Airlines", iataCode: "LA" }, { name: "Lion Air", iataCode: "JT" }, { name: "LOT Polish Airlines", iataCode: "LO" }, { name: "Lufthansa", iataCode: "LH" }, { name: "Libyan Airlines", iataCode: "LN" }, { name: "Linea Aerea Amaszonas", iataCode: "Z8" }, { name: "Malaysia Airlines", iataCode: "MH" }, { name: "Nordwind Airlines", iataCode: "N4" }, { name: "Norwegian Air Shuttle", iataCode: "DY" }, { name: "Oman Air", iataCode: "WY" }, { name: "Pakistan International Airlines", iataCode: "PK" }, { name: "Pegasus Airlines", iataCode: "PC" }, { name: "Philippine Airlines", iataCode: "PR" }, { name: "Qantas Group", iataCode: "QF" }, { name: "Qatar Airways", iataCode: "QR" }, { name: "Republic Airways", iataCode: "YX" }, { name: "Royal Air Maroc", iataCode: "AT" }, { name: "Ryanair", iataCode: "FR" }, { name: "S7 Airlines", iataCode: "S7" }, { name: "SAS", iataCode: "SK" }, { name: "Satena", iataCode: "9R" }, { name: "Saudia", iataCode: "SV" }, { name: "Shandong Airlines", iataCode: "SC" }, { name: "Sichuan Airlines", iataCode: "3U" }, { name: "Singapore Airlines", iataCode: "SQ" }, { name: "Sky Airline", iataCode: "H2" }, { name: "SkyWest Airlines", iataCode: "OO" }, { name: "South African Airways", iataCode: "SA" }, { name: "Southwest Airlines", iataCode: "WN" }, { name: "SpiceJet", iataCode: "SG" }, { name: "Spirit Airlines", iataCode: "NK" }, { name: "Spring Airlines", iataCode: "9C" }, { name: "SriLankan Airlines", iataCode: "UL" }, { name: "Star Peru", iataCode: "2I" }, { name: "Sun Country Airlines", iataCode: "SY" }, { name: "SunExpress", iataCode: "XQ" }, { name: "TAP Air Portugal", iataCode: "TP" }, { name: "Thai AirAsia", iataCode: "FD" }, { name: "Thai Airways", iataCode: "TG" }, { name: "TUI Airways", iataCode: "BY" }, { name: "Tunisair", iataCode: "TU" }, { name: "Turkish Airlines", iataCode: "TK" }, { name: "Ukraine International", iataCode: "PS" }, { name: "United Airlines", iataCode: "UA" }, { name: "Ural Airlines", iataCode: "U6" }, { name: "VietJet Air", iataCode: "VJ" }, { name: "Vietnam Airlines", iataCode: "VN" }, { name: "Virgin Atlantic Airways", iataCode: "VS" }, { name: "Virgin Australia", iataCode: "VA" }, { name: "VivaAerobus", iataCode: "VB" }, { name: "VOEPASS Linhas Aereas", iataCode: "2Z" }, { name: "Volaris", iataCode: "Y4" }, { name: "WestJet", iataCode: "WS" }, { name: "Wingo", iataCode: "P5" }, { name: "Wizz Air", iataCode: "W6" }];
|
|
6
6
|
var a = [{ name: "Aerospatiale/BAC Concorde", iataTypeCode: "SSC" }, { name: "Airbus A300", iataTypeCode: "AB3" }, { name: "Airbus A310", iataTypeCode: "310" }, { name: "Airbus A310-200", iataTypeCode: "312" }, { name: "Airbus A310-300", iataTypeCode: "313" }, { name: "Airbus A318", iataTypeCode: "318" }, { name: "Airbus A319", iataTypeCode: "319" }, { name: "Airbus A319neo", iataTypeCode: "31N" }, { name: "Airbus A320", iataTypeCode: "320" }, { name: "Airbus A320neo", iataTypeCode: "32N" }, { name: "Airbus A321", iataTypeCode: "321" }, { name: "Airbus A321neo", iataTypeCode: "32Q" }, { name: "Airbus A330", iataTypeCode: "330" }, { name: "Airbus A330-200", iataTypeCode: "332" }, { name: "Airbus A330-300", iataTypeCode: "333" }, { name: "Airbus A330-800neo", iataTypeCode: "338" }, { name: "Airbus A330-900neo", iataTypeCode: "339" }, { name: "Airbus A340", iataTypeCode: "340" }, { name: "Airbus A340-200", iataTypeCode: "342" }, { name: "Airbus A340-300", iataTypeCode: "343" }, { name: "Airbus A340-500", iataTypeCode: "345" }, { name: "Airbus A340-600", iataTypeCode: "346" }, { name: "Airbus A350", iataTypeCode: "350" }, { name: "Airbus A350-900", iataTypeCode: "359" }, { name: "Airbus A350-1000", iataTypeCode: "351" }, { name: "Airbus A380", iataTypeCode: "380" }, { name: "Airbus A380-800", iataTypeCode: "388" }, { name: "Antonov An-12", iataTypeCode: "ANF" }, { name: "Antonov An-24", iataTypeCode: "AN4" }, { name: "Antonov An-26", iataTypeCode: "A26" }, { name: "Antonov An-28", iataTypeCode: "A28" }, { name: "Antonov An-30", iataTypeCode: "A30" }, { name: "Antonov An-32", iataTypeCode: "A32" }, { name: "Antonov An-72", iataTypeCode: "AN7" }, { name: "Antonov An-124 Ruslan", iataTypeCode: "A4F" }, { name: "Antonov An-140", iataTypeCode: "A40" }, { name: "Antonov An-148", iataTypeCode: "A81" }, { name: "Antonov An-158", iataTypeCode: "A58" }, { name: "Antonov An-225 Mriya", iataTypeCode: "A5F" }, { name: "Boeing 707", iataTypeCode: "703" }, { name: "Boeing 717", iataTypeCode: "717" }, { name: "Boeing 720B", iataTypeCode: "B72" }, { name: "Boeing 727", iataTypeCode: "727" }, { name: "Boeing 727-100", iataTypeCode: "721" }, { name: "Boeing 727-200", iataTypeCode: "722" }, { name: "Boeing 737 MAX 7", iataTypeCode: "7M7" }, { name: "Boeing 737 MAX 8", iataTypeCode: "7M8" }, { name: "Boeing 737 MAX 9", iataTypeCode: "7M9" }, { name: "Boeing 737 MAX 10", iataTypeCode: "7MJ" }, { name: "Boeing 737", iataTypeCode: "737" }, { name: "Boeing 737-100", iataTypeCode: "731" }, { name: "Boeing 737-200", iataTypeCode: "732" }, { name: "Boeing 737-300", iataTypeCode: "733" }, { name: "Boeing 737-400", iataTypeCode: "734" }, { name: "Boeing 737-500", iataTypeCode: "735" }, { name: "Boeing 737-600", iataTypeCode: "736" }, { name: "Boeing 737-700", iataTypeCode: "73G" }, { name: "Boeing 737-800", iataTypeCode: "738" }, { name: "Boeing 737-900", iataTypeCode: "739" }, { name: "Boeing 747", iataTypeCode: "747" }, { name: "Boeing 747-100", iataTypeCode: "741" }, { name: "Boeing 747-200", iataTypeCode: "742" }, { name: "Boeing 747-300", iataTypeCode: "743" }, { name: "Boeing 747-400", iataTypeCode: "744" }, { name: "Boeing 747-400D", iataTypeCode: "74J" }, { name: "Boeing 747-8", iataTypeCode: "748" }, { name: "Boeing 747SP", iataTypeCode: "74L" }, { name: "Boeing 747SR", iataTypeCode: "74R" }, { name: "Boeing 757", iataTypeCode: "757" }, { name: "Boeing 757-200", iataTypeCode: "752" }, { name: "Boeing 757-300", iataTypeCode: "753" }, { name: "Boeing 767", iataTypeCode: "767" }, { name: "Boeing 767-200", iataTypeCode: "762" }, { name: "Boeing 767-300", iataTypeCode: "763" }, { name: "Boeing 767-400", iataTypeCode: "764" }, { name: "Boeing 777", iataTypeCode: "777" }, { name: "Boeing 777-200", iataTypeCode: "772" }, { name: "Boeing 777-200LR", iataTypeCode: "77L" }, { name: "Boeing 777-300", iataTypeCode: "773" }, { name: "Boeing 777-300ER", iataTypeCode: "77W" }, { name: "Boeing 787", iataTypeCode: "787" }, { name: "Boeing 787-8", iataTypeCode: "788" }, { name: "Boeing 787-9", iataTypeCode: "789" }, { name: "Boeing 787-10", iataTypeCode: "781" }, { name: "Canadair Challenger", iataTypeCode: "CCJ" }, { name: "Canadair CL-44", iataTypeCode: "CL4" }, { name: "Canadair Regional Jet 100", iataTypeCode: "CR1" }, { name: "Canadair Regional Jet 200", iataTypeCode: "CR2" }, { name: "Canadair Regional Jet 700", iataTypeCode: "CR7" }, { name: "Canadair Regional Jet 705", iataTypeCode: "CRA" }, { name: "Canadair Regional Jet 900", iataTypeCode: "CR9" }, { name: "Canadair Regional Jet 1000", iataTypeCode: "CRK" }, { name: "De Havilland Canada DHC-2 Beaver", iataTypeCode: "DHP" }, { name: "De Havilland Canada DHC-2 Turbo-Beaver", iataTypeCode: "DHR" }, { name: "De Havilland Canada DHC-3 Otter", iataTypeCode: "DHL" }, { name: "De Havilland Canada DHC-4 Caribou", iataTypeCode: "DHC" }, { name: "De Havilland Canada DHC-6 Twin Otter", iataTypeCode: "DHT" }, { name: "De Havilland Canada DHC-7 Dash 7", iataTypeCode: "DH7" }, { name: "De Havilland Canada DHC-8-100 Dash 8 / 8Q", iataTypeCode: "DH1" }, { name: "De Havilland Canada DHC-8-200 Dash 8 / 8Q", iataTypeCode: "DH2" }, { name: "De Havilland Canada DHC-8-300 Dash 8 / 8Q", iataTypeCode: "DH3" }, { name: "De Havilland Canada DHC-8-400 Dash 8Q", iataTypeCode: "DH4" }, { name: "De Havilland DH.104 Dove", iataTypeCode: "DHD" }, { name: "De Havilland DH.114 Heron", iataTypeCode: "DHH" }, { name: "Douglas DC-3", iataTypeCode: "D3F" }, { name: "Douglas DC-6", iataTypeCode: "D6F" }, { name: "Douglas DC-8-50", iataTypeCode: "D8T" }, { name: "Douglas DC-8-62", iataTypeCode: "D8L" }, { name: "Douglas DC-8-72", iataTypeCode: "D8Q" }, { name: "Douglas DC-9-10", iataTypeCode: "D91" }, { name: "Douglas DC-9-20", iataTypeCode: "D92" }, { name: "Douglas DC-9-30", iataTypeCode: "D93" }, { name: "Douglas DC-9-40", iataTypeCode: "D94" }, { name: "Douglas DC-9-50", iataTypeCode: "D95" }, { name: "Douglas DC-10", iataTypeCode: "D10" }, { name: "Douglas DC-10-10", iataTypeCode: "D1X" }, { name: "Douglas DC-10-30", iataTypeCode: "D1Y" }, { name: "Embraer 170", iataTypeCode: "E70" }, { name: "Embraer 175", iataTypeCode: "E75" }, { name: "Embraer 190", iataTypeCode: "E90" }, { name: "Embraer 195", iataTypeCode: "E95" }, { name: "Embraer E190-E2", iataTypeCode: "290" }, { name: "Embraer E195-E2", iataTypeCode: "295" }, { name: "Embraer EMB.110 Bandeirante", iataTypeCode: "EMB" }, { name: "Embraer EMB.120 Brasilia", iataTypeCode: "EM2" }, { name: "Embraer Legacy 600", iataTypeCode: "ER3" }, { name: "Embraer Phenom 100", iataTypeCode: "EP1" }, { name: "Embraer Phenom 300", iataTypeCode: "EP3" }, { name: "Embraer RJ135", iataTypeCode: "ER3" }, { name: "Embraer RJ140", iataTypeCode: "ERD" }, { name: "Embraer RJ145 Amazon", iataTypeCode: "ER4" }, { name: "Ilyushin IL18", iataTypeCode: "IL8" }, { name: "Ilyushin IL62", iataTypeCode: "IL6" }, { name: "Ilyushin IL76", iataTypeCode: "IL7" }, { name: "Ilyushin IL86", iataTypeCode: "ILW" }, { name: "Ilyushin IL96-300", iataTypeCode: "I93" }, { name: "Ilyushin IL114", iataTypeCode: "I14" }, { name: "Lockheed L-182 / 282 / 382 (L-100) Hercules", iataTypeCode: "LOH" }, { name: "Lockheed L-188 Electra", iataTypeCode: "LOE" }, { name: "Lockheed L-1011 Tristar", iataTypeCode: "L10" }, { name: "Lockheed L-1049 Super Constellation", iataTypeCode: "L49" }, { name: "McDonnell Douglas MD11", iataTypeCode: "M11" }, { name: "McDonnell Douglas MD80", iataTypeCode: "M80" }, { name: "McDonnell Douglas MD81", iataTypeCode: "M81" }, { name: "McDonnell Douglas MD82", iataTypeCode: "M82" }, { name: "McDonnell Douglas MD83", iataTypeCode: "M83" }, { name: "McDonnell Douglas MD87", iataTypeCode: "M87" }, { name: "McDonnell Douglas MD88", iataTypeCode: "M88" }, { name: "McDonnell Douglas MD90", iataTypeCode: "M90" }, { name: "Sukhoi Superjet 100-95", iataTypeCode: "SU9" }, { name: "Tupolev Tu-134", iataTypeCode: "TU3" }, { name: "Tupolev Tu-154", iataTypeCode: "TU5" }, { name: "Tupolev Tu-204", iataTypeCode: "T20" }, { name: "Yakovlev Yak-40", iataTypeCode: "YK4" }, { name: "Yakovlev Yak-42", iataTypeCode: "YK2" }];
|
|
7
7
|
var r = [{ name: "Adelaide International Airport", iataCode: "ADL" }, { name: "Adolfo Suarez Madrid-Barajas Airport", iataCode: "MAD" }, { name: "Aeroparque Jorge Newbery Airport", iataCode: "AEP" }, { name: "Afonso Pena International Airport", iataCode: "CWB" }, { name: "Alfonso Bonilla Aragon International Airport", iataCode: "CLO" }, { name: "Amsterdam Airport Schiphol", iataCode: "AMS" }, { name: "Arturo Merino Benitez International Airport", iataCode: "SCL" }, { name: "Auckland International Airport", iataCode: "AKL" }, { name: "Beijing Capital International Airport", iataCode: "PEK" }, { name: "Belem Val de Cans International Airport", iataCode: "BEL" }, { name: "Belo Horizonte Tancredo Neves International Airport", iataCode: "CNF" }, { name: "Berlin-Tegel Airport", iataCode: "TXL" }, { name: "Bole International Airport", iataCode: "ADD" }, { name: "Brasilia-Presidente Juscelino Kubitschek International Airport", iataCode: "BSB" }, { name: "Brisbane International Airport", iataCode: "BNE" }, { name: "Brussels Airport", iataCode: "BRU" }, { name: "Cairns Airport", iataCode: "CNS" }, { name: "Cairo International Airport", iataCode: "CAI" }, { name: "Canberra Airport", iataCode: "CBR" }, { name: "Capetown International Airport", iataCode: "CPT" }, { name: "Charles de Gaulle International Airport", iataCode: "CDG" }, { name: "Charlotte Douglas International Airport", iataCode: "CLT" }, { name: "Chengdu Shuangliu International Airport", iataCode: "CTU" }, { name: "Chhatrapati Shivaji International Airport", iataCode: "BOM" }, { name: "Chicago O'Hare International Airport", iataCode: "ORD" }, { name: "Chongqing Jiangbei International Airport", iataCode: "CKG" }, { name: "Christchurch International Airport", iataCode: "CHC" }, { name: "Copenhagen Kastrup Airport", iataCode: "CPH" }, { name: "Dallas Fort Worth International Airport", iataCode: "DFW" }, { name: "Daniel K. Inouye International Airport", iataCode: "HNL" }, { name: "Denver International Airport", iataCode: "DEN" }, { name: "Don Mueang International Airport", iataCode: "DMK" }, { name: "Dubai International Airport", iataCode: "DXB" }, { name: "Dublin Airport", iataCode: "DUB" }, { name: "Dusseldorf Airport", iataCode: "DUS" }, { name: "El Dorado International Airport", iataCode: "BOG" }, { name: "Eleftherios Venizelos International Airport", iataCode: "ATH" }, { name: "Faa'a International Airport", iataCode: "PPT" }, { name: "Fort Lauderdale Hollywood International Airport", iataCode: "FLL" }, { name: "Fortaleza Pinto Martins International Airport", iataCode: "FOR" }, { name: "Frankfurt am Main Airport", iataCode: "FRA" }, { name: "George Bush Intercontinental Houston Airport", iataCode: "IAH" }, { name: "Gold Coast Airport", iataCode: "OOL" }, { name: "Guarulhos - Governador Andre Franco Montoro International Airport", iataCode: "GRU" }, { name: "Hartsfield-Jackson Atlanta International Airport", iataCode: "ATL" }, { name: "Helsinki Vantaa Airport", iataCode: "HEL" }, { name: "Hobart International Airport", iataCode: "HBA" }, { name: "Hong Kong International Airport", iataCode: "HKG" }, { name: "Houari Boumediene Airport", iataCode: "ALG" }, { name: "Hurgada International Airport", iataCode: "HRG" }, { name: "Incheon International Airport", iataCode: "ICN" }, { name: "Indira Gandhi International Airport", iataCode: "DEL" }, { name: "Istanbul Airport", iataCode: "IST" }, { name: "Jacksons International Airport", iataCode: "POM" }, { name: "Jeju International Airport", iataCode: "CJU" }, { name: "John F Kennedy International Airport", iataCode: "JFK" }, { name: "Jorge Chavez International Airport", iataCode: "LIM" }, { name: "Jose Maria Cordova International Airport", iataCode: "MDE" }, { name: "Josep Tarradellas Barcelona-El Prat Airport", iataCode: "BCN" }, { name: "Kahului Airport", iataCode: "OGG" }, { name: "King Abdulaziz International Airport", iataCode: "JED" }, { name: "Kuala Lumpur International Airport", iataCode: "KUL" }, { name: "Kunming Changshui International Airport", iataCode: "KMG" }, { name: "La Tontouta International Airport", iataCode: "NOU" }, { name: "Leonardo da Vinci-Fiumicino Airport", iataCode: "FCO" }, { name: "London Heathrow Airport", iataCode: "LHR" }, { name: "Los Angeles International Airport", iataCode: "LAX" }, { name: "McCarran International Airport", iataCode: "LAS" }, { name: "Melbourne International Airport", iataCode: "MEL" }, { name: "Mexico City International Airport", iataCode: "MEX" }, { name: "Miami International Airport", iataCode: "MIA" }, { name: "Ministro Pistarini International Airport", iataCode: "EZE" }, { name: "Minneapolis-St Paul International/Wold-Chamberlain Airport", iataCode: "MSP" }, { name: "Mohammed V International Airport", iataCode: "CMN" }, { name: "Moscow Domodedovo Airport", iataCode: "DME" }, { name: "Munich Airport", iataCode: "MUC" }, { name: "Murtala Muhammed International Airport", iataCode: "LOS" }, { name: "Nadi International Airport", iataCode: "NAN" }, { name: "Nairobi Jomo Kenyatta International Airport", iataCode: "NBO" }, { name: "Narita International Airport", iataCode: "NRT" }, { name: "Newark Liberty International Airport", iataCode: "EWR" }, { name: "Ninoy Aquino International Airport", iataCode: "MNL" }, { name: "Noumea Magenta Airport", iataCode: "GEA" }, { name: "O. R. Tambo International Airport", iataCode: "JNB" }, { name: "Orlando International Airport", iataCode: "MCO" }, { name: "Oslo Lufthavn", iataCode: "OSL" }, { name: "Perth Airport", iataCode: "PER" }, { name: "Phoenix Sky Harbor International Airport", iataCode: "PHX" }, { name: "Recife Guararapes-Gilberto Freyre International Airport", iataCode: "REC" }, { name: "Rio de Janeiro Galeao International Airport", iataCode: "GIG" }, { name: "Salgado Filho International Airport", iataCode: "POA" }, { name: "Salvador Deputado Luis Eduardo Magalhaes International Airport", iataCode: "SSA" }, { name: "San Francisco International Airport", iataCode: "SFO" }, { name: "Santos Dumont Airport", iataCode: "SDU" }, { name: "Sao Paulo-Congonhas Airport", iataCode: "CGH" }, { name: "Seattle Tacoma International Airport", iataCode: "SEA" }, { name: "Shanghai Hongqiao International Airport", iataCode: "SHA" }, { name: "Shanghai Pudong International Airport", iataCode: "PVG" }, { name: "Shenzhen Bao'an International Airport", iataCode: "SZX" }, { name: "Sheremetyevo International Airport", iataCode: "SVO" }, { name: "Singapore Changi Airport", iataCode: "SIN" }, { name: "Soekarno-Hatta International Airport", iataCode: "CGK" }, { name: 'Stockholm-Arlanda Airport"', iataCode: "ARN" }, { name: "Suvarnabhumi Airport", iataCode: "BKK" }, { name: "Sydney Kingsford Smith International Airport", iataCode: "SYD" }, { name: "Taiwan Taoyuan International Airport", iataCode: "TPE" }, { name: "Tan Son Nhat International Airport", iataCode: "SGN" }, { name: "Tokyo Haneda International Airport", iataCode: "HND" }, { name: "Toronto Pearson International Airport", iataCode: "YYZ" }, { name: "Tunis Carthage International Airport", iataCode: "TUN" }, { name: "Vancouver International Airport", iataCode: "YVR" }, { name: "Vienna International Airport", iataCode: "VIE" }, { name: "Viracopos International Airport", iataCode: "VCP" }, { name: "Vnukovo International Airport", iataCode: "VKO" }, { name: "Wellington International Airport", iataCode: "WLG" }, { name: "Xi'an Xianyang International Airport", iataCode: "XIY" }, { name: "Zhukovsky International Airport", iataCode: "ZIA" }, { name: "Zurich Airport", iataCode: "ZRH" }];
|
|
8
8
|
var Za = { airline: e, airplane: a, airport: r }, o = Za;
|
|
@@ -28,20 +28,20 @@ var v$1 = ["Redhold", "Treeflex", "Trippledex", "Kanlam", "Bigtax", "Daltfresh",
|
|
|
28
28
|
var A$1 = ["0.#.#", "0.##", "#.##", "#.#", "#.#.#"];
|
|
29
29
|
var Qa = { author: f$1, name: v$1, version: A$1 }, B$1 = Qa;
|
|
30
30
|
var T$1 = ["A.A. Milne", "Agatha Christie", "Alan Moore and Dave Gibbons", "Albert Camus", "Aldous Huxley", "Alexander Pope", "Alexandre Dumas", "Alice Walker", "Andrew Lang", "Anne Frank", "Anthony Burgess", "Anthony Trollope", "Antoine de Saint-Exupéry", "Anton Chekhov", "Anton Pavlovich Chekhov", "Arthur Conan Doyle", "Arthur Schopenhauer", "Aylmer Maude", "Ayn Rand", "Beatrix Potter", "Benjamin Disraeli", "Benjamin Jowett", "Bernard Shaw", "Bertrand Russell", "Bhagavanlal Indrajit", "Boris Pasternak", "Bram Stoker", "Brian Evenson", "C.E. Brock", "C.S. Lewis", "Carson McCallers", "Charles Dickens", "Charles E. Derbyshire", "Charlotte Brontë", "Charlotte Perkins Gilman", "Chinua Achebe", "Clifford R. Adams", "Constance Garnett", "Cormac McCarthy", "D.H. Lawrence", "Dan Brown", "Daniel Defoe", "Dante Alighieri", "Dashiell Hammett", "David Widger", "David Wyllie", "Dean Koontz", "Don DeLillo", "E.M. Forster", "Edgar Allan Poe", "Edgar Rice Burroughs", "Elizabeth Cleghorn Gaskell", "Elizabeth Von Arnim", "Emily Brontë", "Erich Remarque", "Ernest Hemingway", "Evelyn Waugh", "F. Scott Fitzgerald", "Ford Madox Ford", "Frances Hodgson Burnett", "Frank Herbert", "Frank T. Merrill", "Franz Kafka", "Friedrich Wilhelm Nietzsche", "Fyodor Dostoyevsky", "G.K. Chesterton", "Gabriel Garcia Marquez", "Geoffrey Chaucer", "George Eliot", "George Grossmith", "George Orwell", "George R. R. Martin", "George Saunders", "Grady Ward", "Graham Greene", "Gustave Doré", "Gustave Flaubert", "Guy de Maupassant", "Günter Grass", "H.G. Wells", "H.P. Lovecraft", "Harper Lee", "Harriet Beecher Stowe", "Haruki Murakami", "Henrik Ibsen", "Henry David Thoreau", "Henry Fielding", "Henry James", "Henry Miller", "Henry Morley", "Herman Melville", "Hermann Broch", "Homer", "Honoré de Balzac", "Ian McEwan", "Isabel Florence Hapgood", "Italo Calvino", "J.D. Salinger", "J.K. Rowling", "J.M. Barrie", "J.R.R. Tolkien", "Jack Kerouac", "Jack London", "Jacob Grimm", "Jacqueline Crooks", "James Baldwin", "James Dickey", "James Ellroy", "James Joyce", "James Patterson", "Jane Austen", "Johann Wolfgang von Goethe", "John Bunyan", "John Camden Hotten", "John Dos Passos", "John Green", "John Grisham", "John Kennedy Toole", "John Milton", "John Ormsby", "John Steinbeck", "John Updike", "Jonathan Franzen", "Jonathan Swift", "Joseph Conrad", "Joseph Heller", "José Rizal", "Judy Blume", "Jules Verne", "Junot Diaz", "Karl Marx", "Kazuo Ishiguro", "Ken Follett", "Ken Kesey", "Kenneth Grahame", "Khaled Hosseini", "Kingsley Amis", "Kurt Vonnegut", "L. Frank Baum", "L.M. Montgomery", "Laurence Sterne", "Leo Tolstoy", "Lewis Carroll", "Louisa May Alcott", "Louise Maude", "Malcolm Lowry", "Marcel Proust", "Margaret Atwood", "Margaret Mitchell", "Marilynne Robinson", "Mark Twain", "Martin Amis", "Mary Shelley", "Michael Chabon", "Miguel de Cervantes", "Mikhail Bulgakov", "Muriel Spark", "Nancy Mitford", "Nathanael West", "Nathaniel Hawthorne", "Neil Gaiman", "Niccolo Machiavelli", "Norman Mailer", "Oscar Levy", "Oscar Wilde", "P.G. Wodehouse", "Paulo Coelho", "Peter Carey", "Philip Pullman", "Philip Roth", "Plato", "R.L. Stine", "Rachel Kushner", "Ralph Ellison", "Ray Bradbury", "Raymond Chandler", "Richard Wagner", "Richard Wright", "Richard Yates", "Roald Dahl", "Robert Graves", "Robert Louis Stevenson", "Robert Penn Warren", "Rudyard Kipling", "Salman Rushdie", "Samuel Beckett", "Samuel Butler", "Samuel Richardson", "Saul Bellow", "Shivaram Parashuram Bhide", "Sir Arthur Conan Doyle", "Sir Richard Francis Burton", "Stendhal", "Stephen Hawking", "Stephen King", "Sun Tzu", "Suzanne Collins", "T. Smollett", "T.S. Eliot", "Theodore Alois Buckley", "Theodore Dreiser", "Thomas Hardy", "Thomas Love Peacock", "Thomas Mann", "Toni Morrison", "Truman Capote", "V.S. Naipaul", "Vance Packard", "Vatsyayana", "Victor Hugo", "Virgil", "Virginia Woolf", "Vladimir Nabokov", "Voltaire", "W.G. Sebald", "W.K. Marriott", "Walker Percy", "Walt Whitman", "Walter Scott", "Wilhelm Grimm", "Wilkie Collins", "William Faulkner", "William Gibson", "William Golding", "William Makepeace Thackeray", "William Shakespeare", "Zadie Smith"];
|
|
31
|
-
var M
|
|
31
|
+
var M = ["Audiobook", "Ebook", "Hardcover", "Paperback"];
|
|
32
32
|
var w$1 = ["Adventure", "Biography", "Business", "Children's Literature", "Classic", "Comedy", "Comic", "Detective", "Drama", "Fantasy", "Graphic Novel", "Historical Fiction", "Horror", "Memoir", "Mystery", "Mythology", "Philosophy", "Poetry", "Psychology", "Religion", "Romance", "Science Fiction", "Thriller", "Western", "Young Adult"];
|
|
33
33
|
var L$1 = ["Academic Press", "Ace Books", "Addison-Wesley", "Adis International", "Airiti Press", "Allen Ltd", "Andrews McMeel Publishing", "Anova Books", "Anvil Press Poetry", "Applewood Books", "Apress", "Athabasca University Press", "Atheneum Books", "Atheneum Publishers", "Atlantic Books", "Atlas Press", "BBC Books", "Ballantine Books", "Banner of Truth Trust", "Bantam Books", "Bantam Spectra", "Barrie & Jenkins", "Basic Books", "Belknap Press", "Bella Books", "Bellevue Literary Press", "Berg Publishers", "Berkley Books", "Bison Books", "Black Dog Publishing", "Black Library", "Black Sparrow Books", "Blackie and Son Limited", "Blackstaff Press", "Blackwell Publishing", "Bloodaxe Books", "Bloomsbury Publishing Plc", "Blue Ribbon Books", "Book League of America", "Book Works", "Booktrope", "Borgo Press", "Bowes & Bowes", "Boydell & Brewer", "Breslov Research Institute", "Brill", "Brimstone Press", "Broadview Press", "Burns & Oates", "Butterworth-Heinemann", "Caister Academic Press", "Cambridge University Press", "Candlewick Press", "Canongate Books", "Carcanet Press", "Carlton Books", "Carlton Publishing Group", "Carnegie Mellon University Press", "Casemate Publishers", "Cengage Learning", "Central European University Press", "Chambers Harrap", "Charles Scribner's Sons", "Chatto and Windus", "Chick Publications", "Chronicle Books", "Churchill Livingstone", "Cisco Press", "City Lights Publishers", "Cloverdale Corporation", "D. Appleton & Company", "D. Reidel", "DAW Books", "Da Capo Press", "Daedalus Publishing", "Dalkey Archive Press", "Darakwon Press", "David & Charles", "Dedalus Books", "Del Rey Books", "E. P. Dutton", "ECW Press", "Earthscan", "Edupedia Publications", "Eel Pie Publishing", "Eerdmans Publishing", "Ellora's Cave", "Elsevier", "Emerald Group Publishing", "Etruscan Press", "FabJob", "Faber and Faber", "Fairview Press", "Farrar, Straus & Giroux", "Fearless Books", "Felony & Mayhem Press", "Firebrand Books", "Flame Tree Publishing", "Focal Press", "G-Unit Books", "G. P. Putnam's Sons", "Gaspereau Press", "Gay Men's Press", "Gefen Publishing House", "George H. Doran Company", "George Newnes", "George Routledge & Sons", "Godwit Press", "Golden Cockerel Press", "HMSO", "Hachette Book Group USA", "Hackett Publishing Company", "Hamish Hamilton", "Happy House", "Harcourt Assessment", "Harcourt Trade Publishers", "Harlequin Enterprises Ltd", "Harper & Brothers", "Harper & Row", "HarperCollins", "HarperPrism", "HarperTrophy", "Harry N. Abrams, Inc.", "Harvard University Press", "Harvest House", "Harvill Press at Random House", "Hawthorne Books", "Hay House", "Haynes Manuals", "Heyday Books", "Hodder & Stoughton", "Hodder Headline", "Hogarth Press", "Holland Park Press", "Holt McDougal", "Horizon Scientific Press", "Ian Allan Publishing", "Ignatius Press", "Imperial War Museum", "Indiana University Press", "J. M. Dent", "Jaico Publishing House", "Jarrolds Publishing", "John Blake Publishing", "Karadi Tales", "Kensington Books", "Kessinger Publishing", "Kodansha", "Kogan Page", "Koren Publishers Jerusalem", "Ladybird Books", "Leaf Books", "Leafwood Publishers", "Left Book Club", "Legend Books", "Lethe Press", "Libertas Academica", "Liberty Fund", "Library of America", "Lion Hudson", "Macmillan Publishers", "Mainstream Publishing", "Manchester University Press", "Mandrake Press", "Mandrake of Oxford", "Manning Publications", "Manor House Publishing", "Mapin Publishing", "Marion Boyars Publishers", "Mark Batty Publisher", "Marshall Cavendish", "Marshall Pickering", "Martinus Nijhoff Publishers", "Mascot Books", "Matthias Media", "McClelland and Stewart", "McFarland & Company", "McGraw Hill Financial", "McGraw-Hill Education", "Medknow Publications", "Naiad Press", "Nauka", "NavPress", "New Directions Publishing", "New English Library", "New Holland Publishers", "New Village Press", "Newnes", "No Starch Press", "Nonesuch Press", "O'Reilly Media", "Oberon Books", "Open Court Publishing Company", "Open University Press", "Orchard Books", "Orion Books", "Packt Publishing", "Palgrave Macmillan", "Pan Books", "Pantheon Books at Random House", "Papadakis Publisher", "Parachute Publishing", "Parragon", "Pathfinder Press", "Paulist Press", "Pavilion Books", "Peace Hill Press", "Pecan Grove Press", "Pen and Sword Books", "Penguin Books", "Random House", "Reed Elsevier", "Reed Publishing", "SAGE Publications", "Salt Publishing", "Sams Publishing", "Schocken Books", "Scholastic Press", "Seagull Books", "Secker & Warburg", "Shambhala Publications", "Shire Books", "Shoemaker & Hoard Publishers", "Shuter & Shooter Publishers", "Sidgwick & Jackson", "Signet Books", "Simon & Schuster", "St. Martin's Press", "T & T Clark", "Tachyon Publications", "Tammi", "Target Books", "Tarpaulin Sky Press", "Tartarus Press", "Tate Publishing & Enterprises", "Taunton Press", "Taylor & Francis", "Ten Speed Press", "UCL Press", "Unfinished Monument Press", "United States Government Publishing Office", "University of Akron Press", "University of Alaska Press", "University of California Press", "University of Chicago Press", "University of Michigan Press", "University of Minnesota Press", "University of Nebraska Press", "Velazquez Press", "Verso Books", "Victor Gollancz Ltd", "Viking Press", "Vintage Books", "Vintage Books at Random House", "Virago Press", "Virgin Publishing", "Voyager Books", "Zed Books", "Ziff Davis Media", "Zondervan"];
|
|
34
34
|
var D$1 = ["A Song of Ice and Fire", "Anna Karenina", "Colonel Race", "Discworld", "Dune", "Harry Potter", "Hercule Poirot", "His Dark Materials", "Jane Austen Murder Mysteries", "Little Women", "Outlander", "Percy Jackson", "Sherlock Holmes", "The Arc of a Scythe", "The Bartimaeus Trilogy", "The Border Trilogy", "The Chronicles of Narnia", "The Dark Tower", "The Dresden Files", "The Eighth Life", "The Foundation Series", "The Hitchhiker's Guide to the Galaxy", "The Hunger Games", "The Infinity Cycle", "The Inheritance Cycle", "The Lord of the Rings", "The Maze Runner", "The Prison Healer", "The Red Rising Saga", "The Southern Reach", "The Wheel of Time", "Thursday Next Series", "Twilight", "War and Peace"];
|
|
35
35
|
var R$1 = ["1984", "20,000 Leagues Under the Sea", "A Bend in the River", "A Brief History of Time", "A Clockwork Orange", "A Confederacy of Dunces", "A Doll's House", "A Handful of Dust", "A Modest Proposal", "A Passage to India", "A Portrait of the Artist as a Young Man", "A Room with a View", "A Study in Scarlet", "A Tale of Two Cities", "A Wrinkle in Time", "Absalom, Absalom!", "Adventures of Huckleberry Finn", "Alice's Adventures in Wonderland", "All Quiet on the Western Front", "All the King's Men", "American Pastoral", "An American Tragedy", "And Then There Were None", "Animal Farm", "Anna Karenina", "Anne of Green Gables", "Are You There God? It's Me, Margaret", "As I Lay Dying", "Atlas Shrugged", "Atonement", "Austerlitz", "Beloved", "Beyond Good and Evil", "Bible", "Bleak House", "Blood Meridian", "Brave New World", "Brideshead Revisited", "Candide", "Carmilla", "Catch-22", "Charlie and the Chocolate Factory", "Charlotte's Web", "Clarissa", "Cranford", "Crime and Punishment", "Dao De Jing: A Minimalist Translation", "David Copperfield", "Deliverance", "Don Quixote", "Dora", "Dr. Zhivago", "Dracula", "Dubliners", "Dune", "East of Eden", "Emma", "Fahrenheit 451", "Faust", "For Whom the Bell Tolls", "Frankenstein", "Freakonomics", "Go Tell It on the Mountain", "Gone with the Wind", "Great Expectations", "Grimms' Fairy Tales", "Gulliver's Travels", "Hamlet", "Harry Potter and the Sorcerer's Stone", "Heart of Darkness", "Herzog", "His Dark Materials", "Hitting the line", "Housekeeping", "I, Claudius", "If on a Winter's Night a Traveler", "In Cold Blood", "In Search of Lost Time", "Invisible Man", "It", "Jane Eyre", "Josefine Mutzenbacher", "Jude the Obscure", "L.A. Confidential", "Leaves of Grass", "Les Miserables", "Life of Pi", "Little Women", "Lolita", "Long Walk to Freedom", "Lord Jim", "Lord of the Flies", "Lucky Jim", "Madame Bovary", "Malone Dies", "Meditations", "Men Without Women", "Metamorphosis", "Middlemarch", "Midnight's Children", "Moby Dick", "Money", "Mrs. Dalloway", "My Bondage and My Freedom", "My Life", "Native Son", "Neuromancer", "Never Let Me Go", "Nightmare Abbey", "Nineteen Eighty Four", "Nostromo", "Notes from the Underground", "Of Mice and Men", "Oliver Twist", "On the Duty of Civil Disobedience", "On the Road", "One Flew Over the Cuckoo's Nest", "One Hundred Years of Solitude", "One Thousand and One Nights", "Oscar and Lucinda", "Pale Fire", "Paradise Lost", "Peter Pan", "Portnoy's Complaint", "Pride and Prejudice", "Rabbit, Run", "Republic", "Revolutionary Road", "Robinson Crusoe", "Romeo and Juliet", "Ruth Fielding in Alaska", "Scoop", "Second Treatise of Government", "Slaughterhouse Five", "Stories of Anton Chekhov", "Sybil", "Tess of the d'Urbervilles", "The Adventures of Augie March", "The Adventures of Huckleberry Finn", "The Adventures of Sherlock Holmes", "The Adventures of Tom Sawyer", "The Aeneid", "The Alchemist", "The Ambassadors", "The Art of War", "The Big Sleep", "The Black Sheep", "The Blue Castle", "The Brief Wondrous Life of Oscar Wao", "The Brothers Karamazov", "The Call of the Wild", "The Canterbury Tales", "The Catcher in the Rye", "The Color Purple", "The Complete Works of Edgar Allen Poe", "The Corrections", "The Count of Monte Cristo", "The Day of the Locust", "The Diary of a Nobody", "The Diary of a Young Girl", "The Divine Comedy", "The Enchanted April", "The Fountainhead", "The Golden Bowl", "The Golden Notebook", "The Good Soldier", "The Grapes of Wrath", "The Great Gatsby", "The Handmaid's Tale", "The Heart is a Lonely Hunter", "The Heart of the Matter", "The Hobbit", "The Hound of the Baskervilles", "The Idiot", "The Iliad", "The King in Yellow", "The Kite Runner", "The Lion, the Witch, and the Wardrobe", "The Little Prince", "The Lord of the Rings", "The Magic Mountain", "The Maltese Falcon", "The Master and Margarita", "The Moviegoer", "The Naked and the Dead", "The Odyssey", "The Old Man and the Sea", "The Pickwick Papers", "The Picture of Dorian Gray", "The Pilgrim's Progress", "The Pillars of the Earth", "The Plague", "The Portrait of a Lady", "The Prime of Miss Jean Brodie", "The Prince", "The Problems of Philosophy", "The Prophet", "The Pursuit of Love", "The Rainbow", "The Red and the Black", "The Remains of the Day", "The Republic", "The Scarlet Letter", "The Sleepwalkers", "The Sound and the Fury", "The Stand", "The Strange Case of Dr. Jekyll and Mr. Hyde", "The Stranger", "The Sun Also Rises", "The Thirty-Nine Steps", "The Three Musketeers", "The Time Machine", "The Tin Drum", "The Trial", "The War of the Worlds", "The Waste Land", "The Way We Live Now", "The Wind in the Willows", "The Woman in White", "The Wonderful Wizard of Oz", "The Works of Edgar Allan Poe", "The Yellow Wallpaper", "Things Fall Apart", "Tinker, Tailor, Soldier, Spy", "To Kill a Mockingbird", "To the Lighthouse", "Tom Jones", "Treasure Island", "Tristram Shandy", "Tropic of Cancer", "U.S.A. Trilogy", "Ulysses", "Uncle Tom's Cabin", "Under the Volcano", "Underworld", "Vanity Fair", "Walden", "War and Peace", "Watchmen", "Winnie-the-Pooh", "Wuthering Heights"];
|
|
36
|
-
var Xa = { author: T$1, format: M
|
|
36
|
+
var Xa = { author: T$1, format: M, genre: w$1, publisher: L$1, series: D$1, title: R$1 }, P$1 = Xa;
|
|
37
37
|
var H$1 = ["###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####"];
|
|
38
38
|
var $a = { formats: H$1 }, W$1 = $a;
|
|
39
39
|
var G$1 = ["azure", "black", "blue", "cyan", "fuchsia", "gold", "green", "grey", "indigo", "ivory", "lavender", "lime", "magenta", "maroon", "mint green", "olive", "orange", "orchid", "pink", "plum", "purple", "red", "salmon", "silver", "sky blue", "tan", "teal", "turquoise", "violet", "white", "yellow"];
|
|
40
40
|
var er$1 = { human: G$1 }, F$1 = er$1;
|
|
41
|
-
var N = ["Automotive", "Baby", "Beauty", "Books", "Clothing", "Computers", "Electronics", "Games", "Garden", "Grocery", "Health", "Home", "Industrial", "Jewelry", "Kids", "Movies", "Music", "Outdoors", "Shoes", "Sports", "Tools", "Toys"];
|
|
41
|
+
var N$1 = ["Automotive", "Baby", "Beauty", "Books", "Clothing", "Computers", "Electronics", "Games", "Garden", "Grocery", "Health", "Home", "Industrial", "Jewelry", "Kids", "Movies", "Music", "Outdoors", "Shoes", "Sports", "Tools", "Toys"];
|
|
42
42
|
var E = ["Discover the {{animal.type}}-like agility of our {{commerce.product}}, perfect for {{word.adjective}} users", "Discover the {{word.adjective}} new {{commerce.product}} with an exciting mix of {{commerce.productMaterial}} ingredients", "Ergonomic {{commerce.product}} made with {{commerce.productMaterial}} for all-day {{word.adjective}} support", "Experience the {{color.human}} brilliance of our {{commerce.product}}, perfect for {{word.adjective}} environments", "Featuring {{science.chemical_element.name}}-enhanced technology, our {{commerce.product}} offers unparalleled {{word.adjective}} performance", "Innovative {{commerce.product}} featuring {{word.adjective}} technology and {{commerce.productMaterial}} construction", "Introducing the {{location.country}}-inspired {{commerce.product}}, blending {{word.adjective}} style with local craftsmanship", "New {{color.human}} {{commerce.product}} with ergonomic design for {{word.adjective}} comfort", 'New {{commerce.product}} model with {{number.int({"min": 1, "max": 100})}} GB RAM, {{number.int({"min": 1, "max": 1000})}} GB storage, and {{word.adjective}} features', "Our {{animal.type}}-friendly {{commerce.product}} ensures {{word.adjective}} comfort for your pets", "Our {{food.adjective}}-inspired {{commerce.product}} brings a taste of luxury to your {{word.adjective}} lifestyle", "Professional-grade {{commerce.product}} perfect for {{word.adjective}} training and recreational use", "Savor the {{food.adjective}} essence in our {{commerce.product}}, designed for {{word.adjective}} culinary adventures", "Stylish {{commerce.product}} designed to make you stand out with {{word.adjective}} looks", "The sleek and {{word.adjective}} {{commerce.product}} comes with {{color.human}} LED lighting for smart functionality", "The {{color.human}} {{commerce.product}} combines {{location.country}} aesthetics with {{science.chemical_element.name}}-based durability", "The {{company.catchPhrase}} {{commerce.product}} offers reliable performance and {{word.adjective}} design", "The {{person.firstName}} {{commerce.product}} is the latest in a series of {{word.adjective}} products from {{company.name}}", "{{commerce.productAdjective}} {{commerce.product}} designed with {{commerce.productMaterial}} for {{word.adjective}} performance", "{{company.name}}'s most advanced {{commerce.product}} technology increases {{word.adjective}} capabilities"];
|
|
43
43
|
var J$1 = { adjective: ["Awesome", "Bespoke", "Electronic", "Elegant", "Ergonomic", "Fantastic", "Fresh", "Frozen", "Generic", "Gorgeous", "Handcrafted", "Handmade", "Incredible", "Intelligent", "Licensed", "Luxurious", "Modern", "Oriental", "Practical", "Recycled", "Refined", "Rustic", "Sleek", "Small", "Soft", "Tasty", "Unbranded"], material: ["Aluminum", "Bamboo", "Bronze", "Ceramic", "Concrete", "Cotton", "Gold", "Granite", "Marble", "Metal", "Plastic", "Rubber", "Silk", "Steel", "Wooden"], product: ["Bacon", "Ball", "Bike", "Car", "Chair", "Cheese", "Chicken", "Chips", "Computer", "Fish", "Gloves", "Hat", "Keyboard", "Mouse", "Pants", "Pizza", "Salad", "Sausages", "Shirt", "Shoes", "Soap", "Table", "Towels", "Tuna"] };
|
|
44
|
-
var ar$1 = { department: N, product_description: E, product_name: J$1 }, I$1 = ar$1;
|
|
44
|
+
var ar$1 = { department: N$1, product_description: E, product_name: J$1 }, I$1 = ar$1;
|
|
45
45
|
var K$1 = ["AI-driven", "Adaptive", "Advanced", "Automated", "Balanced", "Business-focused", "Centralized", "Compatible", "Configurable", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "Devolved", "Digitized", "Distributed", "Diverse", "Enhanced", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Immersive", "Implemented", "Innovative", "Integrated", "Intuitive", "Managed", "Monitored", "Multi-tiered", "Networked", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Reduced", "Reverse-engineered", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Smart", "Stand-alone", "Streamlined", "Sustainable", "Synchronised", "Team-oriented", "Total", "Triple-buffered", "Universal", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary"];
|
|
46
46
|
var O$1 = ["24/7", "AI-driven", "B2B", "B2C", "back-end", "best-of-breed", "bleeding-edge", "collaborative", "compelling", "cross-media", "cross-platform", "customized", "cutting-edge", "decentralized", "distributed", "dynamic", "efficient", "end-to-end", "enterprise", "extensible", "frictionless", "front-end", "generative", "global", "granular", "holistic", "immersive", "impactful", "innovative", "integrated", "interactive", "intuitive", "killer", "leading-edge", "magnetic", "mission-critical", "next-generation", "one-to-one", "open-source", "out-of-the-box", "plug-and-play", "proactive", "quantum", "real-time", "revolutionary", "rich", "robust", "scalable", "seamless", "smart", "sticky", "strategic", "sustainable", "synergistic", "transparent", "turn-key", "ubiquitous", "user-centric", "value-added", "vertical", "viral", "virtual", "visionary", "world-class"];
|
|
47
47
|
var x$1 = ["AI", "ROI", "applications", "architectures", "blockchains", "channels", "communities", "content", "convergence", "deliverables", "e-commerce", "experiences", "functionalities", "infrastructures", "initiatives", "interfaces", "large language models", "lifetime value", "markets", "methodologies", "metrics", "mindshare", "models", "networks", "niches", "paradigms", "partnerships", "platforms", "relationships", "schemas", "smart contracts", "solutions", "supply-chains", "synergies", "systems", "technologies", "users", "web services"];
|
|
@@ -52,14 +52,14 @@ var j$1 = ["{{person.last_name.generic}} - {{person.last_name.generic}}", "{{per
|
|
|
52
52
|
var q$1 = ["ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "array", "artificial intelligence", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "data-warehouse", "database", "definition", "emulation", "encoding", "encryption", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "generative AI", "hardware", "help-desk", "hierarchy", "hub", "implementation", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge base", "knowledge user", "leverage", "local area network", "matrices", "matrix", "methodology", "microservice", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce"];
|
|
53
53
|
var rr$1 = { adjective: K$1, buzz_adjective: O$1, buzz_noun: x$1, buzz_verb: z$1, descriptor: V$1, legal_entity_type: Y$1, name_pattern: j$1, noun: q$1 }, U$1 = rr$1;
|
|
54
54
|
var Z$1 = ["avatar", "category", "comment", "createdAt", "email", "group", "id", "name", "password", "phone", "status", "title", "token", "updatedAt"];
|
|
55
|
-
var or$1 = { column: Z$1 }, _ = or$1;
|
|
55
|
+
var or$1 = { column: Z$1 }, _$1 = or$1;
|
|
56
56
|
var Q$1 = { wide: ["April", "August", "December", "February", "January", "July", "June", "March", "May", "November", "October", "September"], abbr: ["Apr", "Aug", "Dec", "Feb", "Jan", "Jul", "Jun", "Mar", "May", "Nov", "Oct", "Sep"] };
|
|
57
57
|
var X$1 = { wide: ["Friday", "Monday", "Saturday", "Sunday", "Thursday", "Tuesday", "Wednesday"], abbr: ["Fri", "Mon", "Sat", "Sun", "Thu", "Tue", "Wed"] };
|
|
58
|
-
var nr$1 = { month: Q$1, weekday: X$1 },
|
|
58
|
+
var nr$1 = { month: Q$1, weekday: X$1 }, $ = nr$1;
|
|
59
59
|
var ee$1 = ["Auto Loan", "Checking", "Credit Card", "Home Loan", "Investment", "Money Market", "Personal Loan", "Savings"];
|
|
60
60
|
var ae$1 = ["34##-######-####L", "37##-######-####L"];
|
|
61
|
-
var re$1 = ["30[0-5]#-######-###L", "36##-######-###L"
|
|
62
|
-
var oe$1 = ["6011-####-####-###L", "
|
|
61
|
+
var re$1 = ["30[0-5]#-######-###L", "36##-######-###L"];
|
|
62
|
+
var oe$1 = ["6011-####-####-###L", "65##-####-####-###L"];
|
|
63
63
|
var ne$1 = ["3528-####-####-###L", "3529-####-####-###L", "35[3-8]#-####-####-###L"];
|
|
64
64
|
var ie$1 = ["2[221-720]-####-####-###L", "5[1-5]##-####-####-###L"];
|
|
65
65
|
var te$1 = ["4###########L", "4###-####-####-###L"];
|
|
@@ -159,10 +159,10 @@ var Ya = ["CD", "SUV", "abacus", "academics", "accelerator", "accompanist", "acc
|
|
|
159
159
|
var ja = ["a", "abaft", "aboard", "about", "above", "absent", "across", "afore", "after", "against", "along", "alongside", "amid", "amidst", "among", "amongst", "an", "anenst", "anti", "apropos", "apud", "around", "as", "aside", "astride", "at", "athwart", "atop", "barring", "before", "behind", "below", "beneath", "beside", "besides", "between", "beyond", "but", "by", "circa", "concerning", "considering", "despite", "down", "during", "except", "excepting", "excluding", "failing", "following", "for", "forenenst", "from", "given", "in", "including", "inside", "into", "lest", "like", "mid", "midst", "minus", "modulo", "near", "next", "notwithstanding", "of", "off", "on", "onto", "opposite", "out", "outside", "over", "pace", "past", "per", "plus", "pro", "qua", "regarding", "round", "sans", "save", "since", "than", "the", "through", "throughout", "till", "times", "to", "toward", "towards", "under", "underneath", "unlike", "until", "unto", "up", "upon", "versus", "via", "vice", "with", "within", "without", "worth"];
|
|
160
160
|
var qa = ["abnegate", "abscond", "abseil", "absolve", "accentuate", "accept", "access", "accessorise", "accompany", "account", "accredit", "achieve", "acknowledge", "acquire", "adjourn", "adjudge", "admonish", "adumbrate", "advocate", "afford", "airbrush", "ameliorate", "amend", "amount", "anaesthetise", "analyse", "anesthetize", "anneal", "annex", "antagonize", "ape", "apologise", "apostrophize", "appertain", "appreciate", "appropriate", "approximate", "arbitrate", "archive", "arraign", "arrange", "ascertain", "ascribe", "assail", "atomize", "attend", "attest", "attribute", "augment", "avow", "axe", "baa", "banish", "bank", "baptise", "battle", "beard", "beep", "behold", "belabor", "bemuse", "besmirch", "bestride", "better", "bewail", "bicycle", "bide", "bind", "biodegrade", "blacken", "blaspheme", "bleach", "blend", "blink", "bliss", "bloom", "bludgeon", "bobble", "boggle", "bolster", "book", "boom", "bootleg", "border", "bore", "boss", "braid", "brand", "brandish", "break", "breed", "broadcast", "broadside", "brood", "browse", "buck", "burgeon", "bus", "butter", "buzzing", "camouflage", "cannibalise", "canter", "cap", "capitalise", "capitalize", "capsize", "card", "carouse", "carp", "carpool", "catalog", "catalyze", "catch", "categorise", "cease", "celebrate", "censor", "certify", "char", "charter", "chase", "chatter", "chime", "chip", "christen", "chromakey", "chunder", "chunter", "cinch", "circle", "circulate", "circumnavigate", "clamor", "clamour", "claw", "cleave", "clinch", "clinking", "clone", "clonk", "coagulate", "coexist", "coincide", "collaborate", "colligate", "colorize", "colour", "comb", "come", "commandeer", "commemorate", "communicate", "compete", "conceal", "conceptualize", "conclude", "concrete", "condense", "cone", "confide", "confirm", "confiscate", "confound", "confute", "congregate", "conjecture", "connect", "consign", "construe", "contradict", "contrast", "contravene", "controvert", "convalesce", "converse", "convince", "convoke", "coop", "cop", "corner", "covenant", "cow", "crackle", "cram", "crank", "creak", "creaking", "cripple", "croon", "cross", "crumble", "crystallize", "culminate", "culture", "curry", "curse", "customise", "cycle", "dally", "dampen", "darn", "debit", "debut", "decide", "decode", "decouple", "decriminalize", "deduce", "deduct", "deflate", "deflect", "deform", "defrag", "degenerate", "degrease", "delete", "delight", "deliquesce", "demob", "demobilise", "democratize", "demonstrate", "denitrify", "deny", "depart", "depend", "deplore", "deploy", "deprave", "depute", "dereference", "describe", "desecrate", "deselect", "destock", "detain", "develop", "devise", "dial", "dicker", "digitize", "dilate", "disapprove", "disarm", "disbar", "discontinue", "disgorge", "dishearten", "dishonor", "disinherit", "dislocate", "dispense", "display", "dispose", "disrespect", "dissemble", "ditch", "divert", "dock", "doodle", "downchange", "downshift", "dowse", "draft", "drag", "drain", "dramatize", "drowse", "drum", "dwell", "economise", "edge", "efface", "egg", "eke", "electrify", "embalm", "embed", "embody", "emboss", "emerge", "emphasise", "emphasize", "emulsify", "encode", "endow", "enfold", "engage", "engender", "enhance", "enlist", "enrage", "enrich", "enroll", "entice", "entomb", "entrench", "entwine", "equate", "essay", "etch", "eulogise", "even", "evince", "exacerbate", "exaggerate", "exalt", "exempt", "exonerate", "expatiate", "explode", "expostulate", "extract", "extricate", "eyeglasses", "fabricate", "facilitate", "factorise", "factorize", "fail", "fall", "familiarize", "fashion", "father", "fathom", "fax", "federate", "feminize", "fence", "fess", "fictionalize", "fiddle", "fidget", "fill", "flash", "fleck", "flight", "floodlight", "floss", "fluctuate", "fluff", "fly", "focalise", "foot", "forearm", "forecast", "foretell", "forgather", "forgo", "fork", "form", "forswear", "founder", "fraternise", "fray", "frizz", "fumigate", "function", "furlough", "fuss", "gad", "gallivant", "galvanize", "gape", "garage", "garrote", "gasp", "gestate", "give", "glimmer", "glisten", "gloat", "gloss", "glow", "gnash", "gnaw", "goose", "govern", "grade", "graduate", "graft", "grok", "guest", "guilt", "gulp", "gum", "gurn", "gust", "gut", "guzzle", "ham", "harangue", "harvest", "hassle", "haul", "haze", "headline", "hearten", "heighten", "highlight", "hoick", "hold", "hole", "hollow", "holster", "home", "homeschool", "hoot", "horn", "horse", "hotfoot", "house", "hover", "howl", "huddle", "huff", "hunger", "hunt", "husk", "hype", "hypothesise", "hypothesize", "idle", "ignite", "imagineer", "impact", "impanel", "implode", "incinerate", "incline", "inculcate", "industrialize", "ingratiate", "inhibit", "inject", "innovate", "inscribe", "insert", "insist", "inspect", "institute", "institutionalize", "intend", "intermarry", "intermesh", "intermix", "internalise", "internalize", "internationalize", "intrigue", "inure", "inveigle", "inventory", "investigate", "irk", "iterate", "jaywalk", "jell", "jeopardise", "jiggle", "jive", "joint", "jot", "jut", "keel", "knife", "knit", "know", "kowtow", "lack", "lampoon", "large", "leap", "lecture", "legitimize", "lend", "libel", "liberalize", "license", "ligate", "list", "lobotomise", "lock", "log", "loose", "low", "lowball", "machine", "magnetize", "major", "make", "malfunction", "manage", "manipulate", "maroon", "masculinize", "mash", "mask", "masquerade", "massage", "masticate", "materialise", "matter", "maul", "memorise", "merge", "mesh", "metabolise", "microblog", "microchip", "micromanage", "militate", "mill", "minister", "minor", "misappropriate", "miscalculate", "misfire", "misjudge", "miskey", "mismatch", "mispronounce", "misread", "misreport", "misspend", "mob", "mobilise", "mobilize", "moisten", "mooch", "moor", "moralise", "mortar", "mosh", "mothball", "motivate", "motor", "mould", "mount", "muddy", "mummify", "mutate", "mystify", "nab", "narrate", "narrowcast", "nasalise", "nauseate", "navigate", "neaten", "neck", "neglect", "norm", "notarize", "object", "obscure", "observe", "obsess", "obstruct", "obtrude", "offend", "offset", "option", "orchestrate", "orient", "orientate", "outbid", "outdo", "outfit", "outflank", "outfox", "outnumber", "outrank", "outrun", "outsource", "overburden", "overcharge", "overcook", "overdub", "overfeed", "overload", "overplay", "overproduce", "overreact", "override", "overspend", "overstay", "overtrain", "overvalue", "overwork", "own", "oxidise", "oxidize", "oxygenate", "pace", "pack", "pale", "pant", "paralyse", "parody", "part", "pause", "pave", "penalise", "persecute", "personalise", "perspire", "pertain", "peter", "pike", "pillory", "pinion", "pip", "pity", "pivot", "pixellate", "plagiarise", "plait", "plan", "please", "pluck", "ponder", "popularize", "portray", "prance", "preclude", "preheat", "prejudge", "preregister", "presell", "preside", "pretend", "print", "prioritize", "probate", "probe", "proceed", "procrastinate", "profane", "progress", "proliferate", "proofread", "propound", "proselytise", "provision", "pry", "publicize", "puff", "pull", "pulp", "pulverize", "purse", "put", "putrefy", "quadruple", "quaff", "quantify", "quarrel", "quash", "quaver", "question", "quiet", "quintuple", "quip", "quit", "rag", "rally", "ramp", "randomize", "rationalise", "rationalize", "ravage", "ravel", "react", "readies", "readjust", "readmit", "ready", "reapply", "rear", "reassemble", "rebel", "reboot", "reborn", "rebound", "rebuff", "rebuild", "rebuke", "recede", "reckon", "reclassify", "recompense", "reconstitute", "record", "recount", "redact", "redevelop", "redound", "redraw", "redress", "reel", "refer", "reference", "refine", "reflate", "refute", "regulate", "reiterate", "rejigger", "rejoin", "rekindle", "relaunch", "relieve", "remand", "remark", "reopen", "reorient", "replicate", "repossess", "represent", "reprimand", "reproach", "reprove", "repurpose", "requite", "reschedule", "resort", "respray", "restructure", "retool", "retract", "revere", "revitalise", "revoke", "reword", "rewrite", "ride", "ridge", "rim", "ring", "rise", "rival", "roger", "rosin", "rot", "rout", "row", "rue", "rule", "safeguard", "sashay", "sate", "satirise", "satirize", "satisfy", "saturate", "savour", "scale", "scamper", "scar", "scare", "scarper", "scent", "schematise", "scheme", "schlep", "scoff", "scoop", "scope", "scotch", "scowl", "scrabble", "scram", "scramble", "scrape", "screw", "scruple", "scrutinise", "scuffle", "scuttle", "search", "secularize", "see", "segregate", "sell", "sense", "sensitize", "sequester", "serenade", "serialize", "serve", "service", "settle", "sew", "shaft", "sham", "shampoo", "shanghai", "shear", "sheathe", "shell", "shinny", "shirk", "shoot", "shoulder", "shout", "shovel", "showboat", "shred", "shrill", "shudder", "shush", "sidetrack", "sign", "silt", "sin", "singe", "sit", "sizzle", "skateboard", "ski", "slake", "slap", "slather", "sleet", "slink", "slip", "slope", "slump", "smarten", "smuggle", "snack", "sneak", "sniff", "snoop", "snow", "snowplow", "snuggle", "soap", "solace", "solder", "solicit", "source", "spark", "spattering", "spectacles", "spectate", "spellcheck", "spew", "spice", "spirit", "splash", "splay", "split", "splosh", "splurge", "spook", "square", "squirm", "stabilise", "stable", "stack", "stage", "stake", "starch", "state", "statement", "stiffen", "stigmatize", "sting", "stint", "stoop", "store", "storyboard", "stratify", "structure", "stuff", "stunt", "substantiate", "subtract", "suckle", "suffice", "suffocate", "summarise", "sun", "sunbathe", "sunder", "sup", "surge", "surprise", "swat", "swathe", "sway", "swear", "swelter", "swerve", "swill", "swing", "symbolise", "synthesise", "syringe", "table", "tabulate", "tag", "tame", "tank", "tankful", "tarry", "task", "taxicab", "team", "telescope", "tenant", "terraform", "terrorise", "testify", "think", "throbbing", "thump", "tighten", "toady", "toe", "tough", "tousle", "traduce", "train", "transcend", "transplant", "trash", "treasure", "treble", "trek", "trial", "tromp", "trouser", "trust", "tune", "tut", "twine", "twist", "typify", "unbalance", "uncork", "uncover", "underachieve", "undergo", "underplay", "unearth", "unfreeze", "unfurl", "unlearn", "unscramble", "unzip", "uproot", "upsell", "usher", "vacation", "vamoose", "vanish", "vary", "veg", "venture", "verify", "vet", "veto", "volunteer", "vulgarise", "waft", "wallop", "waltz", "warp", "wash", "waver", "weary", "weatherize", "wedge", "weep", "weight", "welcome", "westernise", "westernize", "while", "whine", "whisper", "whistle", "whitewash", "whup", "wilt", "wing", "wire", "wisecrack", "wolf", "wound", "wring", "writ", "yak", "yawn", "yearn", "yuppify"];
|
|
161
161
|
var kr$1 = { adjective: Oa, adverb: xa, conjunction: za, interjection: Va, noun: Ya, preposition: ja, verb: qa }, Ua = kr$1;
|
|
162
|
-
var fr$1 = { airline: o, animal: k, app: B$1, book: P$1, cell_phone: W$1, color: F$1, commerce: I$1, company: U$1, database: _, date:
|
|
162
|
+
var fr$1 = { airline: o, animal: k, app: B$1, book: P$1, cell_phone: W$1, color: F$1, commerce: I$1, company: U$1, database: _$1, date: $, finance: ce$1, food: ve$1, hacker: Le$1, internet: He$1, location: Qe$1, lorem: $e$1, metadata: ea, music: ia, person: Aa, phone_number: La, science: Pa, team: Ga, vehicle: Ka, word: Ua }, ys = fr$1;
|
|
163
163
|
var m = class extends Error {
|
|
164
164
|
};
|
|
165
|
-
function
|
|
165
|
+
function Me(i2) {
|
|
166
166
|
let e2 = Object.getPrototypeOf(i2);
|
|
167
167
|
do {
|
|
168
168
|
for (let r2 of Object.getOwnPropertyNames(e2)) typeof i2[r2] == "function" && r2 !== "constructor" && (i2[r2] = i2[r2].bind(i2));
|
|
@@ -172,7 +172,7 @@ function Ce(i2) {
|
|
|
172
172
|
var x = class {
|
|
173
173
|
constructor(e2) {
|
|
174
174
|
this.faker = e2;
|
|
175
|
-
|
|
175
|
+
Me(this);
|
|
176
176
|
}
|
|
177
177
|
}, p = class extends x {
|
|
178
178
|
constructor(r2) {
|
|
@@ -180,7 +180,7 @@ var x = class {
|
|
|
180
180
|
this.faker = r2;
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
var
|
|
183
|
+
var Ce = ((t2) => (t2.Narrowbody = "narrowbody", t2.Regional = "regional", t2.Widebody = "widebody", t2))(Ce || {}), kr = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], xr = ["0", "O", "1", "I", "L"], Ar = { regional: 20, narrowbody: 35, widebody: 60 }, Er = { regional: ["A", "B", "C", "D"], narrowbody: ["A", "B", "C", "D", "E", "F"], widebody: ["A", "B", "C", "D", "E", "F", "G", "H", "J", "K"] }, F = class extends p {
|
|
184
184
|
airport() {
|
|
185
185
|
return this.faker.helpers.arrayElement(this.faker.definitions.airline.airport);
|
|
186
186
|
}
|
|
@@ -199,14 +199,14 @@ var Ne = ((t2) => (t2.Narrowbody = "narrowbody", t2.Regional = "regional", t2.Wi
|
|
|
199
199
|
return `${n2}${o2}`;
|
|
200
200
|
}
|
|
201
201
|
aircraftType() {
|
|
202
|
-
return this.faker.helpers.enumValue(
|
|
202
|
+
return this.faker.helpers.enumValue(Ce);
|
|
203
203
|
}
|
|
204
204
|
flightNumber(e2 = {}) {
|
|
205
205
|
let { length: r2 = { min: 1, max: 4 }, addLeadingZeros: t2 = false } = e2, a2 = this.faker.string.numeric({ length: r2, allowLeadingZeros: false });
|
|
206
206
|
return t2 ? a2.padStart(4, "0") : a2;
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
-
var
|
|
209
|
+
var Ne = ((n2) => (n2.SRGB = "sRGB", n2.DisplayP3 = "display-p3", n2.REC2020 = "rec2020", n2.A98RGB = "a98-rgb", n2.ProphotoRGB = "prophoto-rgb", n2))(Ne || {}), De = ((c2) => (c2.RGB = "rgb", c2.RGBA = "rgba", c2.HSL = "hsl", c2.HSLA = "hsla", c2.HWB = "hwb", c2.CMYK = "cmyk", c2.LAB = "lab", c2.LCH = "lch", c2.COLOR = "color", c2))(De || {});
|
|
210
210
|
function wr(i2, e2) {
|
|
211
211
|
let { prefix: r2, casing: t2 } = e2;
|
|
212
212
|
switch (t2) {
|
|
@@ -221,13 +221,13 @@ function wr(i2, e2) {
|
|
|
221
221
|
}
|
|
222
222
|
return r2 && (i2 = r2 + i2), i2;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Re(i2) {
|
|
225
225
|
return i2.map((r2) => {
|
|
226
226
|
if (r2 % 1 !== 0) {
|
|
227
227
|
let a2 = new ArrayBuffer(4);
|
|
228
228
|
new DataView(a2).setFloat32(0, r2);
|
|
229
229
|
let n2 = new Uint8Array(a2);
|
|
230
|
-
return
|
|
230
|
+
return Re([...n2]).replaceAll(" ", "");
|
|
231
231
|
}
|
|
232
232
|
return (r2 >>> 0).toString(2).padStart(8, "0");
|
|
233
233
|
}).join(" ");
|
|
@@ -257,12 +257,12 @@ function Sr(i2, e2 = "rgb", r2 = "sRGB") {
|
|
|
257
257
|
return `rgb(${i2[0]}, ${i2[1]}, ${i2[2]})`;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function N(i2, e2, r2 = "rgb", t2 = "sRGB") {
|
|
261
261
|
switch (e2) {
|
|
262
262
|
case "css":
|
|
263
263
|
return Sr(i2, r2, t2);
|
|
264
264
|
case "binary":
|
|
265
|
-
return
|
|
265
|
+
return Re(i2);
|
|
266
266
|
case "decimal":
|
|
267
267
|
return i2;
|
|
268
268
|
}
|
|
@@ -275,73 +275,66 @@ var G = class extends p {
|
|
|
275
275
|
return this.faker.helpers.arrayElement(this.faker.definitions.color.space);
|
|
276
276
|
}
|
|
277
277
|
cssSupportedFunction() {
|
|
278
|
-
return this.faker.helpers.enumValue(
|
|
278
|
+
return this.faker.helpers.enumValue(De);
|
|
279
279
|
}
|
|
280
280
|
cssSupportedSpace() {
|
|
281
|
-
return this.faker.helpers.enumValue(
|
|
281
|
+
return this.faker.helpers.enumValue(Ne);
|
|
282
282
|
}
|
|
283
283
|
rgb(e2 = {}) {
|
|
284
284
|
let { format: r2 = "hex", includeAlpha: t2 = false, prefix: a2 = "#", casing: n2 = "lower" } = e2, o2, s2 = "rgb";
|
|
285
|
-
return r2 === "hex" ? (o2 = this.faker.string.hexadecimal({ length: t2 ? 8 : 6, prefix: "" }), o2 = wr(o2, { prefix: a2, casing: n2 }), o2) : (o2 = Array.from({ length: 3 }, () => this.faker.number.int(255)), t2 && (o2.push(this.faker.number.float({ multipleOf: 0.01 })), s2 = "rgba"),
|
|
285
|
+
return r2 === "hex" ? (o2 = this.faker.string.hexadecimal({ length: t2 ? 8 : 6, prefix: "" }), o2 = wr(o2, { prefix: a2, casing: n2 }), o2) : (o2 = Array.from({ length: 3 }, () => this.faker.number.int(255)), t2 && (o2.push(this.faker.number.float({ multipleOf: 0.01 })), s2 = "rgba"), N(o2, r2, s2));
|
|
286
286
|
}
|
|
287
287
|
cmyk(e2 = {}) {
|
|
288
288
|
let { format: r2 = "decimal" } = e2, t2 = Array.from({ length: 4 }, () => this.faker.number.float({ multipleOf: 0.01 }));
|
|
289
|
-
return
|
|
289
|
+
return N(t2, r2, "cmyk");
|
|
290
290
|
}
|
|
291
291
|
hsl(e2 = {}) {
|
|
292
292
|
let { format: r2 = "decimal", includeAlpha: t2 = false } = e2, a2 = [this.faker.number.int(360)];
|
|
293
293
|
for (let n2 = 0; n2 < (e2?.includeAlpha ? 3 : 2); n2++) a2.push(this.faker.number.float({ multipleOf: 0.01 }));
|
|
294
|
-
return
|
|
294
|
+
return N(a2, r2, t2 ? "hsla" : "hsl");
|
|
295
295
|
}
|
|
296
296
|
hwb(e2 = {}) {
|
|
297
297
|
let { format: r2 = "decimal" } = e2, t2 = [this.faker.number.int(360)];
|
|
298
298
|
for (let a2 = 0; a2 < 2; a2++) t2.push(this.faker.number.float({ multipleOf: 0.01 }));
|
|
299
|
-
return
|
|
299
|
+
return N(t2, r2, "hwb");
|
|
300
300
|
}
|
|
301
301
|
lab(e2 = {}) {
|
|
302
302
|
let { format: r2 = "decimal" } = e2, t2 = [this.faker.number.float({ multipleOf: 1e-6 })];
|
|
303
303
|
for (let a2 = 0; a2 < 2; a2++) t2.push(this.faker.number.float({ min: -100, max: 100, multipleOf: 1e-4 }));
|
|
304
|
-
return
|
|
304
|
+
return N(t2, r2, "lab");
|
|
305
305
|
}
|
|
306
306
|
lch(e2 = {}) {
|
|
307
307
|
let { format: r2 = "decimal" } = e2, t2 = [this.faker.number.float({ multipleOf: 1e-6 })];
|
|
308
308
|
for (let a2 = 0; a2 < 2; a2++) t2.push(this.faker.number.float({ max: 230, multipleOf: 0.1 }));
|
|
309
|
-
return
|
|
309
|
+
return N(t2, r2, "lch");
|
|
310
310
|
}
|
|
311
311
|
colorByCSSColorSpace(e2 = {}) {
|
|
312
312
|
let { format: r2 = "decimal", space: t2 = "sRGB" } = e2, a2 = Array.from({ length: 3 }, () => this.faker.number.float({ multipleOf: 1e-4 }));
|
|
313
|
-
return
|
|
313
|
+
return N(a2, r2, "color", t2);
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
|
-
var be = ((a2) => (a2.Legacy = "legacy", a2.Segwit = "segwit", a2.Bech32 = "bech32", a2.Taproot = "taproot", a2))(be || {}),
|
|
317
|
-
var de = typeof Buffer > "u" || !
|
|
316
|
+
var be = ((a2) => (a2.Legacy = "legacy", a2.Segwit = "segwit", a2.Bech32 = "bech32", a2.Taproot = "taproot", a2))(be || {}), Le = ((r2) => (r2.Mainnet = "mainnet", r2.Testnet = "testnet", r2))(Le || {}), Pe = { legacy: { prefix: { mainnet: "1", testnet: "m" }, length: { min: 26, max: 34 }, casing: "mixed", exclude: "0OIl" }, segwit: { prefix: { mainnet: "3", testnet: "2" }, length: { min: 26, max: 34 }, casing: "mixed", exclude: "0OIl" }, bech32: { prefix: { mainnet: "bc1", testnet: "tb1" }, length: { min: 42, max: 42 }, casing: "lower", exclude: "1bBiIoO" }, taproot: { prefix: { mainnet: "bc1p", testnet: "tb1p" }, length: { min: 62, max: 62 }, casing: "lower", exclude: "1bBiIoO" } };
|
|
317
|
+
var de = typeof Buffer > "u" || !Be("base64") ? (i2) => {
|
|
318
318
|
let e2 = new TextEncoder().encode(i2), r2 = Array.from(e2, (t2) => String.fromCodePoint(t2)).join("");
|
|
319
319
|
return btoa(r2);
|
|
320
|
-
} : (i2) => Buffer.from(i2).toString("base64"), ge = typeof Buffer > "u" || !
|
|
321
|
-
function
|
|
320
|
+
} : (i2) => Buffer.from(i2).toString("base64"), ge = typeof Buffer > "u" || !Be("base64url") ? (i2) => de(i2).replaceAll("+", "-").replaceAll("/", "_").replaceAll(/=+$/g, "") : (i2) => Buffer.from(i2).toString("base64url");
|
|
321
|
+
function Be(i2) {
|
|
322
322
|
try {
|
|
323
323
|
return typeof Buffer.from("test").toString(i2) == "string";
|
|
324
324
|
} catch {
|
|
325
325
|
return false;
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
|
|
329
|
-
let { deprecated: e2, since: r2, until: t2, proposed: a2 } = i2, n2 = `[@faker-js/faker]: ${e2} is deprecated`;
|
|
330
|
-
r2 && (n2 += ` since v${r2}`), t2 && (n2 += ` and will be removed in v${t2}`), a2 && (n2 += `. Please use ${a2} instead`), console.warn(`${n2}.`);
|
|
331
|
-
}
|
|
332
|
-
var Mr = Object.fromEntries([["А", "A"], ["а", "a"], ["Б", "B"], ["б", "b"], ["В", "V"], ["в", "v"], ["Г", "G"], ["г", "g"], ["Д", "D"], ["д", "d"], ["ъе", "ye"], ["Ъе", "Ye"], ["ъЕ", "yE"], ["ЪЕ", "YE"], ["Е", "E"], ["е", "e"], ["Ё", "Yo"], ["ё", "yo"], ["Ж", "Zh"], ["ж", "zh"], ["З", "Z"], ["з", "z"], ["И", "I"], ["и", "i"], ["ый", "iy"], ["Ый", "Iy"], ["ЫЙ", "IY"], ["ыЙ", "iY"], ["Й", "Y"], ["й", "y"], ["К", "K"], ["к", "k"], ["Л", "L"], ["л", "l"], ["М", "M"], ["м", "m"], ["Н", "N"], ["н", "n"], ["О", "O"], ["о", "o"], ["П", "P"], ["п", "p"], ["Р", "R"], ["р", "r"], ["С", "S"], ["с", "s"], ["Т", "T"], ["т", "t"], ["У", "U"], ["у", "u"], ["Ф", "F"], ["ф", "f"], ["Х", "Kh"], ["х", "kh"], ["Ц", "Ts"], ["ц", "ts"], ["Ч", "Ch"], ["ч", "ch"], ["Ш", "Sh"], ["ш", "sh"], ["Щ", "Sch"], ["щ", "sch"], ["Ъ", ""], ["ъ", ""], ["Ы", "Y"], ["ы", "y"], ["Ь", ""], ["ь", ""], ["Э", "E"], ["э", "e"], ["Ю", "Yu"], ["ю", "yu"], ["Я", "Ya"], ["я", "ya"]]), Tr = Object.fromEntries([["α", "a"], ["β", "v"], ["γ", "g"], ["δ", "d"], ["ε", "e"], ["ζ", "z"], ["η", "i"], ["θ", "th"], ["ι", "i"], ["κ", "k"], ["λ", "l"], ["μ", "m"], ["ν", "n"], ["ξ", "ks"], ["ο", "o"], ["π", "p"], ["ρ", "r"], ["σ", "s"], ["τ", "t"], ["υ", "y"], ["φ", "f"], ["χ", "x"], ["ψ", "ps"], ["ω", "o"], ["ά", "a"], ["έ", "e"], ["ί", "i"], ["ό", "o"], ["ύ", "y"], ["ή", "i"], ["ώ", "o"], ["ς", "s"], ["ϊ", "i"], ["ΰ", "y"], ["ϋ", "y"], ["ΐ", "i"], ["Α", "A"], ["Β", "B"], ["Γ", "G"], ["Δ", "D"], ["Ε", "E"], ["Ζ", "Z"], ["Η", "I"], ["Θ", "TH"], ["Ι", "I"], ["Κ", "K"], ["Λ", "L"], ["Μ", "M"], ["Ν", "N"], ["Ξ", "KS"], ["Ο", "O"], ["Π", "P"], ["Ρ", "R"], ["Σ", "S"], ["Τ", "T"], ["Υ", "Y"], ["Φ", "F"], ["Χ", "X"], ["Ψ", "PS"], ["Ω", "O"], ["Ά", "A"], ["Έ", "E"], ["Ί", "I"], ["Ό", "O"], ["Ύ", "Y"], ["Ή", "I"], ["Ώ", "O"], ["Ϊ", "I"], ["Ϋ", "Y"]]), Cr = Object.fromEntries([["ء", "e"], ["آ", "a"], ["أ", "a"], ["ؤ", "w"], ["إ", "i"], ["ئ", "y"], ["ا", "a"], ["ب", "b"], ["ة", "t"], ["ت", "t"], ["ث", "th"], ["ج", "j"], ["ح", "h"], ["خ", "kh"], ["د", "d"], ["ذ", "dh"], ["ر", "r"], ["ز", "z"], ["س", "s"], ["ش", "sh"], ["ص", "s"], ["ض", "d"], ["ط", "t"], ["ظ", "z"], ["ع", "e"], ["غ", "gh"], ["ـ", "_"], ["ف", "f"], ["ق", "q"], ["ك", "k"], ["ل", "l"], ["م", "m"], ["ن", "n"], ["ه", "h"], ["و", "w"], ["ى", "a"], ["ي", "y"], ["َ", "a"], ["ُ", "u"], ["ِ", "i"]]), Nr = Object.fromEntries([["ա", "a"], ["Ա", "A"], ["բ", "b"], ["Բ", "B"], ["գ", "g"], ["Գ", "G"], ["դ", "d"], ["Դ", "D"], ["ե", "ye"], ["Ե", "Ye"], ["զ", "z"], ["Զ", "Z"], ["է", "e"], ["Է", "E"], ["ը", "y"], ["Ը", "Y"], ["թ", "t"], ["Թ", "T"], ["ժ", "zh"], ["Ժ", "Zh"], ["ի", "i"], ["Ի", "I"], ["լ", "l"], ["Լ", "L"], ["խ", "kh"], ["Խ", "Kh"], ["ծ", "ts"], ["Ծ", "Ts"], ["կ", "k"], ["Կ", "K"], ["հ", "h"], ["Հ", "H"], ["ձ", "dz"], ["Ձ", "Dz"], ["ղ", "gh"], ["Ղ", "Gh"], ["ճ", "tch"], ["Ճ", "Tch"], ["մ", "m"], ["Մ", "M"], ["յ", "y"], ["Յ", "Y"], ["ն", "n"], ["Ն", "N"], ["շ", "sh"], ["Շ", "Sh"], ["ո", "vo"], ["Ո", "Vo"], ["չ", "ch"], ["Չ", "Ch"], ["պ", "p"], ["Պ", "P"], ["ջ", "j"], ["Ջ", "J"], ["ռ", "r"], ["Ռ", "R"], ["ս", "s"], ["Ս", "S"], ["վ", "v"], ["Վ", "V"], ["տ", "t"], ["Տ", "T"], ["ր", "r"], ["Ր", "R"], ["ց", "c"], ["Ց", "C"], ["ու", "u"], ["ՈՒ", "U"], ["Ու", "U"], ["փ", "p"], ["Փ", "P"], ["ք", "q"], ["Ք", "Q"], ["օ", "o"], ["Օ", "O"], ["ֆ", "f"], ["Ֆ", "F"], ["և", "yev"]]), Dr = Object.fromEntries([["چ", "ch"], ["ک", "k"], ["گ", "g"], ["پ", "p"], ["ژ", "zh"], ["ی", "y"]]), Rr = Object.fromEntries([["א", "a"], ["ב", "b"], ["ג", "g"], ["ד", "d"], ["ה", "h"], ["ו", "v"], ["ז", "z"], ["ח", "ch"], ["ט", "t"], ["י", "y"], ["כ", "k"], ["ך", "kh"], ["ל", "l"], ["ם", "m"], ["מ", "m"], ["ן", "n"], ["נ", "n"], ["ס", "s"], ["ע", "a"], ["פ", "f"], ["ף", "ph"], ["צ", "ts"], ["ץ", "ts"], ["ק", "k"], ["ר", "r"], ["ש", "sh"], ["ת", "t"], ["ו", "v"]]), ye = { ...Mr, ...Tr, ...Cr, ...Dr, ...Nr, ...Rr };
|
|
328
|
+
var Tr = Object.fromEntries([["А", "A"], ["а", "a"], ["Б", "B"], ["б", "b"], ["В", "V"], ["в", "v"], ["Г", "G"], ["г", "g"], ["Д", "D"], ["д", "d"], ["ъе", "ye"], ["Ъе", "Ye"], ["ъЕ", "yE"], ["ЪЕ", "YE"], ["Е", "E"], ["е", "e"], ["Ё", "Yo"], ["ё", "yo"], ["Ж", "Zh"], ["ж", "zh"], ["З", "Z"], ["з", "z"], ["И", "I"], ["и", "i"], ["ый", "iy"], ["Ый", "Iy"], ["ЫЙ", "IY"], ["ыЙ", "iY"], ["Й", "Y"], ["й", "y"], ["К", "K"], ["к", "k"], ["Л", "L"], ["л", "l"], ["М", "M"], ["м", "m"], ["Н", "N"], ["н", "n"], ["О", "O"], ["о", "o"], ["П", "P"], ["п", "p"], ["Р", "R"], ["р", "r"], ["С", "S"], ["с", "s"], ["Т", "T"], ["т", "t"], ["У", "U"], ["у", "u"], ["Ф", "F"], ["ф", "f"], ["Х", "Kh"], ["х", "kh"], ["Ц", "Ts"], ["ц", "ts"], ["Ч", "Ch"], ["ч", "ch"], ["Ш", "Sh"], ["ш", "sh"], ["Щ", "Sch"], ["щ", "sch"], ["Ъ", ""], ["ъ", ""], ["Ы", "Y"], ["ы", "y"], ["Ь", ""], ["ь", ""], ["Э", "E"], ["э", "e"], ["Ю", "Yu"], ["ю", "yu"], ["Я", "Ya"], ["я", "ya"]]), Mr = Object.fromEntries([["α", "a"], ["β", "v"], ["γ", "g"], ["δ", "d"], ["ε", "e"], ["ζ", "z"], ["η", "i"], ["θ", "th"], ["ι", "i"], ["κ", "k"], ["λ", "l"], ["μ", "m"], ["ν", "n"], ["ξ", "ks"], ["ο", "o"], ["π", "p"], ["ρ", "r"], ["σ", "s"], ["τ", "t"], ["υ", "y"], ["φ", "f"], ["χ", "x"], ["ψ", "ps"], ["ω", "o"], ["ά", "a"], ["έ", "e"], ["ί", "i"], ["ό", "o"], ["ύ", "y"], ["ή", "i"], ["ώ", "o"], ["ς", "s"], ["ϊ", "i"], ["ΰ", "y"], ["ϋ", "y"], ["ΐ", "i"], ["Α", "A"], ["Β", "B"], ["Γ", "G"], ["Δ", "D"], ["Ε", "E"], ["Ζ", "Z"], ["Η", "I"], ["Θ", "TH"], ["Ι", "I"], ["Κ", "K"], ["Λ", "L"], ["Μ", "M"], ["Ν", "N"], ["Ξ", "KS"], ["Ο", "O"], ["Π", "P"], ["Ρ", "R"], ["Σ", "S"], ["Τ", "T"], ["Υ", "Y"], ["Φ", "F"], ["Χ", "X"], ["Ψ", "PS"], ["Ω", "O"], ["Ά", "A"], ["Έ", "E"], ["Ί", "I"], ["Ό", "O"], ["Ύ", "Y"], ["Ή", "I"], ["Ώ", "O"], ["Ϊ", "I"], ["Ϋ", "Y"]]), Cr = Object.fromEntries([["ء", "e"], ["آ", "a"], ["أ", "a"], ["ؤ", "w"], ["إ", "i"], ["ئ", "y"], ["ا", "a"], ["ب", "b"], ["ة", "t"], ["ت", "t"], ["ث", "th"], ["ج", "j"], ["ح", "h"], ["خ", "kh"], ["د", "d"], ["ذ", "dh"], ["ر", "r"], ["ز", "z"], ["س", "s"], ["ش", "sh"], ["ص", "s"], ["ض", "d"], ["ط", "t"], ["ظ", "z"], ["ع", "e"], ["غ", "gh"], ["ـ", "_"], ["ف", "f"], ["ق", "q"], ["ك", "k"], ["ل", "l"], ["م", "m"], ["ن", "n"], ["ه", "h"], ["و", "w"], ["ى", "a"], ["ي", "y"], ["َ", "a"], ["ُ", "u"], ["ِ", "i"]]), Nr = Object.fromEntries([["ա", "a"], ["Ա", "A"], ["բ", "b"], ["Բ", "B"], ["գ", "g"], ["Գ", "G"], ["դ", "d"], ["Դ", "D"], ["ե", "ye"], ["Ե", "Ye"], ["զ", "z"], ["Զ", "Z"], ["է", "e"], ["Է", "E"], ["ը", "y"], ["Ը", "Y"], ["թ", "t"], ["Թ", "T"], ["ժ", "zh"], ["Ժ", "Zh"], ["ի", "i"], ["Ի", "I"], ["լ", "l"], ["Լ", "L"], ["խ", "kh"], ["Խ", "Kh"], ["ծ", "ts"], ["Ծ", "Ts"], ["կ", "k"], ["Կ", "K"], ["հ", "h"], ["Հ", "H"], ["ձ", "dz"], ["Ձ", "Dz"], ["ղ", "gh"], ["Ղ", "Gh"], ["ճ", "tch"], ["Ճ", "Tch"], ["մ", "m"], ["Մ", "M"], ["յ", "y"], ["Յ", "Y"], ["ն", "n"], ["Ն", "N"], ["շ", "sh"], ["Շ", "Sh"], ["ո", "vo"], ["Ո", "Vo"], ["չ", "ch"], ["Չ", "Ch"], ["պ", "p"], ["Պ", "P"], ["ջ", "j"], ["Ջ", "J"], ["ռ", "r"], ["Ռ", "R"], ["ս", "s"], ["Ս", "S"], ["վ", "v"], ["Վ", "V"], ["տ", "t"], ["Տ", "T"], ["ր", "r"], ["Ր", "R"], ["ց", "c"], ["Ց", "C"], ["ու", "u"], ["ՈՒ", "U"], ["Ու", "U"], ["փ", "p"], ["Փ", "P"], ["ք", "q"], ["Ք", "Q"], ["օ", "o"], ["Օ", "O"], ["ֆ", "f"], ["Ֆ", "F"], ["և", "yev"]]), Dr = Object.fromEntries([["چ", "ch"], ["ک", "k"], ["گ", "g"], ["پ", "p"], ["ژ", "zh"], ["ی", "y"]]), Rr = Object.fromEntries([["א", "a"], ["ב", "b"], ["ג", "g"], ["ד", "d"], ["ה", "h"], ["ו", "v"], ["ז", "z"], ["ח", "ch"], ["ט", "t"], ["י", "y"], ["כ", "k"], ["ך", "kh"], ["ל", "l"], ["ם", "m"], ["מ", "m"], ["ן", "n"], ["נ", "n"], ["ס", "s"], ["ע", "a"], ["פ", "f"], ["ף", "ph"], ["צ", "ts"], ["ץ", "ts"], ["ק", "k"], ["ר", "r"], ["ש", "sh"], ["ת", "t"], ["ו", "v"]]), ye = { ...Tr, ...Mr, ...Cr, ...Dr, ...Nr, ...Rr };
|
|
333
329
|
var Lr = ((u2) => (u2.Any = "any", u2.Loopback = "loopback", u2.PrivateA = "private-a", u2.PrivateB = "private-b", u2.PrivateC = "private-c", u2.TestNet1 = "test-net-1", u2.TestNet2 = "test-net-2", u2.TestNet3 = "test-net-3", u2.LinkLocal = "link-local", u2.Multicast = "multicast", u2))(Lr || {}), Pr = { any: "0.0.0.0/0", loopback: "127.0.0.0/8", "private-a": "10.0.0.0/8", "private-b": "172.16.0.0/12", "private-c": "192.168.0.0/16", "test-net-1": "192.0.2.0/24", "test-net-2": "198.51.100.0/24", "test-net-3": "203.0.113.0/24", "link-local": "169.254.0.0/16", multicast: "224.0.0.0/4" };
|
|
334
|
-
function
|
|
330
|
+
function ve(i2) {
|
|
335
331
|
return /^[a-z][a-z-]*[a-z]$/i.exec(i2) !== null;
|
|
336
332
|
}
|
|
337
333
|
function Ie(i2, e2) {
|
|
338
334
|
let r2 = i2.helpers.slugify(e2);
|
|
339
|
-
if (
|
|
335
|
+
if (ve(r2)) return r2;
|
|
340
336
|
let t2 = i2.helpers.slugify(i2.lorem.word());
|
|
341
|
-
return
|
|
342
|
-
}
|
|
343
|
-
function ke(i2, e2) {
|
|
344
|
-
return Math.floor((i2.number.int(256) + e2) / 2).toString(16).padStart(2, "0");
|
|
337
|
+
return ve(t2) ? t2 : i2.string.alpha({ casing: "lower", length: i2.number.int({ min: 4, max: 8 }) });
|
|
345
338
|
}
|
|
346
339
|
var O = class extends p {
|
|
347
340
|
email(e2 = {}) {
|
|
@@ -356,9 +349,6 @@ var O = class extends p {
|
|
|
356
349
|
let { firstName: r2, lastName: t2, allowSpecialCharacters: a2 = false } = e2, n2 = this.faker.helpers.arrayElement(this.faker.definitions.internet.example_email);
|
|
357
350
|
return this.email({ firstName: r2, lastName: t2, provider: n2, allowSpecialCharacters: a2 });
|
|
358
351
|
}
|
|
359
|
-
userName(e2 = {}) {
|
|
360
|
-
return w({ deprecated: "faker.internet.userName()", proposed: "faker.internet.username()", since: "9.1.0", until: "10.0.0" }), this.username(e2);
|
|
361
|
-
}
|
|
362
352
|
username(e2 = {}) {
|
|
363
353
|
let { firstName: r2 = this.faker.person.firstName(), lastName: t2 = this.faker.person.lastName(), lastName: a2 } = e2, n2 = this.faker.helpers.arrayElement([".", "_"]), o2 = this.faker.number.int(99), s2 = [() => `${r2}${n2}${t2}${o2}`, () => `${r2}${n2}${t2}`];
|
|
364
354
|
a2 || s2.push(() => `${r2}${o2}`);
|
|
@@ -367,11 +357,11 @@ var O = class extends p {
|
|
|
367
357
|
if (ye[c2]) return ye[c2];
|
|
368
358
|
let u2 = c2.codePointAt(0) ?? Number.NaN;
|
|
369
359
|
return u2 < 128 ? c2 : u2.toString(36);
|
|
370
|
-
}).join(""), l2 = l2.
|
|
360
|
+
}).join(""), l2 = l2.replaceAll("'", ""), l2 = l2.replaceAll(" ", ""), l2;
|
|
371
361
|
}
|
|
372
362
|
displayName(e2 = {}) {
|
|
373
363
|
let { firstName: r2 = this.faker.person.firstName(), lastName: t2 = this.faker.person.lastName() } = e2, a2 = this.faker.helpers.arrayElement([".", "_"]), n2 = this.faker.number.int(99), o2 = [() => `${r2}${n2}`, () => `${r2}${a2}${t2}`, () => `${r2}${a2}${t2}${n2}`], s2 = this.faker.helpers.arrayElement(o2)();
|
|
374
|
-
return s2 = s2.
|
|
364
|
+
return s2 = s2.replaceAll("'", ""), s2 = s2.replaceAll(" ", ""), s2;
|
|
375
365
|
}
|
|
376
366
|
protocol() {
|
|
377
367
|
let e2 = ["http", "https"];
|
|
@@ -405,7 +395,7 @@ var O = class extends p {
|
|
|
405
395
|
ipv4(e2 = {}) {
|
|
406
396
|
let { network: r2 = "any", cidrBlock: t2 = Pr[r2] } = e2;
|
|
407
397
|
if (!/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\/\d{1,2}$/.test(t2)) throw new m(`Invalid CIDR block provided: ${t2}. Must be in the format x.x.x.x/y.`);
|
|
408
|
-
let [a2, n2] = t2.split("/"), o2 = 4294967295 >>> Number.parseInt(n2), [s2, l2, c2, u2] = a2.split(".").map(Number), f2 = (s2 << 24 | l2 << 16 | c2 << 8 | u2) & ~o2,
|
|
398
|
+
let [a2, n2] = t2.split("/"), o2 = 4294967295 >>> Number.parseInt(n2), [s2, l2, c2, u2] = a2.split(".").map(Number), f2 = (s2 << 24 | l2 << 16 | c2 << 8 | u2) & ~o2, k2 = this.faker.number.int(o2), b2 = f2 | k2;
|
|
409
399
|
return [b2 >>> 24 & 255, b2 >>> 16 & 255, b2 >>> 8 & 255, b2 & 255].join(".");
|
|
410
400
|
}
|
|
411
401
|
ipv6() {
|
|
@@ -417,11 +407,6 @@ var O = class extends p {
|
|
|
417
407
|
userAgent() {
|
|
418
408
|
return this.faker.helpers.fake(this.faker.definitions.internet.user_agent_pattern);
|
|
419
409
|
}
|
|
420
|
-
color(e2 = {}) {
|
|
421
|
-
w({ deprecated: "faker.internet.color()", proposed: "faker.color.rgb()", since: "9.6.0", until: "10.0.0" });
|
|
422
|
-
let { redBase: r2 = 0, greenBase: t2 = 0, blueBase: a2 = 0 } = e2, n2 = ke(this.faker, r2), o2 = ke(this.faker, t2), s2 = ke(this.faker, a2);
|
|
423
|
-
return `#${n2}${o2}${s2}`;
|
|
424
|
-
}
|
|
425
410
|
mac(e2 = {}) {
|
|
426
411
|
typeof e2 == "string" && (e2 = { separator: e2 });
|
|
427
412
|
let { separator: r2 = ":" } = e2, t2, a2 = "";
|
|
@@ -432,7 +417,7 @@ var O = class extends p {
|
|
|
432
417
|
let r2 = /[aeiouAEIOU]$/, t2 = /[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]$/, a2 = (c2, u2, h2, f2) => {
|
|
433
418
|
if (f2.length >= c2) return f2;
|
|
434
419
|
u2 && (h2 = t2.test(f2) ? r2 : t2);
|
|
435
|
-
let
|
|
420
|
+
let k2 = this.faker.number.int(94) + 33, b2 = String.fromCodePoint(k2);
|
|
436
421
|
return u2 && (b2 = b2.toLowerCase()), h2.test(b2) ? a2(c2, u2, h2, f2 + b2) : a2(c2, u2, h2, f2);
|
|
437
422
|
}, { length: n2 = 15, memorable: o2 = false, pattern: s2 = /\w/, prefix: l2 = "" } = e2;
|
|
438
423
|
return a2(n2, o2, s2, l2);
|
|
@@ -450,7 +435,7 @@ var O = class extends p {
|
|
|
450
435
|
}
|
|
451
436
|
};
|
|
452
437
|
var _e = ((r2) => (r2.Female = "female", r2.Male = "male", r2))(_e || {});
|
|
453
|
-
function
|
|
438
|
+
function D(i2, e2, r2) {
|
|
454
439
|
let { generic: t2, female: a2, male: n2 } = r2;
|
|
455
440
|
switch (e2) {
|
|
456
441
|
case "female":
|
|
@@ -463,17 +448,17 @@ function R(i2, e2, r2) {
|
|
|
463
448
|
}
|
|
464
449
|
var U = class extends p {
|
|
465
450
|
firstName(e2) {
|
|
466
|
-
return this.faker.helpers.arrayElement(
|
|
451
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.first_name));
|
|
467
452
|
}
|
|
468
453
|
lastName(e2) {
|
|
469
454
|
if (this.faker.rawDefinitions.person?.last_name_pattern != null) {
|
|
470
|
-
let r2 = this.faker.helpers.weightedArrayElement(
|
|
455
|
+
let r2 = this.faker.helpers.weightedArrayElement(D(this.faker, e2, this.faker.rawDefinitions.person.last_name_pattern));
|
|
471
456
|
return this.faker.helpers.fake(r2);
|
|
472
457
|
}
|
|
473
|
-
return this.faker.helpers.arrayElement(
|
|
458
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.last_name));
|
|
474
459
|
}
|
|
475
460
|
middleName(e2) {
|
|
476
|
-
return this.faker.helpers.arrayElement(
|
|
461
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.middle_name));
|
|
477
462
|
}
|
|
478
463
|
fullName(e2 = {}) {
|
|
479
464
|
let { sex: r2 = this.faker.helpers.arrayElement(["female", "male"]), firstName: t2 = this.firstName(r2), lastName: a2 = this.lastName(r2) } = e2, n2 = this.faker.helpers.weightedArrayElement(this.faker.definitions.person.name);
|
|
@@ -493,7 +478,7 @@ var U = class extends p {
|
|
|
493
478
|
return this.faker.helpers.fake(e2);
|
|
494
479
|
}
|
|
495
480
|
prefix(e2) {
|
|
496
|
-
return this.faker.helpers.arrayElement(
|
|
481
|
+
return this.faker.helpers.arrayElement(D(this.faker, e2, this.faker.definitions.person.prefix));
|
|
497
482
|
}
|
|
498
483
|
suffix() {
|
|
499
484
|
return this.faker.helpers.arrayElement(this.faker.definitions.person.suffix);
|
|
@@ -514,29 +499,29 @@ var U = class extends p {
|
|
|
514
499
|
return this.faker.helpers.arrayElement(this.faker.definitions.person.western_zodiac_sign);
|
|
515
500
|
}
|
|
516
501
|
};
|
|
517
|
-
var Br = 23283064365386963e-26, vr = 1 / 9007199254740992, { imul:
|
|
518
|
-
function
|
|
519
|
-
return typeof i2 == "number" ?
|
|
502
|
+
var Br = 23283064365386963e-26, vr = 1 / 9007199254740992, { imul: xe, trunc: Ae } = Math;
|
|
503
|
+
function $e(i2) {
|
|
504
|
+
return typeof i2 == "number" ? Fe(i2) : Ir(i2);
|
|
520
505
|
}
|
|
521
|
-
function
|
|
506
|
+
function Fe(i2) {
|
|
522
507
|
let e2 = Array.from({ length: 624 });
|
|
523
508
|
e2[0] = i2;
|
|
524
509
|
for (let r2 = 1; r2 !== 624; ++r2) {
|
|
525
510
|
let t2 = e2[r2 - 1] ^ e2[r2 - 1] >>> 30;
|
|
526
|
-
e2[r2] =
|
|
511
|
+
e2[r2] = Ae(xe(1812433253, t2) + r2);
|
|
527
512
|
}
|
|
528
513
|
return e2;
|
|
529
514
|
}
|
|
530
|
-
function
|
|
531
|
-
let e2 =
|
|
515
|
+
function Ir(i2) {
|
|
516
|
+
let e2 = Fe(19650218), r2 = 1, t2 = 0;
|
|
532
517
|
for (let a2 = Math.max(624, i2.length); a2 !== 0; --a2) {
|
|
533
518
|
let n2 = e2[r2 - 1] ^ e2[r2 - 1] >>> 30;
|
|
534
|
-
e2[r2] =
|
|
519
|
+
e2[r2] = Ae((e2[r2] ^ xe(n2, 1664525)) + i2[t2] + t2), r2++, t2++, r2 >= 624 && (e2[0] = e2[623], r2 = 1), t2 >= i2.length && (t2 = 0);
|
|
535
520
|
}
|
|
536
|
-
for (let a2 = 623; a2 !== 0; a2--) e2[r2] =
|
|
521
|
+
for (let a2 = 623; a2 !== 0; a2--) e2[r2] = Ae((e2[r2] ^ xe(e2[r2 - 1] ^ e2[r2 - 1] >>> 30, 1566083941)) - r2), r2++, r2 >= 624 && (e2[0] = e2[623], r2 = 1);
|
|
537
522
|
return e2[0] = 2147483648, e2;
|
|
538
523
|
}
|
|
539
|
-
function
|
|
524
|
+
function ke(i2) {
|
|
540
525
|
for (let r2 = 0; r2 !== 227; ++r2) {
|
|
541
526
|
let t2 = (i2[r2] & 2147483648) + (i2[r2 + 1] & 2147483647);
|
|
542
527
|
i2[r2] = i2[r2 + 397] ^ t2 >>> 1 ^ -(t2 & 1) & 2567483615;
|
|
@@ -548,14 +533,14 @@ function xe(i2) {
|
|
|
548
533
|
let e2 = (i2[623] & 2147483648) + (i2[0] & 2147483647);
|
|
549
534
|
return i2[623] = i2[396] ^ e2 >>> 1 ^ -(e2 & 1) & 2567483615, i2;
|
|
550
535
|
}
|
|
551
|
-
var
|
|
552
|
-
constructor(e2 = Math.random() * Number.MAX_SAFE_INTEGER, r2 =
|
|
536
|
+
var R = class {
|
|
537
|
+
constructor(e2 = Math.random() * Number.MAX_SAFE_INTEGER, r2 = ke($e(e2)), t2 = 0) {
|
|
553
538
|
this.states = r2;
|
|
554
539
|
this.index = t2;
|
|
555
540
|
}
|
|
556
541
|
nextU32() {
|
|
557
542
|
let e2 = this.states[this.index];
|
|
558
|
-
return e2 ^= this.states[this.index] >>> 11, e2 ^= e2 << 7 & 2636928640, e2 ^= e2 << 15 & 4022730752, e2 ^= e2 >>> 18, ++this.index >= 624 && (this.states =
|
|
543
|
+
return e2 ^= this.states[this.index] >>> 11, e2 ^= e2 << 7 & 2636928640, e2 ^= e2 << 15 & 4022730752, e2 ^= e2 >>> 18, ++this.index >= 624 && (this.states = ke(this.states), this.index = 0), e2 >>> 0;
|
|
559
544
|
}
|
|
560
545
|
nextF32() {
|
|
561
546
|
return this.nextU32() * Br;
|
|
@@ -568,14 +553,14 @@ var L = class {
|
|
|
568
553
|
return this.nextU53() * vr;
|
|
569
554
|
}
|
|
570
555
|
seed(e2) {
|
|
571
|
-
this.states =
|
|
556
|
+
this.states = ke($e(e2)), this.index = 0;
|
|
572
557
|
}
|
|
573
558
|
};
|
|
574
|
-
function
|
|
559
|
+
function L() {
|
|
575
560
|
return Math.ceil(Math.random() * Number.MAX_SAFE_INTEGER);
|
|
576
561
|
}
|
|
577
|
-
function
|
|
578
|
-
let e2 = new
|
|
562
|
+
function Ge(i2 = L()) {
|
|
563
|
+
let e2 = new R(i2);
|
|
579
564
|
return { next() {
|
|
580
565
|
return e2.nextF53();
|
|
581
566
|
}, seed(r2) {
|
|
@@ -589,7 +574,7 @@ var K = class extends x {
|
|
|
589
574
|
return r2 <= 0 ? false : r2 >= 1 ? true : this.faker.number.float() < r2;
|
|
590
575
|
}
|
|
591
576
|
};
|
|
592
|
-
function
|
|
577
|
+
function w(i2, e2 = "refDate") {
|
|
593
578
|
let r2 = new Date(i2);
|
|
594
579
|
if (Number.isNaN(r2.valueOf())) throw new m(`Invalid ${e2} date: ${i2.toString()}`);
|
|
595
580
|
return r2;
|
|
@@ -597,12 +582,12 @@ function S(i2, e2 = "refDate") {
|
|
|
597
582
|
var j = () => {
|
|
598
583
|
throw new m("You cannot edit the locale data on the faker instance");
|
|
599
584
|
};
|
|
600
|
-
function
|
|
585
|
+
function Oe(i2) {
|
|
601
586
|
let e2 = {};
|
|
602
587
|
return new Proxy(i2, { has() {
|
|
603
588
|
return true;
|
|
604
589
|
}, get(r2, t2) {
|
|
605
|
-
return typeof t2 == "symbol" || t2 === "nodeType" ? r2[t2] : t2 in e2 ? e2[t2] : e2[t2] =
|
|
590
|
+
return typeof t2 == "symbol" || t2 === "nodeType" ? r2[t2] : t2 in e2 ? e2[t2] : e2[t2] = _r(t2, r2[t2]);
|
|
606
591
|
}, set: j, deleteProperty: j });
|
|
607
592
|
}
|
|
608
593
|
function H(i2, ...e2) {
|
|
@@ -613,7 +598,7 @@ function H(i2, ...e2) {
|
|
|
613
598
|
Please contribute the missing data to the project or use a locale/Faker instance that has these data.
|
|
614
599
|
For more information see https://fakerjs.dev/guide/localization.html`);
|
|
615
600
|
}
|
|
616
|
-
function
|
|
601
|
+
function _r(i2, e2 = {}) {
|
|
617
602
|
return new Proxy(e2, { has(r2, t2) {
|
|
618
603
|
return r2[t2] != null;
|
|
619
604
|
}, get(r2, t2) {
|
|
@@ -621,64 +606,60 @@ function Ir(i2, e2 = {}) {
|
|
|
621
606
|
return typeof t2 == "symbol" || t2 === "nodeType" || H(a2, i2, t2.toString()), a2;
|
|
622
607
|
}, set: j, deleteProperty: j });
|
|
623
608
|
}
|
|
624
|
-
var
|
|
609
|
+
var P = class extends x {
|
|
625
610
|
anytime(e2 = {}) {
|
|
626
|
-
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 =
|
|
611
|
+
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = w(r2).getTime();
|
|
627
612
|
return this.between({ from: t2 - 1e3 * 60 * 60 * 24 * 365, to: t2 + 1e3 * 60 * 60 * 24 * 365 });
|
|
628
613
|
}
|
|
629
614
|
past(e2 = {}) {
|
|
630
615
|
let { years: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
631
616
|
if (r2 <= 0) throw new m("Years must be greater than 0.");
|
|
632
|
-
let a2 =
|
|
617
|
+
let a2 = w(t2).getTime();
|
|
633
618
|
return this.between({ from: a2 - r2 * 365 * 24 * 3600 * 1e3, to: a2 - 1e3 });
|
|
634
619
|
}
|
|
635
620
|
future(e2 = {}) {
|
|
636
621
|
let { years: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
637
622
|
if (r2 <= 0) throw new m("Years must be greater than 0.");
|
|
638
|
-
let a2 =
|
|
623
|
+
let a2 = w(t2).getTime();
|
|
639
624
|
return this.between({ from: a2 + 1e3, to: a2 + r2 * 365 * 24 * 3600 * 1e3 });
|
|
640
625
|
}
|
|
641
626
|
between(e2) {
|
|
642
|
-
|
|
643
|
-
let { from: r2, to: t2 } = e2, a2 = S(r2, "from").getTime(), n2 = S(t2, "to").getTime();
|
|
627
|
+
let { from: r2, to: t2 } = e2, a2 = w(r2, "from").getTime(), n2 = w(t2, "to").getTime();
|
|
644
628
|
if (a2 > n2) throw new m("`from` date must be before `to` date.");
|
|
645
629
|
return new Date(this.faker.number.int({ min: a2, max: n2 }));
|
|
646
630
|
}
|
|
647
631
|
betweens(e2) {
|
|
648
|
-
if (e2 == null || e2.from == null || e2.to == null) throw new m("Must pass an options object with `from` and `to` values.");
|
|
649
632
|
let { from: r2, to: t2, count: a2 = 3 } = e2;
|
|
650
633
|
return this.faker.helpers.multiple(() => this.between({ from: r2, to: t2 }), { count: a2 }).sort((n2, o2) => n2.getTime() - o2.getTime());
|
|
651
634
|
}
|
|
652
635
|
recent(e2 = {}) {
|
|
653
636
|
let { days: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
654
637
|
if (r2 <= 0) throw new m("Days must be greater than 0.");
|
|
655
|
-
let a2 =
|
|
638
|
+
let a2 = w(t2).getTime();
|
|
656
639
|
return this.between({ from: a2 - r2 * 24 * 3600 * 1e3, to: a2 - 1e3 });
|
|
657
640
|
}
|
|
658
641
|
soon(e2 = {}) {
|
|
659
642
|
let { days: r2 = 1, refDate: t2 = this.faker.defaultRefDate() } = e2;
|
|
660
643
|
if (r2 <= 0) throw new m("Days must be greater than 0.");
|
|
661
|
-
let a2 =
|
|
644
|
+
let a2 = w(t2).getTime();
|
|
662
645
|
return this.between({ from: a2 + 1e3, to: a2 + r2 * 24 * 3600 * 1e3 });
|
|
663
646
|
}
|
|
664
647
|
birthdate(e2 = {}) {
|
|
665
|
-
let { mode: r2 = "age", min: t2 = 18, max: a2 = 80, refDate: n2 = this.faker.defaultRefDate()
|
|
666
|
-
if ([s2, l2, o2].filter((f2) => f2 != null).length % 3 !== 0) throw new m("The 'min', 'max', and 'mode' options must be set together.");
|
|
667
|
-
let u2 = S(n2), h2 = u2.getUTCFullYear();
|
|
648
|
+
let { mode: r2 = "age", min: t2 = 18, max: a2 = 80, refDate: n2 = this.faker.defaultRefDate() } = e2, o2 = w(n2), s2 = o2.getUTCFullYear();
|
|
668
649
|
switch (r2) {
|
|
669
650
|
case "age": {
|
|
670
|
-
let
|
|
671
|
-
if (
|
|
672
|
-
return this.between({ from:
|
|
651
|
+
let c2 = new Date(o2).setUTCFullYear(s2 - a2 - 1) + 864e5, u2 = new Date(o2).setUTCFullYear(s2 - t2);
|
|
652
|
+
if (c2 > u2) throw new m(`Max age ${a2} should be greater than or equal to min age ${t2}.`);
|
|
653
|
+
return this.between({ from: c2, to: u2 });
|
|
673
654
|
}
|
|
674
655
|
case "year": {
|
|
675
|
-
let
|
|
676
|
-
if (
|
|
677
|
-
return this.between({ from:
|
|
656
|
+
let l2 = new Date(Date.UTC(0, 0, 2)).setUTCFullYear(t2), c2 = new Date(Date.UTC(0, 11, 30)).setUTCFullYear(a2);
|
|
657
|
+
if (l2 > c2) throw new m(`Max year ${a2} should be greater than or equal to min year ${t2}.`);
|
|
658
|
+
return this.between({ from: l2, to: c2 });
|
|
678
659
|
}
|
|
679
660
|
}
|
|
680
661
|
}
|
|
681
|
-
}, V = class extends
|
|
662
|
+
}, V = class extends P {
|
|
682
663
|
constructor(r2) {
|
|
683
664
|
super(r2);
|
|
684
665
|
this.faker = r2;
|
|
@@ -699,33 +680,30 @@ var B = class extends x {
|
|
|
699
680
|
return this.faker.helpers.arrayElement(this.faker.definitions.date.time_zone);
|
|
700
681
|
}
|
|
701
682
|
};
|
|
702
|
-
var
|
|
703
|
-
function
|
|
683
|
+
var $r = /\.|\(/;
|
|
684
|
+
function Ue(i2, e2, r2 = [e2, e2.rawDefinitions]) {
|
|
704
685
|
if (i2.length === 0) throw new m("Eval expression cannot be empty.");
|
|
705
686
|
if (r2.length === 0) throw new m("Eval entrypoints cannot be empty.");
|
|
706
687
|
let t2 = r2, a2 = i2;
|
|
707
688
|
do {
|
|
708
689
|
let o2;
|
|
709
|
-
a2.startsWith("(") ? [o2, t2] = Fr(a2, t2
|
|
690
|
+
a2.startsWith("(") ? [o2, t2] = Fr(a2, t2) : [o2, t2] = Or(a2, t2), a2 = a2.substring(o2), t2 = t2.filter((s2) => s2 != null).map((s2) => Array.isArray(s2) ? e2.helpers.arrayElement(s2) : s2);
|
|
710
691
|
} while (a2.length > 0 && t2.length > 0);
|
|
711
692
|
if (t2.length === 0) throw new m(`Cannot resolve expression '${i2}'`);
|
|
712
693
|
let n2 = t2[0];
|
|
713
694
|
return typeof n2 == "function" ? n2() : n2;
|
|
714
695
|
}
|
|
715
|
-
function Fr(i2, e2
|
|
716
|
-
let [
|
|
717
|
-
switch (
|
|
696
|
+
function Fr(i2, e2) {
|
|
697
|
+
let [r2, t2] = Gr(i2), a2 = i2[r2 + 1];
|
|
698
|
+
switch (a2) {
|
|
718
699
|
case ".":
|
|
719
700
|
case "(":
|
|
720
701
|
case void 0:
|
|
721
702
|
break;
|
|
722
703
|
default:
|
|
723
|
-
throw new m(`Expected dot ('.'), open parenthesis ('('), or nothing after function call but got '${
|
|
704
|
+
throw new m(`Expected dot ('.'), open parenthesis ('('), or nothing after function call but got '${a2}'`);
|
|
724
705
|
}
|
|
725
|
-
return [
|
|
726
|
-
Please remove the parentheses or replace the expression with an actual function.
|
|
727
|
-
${r2}
|
|
728
|
-
${" ".repeat(r2.length - i2.length)}^`), o2))];
|
|
706
|
+
return [r2 + (a2 === "." ? 2 : 1), e2.map((n2) => typeof n2 == "function" ? n2(...t2) : void 0)];
|
|
729
707
|
}
|
|
730
708
|
function Gr(i2) {
|
|
731
709
|
let e2 = i2.indexOf(")", 1);
|
|
@@ -747,7 +725,7 @@ function Gr(i2) {
|
|
|
747
725
|
return [e2, [r2]];
|
|
748
726
|
}
|
|
749
727
|
function Or(i2, e2) {
|
|
750
|
-
let r2 =
|
|
728
|
+
let r2 = $r.exec(i2), t2 = (r2?.[0] ?? "") === ".", a2 = r2?.index ?? i2.length, n2 = i2.substring(0, a2);
|
|
751
729
|
if (n2.length === 0) throw new m(`Expression parts cannot be empty in '${i2}'`);
|
|
752
730
|
let o2 = i2[a2 + 1];
|
|
753
731
|
if (t2 && (o2 == null || o2 === "." || o2 === "(")) throw new m(`Found dot without property name in '${i2}'`);
|
|
@@ -769,7 +747,7 @@ function Ur(i2, e2) {
|
|
|
769
747
|
return;
|
|
770
748
|
}
|
|
771
749
|
}
|
|
772
|
-
function
|
|
750
|
+
function Ke(i2) {
|
|
773
751
|
let e2 = Kr(i2.replace(/L?$/, "0"));
|
|
774
752
|
return e2 === 0 ? 0 : 10 - e2;
|
|
775
753
|
}
|
|
@@ -782,7 +760,7 @@ function Kr(i2) {
|
|
|
782
760
|
}
|
|
783
761
|
return e2 % 10;
|
|
784
762
|
}
|
|
785
|
-
function
|
|
763
|
+
function je(i2, e2, r2, t2) {
|
|
786
764
|
let a2 = 1;
|
|
787
765
|
if (e2) switch (e2) {
|
|
788
766
|
case "?": {
|
|
@@ -814,12 +792,12 @@ function jr(i2, e2 = "") {
|
|
|
814
792
|
for (c2 = a2.exec(e2); c2 != null; ) n2 = Number.parseInt(c2[1]), o2 = Number.parseInt(c2[2]), n2 > o2 && (s2 = o2, o2 = n2, n2 = s2), e2 = e2.slice(0, c2.index) + i2.number.int({ min: n2, max: o2 }).toString() + e2.slice(c2.index + c2[0].length), c2 = a2.exec(e2);
|
|
815
793
|
return e2;
|
|
816
794
|
}
|
|
817
|
-
function
|
|
795
|
+
function Ee(i2, e2 = "", r2 = "#") {
|
|
818
796
|
let t2 = "";
|
|
819
797
|
for (let a2 = 0; a2 < e2.length; a2++) e2.charAt(a2) === r2 ? t2 += i2.number.int(9) : e2.charAt(a2) === "!" ? t2 += i2.number.int({ min: 2, max: 9 }) : t2 += e2.charAt(a2);
|
|
820
798
|
return t2;
|
|
821
799
|
}
|
|
822
|
-
var
|
|
800
|
+
var B = class extends x {
|
|
823
801
|
slugify(e2 = "") {
|
|
824
802
|
return e2.normalize("NFKD").replaceAll(/[\u0300-\u036F]/g, "").replaceAll(" ", "-").replaceAll(/[^\w.-]+/g, "");
|
|
825
803
|
}
|
|
@@ -829,8 +807,8 @@ var v = class extends x {
|
|
|
829
807
|
return t2;
|
|
830
808
|
}
|
|
831
809
|
replaceCreditCardSymbols(e2 = "6453-####-####-####-###L", r2 = "#") {
|
|
832
|
-
e2 = jr(this.faker, e2), e2 =
|
|
833
|
-
let t2 =
|
|
810
|
+
e2 = jr(this.faker, e2), e2 = Ee(this.faker, e2, r2);
|
|
811
|
+
let t2 = Ke(e2);
|
|
834
812
|
return e2.replace("L", String(t2));
|
|
835
813
|
}
|
|
836
814
|
fromRegExp(e2) {
|
|
@@ -838,50 +816,50 @@ var v = class extends x {
|
|
|
838
816
|
e2 instanceof RegExp && (r2 = e2.flags.includes("i"), e2 = e2.toString(), e2 = /\/(.+?)\//.exec(e2)?.[1] ?? "");
|
|
839
817
|
let t2, a2, n2, o2 = /([.A-Za-z0-9])(?:\{(\d+)(?:,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/, s2 = o2.exec(e2);
|
|
840
818
|
for (; s2 != null; ) {
|
|
841
|
-
let f2 = s2[2],
|
|
842
|
-
n2 =
|
|
843
|
-
let
|
|
844
|
-
s2[1] === "." ?
|
|
819
|
+
let f2 = s2[2], k2 = s2[3], b2 = s2[4];
|
|
820
|
+
n2 = je(this.faker, b2, f2, k2);
|
|
821
|
+
let g2;
|
|
822
|
+
s2[1] === "." ? g2 = this.faker.string.alphanumeric(n2) : r2 ? g2 = this.faker.string.fromCharacters([s2[1].toLowerCase(), s2[1].toUpperCase()], n2) : g2 = s2[1].repeat(n2), e2 = e2.slice(0, s2.index) + g2 + e2.slice(s2.index + s2[0].length), s2 = o2.exec(e2);
|
|
845
823
|
}
|
|
846
824
|
let l2 = /(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/, c2 = /\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:,(\d+)|)\}|(\?|\*|\+)|)/;
|
|
847
825
|
for (s2 = c2.exec(e2); s2 != null; ) {
|
|
848
|
-
let f2 = s2[1] === "^",
|
|
849
|
-
for (
|
|
850
|
-
if (
|
|
851
|
-
let E2 =
|
|
826
|
+
let f2 = s2[1] === "^", k2 = s2[2] === "-", b2 = s2[4], g2 = s2[5], C2 = s2[6], y2 = [], $2 = s2[3], M2 = l2.exec($2);
|
|
827
|
+
for (k2 && y2.push(45); M2 != null; ) {
|
|
828
|
+
if (M2[0].includes("-")) {
|
|
829
|
+
let E2 = M2[0].split("-").map((d2) => d2.codePointAt(0) ?? Number.NaN);
|
|
852
830
|
if (t2 = E2[0], a2 = E2[1], t2 > a2) throw new m("Character range provided is out of order.");
|
|
853
831
|
for (let d2 = t2; d2 <= a2; d2++) if (r2 && Number.isNaN(Number(String.fromCodePoint(d2)))) {
|
|
854
832
|
let Te2 = String.fromCodePoint(d2);
|
|
855
|
-
|
|
856
|
-
} else
|
|
857
|
-
} else r2 && Number.isNaN(Number(
|
|
858
|
-
|
|
833
|
+
y2.push(Te2.toUpperCase().codePointAt(0) ?? Number.NaN, Te2.toLowerCase().codePointAt(0) ?? Number.NaN);
|
|
834
|
+
} else y2.push(d2);
|
|
835
|
+
} else r2 && Number.isNaN(Number(M2[0])) ? y2.push(M2[0].toUpperCase().codePointAt(0) ?? Number.NaN, M2[0].toLowerCase().codePointAt(0) ?? Number.NaN) : y2.push(M2[0].codePointAt(0) ?? Number.NaN);
|
|
836
|
+
$2 = $2.substring(M2[0].length), M2 = l2.exec($2);
|
|
859
837
|
}
|
|
860
|
-
if (n2 =
|
|
838
|
+
if (n2 = je(this.faker, C2, b2, g2), f2) {
|
|
861
839
|
let E2 = -1;
|
|
862
840
|
for (let d2 = 48; d2 <= 57; d2++) {
|
|
863
|
-
if (E2 =
|
|
864
|
-
|
|
841
|
+
if (E2 = y2.indexOf(d2), E2 > -1) {
|
|
842
|
+
y2.splice(E2, 1);
|
|
865
843
|
continue;
|
|
866
844
|
}
|
|
867
|
-
|
|
845
|
+
y2.push(d2);
|
|
868
846
|
}
|
|
869
847
|
for (let d2 = 65; d2 <= 90; d2++) {
|
|
870
|
-
if (E2 =
|
|
871
|
-
|
|
848
|
+
if (E2 = y2.indexOf(d2), E2 > -1) {
|
|
849
|
+
y2.splice(E2, 1);
|
|
872
850
|
continue;
|
|
873
851
|
}
|
|
874
|
-
|
|
852
|
+
y2.push(d2);
|
|
875
853
|
}
|
|
876
854
|
for (let d2 = 97; d2 <= 122; d2++) {
|
|
877
|
-
if (E2 =
|
|
878
|
-
|
|
855
|
+
if (E2 = y2.indexOf(d2), E2 > -1) {
|
|
856
|
+
y2.splice(E2, 1);
|
|
879
857
|
continue;
|
|
880
858
|
}
|
|
881
|
-
|
|
859
|
+
y2.push(d2);
|
|
882
860
|
}
|
|
883
861
|
}
|
|
884
|
-
let yr2 = this.multiple(() => String.fromCodePoint(this.arrayElement(
|
|
862
|
+
let yr2 = this.multiple(() => String.fromCodePoint(this.arrayElement(y2)), { count: n2 }).join("");
|
|
885
863
|
e2 = e2.slice(0, s2.index) + yr2 + e2.slice(s2.index + s2[0].length), s2 = c2.exec(e2);
|
|
886
864
|
}
|
|
887
865
|
let u2 = /(.)\{(\d+),(\d+)\}/;
|
|
@@ -972,7 +950,7 @@ var v = class extends x {
|
|
|
972
950
|
let t2 = this.rangeToNumber(r2.count ?? 3);
|
|
973
951
|
return t2 <= 0 ? [] : Array.from({ length: t2 }, e2);
|
|
974
952
|
}
|
|
975
|
-
}, z = class extends
|
|
953
|
+
}, z = class extends B {
|
|
976
954
|
constructor(r2) {
|
|
977
955
|
super(r2);
|
|
978
956
|
this.faker = r2;
|
|
@@ -981,10 +959,104 @@ var v = class extends x {
|
|
|
981
959
|
r2 = typeof r2 == "string" ? r2 : this.arrayElement(r2);
|
|
982
960
|
let t2 = r2.search(/{{[a-z]/), a2 = r2.indexOf("}}", t2);
|
|
983
961
|
if (t2 === -1 || a2 === -1) return r2;
|
|
984
|
-
let o2 = r2.substring(t2 + 2, a2 + 2).replace("}}", "").replace("{{", ""), s2 =
|
|
962
|
+
let o2 = r2.substring(t2 + 2, a2 + 2).replace("}}", "").replace("{{", ""), s2 = Ue(o2, this.faker), l2 = String(s2), c2 = r2.substring(0, t2) + l2 + r2.substring(a2 + 2);
|
|
985
963
|
return this.fake(c2);
|
|
986
964
|
}
|
|
987
965
|
};
|
|
966
|
+
var v = class extends x {
|
|
967
|
+
latitude(e2 = {}) {
|
|
968
|
+
let { max: r2 = 90, min: t2 = -90, precision: a2 = 4 } = e2;
|
|
969
|
+
return this.faker.number.float({ min: t2, max: r2, fractionDigits: a2 });
|
|
970
|
+
}
|
|
971
|
+
longitude(e2 = {}) {
|
|
972
|
+
let { max: r2 = 180, min: t2 = -180, precision: a2 = 4 } = e2;
|
|
973
|
+
return this.faker.number.float({ max: r2, min: t2, fractionDigits: a2 });
|
|
974
|
+
}
|
|
975
|
+
nearbyGPSCoordinate(e2 = {}) {
|
|
976
|
+
let { origin: r2, radius: t2 = 10, isMetric: a2 = false } = e2;
|
|
977
|
+
if (r2 == null) return [this.latitude(), this.longitude()];
|
|
978
|
+
let n2 = this.faker.number.float({ max: 2 * Math.PI, fractionDigits: 5 }), o2 = a2 ? t2 : t2 * 1.60934, l2 = this.faker.number.float({ max: o2, fractionDigits: 3 }) * 0.995, c2 = 4e4 / 360, u2 = l2 / c2, h2 = [r2[0] + Math.sin(n2) * u2, r2[1] + Math.cos(n2) * u2];
|
|
979
|
+
return h2[0] = h2[0] % 180, (h2[0] < -90 || h2[0] > 90) && (h2[0] = Math.sign(h2[0]) * 180 - h2[0], h2[1] += 180), h2[1] = (h2[1] % 360 + 540) % 360 - 180, [h2[0], h2[1]];
|
|
980
|
+
}
|
|
981
|
+
}, Y = class extends v {
|
|
982
|
+
constructor(r2) {
|
|
983
|
+
super(r2);
|
|
984
|
+
this.faker = r2;
|
|
985
|
+
}
|
|
986
|
+
zipCode(r2 = {}) {
|
|
987
|
+
typeof r2 == "string" && (r2 = { format: r2 });
|
|
988
|
+
let { state: t2 } = r2;
|
|
989
|
+
if (t2 != null) {
|
|
990
|
+
let n2 = this.faker.definitions.location.postcode_by_state[t2];
|
|
991
|
+
if (n2 == null) throw new m(`No zip code definition found for state "${t2}"`);
|
|
992
|
+
return this.faker.helpers.fake(n2);
|
|
993
|
+
}
|
|
994
|
+
let { format: a2 = this.faker.definitions.location.postcode } = r2;
|
|
995
|
+
return typeof a2 == "string" && (a2 = [a2]), a2 = this.faker.helpers.arrayElement(a2), this.faker.helpers.replaceSymbols(a2);
|
|
996
|
+
}
|
|
997
|
+
city() {
|
|
998
|
+
return this.faker.helpers.fake(this.faker.definitions.location.city_pattern);
|
|
999
|
+
}
|
|
1000
|
+
buildingNumber() {
|
|
1001
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.building_number).replaceAll(/#+/g, (r2) => this.faker.string.numeric({ length: r2.length, allowLeadingZeros: false }));
|
|
1002
|
+
}
|
|
1003
|
+
street() {
|
|
1004
|
+
return this.faker.helpers.fake(this.faker.definitions.location.street_pattern);
|
|
1005
|
+
}
|
|
1006
|
+
streetAddress(r2 = {}) {
|
|
1007
|
+
typeof r2 == "boolean" && (r2 = { useFullAddress: r2 });
|
|
1008
|
+
let { useFullAddress: t2 } = r2, n2 = this.faker.definitions.location.street_address[t2 ? "full" : "normal"];
|
|
1009
|
+
return this.faker.helpers.fake(n2);
|
|
1010
|
+
}
|
|
1011
|
+
secondaryAddress() {
|
|
1012
|
+
return this.faker.helpers.fake(this.faker.definitions.location.secondary_address).replaceAll(/#+/g, (r2) => this.faker.string.numeric({ length: r2.length, allowLeadingZeros: false }));
|
|
1013
|
+
}
|
|
1014
|
+
county() {
|
|
1015
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.county);
|
|
1016
|
+
}
|
|
1017
|
+
country() {
|
|
1018
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.country);
|
|
1019
|
+
}
|
|
1020
|
+
continent() {
|
|
1021
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.continent);
|
|
1022
|
+
}
|
|
1023
|
+
countryCode(r2 = {}) {
|
|
1024
|
+
typeof r2 == "string" && (r2 = { variant: r2 });
|
|
1025
|
+
let { variant: t2 = "alpha-2" } = r2, a2 = (() => {
|
|
1026
|
+
switch (t2) {
|
|
1027
|
+
case "numeric":
|
|
1028
|
+
return "numeric";
|
|
1029
|
+
case "alpha-3":
|
|
1030
|
+
return "alpha3";
|
|
1031
|
+
case "alpha-2":
|
|
1032
|
+
return "alpha2";
|
|
1033
|
+
}
|
|
1034
|
+
})();
|
|
1035
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.country_code)[a2];
|
|
1036
|
+
}
|
|
1037
|
+
state(r2 = {}) {
|
|
1038
|
+
let { abbreviated: t2 = false } = r2, a2 = t2 ? this.faker.definitions.location.state_abbr : this.faker.definitions.location.state;
|
|
1039
|
+
return this.faker.helpers.arrayElement(a2);
|
|
1040
|
+
}
|
|
1041
|
+
direction(r2 = {}) {
|
|
1042
|
+
let { abbreviated: t2 = false } = r2;
|
|
1043
|
+
return t2 ? this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal_abbr, ...this.faker.definitions.location.direction.ordinal_abbr]) : this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal, ...this.faker.definitions.location.direction.ordinal]);
|
|
1044
|
+
}
|
|
1045
|
+
cardinalDirection(r2 = {}) {
|
|
1046
|
+
let { abbreviated: t2 = false } = r2;
|
|
1047
|
+
return t2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal);
|
|
1048
|
+
}
|
|
1049
|
+
ordinalDirection(r2 = {}) {
|
|
1050
|
+
let { abbreviated: t2 = false } = r2;
|
|
1051
|
+
return t2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal);
|
|
1052
|
+
}
|
|
1053
|
+
timeZone() {
|
|
1054
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.time_zone);
|
|
1055
|
+
}
|
|
1056
|
+
language() {
|
|
1057
|
+
return this.faker.helpers.arrayElement(this.faker.definitions.location.language);
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
988
1060
|
var W = class extends x {
|
|
989
1061
|
int(e2 = {}) {
|
|
990
1062
|
typeof e2 == "number" && (e2 = { max: e2 });
|
|
@@ -1049,16 +1121,16 @@ var W = class extends x {
|
|
|
1049
1121
|
return l2;
|
|
1050
1122
|
}
|
|
1051
1123
|
};
|
|
1052
|
-
var
|
|
1053
|
-
function
|
|
1124
|
+
var we = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
1125
|
+
function He(i2) {
|
|
1054
1126
|
let e2 = i2.valueOf(), r2 = "";
|
|
1055
1127
|
for (let t2 = 10; t2 > 0; t2--) {
|
|
1056
1128
|
let a2 = e2 % 32;
|
|
1057
|
-
r2 =
|
|
1129
|
+
r2 = we[a2] + r2, e2 = (e2 - a2) / 32;
|
|
1058
1130
|
}
|
|
1059
1131
|
return r2;
|
|
1060
1132
|
}
|
|
1061
|
-
var
|
|
1133
|
+
var Z = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], J = [..."abcdefghijklmnopqrstuvwxyz"], Ve = [..."0123456789"], X = class extends x {
|
|
1062
1134
|
fromCharacters(e2, r2 = 1) {
|
|
1063
1135
|
if (r2 = this.faker.helpers.rangeToNumber(r2), r2 <= 0) return "";
|
|
1064
1136
|
if (typeof e2 == "string" && (e2 = [...e2]), e2.length === 0) throw new m("Unable to generate string: No characters to select from.");
|
|
@@ -1073,15 +1145,15 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1073
1145
|
let n2;
|
|
1074
1146
|
switch (t2) {
|
|
1075
1147
|
case "upper": {
|
|
1076
|
-
n2 = [...
|
|
1148
|
+
n2 = [...Z];
|
|
1077
1149
|
break;
|
|
1078
1150
|
}
|
|
1079
1151
|
case "lower": {
|
|
1080
|
-
n2 = [...
|
|
1152
|
+
n2 = [...J];
|
|
1081
1153
|
break;
|
|
1082
1154
|
}
|
|
1083
1155
|
case "mixed": {
|
|
1084
|
-
n2 = [...
|
|
1156
|
+
n2 = [...J, ...Z];
|
|
1085
1157
|
break;
|
|
1086
1158
|
}
|
|
1087
1159
|
}
|
|
@@ -1093,18 +1165,18 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1093
1165
|
if (r2 <= 0) return "";
|
|
1094
1166
|
let { casing: t2 = "mixed" } = e2, { exclude: a2 = [] } = e2;
|
|
1095
1167
|
typeof a2 == "string" && (a2 = [...a2]);
|
|
1096
|
-
let n2 = [...
|
|
1168
|
+
let n2 = [...Ve];
|
|
1097
1169
|
switch (t2) {
|
|
1098
1170
|
case "upper": {
|
|
1099
|
-
n2.push(...
|
|
1171
|
+
n2.push(...Z);
|
|
1100
1172
|
break;
|
|
1101
1173
|
}
|
|
1102
1174
|
case "lower": {
|
|
1103
|
-
n2.push(...
|
|
1175
|
+
n2.push(...J);
|
|
1104
1176
|
break;
|
|
1105
1177
|
}
|
|
1106
1178
|
case "mixed": {
|
|
1107
|
-
n2.push(...
|
|
1179
|
+
n2.push(...J, ...Z);
|
|
1108
1180
|
break;
|
|
1109
1181
|
}
|
|
1110
1182
|
}
|
|
@@ -1130,7 +1202,7 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1130
1202
|
if (r2 <= 0) return "";
|
|
1131
1203
|
let { allowLeadingZeros: t2 = true } = e2, { exclude: a2 = [] } = e2;
|
|
1132
1204
|
typeof a2 == "string" && (a2 = [...a2]);
|
|
1133
|
-
let n2 =
|
|
1205
|
+
let n2 = Ve.filter((s2) => !a2.includes(s2));
|
|
1134
1206
|
if (n2.length === 0 || n2.length === 1 && !t2 && n2[0] === "0") throw new m("Unable to generate numeric string, because all possible digits are excluded.");
|
|
1135
1207
|
let o2 = "";
|
|
1136
1208
|
return !t2 && !a2.includes("0") && (o2 += this.faker.helpers.arrayElement(n2.filter((s2) => s2 !== "0"))), o2 += this.fromCharacters(n2, r2 - o2.length), o2;
|
|
@@ -1145,8 +1217,8 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1145
1217
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll("x", () => this.faker.number.hex({ min: 0, max: 15 })).replaceAll("y", () => this.faker.number.hex({ min: 8, max: 11 }));
|
|
1146
1218
|
}
|
|
1147
1219
|
ulid(e2 = {}) {
|
|
1148
|
-
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 =
|
|
1149
|
-
return
|
|
1220
|
+
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = w(r2);
|
|
1221
|
+
return He(t2) + this.fromCharacters(we, 16);
|
|
1150
1222
|
}
|
|
1151
1223
|
nanoid(e2 = 21) {
|
|
1152
1224
|
if (e2 = this.faker.helpers.rangeToNumber(e2), e2 <= 0) return "";
|
|
@@ -1161,7 +1233,7 @@ var Y = [..."ABCDEFGHIJKLMNOPQRSTUVWXYZ"], Z = [..."abcdefghijklmnopqrstuvwxyz"]
|
|
|
1161
1233
|
return this.fromCharacters(["!", '"', "#", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "?", "@", "[", "\\", "]", "^", "_", "`", "{", "|", "}", "~"], e2);
|
|
1162
1234
|
}
|
|
1163
1235
|
};
|
|
1164
|
-
var
|
|
1236
|
+
var I = class {
|
|
1165
1237
|
_defaultRefDate = () => /* @__PURE__ */ new Date();
|
|
1166
1238
|
get defaultRefDate() {
|
|
1167
1239
|
return this._defaultRefDate;
|
|
@@ -1171,20 +1243,21 @@ var $ = class {
|
|
|
1171
1243
|
}
|
|
1172
1244
|
_randomizer;
|
|
1173
1245
|
datatype = new K(this);
|
|
1174
|
-
date = new
|
|
1175
|
-
helpers = new
|
|
1246
|
+
date = new P(this);
|
|
1247
|
+
helpers = new B(this);
|
|
1248
|
+
location = new v(this);
|
|
1176
1249
|
number = new W(this);
|
|
1177
|
-
string = new
|
|
1250
|
+
string = new X(this);
|
|
1178
1251
|
constructor(e2 = {}) {
|
|
1179
1252
|
let { randomizer: r2, seed: t2 } = e2;
|
|
1180
|
-
r2 != null && t2 != null && r2.seed(t2), this._randomizer = r2 ??
|
|
1253
|
+
r2 != null && t2 != null && r2.seed(t2), this._randomizer = r2 ?? Ge(t2);
|
|
1181
1254
|
}
|
|
1182
|
-
seed(e2 =
|
|
1255
|
+
seed(e2 = L()) {
|
|
1183
1256
|
return this._randomizer.seed(e2), e2;
|
|
1184
1257
|
}
|
|
1185
1258
|
};
|
|
1186
|
-
new
|
|
1187
|
-
function
|
|
1259
|
+
new I();
|
|
1260
|
+
function ze(i2) {
|
|
1188
1261
|
let e2 = {};
|
|
1189
1262
|
for (let r2 of i2) for (let t2 in r2) {
|
|
1190
1263
|
let a2 = r2[t2];
|
|
@@ -1192,7 +1265,7 @@ function We(i2) {
|
|
|
1192
1265
|
}
|
|
1193
1266
|
return e2;
|
|
1194
1267
|
}
|
|
1195
|
-
var
|
|
1268
|
+
var Q = class extends p {
|
|
1196
1269
|
dog() {
|
|
1197
1270
|
return this.faker.helpers.arrayElement(this.faker.definitions.animal.dog);
|
|
1198
1271
|
}
|
|
@@ -1242,7 +1315,7 @@ var X = class extends p {
|
|
|
1242
1315
|
return this.faker.helpers.arrayElement(this.faker.definitions.animal.pet_name);
|
|
1243
1316
|
}
|
|
1244
1317
|
};
|
|
1245
|
-
var
|
|
1318
|
+
var q = class extends p {
|
|
1246
1319
|
author() {
|
|
1247
1320
|
return this.faker.helpers.arrayElement(this.faker.definitions.book.author);
|
|
1248
1321
|
}
|
|
@@ -1262,7 +1335,7 @@ var Q = class extends p {
|
|
|
1262
1335
|
return this.faker.helpers.arrayElement(this.faker.definitions.book.title);
|
|
1263
1336
|
}
|
|
1264
1337
|
};
|
|
1265
|
-
var Hr = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999, 4], [6389999, 3], [6397999, 4], [6399999, 7], [6449999, 3], [6459999, 7], [6479999, 3], [6489999, 7], [6549999, 3], [6559999, 4], [6999999, 3], [8499999, 4], [8999999, 5], [9499999, 6], [9999999, 7]], 1: [[99999, 3], [299999, 2], [349999, 3], [399999, 4], [499999, 3], [699999, 2], [999999, 4], [3979999, 3], [5499999, 4], [6499999, 5], [6799999, 4], [6859999, 5], [7139999, 4], [7169999, 3], [7319999, 4], [7399999, 7], [7749999, 5], [7753999, 7], [7763999, 5], [7764999, 7], [7769999, 5], [7782999, 7], [7899999, 5], [7999999, 4], [8004999, 5], [8049999, 5], [8379999, 5], [8384999, 7], [8671999, 5], [8675999, 4], [8697999, 5], [9159999, 6], [9165059, 7], [9168699, 6], [9169079, 7], [9195999, 6], [9196549, 7], [9729999, 6], [9877999, 4], [9911499, 6], [9911999, 7], [9989899, 6], [9999999, 7]] },
|
|
1338
|
+
var Hr = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999, 4], [6389999, 3], [6397999, 4], [6399999, 7], [6449999, 3], [6459999, 7], [6479999, 3], [6489999, 7], [6549999, 3], [6559999, 4], [6999999, 3], [8499999, 4], [8999999, 5], [9499999, 6], [9999999, 7]], 1: [[99999, 3], [299999, 2], [349999, 3], [399999, 4], [499999, 3], [699999, 2], [999999, 4], [3979999, 3], [5499999, 4], [6499999, 5], [6799999, 4], [6859999, 5], [7139999, 4], [7169999, 3], [7319999, 4], [7399999, 7], [7749999, 5], [7753999, 7], [7763999, 5], [7764999, 7], [7769999, 5], [7782999, 7], [7899999, 5], [7999999, 4], [8004999, 5], [8049999, 5], [8379999, 5], [8384999, 7], [8671999, 5], [8675999, 4], [8697999, 5], [9159999, 6], [9165059, 7], [9168699, 6], [9169079, 7], [9195999, 6], [9196549, 7], [9729999, 6], [9877999, 4], [9911499, 6], [9911999, 7], [9989899, 6], [9999999, 7]] }, ee = class extends p {
|
|
1266
1339
|
department() {
|
|
1267
1340
|
return this.faker.helpers.arrayElement(this.faker.definitions.commerce.department);
|
|
1268
1341
|
}
|
|
@@ -1292,19 +1365,19 @@ var Hr = { 0: [[1999999, 2], [2279999, 3], [2289999, 4], [3689999, 3], [3699999,
|
|
|
1292
1365
|
}
|
|
1293
1366
|
isbn(e2 = {}) {
|
|
1294
1367
|
typeof e2 == "number" && (e2 = { variant: e2 });
|
|
1295
|
-
let { variant: r2 = 13, separator: t2 = "-" } = e2, a2 = "978", [n2, o2] = this.faker.helpers.objectEntry(Hr), s2 = this.faker.string.numeric(8), l2 = Number.parseInt(s2.slice(0, -1)), c2 = o2.find(([
|
|
1368
|
+
let { variant: r2 = 13, separator: t2 = "-" } = e2, a2 = "978", [n2, o2] = this.faker.helpers.objectEntry(Hr), s2 = this.faker.string.numeric(8), l2 = Number.parseInt(s2.slice(0, -1)), c2 = o2.find(([g2]) => l2 <= g2)?.[1];
|
|
1296
1369
|
if (!c2) throw new m(`Unable to find a registrant length for the group ${n2}`);
|
|
1297
1370
|
let u2 = s2.slice(0, c2), h2 = s2.slice(c2), f2 = [a2, n2, u2, h2];
|
|
1298
1371
|
r2 === 10 && f2.shift();
|
|
1299
|
-
let
|
|
1300
|
-
for (let
|
|
1301
|
-
let
|
|
1302
|
-
b2 +=
|
|
1372
|
+
let k2 = f2.join(""), b2 = 0;
|
|
1373
|
+
for (let g2 = 0; g2 < r2 - 1; g2++) {
|
|
1374
|
+
let C2 = r2 === 10 ? g2 + 1 : g2 % 2 ? 3 : 1;
|
|
1375
|
+
b2 += C2 * Number.parseInt(k2[g2]);
|
|
1303
1376
|
}
|
|
1304
1377
|
return b2 = r2 === 10 ? b2 % 11 : (10 - b2 % 10) % 10, f2.push(b2 === 10 ? "X" : b2.toString()), f2.join(t2);
|
|
1305
1378
|
}
|
|
1306
1379
|
};
|
|
1307
|
-
var
|
|
1380
|
+
var re = class extends p {
|
|
1308
1381
|
name() {
|
|
1309
1382
|
return this.faker.helpers.fake(this.faker.definitions.company.name_pattern);
|
|
1310
1383
|
}
|
|
@@ -1333,7 +1406,7 @@ var ee = class extends p {
|
|
|
1333
1406
|
return this.faker.helpers.arrayElement(this.faker.definitions.company.buzz_noun);
|
|
1334
1407
|
}
|
|
1335
1408
|
};
|
|
1336
|
-
var
|
|
1409
|
+
var te = class extends p {
|
|
1337
1410
|
column() {
|
|
1338
1411
|
return this.faker.helpers.arrayElement(this.faker.definitions.database.column);
|
|
1339
1412
|
}
|
|
@@ -1354,13 +1427,13 @@ var Vr = { alpha: ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "
|
|
|
1354
1427
|
let e2 = 0;
|
|
1355
1428
|
for (let r2 of i2) e2 = (e2 * 10 + +r2) % 97;
|
|
1356
1429
|
return e2;
|
|
1357
|
-
}, pattern10: ["01", "02", "03", "04", "05", "06", "07", "08", "09"], pattern100: ["001", "002", "003", "004", "005", "006", "007", "008", "009"], toDigitString: (i2) => i2.replaceAll(/[A-Z]/gi, (e2) => String((e2.toUpperCase().codePointAt(0) ?? Number.NaN) - 55)) },
|
|
1430
|
+
}, pattern10: ["01", "02", "03", "04", "05", "06", "07", "08", "09"], pattern100: ["001", "002", "003", "004", "005", "006", "007", "008", "009"], toDigitString: (i2) => i2.replaceAll(/[A-Z]/gi, (e2) => String((e2.toUpperCase().codePointAt(0) ?? Number.NaN) - 55)) }, S = Vr;
|
|
1358
1431
|
function zr(i2) {
|
|
1359
1432
|
let e2 = "";
|
|
1360
1433
|
for (let r2 = 0; r2 < i2.length; r2 += 4) e2 += `${i2.substring(r2, r2 + 4)} `;
|
|
1361
1434
|
return e2.trimEnd();
|
|
1362
1435
|
}
|
|
1363
|
-
var
|
|
1436
|
+
var ae = class extends p {
|
|
1364
1437
|
accountNumber(e2 = {}) {
|
|
1365
1438
|
typeof e2 == "number" && (e2 = { length: e2 });
|
|
1366
1439
|
let { length: r2 = 8 } = e2;
|
|
@@ -1374,11 +1447,6 @@ var te = class extends p {
|
|
|
1374
1447
|
for (let t2 = 0; t2 < e2.length; t2 += 3) r2 += Number(e2[t2]) * 3, r2 += Number(e2[t2 + 1]) * 7, r2 += Number(e2[t2 + 2]) || 0;
|
|
1375
1448
|
return `${e2}${Math.ceil(r2 / 10) * 10 - r2}`;
|
|
1376
1449
|
}
|
|
1377
|
-
maskedNumber(e2 = {}) {
|
|
1378
|
-
w({ deprecated: "faker.finance.maskedNumber()", proposed: "faker.finance.iban().replace(/(?<=.{4})\\w(?=.{2})/g, '*') or a similar approach", since: "9.3.0", until: "10.0.0" }), typeof e2 == "number" && (e2 = { length: e2 });
|
|
1379
|
-
let { ellipsis: r2 = true, length: t2 = 4, parens: a2 = true } = e2, n2 = this.faker.string.numeric({ length: t2 });
|
|
1380
|
-
return r2 && (n2 = `...${n2}`), a2 && (n2 = `(${n2})`), n2;
|
|
1381
|
-
}
|
|
1382
1450
|
amount(e2 = {}) {
|
|
1383
1451
|
let { autoFormat: r2 = false, dec: t2 = 2, max: a2 = 1e3, min: n2 = 0, symbol: o2 = "" } = e2, s2 = this.faker.number.float({ max: a2, min: n2, fractionDigits: t2 }), l2 = r2 ? s2.toLocaleString(void 0, { minimumFractionDigits: t2 }) : s2.toFixed(t2);
|
|
1384
1452
|
return o2 + l2;
|
|
@@ -1406,7 +1474,7 @@ var te = class extends p {
|
|
|
1406
1474
|
return this.currency().numericCode;
|
|
1407
1475
|
}
|
|
1408
1476
|
bitcoinAddress(e2 = {}) {
|
|
1409
|
-
let { type: r2 = this.faker.helpers.enumValue(be), network: t2 = "mainnet" } = e2, a2 =
|
|
1477
|
+
let { type: r2 = this.faker.helpers.enumValue(be), network: t2 = "mainnet" } = e2, a2 = Pe[r2], n2 = a2.prefix[t2], o2 = this.faker.number.int(a2.length), s2 = this.faker.string.alphanumeric({ length: o2 - n2.length, casing: a2.casing, exclude: a2.exclude });
|
|
1410
1478
|
return n2 + s2;
|
|
1411
1479
|
}
|
|
1412
1480
|
litecoinAddress() {
|
|
@@ -1440,21 +1508,21 @@ var te = class extends p {
|
|
|
1440
1508
|
return this.faker.string.hexadecimal({ length: 40, casing: "lower" });
|
|
1441
1509
|
}
|
|
1442
1510
|
iban(e2 = {}) {
|
|
1443
|
-
let { countryCode: r2, formatted: t2 = false } = e2, a2 = r2 ?
|
|
1511
|
+
let { countryCode: r2, formatted: t2 = false } = e2, a2 = r2 ? S.formats.find((c2) => c2.country === r2) : this.faker.helpers.arrayElement(S.formats);
|
|
1444
1512
|
if (!a2) throw new m(`Country code ${r2} not supported.`);
|
|
1445
1513
|
let n2 = "", o2 = 0;
|
|
1446
1514
|
for (let c2 of a2.bban) {
|
|
1447
1515
|
let u2 = c2.count;
|
|
1448
|
-
for (o2 += c2.count; u2 > 0; ) c2.type === "a" ? n2 += this.faker.helpers.arrayElement(
|
|
1516
|
+
for (o2 += c2.count; u2 > 0; ) c2.type === "a" ? n2 += this.faker.helpers.arrayElement(S.alpha) : c2.type === "c" ? this.faker.datatype.boolean(0.8) ? n2 += this.faker.number.int(9) : n2 += this.faker.helpers.arrayElement(S.alpha) : u2 >= 3 && this.faker.datatype.boolean(0.3) ? this.faker.datatype.boolean() ? (n2 += this.faker.helpers.arrayElement(S.pattern100), u2 -= 2) : (n2 += this.faker.helpers.arrayElement(S.pattern10), u2--) : n2 += this.faker.number.int(9), u2--;
|
|
1449
1517
|
n2 = n2.substring(0, o2);
|
|
1450
1518
|
}
|
|
1451
|
-
let s2 = 98 -
|
|
1519
|
+
let s2 = 98 - S.mod97(S.toDigitString(`${n2}${a2.country}00`));
|
|
1452
1520
|
s2 < 10 && (s2 = `0${s2}`);
|
|
1453
1521
|
let l2 = `${a2.country}${s2}${n2}`;
|
|
1454
1522
|
return t2 ? zr(l2) : l2;
|
|
1455
1523
|
}
|
|
1456
1524
|
bic(e2 = {}) {
|
|
1457
|
-
let { includeBranchCode: r2 = this.faker.datatype.boolean() } = e2, t2 = this.faker.string.alpha({ length: 4, casing: "upper" }), a2 = this.faker.helpers.arrayElement(
|
|
1525
|
+
let { includeBranchCode: r2 = this.faker.datatype.boolean() } = e2, t2 = this.faker.string.alpha({ length: 4, casing: "upper" }), a2 = this.faker.helpers.arrayElement(S.iso3166), n2 = this.faker.string.alphanumeric({ length: 2, casing: "upper" }), o2 = r2 ? this.faker.datatype.boolean() ? this.faker.string.alphanumeric({ length: 3, casing: "upper" }) : "XXX" : "";
|
|
1458
1526
|
return `${t2}${a2}${n2}${o2}`;
|
|
1459
1527
|
}
|
|
1460
1528
|
transactionDescription() {
|
|
@@ -1464,7 +1532,7 @@ var te = class extends p {
|
|
|
1464
1532
|
function Ye(i2) {
|
|
1465
1533
|
return i2.split(" ").map((e2) => e2.charAt(0).toUpperCase() + e2.slice(1)).join(" ");
|
|
1466
1534
|
}
|
|
1467
|
-
var
|
|
1535
|
+
var ne = class extends p {
|
|
1468
1536
|
adjective() {
|
|
1469
1537
|
return this.faker.helpers.arrayElement(this.faker.definitions.food.adjective);
|
|
1470
1538
|
}
|
|
@@ -1493,7 +1561,7 @@ var ae = class extends p {
|
|
|
1493
1561
|
return this.faker.helpers.arrayElement(this.faker.definitions.food.vegetable);
|
|
1494
1562
|
}
|
|
1495
1563
|
};
|
|
1496
|
-
var
|
|
1564
|
+
var Yr = " ", ie = class extends p {
|
|
1497
1565
|
branch() {
|
|
1498
1566
|
let e2 = this.faker.hacker.noun().replace(" ", "-"), r2 = this.faker.hacker.verb().replace(" ", "-");
|
|
1499
1567
|
return `${e2}-${r2}`;
|
|
@@ -1502,7 +1570,7 @@ var Wr = " ", ne = class extends p {
|
|
|
1502
1570
|
let { merge: r2 = this.faker.datatype.boolean({ probability: 0.2 }), eol: t2 = "CRLF", refDate: a2 } = e2, n2 = [`commit ${this.faker.git.commitSha()}`];
|
|
1503
1571
|
r2 && n2.push(`Merge: ${this.commitSha({ length: 7 })} ${this.commitSha({ length: 7 })}`);
|
|
1504
1572
|
let o2 = this.faker.person.firstName(), s2 = this.faker.person.lastName(), l2 = this.faker.person.fullName({ firstName: o2, lastName: s2 }), c2 = this.faker.internet.username({ firstName: o2, lastName: s2 }), u2 = this.faker.helpers.arrayElement([l2, c2]), h2 = this.faker.internet.email({ firstName: o2, lastName: s2 });
|
|
1505
|
-
u2 = u2.replaceAll(/^[.,:;"\\']|[<>\n]|[.,:;"\\']$/g, ""), n2.push(`Author: ${u2} <${h2}>`, `Date: ${this.commitDate({ refDate: a2 })}`, "", `${
|
|
1573
|
+
u2 = u2.replaceAll(/^[.,:;"\\']|[<>\n]|[.,:;"\\']$/g, ""), n2.push(`Author: ${u2} <${h2}>`, `Date: ${this.commitDate({ refDate: a2 })}`, "", `${Yr.repeat(4)}${this.commitMessage()}`, "");
|
|
1506
1574
|
let f2 = t2 === "CRLF" ? `\r
|
|
1507
1575
|
` : `
|
|
1508
1576
|
`;
|
|
@@ -1512,15 +1580,15 @@ var Wr = " ", ne = class extends p {
|
|
|
1512
1580
|
return `${this.faker.hacker.verb()} ${this.faker.hacker.adjective()} ${this.faker.hacker.noun()}`;
|
|
1513
1581
|
}
|
|
1514
1582
|
commitDate(e2 = {}) {
|
|
1515
|
-
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], n2 = this.faker.date.recent({ days: 1, refDate: r2 }), o2 = t2[n2.getUTCDay()], s2 = a2[n2.getUTCMonth()], l2 = n2.getUTCDate(), c2 = n2.getUTCHours().toString().padStart(2, "0"), u2 = n2.getUTCMinutes().toString().padStart(2, "0"), h2 = n2.getUTCSeconds().toString().padStart(2, "0"), f2 = n2.getUTCFullYear(),
|
|
1516
|
-
return `${o2} ${s2} ${l2} ${c2}:${u2}:${h2} ${f2} ${
|
|
1583
|
+
let { refDate: r2 = this.faker.defaultRefDate() } = e2, t2 = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], a2 = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], n2 = this.faker.date.recent({ days: 1, refDate: r2 }), o2 = t2[n2.getUTCDay()], s2 = a2[n2.getUTCMonth()], l2 = n2.getUTCDate(), c2 = n2.getUTCHours().toString().padStart(2, "0"), u2 = n2.getUTCMinutes().toString().padStart(2, "0"), h2 = n2.getUTCSeconds().toString().padStart(2, "0"), f2 = n2.getUTCFullYear(), k2 = this.faker.number.int({ min: -11, max: 12 }), b2 = Math.abs(k2).toString().padStart(2, "0"), g2 = "00", C2 = k2 >= 0 ? "+" : "-";
|
|
1584
|
+
return `${o2} ${s2} ${l2} ${c2}:${u2}:${h2} ${f2} ${C2}${b2}${g2}`;
|
|
1517
1585
|
}
|
|
1518
1586
|
commitSha(e2 = {}) {
|
|
1519
1587
|
let { length: r2 = 40 } = e2;
|
|
1520
1588
|
return this.faker.string.hexadecimal({ length: r2, casing: "lower", prefix: "" });
|
|
1521
1589
|
}
|
|
1522
1590
|
};
|
|
1523
|
-
var
|
|
1591
|
+
var oe = class extends p {
|
|
1524
1592
|
abbreviation() {
|
|
1525
1593
|
return this.faker.helpers.arrayElement(this.faker.definitions.hacker.abbreviation);
|
|
1526
1594
|
}
|
|
@@ -1541,7 +1609,11 @@ var ie = class extends p {
|
|
|
1541
1609
|
return this.faker.helpers.mustache(r2, e2);
|
|
1542
1610
|
}
|
|
1543
1611
|
};
|
|
1544
|
-
|
|
1612
|
+
function We(i2) {
|
|
1613
|
+
let { deprecated: e2, since: r2, until: t2, proposed: a2 } = i2, n2 = `[@faker-js/faker]: ${e2} is deprecated`;
|
|
1614
|
+
r2 && (n2 += ` since v${r2}`), t2 && (n2 += ` and will be removed in v${t2}`), a2 && (n2 += `. Please use ${a2} instead`), console.warn(`${n2}.`);
|
|
1615
|
+
}
|
|
1616
|
+
var se = class extends p {
|
|
1545
1617
|
avatar() {
|
|
1546
1618
|
return this.faker.helpers.arrayElement([this.personPortrait, this.avatarGitHub])();
|
|
1547
1619
|
}
|
|
@@ -1552,14 +1624,12 @@ var oe = class extends p {
|
|
|
1552
1624
|
let { sex: r2 = this.faker.person.sexType(), size: t2 = 512 } = e2;
|
|
1553
1625
|
return `https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait/${r2}/${t2}/${this.faker.number.int({ min: 0, max: 99 })}.jpg`;
|
|
1554
1626
|
}
|
|
1555
|
-
avatarLegacy() {
|
|
1556
|
-
return w({ deprecated: "faker.image.avatarLegacy()", proposed: "faker.image.avatar() or faker.image.personPortrait()", since: "9.0.2", until: "10.0.0" }), `https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/${this.faker.number.int(1249)}.jpg`;
|
|
1557
|
-
}
|
|
1558
1627
|
url(e2 = {}) {
|
|
1559
1628
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }) } = e2;
|
|
1560
|
-
return this.faker.helpers.arrayElement([
|
|
1629
|
+
return this.faker.helpers.arrayElement([({ width: n2, height: o2 }) => this.urlPicsumPhotos({ width: n2, height: o2, grayscale: false, blur: 0 })])({ width: r2, height: t2 });
|
|
1561
1630
|
}
|
|
1562
1631
|
urlLoremFlickr(e2 = {}) {
|
|
1632
|
+
We({ deprecated: "faker.image.urlLoremFlickr()", proposed: "faker.image.url()", since: "10.1.0", until: "11.0.0" });
|
|
1563
1633
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }), category: a2 } = e2;
|
|
1564
1634
|
return `https://loremflickr.com/${r2}/${t2}${a2 == null ? "" : `/${a2}`}?lock=${this.faker.number.int()}`;
|
|
1565
1635
|
}
|
|
@@ -1567,105 +1637,11 @@ var oe = class extends p {
|
|
|
1567
1637
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }), grayscale: a2 = this.faker.datatype.boolean(), blur: n2 = this.faker.number.int({ max: 10 }) } = e2, o2 = `https://picsum.photos/seed/${this.faker.string.alphanumeric({ length: { min: 5, max: 10 } })}/${r2}/${t2}`, s2 = typeof n2 == "number" && n2 >= 1 && n2 <= 10;
|
|
1568
1638
|
return (a2 || s2) && (o2 += "?", a2 && (o2 += "grayscale"), a2 && s2 && (o2 += "&"), s2 && (o2 += `blur=${n2}`)), o2;
|
|
1569
1639
|
}
|
|
1570
|
-
urlPlaceholder(e2 = {}) {
|
|
1571
|
-
w({ deprecated: "faker.image.urlPlaceholder()", proposed: "faker.image.url() or faker.image.dataUri()", since: "9.4.0", until: "10.0.0" });
|
|
1572
|
-
let { width: r2 = this.faker.number.int({ min: 1, max: 3500 }), height: t2 = this.faker.number.int({ min: 1, max: 3500 }), backgroundColor: a2 = this.faker.color.rgb({ format: "hex", prefix: "" }), textColor: n2 = this.faker.color.rgb({ format: "hex", prefix: "" }), format: o2 = this.faker.helpers.arrayElement(["gif", "jpeg", "jpg", "png", "webp"]), text: s2 = this.faker.lorem.words() } = e2, l2 = "https://via.placeholder.com";
|
|
1573
|
-
return l2 += `/${r2}`, l2 += `x${t2}`, l2 += `/${a2}`, l2 += `/${n2}`, l2 += `.${o2}`, l2 += `?text=${encodeURIComponent(s2)}`, l2;
|
|
1574
|
-
}
|
|
1575
1640
|
dataUri(e2 = {}) {
|
|
1576
1641
|
let { width: r2 = this.faker.number.int({ min: 1, max: 3999 }), height: t2 = this.faker.number.int({ min: 1, max: 3999 }), color: a2 = this.faker.color.rgb(), type: n2 = this.faker.helpers.arrayElement(["svg-uri", "svg-base64"]) } = e2, o2 = `<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="${r2}" height="${t2}"><rect width="100%" height="100%" fill="${a2}"/><text x="${r2 / 2}" y="${t2 / 2}" font-size="20" alignment-baseline="middle" text-anchor="middle" fill="white">${r2}x${t2}</text></svg>`;
|
|
1577
1642
|
return n2 === "svg-uri" ? `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o2)}` : `data:image/svg+xml;base64,${de(o2)}`;
|
|
1578
1643
|
}
|
|
1579
1644
|
};
|
|
1580
|
-
var se = class extends p {
|
|
1581
|
-
zipCode(e2 = {}) {
|
|
1582
|
-
typeof e2 == "string" && (e2 = { format: e2 });
|
|
1583
|
-
let { state: r2 } = e2;
|
|
1584
|
-
if (r2 != null) {
|
|
1585
|
-
let a2 = this.faker.definitions.location.postcode_by_state[r2];
|
|
1586
|
-
if (a2 == null) throw new m(`No zip code definition found for state "${r2}"`);
|
|
1587
|
-
return this.faker.helpers.fake(a2);
|
|
1588
|
-
}
|
|
1589
|
-
let { format: t2 = this.faker.definitions.location.postcode } = e2;
|
|
1590
|
-
return typeof t2 == "string" && (t2 = [t2]), t2 = this.faker.helpers.arrayElement(t2), this.faker.helpers.replaceSymbols(t2);
|
|
1591
|
-
}
|
|
1592
|
-
city() {
|
|
1593
|
-
return this.faker.helpers.fake(this.faker.definitions.location.city_pattern);
|
|
1594
|
-
}
|
|
1595
|
-
buildingNumber() {
|
|
1596
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.building_number).replaceAll(/#+/g, (e2) => this.faker.string.numeric({ length: e2.length, allowLeadingZeros: false }));
|
|
1597
|
-
}
|
|
1598
|
-
street() {
|
|
1599
|
-
return this.faker.helpers.fake(this.faker.definitions.location.street_pattern);
|
|
1600
|
-
}
|
|
1601
|
-
streetAddress(e2 = {}) {
|
|
1602
|
-
typeof e2 == "boolean" && (e2 = { useFullAddress: e2 });
|
|
1603
|
-
let { useFullAddress: r2 } = e2, a2 = this.faker.definitions.location.street_address[r2 ? "full" : "normal"];
|
|
1604
|
-
return this.faker.helpers.fake(a2);
|
|
1605
|
-
}
|
|
1606
|
-
secondaryAddress() {
|
|
1607
|
-
return this.faker.helpers.fake(this.faker.definitions.location.secondary_address).replaceAll(/#+/g, (e2) => this.faker.string.numeric({ length: e2.length, allowLeadingZeros: false }));
|
|
1608
|
-
}
|
|
1609
|
-
county() {
|
|
1610
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.county);
|
|
1611
|
-
}
|
|
1612
|
-
country() {
|
|
1613
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.country);
|
|
1614
|
-
}
|
|
1615
|
-
continent() {
|
|
1616
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.continent);
|
|
1617
|
-
}
|
|
1618
|
-
countryCode(e2 = {}) {
|
|
1619
|
-
typeof e2 == "string" && (e2 = { variant: e2 });
|
|
1620
|
-
let { variant: r2 = "alpha-2" } = e2, t2 = (() => {
|
|
1621
|
-
switch (r2) {
|
|
1622
|
-
case "numeric":
|
|
1623
|
-
return "numeric";
|
|
1624
|
-
case "alpha-3":
|
|
1625
|
-
return "alpha3";
|
|
1626
|
-
case "alpha-2":
|
|
1627
|
-
return "alpha2";
|
|
1628
|
-
}
|
|
1629
|
-
})();
|
|
1630
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.country_code)[t2];
|
|
1631
|
-
}
|
|
1632
|
-
state(e2 = {}) {
|
|
1633
|
-
let { abbreviated: r2 = false } = e2, t2 = r2 ? this.faker.definitions.location.state_abbr : this.faker.definitions.location.state;
|
|
1634
|
-
return this.faker.helpers.arrayElement(t2);
|
|
1635
|
-
}
|
|
1636
|
-
latitude(e2 = {}) {
|
|
1637
|
-
let { max: r2 = 90, min: t2 = -90, precision: a2 = 4 } = e2;
|
|
1638
|
-
return this.faker.number.float({ min: t2, max: r2, fractionDigits: a2 });
|
|
1639
|
-
}
|
|
1640
|
-
longitude(e2 = {}) {
|
|
1641
|
-
let { max: r2 = 180, min: t2 = -180, precision: a2 = 4 } = e2;
|
|
1642
|
-
return this.faker.number.float({ max: r2, min: t2, fractionDigits: a2 });
|
|
1643
|
-
}
|
|
1644
|
-
direction(e2 = {}) {
|
|
1645
|
-
let { abbreviated: r2 = false } = e2;
|
|
1646
|
-
return r2 ? this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal_abbr, ...this.faker.definitions.location.direction.ordinal_abbr]) : this.faker.helpers.arrayElement([...this.faker.definitions.location.direction.cardinal, ...this.faker.definitions.location.direction.ordinal]);
|
|
1647
|
-
}
|
|
1648
|
-
cardinalDirection(e2 = {}) {
|
|
1649
|
-
let { abbreviated: r2 = false } = e2;
|
|
1650
|
-
return r2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.cardinal);
|
|
1651
|
-
}
|
|
1652
|
-
ordinalDirection(e2 = {}) {
|
|
1653
|
-
let { abbreviated: r2 = false } = e2;
|
|
1654
|
-
return r2 ? this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal_abbr) : this.faker.helpers.arrayElement(this.faker.definitions.location.direction.ordinal);
|
|
1655
|
-
}
|
|
1656
|
-
nearbyGPSCoordinate(e2 = {}) {
|
|
1657
|
-
let { origin: r2, radius: t2 = 10, isMetric: a2 = false } = e2;
|
|
1658
|
-
if (r2 == null) return [this.latitude(), this.longitude()];
|
|
1659
|
-
let n2 = this.faker.number.float({ max: 2 * Math.PI, fractionDigits: 5 }), o2 = a2 ? t2 : t2 * 1.60934, l2 = this.faker.number.float({ max: o2, fractionDigits: 3 }) * 0.995, c2 = 4e4 / 360, u2 = l2 / c2, h2 = [r2[0] + Math.sin(n2) * u2, r2[1] + Math.cos(n2) * u2];
|
|
1660
|
-
return h2[0] = h2[0] % 180, (h2[0] < -90 || h2[0] > 90) && (h2[0] = Math.sign(h2[0]) * 180 - h2[0], h2[1] += 180), h2[1] = (h2[1] % 360 + 540) % 360 - 180, [h2[0], h2[1]];
|
|
1661
|
-
}
|
|
1662
|
-
timeZone() {
|
|
1663
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.time_zone);
|
|
1664
|
-
}
|
|
1665
|
-
language() {
|
|
1666
|
-
return this.faker.helpers.arrayElement(this.faker.definitions.location.language);
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
1645
|
function Ze(i2, e2, r2 = (t2) => t2) {
|
|
1670
1646
|
let t2 = {};
|
|
1671
1647
|
for (let a2 of i2) {
|
|
@@ -1674,7 +1650,7 @@ function Ze(i2, e2, r2 = (t2) => t2) {
|
|
|
1674
1650
|
}
|
|
1675
1651
|
return t2;
|
|
1676
1652
|
}
|
|
1677
|
-
var
|
|
1653
|
+
var Se = { fail: () => {
|
|
1678
1654
|
throw new m("No words found that match the given length.");
|
|
1679
1655
|
}, closest: (i2, e2) => {
|
|
1680
1656
|
let r2 = Ze(i2, (s2) => s2.length), t2 = Object.keys(r2).map(Number), a2 = Math.min(...t2), n2 = Math.max(...t2), o2 = Math.min(e2.min - a2, n2 - e2.max);
|
|
@@ -1687,11 +1663,11 @@ var Me = { fail: () => {
|
|
|
1687
1663
|
return i2.filter((r2) => r2.length === e2);
|
|
1688
1664
|
}, "any-length": (i2) => [...i2] };
|
|
1689
1665
|
function T(i2) {
|
|
1690
|
-
let { wordList: e2, length: r2, strategy: t2 = "
|
|
1666
|
+
let { wordList: e2, length: r2, strategy: t2 = "fail" } = i2;
|
|
1691
1667
|
if (r2 != null) {
|
|
1692
1668
|
let a2 = typeof r2 == "number" ? (o2) => o2.length === r2 : (o2) => o2.length >= r2.min && o2.length <= r2.max, n2 = e2.filter(a2);
|
|
1693
|
-
return n2.length > 0 ? n2 : typeof r2 == "number" ?
|
|
1694
|
-
} else if (t2 === "shortest" || t2 === "longest") return
|
|
1669
|
+
return n2.length > 0 ? n2 : typeof r2 == "number" ? Se[t2](e2, { min: r2, max: r2 }) : Se[t2](e2, r2);
|
|
1670
|
+
} else if (t2 === "shortest" || t2 === "longest") return Se[t2](e2);
|
|
1695
1671
|
return [...e2];
|
|
1696
1672
|
}
|
|
1697
1673
|
var ce = class extends p {
|
|
@@ -1747,7 +1723,7 @@ var me = class extends p {
|
|
|
1747
1723
|
let { style: r2 = "human" } = e2, a2 = this.faker.definitions.phone_number.format[r2];
|
|
1748
1724
|
if (!a2) throw new Error(`No definitions for ${r2} in this locale`);
|
|
1749
1725
|
let n2 = this.faker.helpers.arrayElement(a2);
|
|
1750
|
-
return
|
|
1726
|
+
return Ee(this.faker, n2);
|
|
1751
1727
|
}
|
|
1752
1728
|
imei() {
|
|
1753
1729
|
return this.faker.helpers.replaceCreditCardSymbols("##-######-######-L", "#");
|
|
@@ -1761,7 +1737,7 @@ var ue = class extends p {
|
|
|
1761
1737
|
return this.faker.helpers.arrayElement(this.faker.definitions.science.unit);
|
|
1762
1738
|
}
|
|
1763
1739
|
};
|
|
1764
|
-
var
|
|
1740
|
+
var Wr = ["video", "audio", "image", "text", "application"], Zr = ["application/pdf", "audio/mpeg", "audio/wav", "image/png", "image/jpeg", "image/gif", "video/mp4", "video/mpeg", "text/html"], Jr = ["en", "wl", "ww"], Je = { index: "o", slot: "s", mac: "x", pci: "p" }, Xr = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"], pe = class extends p {
|
|
1765
1741
|
fileName(e2 = {}) {
|
|
1766
1742
|
let { extensionCount: r2 = 1 } = e2, t2 = this.faker.word.words().toLowerCase().replaceAll(/\W/g, "_"), a2 = this.faker.helpers.multiple(() => this.fileExt(), { count: r2 }).join(".");
|
|
1767
1743
|
return a2.length === 0 ? t2 : `${t2}.${a2}`;
|
|
@@ -1774,7 +1750,7 @@ var Yr = ["video", "audio", "image", "text", "application"], Zr = ["application/
|
|
|
1774
1750
|
return this.faker.helpers.arrayElement(e2);
|
|
1775
1751
|
}
|
|
1776
1752
|
commonFileType() {
|
|
1777
|
-
return this.faker.helpers.arrayElement(
|
|
1753
|
+
return this.faker.helpers.arrayElement(Wr);
|
|
1778
1754
|
}
|
|
1779
1755
|
commonFileExt() {
|
|
1780
1756
|
return this.fileExt(this.faker.helpers.arrayElement(Zr));
|
|
@@ -1822,10 +1798,10 @@ var Yr = ["video", "audio", "image", "text", "application"], Zr = ["application/
|
|
|
1822
1798
|
return `${n2}${r2}${Je[t2]}${a2}`;
|
|
1823
1799
|
}
|
|
1824
1800
|
cron(e2 = {}) {
|
|
1825
|
-
let { includeYear: r2 = false, includeNonStandard: t2 = false } = e2, a2 = [this.faker.number.int(59), "*"], n2 = [this.faker.number.int(23), "*"], o2 = [this.faker.number.int({ min: 1, max: 31 }), "*", "?"], s2 = [this.faker.number.int({ min: 1, max: 12 }), "*"], l2 = [this.faker.number.int(6), this.faker.helpers.arrayElement(Xr), "*", "?"], c2 = [this.faker.number.int({ min: 1970, max: 2099 }), "*"], u2 = this.faker.helpers.arrayElement(a2), h2 = this.faker.helpers.arrayElement(n2), f2 = this.faker.helpers.arrayElement(o2),
|
|
1826
|
-
r2 && (
|
|
1827
|
-
let
|
|
1828
|
-
return !t2 || this.faker.datatype.boolean() ?
|
|
1801
|
+
let { includeYear: r2 = false, includeNonStandard: t2 = false } = e2, a2 = [this.faker.number.int(59), "*"], n2 = [this.faker.number.int(23), "*"], o2 = [this.faker.number.int({ min: 1, max: 31 }), "*", "?"], s2 = [this.faker.number.int({ min: 1, max: 12 }), "*"], l2 = [this.faker.number.int(6), this.faker.helpers.arrayElement(Xr), "*", "?"], c2 = [this.faker.number.int({ min: 1970, max: 2099 }), "*"], u2 = this.faker.helpers.arrayElement(a2), h2 = this.faker.helpers.arrayElement(n2), f2 = this.faker.helpers.arrayElement(o2), k2 = this.faker.helpers.arrayElement(s2), b2 = this.faker.helpers.arrayElement(l2), g2 = this.faker.helpers.arrayElement(c2), C2 = `${u2} ${h2} ${f2} ${k2} ${b2}`;
|
|
1802
|
+
r2 && (C2 += ` ${g2}`);
|
|
1803
|
+
let y2 = ["@annually", "@daily", "@hourly", "@monthly", "@reboot", "@weekly", "@yearly"];
|
|
1804
|
+
return !t2 || this.faker.datatype.boolean() ? C2 : this.faker.helpers.arrayElement(y2);
|
|
1829
1805
|
}
|
|
1830
1806
|
};
|
|
1831
1807
|
var he = class extends p {
|
|
@@ -1895,25 +1871,25 @@ var fe = class extends p {
|
|
|
1895
1871
|
return this.faker.helpers.multiple(() => this.sample(), { count: r2 }).join(" ");
|
|
1896
1872
|
}
|
|
1897
1873
|
};
|
|
1898
|
-
var Xe = class extends
|
|
1874
|
+
var Xe = class extends I {
|
|
1899
1875
|
rawDefinitions;
|
|
1900
1876
|
definitions;
|
|
1901
1877
|
airline = new F(this);
|
|
1902
|
-
animal = new
|
|
1903
|
-
book = new
|
|
1878
|
+
animal = new Q(this);
|
|
1879
|
+
book = new q(this);
|
|
1904
1880
|
color = new G(this);
|
|
1905
|
-
commerce = new
|
|
1906
|
-
company = new
|
|
1907
|
-
database = new
|
|
1881
|
+
commerce = new ee(this);
|
|
1882
|
+
company = new re(this);
|
|
1883
|
+
database = new te(this);
|
|
1908
1884
|
date = new V(this);
|
|
1909
|
-
finance = new
|
|
1910
|
-
food = new
|
|
1911
|
-
git = new
|
|
1912
|
-
hacker = new
|
|
1885
|
+
finance = new ae(this);
|
|
1886
|
+
food = new ne(this);
|
|
1887
|
+
git = new ie(this);
|
|
1888
|
+
hacker = new oe(this);
|
|
1913
1889
|
helpers = new z(this);
|
|
1914
|
-
image = new
|
|
1890
|
+
image = new se(this);
|
|
1915
1891
|
internet = new O(this);
|
|
1916
|
-
location = new
|
|
1892
|
+
location = new Y(this);
|
|
1917
1893
|
lorem = new ce(this);
|
|
1918
1894
|
music = new le(this);
|
|
1919
1895
|
person = new U(this);
|
|
@@ -1922,20 +1898,14 @@ var Xe = class extends $ {
|
|
|
1922
1898
|
system = new pe(this);
|
|
1923
1899
|
vehicle = new he(this);
|
|
1924
1900
|
word = new fe(this);
|
|
1925
|
-
get address() {
|
|
1926
|
-
return w({ deprecated: "faker.address", proposed: "faker.location", since: "8.0", until: "10.0" }), this.location;
|
|
1927
|
-
}
|
|
1928
|
-
get name() {
|
|
1929
|
-
return w({ deprecated: "faker.name", proposed: "faker.person", since: "8.0", until: "10.0" }), this.person;
|
|
1930
|
-
}
|
|
1931
1901
|
constructor(e2) {
|
|
1932
1902
|
super({ randomizer: e2.randomizer, seed: e2.seed });
|
|
1933
1903
|
let { locale: r2 } = e2;
|
|
1934
1904
|
if (Array.isArray(r2)) {
|
|
1935
1905
|
if (r2.length === 0) throw new m("The locale option must contain at least one locale definition.");
|
|
1936
|
-
r2 =
|
|
1906
|
+
r2 = ze(r2);
|
|
1937
1907
|
}
|
|
1938
|
-
this.rawDefinitions = r2, this.definitions =
|
|
1908
|
+
this.rawDefinitions = r2, this.definitions = Oe(this.rawDefinitions);
|
|
1939
1909
|
}
|
|
1940
1910
|
getMetadata() {
|
|
1941
1911
|
return this.rawDefinitions.metadata ?? {};
|
|
@@ -1947,8 +1917,8 @@ var er = ["ascii_bin", "ascii_general_ci", "cp1250_bin", "cp1250_general_ci", "u
|
|
|
1947
1917
|
var rr = ["ARCHIVE", "BLACKHOLE", "CSV", "InnoDB", "MEMORY", "MyISAM"];
|
|
1948
1918
|
var tr = ["bigint", "binary", "bit", "blob", "boolean", "date", "datetime", "decimal", "double", "enum", "float", "geometry", "int", "mediumint", "point", "real", "serial", "set", "smallint", "text", "time", "timestamp", "tinyint", "varchar"];
|
|
1949
1919
|
var qr = { collation: er, engine: rr, type: tr }, ar = qr;
|
|
1950
|
-
var
|
|
1951
|
-
var et = { time_zone:
|
|
1920
|
+
var _ = ["Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis"];
|
|
1921
|
+
var et = { time_zone: _ }, nr = et;
|
|
1952
1922
|
var ir = ["ADP", "AGP", "AI", "API", "ASCII", "CLI", "COM", "CSS", "DNS", "DRAM", "EXE", "FTP", "GB", "HDD", "HEX", "HTTP", "IB", "IP", "JBOD", "JSON", "OCR", "PCI", "PNG", "RAM", "RSS", "SAS", "SCSI", "SDD", "SMS", "SMTP", "SQL", "SSD", "SSL", "TCP", "THX", "TLS", "UDP", "USB", "UTF8", "VGA", "XML", "XSS"];
|
|
1953
1923
|
var rt = { abbreviation: ir }, or = rt;
|
|
1954
1924
|
var sr = { smiley: ["☠️", "☹️", "☺️", "❣️", "❤️", "❤️🔥", "❤️🩹", "👁️🗨️", "👹", "👺", "👻", "👽", "👾", "👿", "💀", "💋", "💌", "💓", "💔", "💕", "💖", "💗", "💘", "💙", "💚", "💛", "💜", "💝", "💞", "💟", "💢", "💣", "💤", "💥", "💦", "💨", "💩", "💫", "💬", "💭", "💯", "🕳️", "🖤", "🗨️", "🗯️", "😀", "😁", "😂", "😃", "😄", "😅", "😆", "😇", "😈", "😉", "😊", "😋", "😌", "😍", "😎", "😏", "😐", "😑", "😒", "😓", "😔", "😕", "😖", "😗", "😘", "😙", "😚", "😛", "😜", "😝", "😞", "😟", "😠", "😡", "😢", "😣", "😤", "😥", "😦", "😧", "😨", "😩", "😪", "😫", "😬", "😭", "😮", "😮💨", "😯", "😰", "😱", "😲", "😳", "😴", "😵", "😵💫", "😶", "😶🌫️", "😷", "😸", "😹", "😺", "😻", "😼", "😽", "😾", "😿", "🙀", "🙁", "🙂", "🙃", "🙄", "🙈", "🙉", "🙊", "🤍", "🤎", "🤐", "🤑", "🤒", "🤓", "🤔", "🤕", "🤖", "🤗", "🤠", "🤡", "🤢", "🤣", "🤤", "🤥", "🤧", "🤨", "🤩", "🤪", "🤫", "🤬", "🤭", "🤮", "🤯", "🥰", "🥱", "🥲", "🥳", "🥴", "🥵", "🥶", "🥸", "🥺", "🧐", "🧡"], body: ["☝🏻", "☝🏼", "☝🏽", "☝🏾", "☝🏿", "☝️", "✊", "✊🏻", "✊🏼", "✊🏽", "✊🏾", "✊🏿", "✋", "✋🏻", "✋🏼", "✋🏽", "✋🏾", "✋🏿", "✌🏻", "✌🏼", "✌🏽", "✌🏾", "✌🏿", "✌️", "✍🏻", "✍🏼", "✍🏽", "✍🏾", "✍🏿", "✍️", "👀", "👁️", "👂", "👂🏻", "👂🏼", "👂🏽", "👂🏾", "👂🏿", "👃", "👃🏻", "👃🏼", "👃🏽", "👃🏾", "👃🏿", "👄", "👅", "👆", "👆🏻", "👆🏼", "👆🏽", "👆🏾", "👆🏿", "👇", "👇🏻", "👇🏼", "👇🏽", "👇🏾", "👇🏿", "👈", "👈🏻", "👈🏼", "👈🏽", "👈🏾", "👈🏿", "👉", "👉🏻", "👉🏼", "👉🏽", "👉🏾", "👉🏿", "👊", "👊🏻", "👊🏼", "👊🏽", "👊🏾", "👊🏿", "👋", "👋🏻", "👋🏼", "👋🏽", "👋🏾", "👋🏿", "👌", "👌🏻", "👌🏼", "👌🏽", "👌🏾", "👌🏿", "👍", "👍🏻", "👍🏼", "👍🏽", "👍🏾", "👍🏿", "👎", "👎🏻", "👎🏼", "👎🏽", "👎🏾", "👎🏿", "👏", "👏🏻", "👏🏼", "👏🏽", "👏🏾", "👏🏿", "👐", "👐🏻", "👐🏼", "👐🏽", "👐🏾", "👐🏿", "💅", "💅🏻", "💅🏼", "💅🏽", "💅🏾", "💅🏿", "💪", "💪🏻", "💪🏼", "💪🏽", "💪🏾", "💪🏿", "🖐🏻", "🖐🏼", "🖐🏽", "🖐🏾", "🖐🏿", "🖐️", "🖕", "🖕🏻", "🖕🏼", "🖕🏽", "🖕🏾", "🖕🏿", "🖖", "🖖🏻", "🖖🏼", "🖖🏽", "🖖🏾", "🖖🏿", "🙌", "🙌🏻", "🙌🏼", "🙌🏽", "🙌🏾", "🙌🏿", "🙏", "🙏🏻", "🙏🏼", "🙏🏽", "🙏🏾", "🙏🏿", "🤌", "🤌🏻", "🤌🏼", "🤌🏽", "🤌🏾", "🤌🏿", "🤏", "🤏🏻", "🤏🏼", "🤏🏽", "🤏🏾", "🤏🏿", "🤘", "🤘🏻", "🤘🏼", "🤘🏽", "🤘🏾", "🤘🏿", "🤙", "🤙🏻", "🤙🏼", "🤙🏽", "🤙🏾", "🤙🏿", "🤚", "🤚🏻", "🤚🏼", "🤚🏽", "🤚🏾", "🤚🏿", "🤛", "🤛🏻", "🤛🏼", "🤛🏽", "🤛🏾", "🤛🏿", "🤜", "🤜🏻", "🤜🏼", "🤜🏽", "🤜🏾", "🤜🏿", "🤝", "🤞", "🤞🏻", "🤞🏼", "🤞🏽", "🤞🏾", "🤞🏿", "🤟", "🤟🏻", "🤟🏼", "🤟🏽", "🤟🏾", "🤟🏿", "🤲", "🤲🏻", "🤲🏼", "🤲🏽", "🤲🏾", "🤲🏿", "🤳", "🤳🏻", "🤳🏼", "🤳🏽", "🤳🏾", "🤳🏿", "🦴", "🦵", "🦵🏻", "🦵🏼", "🦵🏽", "🦵🏾", "🦵🏿", "🦶", "🦶🏻", "🦶🏼", "🦶🏽", "🦶🏾", "🦶🏿", "🦷", "🦻", "🦻🏻", "🦻🏼", "🦻🏽", "🦻🏾", "🦻🏿", "🦾", "🦿", "🧠", "🫀", "🫁"], person: ["🎅", "🎅🏻", "🎅🏼", "🎅🏽", "🎅🏾", "🎅🏿", "👦", "👦🏻", "👦🏼", "👦🏽", "👦🏾", "👦🏿", "👧", "👧🏻", "👧🏼", "👧🏽", "👧🏾", "👧🏿", "👨", "👨⚕️", "👨⚖️", "👨✈️", "👨🌾", "👨🍳", "👨🍼", "👨🎓", "👨🎤", "👨🎨", "👨🏫", "👨🏭", "👨💻", "👨💼", "👨🔧", "👨🔬", "👨🚀", "👨🚒", "👨🦰", "👨🦱", "👨🦲", "👨🦳", "👨🏻", "👨🏻⚕️", "👨🏻⚖️", "👨🏻✈️", "👨🏻🌾", "👨🏻🍳", "👨🏻🍼", "👨🏻🎓", "👨🏻🎤", "👨🏻🎨", "👨🏻🏫", "👨🏻🏭", "👨🏻💻", "👨🏻💼", "👨🏻🔧", "👨🏻🔬", "👨🏻🚀", "👨🏻🚒", "👨🏻🦰", "👨🏻🦱", "👨🏻🦲", "👨🏻🦳", "👨🏼", "👨🏼⚕️", "👨🏼⚖️", "👨🏼✈️", "👨🏼🌾", "👨🏼🍳", "👨🏼🍼", "👨🏼🎓", "👨🏼🎤", "👨🏼🎨", "👨🏼🏫", "👨🏼🏭", "👨🏼💻", "👨🏼💼", "👨🏼🔧", "👨🏼🔬", "👨🏼🚀", "👨🏼🚒", "👨🏼🦰", "👨🏼🦱", "👨🏼🦲", "👨🏼🦳", "👨🏽", "👨🏽⚕️", "👨🏽⚖️", "👨🏽✈️", "👨🏽🌾", "👨🏽🍳", "👨🏽🍼", "👨🏽🎓", "👨🏽🎤", "👨🏽🎨", "👨🏽🏫", "👨🏽🏭", "👨🏽💻", "👨🏽💼", "👨🏽🔧", "👨🏽🔬", "👨🏽🚀", "👨🏽🚒", "👨🏽🦰", "👨🏽🦱", "👨🏽🦲", "👨🏽🦳", "👨🏾", "👨🏾⚕️", "👨🏾⚖️", "👨🏾✈️", "👨🏾🌾", "👨🏾🍳", "👨🏾🍼", "👨🏾🎓", "👨🏾🎤", "👨🏾🎨", "👨🏾🏫", "👨🏾🏭", "👨🏾💻", "👨🏾💼", "👨🏾🔧", "👨🏾🔬", "👨🏾🚀", "👨🏾🚒", "👨🏾🦰", "👨🏾🦱", "👨🏾🦲", "👨🏾🦳", "👨🏿", "👨🏿⚕️", "👨🏿⚖️", "👨🏿✈️", "👨🏿🌾", "👨🏿🍳", "👨🏿🍼", "👨🏿🎓", "👨🏿🎤", "👨🏿🎨", "👨🏿🏫", "👨🏿🏭", "👨🏿💻", "👨🏿💼", "👨🏿🔧", "👨🏿🔬", "👨🏿🚀", "👨🏿🚒", "👨🏿🦰", "👨🏿🦱", "👨🏿🦲", "👨🏿🦳", "👩", "👩⚕️", "👩⚖️", "👩✈️", "👩🌾", "👩🍳", "👩🍼", "👩🎓", "👩🎤", "👩🎨", "👩🏫", "👩🏭", "👩💻", "👩💼", "👩🔧", "👩🔬", "👩🚀", "👩🚒", "👩🦰", "👩🦱", "👩🦲", "👩🦳", "👩🏻", "👩🏻⚕️", "👩🏻⚖️", "👩🏻✈️", "👩🏻🌾", "👩🏻🍳", "👩🏻🍼", "👩🏻🎓", "👩🏻🎤", "👩🏻🎨", "👩🏻🏫", "👩🏻🏭", "👩🏻💻", "👩🏻💼", "👩🏻🔧", "👩🏻🔬", "👩🏻🚀", "👩🏻🚒", "👩🏻🦰", "👩🏻🦱", "👩🏻🦲", "👩🏻🦳", "👩🏼", "👩🏼⚕️", "👩🏼⚖️", "👩🏼✈️", "👩🏼🌾", "👩🏼🍳", "👩🏼🍼", "👩🏼🎓", "👩🏼🎤", "👩🏼🎨", "👩🏼🏫", "👩🏼🏭", "👩🏼💻", "👩🏼💼", "👩🏼🔧", "👩🏼🔬", "👩🏼🚀", "👩🏼🚒", "👩🏼🦰", "👩🏼🦱", "👩🏼🦲", "👩🏼🦳", "👩🏽", "👩🏽⚕️", "👩🏽⚖️", "👩🏽✈️", "👩🏽🌾", "👩🏽🍳", "👩🏽🍼", "👩🏽🎓", "👩🏽🎤", "👩🏽🎨", "👩🏽🏫", "👩🏽🏭", "👩🏽💻", "👩🏽💼", "👩🏽🔧", "👩🏽🔬", "👩🏽🚀", "👩🏽🚒", "👩🏽🦰", "👩🏽🦱", "👩🏽🦲", "👩🏽🦳", "👩🏾", "👩🏾⚕️", "👩🏾⚖️", "👩🏾✈️", "👩🏾🌾", "👩🏾🍳", "👩🏾🍼", "👩🏾🎓", "👩🏾🎤", "👩🏾🎨", "👩🏾🏫", "👩🏾🏭", "👩🏾💻", "👩🏾💼", "👩🏾🔧", "👩🏾🔬", "👩🏾🚀", "👩🏾🚒", "👩🏾🦰", "👩🏾🦱", "👩🏾🦲", "👩🏾🦳", "👩🏿", "👩🏿⚕️", "👩🏿⚖️", "👩🏿✈️", "👩🏿🌾", "👩🏿🍳", "👩🏿🍼", "👩🏿🎓", "👩🏿🎤", "👩🏿🎨", "👩🏿🏫", "👩🏿🏭", "👩🏿💻", "👩🏿💼", "👩🏿🔧", "👩🏿🔬", "👩🏿🚀", "👩🏿🚒", "👩🏿🦰", "👩🏿🦱", "👩🏿🦲", "👩🏿🦳", "👮", "👮♀️", "👮♂️", "👮🏻", "👮🏻♀️", "👮🏻♂️", "👮🏼", "👮🏼♀️", "👮🏼♂️", "👮🏽", "👮🏽♀️", "👮🏽♂️", "👮🏾", "👮🏾♀️", "👮🏾♂️", "👮🏿", "👮🏿♀️", "👮🏿♂️", "👰", "👰♀️", "👰♂️", "👰🏻", "👰🏻♀️", "👰🏻♂️", "👰🏼", "👰🏼♀️", "👰🏼♂️", "👰🏽", "👰🏽♀️", "👰🏽♂️", "👰🏾", "👰🏾♀️", "👰🏾♂️", "👰🏿", "👰🏿♀️", "👰🏿♂️", "👱", "👱♀️", "👱♂️", "👱🏻", "👱🏻♀️", "👱🏻♂️", "👱🏼", "👱🏼♀️", "👱🏼♂️", "👱🏽", "👱🏽♀️", "👱🏽♂️", "👱🏾", "👱🏾♀️", "👱🏾♂️", "👱🏿", "👱🏿♀️", "👱🏿♂️", "👲", "👲🏻", "👲🏼", "👲🏽", "👲🏾", "👲🏿", "👳", "👳♀️", "👳♂️", "👳🏻", "👳🏻♀️", "👳🏻♂️", "👳🏼", "👳🏼♀️", "👳🏼♂️", "👳🏽", "👳🏽♀️", "👳🏽♂️", "👳🏾", "👳🏾♀️", "👳🏾♂️", "👳🏿", "👳🏿♀️", "👳🏿♂️", "👴", "👴🏻", "👴🏼", "👴🏽", "👴🏾", "👴🏿", "👵", "👵🏻", "👵🏼", "👵🏽", "👵🏾", "👵🏿", "👶", "👶🏻", "👶🏼", "👶🏽", "👶🏾", "👶🏿", "👷", "👷♀️", "👷♂️", "👷🏻", "👷🏻♀️", "👷🏻♂️", "👷🏼", "👷🏼♀️", "👷🏼♂️", "👷🏽", "👷🏽♀️", "👷🏽♂️", "👷🏾", "👷🏾♀️", "👷🏾♂️", "👷🏿", "👷🏿♀️", "👷🏿♂️", "👸", "👸🏻", "👸🏼", "👸🏽", "👸🏾", "👸🏿", "👼", "👼🏻", "👼🏼", "👼🏽", "👼🏾", "👼🏿", "💁", "💁♀️", "💁♂️", "💁🏻", "💁🏻♀️", "💁🏻♂️", "💁🏼", "💁🏼♀️", "💁🏼♂️", "💁🏽", "💁🏽♀️", "💁🏽♂️", "💁🏾", "💁🏾♀️", "💁🏾♂️", "💁🏿", "💁🏿♀️", "💁🏿♂️", "💂", "💂♀️", "💂♂️", "💂🏻", "💂🏻♀️", "💂🏻♂️", "💂🏼", "💂🏼♀️", "💂🏼♂️", "💂🏽", "💂🏽♀️", "💂🏽♂️", "💂🏾", "💂🏾♀️", "💂🏾♂️", "💂🏿", "💂🏿♀️", "💂🏿♂️", "💆", "💆♀️", "💆♂️", "💆🏻", "💆🏻♀️", "💆🏻♂️", "💆🏼", "💆🏼♀️", "💆🏼♂️", "💆🏽", "💆🏽♀️", "💆🏽♂️", "💆🏾", "💆🏾♀️", "💆🏾♂️", "💆🏿", "💆🏿♀️", "💆🏿♂️", "💇", "💇🏻", "💇🏼", "💇🏽", "🕵🏻", "🕵🏻♀️", "🕵🏻♂️", "🕵🏼", "🕵🏼♀️", "🕵🏼♂️", "🕵🏽", "🕵🏽♀️", "🕵🏽♂️", "🕵🏾", "🕵🏾♀️", "🕵🏾♂️", "🕵🏿", "🕵🏿♀️", "🕵🏿♂️", "🕵️", "🕵️♀️", "🕵️♂️", "🙅", "🙅♀️", "🙅♂️", "🙅🏻", "🙅🏻♀️", "🙅🏻♂️", "🙅🏼", "🙅🏼♀️", "🙅🏼♂️", "🙅🏽", "🙅🏽♀️", "🙅🏽♂️", "🙅🏾", "🙅🏾♀️", "🙅🏾♂️", "🙅🏿", "🙅🏿♀️", "🙅🏿♂️", "🙆", "🙆♀️", "🙆♂️", "🙆🏻", "🙆🏻♀️", "🙆🏻♂️", "🙆🏼", "🙆🏼♀️", "🙆🏼♂️", "🙆🏽", "🙆🏽♀️", "🙆🏽♂️", "🙆🏾", "🙆🏾♀️", "🙆🏾♂️", "🙆🏿", "🙆🏿♀️", "🙆🏿♂️", "🙇", "🙇♀️", "🙇♂️", "🙇🏻", "🙇🏻♀️", "🙇🏻♂️", "🙇🏼", "🙇🏼♀️", "🙇🏼♂️", "🙇🏽", "🙇🏽♀️", "🙇🏽♂️", "🙇🏾", "🙇🏾♀️", "🙇🏾♂️", "🙇🏿", "🙇🏿♀️", "🙇🏿♂️", "🙋", "🙋♀️", "🙋♂️", "🙋🏻", "🙋🏻♀️", "🙋🏻♂️", "🙋🏼", "🙋🏼♀️", "🙋🏼♂️", "🙋🏽", "🙋🏽♀️", "🙋🏽♂️", "🙋🏾", "🙋🏾♀️", "🙋🏾♂️", "🙋🏿", "🙋🏿♀️", "🙋🏿♂️", "🙍", "🙍♀️", "🙍♂️", "🙍🏻", "🙍🏻♀️", "🙍🏻♂️", "🙍🏼", "🙍🏼♀️", "🙍🏼♂️", "🙍🏽", "🙍🏽♀️", "🙍🏽♂️", "🙍🏾", "🙍🏾♀️", "🙍🏾♂️", "🙍🏿", "🙍🏿♀️", "🙍🏿♂️", "🙎", "🙎♀️", "🙎♂️", "🙎🏻", "🙎🏻♀️", "🙎🏻♂️", "🙎🏼", "🙎🏼♀️", "🙎🏼♂️", "🙎🏽", "🙎🏽♀️", "🙎🏽♂️", "🙎🏾", "🙎🏾♀️", "🙎🏾♂️", "🙎🏿", "🙎🏿♀️", "🙎🏿♂️", "🤦", "🤦♀️", "🤦♂️", "🤦🏻", "🤦🏻♀️", "🤦🏻♂️", "🤦🏼", "🤦🏼♀️", "🤦🏼♂️", "🤦🏽", "🤦🏽♀️", "🤦🏽♂️", "🤦🏾", "🤦🏾♀️", "🤦🏾♂️", "🤦🏿", "🤦🏿♀️", "🤦🏿♂️", "🤰", "🤰🏻", "🤰🏼", "🤰🏽", "🤰🏾", "🤰🏿", "🤱", "🤱🏻", "🤱🏼", "🤱🏽", "🤱🏾", "🤱🏿", "🤴", "🤴🏻", "🤴🏼", "🤴🏽", "🤴🏾", "🤴🏿", "🤵", "🤵♀️", "🤵♂️", "🤵🏻", "🤵🏻♀️", "🤵🏻♂️", "🤵🏼", "🤵🏼♀️", "🤵🏼♂️", "🤵🏽", "🤵🏽♀️", "🤵🏽♂️", "🤵🏾", "🤵🏾♀️", "🤵🏾♂️", "🤵🏿", "🤵🏿♀️", "🤵🏿♂️", "🤶", "🤶🏻", "🤶🏼", "🤶🏽", "🤶🏾", "🤶🏿", "🤷", "🤷♀️", "🤷♂️", "🤷🏻", "🤷🏻♀️", "🤷🏻♂️", "🤷🏼", "🤷🏼♀️", "🤷🏼♂️", "🤷🏽", "🤷🏽♀️", "🤷🏽♂️", "🤷🏾", "🤷🏾♀️", "🤷🏾♂️", "🤷🏿", "🤷🏿♀️", "🤷🏿♂️", "🥷", "🥷🏻", "🥷🏼", "🥷🏽", "🥷🏾", "🥷🏿", "🦸", "🦸♀️", "🦸♂️", "🦸🏻", "🦸🏻♀️", "🦸🏻♂️", "🦸🏼", "🦸🏼♀️", "🦸🏼♂️", "🦸🏽", "🦸🏽♀️", "🦸🏽♂️", "🦸🏾", "🦸🏾♀️", "🦸🏾♂️", "🦸🏿", "🦸🏿♀️", "🦸🏿♂️", "🦹", "🦹♀️", "🦹♂️", "🦹🏻", "🦹🏻♀️", "🦹🏻♂️", "🦹🏼", "🦹🏼♀️", "🦹🏼♂️", "🦹🏽", "🦹🏽♀️", "🦹🏽♂️", "🦹🏾", "🦹🏾♀️", "🦹🏾♂️", "🦹🏿", "🦹🏿♀️", "🦹🏿♂️", "🧏", "🧏♀️", "🧏♂️", "🧏🏻", "🧏🏻♀️", "🧏🏻♂️", "🧏🏼", "🧏🏼♀️", "🧏🏼♂️", "🧏🏽", "🧏🏽♀️", "🧏🏽♂️", "🧏🏾", "🧏🏾♀️", "🧏🏾♂️", "🧏🏿", "🧏🏿♀️", "🧏🏿♂️", "🧑", "🧑⚕️", "🧑⚖️", "🧑✈️", "🧑🌾", "🧑🍳", "🧑🍼", "🧑🎄", "🧑🎓", "🧑🎤", "🧑🎨", "🧑🏫", "🧑🏭", "🧑💻", "🧑💼", "🧑🔧", "🧑🔬", "🧑🚀", "🧑🚒", "🧑🦰", "🧑🦱", "🧑🦲", "🧑🦳", "🧑🏻", "🧑🏻⚕️", "🧑🏻⚖️", "🧑🏻✈️", "🧑🏻🌾", "🧑🏻🍳", "🧑🏻🍼", "🧑🏻🎄", "🧑🏻🎓", "🧑🏻🎤", "🧑🏻🎨", "🧑🏻🏫", "🧑🏻🏭", "🧑🏻💻", "🧑🏻💼", "🧑🏻🔧", "🧑🏻🔬", "🧑🏻🚀", "🧑🏻🚒", "🧑🏻🦰", "🧑🏻🦱", "🧑🏻🦲", "🧑🏻🦳", "🧑🏼", "🧑🏼⚕️", "🧑🏼⚖️", "🧑🏼✈️", "🧑🏼🌾", "🧑🏼🍳", "🧑🏼🍼", "🧑🏼🎄", "🧑🏼🎓", "🧑🏼🎤", "🧑🏼🎨", "🧑🏼🏫", "🧑🏼🏭", "🧑🏼💻", "🧑🏼💼", "🧑🏼🔧", "🧑🏼🔬", "🧑🏼🚀", "🧑🏼🚒", "🧑🏼🦰", "🧑🏼🦱", "🧑🏼🦲", "🧑🏼🦳", "🧑🏽", "🧑🏽⚕️", "🧑🏽⚖️", "🧑🏽✈️", "🧑🏽🌾", "🧑🏽🍳", "🧑🏽🍼", "🧑🏽🎄", "🧑🏽🎓", "🧑🏽🎤", "🧑🏽🎨", "🧑🏽🏫", "🧑🏽🏭", "🧑🏽💻", "🧑🏽💼", "🧑🏽🔧", "🧑🏽🔬", "🧑🏽🚀", "🧑🏽🚒", "🧑🏽🦰", "🧑🏽🦱", "🧑🏽🦲", "🧑🏽🦳", "🧑🏾", "🧑🏾⚕️", "🧑🏾⚖️", "🧑🏾✈️", "🧑🏾🌾", "🧑🏾🍳", "🧑🏾🍼", "🧑🏾🎄", "🧑🏾🎓", "🧑🏾🎤", "🧑🏾🎨", "🧑🏾🏫", "🧑🏾🏭", "🧑🏾💻", "🧑🏾💼", "🧑🏾🔧", "🧑🏾🔬", "🧑🏾🚀", "🧑🏾🚒", "🧑🏾🦰", "🧑🏾🦱", "🧑🏾🦲", "🧑🏾🦳", "🧑🏿", "🧑🏿⚕️", "🧑🏿⚖️", "🧑🏿✈️", "🧑🏿🌾", "🧑🏿🍳", "🧑🏿🍼", "🧑🏿🎄", "🧑🏿🎓", "🧑🏿🎤", "🧑🏿🎨", "🧑🏿🏫", "🧑🏿🏭", "🧑🏿💻", "🧑🏿💼", "🧑🏿🔧", "🧑🏿🔬", "🧑🏿🚀", "🧑🏿🚒", "🧑🏿🦰", "🧑🏿🦱", "🧑🏿🦲", "🧑🏿🦳", "🧒", "🧒🏻", "🧒🏼", "🧒🏽", "🧒🏾", "🧒🏿", "🧓", "🧓🏻", "🧓🏼", "🧓🏽", "🧓🏾", "🧓🏿", "🧔", "🧔♀️", "🧔♂️", "🧔🏻", "🧔🏻♀️", "🧔🏻♂️", "🧔🏼", "🧔🏼♀️", "🧔🏼♂️", "🧔🏽", "🧔🏽♀️", "🧔🏽♂️", "🧔🏾", "🧔🏾♀️", "🧔🏾♂️", "🧔🏿", "🧔🏿♀️", "🧔🏿♂️", "🧕", "🧕🏻", "🧕🏼", "🧕🏽", "🧕🏾", "🧕🏿", "🧙", "🧙♀️", "🧙♂️", "🧙🏻", "🧙🏻♀️", "🧙🏻♂️", "🧙🏼", "🧙🏼♀️", "🧙🏼♂️", "🧙🏽", "🧙🏽♀️", "🧙🏽♂️", "🧙🏾", "🧙🏾♀️", "🧙🏾♂️", "🧙🏿", "🧙🏿♀️", "🧙🏿♂️", "🧚", "🧚♀️", "🧚♂️", "🧚🏻", "🧚🏻♀️", "🧚🏻♂️", "🧚🏼", "🧚🏼♀️", "🧚🏼♂️", "🧚🏽", "🧚🏽♀️", "🧚🏽♂️", "🧚🏾", "🧚🏾♀️", "🧚🏾♂️", "🧚🏿", "🧚🏿♀️", "🧚🏿♂️", "🧛", "🧛♀️", "🧛♂️", "🧛🏻", "🧛🏻♀️", "🧛🏻♂️", "🧛🏼", "🧛🏼♀️", "🧛🏼♂️", "🧛🏽", "🧛🏽♀️", "🧛🏽♂️", "🧛🏾", "🧛🏾♀️", "🧛🏾♂️", "🧛🏿", "🧛🏿♀️", "🧛🏿♂️", "🧜", "🧜♀️", "🧜♂️", "🧜🏻", "🧜🏻♀️", "🧜🏻♂️", "🧜🏼", "🧜🏼♀️", "🧜🏼♂️", "🧜🏽", "🧜🏽♀️", "🧜🏽♂️", "🧜🏾", "🧜🏾♀️", "🧜🏾♂️", "🧜🏿", "🧜🏿♀️", "🧜🏿♂️", "🧝", "🧝♀️", "🧝♂️", "🧝🏻", "🧝🏻♀️", "🧝🏻♂️", "🧝🏼", "🧝🏼♀️", "🧝🏼♂️", "🧝🏽", "🧝🏽♀️", "🧝🏽♂️", "🧝🏾", "🧝🏾♀️", "🧝🏾♂️", "🧝🏿", "🧝🏿♀️", "🧝🏿♂️", "🧞", "🧞♀️", "🧞♂️", "🧟", "🧟♀️", "🧟♂️"], nature: ["☘️", "🌱", "🌲", "🌳", "🌴", "🌵", "🌷", "🌸", "🌹", "🌺", "🌻", "🌼", "🌾", "🌿", "🍀", "🍁", "🍂", "🍃", "🏵️", "🐀", "🐁", "🐂", "🐃", "🐄", "🐅", "🐆", "🐇", "🐈", "🐈⬛", "🐉", "🐊", "🐋", "🐌", "🐍", "🐎", "🐏", "🐐", "🐑", "🐒", "🐓", "🐔", "🐕", "🐕🦺", "🐖", "🐗", "🐘", "🐙", "🐚", "🐛", "🐜", "🐝", "🐞", "🐟", "🐠", "🐡", "🐢", "🐣", "🐤", "🐥", "🐦", "🐧", "🐨", "🐩", "🐪", "🐫", "🐬", "🐭", "🐮", "🐯", "🐰", "🐱", "🐲", "🐳", "🐴", "🐵", "🐶", "🐷", "🐸", "🐹", "🐺", "🐻", "🐻❄️", "🐼", "🐽", "🐾", "🐿️", "💐", "💮", "🕊️", "🕷️", "🕸️", "🥀", "🦁", "🦂", "🦃", "🦄", "🦅", "🦆", "🦇", "🦈", "🦉", "🦊", "🦋", "🦌", "🦍", "🦎", "🦏", "🦒", "🦓", "🦔", "🦕", "🦖", "🦗", "🦘", "🦙", "🦚", "🦛", "🦜", "🦝", "🦟", "🦠", "🦡", "🦢", "🦣", "🦤", "🦥", "🦦", "🦧", "🦨", "🦩", "🦫", "🦬", "🦭", "🦮", "🪰", "🪱", "🪲", "🪳", "🪴", "🪶"], food: ["☕", "🌭", "🌮", "🌯", "🌰", "🌶️", "🌽", "🍄", "🍅", "🍆", "🍇", "🍈", "🍉", "🍊", "🍋", "🍌", "🍍", "🍎", "🍏", "🍐", "🍑", "🍒", "🍓", "🍔", "🍕", "🍖", "🍗", "🍘", "🍙", "🍚", "🍛", "🍜", "🍝", "🍞", "🍟", "🍠", "🍡", "🍢", "🍣", "🍤", "🍥", "🍦", "🍧", "🍨", "🍩", "🍪", "🍫", "🍬", "🍭", "🍮", "🍯", "🍰", "🍱", "🍲", "🍳", "🍴", "🍵", "🍶", "🍷", "🍸", "🍹", "🍺", "🍻", "🍼", "🍽️", "🍾", "🍿", "🎂", "🏺", "🔪", "🥂", "🥃", "🥄", "🥐", "🥑", "🥒", "🥓", "🥔", "🥕", "🥖", "🥗", "🥘", "🥙", "🥚", "🥛", "🥜", "🥝", "🥞", "🥟", "🥠", "🥡", "🥢", "🥣", "🥤", "🥥", "🥦", "🥧", "🥨", "🥩", "🥪", "🥫", "🥬", "🥭", "🥮", "🥯", "🦀", "🦐", "🦑", "🦞", "🦪", "🧀", "🧁", "🧂", "🧃", "🧄", "🧅", "🧆", "🧇", "🧈", "🧉", "🧊", "🧋", "🫐", "🫑", "🫒", "🫓", "🫔", "🫕", "🫖"], travel: ["⌚", "⌛", "⏰", "⏱️", "⏲️", "⏳", "☀️", "☁️", "☂️", "☃️", "☄️", "☔", "♨️", "⚓", "⚡", "⛄", "⛅", "⛈️", "⛩️", "⛪", "⛰️", "⛱️", "⛲", "⛴️", "⛵", "⛺", "⛽", "✈️", "❄️", "⭐", "🌀", "🌁", "🌂", "🌃", "🌄", "🌅", "🌆", "🌇", "🌈", "🌉", "🌊", "🌋", "🌌", "🌍", "🌎", "🌏", "🌐", "🌑", "🌒", "🌓", "🌔", "🌕", "🌖", "🌗", "🌘", "🌙", "🌚", "🌛", "🌜", "🌝", "🌞", "🌟", "🌠", "🌡️", "🌤️", "🌥️", "🌦️", "🌧️", "🌨️", "🌩️", "🌪️", "🌫️", "🌬️", "🎠", "🎡", "🎢", "🎪", "🏍️", "🏎️", "🏔️", "🏕️", "🏖️", "🏗️", "🏘️", "🏙️", "🏚️", "🏛️", "🏜️", "🏝️", "🏞️", "🏟️", "🏠", "🏡", "🏢", "🏣", "🏤", "🏥", "🏦", "🏨", "🏩", "🏪", "🏫", "🏬", "🏭", "🏯", "🏰", "💈", "💒", "💧", "💺", "🔥", "🕋", "🕌", "🕍", "🕐", "🕑", "🕒", "🕓", "🕔", "🕕", "🕖", "🕗", "🕘", "🕙", "🕚", "🕛", "🕜", "🕝", "🕞", "🕟", "🕠", "🕡", "🕢", "🕣", "🕤", "🕥", "🕦", "🕧", "🕰️", "🗺️", "🗻", "🗼", "🗽", "🗾", "🚀", "🚁", "🚂", "🚃", "🚄", "🚅", "🚆", "🚇", "🚈", "🚉", "🚊", "🚋", "🚌", "🚍", "🚎", "🚏", "🚐", "🚑", "🚒", "🚓", "🚔", "🚕", "🚖", "🚗", "🚘", "🚙", "🚚", "🚛", "🚜", "🚝", "🚞", "🚟", "🚠", "🚡", "🚢", "🚤", "🚥", "🚦", "🚧", "🚨", "🚲", "🛎️", "🛑", "🛕", "🛖", "🛢️", "🛣️", "🛤️", "🛥️", "🛩️", "🛫", "🛬", "🛰️", "🛳️", "🛴", "🛵", "🛶", "🛸", "🛹", "🛺", "🛻", "🛼", "🦼", "🦽", "🧭", "🧱", "🧳", "🪂", "🪐", "🪨", "🪵"], activity: ["♟️", "♠️", "♣️", "♥️", "♦️", "⚽", "⚾", "⛳", "⛸️", "✨", "🀄", "🃏", "🎀", "🎁", "🎃", "🎄", "🎆", "🎇", "🎈", "🎉", "🎊", "🎋", "🎍", "🎎", "🎏", "🎐", "🎑", "🎖️", "🎗️", "🎟️", "🎣", "🎨", "🎫", "🎭", "🎮", "🎯", "🎰", "🎱", "🎲", "🎳", "🎴", "🎽", "🎾", "🎿", "🏀", "🏅", "🏆", "🏈", "🏉", "🏏", "🏐", "🏑", "🏒", "🏓", "🏸", "🔮", "🕹️", "🖼️", "🛷", "🤿", "🥅", "🥇", "🥈", "🥉", "🥊", "🥋", "🥌", "🥍", "🥎", "🥏", "🧧", "🧨", "🧩", "🧵", "🧶", "🧸", "🧿", "🪀", "🪁", "🪄", "🪅", "🪆", "🪡", "🪢"], object: ["⌨️", "☎️", "⚒️", "⚔️", "⚖️", "⚗️", "⚙️", "⚰️", "⚱️", "⛏️", "⛑️", "⛓️", "✂️", "✉️", "✏️", "✒️", "🎒", "🎓", "🎙️", "🎚️", "🎛️", "🎞️", "🎤", "🎥", "🎧", "🎩", "🎬", "🎵", "🎶", "🎷", "🎸", "🎹", "🎺", "🎻", "🎼", "🏮", "🏷️", "🏹", "👑", "👒", "👓", "👔", "👕", "👖", "👗", "👘", "👙", "👚", "👛", "👜", "👝", "👞", "👟", "👠", "👡", "👢", "💄", "💉", "💊", "💍", "💎", "💡", "💰", "💳", "💴", "💵", "💶", "💷", "💸", "💹", "💻", "💼", "💽", "💾", "💿", "📀", "📁", "📂", "📃", "📄", "📅", "📆", "📇", "📈", "📉", "📊", "📋", "📌", "📍", "📎", "📏", "📐", "📑", "📒", "📓", "📔", "📕", "📖", "📗", "📘", "📙", "📚", "📜", "📝", "📞", "📟", "📠", "📡", "📢", "📣", "📤", "📥", "📦", "📧", "📨", "📩", "📪", "📫", "📬", "📭", "📮", "📯", "📰", "📱", "📲", "📷", "📸", "📹", "📺", "📻", "📼", "📽️", "📿", "🔇", "🔈", "🔉", "🔊", "🔋", "🔌", "🔍", "🔎", "🔏", "🔐", "🔑", "🔒", "🔓", "🔔", "🔕", "🔖", "🔗", "🔦", "🔧", "🔨", "🔩", "🔫", "🔬", "🔭", "🕯️", "🕶️", "🖇️", "🖊️", "🖋️", "🖌️", "🖍️", "🖥️", "🖨️", "🖱️", "🖲️", "🗂️", "🗃️", "🗄️", "🗑️", "🗒️", "🗓️", "🗜️", "🗝️", "🗞️", "🗡️", "🗳️", "🗿", "🚪", "🚬", "🚽", "🚿", "🛁", "🛋️", "🛍️", "🛏️", "🛒", "🛗", "🛠️", "🛡️", "🥁", "🥻", "🥼", "🥽", "🥾", "🥿", "🦯", "🦺", "🧢", "🧣", "🧤", "🧥", "🧦", "🧪", "🧫", "🧬", "🧮", "🧯", "🧰", "🧲", "🧴", "🧷", "🧹", "🧺", "🧻", "🧼", "🧽", "🧾", "🩰", "🩱", "🩲", "🩳", "🩴", "🩸", "🩹", "🩺", "🪃", "🪑", "🪒", "🪓", "🪔", "🪕", "🪖", "🪗", "🪘", "🪙", "🪚", "🪛", "🪜", "🪝", "🪞", "🪟", "🪠", "🪣", "🪤", "🪥", "🪦", "🪧"], symbol: ["#️⃣", "*️⃣", "0️⃣", "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "©️", "®️", "‼️", "⁉️", "™️", "ℹ️", "↔️", "↕️", "↖️", "↗️", "↘️", "↙️", "↩️", "↪️", "⏏️", "⏩", "⏪", "⏫", "⏬", "⏭️", "⏮️", "⏯️", "⏸️", "⏹️", "⏺️", "Ⓜ️", "▪️", "▫️", "▶️", "◀️", "◻️", "◼️", "◽", "◾", "☑️", "☢️", "☣️", "☦️", "☪️", "☮️", "☯️", "☸️", "♀️", "♂️", "♈", "♉", "♊", "♋", "♌", "♍", "♎", "♏", "♐", "♑", "♒", "♓", "♻️", "♾️", "♿", "⚕️", "⚛️", "⚜️", "⚠️", "⚧️", "⚪", "⚫", "⛎", "⛔", "✅", "✔️", "✖️", "✝️", "✡️", "✳️", "✴️", "❇️", "❌", "❎", "❓", "❔", "❕", "❗", "➕", "➖", "➗", "➡️", "➰", "➿", "⤴️", "⤵️", "⬅️", "⬆️", "⬇️", "⬛", "⬜", "⭕", "〰️", "〽️", "㊗️", "㊙️", "🅰️", "🅱️", "🅾️", "🅿️", "🆎", "🆑", "🆒", "🆓", "🆔", "🆕", "🆖", "🆗", "🆘", "🆙", "🆚", "🈁", "🈂️", "🈚", "🈯", "🈲", "🈳", "🈴", "🈵", "🈶", "🈷️", "🈸", "🈹", "🈺", "🉐", "🉑", "🎦", "🏧", "💠", "💱", "💲", "📛", "📳", "📴", "📵", "📶", "🔀", "🔁", "🔂", "🔃", "🔄", "🔅", "🔆", "🔘", "🔙", "🔚", "🔛", "🔜", "🔝", "🔞", "🔟", "🔠", "🔡", "🔢", "🔣", "🔤", "🔯", "🔰", "🔱", "🔲", "🔳", "🔴", "🔵", "🔶", "🔷", "🔸", "🔹", "🔺", "🔻", "🔼", "🔽", "🕉️", "🕎", "🚫", "🚭", "🚮", "🚯", "🚰", "🚱", "🚳", "🚷", "🚸", "🚹", "🚺", "🚻", "🚼", "🚾", "🛂", "🛃", "🛄", "🛅", "🛐", "🟠", "🟡", "🟢", "🟣", "🟤", "🟥", "🟦", "🟧", "🟨", "🟩", "🟪", "🟫"], flag: ["🇦🇨", "🇦🇩", "🇦🇪", "🇦🇫", "🇦🇬", "🇦🇮", "🇦🇱", "🇦🇲", "🇦🇴", "🇦🇶", "🇦🇷", "🇦🇸", "🇦🇹", "🇦🇺", "🇦🇼", "🇦🇽", "🇦🇿", "🇧🇦", "🇧🇧", "🇧🇩", "🇧🇪", "🇧🇫", "🇧🇬", "🇧🇭", "🇧🇮", "🇧🇯", "🇧🇱", "🇧🇲", "🇧🇳", "🇧🇴", "🇧🇶", "🇧🇷", "🇧🇸", "🇧🇹", "🇧🇻", "🇧🇼", "🇧🇾", "🇧🇿", "🇨🇦", "🇨🇨", "🇨🇩", "🇨🇫", "🇨🇬", "🇨🇭", "🇨🇮", "🇨🇰", "🇨🇱", "🇨🇲", "🇨🇳", "🇨🇴", "🇨🇵", "🇨🇷", "🇨🇺", "🇨🇻", "🇨🇼", "🇨🇽", "🇨🇾", "🇨🇿", "🇩🇪", "🇩🇬", "🇩🇯", "🇩🇰", "🇩🇲", "🇩🇴", "🇩🇿", "🇪🇦", "🇪🇨", "🇪🇪", "🇪🇬", "🇪🇭", "🇪🇷", "🇪🇸", "🇪🇹", "🇪🇺", "🇫🇮", "🇫🇯", "🇫🇰", "🇫🇲", "🇫🇴", "🇫🇷", "🇬🇦", "🇬🇧", "🇬🇩", "🇬🇪", "🇬🇫", "🇬🇬", "🇬🇭", "🇬🇮", "🇬🇱", "🇬🇲", "🇬🇳", "🇬🇵", "🇬🇶", "🇬🇷", "🇬🇸", "🇬🇹", "🇬🇺", "🇬🇼", "🇬🇾", "🇭🇰", "🇭🇲", "🇭🇳", "🇭🇷", "🇭🇹", "🇭🇺", "🇮🇨", "🇮🇩", "🇮🇪", "🇮🇱", "🇮🇲", "🇮🇳", "🇮🇴", "🇮🇶", "🇮🇷", "🇮🇸", "🇮🇹", "🇯🇪", "🇯🇲", "🇯🇴", "🇯🇵", "🇰🇪", "🇰🇬", "🇰🇭", "🇰🇮", "🇰🇲", "🇰🇳", "🇰🇵", "🇰🇷", "🇰🇼", "🇰🇾", "🇰🇿", "🇱🇦", "🇱🇧", "🇱🇨", "🇱🇮", "🇱🇰", "🇱🇷", "🇱🇸", "🇱🇹", "🇱🇺", "🇱🇻", "🇱🇾", "🇲🇦", "🇲🇨", "🇲🇩", "🇲🇪", "🇲🇫", "🇲🇬", "🇲🇭", "🇲🇰", "🇲🇱", "🇲🇲", "🇲🇳", "🇲🇴", "🇲🇵", "🇲🇶", "🇲🇷", "🇲🇸", "🇲🇹", "🇲🇺", "🇲🇻", "🇲🇼", "🇲🇽", "🇲🇾", "🇲🇿", "🇳🇦", "🇳🇨", "🇳🇪", "🇳🇫", "🇳🇬", "🇳🇮", "🇳🇱", "🇳🇴", "🇳🇵", "🇳🇷", "🇳🇺", "🇳🇿", "🇴🇲", "🇵🇦", "🇵🇪", "🇵🇫", "🇵🇬", "🇵🇭", "🇵🇰", "🇵🇱", "🇵🇲", "🇵🇳", "🇵🇷", "🇵🇸", "🇵🇹", "🇵🇼", "🇵🇾", "🇶🇦", "🇷🇪", "🇷🇴", "🇷🇸", "🇷🇺", "🇷🇼", "🇸🇦", "🇸🇧", "🇸🇨", "🇸🇩", "🇸🇪", "🇸🇬", "🇸🇭", "🇸🇮", "🇸🇯", "🇸🇰", "🇸🇱", "🇸🇲", "🇸🇳", "🇸🇴", "🇸🇷", "🇸🇸", "🇸🇹", "🇸🇻", "🇸🇽", "🇸🇾", "🇸🇿", "🇹🇦", "🇹🇨", "🇹🇩", "🇹🇫", "🇹🇬", "🇹🇭", "🇹🇯", "🇹🇰", "🇹🇱", "🇹🇲", "🇹🇳", "🇹🇴", "🇹🇷", "🇹🇹", "🇹🇻", "🇹🇼", "🇹🇿", "🇺🇦", "🇺🇬", "🇺🇲", "🇺🇳", "🇺🇸", "🇺🇾", "🇺🇿", "🇻🇦", "🇻🇨", "🇻🇪", "🇻🇬", "🇻🇮", "🇻🇳", "🇻🇺", "🇼🇫", "🇼🇸", "🇽🇰", "🇾🇪", "🇾🇹", "🇿🇦", "🇿🇲", "🇿🇼", "🎌", "🏁", "🏳️", "🏳️⚧️", "🏳️🌈", "🏴", "🏴☠️", "🚩"] };
|
|
@@ -1957,22 +1927,18 @@ var lr = ["ES256", "ES384", "ES512", "HS256", "HS384", "HS512", "PS256", "PS384"
|
|
|
1957
1927
|
var mr = ["FakerBot/{{system.semver}}", "Googlebot/2.1 (+http://www.google.com/bot.html)", 'Mozilla/5.0 (Linux; Android {{number.int({"min":5,"max":13})}}; {{helpers.arrayElement(["SM-G998U","SM-G998B","SM-G998N","SM-G998P","SM-T800"])}}) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Mobile Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:{{number.int({"min":75, "max":133})}}.0) Gecko/20100101 Firefox/{{number.int({"min":75, "max":133})}}.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Version/16.1 Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}}', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_15_7) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}}', 'Mozilla/5.0 (Windows NT {{helpers.arrayElement(["5.1","5.2","6.0","6.1","6.2","6.3","10.0"])}}; Win64; x64) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} Edg/{{number.int({"min":110,"max":131})}}.{{system.semver}}', 'Mozilla/5.0 (X11; Linux x86_64; rv:{{number.int({"min":75,"max":133})}}.0) Gecko/20100101 Firefox/{{number.int({"min":75,"max":133})}}.0', 'Mozilla/5.0 (compatible; MSIE {{number.int({"min":6,"max":10})}}.0; Windows NT {{helpers.arrayElement(["5.1","5.2","6.0","6.1","6.2","6.3","10.0"])}}; Trident/{{number.int({"min":4,"max":7})}}.0)', 'Mozilla/5.0 (iPhone; CPU iPhone OS {{number.int({"min":10,"max":18})}}_{{number.int({"min":0,"max":4})}} like Mac OS X) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Version/{{number.int({"min":10,"max":18})}}_{{number.int({"min":0,"max":4})}} Mobile/15E148 Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}'];
|
|
1958
1928
|
var tt = { emoji: sr, http_status_code: cr, jwt_algorithm: lr, user_agent_pattern: mr }, ur = tt;
|
|
1959
1929
|
var pr = [{ alpha2: "AD", alpha3: "AND", numeric: "020" }, { alpha2: "AE", alpha3: "ARE", numeric: "784" }, { alpha2: "AF", alpha3: "AFG", numeric: "004" }, { alpha2: "AG", alpha3: "ATG", numeric: "028" }, { alpha2: "AI", alpha3: "AIA", numeric: "660" }, { alpha2: "AL", alpha3: "ALB", numeric: "008" }, { alpha2: "AM", alpha3: "ARM", numeric: "051" }, { alpha2: "AO", alpha3: "AGO", numeric: "024" }, { alpha2: "AQ", alpha3: "ATA", numeric: "010" }, { alpha2: "AR", alpha3: "ARG", numeric: "032" }, { alpha2: "AS", alpha3: "ASM", numeric: "016" }, { alpha2: "AT", alpha3: "AUT", numeric: "040" }, { alpha2: "AU", alpha3: "AUS", numeric: "036" }, { alpha2: "AW", alpha3: "ABW", numeric: "533" }, { alpha2: "AX", alpha3: "ALA", numeric: "248" }, { alpha2: "AZ", alpha3: "AZE", numeric: "031" }, { alpha2: "BA", alpha3: "BIH", numeric: "070" }, { alpha2: "BB", alpha3: "BRB", numeric: "052" }, { alpha2: "BD", alpha3: "BGD", numeric: "050" }, { alpha2: "BE", alpha3: "BEL", numeric: "056" }, { alpha2: "BF", alpha3: "BFA", numeric: "854" }, { alpha2: "BG", alpha3: "BGR", numeric: "100" }, { alpha2: "BH", alpha3: "BHR", numeric: "048" }, { alpha2: "BI", alpha3: "BDI", numeric: "108" }, { alpha2: "BJ", alpha3: "BEN", numeric: "204" }, { alpha2: "BL", alpha3: "BLM", numeric: "652" }, { alpha2: "BM", alpha3: "BMU", numeric: "060" }, { alpha2: "BN", alpha3: "BRN", numeric: "096" }, { alpha2: "BO", alpha3: "BOL", numeric: "068" }, { alpha2: "BQ", alpha3: "BES", numeric: "535" }, { alpha2: "BR", alpha3: "BRA", numeric: "076" }, { alpha2: "BS", alpha3: "BHS", numeric: "044" }, { alpha2: "BT", alpha3: "BTN", numeric: "064" }, { alpha2: "BV", alpha3: "BVT", numeric: "074" }, { alpha2: "BW", alpha3: "BWA", numeric: "072" }, { alpha2: "BY", alpha3: "BLR", numeric: "112" }, { alpha2: "BZ", alpha3: "BLZ", numeric: "084" }, { alpha2: "CA", alpha3: "CAN", numeric: "124" }, { alpha2: "CC", alpha3: "CCK", numeric: "166" }, { alpha2: "CD", alpha3: "COD", numeric: "180" }, { alpha2: "CF", alpha3: "CAF", numeric: "140" }, { alpha2: "CG", alpha3: "COG", numeric: "178" }, { alpha2: "CH", alpha3: "CHE", numeric: "756" }, { alpha2: "CI", alpha3: "CIV", numeric: "384" }, { alpha2: "CK", alpha3: "COK", numeric: "184" }, { alpha2: "CL", alpha3: "CHL", numeric: "152" }, { alpha2: "CM", alpha3: "CMR", numeric: "120" }, { alpha2: "CN", alpha3: "CHN", numeric: "156" }, { alpha2: "CO", alpha3: "COL", numeric: "170" }, { alpha2: "CR", alpha3: "CRI", numeric: "188" }, { alpha2: "CU", alpha3: "CUB", numeric: "192" }, { alpha2: "CV", alpha3: "CPV", numeric: "132" }, { alpha2: "CW", alpha3: "CUW", numeric: "531" }, { alpha2: "CX", alpha3: "CXR", numeric: "162" }, { alpha2: "CY", alpha3: "CYP", numeric: "196" }, { alpha2: "CZ", alpha3: "CZE", numeric: "203" }, { alpha2: "DE", alpha3: "DEU", numeric: "276" }, { alpha2: "DJ", alpha3: "DJI", numeric: "262" }, { alpha2: "DK", alpha3: "DNK", numeric: "208" }, { alpha2: "DM", alpha3: "DMA", numeric: "212" }, { alpha2: "DO", alpha3: "DOM", numeric: "214" }, { alpha2: "DZ", alpha3: "DZA", numeric: "012" }, { alpha2: "EC", alpha3: "ECU", numeric: "218" }, { alpha2: "EE", alpha3: "EST", numeric: "233" }, { alpha2: "EG", alpha3: "EGY", numeric: "818" }, { alpha2: "EH", alpha3: "ESH", numeric: "732" }, { alpha2: "ER", alpha3: "ERI", numeric: "232" }, { alpha2: "ES", alpha3: "ESP", numeric: "724" }, { alpha2: "ET", alpha3: "ETH", numeric: "231" }, { alpha2: "FI", alpha3: "FIN", numeric: "246" }, { alpha2: "FJ", alpha3: "FJI", numeric: "242" }, { alpha2: "FK", alpha3: "FLK", numeric: "238" }, { alpha2: "FM", alpha3: "FSM", numeric: "583" }, { alpha2: "FO", alpha3: "FRO", numeric: "234" }, { alpha2: "FR", alpha3: "FRA", numeric: "250" }, { alpha2: "GA", alpha3: "GAB", numeric: "266" }, { alpha2: "GB", alpha3: "GBR", numeric: "826" }, { alpha2: "GD", alpha3: "GRD", numeric: "308" }, { alpha2: "GE", alpha3: "GEO", numeric: "268" }, { alpha2: "GF", alpha3: "GUF", numeric: "254" }, { alpha2: "GG", alpha3: "GGY", numeric: "831" }, { alpha2: "GH", alpha3: "GHA", numeric: "288" }, { alpha2: "GI", alpha3: "GIB", numeric: "292" }, { alpha2: "GL", alpha3: "GRL", numeric: "304" }, { alpha2: "GM", alpha3: "GMB", numeric: "270" }, { alpha2: "GN", alpha3: "GIN", numeric: "324" }, { alpha2: "GP", alpha3: "GLP", numeric: "312" }, { alpha2: "GQ", alpha3: "GNQ", numeric: "226" }, { alpha2: "GR", alpha3: "GRC", numeric: "300" }, { alpha2: "GS", alpha3: "SGS", numeric: "239" }, { alpha2: "GT", alpha3: "GTM", numeric: "320" }, { alpha2: "GU", alpha3: "GUM", numeric: "316" }, { alpha2: "GW", alpha3: "GNB", numeric: "624" }, { alpha2: "GY", alpha3: "GUY", numeric: "328" }, { alpha2: "HK", alpha3: "HKG", numeric: "344" }, { alpha2: "HM", alpha3: "HMD", numeric: "334" }, { alpha2: "HN", alpha3: "HND", numeric: "340" }, { alpha2: "HR", alpha3: "HRV", numeric: "191" }, { alpha2: "HT", alpha3: "HTI", numeric: "332" }, { alpha2: "HU", alpha3: "HUN", numeric: "348" }, { alpha2: "ID", alpha3: "IDN", numeric: "360" }, { alpha2: "IE", alpha3: "IRL", numeric: "372" }, { alpha2: "IL", alpha3: "ISR", numeric: "376" }, { alpha2: "IM", alpha3: "IMN", numeric: "833" }, { alpha2: "IN", alpha3: "IND", numeric: "356" }, { alpha2: "IO", alpha3: "IOT", numeric: "086" }, { alpha2: "IQ", alpha3: "IRQ", numeric: "368" }, { alpha2: "IR", alpha3: "IRN", numeric: "364" }, { alpha2: "IS", alpha3: "ISL", numeric: "352" }, { alpha2: "IT", alpha3: "ITA", numeric: "380" }, { alpha2: "JE", alpha3: "JEY", numeric: "832" }, { alpha2: "JM", alpha3: "JAM", numeric: "388" }, { alpha2: "JO", alpha3: "JOR", numeric: "400" }, { alpha2: "JP", alpha3: "JPN", numeric: "392" }, { alpha2: "KE", alpha3: "KEN", numeric: "404" }, { alpha2: "KG", alpha3: "KGZ", numeric: "417" }, { alpha2: "KH", alpha3: "KHM", numeric: "116" }, { alpha2: "KI", alpha3: "KIR", numeric: "296" }, { alpha2: "KM", alpha3: "COM", numeric: "174" }, { alpha2: "KN", alpha3: "KNA", numeric: "659" }, { alpha2: "KP", alpha3: "PRK", numeric: "408" }, { alpha2: "KR", alpha3: "KOR", numeric: "410" }, { alpha2: "KW", alpha3: "KWT", numeric: "414" }, { alpha2: "KY", alpha3: "CYM", numeric: "136" }, { alpha2: "KZ", alpha3: "KAZ", numeric: "398" }, { alpha2: "LA", alpha3: "LAO", numeric: "418" }, { alpha2: "LB", alpha3: "LBN", numeric: "422" }, { alpha2: "LC", alpha3: "LCA", numeric: "662" }, { alpha2: "LI", alpha3: "LIE", numeric: "438" }, { alpha2: "LK", alpha3: "LKA", numeric: "144" }, { alpha2: "LR", alpha3: "LBR", numeric: "430" }, { alpha2: "LS", alpha3: "LSO", numeric: "426" }, { alpha2: "LT", alpha3: "LTU", numeric: "440" }, { alpha2: "LU", alpha3: "LUX", numeric: "442" }, { alpha2: "LV", alpha3: "LVA", numeric: "428" }, { alpha2: "LY", alpha3: "LBY", numeric: "434" }, { alpha2: "MA", alpha3: "MAR", numeric: "504" }, { alpha2: "MC", alpha3: "MCO", numeric: "492" }, { alpha2: "MD", alpha3: "MDA", numeric: "498" }, { alpha2: "ME", alpha3: "MNE", numeric: "499" }, { alpha2: "MF", alpha3: "MAF", numeric: "663" }, { alpha2: "MG", alpha3: "MDG", numeric: "450" }, { alpha2: "MH", alpha3: "MHL", numeric: "584" }, { alpha2: "MK", alpha3: "MKD", numeric: "807" }, { alpha2: "ML", alpha3: "MLI", numeric: "466" }, { alpha2: "MM", alpha3: "MMR", numeric: "104" }, { alpha2: "MN", alpha3: "MNG", numeric: "496" }, { alpha2: "MO", alpha3: "MAC", numeric: "446" }, { alpha2: "MP", alpha3: "MNP", numeric: "580" }, { alpha2: "MQ", alpha3: "MTQ", numeric: "474" }, { alpha2: "MR", alpha3: "MRT", numeric: "478" }, { alpha2: "MS", alpha3: "MSR", numeric: "500" }, { alpha2: "MT", alpha3: "MLT", numeric: "470" }, { alpha2: "MU", alpha3: "MUS", numeric: "480" }, { alpha2: "MV", alpha3: "MDV", numeric: "462" }, { alpha2: "MW", alpha3: "MWI", numeric: "454" }, { alpha2: "MX", alpha3: "MEX", numeric: "484" }, { alpha2: "MY", alpha3: "MYS", numeric: "458" }, { alpha2: "MZ", alpha3: "MOZ", numeric: "508" }, { alpha2: "NA", alpha3: "NAM", numeric: "516" }, { alpha2: "NC", alpha3: "NCL", numeric: "540" }, { alpha2: "NE", alpha3: "NER", numeric: "562" }, { alpha2: "NF", alpha3: "NFK", numeric: "574" }, { alpha2: "NG", alpha3: "NGA", numeric: "566" }, { alpha2: "NI", alpha3: "NIC", numeric: "558" }, { alpha2: "NL", alpha3: "NLD", numeric: "528" }, { alpha2: "NO", alpha3: "NOR", numeric: "578" }, { alpha2: "NP", alpha3: "NPL", numeric: "524" }, { alpha2: "NR", alpha3: "NRU", numeric: "520" }, { alpha2: "NU", alpha3: "NIU", numeric: "570" }, { alpha2: "NZ", alpha3: "NZL", numeric: "554" }, { alpha2: "OM", alpha3: "OMN", numeric: "512" }, { alpha2: "PA", alpha3: "PAN", numeric: "591" }, { alpha2: "PE", alpha3: "PER", numeric: "604" }, { alpha2: "PF", alpha3: "PYF", numeric: "258" }, { alpha2: "PG", alpha3: "PNG", numeric: "598" }, { alpha2: "PH", alpha3: "PHL", numeric: "608" }, { alpha2: "PK", alpha3: "PAK", numeric: "586" }, { alpha2: "PL", alpha3: "POL", numeric: "616" }, { alpha2: "PM", alpha3: "SPM", numeric: "666" }, { alpha2: "PN", alpha3: "PCN", numeric: "612" }, { alpha2: "PR", alpha3: "PRI", numeric: "630" }, { alpha2: "PS", alpha3: "PSE", numeric: "275" }, { alpha2: "PT", alpha3: "PRT", numeric: "620" }, { alpha2: "PW", alpha3: "PLW", numeric: "585" }, { alpha2: "PY", alpha3: "PRY", numeric: "600" }, { alpha2: "QA", alpha3: "QAT", numeric: "634" }, { alpha2: "RE", alpha3: "REU", numeric: "638" }, { alpha2: "RO", alpha3: "ROU", numeric: "642" }, { alpha2: "RS", alpha3: "SRB", numeric: "688" }, { alpha2: "RU", alpha3: "RUS", numeric: "643" }, { alpha2: "RW", alpha3: "RWA", numeric: "646" }, { alpha2: "SA", alpha3: "SAU", numeric: "682" }, { alpha2: "SB", alpha3: "SLB", numeric: "090" }, { alpha2: "SC", alpha3: "SYC", numeric: "690" }, { alpha2: "SD", alpha3: "SDN", numeric: "729" }, { alpha2: "SE", alpha3: "SWE", numeric: "752" }, { alpha2: "SG", alpha3: "SGP", numeric: "702" }, { alpha2: "SH", alpha3: "SHN", numeric: "654" }, { alpha2: "SI", alpha3: "SVN", numeric: "705" }, { alpha2: "SJ", alpha3: "SJM", numeric: "744" }, { alpha2: "SK", alpha3: "SVK", numeric: "703" }, { alpha2: "SL", alpha3: "SLE", numeric: "694" }, { alpha2: "SM", alpha3: "SMR", numeric: "674" }, { alpha2: "SN", alpha3: "SEN", numeric: "686" }, { alpha2: "SO", alpha3: "SOM", numeric: "706" }, { alpha2: "SR", alpha3: "SUR", numeric: "740" }, { alpha2: "SS", alpha3: "SSD", numeric: "728" }, { alpha2: "ST", alpha3: "STP", numeric: "678" }, { alpha2: "SV", alpha3: "SLV", numeric: "222" }, { alpha2: "SX", alpha3: "SXM", numeric: "534" }, { alpha2: "SY", alpha3: "SYR", numeric: "760" }, { alpha2: "SZ", alpha3: "SWZ", numeric: "748" }, { alpha2: "TC", alpha3: "TCA", numeric: "796" }, { alpha2: "TD", alpha3: "TCD", numeric: "148" }, { alpha2: "TF", alpha3: "ATF", numeric: "260" }, { alpha2: "TG", alpha3: "TGO", numeric: "768" }, { alpha2: "TH", alpha3: "THA", numeric: "764" }, { alpha2: "TJ", alpha3: "TJK", numeric: "762" }, { alpha2: "TK", alpha3: "TKL", numeric: "772" }, { alpha2: "TL", alpha3: "TLS", numeric: "626" }, { alpha2: "TM", alpha3: "TKM", numeric: "795" }, { alpha2: "TN", alpha3: "TUN", numeric: "788" }, { alpha2: "TO", alpha3: "TON", numeric: "776" }, { alpha2: "TR", alpha3: "TUR", numeric: "792" }, { alpha2: "TT", alpha3: "TTO", numeric: "780" }, { alpha2: "TV", alpha3: "TUV", numeric: "798" }, { alpha2: "TW", alpha3: "TWN", numeric: "158" }, { alpha2: "TZ", alpha3: "TZA", numeric: "834" }, { alpha2: "UA", alpha3: "UKR", numeric: "804" }, { alpha2: "UG", alpha3: "UGA", numeric: "800" }, { alpha2: "UM", alpha3: "UMI", numeric: "581" }, { alpha2: "US", alpha3: "USA", numeric: "840" }, { alpha2: "UY", alpha3: "URY", numeric: "858" }, { alpha2: "UZ", alpha3: "UZB", numeric: "860" }, { alpha2: "VA", alpha3: "VAT", numeric: "336" }, { alpha2: "VC", alpha3: "VCT", numeric: "670" }, { alpha2: "VE", alpha3: "VEN", numeric: "862" }, { alpha2: "VG", alpha3: "VGB", numeric: "092" }, { alpha2: "VI", alpha3: "VIR", numeric: "850" }, { alpha2: "VN", alpha3: "VNM", numeric: "704" }, { alpha2: "VU", alpha3: "VUT", numeric: "548" }, { alpha2: "WF", alpha3: "WLF", numeric: "876" }, { alpha2: "WS", alpha3: "WSM", numeric: "882" }, { alpha2: "YE", alpha3: "YEM", numeric: "887" }, { alpha2: "YT", alpha3: "MYT", numeric: "175" }, { alpha2: "ZA", alpha3: "ZAF", numeric: "710" }, { alpha2: "ZM", alpha3: "ZMB", numeric: "894" }, { alpha2: "ZW", alpha3: "ZWE", numeric: "716" }];
|
|
1960
|
-
var at = { country_code: pr, time_zone:
|
|
1930
|
+
var at = { country_code: pr, time_zone: _ }, hr = at;
|
|
1961
1931
|
var nt = { title: "Base", code: "base" }, fr = nt;
|
|
1962
1932
|
var br = ["/Applications", "/bin", "/boot", "/boot/defaults", "/dev", "/etc", "/etc/defaults", "/etc/mail", "/etc/namedb", "/etc/periodic", "/etc/ppp", "/home", "/home/user", "/home/user/dir", "/lib", "/Library", "/lost+found", "/media", "/mnt", "/net", "/Network", "/opt", "/opt/bin", "/opt/include", "/opt/lib", "/opt/sbin", "/opt/share", "/private", "/private/tmp", "/private/var", "/proc", "/rescue", "/root", "/sbin", "/selinux", "/srv", "/sys", "/System", "/tmp", "/Users", "/usr", "/usr/X11R6", "/usr/bin", "/usr/include", "/usr/lib", "/usr/libdata", "/usr/libexec", "/usr/local/bin", "/usr/local/src", "/usr/obj", "/usr/ports", "/usr/sbin", "/usr/share", "/usr/src", "/var", "/var/log", "/var/mail", "/var/spool", "/var/tmp", "/var/yp"];
|
|
1963
1933
|
var dr = { "application/epub+zip": { extensions: ["epub"] }, "application/gzip": { extensions: ["gz"] }, "application/java-archive": { extensions: ["jar", "war", "ear"] }, "application/json": { extensions: ["json", "map"] }, "application/ld+json": { extensions: ["jsonld"] }, "application/msword": { extensions: ["doc", "dot"] }, "application/octet-stream": { extensions: ["bin", "dms", "lrf", "mar", "so", "dist", "distz", "pkg", "bpk", "dump", "elc", "deploy", "exe", "dll", "deb", "dmg", "iso", "img", "msi", "msp", "msm", "buffer"] }, "application/ogg": { extensions: ["ogx"] }, "application/pdf": { extensions: ["pdf"] }, "application/rtf": { extensions: ["rtf"] }, "application/vnd.amazon.ebook": { extensions: ["azw"] }, "application/vnd.apple.installer+xml": { extensions: ["mpkg"] }, "application/vnd.mozilla.xul+xml": { extensions: ["xul"] }, "application/vnd.ms-excel": { extensions: ["xls", "xlm", "xla", "xlc", "xlt", "xlw"] }, "application/vnd.ms-fontobject": { extensions: ["eot"] }, "application/vnd.ms-powerpoint": { extensions: ["ppt", "pps", "pot"] }, "application/vnd.oasis.opendocument.presentation": { extensions: ["odp"] }, "application/vnd.oasis.opendocument.spreadsheet": { extensions: ["ods"] }, "application/vnd.oasis.opendocument.text": { extensions: ["odt"] }, "application/vnd.openxmlformats-officedocument.presentationml.presentation": { extensions: ["pptx"] }, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { extensions: ["xlsx"] }, "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { extensions: ["docx"] }, "application/vnd.rar": { extensions: ["rar"] }, "application/vnd.visio": { extensions: ["vsd", "vst", "vss", "vsw"] }, "application/x-7z-compressed": { extensions: ["7z"] }, "application/x-abiword": { extensions: ["abw"] }, "application/x-bzip": { extensions: ["bz"] }, "application/x-bzip2": { extensions: ["bz2", "boz"] }, "application/x-csh": { extensions: ["csh"] }, "application/x-freearc": { extensions: ["arc"] }, "application/x-httpd-php": { extensions: ["php"] }, "application/x-sh": { extensions: ["sh"] }, "application/x-tar": { extensions: ["tar"] }, "application/xhtml+xml": { extensions: ["xhtml", "xht"] }, "application/xml": { extensions: ["xml", "xsl", "xsd", "rng"] }, "application/zip": { extensions: ["zip"] }, "audio/3gpp": { extensions: ["3gpp"] }, "audio/3gpp2": { extensions: ["3g2"] }, "audio/aac": { extensions: ["aac"] }, "audio/midi": { extensions: ["mid", "midi", "kar", "rmi"] }, "audio/mpeg": { extensions: ["mpga", "mp2", "mp2a", "mp3", "m2a", "m3a"] }, "audio/ogg": { extensions: ["oga", "ogg", "spx", "opus"] }, "audio/opus": { extensions: ["opus"] }, "audio/wav": { extensions: ["wav"] }, "audio/webm": { extensions: ["weba"] }, "font/otf": { extensions: ["otf"] }, "font/ttf": { extensions: ["ttf"] }, "font/woff": { extensions: ["woff"] }, "font/woff2": { extensions: ["woff2"] }, "image/avif": { extensions: ["avif"] }, "image/bmp": { extensions: ["bmp"] }, "image/gif": { extensions: ["gif"] }, "image/jpeg": { extensions: ["jpeg", "jpg", "jpe"] }, "image/png": { extensions: ["png"] }, "image/svg+xml": { extensions: ["svg", "svgz"] }, "image/tiff": { extensions: ["tif", "tiff"] }, "image/vnd.microsoft.icon": { extensions: ["ico"] }, "image/webp": { extensions: ["webp"] }, "text/calendar": { extensions: ["ics", "ifb"] }, "text/css": { extensions: ["css"] }, "text/csv": { extensions: ["csv"] }, "text/html": { extensions: ["html", "htm", "shtml"] }, "text/javascript": { extensions: ["js", "mjs"] }, "text/plain": { extensions: ["txt", "text", "conf", "def", "list", "log", "in", "ini"] }, "video/3gpp": { extensions: ["3gp", "3gpp"] }, "video/3gpp2": { extensions: ["3g2"] }, "video/mp2t": { extensions: ["ts"] }, "video/mp4": { extensions: ["mp4", "mp4v", "mpg4"] }, "video/mpeg": { extensions: ["mpeg", "mpg", "mpe", "m1v", "m2v"] }, "video/ogg": { extensions: ["ogv"] }, "video/webm": { extensions: ["webm"] }, "video/x-msvideo": { extensions: ["avi"] } };
|
|
1964
1934
|
var it = { directory_path: br, mime_type: dr }, gr = it;
|
|
1965
|
-
var ot = { color: qe, database: ar, date: nr, hacker: or, internet: ur, location: hr, metadata: fr, system: gr },
|
|
1966
|
-
var f = new Xe({ locale: [ys,
|
|
1935
|
+
var ot = { color: qe, database: ar, date: nr, hacker: or, internet: ur, location: hr, metadata: fr, system: gr }, _i = ot;
|
|
1936
|
+
var f = new Xe({ locale: [ys, _i] });
|
|
1967
1937
|
function generateToolCallArguments(requestBody) {
|
|
1968
1938
|
const { parameters } = requestBody.tools[0].function;
|
|
1969
1939
|
const argumentsObject = {};
|
|
1970
1940
|
Object.entries(parameters.properties).forEach(([paramName, paramDetails]) => {
|
|
1971
|
-
argumentsObject[paramName] = generateFakeData(
|
|
1972
|
-
paramDetails.type,
|
|
1973
|
-
paramDetails,
|
|
1974
|
-
paramName
|
|
1975
|
-
);
|
|
1941
|
+
argumentsObject[paramName] = generateFakeData(paramDetails.type, paramDetails, paramName);
|
|
1976
1942
|
});
|
|
1977
1943
|
return JSON.stringify(argumentsObject, null, 2);
|
|
1978
1944
|
}
|
|
@@ -1980,11 +1946,7 @@ function generateFunctionCallArguments(requestBody) {
|
|
|
1980
1946
|
const { parameters } = requestBody.functions[0];
|
|
1981
1947
|
const argumentsObject = {};
|
|
1982
1948
|
Object.entries(parameters.properties).forEach(([paramName, paramDetails]) => {
|
|
1983
|
-
argumentsObject[paramName] = generateFakeData(
|
|
1984
|
-
paramDetails.type,
|
|
1985
|
-
paramDetails,
|
|
1986
|
-
paramName
|
|
1987
|
-
);
|
|
1949
|
+
argumentsObject[paramName] = generateFakeData(paramDetails.type, paramDetails, paramName);
|
|
1988
1950
|
});
|
|
1989
1951
|
return JSON.stringify(argumentsObject, null, 2);
|
|
1990
1952
|
}
|
|
@@ -2051,7 +2013,8 @@ function generateFakeStringData(name) {
|
|
|
2051
2013
|
return f.lorem.words(5);
|
|
2052
2014
|
}
|
|
2053
2015
|
}
|
|
2054
|
-
function createDefaultResponse(created) {
|
|
2016
|
+
function createDefaultResponse(created, requestBody = {}) {
|
|
2017
|
+
const model = requestBody.model ? `${requestBody.model}-mock` : "gpt-3.5-mock";
|
|
2055
2018
|
return {
|
|
2056
2019
|
choices: [
|
|
2057
2020
|
{
|
|
@@ -2066,7 +2029,7 @@ function createDefaultResponse(created) {
|
|
|
2066
2029
|
],
|
|
2067
2030
|
created,
|
|
2068
2031
|
id: `chatcmpl-${f.string.alphanumeric(30)}`,
|
|
2069
|
-
model
|
|
2032
|
+
model,
|
|
2070
2033
|
object: "chat.completion",
|
|
2071
2034
|
usage: {
|
|
2072
2035
|
completion_tokens: 17,
|
|
@@ -2079,11 +2042,12 @@ function createFunctionCallingResponse(requestBody, created) {
|
|
|
2079
2042
|
const isTool = Boolean(requestBody.tools);
|
|
2080
2043
|
const functionOrToolCallObject = isTool ? [createToolCallObject(requestBody)] : createFunctionCallObject(requestBody);
|
|
2081
2044
|
const functionOrToolCall = isTool ? "tool_calls" : "function_call";
|
|
2045
|
+
const model = requestBody.model ? `${requestBody.model}-mock` : "gpt-3.5-mock";
|
|
2082
2046
|
return {
|
|
2083
2047
|
id: `chatcmpl-${f.string.alphanumeric(30)}`,
|
|
2084
2048
|
object: "chat.completion",
|
|
2085
2049
|
created,
|
|
2086
|
-
model
|
|
2050
|
+
model,
|
|
2087
2051
|
choices: [
|
|
2088
2052
|
{
|
|
2089
2053
|
index: 0,
|
|
@@ -2118,15 +2082,16 @@ function createFunctionCallObject(requestBody) {
|
|
|
2118
2082
|
arguments: `${generateFunctionCallArguments(requestBody)}`
|
|
2119
2083
|
};
|
|
2120
2084
|
}
|
|
2121
|
-
function getSteamChatObject() {
|
|
2085
|
+
function getSteamChatObject(requestBody = {}) {
|
|
2122
2086
|
const created = Math.floor(Date.now() / 1e3);
|
|
2087
|
+
const model = requestBody.model ? `${requestBody.model}-mock` : "gpt-3.5-mock";
|
|
2123
2088
|
let lorem = f.lorem.paragraph();
|
|
2124
2089
|
const loremArray = lorem.split(" ");
|
|
2125
2090
|
let ob = {
|
|
2126
2091
|
id: `chatcmpl-${f.string.alphanumeric(30)}`,
|
|
2127
2092
|
object: "chat.completion.chunk",
|
|
2128
2093
|
created,
|
|
2129
|
-
model
|
|
2094
|
+
model,
|
|
2130
2095
|
system_fingerprint: null,
|
|
2131
2096
|
choices: [
|
|
2132
2097
|
{
|
|
@@ -2144,11 +2109,11 @@ function getSteamChatObject() {
|
|
|
2144
2109
|
function getChatResponce(requestBody) {
|
|
2145
2110
|
const created = Math.floor(Date.now() / 1e3);
|
|
2146
2111
|
if (!requestBody.functions && !requestBody.tools) {
|
|
2147
|
-
return createDefaultResponse(created);
|
|
2112
|
+
return createDefaultResponse(created, requestBody);
|
|
2148
2113
|
}
|
|
2149
2114
|
return createFunctionCallingResponse(requestBody, created);
|
|
2150
2115
|
}
|
|
2151
|
-
function createChatStream() {
|
|
2116
|
+
function createChatStream(requestBody) {
|
|
2152
2117
|
const stream = new node_stream.Readable({
|
|
2153
2118
|
read() {
|
|
2154
2119
|
}
|
|
@@ -2158,7 +2123,7 @@ function createChatStream() {
|
|
|
2158
2123
|
function sendData() {
|
|
2159
2124
|
setTimeout(() => {
|
|
2160
2125
|
if (count < maxCount - 1) {
|
|
2161
|
-
stream.push(`data: ${getSteamChatObject()}
|
|
2126
|
+
stream.push(`data: ${getSteamChatObject(requestBody)}
|
|
2162
2127
|
|
|
2163
2128
|
`);
|
|
2164
2129
|
count++;
|
|
@@ -2297,13 +2262,16 @@ function deepMerge(target, source) {
|
|
|
2297
2262
|
const OPEN_AI_BASE_URL = "https://api.openai.com";
|
|
2298
2263
|
const CHAT_COMPLETIONS_ENDPOINT = "/v1/chat/completions";
|
|
2299
2264
|
const IMAGE_GENERATIONS_ENDPOINT = "/v1/images/generations";
|
|
2265
|
+
const CHAT_COMPLETIONS_ENDPOINT_NO_PREFIX = "/chat/completions";
|
|
2266
|
+
const IMAGE_GENERATIONS_ENDPOINT_NO_PREFIX = "/images/generations";
|
|
2300
2267
|
function mockOpenAIResponse(force = false, options = {}) {
|
|
2301
2268
|
const {
|
|
2302
2269
|
includeErrors = false,
|
|
2303
2270
|
latency = 0,
|
|
2304
2271
|
logRequests = false,
|
|
2305
2272
|
seed = null,
|
|
2306
|
-
useFixedResponses = false
|
|
2273
|
+
useFixedResponses = false,
|
|
2274
|
+
baseUrl = OPEN_AI_BASE_URL
|
|
2307
2275
|
} = options;
|
|
2308
2276
|
if (seed !== null) {
|
|
2309
2277
|
f.seed(seed);
|
|
@@ -2315,7 +2283,13 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2315
2283
|
if (env !== "development" && !force) {
|
|
2316
2284
|
return { isActive: false, stopMocking };
|
|
2317
2285
|
}
|
|
2318
|
-
|
|
2286
|
+
if (logRequests) {
|
|
2287
|
+
console.log(`[openai-api-mock] Mocking requests to: ${baseUrl}`);
|
|
2288
|
+
}
|
|
2289
|
+
const isDefaultBaseUrl = baseUrl === OPEN_AI_BASE_URL;
|
|
2290
|
+
const chatEndpoint = isDefaultBaseUrl ? CHAT_COMPLETIONS_ENDPOINT : CHAT_COMPLETIONS_ENDPOINT_NO_PREFIX;
|
|
2291
|
+
const imageEndpoint = isDefaultBaseUrl ? IMAGE_GENERATIONS_ENDPOINT : IMAGE_GENERATIONS_ENDPOINT_NO_PREFIX;
|
|
2292
|
+
nock(baseUrl).post(chatEndpoint).delay(latency).reply(function(uri, requestBody) {
|
|
2319
2293
|
if (logRequests) {
|
|
2320
2294
|
console.log(`[openai-api-mock] Chat request:`, JSON.stringify(requestBody, null, 2));
|
|
2321
2295
|
}
|
|
@@ -2346,7 +2320,7 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2346
2320
|
return [500, { error: { message: "Internal server error in mock" } }];
|
|
2347
2321
|
}
|
|
2348
2322
|
}).persist();
|
|
2349
|
-
nock(
|
|
2323
|
+
nock(baseUrl).post(imageEndpoint).delay(latency).reply(function(uri, requestBody) {
|
|
2350
2324
|
if (logRequests) {
|
|
2351
2325
|
console.log(`[openai-api-mock] Image request:`, JSON.stringify(requestBody, null, 2));
|
|
2352
2326
|
}
|
|
@@ -2355,7 +2329,10 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2355
2329
|
return [400, { error: { message: "Invalid request. Missing prompt." } }];
|
|
2356
2330
|
}
|
|
2357
2331
|
if (includeErrors && Math.random() < 0.05) {
|
|
2358
|
-
return [
|
|
2332
|
+
return [
|
|
2333
|
+
400,
|
|
2334
|
+
{ error: { message: "Your request was rejected as a result of our safety system." } }
|
|
2335
|
+
];
|
|
2359
2336
|
}
|
|
2360
2337
|
if (useFixedResponses) {
|
|
2361
2338
|
return [200, createResponseTemplate("IMAGE_GENERATION")];
|
|
@@ -2366,7 +2343,8 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2366
2343
|
return [500, { error: { message: "Internal server error in mock" } }];
|
|
2367
2344
|
}
|
|
2368
2345
|
}).persist();
|
|
2369
|
-
|
|
2346
|
+
const baseUrlHost = new URL(baseUrl).hostname;
|
|
2347
|
+
nock.enableNetConnect((host) => host !== baseUrlHost);
|
|
2370
2348
|
return {
|
|
2371
2349
|
isActive: true,
|
|
2372
2350
|
stopMocking,
|
|
@@ -2411,7 +2389,7 @@ function mockOpenAIResponse(force = false, options = {}) {
|
|
|
2411
2389
|
*/
|
|
2412
2390
|
addCustomEndpoint(method, path, handler) {
|
|
2413
2391
|
const methodLower = method.toLowerCase();
|
|
2414
|
-
nock(
|
|
2392
|
+
nock(baseUrl)[methodLower](path).reply(handler).persist();
|
|
2415
2393
|
}
|
|
2416
2394
|
};
|
|
2417
2395
|
}
|