import{a as b}from"./chunk-4G57JG5N.js";import{a as l}from"./chunk-MJMWESWV.js";import{h as d}from"./chunk-GJIGZB63.js";import{b as i}from"./chunk-5VDVFGVW.js";import{V as c,w as s}from"./chunk-J476KISY.js";var S=(()=>{class r{static{this.countries=["Germany","France","Italy","Spain","Netherlands","Sweden","Austria","Portugal","Denmark","Switzerland"]}static randomNumber(e,a,t){var n=Math.floor(Math.random()*(a-e)+e);return i.isUndefined(t)||n!==t?n:r.randomNumber(e,a,t)}static randomChar(){return r.randomItem(["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","r","q","s","t","w","x","y","z"])}static randomString(e=3,a=10){let t=r.randomNumber(e,a),n="";for(var o=0;o<t;o++)n+=r.randomChar();return l.capitalFirst(n)}static randomItem(e){if(!i.isArray(e))throw"An array of objects must be provided";return e[r.randomNumber(0,e.length)]}static randomItemsOf(e,a=0,t){if(e.length<=1)return e;a>e.length&&(a=e.length-1),(!i.isSet(t)||i.isSet(t)&&t>e.length)&&(t=e.length);let n=r.randomNumber(a,e.length),o=t-n<1?r.randomNumber(n,t):t,u=[];for(let m=n;m<o;m++)u.push(e[m]);return u}static randomItems(e,a=0,t=1e3){let n=r.randomNumber(a,t),o=[];for(var u=0;u<n;u++){let m=e(u,o);o.push(m)}return o}static randomBoolean(){return this.randomNumber(0,6999999)%2===0}static randomIp(){return this.randomNumber(1,255)+"."+r.randomNumber(1,255)+"."+r.randomNumber(0,255)+"."+r.randomNumber(0,255)}static randomGeolocationStr(){return"23.59527,58.54565"}static randomColor(){let e=r.randomNumber(0,255),a=r.randomNumber(0,255),t=r.randomNumber(0,255);return"#"+b.rgbToHex(`rgb(${e},${a},${t})`)}static randomIsoDatePast(){return d.now().minus({days:r.randomNumber(1,100)}).toISO()}static randomIsoDateFuture(){return d.now().plus({days:r.randomNumber(1,100)}).toISO()}static randomRequest(e,a=r.randomNumber(5,1e3)){return s(e).pipe(c(a))}static randomName(){return r.randomItem(["Alejandro","Aisha","Luca","Sakura","Fatima","Olivier","Priya","Ivan","Maya","Kai","Yasmine","Emil","Zara","Diego","Elena","Ravi","Aleksei","Leila","Matteo","Sophia"])}static randomSurname(){return r.randomItem(["Smith","Garcia","Kumar","Tanaka","Hernandez","Ivanov","Nguyen","Kim","Alvarez","Patel","Schmidt","Ali","Matsumoto","Singh","Rossi","L\xF3pez","Chen","Berg","Ahmed","Gonz\xE1lez"])}static randomFullName(){return`${r.randomName()} ${r.randomSurname()}`}static randomStreet(){return r.randomItem([`Maple Street ${r.randomNumber(1,100)}`,`Rue de Paris ${r.randomNumber(1,100)}`,`Avenida Brasil ${r.randomNumber(1,100)}`,`Hauptstra\xDFe ${r.randomNumber(1,100)}`,`Cherry Blossom Lane ${r.randomNumber(1,100)}`,`Oxford Road ${r.randomNumber(1,100)}`,`Via Roma ${r.randomNumber(1,100)}`,`Elm Avenue ${r.randomNumber(1,100)}`,`Victoria Crescent ${r.randomNumber(1,100)}`,`Zhongshan Road ${r.randomNumber(1,100)}`])}static randomCity(){return r.randomItem(["Tokyo","Paris","Cairo","Mumbai","S\xE3o Paulo","Sydney","Berlin","New York","Cape Town","Seoul"])}static randomCountry(){return r.randomItem(r.countries)}static loremIpsum(){return`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`}static gibberish(e=4){let a=r.randomNumber(1,e),t=[];for(let n=0;n<a;n++){let o=r.randomNumber(1,10),u="";for(let m=0;m<o;m++)u+=r.randomChar();t.push(u)}return t.join(" ")}}return r})();export{S as a};
