UNPKG

@faker-js/faker

Version:

Generate massive amounts of fake contextual data

1 lines 4.87 kB
import{n as e,t}from"./base-DzmKJ9Qc.js";import{t as n}from"./en-ZD_MKrQh.js";const r={domain_suffix:[`biz`,`ca`,`com`,`info`,`name`,`net`,`org`],free_email:[`gmail.com`,`hotmail.com`,`yahoo.ca`]};var i=`Argentia,Asbestos,Baddeck,Baie-Comeau,Bancroft,Banff,Barkerville,Barrie,Bathurst,Batoche,Belleville,Beloeil,Bonavista,Borden,Brampton,Brandon,Brantford,Brockville,Brooks,Burlington,Burnaby,Calgary,Cambridge,Campbell River,Cap-de-la-Madeleine,Caraquet,Cavendish,Chambly,Channel-Port aux Basques,Charlesbourg,Charlottetown,Châteauguay,Chatham,Chatham-Kent,Chibougamau,Chilliwack,Churchill,Corner Brook,Cornwall,Côte-Saint-Luc,Courtenay,Cranbrook,Cumberland House,Dalhousie,Dauphin,Dawson,Dawson Creek,Delta,Digby,Dorval,Edmonton,Elliot Lake,Esquimalt,Estevan,Etobicoke,Ferryland,Flin Flon,Fort Erie,Fort Frances,Fort McMurray,Fort Saint James,Fort Saint John,Fort Smith,Fredericton,Gananoque,Gander,Gaspé,Gatineau,Glace Bay,Granby,Grand Falls–Windsor,Grande Prairie,Guelph,Halifax,Hamilton,Happy Valley–Goose Bay,Harbour Grace,Havre-Saint-Pierre,Hay River,Hope,Hull,Inuvik,Iqaluit,Iroquois Falls,Jasper,Jonquière,Kamloops,Kapuskasing,Kawartha Lakes,Kelowna,Kenora,Kildonan,Kimberley,Kingston,Kirkland Lake,Kitchener,Kitimat,Kuujjuaq,La Salle,La Tuque,Labrador City,Lachine,Lake Louise,Langley,Laurentian Hills,Laval,Lethbridge,Lévis,Liverpool,London,Longueuil,Louisbourg,Lunenburg,Magog,Matane,Medicine Hat,Midland,Miramichi,Mississauga,Moncton,Montreal,Montréal-Nord,Moose Factory,Moose Jaw,Moosonee,Nanaimo,Nelson,New Westminster,Niagara Falls,Niagara-on-the-Lake,North Bay,North Vancouver,North York,Oak Bay,Oakville,Orillia,Oshawa,Ottawa,Parry Sound,Penticton,Percé,Perth,Peterborough,Picton,Pictou,Placentia,Port Colborne,Port Hawkesbury,Port-Cartier,Powell River,Prince Albert,Prince George,Prince Rupert,Quebec,Quesnel,Red Deer,Regina,Revelstoke,Rimouski,Rossland,Rouyn-Noranda,Saguenay,Saint Albert,Saint Anthony,Saint Boniface,Saint Catharines,Saint John,Saint Thomas,Saint-Eustache,Saint-Hubert,Sainte-Anne-de-Beaupré,Sainte-Foy,Sainte-Thérèse,Sarnia-Clearwater,Saskatoon,Sault Sainte Marie,Scarborough,Sept-Îles,Sherbrooke,Simcoe,Sorel-Tracy,Souris,Springhill,St. John’s,Stratford,Sudbury,Summerside,Swan River,Sydney,Temiskaming Shores,Thompson,Thorold,Thunder Bay,Timmins,Toronto,Trail,Trenton,Trois-Rivières,Tuktoyaktuk,Uranium City,Val-d’Or,Vancouver,Vernon,Victoria,Wabana,Waskaganish,Waterloo,Watson Lake,Welland,West Nipissing,West Vancouver,White Rock,Whitehorse,Windsor,Winnipeg,Woodstock,Yarmouth,Yellowknife,York,York Factory`.split(`,`),a=[`{{location.city_prefix}} {{person.firstName}}{{location.city_suffix}}`,`{{location.city_prefix}} {{person.firstName}}`,`{{person.firstName}}{{location.city_suffix}}`,`{{person.lastName}}{{location.city_suffix}}`,`{{location.city_name}}`],o=[{alpha2:`CA`,alpha3:`CAN`,numeric:`124`}],s=[`A#? #?#`,`B#? #?#`,`C#? #?#`,`E#? #?#`,`G#? #?#`,`H#? #?#`,`J#? #?#`,`K#? #?#`,`L#? #?#`,`M#? #?#`,`N#? #?#`,`P#? #?#`,`R#? #?#`,`S#? #?#`,`T#? #?#`,`V#? #?#`,`X#? #?#`,`Y#? #?#`];const c=`[0-9][ABCEGHJ-NPRSTVW-Z] [0-9][ABCEGHJ-NPRSTVW-Z][0-9]`,l={internet:r,location:{city_name:i,city_pattern:a,country_code:o,postcode:s,postcode_by_state:{AB:`{{helpers.fromRegExp(T${c})}}`,BC:`{{helpers.fromRegExp(V${c})}}`,MB:`{{helpers.fromRegExp(R${c})}}`,NB:`{{helpers.fromRegExp(E${c})}}`,NL:`{{helpers.fromRegExp(A${c})}}`,NS:`{{helpers.fromRegExp(B${c})}}`,NT:`{{helpers.fromRegExp(X${c})}}`,NU:`{{helpers.fromRegExp(X${c})}}`,ON:`{{helpers.fromRegExp([KLMNP]${c})}}`,PE:`{{helpers.fromRegExp(C${c})}}`,QC:`{{helpers.fromRegExp([GHJ]${c})}}`,SK:`{{helpers.fromRegExp(S${c})}}`,YT:`{{helpers.fromRegExp(Y${c})}}`},state:[`Alberta`,`British Columbia`,`Manitoba`,`New Brunswick`,`Newfoundland and Labrador`,`Nova Scotia`,`Northwest Territories`,`Nunavut`,`Ontario`,`Prince Edward Island`,`Quebec`,`Saskatchewan`,`Yukon`],state_abbr:[`AB`,`BC`,`MB`,`NB`,`NL`,`NS`,`NU`,`NT`,`ON`,`PE`,`QC`,`SK`,`YT`],street_pattern:[`{{person.firstName}} {{location.street_suffix}}`,`{{person.lastName}} {{location.street_suffix}}`]},metadata:{title:`English (Canada)`,code:`en_CA`,country:`CA`,language:`en`,endonym:`English (Canada)`,dir:`ltr`,script:`Latn`},person:{last_name_pattern:{generic:[{value:`{{person.last_name.generic}}`,weight:95},{value:`{{person.last_name.generic}}-{{person.last_name.generic}}`,weight:5}]}},phone_number:{format:{human:[`!##-!##-####`,`(!##)!##-####`,`!##.!##.####`,`1-!##-###-####`,`!##-!##-#### x###`,`(!##)!##-#### x###`,`1-!##-!##-#### x###`,`!##.!##.#### x###`,`!##-!##-#### x####`,`(!##)!##-#### x####`,`1-!##-!##-#### x####`,`!##.!##.#### x####`,`!##-!##-#### x#####`,`(!##)!##-#### x#####`,`1-!##-!##-#### x#####`,`!##.!##.#### x#####`],international:[`+1!##!######`,`+1!#########`],national:[`(!##) !##-####`,`(!##) ###-####`]}}},u=new e({locale:[l,n,t]});export{l as n,u as t};