deverything 0.19.0 → 0.19.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/dist/index.d.ts CHANGED
@@ -79,14 +79,18 @@ declare const truncate: (arg: string, limit: number, ellipsis?: string) => strin
79
79
 
80
80
  declare const uniqueValues: (arr: any[]) => any[];
81
81
 
82
- declare const randomAddress: () => {
82
+ type Address = {
83
83
  city: string;
84
84
  country: string;
85
+ state?: string;
85
86
  street: string;
87
+ line2?: string;
86
88
  number: string;
87
89
  zip: string;
88
90
  };
89
91
 
92
+ declare const randomAddress: () => Address;
93
+
90
94
  /**
91
95
  * Generates a random alphanumeric code that can be used for verification codes, etc.
92
96
  * Does not contain 0s or Os as they get confused with each other.
@@ -200,7 +204,7 @@ declare const isEmail: (arg: string) => boolean;
200
204
  declare const isEmpty: (arg?: Maybe<any>) => boolean;
201
205
  declare const isEmptyString: (arg: string) => boolean;
202
206
  declare const isEmptyArray: (arg: any[]) => boolean;
203
- declare const isEmptyObject: (arg: Object) => boolean;
207
+ declare const isEmptyObject: (arg: PlainObject) => boolean;
204
208
 
205
209
  declare const isFunction: (arg: any) => boolean;
206
210
 
@@ -235,7 +239,7 @@ declare const isServer: () => boolean;
235
239
 
236
240
  declare const isSpacedString: (s: string) => boolean;
237
241
 
238
- declare const isString: (arg: any) => boolean;
242
+ declare const isString: (arg: any) => arg is string;
239
243
 
240
244
  declare const isStringDate: (arg: string) => boolean;
241
245
 
@@ -1,106 +1,106 @@
1
1
  (function (exports) {
2
2
  'use strict';
3
3
 
4
- var c=(t,e)=>Array.from({length:t},e);var f=t=>[...new Set(t)];var ht=(t,e)=>f(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var Rt=(t,e)=>f(t.filter(r=>e.includes(r)));var M=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var wt=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var Ut=t=>t.trim().replace(/\s{2,}/g," ");var zt=t=>t==null?void 0:t[0];var s=t=>Object.keys(t).concat(q(t)),q=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var Vt=t=>s(t)[0];var Ht=t=>Object.values(t)[0];var Jt=t=>t==null?void 0:t[t.length-1];var p=t=>Array.isArray(t);var qt=t=>Object.prototype.toString.call(t)==="[object Boolean]";var L=()=>typeof window=="undefined";var y=()=>!L();var re=y;var u=t=>typeof t=="string";var ae=t=>u(t)&&/\S+@\S+\.\S+/.test(t);var m=t=>Object.prototype.toString.call(t)==="[object Object]";var D=t=>Q(t)||Z(t)||Y(t)?!0:t==null,Y=t=>u(t)&&t.trim().length===0,Z=t=>p(t)&&t.length===0,Q=t=>m(t)&&Object.keys(t).length===0;var I=t=>Object.prototype.toString.call(t)==="[object Function]";var S=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var b=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var x=t=>Number.isInteger(t),ye=t=>x(t)&&!(t%2),Se=t=>x(t)&&!!(t%2),h=t=>x(t)&&t>0,be=t=>x(t)&&t<0,B=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var C=t=>t.indexOf(" ")>=0;var R=t=>B(t)?!0:!u(t)||C(t)?!1:!isNaN(parseFloat(t));var ge=t=>/^\d+$/.test(t)&&parseInt(t)>0;var Le=t=>t instanceof Promise;var Be=()=>y()&&window.matchMedia("(display-mode: standalone)").matches;var tt=typeof Symbol=="function"&&Symbol.for,et=tt?Symbol.for("react.element"):60103,Re=t=>t.$$typeof===et;var Oe=t=>Object.prototype.toString.call(t)==="[object RegExp]";var E=(t,e)=>{if(t===e)return !0;if(p(t)&&p(e))return t.length!==e.length?!1:t.every((r,o)=>E(r,e[o]));if(m(t)&&m(e)){let r=s(t);return r.length!==s(e).length?!1:r.every(o=>E(t[o],e[o]))}return I(t)&&I(e)?t.toString()===e.toString():!1};var Xe=t=>{let e=new Date(t);return S(e)};var ke=t=>typeof t=="undefined";var rt=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),Ke=t=>!!t&&rt.test(t);var We=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var P=t=>t!=null&&!Number.isNaN(t);var _=(t,e)=>{let r={};return s(t).forEach(o=>{r[o]=m(t[o])?_({},t[o]):t[o];}),s(e).forEach(o=>{b(o,t)?r[o]=m(t[o])&&m(e[o])?_(t[o],e[o]):e[o]:r[o]=m(e[o])?_({},e[o]):e[o];}),r};var tr=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let a=r.splice(o,1);r.unshift(a[0]);break}return r};var rr=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let a=r.splice(o,1)[0];r.push(a);break}return r};var ar=(t,e)=>{var r={};let o=new Set([...s(t),...s(e)]);for(let a of o)E(e[a],t[a])||(r[a]={from:t[a],to:e[a]});return r};var pr=t=>{if(D(t))return;let e=new Date(t);if(S(e))return e};var lr=t=>JSON.stringify(t,null,2);var Ar=(t,e,r)=>{let o,a=new Promise((gt,$)=>{o=setTimeout(()=>$(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),a]).finally(()=>{clearTimeout(o);})};var yr=t=>new Promise(e=>{setTimeout(e,t);});var xr=(t,e)=>{if(p(t)){let r=t.reduce((o,a)=>(a!==e&&o.push(a),o),[]);return r.length===t.length&&r.push(e),r}return t};var Nr=(t,e,r="...")=>{if(!h(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var ot=[{city:"London",country:"United Kingdom",street:"Baker Street",number:"221B",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",street:"Bordesley Street",number:"B1 1AA",zip:"B1 1AA"}],nt=[{city:"New York",country:"United States",street:"Broadway",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],it=[{city:"Paris",country:"France",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",street:"Unter den Linden",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",street:"Gran V\xEDa",number:"28013",zip:"28013"}],at=[{city:"Moscow",country:"Russia",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",street:"Shinjuku",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",street:"George",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],O=[...ot,...nt,...it,...at];var i=(t=-100,e=100)=>Math.floor(Math.random()*(e-t+1)+t),gr=(t=100)=>i(1,t),Mr=(t=-100)=>i(t,-1),Lr=()=>i(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),Dr=()=>i(-Number.MAX_VALUE,Number.MAX_VALUE),hr=()=>i(-100,100);var n=t=>t[i(0,t.length-1)];var wr=()=>n(O);var st="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),zr=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return c(t,()=>n(st)).join("")};var Xr=()=>!!i(0,1);var Hr=16,g=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return P(r)?parseFloat(o.toFixed(r)):o};var Wr=()=>({lat:mt(),lng:ct()}),mt=()=>g(-90,90),ct=()=>g(-180,180);var l=(t,e)=>{let r=t||new Date(-31536e7),o=e||new Date(31536e7);return new Date(r.getTime()+Math.random()*(o.getTime()-r.getTime()))},Yr=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return l(r,o)},Zr=()=>{let t=new Date(new Date().getTime()+5*6e4);return l(t)},Qr=()=>l(void 0,new Date),to=()=>{let t=l();return {endDate:l(t),startDate:t}};var w=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","sbcglobal.net","verizon.net","att.net","mac.com","me.com","earthlink.net","charter.net","shaw.ca","yahoo.ca","googlemail.com","mail.com","qq.com","web.de","gmx.de","mail.ru"];var j=["Aardvark","Albatross","Alligator","Alpaca","Ant","Anteater","Antelope","Ape"],U=["Axe","Ball Peen Hammer","Band Saw","Bench Grinder","Biscuit Joiner","Bolt Cutter","Boring Machine","Bow Saw"],d=["Adam","Adrian","Alan","Albert","Alexander","Alice","Amanda","Emma","Amelia","Amy","Andrew","Esther","Olivia","Ruby"],A=["Smith","Johnson","Williams","Jones","Brown","Davis","Miller","Wilson","Moore","Taylor","Anderson","Thomas","Jackson","White"],lt=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u0433\u043D\u0435\u0441","\u0410\u043B\u0430\u043D","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],dt=["\u0421\u043C\u0438\u0442","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0423\u0438\u043B\u044C\u044F\u043C\u0441","\u0414\u0436\u043E\u043D\u0441","\u0411\u0440\u0430\u0443\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u0412\u0438\u043B\u0441\u043E\u043D","\u041C\u0443\u0440","\u0422\u0435\u0439\u043B\u043E\u0440","\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0422\u043E\u043C\u0430\u0441","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0423\u0430\u0439\u0442"],At=["\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30B0\u30CD\u30B9","\u30A2\u30E9\u30F3","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30EA\u30B9","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30DF\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],ft=["\u30B9\u30DF\u30B9","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30D6\u30E9\u30A6\u30F3","\u30C7\u30A4\u30D3\u30B9","\u30DF\u30E9\u30FC","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30E2\u30A2","\u30BF\u30A4\u30E9\u30FC","\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30C8\u30FC\u30DE\u30B9","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30DB\u30EF\u30A4\u30C8"],yt=["\u0623\u0628\u064A\u062C\u064A\u0644","\u0622\u062F\u0645","\u0622\u062F\u0631\u064A\u0627\u0646","\u0623\u063A\u0646\u064A\u0633","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A\u0644\u064A\u0627","\u0622\u0645\u064A","\u0623\u0646\u062F\u0631\u0648"],St=["\u0633\u0645\u064A\u062B","\u062C\u0648\u0646\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632","\u062C\u0648\u0646\u0632","\u0628\u0631\u0627\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0645\u064A\u0644\u0631","\u0648\u064A\u0644\u0633\u0648\u0646","\u0645\u0648\u0631","\u062A\u0627\u064A\u0644\u0648\u0631","\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u0648\u0627\u064A\u062A"],F=[...d,...lt,...At,...yt],z=[...A,...dt,...ft,...St];var v=()=>(n(d)+"."+n(A)).toLowerCase()+i(11,99);var uo=()=>`${v()}@${n(w)}`;var G=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],X=["!","@","#","$","%","^","&","*"];var So=()=>n(G);var To=t=>n(Object.keys(t).filter(e=>!R(e)));var go=t=>{let e=[];return Object.values(t).forEach(r=>{b(r,t)&&!e.includes(r)&&e.push(t[r]);}),n(e)};var bt=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow","be","go","need","work"],xt=["abandon","ability","able","abortion","about","above","abroad","absence","absent","absolute"],Et=["abandoned","abdominal","ability","able","abnormal","abolish","abortion","about","above","abroad","absence","absent","absolute"],Tt=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],Nt=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var V=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],k=[...bt,...xt,...Et,...Tt,...Nt];var T=()=>n(k);var H=()=>M(c(8,()=>T()).join(" "))+".";var It=["png","jpg","jpeg","gif","svg","webp"],Fo=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(It);return new File([H()],`${t||T()}.${r}`,{type:`image/${r}`})};var N=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var ko=()=>"#"+c(6,()=>n(N)).join("");var Wo=()=>n(N);var K=()=>n(V);var J=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","BH67BMAG00001299123456","BY13NBRB3600900000002Z00AB00","CH9300762011623852957","CR05015202001026284066","CY17002001280000001200527600","CZ6508000000192000145399","DE89370400440532013000","DO28BAGR00000001212453611324","EE382200221020145685","ES9121000418450200051332","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var rn=()=>n(J);var an=()=>`${i(0,255).toString()}.${i(0,255).toString()}.${i(0,255).toString()}.${i(0,255).toString()}`;var pn=()=>n([...j,...U]),un=()=>n(F),ln=()=>n(z),dn=()=>n(d)+" "+n(A);var Sn=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return c(t,(e,r)=>i(r?0:1,9)).join("")};var _t=1,W=()=>_t++;var _n=()=>K()+n(X)+i(11,99);var Ln=()=>{let t=W().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};
4
+ var m=(t,e)=>Array.from({length:t},e);var y=t=>[...new Set(t)];var Pt=(t,e)=>y(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var jt=(t,e)=>y(t.filter(r=>e.includes(r)));var M=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var zt=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var h=new RegExp(/\p{C}/,"gu");var R=new RegExp("\\p{Zs}","gu");var D=new RegExp("\\p{Zl}","gu");var L=new RegExp("\\p{Zp}","gu");var $t=t=>t.replace(h," ").replace(R," ").replace(D," ").replace(L," ").trim().replace(/\s{2,}/g," ");var Yt=t=>t==null?void 0:t[0];var s=t=>Object.keys(t).concat(tt(t)),tt=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var ee=t=>s(t)[0];var oe=t=>Object.values(t)[0];var ie=t=>t==null?void 0:t[t.length-1];var p=t=>Array.isArray(t);var me=t=>Object.prototype.toString.call(t)==="[object Boolean]";var C=()=>typeof window=="undefined";var S=()=>!C();var fe=S;var l=t=>typeof t=="string";var xe=t=>l(t)&&/\S+@\S+\.\S+/.test(t);var c=t=>Object.prototype.toString.call(t)==="[object Object]";var B=t=>ot(t)||rt(t)||et(t)?!0:t==null,et=t=>l(t)&&t.trim().length===0,rt=t=>p(t)&&t.length===0,ot=t=>c(t)&&Object.keys(t).length===0;var N=t=>Object.prototype.toString.call(t)==="[object Function]";var A=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var x=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var b=t=>Number.isInteger(t),Re=t=>b(t)&&!(t%2),De=t=>b(t)&&!!(t%2),P=t=>b(t)&&t>0,Le=t=>b(t)&&t<0,O=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var w=t=>t.indexOf(" ")>=0;var j=t=>O(t)?!0:!l(t)||w(t)?!1:!isNaN(parseFloat(t));var Ue=t=>/^\d+$/.test(t)&&parseInt(t)>0;var ze=t=>t instanceof Promise;var Ve=()=>S()&&window.matchMedia("(display-mode: standalone)").matches;var nt=typeof Symbol=="function"&&Symbol.for,it=nt?Symbol.for("react.element"):60103,Ge=t=>t.$$typeof===it;var ke=t=>Object.prototype.toString.call(t)==="[object RegExp]";var E=(t,e)=>{if(t===e)return !0;if(p(t)&&p(e))return t.length!==e.length?!1:t.every((r,o)=>E(r,e[o]));if(c(t)&&c(e)){let r=s(t);return r.length!==s(e).length?!1:r.every(o=>E(t[o],e[o]))}return N(t)&&N(e)?t.toString()===e.toString():!1};var tr=t=>{let e=new Date(t);return A(e)};var rr=t=>typeof t=="undefined";var at=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),nr=t=>!!t&&at.test(t);var ar=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var U=t=>t!=null&&!Number.isNaN(t);var I=(t,e)=>{let r={};return s(t).forEach(o=>{r[o]=c(t[o])?I({},t[o]):t[o];}),s(e).forEach(o=>{x(o,t)?r[o]=c(t[o])&&c(e[o])?I(t[o],e[o]):e[o]:r[o]=c(e[o])?I({},e[o]):e[o];}),r};var ur=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let a=r.splice(o,1);r.unshift(a[0]);break}return r};var fr=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let a=r.splice(o,1)[0];r.push(a);break}return r};var xr=(t,e)=>{var r={};let o=new Set([...s(t),...s(e)]);for(let a of o)E(e[a],t[a])||(r[a]={from:t[a],to:e[a]});return r};var gr=t=>{if(B(t))return;let e=new Date(t);if(A(e))return e};var Ir=t=>JSON.stringify(t,null,2);var Mr=(t,e,r)=>{let o,a=new Promise((Dt,Q)=>{o=setTimeout(()=>Q(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),a]).finally(()=>{clearTimeout(o);})};var Rr=t=>new Promise(e=>{setTimeout(e,t);});var Cr=(t,e)=>{if(p(t)){let r=t.reduce((o,a)=>(a!==e&&o.push(a),o),[]);return r.length===t.length&&r.push(e),r}return t};var Or=(t,e,r="...")=>{if(!P(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var st=[{city:"London",country:"United Kingdom",street:"Baker Street",line2:"Marylebone",number:"221B",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",street:"Bordesley Street",number:"B1 1AA",zip:"B1 1AA"}],mt=[{city:"New York",country:"United States",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],ct=[{city:"Paris",country:"France",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],pt=[{city:"Moscow",country:"Russia",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],F=[...st,...mt,...ct,...pt];var i=(t=-100,e=100)=>Math.floor(Math.random()*(e-t+1)+t),Ur=(t=100)=>i(1,t),Fr=(t=-100)=>i(t,-1),zr=()=>i(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),vr=()=>i(-Number.MAX_VALUE,Number.MAX_VALUE),Wr=()=>i(-100,100);var n=t=>t[i(0,t.length-1)];var Kr=()=>n(F);var lt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),Yr=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return m(t,()=>n(lt)).join("")};var to=()=>!!i(0,1);var oo=16,_=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return U(r)?parseFloat(o.toFixed(r)):o};var ao=()=>({lat:ut(),lng:dt()}),ut=()=>_(-90,90),dt=()=>_(-180,180);var u=(t,e)=>{let r=t||new Date(-31536e7),o=e||new Date(31536e7);return new Date(r.getTime()+Math.random()*(o.getTime()-r.getTime()))},co=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return u(r,o)},po=()=>{let t=new Date(new Date().getTime()+5*6e4);return u(t)},lo=()=>u(void 0,new Date),uo=()=>{let t=u();return {endDate:u(t),startDate:t}};var z=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var v=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin"],W=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench"],d=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],f=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],St=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],At=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],xt=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],bt=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],Et=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],Tt=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],V=[...d,...St,...xt,...Et],X=[...f,...At,...bt,...Tt];var G=()=>(n(d)+"."+n(f)).toLowerCase()+i(11,99);var Io=()=>`${G()}@${n(z)}`;var H=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],k=["!","@","#","$","%","^","&","*"];var Do=()=>n(H);var Po=t=>n(Object.keys(t).filter(e=>!j(e)));var Uo=t=>{let e=[];return Object.values(t).forEach(r=>{x(r,t)&&!e.includes(r)&&e.push(t[r]);}),n(e)};var gt=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow","be","go","need","work"],Nt=["abandon","ability","able","abortion","about","above","abroad","absence","absent","absolute"],It=["abandoned","abdominal","ability","able","abnormal","abolish","abortion","about","above","abroad","absence","absent","absolute"],_t=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],Mt=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var K=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],J=[...gt,...Nt,...It,..._t,...Mt];var T=()=>n(J);var $=()=>M(m(8,()=>T()).join(" "))+".";var ht=["png","jpg","jpeg","gif","svg","webp"],qo=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(ht);return new File([$()],`${t||T()}.${r}`,{type:`image/${r}`})};var g=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var rn=()=>"#"+m(6,()=>n(g)).join("");var sn=()=>n(g);var q=()=>n(K);var Y=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","BH67BMAG00001299123456","BY13NBRB3600900000002Z00AB00","CH9300762011623852957","CR05015202001026284066","CY17002001280000001200527600","CZ6508000000192000145399","DE89370400440532013000","DO28BAGR00000001212453611324","EE382200221020145685","ES9121000418450200051332","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var yn=()=>n(Y);var bn=()=>m(4,()=>i(0,255).toString()).join(".");var Nn=()=>n([...v,...W]),In=()=>n(V),_n=()=>n(X),Mn=()=>n(d)+" "+n(f);var Ln=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return m(t,(e,r)=>i(r?0:1,9)).join("")};var Rt=1,Z=()=>Rt++;var Un=()=>q()+n(k)+i(11,99);var vn=()=>{let t=Z().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};
5
5
 
6
- exports.JS_MAX_DIGITS = Hr;
7
- exports.array = c;
8
- exports.arrayDiff = ht;
9
- exports.arrayIntersection = Rt;
6
+ exports.JS_MAX_DIGITS = oo;
7
+ exports.array = m;
8
+ exports.arrayDiff = Pt;
9
+ exports.arrayIntersection = jt;
10
10
  exports.capitalize = M;
11
- exports.clamp = wt;
12
- exports.cleanSpaces = Ut;
13
- exports.first = zt;
14
- exports.firstKey = Vt;
15
- exports.firstValue = Ht;
16
- exports.getEnumerableOwnPropertySymbols = q;
11
+ exports.clamp = zt;
12
+ exports.cleanSpaces = $t;
13
+ exports.first = Yt;
14
+ exports.firstKey = ee;
15
+ exports.firstValue = oe;
16
+ exports.getEnumerableOwnPropertySymbols = tt;
17
17
  exports.getKeys = s;
18
18
  exports.isArray = p;
19
- exports.isBoolean = qt;
20
- exports.isBrowser = re;
21
- exports.isClient = y;
22
- exports.isEmail = ae;
23
- exports.isEmpty = D;
24
- exports.isEmptyArray = Z;
25
- exports.isEmptyObject = Q;
26
- exports.isEmptyString = Y;
27
- exports.isEven = ye;
28
- exports.isFunction = I;
29
- exports.isInt = x;
30
- exports.isJsDate = S;
31
- exports.isKey = b;
32
- exports.isNegative = be;
33
- exports.isNumber = B;
34
- exports.isNumeric = R;
35
- exports.isNumericId = ge;
36
- exports.isObject = m;
37
- exports.isOdd = Se;
38
- exports.isPWA = Be;
39
- exports.isPositive = h;
40
- exports.isPromise = Le;
41
- exports.isReactElement = Re;
42
- exports.isRegExp = Oe;
19
+ exports.isBoolean = me;
20
+ exports.isBrowser = fe;
21
+ exports.isClient = S;
22
+ exports.isEmail = xe;
23
+ exports.isEmpty = B;
24
+ exports.isEmptyArray = rt;
25
+ exports.isEmptyObject = ot;
26
+ exports.isEmptyString = et;
27
+ exports.isEven = Re;
28
+ exports.isFunction = N;
29
+ exports.isInt = b;
30
+ exports.isJsDate = A;
31
+ exports.isKey = x;
32
+ exports.isNegative = Le;
33
+ exports.isNumber = O;
34
+ exports.isNumeric = j;
35
+ exports.isNumericId = Ue;
36
+ exports.isObject = c;
37
+ exports.isOdd = De;
38
+ exports.isPWA = Ve;
39
+ exports.isPositive = P;
40
+ exports.isPromise = ze;
41
+ exports.isReactElement = Ge;
42
+ exports.isRegExp = ke;
43
43
  exports.isSame = E;
44
- exports.isServer = L;
45
- exports.isSpacedString = C;
46
- exports.isString = u;
47
- exports.isStringDate = Xe;
48
- exports.isURL = Ke;
49
- exports.isUUID = We;
50
- exports.isUndefined = ke;
51
- exports.isValue = P;
52
- exports.last = Jt;
53
- exports.merge = _;
54
- exports.moveToFirst = tr;
55
- exports.moveToLast = rr;
56
- exports.objectDiff = ar;
57
- exports.parseDate = pr;
58
- exports.pretty = lr;
59
- exports.promiseWithTimeout = Ar;
60
- exports.randomAddress = wr;
61
- exports.randomAlphaNumericCode = zr;
44
+ exports.isServer = C;
45
+ exports.isSpacedString = w;
46
+ exports.isString = l;
47
+ exports.isStringDate = tr;
48
+ exports.isURL = nr;
49
+ exports.isUUID = ar;
50
+ exports.isUndefined = rr;
51
+ exports.isValue = U;
52
+ exports.last = ie;
53
+ exports.merge = I;
54
+ exports.moveToFirst = ur;
55
+ exports.moveToLast = fr;
56
+ exports.objectDiff = xr;
57
+ exports.parseDate = gr;
58
+ exports.pretty = Ir;
59
+ exports.promiseWithTimeout = Mr;
60
+ exports.randomAddress = Kr;
61
+ exports.randomAlphaNumericCode = Yr;
62
62
  exports.randomArrayItem = n;
63
- exports.randomBool = Xr;
64
- exports.randomCoords = Wr;
65
- exports.randomDate = l;
66
- exports.randomDateRange = to;
67
- exports.randomEmail = uo;
68
- exports.randomEmoji = So;
69
- exports.randomEnumKey = To;
70
- exports.randomEnumValue = go;
71
- exports.randomFile = Fo;
72
- exports.randomFirstName = un;
73
- exports.randomFloat = g;
74
- exports.randomFullName = dn;
75
- exports.randomFutureDate = Zr;
76
- exports.randomHandle = v;
77
- exports.randomHexColor = ko;
78
- exports.randomHexValue = Wo;
79
- exports.randomHtmlColorName = K;
80
- exports.randomIBAN = rn;
81
- exports.randomIP = an;
63
+ exports.randomBool = to;
64
+ exports.randomCoords = ao;
65
+ exports.randomDate = u;
66
+ exports.randomDateRange = uo;
67
+ exports.randomEmail = Io;
68
+ exports.randomEmoji = Do;
69
+ exports.randomEnumKey = Po;
70
+ exports.randomEnumValue = Uo;
71
+ exports.randomFile = qo;
72
+ exports.randomFirstName = In;
73
+ exports.randomFloat = _;
74
+ exports.randomFullName = Mn;
75
+ exports.randomFutureDate = po;
76
+ exports.randomHandle = G;
77
+ exports.randomHexColor = rn;
78
+ exports.randomHexValue = sn;
79
+ exports.randomHtmlColorName = q;
80
+ exports.randomIBAN = yn;
81
+ exports.randomIP = bn;
82
82
  exports.randomInt = i;
83
- exports.randomLastName = ln;
84
- exports.randomLat = mt;
85
- exports.randomLng = ct;
86
- exports.randomMaxDate = Yr;
87
- exports.randomMaxInt = Dr;
88
- exports.randomMaxSafeInt = Lr;
89
- exports.randomName = pn;
90
- exports.randomNegativeInt = Mr;
91
- exports.randomNumericCode = Sn;
92
- exports.randomNumericId = W;
93
- exports.randomParagraph = H;
94
- exports.randomPassword = _n;
95
- exports.randomPastDate = Qr;
96
- exports.randomPercentage = hr;
97
- exports.randomPositiveInt = gr;
98
- exports.randomUUID = Ln;
83
+ exports.randomLastName = _n;
84
+ exports.randomLat = ut;
85
+ exports.randomLng = dt;
86
+ exports.randomMaxDate = co;
87
+ exports.randomMaxInt = vr;
88
+ exports.randomMaxSafeInt = zr;
89
+ exports.randomName = Nn;
90
+ exports.randomNegativeInt = Fr;
91
+ exports.randomNumericCode = Ln;
92
+ exports.randomNumericId = Z;
93
+ exports.randomParagraph = $;
94
+ exports.randomPassword = Un;
95
+ exports.randomPastDate = lo;
96
+ exports.randomPercentage = Wr;
97
+ exports.randomPositiveInt = Ur;
98
+ exports.randomUUID = vn;
99
99
  exports.randomWord = T;
100
- exports.sleep = yr;
101
- exports.toggleArray = xr;
102
- exports.truncate = Nr;
103
- exports.uniqueValues = f;
100
+ exports.sleep = Rr;
101
+ exports.toggleArray = Cr;
102
+ exports.truncate = Or;
103
+ exports.uniqueValues = y;
104
104
 
105
105
  return exports;
106
106