deverything 5.3.1 → 5.5.0
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.mts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.global.js +2 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -386,6 +386,19 @@ declare const firstKey: <T extends PlainObject>(arg: T) => ObjectKey<T>;
|
|
|
386
386
|
|
|
387
387
|
declare const firstValue: <T extends PlainObject>(arg: T) => ObjectValue<T>;
|
|
388
388
|
|
|
389
|
+
type FileSizeUnit = "B" | "KB" | "MB" | "GB" | "TB" | "PB" | "EB";
|
|
390
|
+
/**
|
|
391
|
+
* Formats a byte count into the requested unit, suffixed with the unit label
|
|
392
|
+
* (e.g. `formatFileSize(2048)` => `"2 KB"`, `formatFileSize(5_242_880, "MB")` => `"5 MB"`).
|
|
393
|
+
*
|
|
394
|
+
* Rounds to the nearest whole unit and never returns less than 1, so small files
|
|
395
|
+
* don't display as "0 KB".
|
|
396
|
+
*
|
|
397
|
+
* @param bytes - Size in bytes
|
|
398
|
+
* @param unit - Unit to format to (defaults to "KB")
|
|
399
|
+
*/
|
|
400
|
+
declare const formatFileSize: (bytes: number, unit?: FileSizeUnit) => string;
|
|
401
|
+
|
|
389
402
|
/**
|
|
390
403
|
* Get a client cookie by name, works only in the browser
|
|
391
404
|
* @param name
|
|
@@ -621,6 +634,20 @@ declare const skipTakeToPagination: (skipTake: {
|
|
|
621
634
|
|
|
622
635
|
declare const sleep: (timeMs: number) => Promise<void>;
|
|
623
636
|
|
|
637
|
+
/**
|
|
638
|
+
* Sort an array to match the order defined by key values on `field`.
|
|
639
|
+
*
|
|
640
|
+
* @remarks Returns a new array. Does not mutate `array`.
|
|
641
|
+
* @example
|
|
642
|
+
* const array = [{ id: 2, name: "Alice" }, { id: 1, name: "Bob" }, { id: 3, name: "Charlie" }];
|
|
643
|
+
* const sortedArray = sortBySortdedKeys(array, [1, 2, 3]);
|
|
644
|
+
* // sortedArray = [{ id: 1, name: "Bob" }, { id: 2, name: "Alice" }, { id: 3, name: "Charlie" }];
|
|
645
|
+
*/
|
|
646
|
+
declare const sortBySortdedKeys: <T extends Record<string, unknown>>(array: T[], keys: (string | number)[], options?: {
|
|
647
|
+
direction?: "asc" | "desc";
|
|
648
|
+
field?: keyof T;
|
|
649
|
+
}) => T[];
|
|
650
|
+
|
|
624
651
|
declare const stringify: (arg?: any) => string;
|
|
625
652
|
|
|
626
653
|
declare const toggleArrayValue: <T>(array: T[], value: T) => T[];
|
|
@@ -1073,4 +1100,4 @@ declare const isUUID: (arg: string) => boolean;
|
|
|
1073
1100
|
*/
|
|
1074
1101
|
declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
|
|
1075
1102
|
|
|
1076
|
-
export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type ParsedPrimitive, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkText, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, copyToClipboard, countDecimals, cyclicalItem, dir, enumKeys, enumValues, escapeSqlLikePattern, extractEmailDomain, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatCount, formatDateRange, formatIndexProgress, formatNumber, formatPascalCase, formatPercentage, formatPercentageNumber, formatProgress, formatTrpcInputQueryString, getCookieByName, getCountryName, getDateRangeSeries, getDateSeriesRange, getFlagEmoji, getKeys, getUrlSearchParam, getUrlSearchParams, groupByDateBucket, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBetweenDates, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInDateRange, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSameUTCDay, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToIndex, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, normalizeString, omit, paginationToSkipTake, parseArray, parseDate, parsePrimitive, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomObjectKey, randomObjectValue, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, singleton, skipTakeToPagination, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, startOfYesterday, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
|
1103
|
+
export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type ParsedPrimitive, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkText, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, copyToClipboard, countDecimals, cyclicalItem, dir, enumKeys, enumValues, escapeSqlLikePattern, extractEmailDomain, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatCount, formatDateRange, formatFileSize, formatIndexProgress, formatNumber, formatPascalCase, formatPercentage, formatPercentageNumber, formatProgress, formatTrpcInputQueryString, getCookieByName, getCountryName, getDateRangeSeries, getDateSeriesRange, getFlagEmoji, getKeys, getUrlSearchParam, getUrlSearchParams, groupByDateBucket, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBetweenDates, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInDateRange, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSameUTCDay, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToIndex, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, normalizeString, omit, paginationToSkipTake, parseArray, parseDate, parsePrimitive, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomObjectKey, randomObjectValue, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, singleton, skipTakeToPagination, sleep, sortBySortdedKeys, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, startOfYesterday, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.d.ts
CHANGED
|
@@ -386,6 +386,19 @@ declare const firstKey: <T extends PlainObject>(arg: T) => ObjectKey<T>;
|
|
|
386
386
|
|
|
387
387
|
declare const firstValue: <T extends PlainObject>(arg: T) => ObjectValue<T>;
|
|
388
388
|
|
|
389
|
+
type FileSizeUnit = "B" | "KB" | "MB" | "GB" | "TB" | "PB" | "EB";
|
|
390
|
+
/**
|
|
391
|
+
* Formats a byte count into the requested unit, suffixed with the unit label
|
|
392
|
+
* (e.g. `formatFileSize(2048)` => `"2 KB"`, `formatFileSize(5_242_880, "MB")` => `"5 MB"`).
|
|
393
|
+
*
|
|
394
|
+
* Rounds to the nearest whole unit and never returns less than 1, so small files
|
|
395
|
+
* don't display as "0 KB".
|
|
396
|
+
*
|
|
397
|
+
* @param bytes - Size in bytes
|
|
398
|
+
* @param unit - Unit to format to (defaults to "KB")
|
|
399
|
+
*/
|
|
400
|
+
declare const formatFileSize: (bytes: number, unit?: FileSizeUnit) => string;
|
|
401
|
+
|
|
389
402
|
/**
|
|
390
403
|
* Get a client cookie by name, works only in the browser
|
|
391
404
|
* @param name
|
|
@@ -621,6 +634,20 @@ declare const skipTakeToPagination: (skipTake: {
|
|
|
621
634
|
|
|
622
635
|
declare const sleep: (timeMs: number) => Promise<void>;
|
|
623
636
|
|
|
637
|
+
/**
|
|
638
|
+
* Sort an array to match the order defined by key values on `field`.
|
|
639
|
+
*
|
|
640
|
+
* @remarks Returns a new array. Does not mutate `array`.
|
|
641
|
+
* @example
|
|
642
|
+
* const array = [{ id: 2, name: "Alice" }, { id: 1, name: "Bob" }, { id: 3, name: "Charlie" }];
|
|
643
|
+
* const sortedArray = sortBySortdedKeys(array, [1, 2, 3]);
|
|
644
|
+
* // sortedArray = [{ id: 1, name: "Bob" }, { id: 2, name: "Alice" }, { id: 3, name: "Charlie" }];
|
|
645
|
+
*/
|
|
646
|
+
declare const sortBySortdedKeys: <T extends Record<string, unknown>>(array: T[], keys: (string | number)[], options?: {
|
|
647
|
+
direction?: "asc" | "desc";
|
|
648
|
+
field?: keyof T;
|
|
649
|
+
}) => T[];
|
|
650
|
+
|
|
624
651
|
declare const stringify: (arg?: any) => string;
|
|
625
652
|
|
|
626
653
|
declare const toggleArrayValue: <T>(array: T[], value: T) => T[];
|
|
@@ -1073,4 +1100,4 @@ declare const isUUID: (arg: string) => boolean;
|
|
|
1073
1100
|
*/
|
|
1074
1101
|
declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
|
|
1075
1102
|
|
|
1076
|
-
export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type ParsedPrimitive, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkText, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, copyToClipboard, countDecimals, cyclicalItem, dir, enumKeys, enumValues, escapeSqlLikePattern, extractEmailDomain, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatCount, formatDateRange, formatIndexProgress, formatNumber, formatPascalCase, formatPercentage, formatPercentageNumber, formatProgress, formatTrpcInputQueryString, getCookieByName, getCountryName, getDateRangeSeries, getDateSeriesRange, getFlagEmoji, getKeys, getUrlSearchParam, getUrlSearchParams, groupByDateBucket, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBetweenDates, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInDateRange, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSameUTCDay, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToIndex, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, normalizeString, omit, paginationToSkipTake, parseArray, parseDate, parsePrimitive, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomObjectKey, randomObjectValue, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, singleton, skipTakeToPagination, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, startOfYesterday, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
|
1103
|
+
export { type BoolMap, type Coords, type DateLike, type DateRange, type DateSeries, type Datey, type Defined, type Dimensions, type HashMap, type ISODate, type ISODay, type ISOMonth, type ISOYear, JS_MAX_DIGITS, type Key, type Matrix, type Maybe, type MaybePromise, type MaybePromiseOrValue, type MaybePromiseOrValueArray, type NonUndefined, type NumberMap, type ObjectEntries, type ObjectEntry, type ObjectKey, type ObjectKeys, type ObjectValue, type ObjectValues, type ParsedPrimitive, type PickDefined, type PickRequired, type PlainKey, type PlainObject, type Point, type PrismaSelect, type Serialized, type StringMap, type Timezone, type TrueMap, type VoidFn, array, arrayDiff, arrayIntersection, average, capitalize, chunkArray, chunkText, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, copyToClipboard, countDecimals, cyclicalItem, dir, enumKeys, enumValues, escapeSqlLikePattern, extractEmailDomain, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatCount, formatDateRange, formatFileSize, formatIndexProgress, formatNumber, formatPascalCase, formatPercentage, formatPercentageNumber, formatProgress, formatTrpcInputQueryString, getCookieByName, getCountryName, getDateRangeSeries, getDateSeriesRange, getFlagEmoji, getKeys, getUrlSearchParam, getUrlSearchParams, groupByDateBucket, groupByKey, incrementalId, isArray, isArrayIncluded, isBetween, isBetweenDates, isBigInt, isBigIntString, isBoolean, isBrowser, isBuffer, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFile, isFunction, isFutureDate, isInDateRange, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSameUTCDay, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToIndex, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, normalizeString, omit, paginationToSkipTake, parseArray, parseDate, parsePrimitive, percentageChange, pickObjectKeys, pickObjectValues, pluck, prismaDateRange, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArray, randomArrayItem, randomBankAccount, randomBigInt, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEmptyValue, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomObject, randomObjectKey, randomObjectValue, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, singleton, skipTakeToPagination, sleep, sortBySortdedKeys, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, startOfYesterday, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.global.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(exports){'use strict';var T=e=>Array.isArray(e);var g=e=>Object.prototype.toString.call(e)==="[object Object]";var x=e=>typeof e=="string";var te=e=>!!(e===void 0||e===null||$(e)||Qe(e)||Ze(e)),$=e=>x(e)&&e.trim().length===0,Ze=e=>T(e)&&e.length===0,Qe=e=>g(e)&&Object.keys(e).length===0;var B=e=>Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e);var re=(e,t,r)=>e<t||e>r;var _=e=>Number.isInteger(e),Gt=e=>_(e)&&!(e%2),Jt=e=>_(e)&&!!(e%2),ne=e=>_(e)&&e>0,Xt=e=>_(e)&&e<0,D=e=>Object.prototype.toString.apply(e)==="[object Number]"&&isFinite(e),Yt=e=>Object.prototype.toString.apply(e)==="[object BigInt]",qt=e=>{try{return BigInt(e)>Number.MAX_SAFE_INTEGER}catch{return false}},Zt=e=>re(e,-2147483647,2147483647);var et=/^\d{4}(-\d{2})?(-\d{2})?$/,tt=/^(?!.*(?:Z|[+-]\d{2}:?\d{2})).+$/,u=(e,t)=>{if(te(e)||D(e)&&(!Number.isInteger(e)||e<-864e13||e>864e13||!Number.isFinite(e)))return;if(x(e)){et.test(e)&&(e=`${e+"-01-01".slice(e.length-4)}T00:00:00`);let[n,o]=e.split("T");o?.length<8&&(e=`${n}T${o}${"00:00:00".slice(o.length)}`),t?.asUTC&&tt.test(e)&&(e+="Z");}let r=new Date(e);if(B(r))return r};var ir=(e,t,r={})=>{let{startDate:n,endDate:o}=e,a=u(n),i=u(o);if(!a||!i||a.getTime()>i.getTime())throw new Error("Invalid date range");let m=[],c=new Date(a.getTime()),p=r?.step??1;for(;c<i;)switch(m.push(c.toISOString()),t){case "calendarYear":if(a.getUTCMonth()===1&&a.getUTCDate()===29)throw new Error("Cannot add years when the start date is Feb 29, it may lead to unexpected results");{let f=c.getUTCFullYear();c.setUTCFullYear(f+p);}break;case "calendarMonth":if(a.getUTCDate()>28)throw new Error("Cannot add months when the start day of month is greater than 28, it may lead to unexpected results");{let f=c.getUTCMonth();c.setUTCMonth(f+p);}break;case "day":c.setUTCDate(c.getUTCDate()+p);break;case "week":c.setUTCDate(c.getUTCDate()+p*7);break;case "hour":c.setUTCHours(c.getUTCHours()+p);break;case "minute":c.setUTCMinutes(c.getUTCMinutes()+p);break;case "second":c.setUTCSeconds(c.getUTCSeconds()+p);break;default:throw new Error(`Unsupported unit: ${t}`)}return m};var cr=e=>{if(!e||e.length===0)throw new Error("Cannot find date range for empty array");let t=e.map(m=>u(m)).filter(m=>m!==void 0);if(t.length===0)throw new Error("No valid dates found in array");let r=t.map(m=>m.getTime()),n=Math.min(...r),o=Math.max(...r),a=new Date(n),i=new Date(o);return {startDate:a,endDate:i}};var pr=(e,t)=>e.every(r=>t.includes(r));var d=(e,t=()=>{})=>Array.from({length:e},t);var dr=(e,t)=>{let r=new Set(e),n=new Set(t),o=[...r].filter(i=>!n.has(i)),a=[...n].filter(i=>!r.has(i));return [...o,...a]};var br=(e,t)=>{if(e.length===0||t.length===0)return [];let r=new Set(e),n=new Set(t),[o,a]=r.size<n.size?[r,n]:[n,r];return [...o].filter(i=>a.has(i))};var oe=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var E=(e,t)=>{let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r};var Sr=async(e,t,r)=>{let n=E(e,t);return await Promise.all(n.map(r))};var M=e=>new Promise(t=>{setTimeout(t,e);});var Nr=async(e,t,r,{minChunkTimeMs:n}={})=>{let o=[],a=E(e,t);for(let[i,m]of a.entries()){let c=performance.now(),p=await r(m,i,a);if(o.push(p),n){let f=performance.now()-c;f<n&&await M(n-f);}}return o};var N=({number:e,min:t,max:r})=>(r<t&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:e,min:t,max:r}),e<t?t:e>r?r:e);var kr=async(e,t,r,{idealChunkDuration:n,maxChunkSize:o,minChunkDuration:a,minChunkSize:i,sleepTimeMs:m}={})=>{let c=[],p=0,f=0,b=t;for(;p<e.length;){let w=performance.now(),I=e.slice(p,p+b);p+=b;let k=await r(I,f);if(f+=1,c.push(k),m&&await M(m),n){let C=performance.now()-w;b=N({number:Math.round(b*(n/C)),min:i||1,max:o||200});}if(a){let C=performance.now()-w;C<a&&await M(a-C);}}return c};var jr=(e,t,r)=>{let o=[...new Intl.Segmenter(void 0,{granularity:r?.preserveOnBreak}).segment(e)].map(m=>m.segment),a=[],i="";for(let m of o)m.length>t?(i&&(a.push(i),i=""),a.push(...E([...m],t).map(c=>c.join("")))):i.length+m.length>t?(a.push(i),i=m):i+=m;return i&&a.push(i),a};var ae=new RegExp(/\p{C}/,"gu");var ie=/\p{Zs}/gu;var se=/\p{Zl}/gu;var me=/\p{Zp}/gu;var ce=e=>e.replace(ae," ").replace(ie," ").replace(se," ").replace(me," ").trim().replace(/\s{2,}/g," ");var Wr=async e=>{if(typeof navigator>"u"||!navigator.clipboard)throw new Error("Clipboard API is not available in this environment");await navigator.clipboard.writeText(e);};var Gr=(e,t)=>e[t%e.length];var Xr=(e,{maxDepth:t=5}={})=>{console.dir(e,{depth:t});};var U=e=>D(e)?true:x(e)?/^[+-]?((\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?|0[xX][\dA-Fa-f]+|0[bB][01]+)$/.test(e):false;var ue=e=>Object.keys(e).filter(t=>!U(t));var L=(e,t)=>t.hasOwnProperty(e)&&t.propertyIsEnumerable(e);var pe=e=>{let t=[];return Object.values(e).forEach(r=>{L(r,e)&&!t.includes(r)&&t.push(e[r]);}),t};var an=e=>e.replace(/[\\%_]/g,"\\$&");var mn=e=>{let t=e.indexOf("@");if(!(t===-1||t===e.length-1))return e.slice(t+1)};var un=e=>e.replace(/[^a-zA-Z0-9]/g,"");var ln=e=>e[0];var dn=e=>Object.keys(e)[0];var bn=e=>Object.values(e)[0];var xn=e=>{if(typeof document>"u")return;let t=document.cookie.split(";");for(let r of t){let[n,o]=r.trim().split("=");if(n===e)return decodeURIComponent(o)}};var rt=new Intl.DisplayNames(["en"],{type:"region"}),Tn=e=>{if(e.length!==2)throw new Error("Invalid country code, must be 2 characters long");return rt.of(e.toUpperCase())};var An=e=>{if(e.length!==2)throw new Error("Invalid country code, must be 2 characters long");let t=e.toUpperCase().split("").map(r=>127397+r.charCodeAt(0));return String.fromCodePoint(...t)};var Dn=Object.keys;var le=e=>{if(!e)return {};try{let t=e.startsWith("/"),r=new URL(e,t?"https://deverything.dev/":void 0);return Object.fromEntries(r.searchParams)}catch{return {}}};var Pn=(e,t)=>le(e)[t];var y=e=>e!=null&&!Number.isNaN(e);var Mn=(e,t)=>e.reduce((r,n)=>{let o=n[t];return y(o)&&(r[o]||(r[o]=[]),r[o].push(n)),r},{});var nt=1,F=()=>nt++;var Bn=e=>Object.keys(e).length;var O=e=>e.length-1;var fe=e=>e[O(e)];var vn=(e,t)=>e.reduce((r,n)=>(y(n[t])&&(r[n[t]]=n),r),{});var z=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=g(e[n])?z({},e[n]):e[n];}),Object.keys(t).forEach(n=>{L(n,e)?r[n]=g(e[n])&&g(t[n])?z(e[n],t[n]):t[n]:r[n]=g(t[n])?z({},t[n]):t[n];}),r};var Wn=(e,t)=>e.concat(t.filter(r=>!e.includes(r)));var Gn=(e,t)=>{let r=[...e];for(let n=0;n<r.length;n++)if(t(r[n],n,r)){let o=r.splice(n,1);r.unshift(o[0]);break}return r};var Xn=(e,t,r)=>{if(!e.length||t>e.length||r>e.length)return e;let n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n};var qn=(e,t)=>{let r=[...e];for(let n=0;n<r.length;n++)if(t(r[n],n,r)){let o=r.splice(n,1)[0];r.push(o);break}return r};var Qn=({value:e,max:t,min:r})=>e>=t?1:e<=r?0:(e-r)/(t-r);var ro=e=>ce(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var oo=(e,t)=>{let r={};for(let n in e)t.includes(n)||(r[n]=e[n]);return r};var io=e=>{let{page:t,perPage:r}=e;return {skip:(t-1)*r,take:r}};var de=(e,t)=>{let{coerceBoolean:r=false}=t??{},n=e.trim();if(n==="")return "";if(n==="NaN")return NaN;if(n==="Infinity")return 1/0;if(n==="-Infinity")return -1/0;let o=n.toLowerCase();if(o==="true")return true;if(o==="false")return false;if(o==="null")return null;if(o!=="undefined"){if(r){if(o==="yes"||o==="on"||o==="y")return true;if(o==="no"||o==="off"||o==="n")return false}return U(n)?Number(n):n}};var fo=(e,{separator:t=",",uniqueValues:r=false}={})=>e.split(t).map(n=>de(n)).filter((n,o,a)=>$(n)?false:r?a.indexOf(n)===o:true);var bo=(e,t)=>{let r={};for(let n in e)t.includes(n)&&(r[n]=e[n]);return r};var xo=(e,t)=>{let r={};for(let n in e)t.includes(e[n])&&(r[n]=e[n]);return r};var So=(e,t)=>e.reduce((r,n)=>(y(n[t])&&r.push(n[t]),r),[]);var Co=(e,t,r)=>{let n,o=new Promise((a,i)=>{n=setTimeout(()=>i(r??new Error("Promise timed out")),t);});return Promise.race([e(),o]).finally(()=>{clearTimeout(n);})};var Eo=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0));var l=({min:e=-100,max:t=100}={})=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)),ge=()=>BigInt(l()),Oo=({min:e=1,max:t}={})=>l({min:e,max:t}),Po=({min:e,max:t=-1}={})=>l({min:e,max:t}),wo=()=>l({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),Io=()=>l({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),ko=()=>l()+"%";var V=()=>String.fromCharCode(l({min:97,max:122}));var be=new RegExp(/\p{L}/,"gu");var Lo=e=>e.replace(be,()=>V());var Vo=e=>{let t=new Set;return JSON.stringify(e,(r,n)=>(t.add(r),n)),JSON.stringify(e,Array.from(t).sort())};var Ho=async e=>{let t=[];for(let r of e)if(h(r))t.push(await r());else throw new Error(`seriesAsync: invalid type received "${typeof r}", make sure all items are functions, not promises, otherwise they would've been executed already`);return t};var zo=(e,t,r)=>{let n=t.split("."),o=(a,i,m)=>{let c=i[0];if(i.length===1){a[c]=m;return}(!a[c]||!g(a[c]))&&(a[c]={}),o(a[c],i.slice(1),m);};o(e,n,r);};var Xo=(e,t={})=>{let r=e.startsWith("/"),n=new URL(e,r?"https://deverything.dev/":void 0);return Object.entries(t).forEach(([o,a])=>{a!=null&&(g(a)?n.searchParams.set(o,JSON.stringify(a)):n.searchParams.set(o,a.toString()));}),r?n.pathname+n.search+n.hash:n.toString()};var qo=e=>{let t=[...e];for(let r=t.length-1;r>0;r--){let n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]];}return t};var ye=e=>e instanceof Promise;var ta=e=>{let t=false,r;return ()=>{if(t)return r;let n=e();return ye(n)?(t=true,r=n.then(o=>o,o=>{throw t=false,o}),r):(t=true,r=n,n)}};var na=e=>{let{skip:t,take:r}=e,n=r;return {page:Math.floor(t/r)+1,perPage:n}};var xe=()=>{let e=[],t=[],r=function(n,o){return e[0]===o?"[Circular ~]":"[Circular ~."+t.slice(0,e.indexOf(o)).join(".")+"]"};return function(n,o){if(e.length>0){let a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?t.splice(a,1/0,n):t.push(n),e.indexOf(o)!==-1&&(o=r.call(this,n,o));}else e.push(o);return o}};var sa=e=>JSON.stringify(e,xe(),2);var ua=(e,t)=>{if(!T(e))return e;let r=e.reduce((n,o)=>(o!==t&&n.push(o),n),[]);return r.length===e.length&&r.push(t),r};var fa=(e,t,{ellipsis:r,position:n}={})=>{if(r||(r="..."),n||(n="end"),!ne(t))return e;let o=[...e],a=r.length;if(o.length<=t)return e;switch(n){case "start":{let i=t-a;return r+o.slice(-i).join("")}case "middle":{let i=Math.ceil((t-a)/2),m=o.length-Math.floor((t-a)/2);return o.slice(0,i).join("")+r+o.slice(m).join("")}case "end":default:return o.slice(0,t-a).join("")+r}};var ga=e=>[...new Set(e)];var ot=(e,t)=>{let r=u(e),n=u(t.startDate),o=u(t.endDate);return !r||!n||!o?false:r>=n&&r<o},xa=ot;var Ta=e=>Object.prototype.toString.call(e)==="[object Boolean]";var he=()=>typeof window>"u";var v=()=>!he();var Na=v;var h=e=>{let t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"};var ka=e=>y(e)&&y(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e);var ja=e=>x(e)&&/\S+@\S+\.\S+/.test(e);var _a=e=>Object.prototype.toString.call(e)==="[object File]";var G=(e,{referenceDate:t}={})=>{let r=u(e),n=t?u(t):new Date;if(!n)throw new Error(`[isFutureDate] Invalid referenceDate: ${t}`);return !!r&&r>n};var va=(e,t)=>e===O(t);var $a=e=>x(e)&&e.trim().length>0;var za=e=>/^\d+$/.test(e)&&parseInt(e)>0;var J=(e,{referenceDate:t}={})=>{let r=u(e),n=t?u(t):new Date;if(!n)throw new Error(`[isPastDate] Invalid referenceDate: ${t}`);return !!r&&r<n};var qa=()=>v()&&window.matchMedia("(display-mode: standalone)").matches;var at=typeof Symbol=="function"&&Symbol.for,it=at?Symbol.for("react.element"):60103,Qa=e=>e.$$typeof===it;var ti=e=>Object.prototype.toString.call(e)==="[object RegExp]";var Te=(e,t)=>{if(e===t)return true;if(T(e)&&T(t))return e.length!==t.length?false:e.every((r,n)=>Te(r,t[n]));if(g(e)&&g(t)){let r=Object.keys(e);return r.length!==Object.keys(t).length?false:r.every(n=>Te(e[n],t[n]))}return h(e)&&h(t)?e.toString()===t.toString():false};var mi=(e,t)=>{let r=u(e,{asUTC:true}),n=u(t,{asUTC:true});return !r||!n?false:r.getUTCFullYear()===n.getUTCFullYear()&&r.getUTCMonth()===n.getUTCMonth()&&r.getUTCDate()===n.getUTCDate()};var ui=e=>e.length<2?true:e[0]!==1?false:e.slice(1).every((t,r)=>t===e[r-1]+1);var li=e=>e.indexOf(" ")>=0;var gi=e=>{let t=new Date(e);return B(t)};var st=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"),yi=e=>!!e&&st.test(e);var hi=e=>/^[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(e);var Se=(e,t)=>h(t)?t(e):e[t];function Ei({dateBuckets:e,items:t,unit:r,accessor:n}){let a=(f=>{switch(f){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),i=e.map(f=>{let b=u(f);if(!b)throw new Error(`[groupByDateBucket] Invalid dateBucket: ${f}`);return {timestamp:b.getTime(),normalizedKey:b.toISOString()}}),m={};i.forEach(({normalizedKey:f})=>{m[f]=[];});let c=f=>n?Se(f,n):f,p=0;return t.forEach(f=>{let b=c(f);if(!b)return;let w=u(b);if(!w)return;let I=w.getTime();for(;p<i.length;){let k=i[p].timestamp,C=p<i.length-1?i[p+1].timestamp:k+a;if(I>=k&&I<C){m[i[p].normalizedKey].push(f);break}if(I<k)break;p++;}}),m}var Pi=e=>{let t=new Date,r=u(e);if(!r)return false;let n=t.getFullYear()-r.getFullYear();if(n>18)return true;if(n<18)return false;if(n===18){if(t.getMonth()>r.getMonth())return true;if(t.getMonth()<r.getMonth())return false;if(t.getMonth()===r.getMonth()){if(t.getDate()>=r.getDate())return true;if(t.getDate()<r.getDate())return false}}return false};var Ae=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate());var ki=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,1)};var Ri=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay())};var Bi=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay())};var Li=()=>Ae(new Date);var Vi=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)};var Ki=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));var $i=()=>{let e=new Date;return e.setUTCDate(e.getUTCDate()+1),new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))};var zi=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-1)};var Ce=e=>e.toLowerCase().replace(/[-_\s]+(.)/g,(t,r)=>r.toUpperCase()).replace(/^(.)/,t=>t.toUpperCase());var Yi=e=>{let t=Ce(e);return t.charAt(0).toLowerCase()+t.slice(1)};var Zi=e=>Object.entries(e).reduce((t,[r,n])=>(n!==void 0&&t.push(`${r}=${n}`),t),[]).join("; ")+";";var es=e=>Object.entries(e).map(([t,r])=>`${Array.isArray(r)?r.length:r} ${t}`).join(", ");var ns=(e,t)=>`${u(e)?.toISOString()} \u2B95 ${u(t)?.toISOString()}`;var De=(e,t)=>`[${N({number:e+1,min:1,max:t})}/${t}]`;var Ee=(e,t,r)=>e>t&&e<r;var X=[{divisor:1e-9,suffix:"n"},{divisor:1e-6,suffix:"\u03BC"},{divisor:.001,suffix:"m"}],us=(e,{compact:t,maxDigits:r,percentage:n,unit:o=""}={})=>{if(n)return `${((D(e)?e:0)*100).toFixed(r||0)}%`;if(t&&Ee(Math.abs(e),0,1)){let i=Math.abs(e),m=i<1e-6?X[0]:i<.001?X[1]:X[2],c=e/m.divisor;return `${Intl.NumberFormat("en",{maximumSignificantDigits:r??3}).format(c)}${m.suffix}${o}`}return `${Intl.NumberFormat("en",{notation:t?"compact":"standard",maximumSignificantDigits:r}).format(e)}${o}`};var mt=(e,{digits:t}={})=>`${N({number:e*100,min:0,max:100}).toFixed(t||0)}`,Ne=(e,{digits:t}={})=>`${mt(e,{digits:t})}%`;var Y=new Map,ct=e=>{if(e<60)return `~${Math.ceil(e)}s`;let t=Math.floor(e/60),r=Math.ceil(e%60);if(t<60)return r>0?`~${t}m ${r}s`:`~${t}m`;let n=Math.floor(t/60),o=t%60;return o>0?`~${n}h ${o}m`:`~${n}h`},ut=(e,t,r)=>{let n=Date.now(),o=Y.get(e);if(!o)return Y.set(e,{startTime:n,startIndex:t,lastTime:n,lastIndex:t}),null;o.lastTime=n,o.lastIndex=t;let a=t-o.startIndex,i=(n-o.startTime)/1e3;if(a<=0||i<.1)return null;let m=a/i,c=r-(t+1);if(c<=0)return Y.delete(e),null;let p=c/m;return ct(p)},bs=(e,t,{progressId:r}={})=>{let n=`${De(e,t)} ${Ne(e/t)}`;if(!r)return n;let o=ut(r,e,t);return o?`${n} (${o} remaining)`:n};var xs=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Ts=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var As=e=>e.reduce((r,n)=>r+n,0)/e.length;var Ds=e=>{if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[,r]=t.split("e"),n=parseInt(r,10),[o]=t.split("e"),a=o.includes(".")?o.split(".")[1].length:0;return Math.max(0,a-n)}return t.includes(".")?t.split(".")[1].length:0};var Ns=(e,t,r)=>e>=t&&e<=r;var Oe=e=>e.length?Math.max(...e):0;var Pe=e=>Math.min(...e);var Is=e=>e.reduce((t,r)=>t*r,1);var we=(e,t,r)=>(e-t)/(r-t);var _s=e=>{let t=Pe(e),r=Oe(e);return e.map(n=>we(n,t,r))};var Ls=(e,t)=>{if(e<0||t<0||t===0&&e===0)return 0;if(t===0&&e!==0)return -1;if(t!==0&&e===0)return 1;let r=(t-e)/e;return parseFloat(r.toFixed(4))};var Ie=e=>e.reduce((t,r)=>t+r,0);var Ks=({startDate:e,endDate:t})=>{let r=u(e),n=u(t);if(!r||!n)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:n}};var pt=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],lt=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],ft=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],dt=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],ke=[...pt,...lt,...ft,...dt];var s=(e,{weights:t}={})=>{if(t&&t.length===e.length){let r=Ie(t),n=Math.random()*r;for(let o=0;o<t.length;o++)if(n-=t[o],n<=0)return e[o];return fe(e)}return e[l({min:0,max:O(e)})]};var Zs=()=>s(ke);var gt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),rm=({length:e=6}={})=>{if(e<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return d(e,()=>s(gt)).join("")};var Me=()=>s([true,false]);var yt=(e=new Date)=>q(e,31536e7),xt=(e=new Date)=>q(e,-31536e7),q=(e,t)=>new Date(e.getTime()+t),S=({startDate:e,endDate:t}={})=>{let r=u(e),n=u(t);r&&n&&r>n&&console.warn("randomDate: startDate must be before endDate");let o=r||xt(n),a=n||yt(r);return new Date(l({min:o.getTime(),max:a.getTime()}))},um=({startDate:e,endDate:t})=>(e=e||new Date(-864e13),t=t||new Date(864e13),S({startDate:e,endDate:t})),pm=({startDate:e,endDate:t}={})=>{e&&J(e)&&console.warn("randomFutureDate: startDate must be in the future"),t&&J(t)&&console.warn("randomFutureDate: endDate must be in the future");let r=u(e)||q(new Date,5*6e4);return S({startDate:r,endDate:t})},lm=({startDate:e,endDate:t}={})=>{e&&G(e)&&console.warn("randomPastDate: startDate must be in the past"),t&&G(t)&&console.warn("randomPastDate: endDate must be in the past");let r=u(t)||new Date;return S({startDate:e,endDate:r})},fm=()=>{let e=S();return {endDate:S({startDate:e}),startDate:e}};var A=({length:e=10}={})=>d(e,()=>V()).join("");var Re=()=>Symbol(A());var K=()=>s([Me(),A(),l(),S(),ge(),Re()]);var je=()=>d(l({min:1,max:5}),K);var Be=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var ht=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],Tt=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],St=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],At=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],_e=[...ht,...Tt,...St,...At];var jm=()=>s(_e);var Ue=["IE1234567T","GB123456789","XI123456789"],Le=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Vm=()=>({name:s(Le),vatRegNumber:s(Ue)});var Hm=16,Z=(e=-9,t=9,r)=>{let n=Math.random()*(t-e)+e;return y(r)?parseFloat(n.toFixed(r)):n};var zm=()=>({lat:Ct(),lng:Dt()}),Ct=()=>Z(-90,90),Dt=()=>Z(-180,180);var Fe=["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 Ve=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],ve=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],R=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Andrew","Angela","Anna","Anthony","Benjamin","Brandon","Brian","Caroline","Catherine","Charles","Charlotte","Christina","Christopher","Daniel","David","Diana","Edward","Elizabeth","Emily","Emma","Esther","Ethan","George","Grace","Hannah","Henry","Isabella","Jack","James","Jennifer","Jessica","John","Jonathan","Joseph","Katherine","Laura","Lucas","Margaret","Maria","Matthew","Michael","Nathan","Nicholas","Olivia","Patricia","Patrick","Peter","Rachel","Rebecca","Richard","Robert","Ruby","Samuel","Sarah","Sebastian","Sophia","Stephen","Thomas","Victoria","William"],j=["Adams","Allen","Anderson","Baker","Barnes","Bell","Bennett","Brooks","Brown","Butler","Campbell","Carter","Clark","Collins","Cooper","Cox","Crawford","Davis","Edwards","Evans","Fisher","Foster","Garcia","Green","Griffin","Hall","Harris","Hayes","Henderson","Hill","Howard","Hughes","Jackson","Johnson","Jones","Kelly","King","Lee","Lewis","Long","Martin","Martinez","Miller","Mitchell","Moore","Morgan","Morris","Murphy","Nelson","Parker","Perry","Peterson","Phillips","Reed","Roberts","Robinson","Rogers","Ross","Russell","Scott","Smith","Stewart","Sullivan","Taylor","Thomas","Thompson","Turner","Walker","Ward","Watson","White","Williams","Wilson","Wood","Wright","Young"],Et=["\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"],Nt=["\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"],Ot=["\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"],Pt=["\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"],wt=["\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"],It=["\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"],Ke=[...R,...Et,...Ot,...wt],He=[...j,...Nt,...Pt,...It];var $e=({suffix:e}={})=>(s(R)+"."+s(j)).toLowerCase()+F()+(e||"");var nc=({handle:e,handleSuffix:t}={})=>`${e||$e({suffix:t})}@${s(Fe)}`;var We=["\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}"],ze=["!","@","#","$","%","^","&","*"];var mc=()=>s(We);var pc=()=>s([void 0,null,NaN,1/0]);var gc=e=>{let t=ue(e);return s(t)};var hc=e=>{let t=pe(e);return s(t)};var Q=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],ee=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],kt=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],Mt=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],Rt=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Ge=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Je=[...Q,...ee,...kt,...Mt,...Rt];var P=()=>s(Je),Xe=()=>s(ee),Dc=()=>s(Q);var Ye=({maxCharacters:e=200,minCharacters:t,minWords:r=8,maxWords:n=16}={})=>{let o=[],a=l({min:r,max:n});for(let i=0;i<a||t!==void 0&&o.join(" ").length<t;i++)o.push(P());return oe(o.join(" ").slice(0,e-1)+".")};var jt=["png","jpg","jpeg","gif","svg","webp"],Rc=({name:e,extension:t}={})=>{if(typeof File>"u")return;let r=t||s(jt);return new File([Ye()],`${e||P()}.${r}`,{type:`image/${r}`})};var H=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Fc=()=>"#"+d(6,()=>s(H)).join("");var Hc=()=>s(H);var Gc=()=>s(Ge);var qc=()=>s(Be);var tu=()=>d(4,()=>l({min:0,max:255}).toString()).join(".");var au=()=>s([...Ve,...ve]),iu=()=>s(Ke),su=()=>s(He),mu=()=>s(R)+" "+s(j);var lu=({length:e=6}={})=>{if(e<1)throw new Error("randomNumericCode: Length must be greater than 0.");return d(e,(t,r)=>l({min:r?0:1,max:9})).join("")};var Tu=({maxDepth:e=5,circular:t=false}={})=>{let r=(o=0)=>o>=e?{}:d(l({min:1,max:5}),Xe).reduce((i,m)=>{let c=s(["value","object","array"]);if(c==="object"){let p=r(o+1);i[m]=p,t&&s([true,false],{weights:[.2,.8]})&&(p.circular=p);}else if(c==="array"){let p=je();i[m]=p;}else {let p=K();i[m]=p;}return i},{});return r()};var Cu=e=>s(Object.keys(e));var Nu=e=>s(Object.values(e));var Mu=({minChars:e=9,maxChars:t=32}={})=>A({length:1}).toUpperCase()+A({length:l({min:e,max:t})-3})+s(ze)+l({min:1,max:9});var _u=({depth:e=3}={})=>d(e,P).join("/");var qe=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var vu=()=>s(qe);var $u=()=>{let e=F().toString().padStart(15,"0"),t=e.substring(0,12);return `00000000-0000-1000-8${e.substring(12,15)}-${t}`};var zu=e=>new URLSearchParams({input:JSON.stringify(e)});var Ju=()=>{};
|
|
2
|
-
exports.JS_MAX_DIGITS=
|
|
1
|
+
(function(exports){'use strict';var T=e=>Array.isArray(e);var g=e=>Object.prototype.toString.call(e)==="[object Object]";var x=e=>typeof e=="string";var te=e=>!!(e===void 0||e===null||H(e)||Qe(e)||Ze(e)),H=e=>x(e)&&e.trim().length===0,Ze=e=>T(e)&&e.length===0,Qe=e=>g(e)&&Object.keys(e).length===0;var j=e=>Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e);var re=(e,t,r)=>e<t||e>r;var _=e=>Number.isInteger(e),Jt=e=>_(e)&&!(e%2),Yt=e=>_(e)&&!!(e%2),ne=e=>_(e)&&e>0,Xt=e=>_(e)&&e<0,D=e=>Object.prototype.toString.apply(e)==="[object Number]"&&isFinite(e),qt=e=>Object.prototype.toString.apply(e)==="[object BigInt]",Zt=e=>{try{return BigInt(e)>Number.MAX_SAFE_INTEGER}catch{return false}},Qt=e=>re(e,-2147483647,2147483647);var et=/^\d{4}(-\d{2})?(-\d{2})?$/,tt=/^(?!.*(?:Z|[+-]\d{2}:?\d{2})).+$/,p=(e,t)=>{if(te(e)||D(e)&&(!Number.isInteger(e)||e<-864e13||e>864e13||!Number.isFinite(e)))return;if(x(e)){et.test(e)&&(e=`${e+"-01-01".slice(e.length-4)}T00:00:00`);let[n,o]=e.split("T");o?.length<8&&(e=`${n}T${o}${"00:00:00".slice(o.length)}`),t?.asUTC&&tt.test(e)&&(e+="Z");}let r=new Date(e);if(j(r))return r};var sr=(e,t,r={})=>{let{startDate:n,endDate:o}=e,a=p(n),i=p(o);if(!a||!i||a.getTime()>i.getTime())throw new Error("Invalid date range");let c=[],m=new Date(a.getTime()),u=r?.step??1;for(;m<i;)switch(c.push(m.toISOString()),t){case "calendarYear":if(a.getUTCMonth()===1&&a.getUTCDate()===29)throw new Error("Cannot add years when the start date is Feb 29, it may lead to unexpected results");{let d=m.getUTCFullYear();m.setUTCFullYear(d+u);}break;case "calendarMonth":if(a.getUTCDate()>28)throw new Error("Cannot add months when the start day of month is greater than 28, it may lead to unexpected results");{let d=m.getUTCMonth();m.setUTCMonth(d+u);}break;case "day":m.setUTCDate(m.getUTCDate()+u);break;case "week":m.setUTCDate(m.getUTCDate()+u*7);break;case "hour":m.setUTCHours(m.getUTCHours()+u);break;case "minute":m.setUTCMinutes(m.getUTCMinutes()+u);break;case "second":m.setUTCSeconds(m.getUTCSeconds()+u);break;default:throw new Error(`Unsupported unit: ${t}`)}return c};var ur=e=>{if(!e||e.length===0)throw new Error("Cannot find date range for empty array");let t=e.map(c=>p(c)).filter(c=>c!==void 0);if(t.length===0)throw new Error("No valid dates found in array");let r=t.map(c=>c.getTime()),n=Math.min(...r),o=Math.max(...r),a=new Date(n),i=new Date(o);return {startDate:a,endDate:i}};var lr=(e,t)=>e.every(r=>t.includes(r));var f=(e,t=()=>{})=>Array.from({length:e},t);var gr=(e,t)=>{let r=new Set(e),n=new Set(t),o=[...r].filter(i=>!n.has(i)),a=[...n].filter(i=>!r.has(i));return [...o,...a]};var yr=(e,t)=>{if(e.length===0||t.length===0)return [];let r=new Set(e),n=new Set(t),[o,a]=r.size<n.size?[r,n]:[n,r];return [...o].filter(i=>a.has(i))};var oe=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var E=(e,t)=>{let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r};var Ar=async(e,t,r)=>{let n=E(e,t);return await Promise.all(n.map(r))};var k=e=>new Promise(t=>{setTimeout(t,e);});var Pr=async(e,t,r,{minChunkTimeMs:n}={})=>{let o=[],a=E(e,t);for(let[i,c]of a.entries()){let m=performance.now(),u=await r(c,i,a);if(o.push(u),n){let d=performance.now()-m;d<n&&await k(n-d);}}return o};var N=({number:e,min:t,max:r})=>(r<t&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:e,min:t,max:r}),e<t?t:e>r?r:e);var kr=async(e,t,r,{idealChunkDuration:n,maxChunkSize:o,minChunkDuration:a,minChunkSize:i,sleepTimeMs:c}={})=>{let m=[],u=0,d=0,b=t;for(;u<e.length;){let w=performance.now(),I=e.slice(u,u+b);u+=b;let M=await r(I,d);if(d+=1,m.push(M),c&&await k(c),n){let C=performance.now()-w;b=N({number:Math.round(b*(n/C)),min:i||1,max:o||200});}if(a){let C=performance.now()-w;C<a&&await k(a-C);}}return m};var jr=(e,t,r)=>{let o=[...new Intl.Segmenter(void 0,{granularity:r?.preserveOnBreak}).segment(e)].map(c=>c.segment),a=[],i="";for(let c of o)c.length>t?(i&&(a.push(i),i=""),a.push(...E([...c],t).map(m=>m.join("")))):i.length+c.length>t?(a.push(i),i=c):i+=c;return i&&a.push(i),a};var ae=new RegExp(/\p{C}/,"gu");var ie=/\p{Zs}/gu;var se=/\p{Zl}/gu;var ce=/\p{Zp}/gu;var me=e=>e.replace(ae," ").replace(ie," ").replace(se," ").replace(ce," ").trim().replace(/\s{2,}/g," ");var Wr=async e=>{if(typeof navigator>"u"||!navigator.clipboard)throw new Error("Clipboard API is not available in this environment");await navigator.clipboard.writeText(e);};var Jr=(e,t)=>e[t%e.length];var Xr=(e,{maxDepth:t=5}={})=>{console.dir(e,{depth:t});};var U=e=>D(e)?true:x(e)?/^[+-]?((\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?|0[xX][\dA-Fa-f]+|0[bB][01]+)$/.test(e):false;var ue=e=>Object.keys(e).filter(t=>!U(t));var L=(e,t)=>t.hasOwnProperty(e)&&t.propertyIsEnumerable(e);var pe=e=>{let t=[];return Object.values(e).forEach(r=>{L(r,e)&&!t.includes(r)&&t.push(e[r]);}),t};var sn=e=>e.replace(/[\\%_]/g,"\\$&");var mn=e=>{let t=e.indexOf("@");if(!(t===-1||t===e.length-1))return e.slice(t+1)};var pn=e=>e.replace(/[^a-zA-Z0-9]/g,"");var dn=e=>e[0];var gn=e=>Object.keys(e)[0];var yn=e=>Object.values(e)[0];var rt={B:1,KB:1024,MB:1048576,GB:1073741824,TB:1099511627776,PB:0x4000000000000,EB:1152921504606847e3},hn=(e,t="KB")=>`${Math.max(1,Math.round(e/rt[t]))}${t}`;var Sn=e=>{if(typeof document>"u")return;let t=document.cookie.split(";");for(let r of t){let[n,o]=r.trim().split("=");if(n===e)return decodeURIComponent(o)}};var nt=new Intl.DisplayNames(["en"],{type:"region"}),Cn=e=>{if(e.length!==2)throw new Error("Invalid country code, must be 2 characters long");return nt.of(e.toUpperCase())};var En=e=>{if(e.length!==2)throw new Error("Invalid country code, must be 2 characters long");let t=e.toUpperCase().split("").map(r=>127397+r.charCodeAt(0));return String.fromCodePoint(...t)};var Pn=Object.keys;var le=e=>{if(!e)return {};try{let t=e.startsWith("/"),r=new URL(e,t?"https://deverything.dev/":void 0);return Object.fromEntries(r.searchParams)}catch{return {}}};var Mn=(e,t)=>le(e)[t];var y=e=>e!=null&&!Number.isNaN(e);var jn=(e,t)=>e.reduce((r,n)=>{let o=n[t];return y(o)&&(r[o]||(r[o]=[]),r[o].push(n)),r},{});var ot=1,F=()=>ot++;var Ln=e=>Object.keys(e).length;var P=e=>e.length-1;var de=e=>e[P(e)];var Hn=(e,t)=>e.reduce((r,n)=>(y(n[t])&&(r[n[t]]=n),r),{});var W=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=g(e[n])?W({},e[n]):e[n];}),Object.keys(t).forEach(n=>{L(n,e)?r[n]=g(e[n])&&g(t[n])?W(e[n],t[n]):t[n]:r[n]=g(t[n])?W({},t[n]):t[n];}),r};var Jn=(e,t)=>e.concat(t.filter(r=>!e.includes(r)));var Xn=(e,t)=>{let r=[...e];for(let n=0;n<r.length;n++)if(t(r[n],n,r)){let o=r.splice(n,1);r.unshift(o[0]);break}return r};var Zn=(e,t,r)=>{if(!e.length||t>e.length||r>e.length)return e;let n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n};var eo=(e,t)=>{let r=[...e];for(let n=0;n<r.length;n++)if(t(r[n],n,r)){let o=r.splice(n,1)[0];r.push(o);break}return r};var ro=({value:e,max:t,min:r})=>e>=t?1:e<=r?0:(e-r)/(t-r);var ao=e=>me(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase();var so=(e,t)=>{let r={};for(let n in e)t.includes(n)||(r[n]=e[n]);return r};var mo=e=>{let{page:t,perPage:r}=e;return {skip:(t-1)*r,take:r}};var fe=(e,t)=>{let{coerceBoolean:r=false}=t??{},n=e.trim();if(n==="")return "";if(n==="NaN")return NaN;if(n==="Infinity")return 1/0;if(n==="-Infinity")return -1/0;let o=n.toLowerCase();if(o==="true")return true;if(o==="false")return false;if(o==="null")return null;if(o!=="undefined"){if(r){if(o==="yes"||o==="on"||o==="y")return true;if(o==="no"||o==="off"||o==="n")return false}return U(n)?Number(n):n}};var yo=(e,{separator:t=",",uniqueValues:r=false}={})=>e.split(t).map(n=>fe(n)).filter((n,o,a)=>H(n)?false:r?a.indexOf(n)===o:true);var ho=(e,t)=>{let r={};for(let n in e)t.includes(n)&&(r[n]=e[n]);return r};var So=(e,t)=>{let r={};for(let n in e)t.includes(e[n])&&(r[n]=e[n]);return r};var Do=(e,t)=>e.reduce((r,n)=>(y(n[t])&&r.push(n[t]),r),[]);var No=(e,t,r)=>{let n,o=new Promise((a,i)=>{n=setTimeout(()=>i(r??new Error("Promise timed out")),t);});return Promise.race([e(),o]).finally(()=>{clearTimeout(n);})};var Oo=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0));var l=({min:e=-100,max:t=100}={})=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)),ge=()=>BigInt(l()),Io=({min:e=1,max:t}={})=>l({min:e,max:t}),Mo=({min:e,max:t=-1}={})=>l({min:e,max:t}),ko=()=>l({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),Ro=()=>l({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),Bo=()=>l()+"%";var K=()=>String.fromCharCode(l({min:97,max:122}));var be=new RegExp(/\p{L}/,"gu");var Vo=e=>e.replace(be,()=>K());var $o=e=>{let t=new Set;return JSON.stringify(e,(r,n)=>(t.add(r),n)),JSON.stringify(e,Array.from(t).sort())};var Wo=async e=>{let t=[];for(let r of e)if(h(r))t.push(await r());else throw new Error(`seriesAsync: invalid type received "${typeof r}", make sure all items are functions, not promises, otherwise they would've been executed already`);return t};var Yo=(e,t,r)=>{let n=t.split("."),o=(a,i,c)=>{let m=i[0];if(i.length===1){a[m]=c;return}(!a[m]||!g(a[m]))&&(a[m]={}),o(a[m],i.slice(1),c);};o(e,n,r);};var Zo=(e,t={})=>{let r=e.startsWith("/"),n=new URL(e,r?"https://deverything.dev/":void 0);return Object.entries(t).forEach(([o,a])=>{a!=null&&(g(a)?n.searchParams.set(o,JSON.stringify(a)):n.searchParams.set(o,a.toString()));}),r?n.pathname+n.search+n.hash:n.toString()};var ea=e=>{let t=[...e];for(let r=t.length-1;r>0;r--){let n=Math.floor(Math.random()*(r+1));[t[r],t[n]]=[t[n],t[r]];}return t};var ye=e=>e instanceof Promise;var oa=e=>{let t=false,r;return ()=>{if(t)return r;let n=e();return ye(n)?(t=true,r=n.then(o=>o,o=>{throw t=false,o}),r):(t=true,r=n,n)}};var ia=e=>{let{skip:t,take:r}=e,n=r;return {page:Math.floor(t/r)+1,perPage:n}};var ca=(e,t,r)=>{let{direction:n="asc",field:o="id"}=r??{};if(t.length===0)return [...e];let a=new Map(t.map((c,m)=>[c,m])),i=n==="asc"?t.length:-1;return [...e].sort((c,m)=>{let u=(a.get(c[o])??i)-(a.get(m[o])??i);return n==="asc"?u:-u})};var xe=()=>{let e=[],t=[],r=function(n,o){return e[0]===o?"[Circular ~]":"[Circular ~."+t.slice(0,e.indexOf(o)).join(".")+"]"};return function(n,o){if(e.length>0){let a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?t.splice(a,1/0,n):t.push(n),e.indexOf(o)!==-1&&(o=r.call(this,n,o));}else e.push(o);return o}};var la=e=>JSON.stringify(e,xe(),2);var ga=(e,t)=>{if(!T(e))return e;let r=e.reduce((n,o)=>(o!==t&&n.push(o),n),[]);return r.length===e.length&&r.push(t),r};var xa=(e,t,{ellipsis:r,position:n}={})=>{if(r||(r="..."),n||(n="end"),!ne(t))return e;let o=[...e],a=r.length;if(o.length<=t)return e;switch(n){case "start":{let i=t-a;return r+o.slice(-i).join("")}case "middle":{let i=Math.ceil((t-a)/2),c=o.length-Math.floor((t-a)/2);return o.slice(0,i).join("")+r+o.slice(c).join("")}case "end":default:return o.slice(0,t-a).join("")+r}};var Ta=e=>[...new Set(e)];var at=(e,t)=>{let r=p(e),n=p(t.startDate),o=p(t.endDate);return !r||!n||!o?false:r>=n&&r<o},Ca=at;var Ea=e=>Object.prototype.toString.call(e)==="[object Boolean]";var he=()=>typeof window>"u";var V=()=>!he();var Ma=V;var h=e=>{let t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"};var _a=e=>y(e)&&y(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e);var Fa=e=>x(e)&&/\S+@\S+\.\S+/.test(e);var Va=e=>Object.prototype.toString.call(e)==="[object File]";var G=(e,{referenceDate:t}={})=>{let r=p(e),n=t?p(t):new Date;if(!n)throw new Error(`[isFutureDate] Invalid referenceDate: ${t}`);return !!r&&r>n};var Wa=(e,t)=>e===P(t);var Ya=e=>x(e)&&e.trim().length>0;var qa=e=>/^\d+$/.test(e)&&parseInt(e)>0;var J=(e,{referenceDate:t}={})=>{let r=p(e),n=t?p(t):new Date;if(!n)throw new Error(`[isPastDate] Invalid referenceDate: ${t}`);return !!r&&r<n};var ri=()=>V()&&window.matchMedia("(display-mode: standalone)").matches;var it=typeof Symbol=="function"&&Symbol.for,st=it?Symbol.for("react.element"):60103,oi=e=>e.$$typeof===st;var ii=e=>Object.prototype.toString.call(e)==="[object RegExp]";var Te=(e,t)=>{if(e===t)return true;if(T(e)&&T(t))return e.length!==t.length?false:e.every((r,n)=>Te(r,t[n]));if(g(e)&&g(t)){let r=Object.keys(e);return r.length!==Object.keys(t).length?false:r.every(n=>Te(e[n],t[n]))}return h(e)&&h(t)?e.toString()===t.toString():false};var di=(e,t)=>{let r=p(e,{asUTC:true}),n=p(t,{asUTC:true});return !r||!n?false:r.getUTCFullYear()===n.getUTCFullYear()&&r.getUTCMonth()===n.getUTCMonth()&&r.getUTCDate()===n.getUTCDate()};var gi=e=>e.length<2?true:e[0]!==1?false:e.slice(1).every((t,r)=>t===e[r-1]+1);var yi=e=>e.indexOf(" ")>=0;var Ti=e=>{let t=new Date(e);return j(t)};var ct=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"),Ai=e=>!!e&&ct.test(e);var Di=e=>/^[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(e);var Se=(e,t)=>h(t)?t(e):e[t];function Ii({dateBuckets:e,items:t,unit:r,accessor:n}){let a=(d=>{switch(d){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),i=e.map(d=>{let b=p(d);if(!b)throw new Error(`[groupByDateBucket] Invalid dateBucket: ${d}`);return {timestamp:b.getTime(),normalizedKey:b.toISOString()}}),c={};i.forEach(({normalizedKey:d})=>{c[d]=[];});let m=d=>n?Se(d,n):d,u=0;return t.forEach(d=>{let b=m(d);if(!b)return;let w=p(b);if(!w)return;let I=w.getTime();for(;u<i.length;){let M=i[u].timestamp,C=u<i.length-1?i[u+1].timestamp:M+a;if(I>=M&&I<C){c[i[u].normalizedKey].push(d);break}if(I<M)break;u++;}}),c}var Ri=e=>{let t=new Date,r=p(e);if(!r)return false;let n=t.getFullYear()-r.getFullYear();if(n>18)return true;if(n<18)return false;if(n===18){if(t.getMonth()>r.getMonth())return true;if(t.getMonth()<r.getMonth())return false;if(t.getMonth()===r.getMonth()){if(t.getDate()>=r.getDate())return true;if(t.getDate()<r.getDate())return false}}return false};var Ae=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate());var _i=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,1)};var Li=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay())};var Ki=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay())};var $i=()=>Ae(new Date);var zi=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)};var Gi=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));var Yi=()=>{let e=new Date;return e.setUTCDate(e.getUTCDate()+1),new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))};var qi=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-1)};var Ce=e=>e.toLowerCase().replace(/[-_\s]+(.)/g,(t,r)=>r.toUpperCase()).replace(/^(.)/,t=>t.toUpperCase());var ts=e=>{let t=Ce(e);return t.charAt(0).toLowerCase()+t.slice(1)};var ns=e=>Object.entries(e).reduce((t,[r,n])=>(n!==void 0&&t.push(`${r}=${n}`),t),[]).join("; ")+";";var as=e=>Object.entries(e).map(([t,r])=>`${Array.isArray(r)?r.length:r} ${t}`).join(", ");var cs=(e,t)=>`${p(e)?.toISOString()} \u2B95 ${p(t)?.toISOString()}`;var De=(e,t)=>`[${N({number:e+1,min:1,max:t})}/${t}]`;var Ee=(e,t,r)=>e>t&&e<r;var Y=[{divisor:1e-9,suffix:"n"},{divisor:1e-6,suffix:"\u03BC"},{divisor:.001,suffix:"m"}],gs=(e,{compact:t,maxDigits:r,percentage:n,unit:o=""}={})=>{if(n)return `${((D(e)?e:0)*100).toFixed(r||0)}%`;if(t&&Ee(Math.abs(e),0,1)){let i=Math.abs(e),c=i<1e-6?Y[0]:i<.001?Y[1]:Y[2],m=e/c.divisor;return `${Intl.NumberFormat("en",{maximumSignificantDigits:r??3}).format(m)}${c.suffix}${o}`}return `${Intl.NumberFormat("en",{notation:t?"compact":"standard",maximumSignificantDigits:r}).format(e)}${o}`};var mt=(e,{digits:t}={})=>`${N({number:e*100,min:0,max:100}).toFixed(t||0)}`,Ne=(e,{digits:t}={})=>`${mt(e,{digits:t})}%`;var X=new Map,ut=e=>{if(e<60)return `~${Math.ceil(e)}s`;let t=Math.floor(e/60),r=Math.ceil(e%60);if(t<60)return r>0?`~${t}m ${r}s`:`~${t}m`;let n=Math.floor(t/60),o=t%60;return o>0?`~${n}h ${o}m`:`~${n}h`},pt=(e,t,r)=>{let n=Date.now(),o=X.get(e);if(!o)return X.set(e,{startTime:n,startIndex:t,lastTime:n,lastIndex:t}),null;o.lastTime=n,o.lastIndex=t;let a=t-o.startIndex,i=(n-o.startTime)/1e3;if(a<=0||i<.1)return null;let c=a/i,m=r-(t+1);if(m<=0)return X.delete(e),null;let u=m/c;return ut(u)},Ss=(e,t,{progressId:r}={})=>{let n=`${De(e,t)} ${Ne(e/t)}`;if(!r)return n;let o=pt(r,e,t);return o?`${n} (${o} remaining)`:n};var Cs=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Es=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var Ps=e=>e.reduce((r,n)=>r+n,0)/e.length;var ws=e=>{if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[,r]=t.split("e"),n=parseInt(r,10),[o]=t.split("e"),a=o.includes(".")?o.split(".")[1].length:0;return Math.max(0,a-n)}return t.includes(".")?t.split(".")[1].length:0};var Ms=(e,t,r)=>e>=t&&e<=r;var Pe=e=>e.length?Math.max(...e):0;var Oe=e=>Math.min(...e);var js=e=>e.reduce((t,r)=>t*r,1);var we=(e,t,r)=>(e-t)/(r-t);var Vs=e=>{let t=Oe(e),r=Pe(e);return e.map(n=>we(n,t,r))};var $s=(e,t)=>{if(e<0||t<0||t===0&&e===0)return 0;if(t===0&&e!==0)return -1;if(t!==0&&e===0)return 1;let r=(t-e)/e;return parseFloat(r.toFixed(4))};var Ie=e=>e.reduce((t,r)=>t+r,0);var Gs=({startDate:e,endDate:t})=>{let r=p(e),n=p(t);if(!r||!n)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:n}};var lt=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],dt=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],ft=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],gt=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],Me=[...lt,...dt,...ft,...gt];var s=(e,{weights:t}={})=>{if(t&&t.length===e.length){let r=Ie(t),n=Math.random()*r;for(let o=0;o<t.length;o++)if(n-=t[o],n<=0)return e[o];return de(e)}return e[l({min:0,max:P(e)})]};var nc=()=>s(Me);var bt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),sc=({length:e=6}={})=>{if(e<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return f(e,()=>s(bt)).join("")};var ke=()=>s([true,false]);var xt=(e=new Date)=>q(e,31536e7),ht=(e=new Date)=>q(e,-31536e7),q=(e,t)=>new Date(e.getTime()+t),S=({startDate:e,endDate:t}={})=>{let r=p(e),n=p(t);r&&n&&r>n&&console.warn("randomDate: startDate must be before endDate");let o=r||ht(n),a=n||xt(r);return new Date(l({min:o.getTime(),max:a.getTime()}))},gc=({startDate:e,endDate:t})=>(e=e||new Date(-864e13),t=t||new Date(864e13),S({startDate:e,endDate:t})),bc=({startDate:e,endDate:t}={})=>{e&&J(e)&&console.warn("randomFutureDate: startDate must be in the future"),t&&J(t)&&console.warn("randomFutureDate: endDate must be in the future");let r=p(e)||q(new Date,5*6e4);return S({startDate:r,endDate:t})},yc=({startDate:e,endDate:t}={})=>{e&&G(e)&&console.warn("randomPastDate: startDate must be in the past"),t&&G(t)&&console.warn("randomPastDate: endDate must be in the past");let r=p(t)||new Date;return S({startDate:e,endDate:r})},xc=()=>{let e=S();return {endDate:S({startDate:e}),startDate:e}};var A=({length:e=10}={})=>f(e,()=>K()).join("");var Re=()=>Symbol(A());var v=()=>s([ke(),A(),l(),S(),ge(),Re()]);var Be=()=>f(l({min:1,max:5}),v);var je=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var Tt=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],St=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],At=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],Ct=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],_e=[...Tt,...St,...At,...Ct];var Fc=()=>s(_e);var Ue=["IE1234567T","GB123456789","XI123456789"],Le=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var zc=()=>({name:s(Le),vatRegNumber:s(Ue)});var Jc=16,Z=(e=-9,t=9,r)=>{let n=Math.random()*(t-e)+e;return y(r)?parseFloat(n.toFixed(r)):n};var qc=()=>({lat:Dt(),lng:Et()}),Dt=()=>Z(-90,90),Et=()=>Z(-180,180);var Fe=["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 Ke=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],Ve=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],R=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Andrew","Angela","Anna","Anthony","Benjamin","Brandon","Brian","Caroline","Catherine","Charles","Charlotte","Christina","Christopher","Daniel","David","Diana","Edward","Elizabeth","Emily","Emma","Esther","Ethan","George","Grace","Hannah","Henry","Isabella","Jack","James","Jennifer","Jessica","John","Jonathan","Joseph","Katherine","Laura","Lucas","Margaret","Maria","Matthew","Michael","Nathan","Nicholas","Olivia","Patricia","Patrick","Peter","Rachel","Rebecca","Richard","Robert","Ruby","Samuel","Sarah","Sebastian","Sophia","Stephen","Thomas","Victoria","William"],B=["Adams","Allen","Anderson","Baker","Barnes","Bell","Bennett","Brooks","Brown","Butler","Campbell","Carter","Clark","Collins","Cooper","Cox","Crawford","Davis","Edwards","Evans","Fisher","Foster","Garcia","Green","Griffin","Hall","Harris","Hayes","Henderson","Hill","Howard","Hughes","Jackson","Johnson","Jones","Kelly","King","Lee","Lewis","Long","Martin","Martinez","Miller","Mitchell","Moore","Morgan","Morris","Murphy","Nelson","Parker","Perry","Peterson","Phillips","Reed","Roberts","Robinson","Rogers","Ross","Russell","Scott","Smith","Stewart","Sullivan","Taylor","Thomas","Thompson","Turner","Walker","Ward","Watson","White","Williams","Wilson","Wood","Wright","Young"],Nt=["\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"],Pt=["\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"],Ot=["\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"],wt=["\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"],It=["\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"],Mt=["\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"],ve=[...R,...Nt,...Ot,...It],$e=[...B,...Pt,...wt,...Mt];var He=({suffix:e}={})=>(s(R)+"."+s(B)).toLowerCase()+F()+(e||"");var cm=({handle:e,handleSuffix:t}={})=>`${e||He({suffix:t})}@${s(Fe)}`;var ze=["\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}"],We=["!","@","#","$","%","^","&","*"];var dm=()=>s(ze);var bm=()=>s([void 0,null,NaN,1/0]);var Tm=e=>{let t=ue(e);return s(t)};var Dm=e=>{let t=pe(e);return s(t)};var Q=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],ee=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],kt=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],Rt=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],Bt=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Ge=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Je=[...Q,...ee,...kt,...Rt,...Bt];var O=()=>s(Je),Ye=()=>s(ee),wm=()=>s(Q);var Xe=({maxCharacters:e=200,minCharacters:t,minWords:r=8,maxWords:n=16}={})=>{let o=[],a=l({min:r,max:n});for(let i=0;i<a||t!==void 0&&o.join(" ").length<t;i++)o.push(O());return oe(o.join(" ").slice(0,e-1)+".")};var jt=["png","jpg","jpeg","gif","svg","webp"],Lm=({name:e,extension:t}={})=>{if(typeof File>"u")return;let r=t||s(jt);return new File([Xe()],`${e||O()}.${r}`,{type:`image/${r}`})};var $=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Hm=()=>"#"+f(6,()=>s($)).join("");var Jm=()=>s($);var Zm=()=>s(Ge);var ru=()=>s(je);var iu=()=>f(4,()=>l({min:0,max:255}).toString()).join(".");var uu=()=>s([...Ke,...Ve]),pu=()=>s(ve),lu=()=>s($e),du=()=>s(R)+" "+s(B);var yu=({length:e=6}={})=>{if(e<1)throw new Error("randomNumericCode: Length must be greater than 0.");return f(e,(t,r)=>l({min:r?0:1,max:9})).join("")};var Eu=({maxDepth:e=5,circular:t=false}={})=>{let r=(o=0)=>o>=e?{}:f(l({min:1,max:5}),Ye).reduce((i,c)=>{let m=s(["value","object","array"]);if(m==="object"){let u=r(o+1);i[c]=u,t&&s([true,false],{weights:[.2,.8]})&&(u.circular=u);}else if(m==="array"){let u=Be();i[c]=u;}else {let u=v();i[c]=u;}return i},{});return r()};var Ou=e=>s(Object.keys(e));var Mu=e=>s(Object.values(e));var Uu=({minChars:e=9,maxChars:t=32}={})=>A({length:1}).toUpperCase()+A({length:l({min:e,max:t})-3})+s(We)+l({min:1,max:9});var Vu=({depth:e=3}={})=>f(e,O).join("/");var qe=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Wu=()=>s(qe);var Yu=()=>{let e=F().toString().padStart(15,"0"),t=e.substring(0,12);return `00000000-0000-1000-8${e.substring(12,15)}-${t}`};var qu=e=>new URLSearchParams({input:JSON.stringify(e)});var Qu=()=>{};
|
|
2
|
+
exports.JS_MAX_DIGITS=Jc;exports.array=f;exports.arrayDiff=gr;exports.arrayIntersection=yr;exports.average=Ps;exports.capitalize=oe;exports.chunkArray=E;exports.chunkText=jr;exports.chunkedAll=Ar;exports.chunkedAsync=Pr;exports.chunkedDynamic=kr;exports.clamp=N;exports.cleanSpaces=me;exports.copyToClipboard=Wr;exports.countDecimals=ws;exports.cyclicalItem=Jr;exports.dir=Xr;exports.enumKeys=ue;exports.enumValues=pe;exports.escapeSqlLikePattern=sn;exports.extractEmailDomain=mn;exports.filterAlphanumeric=pn;exports.first=dn;exports.firstKey=gn;exports.firstValue=yn;exports.formatCamelCase=ts;exports.formatCookies=ns;exports.formatCount=as;exports.formatDateRange=cs;exports.formatFileSize=hn;exports.formatIndexProgress=De;exports.formatNumber=gs;exports.formatPascalCase=Ce;exports.formatPercentage=Ne;exports.formatPercentageNumber=mt;exports.formatProgress=Ss;exports.formatTrpcInputQueryString=qu;exports.getCookieByName=Sn;exports.getCountryName=Cn;exports.getDateRangeSeries=sr;exports.getDateSeriesRange=ur;exports.getFlagEmoji=En;exports.getKeys=Pn;exports.getUrlSearchParam=Mn;exports.getUrlSearchParams=le;exports.groupByDateBucket=Ii;exports.groupByKey=jn;exports.incrementalId=F;exports.isArray=T;exports.isArrayIncluded=lr;exports.isBetween=Ms;exports.isBetweenDates=at;exports.isBigInt=qt;exports.isBigIntString=Zt;exports.isBoolean=Ea;exports.isBrowser=Ma;exports.isBuffer=_a;exports.isClient=V;exports.isEmail=Fa;exports.isEmpty=te;exports.isEmptyArray=Ze;exports.isEmptyObject=Qe;exports.isEmptyString=H;exports.isEven=Jt;exports.isFile=Va;exports.isFunction=h;exports.isFutureDate=G;exports.isInDateRange=Ca;exports.isInt=_;exports.isJsDate=j;exports.isKey=L;exports.isLastIndex=Wa;exports.isNegativeInt=Xt;exports.isNotEmptyString=Ya;exports.isNumber=D;exports.isNumeric=U;exports.isNumericId=qa;exports.isObject=g;exports.isOdd=Yt;exports.isOutside=re;exports.isOutsideInt4=Qt;exports.isOver18=Ri;exports.isPWA=ri;exports.isPastDate=J;exports.isPositiveInt=ne;exports.isPromise=ye;exports.isReactElement=oi;exports.isRegExp=ii;exports.isSame=Te;exports.isSameUTCDay=di;exports.isSequence=gi;exports.isServer=he;exports.isSpacedString=yi;exports.isStrictlyBetween=Ee;exports.isString=x;exports.isStringDate=Ti;exports.isURL=Ai;exports.isUUID=Di;exports.isValue=y;exports.keysLength=Ln;exports.last=de;exports.lastIndex=P;exports.mapByKey=Hn;exports.max=Pe;exports.merge=W;exports.mergeArrays=Jn;exports.min=Oe;exports.moveToFirst=Xn;exports.moveToIndex=Zn;exports.moveToLast=eo;exports.multiply=js;exports.noop=Qu;exports.normaliseArray=Vs;exports.normaliseNumber=we;exports.normalizeNumber=ro;exports.normalizeString=ao;exports.omit=so;exports.paginationToSkipTake=mo;exports.parseArray=yo;exports.parseDate=p;exports.parsePrimitive=fe;exports.percentageChange=$s;exports.pickObjectKeys=ho;exports.pickObjectValues=So;exports.pluck=Do;exports.prismaDateRange=Gs;exports.promiseWithTimeout=No;exports.randomAddress=nc;exports.randomAlphaNumericCode=sc;exports.randomArray=Be;exports.randomArrayItem=s;exports.randomBankAccount=Fc;exports.randomBigInt=ge;exports.randomBool=ke;exports.randomChar=K;exports.randomCompany=zc;exports.randomCoords=qc;exports.randomDate=S;exports.randomDateRange=xc;exports.randomEmail=cm;exports.randomEmoji=dm;exports.randomEmptyValue=bm;exports.randomEnumKey=Tm;exports.randomEnumValue=Dm;exports.randomFile=Lm;exports.randomFirstName=pu;exports.randomFloat=Z;exports.randomFormattedPercentage=Bo;exports.randomFullName=du;exports.randomFutureDate=bc;exports.randomHandle=He;exports.randomHexColor=Hm;exports.randomHexValue=Jm;exports.randomHtmlColorName=Zm;exports.randomIBAN=ru;exports.randomIP=iu;exports.randomInt=l;exports.randomLastName=lu;exports.randomLat=Dt;exports.randomLng=Et;exports.randomMaxDate=gc;exports.randomMaxInt=Ro;exports.randomMaxSafeInt=ko;exports.randomName=uu;exports.randomNegativeInt=Mo;exports.randomNoun=Ye;exports.randomNumericCode=yu;exports.randomObject=Eu;exports.randomObjectKey=Ou;exports.randomObjectValue=Mu;exports.randomParagraph=Xe;exports.randomPassword=Uu;exports.randomPastDate=yc;exports.randomPath=Vu;exports.randomPhoneNumber=Wu;exports.randomPositiveInt=Io;exports.randomString=A;exports.randomSymbol=Re;exports.randomUUID=Yu;exports.randomValue=v;exports.randomVerb=wm;exports.randomWord=O;exports.removeUndefinedValues=Oo;exports.scrambleText=Vo;exports.serialize=$o;exports.seriesAsync=Wo;exports.setObjectPath=Yo;exports.setUrlSearchParams=Zo;exports.shuffle=ea;exports.singleton=oa;exports.skipTakeToPagination=ia;exports.sleep=k;exports.sortBySortdedKeys=ca;exports.startOfDay=Ae;exports.startOfNextMonth=_i;exports.startOfNextWeek=Li;exports.startOfThisWeek=Ki;exports.startOfToday=$i;exports.startOfTomorrow=zi;exports.startOfUTCDay=Gi;exports.startOfUTCTomorrow=Yi;exports.startOfYesterday=qi;exports.stringToCSSUnicode=Cs;exports.stringToUnicode=Es;exports.stringify=la;exports.sum=Ie;exports.toggleArrayValue=ga;exports.truncate=xa;exports.uniqueValues=Ta;return exports;})({});//# sourceMappingURL=index.global.js.map
|
|
3
3
|
//# sourceMappingURL=index.global.js.map
|