forked from marmelab/gremlins.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgremlins.min.js
2 lines (2 loc) · 47.9 KB
/
gremlins.min.js
1
2
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={exports:{},id:a,loaded:!1};return e[a].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="http://localhost:8080/",t(0)}([function(e,t,n){e.exports=n(6)},function(e,t,n){var a;a=function(e){"use strict";function t(e,t){for(var n in t)!function(n){e[n]=function(a){return arguments.length?(t[n]=a,e):t[n]}}(n)}return t}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;!function(){function i(e,t){if(e||(e={}),!t)return e;for(var n in t)"undefined"==typeof e[n]&&(e[n]=t[n]);return e}function r(e,t){if(e)throw new RangeError(t)}var o=9007199254740992,s=-o,l="0123456789",u="abcdefghijklmnopqrstuvwxyz",c=u.toUpperCase(),m=l+"abcdef",h=function(e){void 0!==e&&("function"==typeof e?this.random=e:this.seed=e),"undefined"==typeof this.random&&(this.mt=this.mersenne_twister(e),this.random=function(){return this.mt.random(this.seed)})};h.prototype.bool=function(e){return e=i(e,{likelihood:50}),r(e.likelihood<0||e.likelihood>100,"Chance: Likelihood accepts values from 0 to 100."),100*this.random()<e.likelihood},h.prototype.character=function(e){e=i(e);var t,n,a="!@#$%^&*()[]";return r(e.alpha&&e.symbols,"Chance: Cannot specify both alpha and symbols."),t="lower"===e.casing?u:"upper"===e.casing?c:u+c,n=e.pool?e.pool:e.alpha?t:e.symbols?a:t+l+a,n.charAt(this.natural({max:n.length-1}))},h.prototype.floating=function(e){var t;e=i(e,{fixed:4});var n=Math.pow(10,e.fixed);r(e.fixed&&e.precision,"Chance: Cannot specify both fixed and precision.");var a=o/n,s=-a;r(e.min&&e.fixed&&e.min<s,"Chance: Min specified is out of range with fixed. Min should be, at least, "+s),r(e.max&&e.fixed&&e.max>a,"Chance: Max specified is out of range with fixed. Max should be, at most, "+a),e=i(e,{min:s,max:a}),t=this.integer({min:e.min*n,max:e.max*n});var l=(t/n).toFixed(e.fixed);return parseFloat(l)},h.prototype.integer=function(e){var t,n;e=i(e,{min:s,max:o}),n=Math.max(Math.abs(e.min),Math.abs(e.max));do t=this.natural({max:n}),t=this.bool()?t:t*-1;while(t<e.min||t>e.max);return t},h.prototype.natural=function(e){return e=i(e,{min:0,max:o}),r(e.min>e.max,"Chance: Min cannot be greater than Max."),Math.floor(this.random()*(e.max-e.min+1)+e.min)},h.prototype.normal=function(e){e=i(e,{mean:0,dev:1});var t,n,a,r,o=e.mean,s=e.dev;do n=2*this.random()-1,a=2*this.random()-1,t=n*n+a*a;while(t>=1);return r=n*Math.sqrt(-2*Math.log(t)/t),s*r+o},h.prototype.string=function(e){e=i(e);for(var t=e.length||this.natural({min:5,max:20}),n="",a=e.pool,r=0;r<t;r++)n+=this.character({pool:a});return n},h.prototype.capitalize=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},h.prototype.mixin=function(e){for(var t in e)h.prototype[t]=e[t];return this},h.prototype.pick=function(e,t){return t&&1!==t?this.shuffle(e).slice(0,t):e[this.natural({max:e.length-1})]},h.prototype.shuffle=function(e){for(var t=e.slice(0),n=[],a=0,i=Number(t.length),r=0;r<i;r++)a=this.natural({max:t.length-1}),n[r]=t[a],t.splice(a,1);return n},h.prototype.paragraph=function(e){e=i(e);for(var t=e.sentences||this.natural({min:3,max:7}),n=[],a=0;a<t;a++)n.push(this.sentence());return n.join(" ")},h.prototype.sentence=function(e){e=i(e);for(var t,n=e.words||this.natural({min:12,max:18}),a=[],r=0;r<n;r++)a.push(this.word());return t=a.join(" "),t=this.capitalize(t)+"."},h.prototype.syllable=function(e){e=i(e);for(var t,n=e.length||this.natural({min:2,max:3}),a="bcdfghjklmnprstvwz",r="aeiou",o=a+r,s="",l=0;l<n;l++)t=0===l?this.character({pool:o}):a.indexOf(t)===-1?this.character({pool:a}):this.character({pool:r}),s+=t;return s},h.prototype.word=function(e){e=i(e),r(e.syllables&&e.length,"Chance: Cannot specify both syllables AND length.");var t=e.syllables||this.natural({min:1,max:3}),n="";if(e.length){do n+=this.syllable();while(n.length<e.length);n=n.substring(0,e.length)}else for(var a=0;a<t;a++)n+=this.syllable();return n},h.prototype.age=function(e){e=i(e);var t;switch(e.type){case"child":t=this.natural({min:1,max:12});break;case"teen":t=this.natural({min:13,max:19});break;case"adult":t=this.natural({min:18,max:120});break;case"senior":t=this.natural({min:65,max:120});break;default:t=this.natural({min:1,max:120})}return t},h.prototype.birthday=function(e){return e=i(e,{year:(new Date).getFullYear()-this.age(e)}),this.date(e)};var p=["Sophia","Emma","Isabella","Jacob","Mason","Ethan","Noah","Olivia","William","Liam","Jayden","Michael","Ava","Alexander","Aiden","Daniel","Matthew","Elijah","Emily","James","Anthony","Benjamin","Abigail","Joshua","Andrew","David","Joseph","Logan","Jackson","Mia","Christopher","Gabriel","Madison","Samuel","Ryan","Lucas","John","Nathan","Isaac","Dylan","Caleb","Elizabeth","Chloe","Christian","Landon","Jonathan","Carter","Ella","Luke","Owen","Brayden","Avery","Gavin","Wyatt","Addison","Isaiah","Aubrey","Henry","Eli","Hunter","Lily","Jack","Natalie","Evan","Sofia","Jordan","Nicholas","Tyler","Aaron","Charlotte","Zoey","Jeremiah","Julian","Cameron","Grace","Hannah","Amelia","Harper","Levi","Lillian","Brandon","Angel","Austin","Connor","Adrian","Robert","Samantha","Charles","Evelyn","Victoria","Thomas","Brooklyn","Sebastian","Zoe","Colton","Jaxon","Layla","Kevin","Zachary","Ayden","Dominic","Blake","Jose","Hailey","Oliver","Justin","Bentley","Leah","Jason","Chase","Ian","Kaylee","Anna","Aaliyah","Gabriella","Josiah","Allison","Parker","Xavier","Nevaeh","Alexis","Adam","Audrey","Cooper","Savannah","Sarah","Alyssa","Claire","Taylor","Riley","Camila","Nathaniel","Arianna","Ashley","Grayson","Jace","Brianna","Carson","Sophie","Peyton","Nolan","Tristan","Luis","Brody","Bella","Khloe","Genesis","Alexa","Juan","Hudson","Serenity","Kylie","Aubree","Scarlett","Bryson","Carlos","Stella","Maya","Easton","Katherine","Julia","Damian","Alex","Kayden","Ryder","Lucy","Madelyn","Jesus","Cole","Autumn","Makayla","Kayla","Mackenzie","Micah","Vincent","Max","Lauren","Jaxson","Gianna","Eric","Ariana","Asher","Hayden","Faith","Alexandra","Melanie","Sydney","Bailey","Caroline","Naomi","Morgan","Kennedy","Ellie","Jasmine","Eva","Skylar","Diego","Kimberly","Violet","Molly","Miles","Steven","Aria","Ivan","Jocelyn","Trinity","Elias","Aidan","Maxwell","London","Bryce","Lydia","Madeline","Antonio","Giovanni","Reagan","Timothy","Bryan","Piper","Andrea","Santiago","Annabelle","Maria","Colin","Richard","Braxton","Kaleb","Brooke","Kyle","Kaden","Preston","Payton","Miguel","Jonah","Paisley","Paige","Lincoln","Ruby","Nora","Riley","Mariah","Leo","Victor","Brady","Jeremy","Mateo","Brian","Jaden","Ashton","Patrick","Rylee","Declan","Lilly","Brielle","Sean","Joel","Gael","Sawyer","Alejandro","Jade","Marcus","Destiny","Leonardo","Jesse","Caden","Jake","Kaiden","Nicole","Mila","Wesley","Kendall","Liliana","Camden","Kaitlyn","Natalia","Sadie","Edward","Brantley","Jordyn","Roman","Vanessa","Mary","Mya","Penelope","Isabelle","Alice","Axel","Silas","Jude","Grant","Reese","Gabrielle","Hadley","Katelyn","Angelina","Rachel","Isabel","Eleanor","Cayden","Emmanuel","George","Clara","Brooklynn","Jessica","Maddox","Malachi","Bradley","Alan","Weston","Elena","Gage","Aliyah","Vivian","Laila","Sara","Amy","Devin","Eliana","Greyson","Lyla","Juliana","Kenneth","Mark","Oscar","Tanner","Rylan","Valeria","Adriana","Nicolas","Makenzie","Harrison","Elise","Mckenzie","Derek","Quinn","Delilah","Peyton","Ezra","Cora","Kylee","Tucker","Emmett","Avery","Cody","Rebecca","Gracie","Izabella","Calvin","Andres","Jorge","Abel","Paul","Abraham","Kai","Josephine","Alaina","Michelle","Jennifer","Collin","Theodore","Ezekiel","Eden","Omar","Jayce","Valentina","Conner","Bennett","Aurora","Catherine","Stephanie","Trevor","Valerie","Eduardo","Peter","Maximus","Jayla","Jaiden","Willow","Jameson","Seth","Daisy","Alana","Melody","Hazel","Kingston","Summer","Melissa","Javier","Margaret","Travis","Kinsley","Kinley","Garrett","Everett","Ariel","Lila","Graham","Giselle","Ryleigh","Xander","Haley","Julianna","Ivy","Alivia","Cristian","Brynn","Damien","Ryker","Griffin","Keira","Daniela","Aniyah","Angela","Kate","Londyn","Corbin","Myles","Hayden","Harmony","Adalyn","Luca","Zane","Francisco","Ricardo","Alexis","Stephen","Zayden","Megan","Allie","Gabriela","Iker","Drake","Alayna","Lukas","Presley","Charlie","Spencer","Zion","Erick","Jenna","Josue","Alexandria","Ashlyn","Adrianna","Jada","Jeffrey","Trenton","Fiona","Chance","Norah","Paxton","Elliot","Emery","Fernando","Maci","Miranda","Keegan","Landen","Ximena","Amaya","Manuel","Amir","Shane","Cecilia","Raymond","Andre","Ana","Shelby","Katie","Hope","Callie","Jordan","Luna","Leilani","Eliza","Mckenna","Angel","Genevieve","Makenna","Isla","Lola","Danielle","Chelsea","Leila","Tessa","Adelyn","Camille","Mikayla","Adeline","Adalynn","Sienna","Esther","Jacqueline","Emerson","Arabella","Maggie","Athena","Lucia","Lexi","Ayla"];h.prototype.first=function(){return this.pick(p)},h.prototype.gender=function(){return this.pick(["Male","Female"])};var d=["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White","Harris","Martin","Thompson","Garcia","Martinez","Robinson","Clark","Rodriguez","Lewis","Lee","Walker","Hall","Allen","Young","Hernandez","King","Wright","Lopez","Hill","Scott","Green","Adams","Baker","Gonzalez","Nelson","Carter","Mitchell","Perez","Roberts","Turner","Phillips","Campbell","Parker","Evans","Edwards","Collins","Stewart","Sanchez","Morris","Rogers","Reed","Cook","Morgan","Bell","Murphy","Bailey","Rivera","Cooper","Richardson","Cox","Howard","Ward","Torres","Peterson","Gray","Ramirez","James","Watson","Brooks","Kelly","Sanders","Price","Bennett","Wood","Barnes","Ross","Henderson","Coleman","Jenkins","Perry","Powell","Long","Patterson","Hughes","Flores","Washington","Butler","Simmons","Foster","Gonzales","Bryant","Alexander","Russell","Griffin","Diaz","Hayes","Myers","Ford","Hamilton","Graham","Sullivan","Wallace","Woods","Cole","West","Jordan","Owens","Reynolds","Fisher","Ellis","Harrison","Gibson","McDonald","Cruz","Marshall","Ortiz","Gomez","Murray","Freeman","Wells","Webb","Simpson","Stevens","Tucker","Porter","Hunter","Hicks","Crawford","Henry","Boyd","Mason","Morales","Kennedy","Warren","Dixon","Ramos","Reyes","Burns","Gordon","Shaw","Holmes","Rice","Robertson","Hunt","Black","Daniels","Palmer","Mills","Nichols","Grant","Knight","Ferguson","Rose","Stone","Hawkins","Dunn","Perkins","Hudson","Spencer","Gardner","Stephens","Payne","Pierce","Berry","Matthews","Arnold","Wagner","Willis","Ray","Watkins","Olson","Carroll","Duncan","Snyder","Hart","Cunningham","Bradley","Lane","Andrews","Ruiz","Harper","Fox","Riley","Armstrong","Carpenter","Weaver","Greene","Lawrence","Elliott","Chavez","Sims","Austin","Peters","Kelley","Franklin","Lawson","Fields","Gutierrez","Ryan","Schmidt","Carr","Vasquez","Castillo","Wheeler","Chapman","Oliver","Montgomery","Richards","Williamson","Johnston","Banks","Meyer","Bishop","McCoy","Howell","Alvarez","Morrison","Hansen","Fernandez","Garza","Harvey","Little","Burton","Stanley","Nguyen","George","Jacobs","Reid","Kim","Fuller","Lynch","Dean","Gilbert","Garrett","Romero","Welch","Larson","Frazier","Burke","Hanson","Day","Mendoza","Moreno","Bowman","Medina","Fowler","Brewer","Hoffman","Carlson","Silva","Pearson","Holland","Douglas","Fleming","Jensen","Vargas","Byrd","Davidson","Hopkins","May","Terry","Herrera","Wade","Soto","Walters","Curtis","Neal","Caldwell","Lowe","Jennings","Barnett","Graves","Jimenez","Horton","Shelton","Barrett","Obrien","Castro","Sutton","Gregory","McKinney","Lucas","Miles","Craig","Rodriquez","Chambers","Holt","Lambert","Fletcher","Watts","Bates","Hale","Rhodes","Pena","Beck","Newman","Haynes","McDaniel","Mendez","Bush","Vaughn","Parks","Dawson","Santiago","Norris","Hardy","Love","Steele","Curry","Powers","Schultz","Barker","Guzman","Page","Munoz","Ball","Keller","Chandler","Weber","Leonard","Walsh","Lyons","Ramsey","Wolfe","Schneider","Mullins","Benson","Sharp","Bowen","Daniel","Barber","Cummings","Hines","Baldwin","Griffith","Valdez","Hubbard","Salazar","Reeves","Warner","Stevenson","Burgess","Santos","Tate","Cross","Garner","Mann","Mack","Moss","Thornton","Dennis","McGee","Farmer","Delgado","Aguilar","Vega","Glover","Manning","Cohen","Harmon","Rodgers","Robbins","Newton","Todd","Blair","Higgins","Ingram","Reese","Cannon","Strickland","Townsend","Potter","Goodwin","Walton","Rowe","Hampton","Ortega","Patton","Swanson","Joseph","Francis","Goodman","Maldonado","Yates","Becker","Erickson","Hodges","Rios","Conner","Adkins","Webster","Norman","Malone","Hammond","Flowers","Cobb","Moody","Quinn","Blake","Maxwell","Pope","Floyd","Osborne","Paul","McCarthy","Guerrero","Lindsey","Estrada","Sandoval","Gibbs","Tyler","Gross","Fitzgerald","Stokes","Doyle","Sherman","Saunders","Wise","Colon","Gill","Alvarado","Greer","Padilla","Simon","Waters","Nunez","Ballard","Schwartz","McBride","Houston","Christensen","Klein","Pratt","Briggs","Parsons","McLaughlin","Zimmerman","French","Buchanan","Moran","Copeland","Roy","Pittman","Brady","McCormick","Holloway","Brock","Poole","Frank","Logan","Owen","Bass","Marsh","Drake","Wong","Jefferson","Park","Morton","Abbott","Sparks","Patrick","Norton","Huff","Clayton","Massey","Lloyd","Figueroa","Carson","Bowers","Roberson","Barton","Tran","Lamb","Harrington","Casey","Boone","Cortez","Clarke","Mathis","Singleton","Wilkins","Cain","Bryan","Underwood","Hogan","McKenzie","Collier","Luna","Phelps","McGuire","Allison","Bridges","Wilkerson","Nash","Summers","Atkins"];h.prototype.last=function(){return this.pick(d)},h.prototype.name=function(e){e=i(e);var t,n=this.first(),a=this.last();return t=e.middle?n+" "+this.first()+" "+a:e.middle_initial?n+" "+this.character({alpha:!0,casing:"upper"})+". "+a:n+" "+a,e.prefix&&(t=this.prefix()+" "+t),t},h.prototype.name_prefixes=function(){return[{name:"Doctor",abbreviation:"Dr."},{name:"Miss",abbreviation:"Miss"},{name:"Misses",abbreviation:"Mrs."},{name:"Mister",abbreviation:"Mr."}]},h.prototype.prefix=function(e){return this.name_prefix(e)},h.prototype.name_prefix=function(e){return e=i(e),e.full?this.pick(this.name_prefixes()).name:this.pick(this.name_prefixes()).abbreviation},h.prototype.color=function(e){function t(e,t){return[e,e,e].join(t||"")}e=i(e,{format:this.pick(["hex","shorthex","rgb"]),grayscale:!1});var n=e.grayscale;if("hex"===e.format)return"#"+(n?t(this.hash({length:2})):this.hash({length:6}));if("shorthex"===e.format)return"#"+(n?t(this.hash({length:1})):this.hash({length:3}));if("rgb"===e.format)return n?"rgb("+t(this.natural({max:255}),",")+")":"rgb("+this.natural({max:255})+","+this.natural({max:255})+","+this.natural({max:255})+")";throw new Error('Invalid format provided. Please provide one of "hex", "shorthex", or "rgb"')},h.prototype.domain=function(e){return e=i(e),this.word()+"."+(e.tld||this.tld())},h.prototype.email=function(e){return e=i(e),this.word()+"@"+(e.domain||this.domain())},h.prototype.fbid=function(){return parseInt("10000"+this.natural({max:1e11}),10)},h.prototype.hashtag=function(){return"#"+this.word()},h.prototype.ip=function(){return this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({max:255})+"."+this.natural({max:255})},h.prototype.ipv6=function(){for(var e="",t=0;t<8;t++)e+=this.hash({length:4})+":";return e.substr(0,e.length-1)},h.prototype.klout=function(){return this.natural({min:1,max:99})},h.prototype.tlds=function(){return["com","org","edu","gov","co.uk","net","io"]},h.prototype.tld=function(){return this.pick(this.tlds())},h.prototype.twitter=function(){return"@"+this.word()},h.prototype.address=function(e){return e=i(e),this.natural({min:5,max:2e3})+" "+this.street(e)},h.prototype.areacode=function(e){e=i(e,{parens:!0});var t=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:8}).toString()+this.natural({min:0,max:9}).toString();return e.parens?"("+t+")":t},h.prototype.city=function(){return this.capitalize(this.word({syllables:3}))},h.prototype.coordinates=function(e){return e=i(e),this.latitude(e)+", "+this.longitude(e)},h.prototype.latitude=function(e){return e=i(e,{fixed:5}),this.floating({min:-90,max:90,fixed:e.fixed})},h.prototype.longitude=function(e){return e=i(e,{fixed:5}),this.floating({min:0,max:180,fixed:e.fixed})},h.prototype.phone=function(e){e=i(e,{formatted:!0}),e.formatted||(e.parens=!1);var t=this.areacode(e).toString(),n=this.natural({min:2,max:9}).toString()+this.natural({min:0,max:9}).toString()+this.natural({min:0,max:9}).toString(),a=this.natural({min:1e3,max:9999}).toString();return e.formatted?t+" "+n+"-"+a:t+n+a},h.prototype.postal=function(){var e=this.character({pool:"XVTSRPNKLMHJGECBA"}),t=e+this.natural({max:9})+this.character({alpha:!0,casing:"upper"}),n=this.natural({max:9})+this.character({alpha:!0,casing:"upper"})+this.natural({max:9});return t+" "+n},h.prototype.provinces=function(){return[{name:"Alberta",abbreviation:"AB"},{name:"British Columbia",abbreviation:"BC"},{name:"Manitoba",abbreviation:"MB"},{name:"New Brunswick",abbreviation:"NB"},{name:"Newfoundland and Labrador",abbreviation:"NL"},{name:"Nova Scotia",abbreviation:"NS"},{name:"Ontario",abbreviation:"ON"},{name:"Prince Edward Island",abbreviation:"PE"},{name:"Quebec",abbreviation:"QC"},{name:"Saskatchewan",abbreviation:"SK"},{name:"Northwest Territories",abbreviation:"NT"},{name:"Nunavut",abbreviation:"NU"},{name:"Yukon",abbreviation:"YT"}]},h.prototype.province=function(e){return e&&e.full?this.pick(this.provinces()).name:this.pick(this.provinces()).abbreviation},h.prototype.radio=function(e){e=i(e,{side:"?"});var t="";switch(e.side.toLowerCase()){case"east":case"e":t="W";break;case"west":case"w":t="K";break;default:t=this.character({pool:"KW"})}return t+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})+this.character({alpha:!0,casing:"upper"})},h.prototype.state=function(e){return e&&e.full?this.pick(this.states()).name:this.pick(this.states()).abbreviation},h.prototype.states=function(){return[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"American Samoa",abbreviation:"AS"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"Armed Forces Europe",abbreviation:"AE"},{name:"Armed Forces Pacific",abbreviation:"AP"},{name:"Armed Forces the Americas",abbreviation:"AA"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District of Columbia",abbreviation:"DC"},{name:"Federated States of Micronesia",abbreviation:"FM"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Guam",abbreviation:"GU"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virgin Islands, U.S.",abbreviation:"VI"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}]},h.prototype.street=function(e){e=i(e);var t=this.word({syllables:2});return t=this.capitalize(t),t+=" ",t+=e.short_suffix?this.street_suffix().abbreviation:this.street_suffix().name},h.prototype.street_suffix=function(){return this.pick(this.street_suffixes())},h.prototype.street_suffixes=function(){return[{name:"Avenue",abbreviation:"Ave"},{name:"Boulevard",abbreviation:"Blvd"},{name:"Center",abbreviation:"Ctr"},{name:"Circle",abbreviation:"Cir"},{name:"Court",abbreviation:"Ct"},{name:"Drive",abbreviation:"Dr"},{name:"Extension",abbreviation:"Ext"},{name:"Glen",abbreviation:"Gln"},{name:"Grove",abbreviation:"Grv"},{name:"Heights",abbreviation:"Hts"},{name:"Highway",abbreviation:"Hwy"},{name:"Junction",abbreviation:"Jct"},{name:"Key",abbreviation:"Key"},{name:"Lane",abbreviation:"Ln"},{name:"Loop",abbreviation:"Loop"},{name:"Manor",abbreviation:"Mnr"},{name:"Mill",abbreviation:"Mill"},{name:"Park",abbreviation:"Park"},{name:"Parkway",abbreviation:"Pkwy"},{name:"Pass",abbreviation:"Pass"},{name:"Path",abbreviation:"Path"},{name:"Pike",abbreviation:"Pike"},{name:"Place",abbreviation:"Pl"},{name:"Plaza",abbreviation:"Plz"},{name:"Point",abbreviation:"Pt"},{name:"Ridge",abbreviation:"Rdg"},{name:"River",abbreviation:"Riv"},{name:"Road",abbreviation:"Rd"},{name:"Square",abbreviation:"Sq"},{name:"Street",abbreviation:"St"},{name:"Terrace",abbreviation:"Ter"},{name:"Trail",abbreviation:"Trl"},{name:"Turnpike",abbreviation:"Tpke"},{name:"View",abbreviation:"Vw"},{name:"Way",abbreviation:"Way"}]},h.prototype.tv=function(e){return this.radio(e)},h.prototype.zip=function(e){for(var t="",n=0;n<5;n++)t+=this.natural({max:9}).toString();if(e&&e.plusfour===!0)for(t+="-",n=0;n<4;n++)t+=this.natural({max:9}).toString();return t},h.prototype.ampm=function(){return this.bool()?"am":"pm"},h.prototype.date=function(e){var t,n=this.month({raw:!0});e=i(e,{year:parseInt(this.year(),10),month:n.numeric-1,day:this.natural({min:1,max:n.days}),hour:this.hour(),minute:this.minute(),second:this.second(),millisecond:this.millisecond(),american:!0,string:!1});var a=new Date(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return t=e.american?a.getMonth()+1+"/"+a.getDate()+"/"+a.getFullYear():a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear(),e.string?t:a},h.prototype.hammertime=function(e){return this.date(e).getTime()},h.prototype.hour=function(e){e=i(e);var t=e.twentyfour?24:12;return this.natural({min:1,max:t})},h.prototype.millisecond=function(){return this.natural({max:999})},h.prototype.minute=h.prototype.second=function(){return this.natural({max:59})},h.prototype.month=function(e){e=i(e);var t=this.pick(this.months());return e.raw?t:t.name},h.prototype.months=function(){return[{name:"January",short_name:"Jan",numeric:"01",days:31},{name:"February",short_name:"Feb",numeric:"02",days:28},{name:"March",short_name:"Mar",numeric:"03",days:31},{name:"April",short_name:"Apr",numeric:"04",days:30},{name:"May",short_name:"May",numeric:"05",days:31},{name:"June",short_name:"Jun",numeric:"06",days:30},{name:"July",short_name:"Jul",numeric:"07",days:31},{name:"August",short_name:"Aug",numeric:"08",days:31},{name:"September",short_name:"Sep",numeric:"09",days:30},{name:"October",short_name:"Oct",numeric:"10",days:31},{name:"November",short_name:"Nov",numeric:"11",days:30},{name:"December",short_name:"Dec",numeric:"12",days:31}]},h.prototype.second=function(){return this.natural({max:59})},h.prototype.timestamp=function(){return this.natural({min:1,max:parseInt((new Date).getTime()/1e3,10)})},h.prototype.year=function(e){return e=i(e,{min:(new Date).getFullYear()}),e.max="undefined"!=typeof e.max?e.max:e.min+100,this.natural(e).toString()},h.prototype.cc=function(e){e=i(e);var t,n,a;t=e.type?this.cc_type({name:e.type,raw:!0}):this.cc_type({raw:!0}),n=t.prefix.split(""),a=t.length-t.prefix.length-1;for(var r=0;r<a;r++)n.push(this.integer({min:0,max:9}));return n.push(this.luhn_calculate(n.join(""))),n.join("")},h.prototype.cc_types=function(){return[{name:"American Express",short_name:"amex",prefix:"34",length:15},{name:"Bankcard",short_name:"bankcard",prefix:"5610",length:16},{name:"China UnionPay",short_name:"chinaunion",prefix:"62",length:16},{name:"Diners Club Carte Blanche",short_name:"dccarte",prefix:"300",length:14},{name:"Diners Club enRoute",short_name:"dcenroute",prefix:"2014",length:15},{name:"Diners Club International",short_name:"dcintl",prefix:"36",length:14},{name:"Diners Club United States & Canada",short_name:"dcusc",prefix:"54",length:16},{name:"Discover Card",short_name:"discover",prefix:"6011",length:16},{name:"InstaPayment",short_name:"instapay",prefix:"637",length:16},{name:"JCB",short_name:"jcb",prefix:"3528",length:16},{name:"Laser",short_name:"laser",prefix:"6304",length:16},{name:"Maestro",short_name:"maestro",prefix:"5018",length:16},{name:"Mastercard",short_name:"mc",prefix:"51",length:16},{name:"Solo",short_name:"solo",prefix:"6334",length:16},{name:"Switch",short_name:"switch",prefix:"4903",length:16},{name:"Visa",short_name:"visa",prefix:"4",length:16},{name:"Visa Electron",short_name:"electron",prefix:"4026",length:16}]},h.prototype.cc_type=function(e){e=i(e);var t=this.cc_types(),n=null;if(e.name){for(var a=0;a<t.length;a++)if(t[a].name===e.name||t[a].short_name===e.name){n=t[a];break}if(null===n)throw new Error("Credit card type '"+e.name+"'' is not suppoted")}else n=this.pick(t);return e.raw?n:n.name},h.prototype.dollar=function(e){e=i(e,{max:1e4,min:0});var t=this.floating({min:e.min,max:e.max,fixed:2}).toString(),n=t.split(".")[1];return void 0===n?t+=".00":n.length<2&&(t+="0"),t<0?"-$"+t.replace("-",""):"$"+t},h.prototype.exp=function(e){e=i(e);var t={};return t.year=this.exp_year(),t.year===(new Date).getFullYear()?t.month=this.exp_month({future:!0}):t.month=this.exp_month(),e.raw?t:t.month+"/"+t.year},h.prototype.exp_month=function(e){e=i(e);var t,n;if(e.future){do t=this.month({raw:!0}).numeric,n=parseInt(t,10);while(n<(new Date).getMonth())}else t=this.month({raw:!0}).numeric;return t},h.prototype.exp_year=function(){return this.year({max:(new Date).getFullYear()+10})},h.prototype.d4=function(){return this.natural({min:1,max:4})},h.prototype.d6=function(){return this.natural({min:1,max:6})},h.prototype.d8=function(){return this.natural({min:1,max:8})},h.prototype.d10=function(){return this.natural({min:1,max:10})},h.prototype.d12=function(){return this.natural({min:1,max:12})},h.prototype.d20=function(){return this.natural({min:1,max:20})},h.prototype.d30=function(){return this.natural({min:1,max:30})},h.prototype.d100=function(){return this.natural({min:1,max:100})},h.prototype.rpg=function(e,t){if(t=i(t),null===e)throw new Error("A type of die roll must be included");var n=e.toLowerCase().split("d"),a=[];if(2!==n.length||!parseInt(n[0],10)||!parseInt(n[1],10))throw new Error("Invalid format provided. Please provide #d# where the first # is the number of dice to roll, the second # is the max of each die");for(var r=n[0];r>0;r--)a[r-1]=this.natural({min:1,max:n[1]});return"undefined"!=typeof t.sum&&t.sum?a.reduce(function(e,t){return e+t}):a},h.prototype.guid=function(e){e=e||{version:5};var t="ABCDEF1234567890",n="AB89",a=this.string({pool:t,length:8})+"-"+this.string({pool:t,length:4})+"-"+e.version+this.string({pool:t,length:3})+"-"+this.string({pool:n,length:1})+this.string({pool:t,length:3})+"-"+this.string({pool:t,length:12});return a},h.prototype.hash=function(e){e=i(e,{length:40,casing:"lower"});var t="upper"===e.casing?m.toUpperCase():m;return this.string({pool:t,length:e.length})},h.prototype.luhn_check=function(e){var t=e.toString(),n=+t.substring(t.length-1);return n===this.luhn_calculate(+t.substring(0,t.length-1))},h.prototype.luhn_calculate=function(e){for(var t=e.toString().split("").reverse(),n=0,a=0,i=t.length;i>a;++a){var r=+t[a];a%2===0&&(r*=2,r>9&&(r-=9)),n+=r}return 9*n%10},h.prototype.mersenne_twister=function(e){return new f(e)},h.prototype.VERSION="0.5.4";var f=function(e){void 0===e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)};f.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},f.prototype.init_by_array=function(e,t){var n,a,i=1,r=0;for(this.init_genrand(19650218),n=this.N>t?this.N:t;n;n--)a=this.mt[i-1]^this.mt[i-1]>>>30,this.mt[i]=(this.mt[i]^(1664525*((4294901760&a)>>>16)<<16)+1664525*(65535&a))+e[r]+r,this.mt[i]>>>=0,i++,r++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),r>=t&&(r=0);for(n=this.N-1;n;n--)a=this.mt[i-1]^this.mt[i-1]>>>30,this.mt[i]=(this.mt[i]^(1566083941*((4294901760&a)>>>16)<<16)+1566083941*(65535&a))-i,this.mt[i]>>>=0,i++,i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1);this.mt[0]=2147483648},f.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti===this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[1&e];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0},f.prototype.genrand_int31=function(){return this.genrand_int32()>>>1},f.prototype.genrand_real1=function(){return this.genrand_int32()*(1/4294967295)},f.prototype.random=function(){return this.genrand_int32()*(1/4294967296)},f.prototype.genrand_real3=function(){return(this.genrand_int32()+.5)*(1/4294967296)},f.prototype.genrand_res53=function(){var e=this.genrand_int32()>>>5,t=this.genrand_int32()>>>6;return(67108864*e+t)*(1/9007199254740992)},"undefined"!=typeof e&&e.exports&&(t=e.exports=h),t.Chance=h,a=function(){return h}.call(t,n,t,e),!(void 0!==a&&(e.exports=a)),"object"==typeof window&&"object"==typeof window.document&&(window.Chance=h,window.chance=new h)}()},function(e,t,n){var a;a=function(e){"use strict";function t(){this.message="This gremlin requires a randomizer to run. Please call randomizer(randomizerObject) before executing the gremlin",this.toString=function(){return this.message}}return t}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";function t(e,t,n,a){var i=t.length;e=e.slice(0);var r=function(e,t){if(!e.length)return"function"!=typeof a||a();var o=e.shift();o.apply(n,t),o.length===i&&r(e,t,a)};t.push(function(){r(e,t,a)}),r(e,t,a)}return t}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";function t(){this.message="This mogwai requires a logger to run. Please call logger(loggerObject) before executing the mogwai",this.toString=function(){return this.message}}return t}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";function t(e,t){for(var n=0,a=t.length;n<a;n++)for(var i in e)"function"!=typeof t[n][i]||t[n][i]()||t[n][i](e[i])}var a=n(2),i={species:{clicker:n(10),toucher:n(13),formFiller:n(11),scroller:n(12),typer:n(14)},mogwais:{alert:n(7),fps:n(8),gizmo:n(9)},strategies:{allTogether:n(15),bySpecies:n(16),
distribution:n(17)}},r=n(4),o=function(){this._gremlins=[],this._mogwais=[],this._strategies=[],this._beforeCallbacks=[],this._afterCallbacks=[],this._logger=console,this._randomizer=new a};return o.prototype.gremlin=function(e){return this._gremlins.push(e),this},o.prototype.allGremlins=function(){for(var e in i.species)this.gremlin(i.species[e]());return this},o.prototype.mogwai=function(e){return this._mogwais.push(e),this},o.prototype.allMogwais=function(){for(var e in i.mogwais)this.mogwai(i.mogwais[e]());return this},o.prototype.strategy=function(e){return this._strategies.push(e),this},o.prototype.before=function(e){return this._beforeCallbacks.push(e),this},o.prototype.after=function(e){return this._afterCallbacks.push(e),this},o.prototype.logger=function(e){return arguments.length?(this._logger=e,this):this._logger},o.prototype.log=function(e){this._logger.log(e)},o.prototype.randomizer=function(e){return arguments.length?(this._randomizer=e,this):this._randomizer},o.prototype.seed=function(e){return this._randomizer=new a(e),this},o.prototype.unleash=function(e,n){0===this._gremlins.length&&this.allGremlins(),0===this._mogwais.length&&this.allMogwais(),0===this._strategies.length&&this.strategy(i.strategies.distribution());var a=[].concat(this._gremlins,this._mogwais),o=a.concat(this._strategies,this._beforeCallbacks,this._afterCallbacks);t({logger:this._logger,randomizer:this._randomizer},o);var s=this._beforeCallbacks;s=s.concat(this._mogwais);for(var l=this._afterCallbacks,u=0,c=a.length;u<c;u++)"function"==typeof a[u].cleanUp&&l.push(a[u].cleanUp);var m=this;r(s,[],m,function(){r(m._strategies,[m._gremlins,e],m,function(){r(l,[],m,function(){"function"==typeof n&&n()})})})},o.prototype.stop=function(){for(var e=this._strategies,t=0,n=e.length;t<n;t++)e[t].stop()},i.createHorde=function(){return new o},window&&(window.gremlins=i),i}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=(n(2),n(5));return function(){function e(){return o.randomizer.bool()}function n(){return o.randomizer.sentence()}function i(){if(!o.logger)throw new a;o.watchEvents.indexOf("alert")!==-1&&(window.alert=function(e){var t={message:e,type:"alert",action:"alert",species:"mogwai",timestamp:(new Date).getTime()};o.logger.warn(t)}),o.watchEvents.indexOf("confirm")!==-1&&(window.confirm=function(e){o.confirmResponse();var t={message:e,type:"confirm",action:"alert",species:"mogwai",timestamp:(new Date).getTime()};o.logger.warn(t)}),o.watchEvents.indexOf("prompt")!==-1&&(window.prompt=function(e){o.promptResponse();var t={message:e,type:"prompt",action:"alert",species:"mogwai",timestamp:(new Date).getTime()};o.logger.warn(t)})}var r=["alert","confirm","prompt"],o={watchEvents:r,confirmResponse:e,promptResponse:n,logger:null,randomizer:null},s=window.alert,l=window.confirm,u=window.prompt;return i.cleanUp=function(){return window.alert=s,window.confirm=l,window.prompt=u,i},t(i,o),i}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=n(5);return function(){function e(e){return e<10?"error":e<20?"warn":"log"}function n(e){e-l>s.delay&&(i(e),l=e),o&&window.requestAnimationFrame(n)}function i(){function e(e){n=e,window.requestAnimationFrame(t)}function t(e){var t=e-n<16?60:1e3/(e-n),a=s.levelSelector(t),i={fps:t,type:"fps",species:"mogwai",timestamp:(new Date).getTime()};s.logger[a](i)}var n;window.requestAnimationFrame(e)}function r(){if(!s.logger)throw new a;o=!0,window.requestAnimationFrame(n)}window.requestAnimationFrame||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)});var o,s={delay:500,levelSelector:e,logger:null},l=-(1/0);return r.cleanUp=function(){return o=!1,r},t(r,s),r}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1);return function(){function e(){function e(){if(t++,t==i.maxErrors){if(r.stop(),!i.logger)return;window.setTimeout(function(){var e={type:"gizmo",species:"mogwai",errorCount:t,action:"test execution halted",timestamp:(new Date).getTime()};i.logger.warn(e)},4)}}var t=0,r=this;n=window.onerror,window.onerror=function(t,a,i){return e(),!!n&&n(t,a,i)},a=console.error,console.error=function(){e(),a.apply(console,arguments)}}var n,a,i={maxErrors:10,logger:null};return e.cleanUp=function(){return window.onerror=n,console.error=a.bind(console),e},t(e,i),e}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=(n(2),n(3));return function(){function e(){return[u.randomizer.natural({max:o.documentElement.clientWidth-1}),u.randomizer.natural({max:o.documentElement.clientHeight-1})]}function n(e,t){var n=o.createElement("div");n.style.zIndex=2e3,n.style.border="3px solid red",n.style["border-radius"]="50%",n.style.borderRadius="50%",n.style.width="40px",n.style.height="40px",n.style["box-sizing"]="border-box",n.style.position="absolute",n.style.webkitTransition="opacity 1s ease-out",n.style.mozTransition="opacity 1s ease-out",n.style.transition="opacity 1s ease-out",n.style.left=e-20+"px",n.style.top=t-20+"px";var a=s.appendChild(n);setTimeout(function(){s.removeChild(a)},1e3),setTimeout(function(){a.style.opacity=0},50)}function i(){return!0}function r(){if(!u.randomizer)throw new a;var e,t,n,i,r=0;do if(e=u.positionSelector(),t=e[0],n=e[1],i=o.elementFromPoint(t,n),r++,r>u.maxNbTries)return!1;while(!i||!u.canClick(i));var s=o.createEvent("MouseEvents"),l=u.randomizer.pick(u.clickTypes);if(s.initMouseEvent(l,!0,!0,window,0,0,0,t,n,!1,!1,!1,!1,0,null),i.dispatchEvent(s),"function"==typeof u.showAction&&u.showAction(t,n,l),u.logger&&"function"==typeof u.logger.log){var c={species:"gremlin",type:"clicker",action:l,element:i,posX:t,posY:n,timestamp:(new Date).getTime()};u.logger.log(c)}}var o=window.document,s=o.body,l=["click","click","click","click","click","click","dblclick","dblclick","mousedown","mouseup","mouseover","mouseover","mouseover","mousemove","mouseout"],u={clickTypes:l,positionSelector:e,showAction:n,canClick:i,maxNbTries:10,logger:null,randomizer:null};return t(r,u),r}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=(n(2),n(3));return function(){function e(e){"undefined"==typeof e.attributes["data-old-border"]&&(e.attributes["data-old-border"]=e.style.border);var t=e.attributes["data-old-border"];e.style.border="1px solid red",setTimeout(function(){e.style.border=t},500)}function n(){return!0}function i(){if(!d.randomizer)throw new a;var e=[];for(var t in d.elementMapTypes)d.elementMapTypes.hasOwnProperty(t)&&e.push(t);var n,i=0;do{var r=h.querySelectorAll(e.join(","));if(0===r.length)return!1;if(n=d.randomizer.pick(r),i++,i>d.maxNbTries)return!1}while(!n||!d.canFillElement(n));var o=null;for(var s in d.elementMapTypes)if(m(n,s)){o=s;break}var l=d.elementMapTypes[o](n);if("function"==typeof d.showAction&&d.showAction(n),d.logger&&"function"==typeof d.logger.log){var u={species:"gremlin",type:"formFiller",action:"input",value:l,element:n,timestamp:(new Date).getTime()};d.logger.log(u)}}function r(e){var t=d.randomizer.character();return e.value+=t,t}function o(e){var t=d.randomizer.character({pool:"0123456789"});return e.value+=t,t}function s(e){var t=e.querySelectorAll("option");if(0!==t.length){for(var n=d.randomizer.pick(t),a=0,i=t.length;a<i;a++){var r=t[a];r.selected=r.value==n.value}return n.value}}function l(e){var t=h.createEvent("MouseEvents");return t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(t),e.value}function u(e){var t=h.createEvent("MouseEvents");return t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(t),e.value}function c(e){var t=d.randomizer.email();return e.value=t,t}function m(e,t){if(e.webkitMatchesSelector)m=function(e,t){return e.webkitMatchesSelector(t)};else if(e.mozMatchesSelector)m=function(e,t){return e.mozMatchesSelector(t)};else if(e.msMatchesSelector)m=function(e,t){return e.msMatchesSelector(t)};else{if(!e.oMatchesSelector)throw new Error("Unsupported browser");m=function(e,t){return e.oMatchesSelector(t)}}return m(e,t)}var h=window.document,p={textarea:r,'input[type="text"]':r,'input[type="password"]':r,'input[type="number"]':o,select:s,'input[type="radio"]':l,'input[type="checkbox"]':u,'input[type="email"]':c,"input:not([type])":r},d={elementMapTypes:p,showAction:e,canFillElement:n,maxNbTries:10,logger:null,randomizer:null};return t(i,d),i}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=(n(2),n(3));return function(){function e(){var e=Math.max(s.scrollWidth,s.offsetWidth,o.scrollWidth,o.offsetWidth,o.clientWidth),t=Math.max(s.scrollHeight,s.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight);return[l.randomizer.natural({max:e-o.clientWidth}),l.randomizer.natural({max:t-o.clientHeight})]}function n(e,t){var n=r.createElement("div");n.style.zIndex=2e3,n.style.border="3px solid red",n.style.width=o.clientWidth-25+"px",n.style.height=o.clientHeight-25+"px",n.style.position="absolute",n.style.webkitTransition="opacity 1s ease-out",n.style.mozTransition="opacity 1s ease-out",n.style.transition="opacity 1s ease-out",n.style.left=e+10+"px",n.style.top=t+10+"px";var a=s.appendChild(n);setTimeout(function(){s.removeChild(a)},1e3),setTimeout(function(){a.style.opacity=0},50)}function i(){if(!l.randomizer)throw new a;var e=l.positionSelector(),t=e[0],n=e[1];if(window.scrollTo(t,n),"function"==typeof l.showAction&&l.showAction(t,n),"function"==typeof l.logger.log){var i={species:"gremlin",type:"scroller",action:"scrollTo",posX:t,posY:n,timestamp:(new Date).getTime()};l.logger.log(i)}}var r=window.document,o=r.documentElement,s=r.body,l={positionSelector:e,showAction:n,logger:null,randomizer:null};return t(i,l),i}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=(n(2),n(3));return function(){function e(){return[h.randomizer.natural({max:u.documentElement.clientWidth-1}),h.randomizer.natural({max:u.documentElement.clientHeight-1})]}function n(e){var t=u.createDocumentFragment();e.forEach(function(e){var n=u.createElement("div");n.style.zIndex=2e3,n.style.background="red",n.style["border-radius"]="50%",n.style.borderRadius="50%",n.style.width="20px",n.style.height="20px",n.style.position="absolute",n.style.webkitTransition="opacity .5s ease-out",n.style.mozTransition="opacity .5s ease-out",n.style.transition="opacity .5s ease-out",n.style.left=e.x-10+"px",n.style.top=e.y-10+"px";var a=t.appendChild(n);setTimeout(function(){c.removeChild(a)},500),setTimeout(function(){a.style.opacity=0},50)}),u.body.appendChild(t)}function i(){return!0}function r(e,t,n,a){var i,r,o,s=e[0],l=e[1],u=[];if(1===t)return[{x:s,y:l}];for(n=n||100,a=null!==a?a*Math.PI/180:0,i=2*Math.PI/t,r=0;r<t;r++)o=i*r+a,u.push({x:s+n*Math.cos(o),y:l+n*Math.sin(o)});return u}function o(e,t,n){var a=[],i=u.createEvent("Event");i.initEvent("touch"+n,!0,!0),a.identifiedTouch=a.item=function(e){return this[e]||{}},e.forEach(function(e,n){var i=Math.round(e.x),r=Math.round(e.y);a.push({pageX:i,pageY:r,clientX:i,clientY:r,screenX:i,screenY:r,target:t,identifier:n})}),i.touches="end"==n?[]:a,i.targetTouches="end"==n?[]:a,i.changedTouches=a,t.dispatchEvent(i),h.showAction(e)}function s(e,t,n,a,i){function s(){var m=a.radius;1!==a.scale&&(m=a.radius-a.radius*(1-a.scale)*(1/u*c));var h=t[0]+a.distanceX/u*c,p=t[1]+a.distanceY/u*c,d="number"==typeof a.rotation?a.rotation/u*c:null,f=r([h,p],n.length,m,d),y=1==c,g=c==u;if(y)o(f,e,"start");else{if(g)return o(f,e,"end"),i(f);o(f,e,"move")}setTimeout(s,l),c++}var l=10,u=Math.ceil(a.duration/l),c=1;s()}function l(e){function t(t,n){if("function"==typeof h.showAction&&h.showAction(t),h.logger&&"function"==typeof h.logger.log){var a={species:"gremlin",type:"toucher",action:l,element:o,posX:i,posY:r,details:n,timestamp:(new Date).getTime()};h.logger.log(a)}e()}if(!h.randomizer)throw new a;var n,i,r,o,s=0;do if(n=h.positionSelector(),i=n[0],r=n[1],o=u.elementFromPoint(i,r),s++,s>h.maxNbTries)return;while(!o||!h.canTouch(o));var l=h.randomizer.pick(h.touchTypes);p[l](n,o,t)}var u=window.document,c=u.body,m=["tap","tap","tap","doubletap","gesture","gesture","gesture","multitouch","multitouch"],h={touchTypes:m,positionSelector:e,showAction:n,canTouch:i,maxNbTries:10,logger:null,randomizer:null,maxTouches:2},p={tap:function(e,t,n){var a=r(e,1),i={duration:h.randomizer.integer({min:20,max:700})};o(a,t,"start"),setTimeout(function(){o(a,t,"end"),n(a,i)},i.duration)},doubletap:function(e,t,n){p.tap(e,t,function(){setTimeout(function(){p.tap(e,t,n)},30)})},gesture:function e(t,n,a){var e={distanceX:h.randomizer.integer({min:-100,max:200}),distanceY:h.randomizer.integer({min:-100,max:200}),duration:h.randomizer.integer({min:20,max:500})},i=r(t,1,e.radius);s(n,t,i,e,function(t){a(t,e)})},multitouch:function(e,t,n){var a=h.randomizer.integer({min:2,max:h.maxTouches}),i={scale:h.randomizer.floating({min:0,max:2}),rotation:h.randomizer.natural({min:-100,max:100}),radius:h.randomizer.integer({min:50,max:200}),distanceX:h.randomizer.integer({min:-20,max:20}),distanceY:h.randomizer.integer({min:-20,max:20}),duration:h.randomizer.integer({min:100,max:1500})},o=r(e,a,i.radius);s(t,e,o,i,function(e){n(e,i)})}};return t(l,h),l}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(1),a=(n(2),n(3));return function(){function e(){return c.randomizer.natural({min:3,max:254})}function n(e,t){return o.elementFromPoint(e,t)}function i(e,t,n,a){var i=o.createElement("div");i.style.zIndex=2e3,i.style.border="3px solid orange",i.style["border-radius"]="50%",i.style.borderRadius="50%",i.style.width="40px",i.style.height="40px",i.style["box-sizing"]="border-box",i.style.position="absolute",i.style.webkitTransition="opacity 1s ease-out",i.style.mozTransition="opacity 1s ease-out",i.style.transition="opacity 1s ease-out",i.style.left=t+"px",i.style.top=n+"px",i.style.textAlign="center",i.style.paddingTop="7px",i.innerHTML=String.fromCharCode(a);var r=l.appendChild(i);setTimeout(function(){l.removeChild(r)},1e3),setTimeout(function(){r.style.opacity=0},50)}function r(){if(!c.randomizer)throw new a;var e=o.createEventObject?o.createEventObject():o.createEvent("Events"),t=c.randomizer.pick(c.eventTypes),n=c.keyGenerator(),i=c.randomizer.natural({max:s.clientWidth-1}),r=c.randomizer.natural({max:s.clientHeight-1}),l=c.targetElement(i,r);if(e.initEvent&&e.initEvent(t,!0,!0),e.keyCode=n,e.which=n,e.keyCodeVal=n,l.dispatchEvent?l.dispatchEvent(e):l.fireEvent("on"+t,e),"function"==typeof c.showAction&&c.showAction(l,i,r,n),c.logger&&"function"==typeof c.logger.log){var u={species:"gremlin",type:"typer",action:"key",value:String.fromCharCode(n),element:l,posX:i,posY:r,timestamp:(new Date).getTime()};c.logger.log(u)}}var o=window.document,s=o.documentElement,l=o.body,u=["keypress","keyup","keydown"],c={eventTypes:u,showAction:i,keyGenerator:e,targetElement:n,logger:null,randomizer:null};return t(r,c),r}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(4),a=n(1);return function(){function e(e,a,s){function l(n){t(e,[],m,n)}function u(e){if(!i)return e>=c?n():void l(function(){setTimeout(function(){u(++e)},o.delay)})}var c=a&&a.nb?a.nb:o.nb,m=this;i=!1,r=s,u(0)}function n(){"function"==typeof r&&r(),r=null}var i,r,o={delay:10,nb:100};return e.stop=function(){i=!0,setTimeout(n,4)},a(e,o),e}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(4),a=n(1);return function(){function e(e,a,s){function l(e,n,a){if(!i)return n>=c?a():void t([e],[],m,function(){setTimeout(function(){l(e,++n,a)},o.delay)})}function u(){if(!i)return 0===e.length?n():void l(e.shift(),0,u)}var c=a&&a.nb?a.nb:o.nb,e=e.slice(0),m=this;i=!1,r=s,u()}function n(){"function"==typeof r&&r(),r=null}var i,r,o={delay:10,nb:200};return e.stop=function(){i=!0,setTimeout(n,4)},a(e,o),e}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))},function(e,t,n){var a;a=function(e){"use strict";var t=n(4),a=n(1),i=n(2);return function(){function e(e,a,i){function c(n,a,i){if(!s)return a>=m?o():void t([n],[],p,function(){setTimeout(function(){c(r(e,h),++a,i)},u.delay)})}var m=a&&a.nb?a.nb:u.nb,e=e.slice(0),h=0===u.distribution.length?n(e):u.distribution,p=this;return 0===m?i():(s=!1,l=i,void c(r(e,h),0,c))}function n(e){var t=e.length;if(0===t)return[];for(var n=[],a=1/t,i=0;i<t;i++)n.push(a);return n}function r(e,t){for(var n=0,a=u.randomizer.floating({min:0,max:1}),i=0,r=e.length;i<r;i++)if(n+=t[i],a<=n)return e[i];return function(){}}function o(){"function"==typeof l&&l(),l=null}var s,l,u={distribution:[],delay:10,nb:1e3,randomizer:new i};return e.stop=function(){s=!0,setTimeout(o,4)},a(e,u),e}}.call(t,n,t,e),!(void 0!==a&&(e.exports=a))}])});