deverything 4.1.0 → 4.2.1
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 +68 -13
- package/dist/index.d.ts +68 -13
- 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
|
@@ -778,8 +778,23 @@ declare const randomVerb: () => string;
|
|
|
778
778
|
|
|
779
779
|
declare const formatTrpcInputQueryString: (input: PlainObject) => URLSearchParams;
|
|
780
780
|
|
|
781
|
+
/**
|
|
782
|
+
* Checks if the provided argument is an array.
|
|
783
|
+
*
|
|
784
|
+
* @template T - The type of elements in the array.
|
|
785
|
+
* @param arg - The value to check.
|
|
786
|
+
* @returns True if the argument is an array, false otherwise.
|
|
787
|
+
*/
|
|
781
788
|
declare const isArray: <T>(arg?: any) => arg is T[];
|
|
782
789
|
|
|
790
|
+
/**
|
|
791
|
+
* Checks if all elements of the first array are included in the second array.
|
|
792
|
+
*
|
|
793
|
+
* @template T - The type of elements in the arrays.
|
|
794
|
+
* @param arr1 - The array whose elements are to be checked for inclusion.
|
|
795
|
+
* @param arr2 - The array to check against.
|
|
796
|
+
* @returns True if every element in arr1 is included in arr2, false otherwise.
|
|
797
|
+
*/
|
|
783
798
|
declare const isArrayIncluded: <T>(arr1: T[], arr2: T[]) => boolean;
|
|
784
799
|
|
|
785
800
|
/**
|
|
@@ -788,14 +803,17 @@ declare const isArrayIncluded: <T>(arr1: T[], arr2: T[]) => boolean;
|
|
|
788
803
|
* @param dateRange The date range to check against
|
|
789
804
|
* @returns true if the date is between the start and end dates (includes startDate, excludes endDate)
|
|
790
805
|
*
|
|
806
|
+
* @alias isInDateRange
|
|
807
|
+
*
|
|
791
808
|
* @example
|
|
792
809
|
* isBetweenDates("2023-06-15", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true
|
|
793
810
|
* isBetweenDates("2023-01-01", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true (includes start)
|
|
794
811
|
* isBetweenDates("2023-12-31", { startDate: "2023-01-01", endDate: "2023-12-31" }) // false (excludes end)
|
|
795
812
|
*/
|
|
796
813
|
declare const isBetweenDates: (date: DateLike, dateRange: DateRange) => boolean;
|
|
814
|
+
declare const isInDateRange: (date: DateLike, dateRange: DateRange) => boolean;
|
|
797
815
|
|
|
798
|
-
declare const isBoolean: (arg
|
|
816
|
+
declare const isBoolean: (arg?: any) => arg is boolean;
|
|
799
817
|
|
|
800
818
|
declare const isBrowser: () => boolean;
|
|
801
819
|
|
|
@@ -815,13 +833,24 @@ declare const isFile: (arg?: any) => arg is File;
|
|
|
815
833
|
/**
|
|
816
834
|
* @returns true if the argument can be called like a function -> fn() or await fn()
|
|
817
835
|
*/
|
|
818
|
-
declare const isFunction: (arg
|
|
836
|
+
declare const isFunction: (arg?: any) => arg is Function;
|
|
819
837
|
|
|
820
838
|
declare const isFutureDate: (arg: DateLike, { referenceDate }?: {
|
|
821
839
|
referenceDate?: DateLike;
|
|
822
840
|
}) => boolean;
|
|
823
841
|
|
|
824
|
-
|
|
842
|
+
/**
|
|
843
|
+
* Checks if the provided argument is a valid JavaScript Date object.
|
|
844
|
+
*
|
|
845
|
+
* @param arg - The value to check.
|
|
846
|
+
* @returns True if the argument is a Date object and is valid (not NaN), otherwise false.
|
|
847
|
+
*
|
|
848
|
+
* @example
|
|
849
|
+
* isJsDate(new Date()); // true
|
|
850
|
+
* isJsDate("2023-01-01"); // false
|
|
851
|
+
* isJsDate(new Date("invalid-date")); // false
|
|
852
|
+
*/
|
|
853
|
+
declare const isJsDate: (arg?: any) => arg is Date;
|
|
825
854
|
|
|
826
855
|
declare const isKey: <T extends PlainObject>(key: Key, // cannot use PlainKey here because it does not include symbol (keyof T does)
|
|
827
856
|
obj: T) => key is keyof T;
|
|
@@ -830,13 +859,13 @@ declare const isLastIndex: (index: number, array: any[]) => boolean;
|
|
|
830
859
|
|
|
831
860
|
declare const isNotEmptyString: (arg: any) => boolean;
|
|
832
861
|
|
|
833
|
-
declare const isInt: (arg
|
|
834
|
-
declare const isEven: (arg
|
|
835
|
-
declare const isOdd: (arg
|
|
836
|
-
declare const isPositiveInt: (arg
|
|
837
|
-
declare const isNegativeInt: (arg
|
|
838
|
-
declare const isNumber: (arg
|
|
839
|
-
declare const isBigInt: (arg
|
|
862
|
+
declare const isInt: (arg?: any) => boolean;
|
|
863
|
+
declare const isEven: (arg?: any) => boolean;
|
|
864
|
+
declare const isOdd: (arg?: any) => boolean;
|
|
865
|
+
declare const isPositiveInt: (arg?: any) => boolean;
|
|
866
|
+
declare const isNegativeInt: (arg?: any) => boolean;
|
|
867
|
+
declare const isNumber: (arg?: any) => arg is number;
|
|
868
|
+
declare const isBigInt: (arg?: any) => arg is BigInt;
|
|
840
869
|
declare const isBigIntString: (arg: string) => boolean;
|
|
841
870
|
declare const isOutsideInt4: (num: number) => boolean;
|
|
842
871
|
|
|
@@ -859,7 +888,7 @@ declare const isPastDate: (arg: DateLike, { referenceDate }?: {
|
|
|
859
888
|
referenceDate?: DateLike;
|
|
860
889
|
}) => boolean;
|
|
861
890
|
|
|
862
|
-
declare const isPromise: (arg
|
|
891
|
+
declare const isPromise: (arg?: unknown) => arg is Promise<unknown>;
|
|
863
892
|
|
|
864
893
|
declare const isPWA: () => boolean;
|
|
865
894
|
|
|
@@ -869,6 +898,18 @@ declare const isRegExp: (arg: any) => arg is RegExp;
|
|
|
869
898
|
|
|
870
899
|
declare const isSame: (value1: any, value2: any) => boolean;
|
|
871
900
|
|
|
901
|
+
/**
|
|
902
|
+
* Checks if two dates are on the same UTC day (year, month, day).
|
|
903
|
+
* Returns false if either value is not a valid Date.
|
|
904
|
+
*
|
|
905
|
+
* @example
|
|
906
|
+
* isSameUTCDay("2023-06-15", "2023-06-15") // true
|
|
907
|
+
* isSameUTCDay("2023-06-15", "2023-06-16") // false
|
|
908
|
+
* isSameUTCDay("2023-06-15", "2023-06-15T00:00:00Z") // true
|
|
909
|
+
* isSameUTCDay("2023-06-15", "2023-06-15T00:00:00.000Z") // true
|
|
910
|
+
*/
|
|
911
|
+
declare const isSameUTCDay: (date1Input: DateLike, date2Input: DateLike) => boolean;
|
|
912
|
+
|
|
872
913
|
/**
|
|
873
914
|
* Check if an array of numbers is a sequence
|
|
874
915
|
* @example
|
|
@@ -883,7 +924,7 @@ declare const isServer: () => boolean;
|
|
|
883
924
|
|
|
884
925
|
declare const isSpacedString: (s: string) => boolean;
|
|
885
926
|
|
|
886
|
-
declare const isString: (arg
|
|
927
|
+
declare const isString: (arg?: any) => arg is string;
|
|
887
928
|
|
|
888
929
|
declare const isStringDate: (arg: string) => boolean;
|
|
889
930
|
|
|
@@ -891,6 +932,20 @@ declare const isURL: (arg: string) => boolean;
|
|
|
891
932
|
|
|
892
933
|
declare const isUUID: (arg: string) => boolean;
|
|
893
934
|
|
|
935
|
+
/**
|
|
936
|
+
* Checks if the provided argument is not null, undefined, or NaN.
|
|
937
|
+
*
|
|
938
|
+
* @template T
|
|
939
|
+
* @param {Maybe<T>} arg - The value to check.
|
|
940
|
+
* @returns {arg is T} True if the argument is a value (not null, undefined, or NaN), otherwise false.
|
|
941
|
+
*
|
|
942
|
+
* @example
|
|
943
|
+
* isValue(0); // true
|
|
944
|
+
* isValue(""); // true
|
|
945
|
+
* isValue(null); // false
|
|
946
|
+
* isValue(undefined); // false
|
|
947
|
+
* isValue(NaN); // false
|
|
948
|
+
*/
|
|
894
949
|
declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
|
|
895
950
|
|
|
896
|
-
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 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, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, 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, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, 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, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
|
951
|
+
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 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, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, 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, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, 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, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.d.ts
CHANGED
|
@@ -778,8 +778,23 @@ declare const randomVerb: () => string;
|
|
|
778
778
|
|
|
779
779
|
declare const formatTrpcInputQueryString: (input: PlainObject) => URLSearchParams;
|
|
780
780
|
|
|
781
|
+
/**
|
|
782
|
+
* Checks if the provided argument is an array.
|
|
783
|
+
*
|
|
784
|
+
* @template T - The type of elements in the array.
|
|
785
|
+
* @param arg - The value to check.
|
|
786
|
+
* @returns True if the argument is an array, false otherwise.
|
|
787
|
+
*/
|
|
781
788
|
declare const isArray: <T>(arg?: any) => arg is T[];
|
|
782
789
|
|
|
790
|
+
/**
|
|
791
|
+
* Checks if all elements of the first array are included in the second array.
|
|
792
|
+
*
|
|
793
|
+
* @template T - The type of elements in the arrays.
|
|
794
|
+
* @param arr1 - The array whose elements are to be checked for inclusion.
|
|
795
|
+
* @param arr2 - The array to check against.
|
|
796
|
+
* @returns True if every element in arr1 is included in arr2, false otherwise.
|
|
797
|
+
*/
|
|
783
798
|
declare const isArrayIncluded: <T>(arr1: T[], arr2: T[]) => boolean;
|
|
784
799
|
|
|
785
800
|
/**
|
|
@@ -788,14 +803,17 @@ declare const isArrayIncluded: <T>(arr1: T[], arr2: T[]) => boolean;
|
|
|
788
803
|
* @param dateRange The date range to check against
|
|
789
804
|
* @returns true if the date is between the start and end dates (includes startDate, excludes endDate)
|
|
790
805
|
*
|
|
806
|
+
* @alias isInDateRange
|
|
807
|
+
*
|
|
791
808
|
* @example
|
|
792
809
|
* isBetweenDates("2023-06-15", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true
|
|
793
810
|
* isBetweenDates("2023-01-01", { startDate: "2023-01-01", endDate: "2023-12-31" }) // true (includes start)
|
|
794
811
|
* isBetweenDates("2023-12-31", { startDate: "2023-01-01", endDate: "2023-12-31" }) // false (excludes end)
|
|
795
812
|
*/
|
|
796
813
|
declare const isBetweenDates: (date: DateLike, dateRange: DateRange) => boolean;
|
|
814
|
+
declare const isInDateRange: (date: DateLike, dateRange: DateRange) => boolean;
|
|
797
815
|
|
|
798
|
-
declare const isBoolean: (arg
|
|
816
|
+
declare const isBoolean: (arg?: any) => arg is boolean;
|
|
799
817
|
|
|
800
818
|
declare const isBrowser: () => boolean;
|
|
801
819
|
|
|
@@ -815,13 +833,24 @@ declare const isFile: (arg?: any) => arg is File;
|
|
|
815
833
|
/**
|
|
816
834
|
* @returns true if the argument can be called like a function -> fn() or await fn()
|
|
817
835
|
*/
|
|
818
|
-
declare const isFunction: (arg
|
|
836
|
+
declare const isFunction: (arg?: any) => arg is Function;
|
|
819
837
|
|
|
820
838
|
declare const isFutureDate: (arg: DateLike, { referenceDate }?: {
|
|
821
839
|
referenceDate?: DateLike;
|
|
822
840
|
}) => boolean;
|
|
823
841
|
|
|
824
|
-
|
|
842
|
+
/**
|
|
843
|
+
* Checks if the provided argument is a valid JavaScript Date object.
|
|
844
|
+
*
|
|
845
|
+
* @param arg - The value to check.
|
|
846
|
+
* @returns True if the argument is a Date object and is valid (not NaN), otherwise false.
|
|
847
|
+
*
|
|
848
|
+
* @example
|
|
849
|
+
* isJsDate(new Date()); // true
|
|
850
|
+
* isJsDate("2023-01-01"); // false
|
|
851
|
+
* isJsDate(new Date("invalid-date")); // false
|
|
852
|
+
*/
|
|
853
|
+
declare const isJsDate: (arg?: any) => arg is Date;
|
|
825
854
|
|
|
826
855
|
declare const isKey: <T extends PlainObject>(key: Key, // cannot use PlainKey here because it does not include symbol (keyof T does)
|
|
827
856
|
obj: T) => key is keyof T;
|
|
@@ -830,13 +859,13 @@ declare const isLastIndex: (index: number, array: any[]) => boolean;
|
|
|
830
859
|
|
|
831
860
|
declare const isNotEmptyString: (arg: any) => boolean;
|
|
832
861
|
|
|
833
|
-
declare const isInt: (arg
|
|
834
|
-
declare const isEven: (arg
|
|
835
|
-
declare const isOdd: (arg
|
|
836
|
-
declare const isPositiveInt: (arg
|
|
837
|
-
declare const isNegativeInt: (arg
|
|
838
|
-
declare const isNumber: (arg
|
|
839
|
-
declare const isBigInt: (arg
|
|
862
|
+
declare const isInt: (arg?: any) => boolean;
|
|
863
|
+
declare const isEven: (arg?: any) => boolean;
|
|
864
|
+
declare const isOdd: (arg?: any) => boolean;
|
|
865
|
+
declare const isPositiveInt: (arg?: any) => boolean;
|
|
866
|
+
declare const isNegativeInt: (arg?: any) => boolean;
|
|
867
|
+
declare const isNumber: (arg?: any) => arg is number;
|
|
868
|
+
declare const isBigInt: (arg?: any) => arg is BigInt;
|
|
840
869
|
declare const isBigIntString: (arg: string) => boolean;
|
|
841
870
|
declare const isOutsideInt4: (num: number) => boolean;
|
|
842
871
|
|
|
@@ -859,7 +888,7 @@ declare const isPastDate: (arg: DateLike, { referenceDate }?: {
|
|
|
859
888
|
referenceDate?: DateLike;
|
|
860
889
|
}) => boolean;
|
|
861
890
|
|
|
862
|
-
declare const isPromise: (arg
|
|
891
|
+
declare const isPromise: (arg?: unknown) => arg is Promise<unknown>;
|
|
863
892
|
|
|
864
893
|
declare const isPWA: () => boolean;
|
|
865
894
|
|
|
@@ -869,6 +898,18 @@ declare const isRegExp: (arg: any) => arg is RegExp;
|
|
|
869
898
|
|
|
870
899
|
declare const isSame: (value1: any, value2: any) => boolean;
|
|
871
900
|
|
|
901
|
+
/**
|
|
902
|
+
* Checks if two dates are on the same UTC day (year, month, day).
|
|
903
|
+
* Returns false if either value is not a valid Date.
|
|
904
|
+
*
|
|
905
|
+
* @example
|
|
906
|
+
* isSameUTCDay("2023-06-15", "2023-06-15") // true
|
|
907
|
+
* isSameUTCDay("2023-06-15", "2023-06-16") // false
|
|
908
|
+
* isSameUTCDay("2023-06-15", "2023-06-15T00:00:00Z") // true
|
|
909
|
+
* isSameUTCDay("2023-06-15", "2023-06-15T00:00:00.000Z") // true
|
|
910
|
+
*/
|
|
911
|
+
declare const isSameUTCDay: (date1Input: DateLike, date2Input: DateLike) => boolean;
|
|
912
|
+
|
|
872
913
|
/**
|
|
873
914
|
* Check if an array of numbers is a sequence
|
|
874
915
|
* @example
|
|
@@ -883,7 +924,7 @@ declare const isServer: () => boolean;
|
|
|
883
924
|
|
|
884
925
|
declare const isSpacedString: (s: string) => boolean;
|
|
885
926
|
|
|
886
|
-
declare const isString: (arg
|
|
927
|
+
declare const isString: (arg?: any) => arg is string;
|
|
887
928
|
|
|
888
929
|
declare const isStringDate: (arg: string) => boolean;
|
|
889
930
|
|
|
@@ -891,6 +932,20 @@ declare const isURL: (arg: string) => boolean;
|
|
|
891
932
|
|
|
892
933
|
declare const isUUID: (arg: string) => boolean;
|
|
893
934
|
|
|
935
|
+
/**
|
|
936
|
+
* Checks if the provided argument is not null, undefined, or NaN.
|
|
937
|
+
*
|
|
938
|
+
* @template T
|
|
939
|
+
* @param {Maybe<T>} arg - The value to check.
|
|
940
|
+
* @returns {arg is T} True if the argument is a value (not null, undefined, or NaN), otherwise false.
|
|
941
|
+
*
|
|
942
|
+
* @example
|
|
943
|
+
* isValue(0); // true
|
|
944
|
+
* isValue(""); // true
|
|
945
|
+
* isValue(null); // false
|
|
946
|
+
* isValue(undefined); // false
|
|
947
|
+
* isValue(NaN); // false
|
|
948
|
+
*/
|
|
894
949
|
declare const isValue: <T>(arg?: Maybe<T>) => arg is T;
|
|
895
950
|
|
|
896
|
-
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 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, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, 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, isInt, isJsDate, isKey, isLastIndex, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isOutside, isOutsideInt4, isOver18, isPWA, isPastDate, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isSequence, isServer, isSpacedString, isStrictlyBetween, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, mapByKey, max, merge, mergeArrays, min, moveToFirst, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, 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, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
|
951
|
+
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 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, bucketSortedDates, capitalize, chunkArray, chunkedAll, chunkedAsync, chunkedDynamic, clamp, cleanSpaces, cyclicalItem, dir, enumKeys, enumValues, filterAlphanumeric, first, firstKey, firstValue, formatCamelCase, formatCookies, formatIndexProgress, formatNumber, formatPercentage, formatTrpcInputQueryString, getCookieByName, getDateRangeSeries, getDateSeriesRange, 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, moveToLast, multiply, noop, normaliseArray, normaliseNumber, normalizeNumber, objectDiff, omit, parseDate, 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, randomParagraph, randomPassword, randomPastDate, randomPath, randomPhoneNumber, randomPositiveInt, randomString, randomSymbol, randomUUID, randomValue, randomVerb, randomWord, removeUndefinedValues, scrambleText, serialize, seriesAsync, setObjectPath, setUrlSearchParams, shuffle, sleep, startOfDay, startOfNextMonth, startOfNextWeek, startOfThisWeek, startOfToday, startOfTomorrow, startOfUTCDay, startOfUTCTomorrow, stringToCSSUnicode, stringToUnicode, stringify, sum, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.global.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(exports){'use strict';var A=t=>Array.isArray(t);var y=t=>Object.prototype.toString.call(t)==="[object Object]";var g=t=>typeof t=="string";var Z=t=>!!(t===void 0||t===null||zt(t)||Ht(t)||vt(t)),zt=t=>g(t)&&t.trim().length===0,vt=t=>A(t)&&t.length===0,Ht=t=>y(t)&&Object.keys(t).length===0;var j=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var Q=(t,e,r)=>t<e||t>r;var _=t=>Number.isInteger(t),ke=t=>_(t)&&!(t%2),Re=t=>_(t)&&!!(t%2),tt=t=>_(t)&&t>0,je=t=>_(t)&&t<0,O=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t),_e=t=>Object.prototype.toString.apply(t)==="[object BigInt]",Be=t=>{try{return BigInt(t)>Number.MAX_SAFE_INTEGER}catch{return false}},Le=t=>Q(t,-2147483647,2147483647);var Wt=/^\d{4}(-\d{2})?(-\d{2})?$/,c=(t,e)=>{if(Z(t)||O(t)&&(!Number.isInteger(t)||t<-864e13||t>864e13||!Number.isFinite(t)))return;g(t)&&Wt.test(t)&&(t=`${t+"-01-01".slice(t.length-4)}T00:00:00`,e?.asUTC&&(t+="Z"));let r=new Date(t);if(j(r))return r};var We=(t,e,r)=>{let o=(l=>{switch(l){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),i=t.map(l=>{let u=new Date(l);return {timestamp:u.getTime(),normalizedKey:u.toISOString()}}),m={};i.forEach(({normalizedKey:l})=>{m[l]=[];});let s=0;return e.forEach(l=>{let u=c(l);if(!u)return;let d=u.getTime(),b=u.toISOString();for(;s<i.length;){let S=i[s].timestamp,h=s<i.length-1?i[s+1].timestamp:S+o;if(d>=S&&d<h){m[i[s].normalizedKey].push(b);break}if(d<S)break;s++;}}),m};var Xe=(t,e)=>{let{startDate:r,endDate:n}=t,o=c(r),i=c(n);if(!o||!i||o.getTime()>i.getTime())throw new Error("Invalid date range");let m=[],s=new Date(o.getTime());for(;s<i;)switch(m.push(s.toISOString()),e){case "calendarMonth":if(o.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 l=s.getUTCMonth();s.setUTCMonth(l+1);}break;case "day":s.setUTCDate(s.getUTCDate()+1);break;case "hour":s.setUTCHours(s.getUTCHours()+1);break;case "minute":s.setUTCMinutes(s.getUTCMinutes()+1);break;case "second":s.setUTCSeconds(s.getUTCSeconds()+1);break;default:throw new Error(`Unsupported unit: ${e}`)}return m};var qe=t=>{if(!t||t.length===0)throw new Error("Cannot find date range for empty array");let e=t.map(s=>c(s)).filter(s=>s!==void 0);if(e.length===0)throw new Error("No valid dates found in array");let r=e.map(s=>s.getTime()),n=Math.min(...r),o=Math.max(...r),i=new Date(n),m=new Date(o);return {startDate:i,endDate:m}};var Qe=(t,e)=>t.every(r=>e.includes(r));var f=(t,e=()=>{})=>Array.from({length:t},e);var rr=(t,e)=>{let r=new Set(t),n=new Set(e),o=[...r].filter(m=>!n.has(m)),i=[...n].filter(m=>!r.has(m));return [...o,...i]};var or=(t,e)=>{if(t.length===0||e.length===0)return [];let r=new Set(t),n=new Set(e),[o,i]=r.size<n.size?[r,n]:[n,r];return [...o].filter(m=>i.has(m))};var et=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var B=(t,e)=>{let r=[];for(let n=0;n<t.length;n+=e)r.push(t.slice(n,n+e));return r};var cr=async(t,e,r)=>{let n=B(t,e);return await Promise.all(n.map(r))};var w=t=>new Promise(e=>{setTimeout(e,t);});var fr=async(t,e,r,{minChunkTimeMs:n}={})=>{let o=[],i=B(t,e);for(let[m,s]of i.entries()){let l=performance.now(),u=await r(s,m,i);if(o.push(u),n){let d=performance.now()-l;d<n&&await w(n-d);}}return o};var C=({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 Sr=async(t,e,r,{idealChunkDuration:n,maxChunkSize:o,minChunkDuration:i,minChunkSize:m,sleepTimeMs:s}={})=>{let l=[],u=0,d=0,b=e;for(;u<t.length;){let S=performance.now(),h=t.slice(u,u+b);u+=b;let M=await r(h,d);if(d+=1,l.push(M),s&&await w(s),n){let N=performance.now()-S;b=C({number:Math.round(b*(n/N)),min:m||1,max:o||200});}if(i){let N=performance.now()-S;N<i&&await w(i-N);}}return l};var rt=new RegExp(/\p{C}/,"gu");var nt=/\p{Zs}/gu;var ot=/\p{Zl}/gu;var at=/\p{Zp}/gu;var Pr=t=>t.replace(rt," ").replace(nt," ").replace(ot," ").replace(at," ").trim().replace(/\s{2,}/g," ");var wr=(t,e)=>t[e%t.length];var Rr=(t,{maxDepth:e=5}={})=>{console.dir(t,{depth:e});};var it=t=>O(t)?true:g(t)?/^[+-]?((\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?|0[xX][\dA-Fa-f]+|0[bB][01]+)$/.test(t):false;var st=t=>Object.keys(t).filter(e=>!it(e));var L=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var mt=t=>{let e=[];return Object.values(t).forEach(r=>{L(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var vr=t=>t.replace(/[^a-zA-Z0-9]/g,"");var Wr=t=>t[0];var Jr=t=>Object.keys(t)[0];var $r=t=>Object.values(t)[0];var qr=t=>{if(typeof document>"u")return;let e=document.cookie.split(";");for(let r of e){let[n,o]=r.trim().split("=");if(n===t)return decodeURIComponent(o)}};var Qr=Object.keys;var ct=t=>{if(!t)return {};try{let e=t.startsWith("/"),r=new URL(t,e?"https://deverything.dev/":void 0);return Object.fromEntries(r.searchParams)}catch{return {}}};var nn=(t,e)=>ct(t)[e];var x=t=>t!=null&&!Number.isNaN(t);var mn=(t,e)=>t.reduce((r,n)=>{let o=n[e];return x(o)&&(r[o]||(r[o]=[]),r[o].push(n)),r},{});var Gt=1,U=()=>Gt++;var pn=t=>Object.keys(t).length;var I=t=>t.length-1;var ut=t=>t[I(t)];var xn=(t,e)=>t.reduce((r,n)=>(x(n[e])&&(r[n[e]]=n),r),{});var W=(t,e)=>{let r={};return Object.keys(t).forEach(n=>{r[n]=y(t[n])?W({},t[n]):t[n];}),Object.keys(e).forEach(n=>{L(n,t)?r[n]=y(t[n])&&y(e[n])?W(t[n],e[n]):e[n]:r[n]=y(e[n])?W({},e[n]):e[n];}),r};var hn=(t,e)=>t.concat(e.filter(r=>!t.includes(r)));var Dn=(t,e)=>{let r=[...t];for(let n=0;n<r.length;n++)if(e(r[n],n,r)){let o=r.splice(n,1);r.unshift(o[0]);break}return r};var Nn=(t,e)=>{let r=[...t];for(let n=0;n<r.length;n++)if(e(r[n],n,r)){let o=r.splice(n,1)[0];r.push(o);break}return r};var Cn=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var T=t=>{let e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"};var F=(t,e)=>{if(t===e)return true;if(A(t)&&A(e))return t.length!==e.length?false:t.every((r,n)=>F(r,e[n]));if(y(t)&&y(e)){let r=Object.keys(t);return r.length!==Object.keys(e).length?false:r.every(n=>F(t[n],e[n]))}return T(t)&&T(e)?t.toString()===e.toString():false};var _n=(t,e)=>{let r={},n=new Set([...Object.keys(t),...Object.keys(e)]);for(let o of n)F(e[o],t[o])||(r[o]={from:t[o],to:e[o]});return r};var Ln=(t,e)=>{let r={};for(let n in t)e.includes(n)||(r[n]=t[n]);return r};var Fn=(t,e)=>{let r={};for(let n in t)e.includes(n)&&(r[n]=t[n]);return r};var Kn=(t,e)=>{let r={};for(let n in t)e.includes(t[n])&&(r[n]=t[n]);return r};var Hn=(t,e)=>t.reduce((r,n)=>(x(n[e])&&r.push(n[e]),r),[]);var Gn=(t,e,r)=>{let n,o=new Promise((i,m)=>{n=setTimeout(()=>m(r??new Error("Promise timed out")),e);});return Promise.race([t(),o]).finally(()=>{clearTimeout(n);})};var Xn=t=>Object.fromEntries(Object.entries(t).filter(([,e])=>e!==void 0));var p=({min:t=-100,max:e=100}={})=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),pt=()=>BigInt(p()),Yn=({min:t=1,max:e}={})=>p({min:t,max:e}),qn=({min:t,max:e=-1}={})=>p({min:t,max:e}),Zn=()=>p({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),Qn=()=>p({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),to=()=>p()+"%";var V=()=>String.fromCharCode(p({min:97,max:122}));var lt=new RegExp(/\p{L}/,"gu");var so=t=>t.replace(lt,()=>V());var co=t=>{let e=new Set;return JSON.stringify(t,(r,n)=>(e.add(r),n)),JSON.stringify(t,Array.from(e).sort())};var lo=async t=>{let e=[];for(let r of t)if(T(r))e.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 e};var bo=(t,e,r)=>{let n=e.split("."),o=(i,m,s)=>{let l=m[0];if(m.length===1){i[l]=s;return}(!i[l]||!y(i[l]))&&(i[l]={}),o(i[l],m.slice(1),s);};o(t,n,r);};var So=(t,e={})=>{let r=t.startsWith("/"),n=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([o,i])=>{i!=null&&(y(i)?n.searchParams.set(o,JSON.stringify(i)):n.searchParams.set(o,i.toString()));}),r?n.pathname+n.search+n.hash:n.toString()};var ho=t=>{let e=[...t];for(let r=e.length-1;r>0;r--){let n=Math.floor(Math.random()*(r+1));[e[r],e[n]]=[e[n],e[r]];}return e};var dt=()=>{let t=[],e=[],r=function(n,o){return t[0]===o?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(o)).join(".")+"]"};return function(n,o){if(t.length>0){let i=t.indexOf(this);~i?t.splice(i+1):t.push(this),~i?e.splice(i,1/0,n):e.push(n),t.indexOf(o)!==-1&&(o=r.call(this,n,o));}else t.push(o);return o}};var No=t=>JSON.stringify(t,dt(),2);var Io=(t,e)=>{if(!A(t))return t;let r=t.reduce((n,o)=>(o!==e&&n.push(o),n),[]);return r.length===t.length&&r.push(e),r};var wo=(t,e,{ellipsis:r,position:n}={})=>{if(r||(r="..."),n||(n="end"),!tt(e))return t;let o=[...t],i=r.length;if(o.length<=e)return t;switch(n){case "start":{let m=e-i;return r+o.slice(-m).join("")}case "middle":{let m=Math.ceil((e-i)/2),s=o.length-Math.floor((e-i)/2);return o.slice(0,m).join("")+r+o.slice(s).join("")}case "end":default:return o.slice(0,e-i).join("")+r}};var Ro=t=>[...new Set(t)];var Bo=(t,e)=>{let r=c(t),n=c(e.startDate),o=c(e.endDate);return !r||!n||!o?false:r>=n&&r<o};var Uo=t=>Object.prototype.toString.call(t)==="[object Boolean]";var ft=()=>typeof window>"u";var K=()=>!ft();var Ho=K;var Xo=t=>x(t)&&x(t.constructor)&&T(t.constructor.isBuffer)&&t.constructor.isBuffer(t);var qo=t=>g(t)&&/\S+@\S+\.\S+/.test(t);var Qo=t=>Object.prototype.toString.call(t)==="[object File]";var G=(t,{referenceDate:e}={})=>{let r=c(t),n=e?c(e):new Date;if(!n)throw new Error(`[isFutureDate] Invalid referenceDate: ${e}`);return !!r&&r>n};var oa=(t,e)=>t===I(e);var sa=t=>g(t)&&t.trim().length>0;var ca=t=>/^\d+$/.test(t)&&parseInt(t)>0;var J=(t,{referenceDate:e}={})=>{let r=c(t),n=e?c(e):new Date;if(!n)throw new Error(`[isPastDate] Invalid referenceDate: ${e}`);return !!r&&r<n};var da=t=>t instanceof Promise;var ba=()=>K()&&window.matchMedia("(display-mode: standalone)").matches;var Jt=typeof Symbol=="function"&&Symbol.for,Xt=Jt?Symbol.for("react.element"):60103,ga=t=>t.$$typeof===Xt;var Ta=t=>Object.prototype.toString.call(t)==="[object RegExp]";var Aa=t=>t.length<2?true:t[0]!==1?false:t.slice(1).every((e,r)=>e===t[r-1]+1);var Ea=t=>t.indexOf(" ")>=0;var Ca=t=>{let e=new Date(t);return j(e)};var $t=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"),Pa=t=>!!t&&$t.test(t);var wa=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 yt=(t,e)=>T(e)?e(t):t[e];function La({dateBuckets:t,items:e,unit:r,accessor:n}){let i=(d=>{switch(d){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),m=t.map(d=>{let b=c(d);if(!b)throw new Error(`[groupByDateBucket] Invalid dateBucket: ${d}`);return {timestamp:b.getTime(),normalizedKey:b.toISOString()}}),s={};m.forEach(({normalizedKey:d})=>{s[d]=[];});let l=d=>n?yt(d,n):d,u=0;return e.forEach(d=>{let b=l(d);if(!b)return;let S=c(b);if(!S)return;let h=S.getTime();for(;u<m.length;){let M=m[u].timestamp,N=u<m.length-1?m[u+1].timestamp:M+i;if(h>=M&&h<N){s[m[u].normalizedKey].push(d);break}if(h<M)break;u++;}}),s}var Va=t=>{let e=new Date,r=c(t);if(!r)return false;let n=e.getFullYear()-r.getFullYear();if(n>18)return true;if(n<18)return false;if(n===18){if(e.getMonth()>r.getMonth())return true;if(e.getMonth()<r.getMonth())return false;if(e.getMonth()===r.getMonth()){if(e.getDate()>=r.getDate())return true;if(e.getDate()<r.getDate())return false}}return false};var bt=t=>new Date(t.getFullYear(),t.getMonth(),t.getDate());var va=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth()+1,1)};var Wa=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+7-t.getDay())};var Ja=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay())};var Ya=()=>bt(new Date);var Za=()=>{let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1)};var ti=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()));var ri=()=>{let t=new Date;return t.setUTCDate(t.getUTCDate()+1),new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))};var oi=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n);var ii=t=>Object.entries(t).reduce((e,[r,n])=>(n!==void 0&&e.push(`${r}=${n}`),e),[]).join("; ")+";";var ci=(t,e)=>`[${C({number:t+1,min:1,max:e})}/${e}]`;var li=(t,{compact:e,maxDigits:r,percentage:n}={})=>n?`${((O(t)?t:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var yi=(t,{digits:e}={})=>`${C({number:t*100,min:0,max:100}).toFixed(e||0)}%`;var xi=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Si=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var hi=t=>t.reduce((r,n)=>r+n,0)/t.length;var Di=(t,e,r)=>t>=e&&t<=r;var Ni=(t,e,r)=>t>e&&t<r;var xt=t=>t.length?Math.max(...t):0;var gt=t=>Math.min(...t);var Pi=t=>t.reduce((e,r)=>e*r,1);var St=(t,e,r)=>(t-e)/(r-e);var _i=t=>{let e=gt(t),r=xt(t);return t.map(n=>St(n,e,r))};var Li=(t,e)=>{if(t<0||e<0||e===0&&t===0)return 0;if(e===0&&t!==0)return -1;if(e!==0&&t===0)return 1;let r=(e-t)/t;return parseFloat(r.toFixed(4))};var Tt=t=>t.reduce((e,r)=>e+r,0);var Ki=({startDate:t,endDate:e})=>{let r=c(t),n=c(e);if(!r||!n)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:n}};var Yt=[{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"}],qt=[{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"}],Zt=[{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"}],Qt=[{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"}],ht=[...Yt,...qt,...Zt,...Qt];var a=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=Tt(e),n=Math.random()*r;for(let o=0;o<e.length;o++)if(n-=e[o],n<=0)return t[o];return ut(t)}return t[p({min:0,max:I(t)})]};var qi=()=>a(ht);var te="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),es=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return f(t,()=>a(te)).join("")};var At=()=>a([true,false]);var re=(t=new Date)=>X(t,31536e7),ne=(t=new Date)=>X(t,-31536e7),X=(t,e)=>new Date(t.getTime()+e),D=({startDate:t,endDate:e}={})=>{let r=c(t),n=c(e);r&&n&&r>n&&console.warn("randomDate: startDate must be before endDate");let o=r||ne(n),i=n||re(r);return new Date(p({min:o.getTime(),max:i.getTime()}))},cs=({startDate:t,endDate:e})=>(t=t||new Date(-864e13),e=e||new Date(864e13),D({startDate:t,endDate:e})),us=({startDate:t,endDate:e}={})=>{t&&J(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&J(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=c(t)||X(new Date,5*6e4);return D({startDate:r,endDate:e})},ps=({startDate:t,endDate:e}={})=>{t&&G(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&G(e)&&console.warn("randomPastDate: endDate must be in the past");let r=c(e)||new Date;return D({startDate:t,endDate:r})},ls=()=>{let t=D();return {endDate:D({startDate:t}),startDate:t}};var E=({length:t=10}={})=>f(t,()=>V()).join("");var Dt=()=>Symbol(E());var z=()=>a([At(),E(),p(),D(),pt(),Dt()]);var Et=()=>f(p({min:1,max:5}),z);var Nt=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var oe=[{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"}],ae=[{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"}],ie=[{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"}],se=[{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"}],Ot=[...oe,...ae,...ie,...se];var Rs=()=>a(Ot);var Ct=["IE1234567T","GB123456789","XI123456789"],It=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Fs=()=>({name:a(It),vatRegNumber:a(Ct)});var zs=16,$=(t=-9,e=9,r)=>{let n=Math.random()*(e-t)+t;return x(r)?parseFloat(n.toFixed(r)):n};var Ws=()=>({lat:me(),lng:ce()}),me=()=>$(-90,90),ce=()=>$(-180,180);var Pt=["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 Mt=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],wt=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],k=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],R=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],ue=["\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"],pe=["\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"],le=["\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"],de=["\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"],fe=["\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"],ye=["\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"],kt=[...k,...ue,...le,...fe],Rt=[...R,...pe,...de,...ye];var jt=({suffix:t}={})=>(a(k)+"."+a(R)).toLowerCase()+U()+(t||"");var rm=({handle:t,handleSuffix:e}={})=>`${t||jt({suffix:e})}@${a(Pt)}`;var _t=["\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}"],Bt=["!","@","#","$","%","^","&","*"];var sm=()=>a(_t);var um=()=>a([void 0,null,NaN,1/0]);var fm=t=>{let e=st(t);return a(e)};var gm=t=>{let e=mt(t);return a(e)};var Y=["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"],q=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],be=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],xe=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],ge=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Lt=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Ut=[...Y,...q,...be,...xe,...ge];var P=()=>a(Ut),Ft=()=>a(q),Dm=()=>a(Y);var Vt=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>et(f(p({min:e,max:r}),()=>P()).join(" ").slice(0,t-1)+".");var Se=["png","jpg","jpeg","gif","svg","webp"],Rm=({name:t,extension:e}={})=>{if(typeof File>"u")return;let r=e||a(Se);return new File([Vt()],`${t||P()}.${r}`,{type:`image/${r}`})};var v=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var Fm=()=>"#"+f(6,()=>a(v)).join("");var vm=()=>a(v);var Jm=()=>a(Lt);var qm=()=>a(Nt);var ec=()=>f(4,()=>p({min:0,max:255}).toString()).join(".");var ac=()=>a([...Mt,...wt]),ic=()=>a(kt),sc=()=>a(Rt),mc=()=>a(k)+" "+a(R);var lc=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return f(t,(e,r)=>p({min:r?0:1,max:9})).join("")};var Tc=({maxDepth:t=5,circular:e=false}={})=>{let r=(o=0)=>o>=t?{}:f(p({min:1,max:5}),Ft).reduce((m,s)=>{let l=a(["value","object","array"]);if(l==="object"){let u=r(o+1);m[s]=u,e&&a([true,false],{weights:[.2,.8]})&&(u.circular=u);}else if(l==="array"){let u=Et();m[s]=u;}else {let u=z();m[s]=u;}return m},{});return r()};var Oc=({minChars:t=9,maxChars:e=32}={})=>E({length:1}).toUpperCase()+E({length:p({min:t,max:e})-3})+a(Bt)+p({min:1,max:9});var Mc=({depth:t=3}={})=>f(t,P).join("/");var Kt=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var _c=()=>a(Kt);var Uc=()=>{let t=U().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var Vc=t=>new URLSearchParams({input:JSON.stringify(t)});var zc=()=>{};
|
|
2
|
-
exports.JS_MAX_DIGITS=
|
|
1
|
+
(function(exports){'use strict';var A=e=>Array.isArray(e);var y=e=>Object.prototype.toString.call(e)==="[object Object]";var g=e=>typeof e=="string";var Z=e=>!!(e===void 0||e===null||ze(e)||He(e)||ve(e)),ze=e=>g(e)&&e.trim().length===0,ve=e=>A(e)&&e.length===0,He=e=>y(e)&&Object.keys(e).length===0;var j=e=>Object.prototype.toString.call(e)==="[object Date]"&&!isNaN(e);var Q=(e,t,r)=>e<t||e>r;var _=e=>Number.isInteger(e),Rt=e=>_(e)&&!(e%2),jt=e=>_(e)&&!!(e%2),ee=e=>_(e)&&e>0,_t=e=>_(e)&&e<0,C=e=>Object.prototype.toString.apply(e)==="[object Number]"&&isFinite(e),Bt=e=>Object.prototype.toString.apply(e)==="[object BigInt]",Ut=e=>{try{return BigInt(e)>Number.MAX_SAFE_INTEGER}catch{return false}},Lt=e=>Q(e,-2147483647,2147483647);var We=/^\d{4}(-\d{2})?(-\d{2})?$/,c=(e,t)=>{if(Z(e)||C(e)&&(!Number.isInteger(e)||e<-864e13||e>864e13||!Number.isFinite(e)))return;g(e)&&We.test(e)&&(e=`${e+"-01-01".slice(e.length-4)}T00:00:00`,t?.asUTC&&(e+="Z"));let r=new Date(e);if(j(r))return r};var Gt=(e,t,r)=>{let o=(l=>{switch(l){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),i=e.map(l=>{let u=new Date(l);return {timestamp:u.getTime(),normalizedKey:u.toISOString()}}),m={};i.forEach(({normalizedKey:l})=>{m[l]=[];});let s=0;return t.forEach(l=>{let u=c(l);if(!u)return;let d=u.getTime(),b=u.toISOString();for(;s<i.length;){let S=i[s].timestamp,h=s<i.length-1?i[s+1].timestamp:S+o;if(d>=S&&d<h){m[i[s].normalizedKey].push(b);break}if(d<S)break;s++;}}),m};var $t=(e,t)=>{let{startDate:r,endDate:n}=e,o=c(r),i=c(n);if(!o||!i||o.getTime()>i.getTime())throw new Error("Invalid date range");let m=[],s=new Date(o.getTime());for(;s<i;)switch(m.push(s.toISOString()),t){case "calendarMonth":if(o.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 l=s.getUTCMonth();s.setUTCMonth(l+1);}break;case "day":s.setUTCDate(s.getUTCDate()+1);break;case "hour":s.setUTCHours(s.getUTCHours()+1);break;case "minute":s.setUTCMinutes(s.getUTCMinutes()+1);break;case "second":s.setUTCSeconds(s.getUTCSeconds()+1);break;default:throw new Error(`Unsupported unit: ${t}`)}return m};var Zt=e=>{if(!e||e.length===0)throw new Error("Cannot find date range for empty array");let t=e.map(s=>c(s)).filter(s=>s!==void 0);if(t.length===0)throw new Error("No valid dates found in array");let r=t.map(s=>s.getTime()),n=Math.min(...r),o=Math.max(...r),i=new Date(n),m=new Date(o);return {startDate:i,endDate:m}};var er=(e,t)=>e.every(r=>t.includes(r));var f=(e,t=()=>{})=>Array.from({length:e},t);var nr=(e,t)=>{let r=new Set(e),n=new Set(t),o=[...r].filter(m=>!n.has(m)),i=[...n].filter(m=>!r.has(m));return [...o,...i]};var ar=(e,t)=>{if(e.length===0||t.length===0)return [];let r=new Set(e),n=new Set(t),[o,i]=r.size<n.size?[r,n]:[n,r];return [...o].filter(m=>i.has(m))};var te=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var B=(e,t)=>{let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r};var ur=async(e,t,r)=>{let n=B(e,t);return await Promise.all(n.map(r))};var w=e=>new Promise(t=>{setTimeout(t,e);});var yr=async(e,t,r,{minChunkTimeMs:n}={})=>{let o=[],i=B(e,t);for(let[m,s]of i.entries()){let l=performance.now(),u=await r(s,m,i);if(o.push(u),n){let d=performance.now()-l;d<n&&await w(n-d);}}return o};var O=({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 Tr=async(e,t,r,{idealChunkDuration:n,maxChunkSize:o,minChunkDuration:i,minChunkSize:m,sleepTimeMs:s}={})=>{let l=[],u=0,d=0,b=t;for(;u<e.length;){let S=performance.now(),h=e.slice(u,u+b);u+=b;let M=await r(h,d);if(d+=1,l.push(M),s&&await w(s),n){let N=performance.now()-S;b=O({number:Math.round(b*(n/N)),min:m||1,max:o||200});}if(i){let N=performance.now()-S;N<i&&await w(i-N);}}return l};var re=new RegExp(/\p{C}/,"gu");var ne=/\p{Zs}/gu;var oe=/\p{Zl}/gu;var ae=/\p{Zp}/gu;var Mr=e=>e.replace(re," ").replace(ne," ").replace(oe," ").replace(ae," ").trim().replace(/\s{2,}/g," ");var kr=(e,t)=>e[t%e.length];var jr=(e,{maxDepth:t=5}={})=>{console.dir(e,{depth:t});};var ie=e=>C(e)?true:g(e)?/^[+-]?((\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?|0[xX][\dA-Fa-f]+|0[bB][01]+)$/.test(e):false;var se=e=>Object.keys(e).filter(t=>!ie(t));var U=(e,t)=>t.hasOwnProperty(e)&&t.propertyIsEnumerable(e);var me=e=>{let t=[];return Object.values(e).forEach(r=>{U(r,e)&&!t.includes(r)&&t.push(e[r]);}),t};var Hr=e=>e.replace(/[^a-zA-Z0-9]/g,"");var Gr=e=>e[0];var Xr=e=>Object.keys(e)[0];var Yr=e=>Object.values(e)[0];var Zr=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 en=Object.keys;var ce=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 on=(e,t)=>ce(e)[t];var x=e=>e!=null&&!Number.isNaN(e);var cn=(e,t)=>e.reduce((r,n)=>{let o=n[t];return x(o)&&(r[o]||(r[o]=[]),r[o].push(n)),r},{});var Ge=1,L=()=>Ge++;var ln=e=>Object.keys(e).length;var I=e=>e.length-1;var ue=e=>e[I(e)];var gn=(e,t)=>e.reduce((r,n)=>(x(n[t])&&(r[n[t]]=n),r),{});var W=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=y(e[n])?W({},e[n]):e[n];}),Object.keys(t).forEach(n=>{U(n,e)?r[n]=y(e[n])&&y(t[n])?W(e[n],t[n]):t[n]:r[n]=y(t[n])?W({},t[n]):t[n];}),r};var An=(e,t)=>e.concat(t.filter(r=>!e.includes(r)));var En=(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 Cn=(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 In=({value:e,max:t,min:r})=>e>=t?1:e<=r?0:(e-r)/(t-r);var T=e=>{let t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"};var F=(e,t)=>{if(e===t)return true;if(A(e)&&A(t))return e.length!==t.length?false:e.every((r,n)=>F(r,t[n]));if(y(e)&&y(t)){let r=Object.keys(e);return r.length!==Object.keys(t).length?false:r.every(n=>F(e[n],t[n]))}return T(e)&&T(t)?e.toString()===t.toString():false};var Bn=(e,t)=>{let r={},n=new Set([...Object.keys(e),...Object.keys(t)]);for(let o of n)F(t[o],e[o])||(r[o]={from:e[o],to:t[o]});return r};var Ln=(e,t)=>{let r={};for(let n in e)t.includes(n)||(r[n]=e[n]);return r};var Vn=(e,t)=>{let r={};for(let n in e)t.includes(n)&&(r[n]=e[n]);return r};var zn=(e,t)=>{let r={};for(let n in e)t.includes(e[n])&&(r[n]=e[n]);return r};var Wn=(e,t)=>e.reduce((r,n)=>(x(n[t])&&r.push(n[t]),r),[]);var Jn=(e,t,r)=>{let n,o=new Promise((i,m)=>{n=setTimeout(()=>m(r??new Error("Promise timed out")),t);});return Promise.race([e(),o]).finally(()=>{clearTimeout(n);})};var $n=e=>Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0));var p=({min:e=-100,max:t=100}={})=>(e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1)+e)),pe=()=>BigInt(p()),qn=({min:e=1,max:t}={})=>p({min:e,max:t}),Zn=({min:e,max:t=-1}={})=>p({min:e,max:t}),Qn=()=>p({min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER}),eo=()=>p({min:-Number.MAX_VALUE,max:Number.MAX_VALUE}),to=()=>p()+"%";var V=()=>String.fromCharCode(p({min:97,max:122}));var le=new RegExp(/\p{L}/,"gu");var mo=e=>e.replace(le,()=>V());var uo=e=>{let t=new Set;return JSON.stringify(e,(r,n)=>(t.add(r),n)),JSON.stringify(e,Array.from(t).sort())};var fo=async e=>{let t=[];for(let r of e)if(T(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 xo=(e,t,r)=>{let n=t.split("."),o=(i,m,s)=>{let l=m[0];if(m.length===1){i[l]=s;return}(!i[l]||!y(i[l]))&&(i[l]={}),o(i[l],m.slice(1),s);};o(e,n,r);};var To=(e,t={})=>{let r=e.startsWith("/"),n=new URL(e,r?"https://deverything.dev/":void 0);return Object.entries(t).forEach(([o,i])=>{i!=null&&(y(i)?n.searchParams.set(o,JSON.stringify(i)):n.searchParams.set(o,i.toString()));}),r?n.pathname+n.search+n.hash:n.toString()};var Ao=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 de=()=>{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 i=e.indexOf(this);~i?e.splice(i+1):e.push(this),~i?t.splice(i,1/0,n):t.push(n),e.indexOf(o)!==-1&&(o=r.call(this,n,o));}else e.push(o);return o}};var Co=e=>JSON.stringify(e,de(),2);var Po=(e,t)=>{if(!A(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 ko=(e,t,{ellipsis:r,position:n}={})=>{if(r||(r="..."),n||(n="end"),!ee(t))return e;let o=[...e],i=r.length;if(o.length<=t)return e;switch(n){case "start":{let m=t-i;return r+o.slice(-m).join("")}case "middle":{let m=Math.ceil((t-i)/2),s=o.length-Math.floor((t-i)/2);return o.slice(0,m).join("")+r+o.slice(s).join("")}case "end":default:return o.slice(0,t-i).join("")+r}};var jo=e=>[...new Set(e)];var Je=(e,t)=>{let r=c(e),n=c(t.startDate),o=c(t.endDate);return !r||!n||!o?false:r>=n&&r<o},Uo=Je;var Fo=e=>Object.prototype.toString.call(e)==="[object Boolean]";var fe=()=>typeof window>"u";var K=()=>!fe();var Wo=K;var $o=e=>x(e)&&x(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e);var Zo=e=>g(e)&&/\S+@\S+\.\S+/.test(e);var ea=e=>Object.prototype.toString.call(e)==="[object File]";var G=(e,{referenceDate:t}={})=>{let r=c(e),n=t?c(t):new Date;if(!n)throw new Error(`[isFutureDate] Invalid referenceDate: ${t}`);return !!r&&r>n};var aa=(e,t)=>e===I(t);var ma=e=>g(e)&&e.trim().length>0;var ua=e=>/^\d+$/.test(e)&&parseInt(e)>0;var J=(e,{referenceDate:t}={})=>{let r=c(e),n=t?c(t):new Date;if(!n)throw new Error(`[isPastDate] Invalid referenceDate: ${t}`);return !!r&&r<n};var fa=e=>e instanceof Promise;var xa=()=>K()&&window.matchMedia("(display-mode: standalone)").matches;var Xe=typeof Symbol=="function"&&Symbol.for,$e=Xe?Symbol.for("react.element"):60103,Sa=e=>e.$$typeof===$e;var ha=e=>Object.prototype.toString.call(e)==="[object RegExp]";var Ea=(e,t)=>{let r=c(e,{asUTC:true}),n=c(t,{asUTC:true});return !r||!n?false:r.getUTCFullYear()===n.getUTCFullYear()&&r.getUTCMonth()===n.getUTCMonth()&&r.getUTCDate()===n.getUTCDate()};var Ca=e=>e.length<2?true:e[0]!==1?false:e.slice(1).every((t,r)=>t===e[r-1]+1);var Ia=e=>e.indexOf(" ")>=0;var wa=e=>{let t=new Date(e);return j(t)};var Ye=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"),Ra=e=>!!e&&Ye.test(e);var _a=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 ye=(e,t)=>T(t)?t(e):e[t];function Ka({dateBuckets:e,items:t,unit:r,accessor:n}){let i=(d=>{switch(d){case "day":return 864e5;case "hour":return 36e5;case "minute":return 6e4;case "second":return 1e3}})(r),m=e.map(d=>{let b=c(d);if(!b)throw new Error(`[groupByDateBucket] Invalid dateBucket: ${d}`);return {timestamp:b.getTime(),normalizedKey:b.toISOString()}}),s={};m.forEach(({normalizedKey:d})=>{s[d]=[];});let l=d=>n?ye(d,n):d,u=0;return t.forEach(d=>{let b=l(d);if(!b)return;let S=c(b);if(!S)return;let h=S.getTime();for(;u<m.length;){let M=m[u].timestamp,N=u<m.length-1?m[u+1].timestamp:M+i;if(h>=M&&h<N){s[m[u].normalizedKey].push(d);break}if(h<M)break;u++;}}),s}var Ha=e=>{let t=new Date,r=c(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 be=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate());var Ja=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth()+1,1)};var $a=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+7-e.getDay())};var qa=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay())};var ei=()=>be(new Date);var ri=()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+1)};var oi=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()));var ii=()=>{let e=new Date;return e.setUTCDate(e.getUTCDate()+1),new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))};var mi=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n);var ui=e=>Object.entries(e).reduce((t,[r,n])=>(n!==void 0&&t.push(`${r}=${n}`),t),[]).join("; ")+";";var di=(e,t)=>`[${O({number:e+1,min:1,max:t})}/${t}]`;var bi=(e,{compact:t,maxDigits:r,percentage:n}={})=>n?`${((C(e)?e:0)*100).toFixed(r||0)}%`:Intl.NumberFormat("en",{notation:t?"compact":"standard",maximumSignificantDigits:r}).format(e);var Si=(e,{digits:t}={})=>`${O({number:e*100,min:0,max:100}).toFixed(t||0)}%`;var hi=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\${r.toString(16)}`:""}).join("");var Di=e=>Array.from(e).map(t=>{let r=t.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");var Ni=e=>e.reduce((r,n)=>r+n,0)/e.length;var Oi=(e,t,r)=>e>=t&&e<=r;var Pi=(e,t,r)=>e>t&&e<r;var xe=e=>e.length?Math.max(...e):0;var ge=e=>Math.min(...e);var Ri=e=>e.reduce((t,r)=>t*r,1);var Se=(e,t,r)=>(e-t)/(r-t);var Fi=e=>{let t=ge(e),r=xe(e);return e.map(n=>Se(n,t,r))};var Ki=(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 Te=e=>e.reduce((t,r)=>t+r,0);var Wi=({startDate:e,endDate:t})=>{let r=c(e),n=c(t);if(!r||!n)throw new Error("prismaDateRange: Invalid date range");return {gte:r,lt:n}};var qe=[{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"}],Ze=[{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"}],Qe=[{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"}],et=[{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"}],he=[...qe,...Ze,...Qe,...et];var a=(e,{weights:t}={})=>{if(t&&t.length===e.length){let r=Te(t),n=Math.random()*r;for(let o=0;o<t.length;o++)if(n-=t[o],n<=0)return e[o];return ue(e)}return e[p({min:0,max:I(e)})]};var ts=()=>a(he);var tt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),as=({length:e=6}={})=>{if(e<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return f(e,()=>a(tt)).join("")};var Ae=()=>a([true,false]);var nt=(e=new Date)=>X(e,31536e7),ot=(e=new Date)=>X(e,-31536e7),X=(e,t)=>new Date(e.getTime()+t),D=({startDate:e,endDate:t}={})=>{let r=c(e),n=c(t);r&&n&&r>n&&console.warn("randomDate: startDate must be before endDate");let o=r||ot(n),i=n||nt(r);return new Date(p({min:o.getTime(),max:i.getTime()}))},ds=({startDate:e,endDate:t})=>(e=e||new Date(-864e13),t=t||new Date(864e13),D({startDate:e,endDate:t})),fs=({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=c(e)||X(new Date,5*6e4);return D({startDate:r,endDate:t})},ys=({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=c(t)||new Date;return D({startDate:e,endDate:r})},bs=()=>{let e=D();return {endDate:D({startDate:e}),startDate:e}};var E=({length:e=10}={})=>f(e,()=>V()).join("");var De=()=>Symbol(E());var z=()=>a([Ae(),E(),p(),D(),pe(),De()]);var Ee=()=>f(p({min:1,max:5}),z);var Ne=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var at=[{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"}],it=[{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"}],mt=[{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"}],Ce=[...at,...it,...st,...mt];var Us=()=>a(Ce);var Oe=["IE1234567T","GB123456789","XI123456789"],Ie=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var vs=()=>({name:a(Ie),vatRegNumber:a(Oe)});var Gs=16,$=(e=-9,t=9,r)=>{let n=Math.random()*(t-e)+e;return x(r)?parseFloat(n.toFixed(r)):n};var $s=()=>({lat:ct(),lng:ut()}),ct=()=>$(-90,90),ut=()=>$(-180,180);var Pe=["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 Me=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],we=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],k=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],R=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],pt=["\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"],lt=["\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"],dt=["\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"],ft=["\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"],yt=["\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"],bt=["\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=[...k,...pt,...dt,...yt],Re=[...R,...lt,...ft,...bt];var je=({suffix:e}={})=>(a(k)+"."+a(R)).toLowerCase()+L()+(e||"");var im=({handle:e,handleSuffix:t}={})=>`${e||je({suffix:t})}@${a(Pe)}`;var _e=["\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}"],Be=["!","@","#","$","%","^","&","*"];var pm=()=>a(_e);var fm=()=>a([void 0,null,NaN,1/0]);var gm=e=>{let t=se(e);return a(t)};var Am=e=>{let t=me(e);return a(t)};var Y=["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"],q=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],xt=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],gt=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],St=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Ue=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Le=[...Y,...q,...xt,...gt,...St];var P=()=>a(Le),Fe=()=>a(q),Om=()=>a(Y);var Ve=({maxCharacters:e=200,minWords:t=8,maxWords:r=16}={})=>te(f(p({min:t,max:r}),()=>P()).join(" ").slice(0,e-1)+".");var Tt=["png","jpg","jpeg","gif","svg","webp"],Um=({name:e,extension:t}={})=>{if(typeof File>"u")return;let r=t||a(Tt);return new File([Ve()],`${e||P()}.${r}`,{type:`image/${r}`})};var v=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var vm=()=>"#"+f(6,()=>a(v)).join("");var Jm=()=>a(v);var qm=()=>a(Ue);var tc=()=>a(Ne);var ac=()=>f(4,()=>p({min:0,max:255}).toString()).join(".");var cc=()=>a([...Me,...we]),uc=()=>a(ke),pc=()=>a(Re),lc=()=>a(k)+" "+a(R);var bc=({length:e=6}={})=>{if(e<1)throw new Error("randomNumericCode: Length must be greater than 0.");return f(e,(t,r)=>p({min:r?0:1,max:9})).join("")};var Ec=({maxDepth:e=5,circular:t=false}={})=>{let r=(o=0)=>o>=e?{}:f(p({min:1,max:5}),Fe).reduce((m,s)=>{let l=a(["value","object","array"]);if(l==="object"){let u=r(o+1);m[s]=u,t&&a([true,false],{weights:[.2,.8]})&&(u.circular=u);}else if(l==="array"){let u=Ee();m[s]=u;}else {let u=z();m[s]=u;}return m},{});return r()};var Mc=({minChars:e=9,maxChars:t=32}={})=>E({length:1}).toUpperCase()+E({length:p({min:e,max:t})-3})+a(Be)+p({min:1,max:9});var jc=({depth:e=3}={})=>f(e,P).join("/");var Ke=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Fc=()=>a(Ke);var zc=()=>{let e=L().toString().padStart(15,"0"),t=e.substring(0,12);return `00000000-0000-1000-8${e.substring(12,15)}-${t}`};var Hc=e=>new URLSearchParams({input:JSON.stringify(e)});var Gc=()=>{};
|
|
2
|
+
exports.JS_MAX_DIGITS=Gs;exports.array=f;exports.arrayDiff=nr;exports.arrayIntersection=ar;exports.average=Ni;exports.bucketSortedDates=Gt;exports.capitalize=te;exports.chunkArray=B;exports.chunkedAll=ur;exports.chunkedAsync=yr;exports.chunkedDynamic=Tr;exports.clamp=O;exports.cleanSpaces=Mr;exports.cyclicalItem=kr;exports.dir=jr;exports.enumKeys=se;exports.enumValues=me;exports.filterAlphanumeric=Hr;exports.first=Gr;exports.firstKey=Xr;exports.firstValue=Yr;exports.formatCamelCase=mi;exports.formatCookies=ui;exports.formatIndexProgress=di;exports.formatNumber=bi;exports.formatPercentage=Si;exports.formatTrpcInputQueryString=Hc;exports.getCookieByName=Zr;exports.getDateRangeSeries=$t;exports.getDateSeriesRange=Zt;exports.getKeys=en;exports.getUrlSearchParam=on;exports.getUrlSearchParams=ce;exports.groupByDateBucket=Ka;exports.groupByKey=cn;exports.incrementalId=L;exports.isArray=A;exports.isArrayIncluded=er;exports.isBetween=Oi;exports.isBetweenDates=Je;exports.isBigInt=Bt;exports.isBigIntString=Ut;exports.isBoolean=Fo;exports.isBrowser=Wo;exports.isBuffer=$o;exports.isClient=K;exports.isEmail=Zo;exports.isEmpty=Z;exports.isEmptyArray=ve;exports.isEmptyObject=He;exports.isEmptyString=ze;exports.isEven=Rt;exports.isFile=ea;exports.isFunction=T;exports.isFutureDate=G;exports.isInDateRange=Uo;exports.isInt=_;exports.isJsDate=j;exports.isKey=U;exports.isLastIndex=aa;exports.isNegativeInt=_t;exports.isNotEmptyString=ma;exports.isNumber=C;exports.isNumeric=ie;exports.isNumericId=ua;exports.isObject=y;exports.isOdd=jt;exports.isOutside=Q;exports.isOutsideInt4=Lt;exports.isOver18=Ha;exports.isPWA=xa;exports.isPastDate=J;exports.isPositiveInt=ee;exports.isPromise=fa;exports.isReactElement=Sa;exports.isRegExp=ha;exports.isSame=F;exports.isSameUTCDay=Ea;exports.isSequence=Ca;exports.isServer=fe;exports.isSpacedString=Ia;exports.isStrictlyBetween=Pi;exports.isString=g;exports.isStringDate=wa;exports.isURL=Ra;exports.isUUID=_a;exports.isValue=x;exports.keysLength=ln;exports.last=ue;exports.lastIndex=I;exports.mapByKey=gn;exports.max=xe;exports.merge=W;exports.mergeArrays=An;exports.min=ge;exports.moveToFirst=En;exports.moveToLast=Cn;exports.multiply=Ri;exports.noop=Gc;exports.normaliseArray=Fi;exports.normaliseNumber=Se;exports.normalizeNumber=In;exports.objectDiff=Bn;exports.omit=Ln;exports.parseDate=c;exports.percentageChange=Ki;exports.pickObjectKeys=Vn;exports.pickObjectValues=zn;exports.pluck=Wn;exports.prismaDateRange=Wi;exports.promiseWithTimeout=Jn;exports.randomAddress=ts;exports.randomAlphaNumericCode=as;exports.randomArray=Ee;exports.randomArrayItem=a;exports.randomBankAccount=Us;exports.randomBigInt=pe;exports.randomBool=Ae;exports.randomChar=V;exports.randomCompany=vs;exports.randomCoords=$s;exports.randomDate=D;exports.randomDateRange=bs;exports.randomEmail=im;exports.randomEmoji=pm;exports.randomEmptyValue=fm;exports.randomEnumKey=gm;exports.randomEnumValue=Am;exports.randomFile=Um;exports.randomFirstName=uc;exports.randomFloat=$;exports.randomFormattedPercentage=to;exports.randomFullName=lc;exports.randomFutureDate=fs;exports.randomHandle=je;exports.randomHexColor=vm;exports.randomHexValue=Jm;exports.randomHtmlColorName=qm;exports.randomIBAN=tc;exports.randomIP=ac;exports.randomInt=p;exports.randomLastName=pc;exports.randomLat=ct;exports.randomLng=ut;exports.randomMaxDate=ds;exports.randomMaxInt=eo;exports.randomMaxSafeInt=Qn;exports.randomName=cc;exports.randomNegativeInt=Zn;exports.randomNoun=Fe;exports.randomNumericCode=bc;exports.randomObject=Ec;exports.randomParagraph=Ve;exports.randomPassword=Mc;exports.randomPastDate=ys;exports.randomPath=jc;exports.randomPhoneNumber=Fc;exports.randomPositiveInt=qn;exports.randomString=E;exports.randomSymbol=De;exports.randomUUID=zc;exports.randomValue=z;exports.randomVerb=Om;exports.randomWord=P;exports.removeUndefinedValues=$n;exports.scrambleText=mo;exports.serialize=uo;exports.seriesAsync=fo;exports.setObjectPath=xo;exports.setUrlSearchParams=To;exports.shuffle=Ao;exports.sleep=w;exports.startOfDay=be;exports.startOfNextMonth=Ja;exports.startOfNextWeek=$a;exports.startOfThisWeek=qa;exports.startOfToday=ei;exports.startOfTomorrow=ri;exports.startOfUTCDay=oi;exports.startOfUTCTomorrow=ii;exports.stringToCSSUnicode=hi;exports.stringToUnicode=Di;exports.stringify=Co;exports.sum=Te;exports.toggleArrayValue=Po;exports.truncate=ko;exports.uniqueValues=jo;return exports;})({});//# sourceMappingURL=index.global.js.map
|
|
3
3
|
//# sourceMappingURL=index.global.js.map
|