@design-edito/tools 0.1.37 → 0.1.39
Sign up to get free protection for your applications and to get access to all the features.
- package/agnostic/css/bem/index.js +2 -2
- package/agnostic/css/index.js +11 -11
- package/agnostic/errors/index.js +2 -2
- package/agnostic/html/hyper-json/cast/index.js +2 -2
- package/agnostic/html/hyper-json/index.js +3 -3
- package/agnostic/html/hyper-json/transformers/append/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/classList/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/join/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/length/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/print/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/push/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/querySelector/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/ref/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/replace/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/split/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toArray/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toBoolean/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toElement/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toNodeList/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toNull/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toNumber/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toRecord/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toRef/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toString/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toText/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/toTransformer/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/transformSelected/index.js +2 -2
- package/agnostic/html/hyper-json/transformers/trim/index.js +2 -2
- package/agnostic/html/hyper-json/tree/index.js +2 -2
- package/agnostic/html/hyper-json/utils/index.js +2 -2
- package/agnostic/html/index.js +20 -20
- package/agnostic/html/sanitize/index.js +6 -6
- package/agnostic/html/selector-to-element/index.js +6 -6
- package/agnostic/html/string-to-nodes/index.js +7 -7
- package/agnostic/misc/crossenv/index.js +2 -2
- package/agnostic/misc/elo/index.d.ts +31 -0
- package/agnostic/misc/elo/index.js +32 -0
- package/agnostic/misc/index.js +13 -13
- package/agnostic/misc/logs/index.js +2 -2
- package/agnostic/misc/logs/logger/index.d.ts +3 -0
- package/agnostic/misc/logs/logger/index.js +1 -1
- package/agnostic/misc/lorem-ipsum/index.js +5 -5
- package/agnostic/objects/index.js +3 -3
- package/agnostic/random/index.js +2 -2
- package/agnostic/regexps/index.d.ts +1 -0
- package/agnostic/regexps/index.js +1 -0
- package/agnostic/strings/index.js +7 -7
- package/agnostic/strings/replace-all/index.d.ts +1 -1
- package/agnostic/strings/replace-all/index.js +1 -1
- package/agnostic/time/index.js +3 -3
- package/chunks/chunk-6JRUZYTL.js +211 -0
- package/chunks/chunk-DCKTGQOX.js +29 -0
- package/chunks/chunk-GB4UQS6V.js +35 -0
- package/chunks/chunk-LOFELEU3.js +1108 -0
- package/chunks/chunk-LVXK54LL.js +27 -0
- package/chunks/chunk-MJQF3YZO.js +21 -0
- package/chunks/chunk-PPHUIOHO.js +28 -0
- package/chunks/chunk-QHGZBCFZ.js +1108 -0
- package/chunks/chunk-QN3UAKIU.js +21 -0
- package/chunks/chunk-RASMASS4.js +111 -0
- package/chunks/chunk-RHV7UOXD.js +211 -0
- package/chunks/chunk-S7MJLTCR.js +211 -0
- package/chunks/chunk-U6YRINXJ.js +22 -0
- package/chunks/chunk-YO5KOEJF.js +27 -0
- package/chunks/chunk-Z352MSRL.js +127 -0
- package/chunks/chunk-ZTDVUXPR.js +16 -0
- package/package.json +1 -1
package/agnostic/html/index.js
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
+
import {
|
2
|
+
stringToNodes
|
3
|
+
} from "../../chunks/chunk-NWFX6TEY.js";
|
4
|
+
import {
|
5
|
+
selectorToElement
|
6
|
+
} from "../../chunks/chunk-EVOTJ7SU.js";
|
1
7
|
import {
|
2
8
|
HyperJson
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-
|
9
|
+
} from "../../chunks/chunk-LVXK54LL.js";
|
10
|
+
import "../../chunks/chunk-LOFELEU3.js";
|
5
11
|
import "../../chunks/chunk-ZCPGE7H7.js";
|
6
12
|
import "../../chunks/chunk-5GI5G45R.js";
|
7
13
|
import {
|
8
14
|
getPositionInsideParent
|
9
15
|
} from "../../chunks/chunk-VTPRO4NJ.js";
|
16
|
+
import {
|
17
|
+
Sanitize
|
18
|
+
} from "../../chunks/chunk-WABWQCFE.js";
|
10
19
|
import {
|
11
20
|
insertNode
|
12
21
|
} from "../../chunks/chunk-XA4HVHJ4.js";
|
13
|
-
import "../../chunks/chunk-XWLQR4UY.js";
|
14
|
-
import {
|
15
|
-
getNodeAncestors
|
16
|
-
} from "../../chunks/chunk-LUPVHC73.js";
|
17
22
|
import {
|
18
23
|
Placeholders
|
19
24
|
} from "../../chunks/chunk-VYW4IADX.js";
|
25
|
+
import "../../chunks/chunk-XWLQR4UY.js";
|
20
26
|
import {
|
21
|
-
|
22
|
-
} from "../../chunks/chunk-
|
23
|
-
import {
|
24
|
-
stringToNodes
|
25
|
-
} from "../../chunks/chunk-VKURVIRV.js";
|
26
|
-
import {
|
27
|
-
Sanitize
|
28
|
-
} from "../../chunks/chunk-C5753KUP.js";
|
27
|
+
getNodeAncestors
|
28
|
+
} from "../../chunks/chunk-LUPVHC73.js";
|
29
29
|
import "../../chunks/chunk-YDIBNEGA.js";
|
30
30
|
import "../../chunks/chunk-E6MSDKON.js";
|
31
|
-
import "../../chunks/chunk-
|
32
|
-
import "../../chunks/chunk-
|
33
|
-
import "../../chunks/chunk-
|
31
|
+
import "../../chunks/chunk-ZTDVUXPR.js";
|
32
|
+
import "../../chunks/chunk-CB52KVOZ.js";
|
33
|
+
import "../../chunks/chunk-UFKH5WD2.js";
|
34
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
34
35
|
import "../../chunks/chunk-S2NMAH7K.js";
|
35
36
|
import "../../chunks/chunk-LV2VMOWR.js";
|
36
|
-
import "../../chunks/chunk-
|
37
|
-
import "../../chunks/chunk-WH6BPDAC.js";
|
38
|
-
import "../../chunks/chunk-QHLQVR3E.js";
|
37
|
+
import "../../chunks/chunk-2KT7AKRW.js";
|
39
38
|
import "../../chunks/chunk-FENXVJYO.js";
|
39
|
+
import "../../chunks/chunk-QHLQVR3E.js";
|
40
40
|
import "../../chunks/chunk-QXAJXTXV.js";
|
41
41
|
import "../../chunks/chunk-HC6ZOHCS.js";
|
42
42
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
Sanitize
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-WABWQCFE.js";
|
4
|
+
import "../../../chunks/chunk-CB52KVOZ.js";
|
5
|
+
import "../../../chunks/chunk-UFKH5WD2.js";
|
6
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
6
7
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
7
8
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
|
-
import "../../../chunks/chunk-
|
9
|
-
import "../../../chunks/chunk-WH6BPDAC.js";
|
10
|
-
import "../../../chunks/chunk-QHLQVR3E.js";
|
9
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
11
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
11
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
12
12
|
export {
|
13
13
|
Sanitize
|
14
14
|
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
selectorToElement
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-EVOTJ7SU.js";
|
4
|
+
import "../../../chunks/chunk-CB52KVOZ.js";
|
5
|
+
import "../../../chunks/chunk-UFKH5WD2.js";
|
6
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
6
7
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
7
8
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
8
|
-
import "../../../chunks/chunk-
|
9
|
-
import "../../../chunks/chunk-WH6BPDAC.js";
|
10
|
-
import "../../../chunks/chunk-QHLQVR3E.js";
|
9
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
11
10
|
import "../../../chunks/chunk-FENXVJYO.js";
|
11
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
12
12
|
export {
|
13
13
|
selectorToElement
|
14
14
|
};
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import {
|
2
2
|
stringToNodes
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-
|
5
|
-
import "../../../chunks/chunk-
|
6
|
-
import "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-NWFX6TEY.js";
|
4
|
+
import "../../../chunks/chunk-WABWQCFE.js";
|
5
|
+
import "../../../chunks/chunk-CB52KVOZ.js";
|
6
|
+
import "../../../chunks/chunk-UFKH5WD2.js";
|
7
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
7
8
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
8
9
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
9
|
-
import "../../../chunks/chunk-
|
10
|
-
import "../../../chunks/chunk-WH6BPDAC.js";
|
11
|
-
import "../../../chunks/chunk-QHLQVR3E.js";
|
10
|
+
import "../../../chunks/chunk-2KT7AKRW.js";
|
12
11
|
import "../../../chunks/chunk-FENXVJYO.js";
|
12
|
+
import "../../../chunks/chunk-QHLQVR3E.js";
|
13
13
|
export {
|
14
14
|
stringToNodes
|
15
15
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
Crossenv
|
3
|
-
} from "../../../chunks/chunk-
|
3
|
+
} from "../../../chunks/chunk-UFKH5WD2.js";
|
4
|
+
import "../../../chunks/chunk-RLJOYG64.js";
|
4
5
|
import "../../../chunks/chunk-S2NMAH7K.js";
|
5
6
|
import "../../../chunks/chunk-LV2VMOWR.js";
|
6
|
-
import "../../../chunks/chunk-RLJOYG64.js";
|
7
7
|
export {
|
8
8
|
Crossenv
|
9
9
|
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
export declare namespace Elo {
|
2
|
+
const K_FACTOR = 32;
|
3
|
+
/**
|
4
|
+
* Calcule la probabilité de gain de A en fonction des scores Elo de A et B.
|
5
|
+
* @param eloA Le score Elo du joueur A.
|
6
|
+
* @param eloB Le score Elo du joueur B.
|
7
|
+
* @returns La probabilité que le joueur A gagne contre le joueur B.
|
8
|
+
*/
|
9
|
+
function getWinProbability(eloA: number, eloB: number): number;
|
10
|
+
/**
|
11
|
+
* Calcule les nouveaux classements Elo pour les scénarios de victoire de A, de B et de match nul.
|
12
|
+
* @param eloA Le score Elo actuel du joueur A.
|
13
|
+
* @param eloB Le score Elo actuel du joueur B.
|
14
|
+
* @param kFactor Facteur K pour les calculs Elo (facultatif, valeur par défaut = 32).
|
15
|
+
* @returns Un objet contenant les nouveaux classements Elo pour chaque scénario de résultat.
|
16
|
+
*/
|
17
|
+
function getOutcome(eloA: number, eloB: number, kFactor?: number): {
|
18
|
+
aWins: {
|
19
|
+
eloA: number;
|
20
|
+
eloB: number;
|
21
|
+
};
|
22
|
+
bWins: {
|
23
|
+
eloA: number;
|
24
|
+
eloB: number;
|
25
|
+
};
|
26
|
+
null: {
|
27
|
+
eloA: number;
|
28
|
+
eloB: number;
|
29
|
+
};
|
30
|
+
};
|
31
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// src/agnostic/misc/elo/index.ts
|
2
|
+
var Elo;
|
3
|
+
((Elo2) => {
|
4
|
+
Elo2.K_FACTOR = 32;
|
5
|
+
function getWinProbability(eloA, eloB) {
|
6
|
+
const exponent = (eloB - eloA) / 400;
|
7
|
+
return 1 / (1 + Math.pow(10, exponent));
|
8
|
+
}
|
9
|
+
Elo2.getWinProbability = getWinProbability;
|
10
|
+
function getOutcome(eloA, eloB, kFactor = Elo2.K_FACTOR) {
|
11
|
+
const probA = getWinProbability(eloA, eloB);
|
12
|
+
const probB = 1 - probA;
|
13
|
+
return {
|
14
|
+
aWins: {
|
15
|
+
eloA: Math.round(eloA + kFactor * (1 - probA)),
|
16
|
+
eloB: Math.round(eloB + kFactor * (0 - probB))
|
17
|
+
},
|
18
|
+
bWins: {
|
19
|
+
eloA: Math.round(eloA + kFactor * (0 - probA)),
|
20
|
+
eloB: Math.round(eloB + kFactor * (1 - probB))
|
21
|
+
},
|
22
|
+
null: {
|
23
|
+
eloA: Math.round(eloA + kFactor * (0.5 - probA)),
|
24
|
+
eloB: Math.round(eloB + kFactor * (0.5 - probB))
|
25
|
+
}
|
26
|
+
};
|
27
|
+
}
|
28
|
+
Elo2.getOutcome = getOutcome;
|
29
|
+
})(Elo || (Elo = {}));
|
30
|
+
export {
|
31
|
+
Elo
|
32
|
+
};
|
package/agnostic/misc/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
Logs
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-JWKI6G6E.js";
|
3
|
+
} from "../../chunks/chunk-QN3UAKIU.js";
|
5
4
|
import "../../chunks/chunk-L3OCRR3V.js";
|
5
|
+
import "../../chunks/chunk-RASMASS4.js";
|
6
6
|
import "../../chunks/chunk-H4PP6AHP.js";
|
7
7
|
import {
|
8
|
-
|
9
|
-
} from "../../chunks/chunk-
|
8
|
+
Cast
|
9
|
+
} from "../../chunks/chunk-SNJJII7A.js";
|
10
10
|
import {
|
11
11
|
Crawler
|
12
12
|
} from "../../chunks/chunk-YUP434IY.js";
|
@@ -15,36 +15,36 @@ import {
|
|
15
15
|
} from "../../chunks/chunk-7AWTHZLY.js";
|
16
16
|
import {
|
17
17
|
LoremIpsum
|
18
|
-
} from "../../chunks/chunk-
|
18
|
+
} from "../../chunks/chunk-RHV7UOXD.js";
|
19
19
|
import "../../chunks/chunk-4CIS3R7T.js";
|
20
20
|
import {
|
21
|
-
|
22
|
-
} from "../../chunks/chunk-
|
23
|
-
import "../../chunks/chunk-RLAZR3NL.js";
|
21
|
+
Assert
|
22
|
+
} from "../../chunks/chunk-W7YBGJ4H.js";
|
24
23
|
import "../../chunks/chunk-6RGDWX4A.js";
|
25
24
|
import {
|
26
25
|
isConstructorFunction
|
27
26
|
} from "../../chunks/chunk-RCO57B6F.js";
|
27
|
+
import "../../chunks/chunk-RLAZR3NL.js";
|
28
|
+
import "../../chunks/chunk-YS6WMSWC.js";
|
28
29
|
import "../../chunks/chunk-FCU6IHKD.js";
|
29
30
|
import {
|
30
31
|
Crossenv
|
31
|
-
} from "../../chunks/chunk-
|
32
|
+
} from "../../chunks/chunk-UFKH5WD2.js";
|
33
|
+
import "../../chunks/chunk-RLJOYG64.js";
|
32
34
|
import "../../chunks/chunk-S2NMAH7K.js";
|
33
35
|
import "../../chunks/chunk-LV2VMOWR.js";
|
34
|
-
import "../../chunks/chunk-RLJOYG64.js";
|
35
36
|
import {
|
36
37
|
Random
|
37
|
-
} from "../../chunks/chunk-
|
38
|
-
import "../../chunks/chunk-D3ERTRDW.js";
|
38
|
+
} from "../../chunks/chunk-OVG5RGI3.js";
|
39
39
|
import "../../chunks/chunk-75BICI4L.js";
|
40
40
|
import "../../chunks/chunk-OGBUSUE6.js";
|
41
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
41
42
|
import "../../chunks/chunk-QXAJXTXV.js";
|
42
43
|
import {
|
43
44
|
isNotNullish,
|
44
45
|
isNullish,
|
45
46
|
nullishValues
|
46
47
|
} from "../../chunks/chunk-HC6ZOHCS.js";
|
47
|
-
import "../../chunks/chunk-YS6WMSWC.js";
|
48
48
|
|
49
49
|
// src/agnostic/misc/index.ts
|
50
50
|
var Misc;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import {
|
2
2
|
Logs
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-JWKI6G6E.js";
|
3
|
+
} from "../../../chunks/chunk-QN3UAKIU.js";
|
5
4
|
import "../../../chunks/chunk-L3OCRR3V.js";
|
5
|
+
import "../../../chunks/chunk-RASMASS4.js";
|
6
6
|
import "../../../chunks/chunk-H4PP6AHP.js";
|
7
7
|
export {
|
8
8
|
Logs
|
@@ -33,7 +33,10 @@ export declare class Logger {
|
|
33
33
|
constructor();
|
34
34
|
dir(thread: string | undefined, ...args: ConsoleMethodsParams['dir']): void;
|
35
35
|
error(thread?: string, ...args: ConsoleMethodsParams['error']): void;
|
36
|
+
group(thread?: string, ...args: ConsoleMethodsParams['group']): void;
|
37
|
+
groupEnd(thread?: string, ...args: ConsoleMethodsParams['groupEnd']): void;
|
36
38
|
log(thread?: string, ...args: ConsoleMethodsParams['log']): void;
|
39
|
+
table(thread: string | undefined, ...args: ConsoleMethodsParams['table']): void;
|
37
40
|
warn(thread?: string, ...args: ConsoleMethodsParams['warn']): void;
|
38
41
|
setLog<T extends ConsoleMethod>(threadName: string, type: T, data: ConsoleMethodsParams[T]): this;
|
39
42
|
print(this: Logger, threadFilter?: string, withStack?: boolean): void;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import {
|
2
2
|
LoremIpsum
|
3
|
-
} from "../../../chunks/chunk-
|
4
|
-
import "../../../chunks/chunk-RLAZR3NL.js";
|
3
|
+
} from "../../../chunks/chunk-RHV7UOXD.js";
|
5
4
|
import "../../../chunks/chunk-6RGDWX4A.js";
|
6
5
|
import "../../../chunks/chunk-RCO57B6F.js";
|
6
|
+
import "../../../chunks/chunk-RLAZR3NL.js";
|
7
|
+
import "../../../chunks/chunk-YS6WMSWC.js";
|
7
8
|
import "../../../chunks/chunk-FCU6IHKD.js";
|
8
|
-
import "../../../chunks/chunk-
|
9
|
-
import "../../../chunks/chunk-D3ERTRDW.js";
|
9
|
+
import "../../../chunks/chunk-OVG5RGI3.js";
|
10
10
|
import "../../../chunks/chunk-75BICI4L.js";
|
11
11
|
import "../../../chunks/chunk-OGBUSUE6.js";
|
12
|
-
import "../../../chunks/chunk-
|
12
|
+
import "../../../chunks/chunk-D3ERTRDW.js";
|
13
13
|
export {
|
14
14
|
LoremIpsum
|
15
15
|
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import {
|
2
2
|
flattenGetters
|
3
3
|
} from "../../chunks/chunk-VFJYLXCI.js";
|
4
|
+
import {
|
5
|
+
isRecord
|
6
|
+
} from "../../chunks/chunk-YDIBNEGA.js";
|
4
7
|
import {
|
5
8
|
isNonNullObject,
|
6
9
|
isObject
|
7
10
|
} from "../../chunks/chunk-HQLRJ7XW.js";
|
8
|
-
import {
|
9
|
-
isRecord
|
10
|
-
} from "../../chunks/chunk-YDIBNEGA.js";
|
11
11
|
import {
|
12
12
|
Validation
|
13
13
|
} from "../../chunks/chunk-FPEW3A27.js";
|
package/agnostic/random/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
2
|
Random
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import "../../chunks/chunk-D3ERTRDW.js";
|
3
|
+
} from "../../chunks/chunk-OVG5RGI3.js";
|
5
4
|
import "../../chunks/chunk-75BICI4L.js";
|
6
5
|
import "../../chunks/chunk-OGBUSUE6.js";
|
6
|
+
import "../../chunks/chunk-D3ERTRDW.js";
|
7
7
|
export {
|
8
8
|
Random
|
9
9
|
};
|
@@ -20,4 +20,5 @@ export declare namespace Regexps {
|
|
20
20
|
function stringIs(string: string, _regexp: RegExp, returnMatches: false, _flags: string): boolean;
|
21
21
|
function stringIs(string: string, _regexp: RegExp, returnMatches: true, _flags: string): RegExpMatchArray | null;
|
22
22
|
function fromStrings(strings: string[]): RegExp;
|
23
|
+
function escape(string: string): string;
|
23
24
|
}
|
@@ -54,6 +54,7 @@ var Regexps;
|
|
54
54
|
function escape(string) {
|
55
55
|
return string.replace(/\s/igm, "\\s").replace(/\n/igm, "\\n").replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
56
56
|
}
|
57
|
+
Regexps2.escape = escape;
|
57
58
|
function stringsToRootsMap(strings, rootsMap = /* @__PURE__ */ new Map()) {
|
58
59
|
const lengthSorted = strings.sort((strA, strB) => strA.length - strB.length);
|
59
60
|
lengthSorted.forEach((string) => {
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "../../chunks/chunk-
|
4
|
-
import {
|
5
|
-
CharCodes
|
6
|
-
} from "../../chunks/chunk-34U4HX4V.js";
|
2
|
+
normalizeIndent
|
3
|
+
} from "../../chunks/chunk-JQXNEJAP.js";
|
7
4
|
import {
|
8
5
|
matches,
|
9
6
|
matchesEvery,
|
10
7
|
matchesSome
|
11
8
|
} from "../../chunks/chunk-LQFKUNVQ.js";
|
12
9
|
import {
|
13
|
-
|
14
|
-
} from "../../chunks/chunk-
|
10
|
+
CharCodes
|
11
|
+
} from "../../chunks/chunk-34U4HX4V.js";
|
12
|
+
import {
|
13
|
+
replaceAll
|
14
|
+
} from "../../chunks/chunk-ZTDVUXPR.js";
|
15
15
|
import {
|
16
16
|
toAlphanum
|
17
17
|
} from "../../chunks/chunk-COVPTTAD.js";
|
@@ -1 +1 @@
|
|
1
|
-
export declare function replaceAll(input: string, pattern: string | RegExp, replacer: string | ((substring: string, ...args: any[]) => string)
|
1
|
+
export declare function replaceAll(input: string, pattern: string | RegExp, replacer: string | ((substring: string, ...args: any[]) => string)): string;
|
package/agnostic/time/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import {
|
2
2
|
Duration
|
3
3
|
} from "../../chunks/chunk-6NYUQXJT.js";
|
4
|
-
import {
|
5
|
-
timeout
|
6
|
-
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
7
4
|
import {
|
8
5
|
Transitions
|
9
6
|
} from "../../chunks/chunk-ENMBK6H7.js";
|
7
|
+
import {
|
8
|
+
timeout
|
9
|
+
} from "../../chunks/chunk-Z7ZDDBV5.js";
|
10
10
|
import {
|
11
11
|
wait
|
12
12
|
} from "../../chunks/chunk-4CIS3R7T.js";
|
@@ -0,0 +1,211 @@
|
|
1
|
+
import {
|
2
|
+
isArrayOf
|
3
|
+
} from "./chunk-6RGDWX4A.js";
|
4
|
+
import {
|
5
|
+
RANDOM_PICK_ERR_SYMBOL,
|
6
|
+
randomPick
|
7
|
+
} from "./chunk-FCU6IHKD.js";
|
8
|
+
import {
|
9
|
+
make
|
10
|
+
} from "./chunk-RLAZR3NL.js";
|
11
|
+
import {
|
12
|
+
findDuplicates
|
13
|
+
} from "./chunk-YS6WMSWC.js";
|
14
|
+
import {
|
15
|
+
Random
|
16
|
+
} from "./chunk-DCKTGQOX.js";
|
17
|
+
|
18
|
+
// src/agnostic/arrays/index.tsx
|
19
|
+
var Arrays;
|
20
|
+
((Arrays2) => {
|
21
|
+
Arrays2.findDuplicates = findDuplicates;
|
22
|
+
Arrays2.isArrayOf = isArrayOf;
|
23
|
+
Arrays2.make = make;
|
24
|
+
Arrays2.RANDOM_PICK_ERR_SYMBOL = RANDOM_PICK_ERR_SYMBOL;
|
25
|
+
Arrays2.randomPick = randomPick;
|
26
|
+
})(Arrays || (Arrays = {}));
|
27
|
+
|
28
|
+
// src/agnostic/misc/lorem-ipsum/index.ts
|
29
|
+
var LoremIpsum;
|
30
|
+
((LoremIpsum2) => {
|
31
|
+
LoremIpsum2.words = [
|
32
|
+
"a",
|
33
|
+
"ac",
|
34
|
+
"accumsan",
|
35
|
+
"adipiscing",
|
36
|
+
"aenean",
|
37
|
+
"aliquam",
|
38
|
+
"aliquet",
|
39
|
+
"amet",
|
40
|
+
"ante",
|
41
|
+
"arcu",
|
42
|
+
"at",
|
43
|
+
"auctor",
|
44
|
+
"augue",
|
45
|
+
"bibendum",
|
46
|
+
"blandit",
|
47
|
+
"condimentum",
|
48
|
+
"consectetur",
|
49
|
+
"consequat",
|
50
|
+
"convallis",
|
51
|
+
"cras",
|
52
|
+
"curabitur",
|
53
|
+
"cursus",
|
54
|
+
"dapibus",
|
55
|
+
"diam",
|
56
|
+
"dictum",
|
57
|
+
"dictumst",
|
58
|
+
"dignissim",
|
59
|
+
"dolor",
|
60
|
+
"donec",
|
61
|
+
"dui",
|
62
|
+
"duis",
|
63
|
+
"efficitur",
|
64
|
+
"egestas",
|
65
|
+
"eget",
|
66
|
+
"eleifend",
|
67
|
+
"elementum",
|
68
|
+
"elit",
|
69
|
+
"enim",
|
70
|
+
"erat",
|
71
|
+
"eros",
|
72
|
+
"est",
|
73
|
+
"et",
|
74
|
+
"eu",
|
75
|
+
"euismod",
|
76
|
+
"ex",
|
77
|
+
"facilisis",
|
78
|
+
"faucibus",
|
79
|
+
"felis",
|
80
|
+
"feugiat",
|
81
|
+
"finibus",
|
82
|
+
"fringilla",
|
83
|
+
"fusce",
|
84
|
+
"gravida",
|
85
|
+
"habitasse",
|
86
|
+
"hac",
|
87
|
+
"hendrerit",
|
88
|
+
"iaculis",
|
89
|
+
"id",
|
90
|
+
"imperdiet",
|
91
|
+
"in",
|
92
|
+
"integer",
|
93
|
+
"interdum",
|
94
|
+
"ipsum",
|
95
|
+
"justo",
|
96
|
+
"lacinia",
|
97
|
+
"lacus",
|
98
|
+
"laoreet",
|
99
|
+
"lectus",
|
100
|
+
"leo",
|
101
|
+
"libero",
|
102
|
+
"ligula",
|
103
|
+
"lobortis",
|
104
|
+
"lorem",
|
105
|
+
"luctus",
|
106
|
+
"maecenas",
|
107
|
+
"magna",
|
108
|
+
"malesuada",
|
109
|
+
"massa",
|
110
|
+
"mattis",
|
111
|
+
"mauris",
|
112
|
+
"maximus",
|
113
|
+
"metus",
|
114
|
+
"mi",
|
115
|
+
"molestie",
|
116
|
+
"mollis",
|
117
|
+
"morbi",
|
118
|
+
"nam",
|
119
|
+
"nec",
|
120
|
+
"neque",
|
121
|
+
"nibh",
|
122
|
+
"nisi",
|
123
|
+
"nisl",
|
124
|
+
"non",
|
125
|
+
"nulla",
|
126
|
+
"nullam",
|
127
|
+
"nunc",
|
128
|
+
"odio",
|
129
|
+
"orci",
|
130
|
+
"ornare",
|
131
|
+
"pellentesque",
|
132
|
+
"pharetra",
|
133
|
+
"phasellus",
|
134
|
+
"placerat",
|
135
|
+
"platea",
|
136
|
+
"porta",
|
137
|
+
"porttitor",
|
138
|
+
"posuere",
|
139
|
+
"praesent",
|
140
|
+
"pulvinar",
|
141
|
+
"purus",
|
142
|
+
"quam",
|
143
|
+
"quis",
|
144
|
+
"quisque",
|
145
|
+
"risus",
|
146
|
+
"rutrum",
|
147
|
+
"sagittis",
|
148
|
+
"sapien",
|
149
|
+
"sed",
|
150
|
+
"sem",
|
151
|
+
"semper",
|
152
|
+
"sit",
|
153
|
+
"sodales",
|
154
|
+
"sollicitudin",
|
155
|
+
"suscipit",
|
156
|
+
"suspendisse",
|
157
|
+
"tellus",
|
158
|
+
"tempor",
|
159
|
+
"tempus",
|
160
|
+
"tincidunt",
|
161
|
+
"tortor",
|
162
|
+
"tristique",
|
163
|
+
"turpis",
|
164
|
+
"ultrices",
|
165
|
+
"ultricies",
|
166
|
+
"urna",
|
167
|
+
"ut",
|
168
|
+
"vehicula",
|
169
|
+
"vel",
|
170
|
+
"velit",
|
171
|
+
"venenatis",
|
172
|
+
"vestibulum",
|
173
|
+
"vitae",
|
174
|
+
"vivamus",
|
175
|
+
"viverra",
|
176
|
+
"volutpat",
|
177
|
+
"vulputate"
|
178
|
+
];
|
179
|
+
LoremIpsum2.generateSentence = (wordCount) => {
|
180
|
+
const resultArr = [];
|
181
|
+
let currentWordCound = wordCount;
|
182
|
+
for (let i = 0; i < currentWordCound; i++) {
|
183
|
+
const picked = Arrays.randomPick(LoremIpsum2.words);
|
184
|
+
if (typeof picked === "string") resultArr.push(picked);
|
185
|
+
else {
|
186
|
+
currentWordCound += 1;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
const [firstWord, ...otherWords] = resultArr;
|
190
|
+
if (firstWord === void 0) return "";
|
191
|
+
const capFirstLetter = firstWord?.charAt(0).toUpperCase();
|
192
|
+
const restOfFirstWord = firstWord?.slice(1);
|
193
|
+
const sentence = [
|
194
|
+
`${capFirstLetter}${restOfFirstWord}`,
|
195
|
+
...otherWords
|
196
|
+
].join(" ");
|
197
|
+
return `${sentence}.`;
|
198
|
+
};
|
199
|
+
LoremIpsum2.generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
|
200
|
+
const sentences = [];
|
201
|
+
for (let i = 0; i < sentencesCount; i++) {
|
202
|
+
const length = Random.randomInt(maxSentenceLength, minSentenceLength) ?? 8;
|
203
|
+
sentences.push((0, LoremIpsum2.generateSentence)(length));
|
204
|
+
}
|
205
|
+
return sentences;
|
206
|
+
};
|
207
|
+
})(LoremIpsum || (LoremIpsum = {}));
|
208
|
+
|
209
|
+
export {
|
210
|
+
LoremIpsum
|
211
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import {
|
2
|
+
randomHash,
|
3
|
+
randomHashPattern,
|
4
|
+
randomUUID
|
5
|
+
} from "./chunk-75BICI4L.js";
|
6
|
+
import {
|
7
|
+
random,
|
8
|
+
randomInt
|
9
|
+
} from "./chunk-D3ERTRDW.js";
|
10
|
+
import {
|
11
|
+
hexChars,
|
12
|
+
randomHexChar
|
13
|
+
} from "./chunk-OGBUSUE6.js";
|
14
|
+
|
15
|
+
// src/agnostic/random/index.ts
|
16
|
+
var Random;
|
17
|
+
((Random2) => {
|
18
|
+
Random2.random = random;
|
19
|
+
Random2.randomInt = randomInt;
|
20
|
+
Random2.hexChars = hexChars;
|
21
|
+
Random2.randomHexChar = randomHexChar;
|
22
|
+
Random2.randomHash = randomHash;
|
23
|
+
Random2.randomHashPattern = randomHashPattern;
|
24
|
+
Random2.randomUUID = randomUUID;
|
25
|
+
})(Random || (Random = {}));
|
26
|
+
|
27
|
+
export {
|
28
|
+
Random
|
29
|
+
};
|