@zinaid/str 0.0.5 → 0.0.7
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/ascii/index.d.ts +14 -0
- package/dist/ascii/index.d.ts.map +1 -0
- package/dist/ascii/index.js +7 -0
- package/dist/base64/index.d.ts +23 -0
- package/dist/base64/index.d.ts.map +1 -0
- package/dist/base64/index.js +124 -0
- package/dist/{convertcase.d.ts → convertcase/index.d.ts} +11 -1
- package/dist/convertcase/index.d.ts.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +136 -131
- package/dist/markdown/index.d.ts +49 -0
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/markdown/index.js +32 -0
- package/dist/pluralizer/index.d.ts +100 -0
- package/dist/pluralizer/index.d.ts.map +1 -0
- package/dist/{pluralizer.js → pluralizer/index.js} +39 -32
- package/dist/{random.d.ts → random/index.d.ts} +3 -3
- package/dist/random/index.d.ts.map +1 -0
- package/dist/{random.js → random/index.js} +2 -1
- package/dist/replacer/index.d.ts +31 -0
- package/dist/replacer/index.d.ts.map +1 -0
- package/dist/str.d.ts +308 -173
- package/dist/str.d.ts.map +1 -1
- package/dist/str.js +510 -661
- package/dist/stringable/index.d.ts +952 -0
- package/dist/stringable/index.d.ts.map +1 -0
- package/dist/{stringable.js → stringable/index.js} +400 -13
- package/dist/transliterate/index.d.ts +14 -0
- package/dist/transliterate/index.d.ts.map +1 -0
- package/dist/transliterate/index.js +7 -0
- package/dist/trimmer/index.d.ts +25 -0
- package/dist/trimmer/index.d.ts.map +1 -0
- package/dist/ulid/index.d.ts +79 -0
- package/dist/ulid/index.d.ts.map +1 -0
- package/dist/ulid/index.js +58 -0
- package/dist/uuid/index.d.ts +92 -0
- package/dist/uuid/index.d.ts.map +1 -0
- package/dist/uuid/index.js +50 -0
- package/package.json +78 -21
- package/dist/base64.d.ts +0 -7
- package/dist/base64.d.ts.map +0 -1
- package/dist/base64.js +0 -123
- package/dist/convertcase.d.ts.map +0 -1
- package/dist/markdown.d.ts +0 -26
- package/dist/markdown.d.ts.map +0 -1
- package/dist/markdown.js +0 -55
- package/dist/pluralizer.d.ts +0 -38
- package/dist/pluralizer.d.ts.map +0 -1
- package/dist/random.d.ts.map +0 -1
- package/dist/replacer.d.ts +0 -31
- package/dist/replacer.d.ts.map +0 -1
- package/dist/stringable.d.ts +0 -555
- package/dist/stringable.d.ts.map +0 -1
- package/dist/trimmer.d.ts +0 -4
- package/dist/trimmer.d.ts.map +0 -1
- /package/dist/{convertcase.js → convertcase/index.js} +0 -0
- /package/dist/{replacer.js → replacer/index.js} +0 -0
- /package/dist/{trimmer.js → trimmer/index.js} +0 -0
package/dist/str.js
CHANGED
|
@@ -1,180 +1,142 @@
|
|
|
1
|
-
import { substr as x, ltrim as
|
|
2
|
-
import { isArray as S, toLower as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
).default;
|
|
8
|
-
}
|
|
9
|
-
function it() {
|
|
10
|
-
return M(
|
|
11
|
-
"transliteration",
|
|
12
|
-
'The "transliteration" package is required for transliteration. Please install it: npm install transliteration'
|
|
13
|
-
).transliterate;
|
|
14
|
-
}
|
|
15
|
-
function ot() {
|
|
16
|
-
return M(
|
|
17
|
-
"ulid",
|
|
18
|
-
'The "ulid" package is required for ULID generation. Please install it: npm install ulid'
|
|
19
|
-
).ulid;
|
|
20
|
-
}
|
|
21
|
-
function P() {
|
|
22
|
-
const t = M(
|
|
23
|
-
"uuid",
|
|
24
|
-
'The "uuid" package is required for UUID functions. Please install it: npm install uuid'
|
|
25
|
-
);
|
|
26
|
-
return {
|
|
27
|
-
v4: t.v4,
|
|
28
|
-
v7: t.v7,
|
|
29
|
-
validate: t.validate,
|
|
30
|
-
version: t.version,
|
|
31
|
-
NIL: t.NIL,
|
|
32
|
-
MAX: t.MAX
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const E = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
|
|
36
|
-
let $ = null, L = null, R = null;
|
|
37
|
-
function J(t, n) {
|
|
38
|
-
if (n === "")
|
|
1
|
+
import { substr as x, ltrim as G, rtrim as P, randomInt as O, randomString as J, title as j, ascii as Z, trim as H, upper as V } from "@zinaid/str";
|
|
2
|
+
import { isArray as S, toLower as N, isString as M, isFunction as D } from "@zinaid/utils";
|
|
3
|
+
const R = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map();
|
|
4
|
+
let b = null;
|
|
5
|
+
function K(t, e) {
|
|
6
|
+
if (e === "")
|
|
39
7
|
return t;
|
|
40
|
-
const
|
|
41
|
-
return r === -1 ? t : t.slice(r +
|
|
8
|
+
const n = String(e), r = t.indexOf(n);
|
|
9
|
+
return r === -1 ? t : t.slice(r + n.length);
|
|
42
10
|
}
|
|
43
|
-
function
|
|
44
|
-
if (
|
|
11
|
+
function at(t, e) {
|
|
12
|
+
if (e === "")
|
|
45
13
|
return t;
|
|
46
|
-
const
|
|
47
|
-
return
|
|
48
|
-
}
|
|
49
|
-
function ct(t) {
|
|
50
|
-
return it()(t);
|
|
51
|
-
}
|
|
52
|
-
function Rt(t) {
|
|
53
|
-
return st()(t);
|
|
14
|
+
const n = t.lastIndexOf(String(e));
|
|
15
|
+
return n === -1 ? t : t.slice(n + String(e).length);
|
|
54
16
|
}
|
|
55
|
-
function
|
|
56
|
-
if (
|
|
17
|
+
function Q(t, e) {
|
|
18
|
+
if (e === "")
|
|
57
19
|
return t;
|
|
58
|
-
const
|
|
59
|
-
return
|
|
20
|
+
const n = t.indexOf(String(e));
|
|
21
|
+
return n === -1 ? t : t.slice(0, n);
|
|
60
22
|
}
|
|
61
|
-
function
|
|
62
|
-
if (
|
|
23
|
+
function X(t, e) {
|
|
24
|
+
if (e === "")
|
|
63
25
|
return t;
|
|
64
|
-
const
|
|
65
|
-
return
|
|
26
|
+
const n = t.lastIndexOf(String(e));
|
|
27
|
+
return n === -1 ? t : x(t, 0, n);
|
|
66
28
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
29
|
+
function ut(t, e, n) {
|
|
30
|
+
return e === "" || n === "" ? t : X(K(t, e), n);
|
|
69
31
|
}
|
|
70
|
-
function
|
|
71
|
-
return
|
|
32
|
+
function pt(t, e, n) {
|
|
33
|
+
return e === "" || n === "" ? t : Q(K(t, e), n);
|
|
72
34
|
}
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
75
|
-
return
|
|
76
|
-
const
|
|
77
|
-
return
|
|
78
|
-
}
|
|
79
|
-
function
|
|
80
|
-
const
|
|
81
|
-
return (
|
|
82
|
-
}
|
|
83
|
-
function
|
|
84
|
-
for (const
|
|
85
|
-
if (t.startsWith(
|
|
86
|
-
const r = [...t], s = [...
|
|
35
|
+
function gt(t) {
|
|
36
|
+
if (E.has(t))
|
|
37
|
+
return E.get(t);
|
|
38
|
+
const e = st(B(t));
|
|
39
|
+
return E.set(t, e), e;
|
|
40
|
+
}
|
|
41
|
+
function mt(t, e) {
|
|
42
|
+
const n = t.length;
|
|
43
|
+
return (e < 0 ? e < -n : e > n - 1) ? !1 : (e < 0 && (e += n), t.charAt(e));
|
|
44
|
+
}
|
|
45
|
+
function ht(t, e) {
|
|
46
|
+
for (const n of S(e) ? e : [e])
|
|
47
|
+
if (n !== "" && t.startsWith(n)) {
|
|
48
|
+
const r = [...t], s = [...n];
|
|
87
49
|
return r.slice(s.length).join("");
|
|
88
50
|
}
|
|
89
51
|
return t;
|
|
90
52
|
}
|
|
91
|
-
function
|
|
92
|
-
for (const
|
|
93
|
-
if (t.endsWith(
|
|
94
|
-
const r = [...t], s = [...
|
|
53
|
+
function dt(t, e) {
|
|
54
|
+
for (const n of S(e) ? e : [e])
|
|
55
|
+
if (n !== "" && t.endsWith(n)) {
|
|
56
|
+
const r = [...t], s = [...n];
|
|
95
57
|
return r.slice(0, -s.length).join("");
|
|
96
58
|
}
|
|
97
59
|
return t;
|
|
98
60
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
61
|
+
function T(t, e, n = !1) {
|
|
62
|
+
n && (t = t.toLowerCase());
|
|
101
63
|
let r;
|
|
102
|
-
typeof
|
|
64
|
+
typeof e == "string" ? r = [e] : r = Array.from(e);
|
|
103
65
|
for (let s of r)
|
|
104
|
-
if (
|
|
66
|
+
if (n && (s = s.toLowerCase()), s !== "" && t.includes(s))
|
|
105
67
|
return !0;
|
|
106
68
|
return !1;
|
|
107
69
|
}
|
|
108
|
-
function
|
|
109
|
-
const r =
|
|
110
|
-
if (!
|
|
70
|
+
function yt(t, e = "", n = {}) {
|
|
71
|
+
const r = n.radius ?? 100, s = n.omission ?? "...", o = String(t ?? ""), c = e ?? "", i = (w) => w.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = new RegExp(`^(.*?)(${i(c)})(.*)$`, "iu").exec(o);
|
|
72
|
+
if (!f)
|
|
111
73
|
return null;
|
|
112
|
-
const m =
|
|
113
|
-
let p =
|
|
74
|
+
const m = G(f[1] ?? ""), u = Array.from(m).length, a = x(m, Math.max(u - r, 0), r);
|
|
75
|
+
let p = G(a);
|
|
114
76
|
p !== m && (p = s + p);
|
|
115
|
-
const g =
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
const y =
|
|
119
|
-
return p + y +
|
|
120
|
-
}
|
|
121
|
-
function
|
|
122
|
-
for (const r of
|
|
123
|
-
if (!
|
|
77
|
+
const g = P(f[3] ?? ""), h = x(g, 0, r);
|
|
78
|
+
let d = P(h);
|
|
79
|
+
d !== g && (d = d + s);
|
|
80
|
+
const y = f[2] ?? "";
|
|
81
|
+
return p + y + d;
|
|
82
|
+
}
|
|
83
|
+
function wt(t, e, n = !1) {
|
|
84
|
+
for (const r of e)
|
|
85
|
+
if (!T(t, r, n))
|
|
124
86
|
return !1;
|
|
125
87
|
return !0;
|
|
126
88
|
}
|
|
127
|
-
function
|
|
128
|
-
return !
|
|
89
|
+
function xt(t, e, n = !1) {
|
|
90
|
+
return !T(t, e, n);
|
|
129
91
|
}
|
|
130
|
-
function
|
|
131
|
-
return S(
|
|
132
|
-
t = t.replace(new RegExp(`${
|
|
133
|
-
}), t) : t.replace(new RegExp(`${
|
|
92
|
+
function St(t, e = " ") {
|
|
93
|
+
return S(e) ? (e.forEach((n) => {
|
|
94
|
+
t = t.replace(new RegExp(`${n}+`, "g"), n);
|
|
95
|
+
}), t) : t.replace(new RegExp(`${e}+`, "g"), e);
|
|
134
96
|
}
|
|
135
|
-
function W(t,
|
|
97
|
+
function W(t, e) {
|
|
136
98
|
if (t === null)
|
|
137
99
|
return !1;
|
|
138
|
-
t = String(t), S(
|
|
139
|
-
for (const
|
|
140
|
-
if (
|
|
100
|
+
t = String(t), S(e) ? e = Array.from(e) : e = [String(e)];
|
|
101
|
+
for (const n of e)
|
|
102
|
+
if (n !== "" && t.endsWith(n))
|
|
141
103
|
return !0;
|
|
142
104
|
return !1;
|
|
143
105
|
}
|
|
144
|
-
function
|
|
145
|
-
return !W(t,
|
|
106
|
+
function $t(t, e) {
|
|
107
|
+
return !W(t, e);
|
|
146
108
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
return t.replace(new RegExp(`(?:${
|
|
109
|
+
function kt(t, e) {
|
|
110
|
+
const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
111
|
+
return t.replace(new RegExp(`(?:${n})+$`, "u"), "") + e;
|
|
150
112
|
}
|
|
151
|
-
function
|
|
152
|
-
return
|
|
113
|
+
function At(t, e, n = null) {
|
|
114
|
+
return e + t + (n ?? e);
|
|
153
115
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
116
|
+
function bt(t, e, n = null) {
|
|
117
|
+
return I(t, e) && (t = x(t, F(e))), W(t, n ??= e) && (t = x(t, 0, -F(n))), t;
|
|
156
118
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
119
|
+
function Lt(t, e, n = !1) {
|
|
120
|
+
e = String(e);
|
|
159
121
|
let r;
|
|
160
122
|
typeof t == "string" ? r = [t] : r = Array.from(t);
|
|
161
123
|
for (let s of r) {
|
|
162
|
-
if (s = String(s), s ===
|
|
124
|
+
if (s = String(s), s === e || n && N(s) === N(e))
|
|
163
125
|
return !0;
|
|
164
126
|
s = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = s.replace(/\\\*/g, ".*");
|
|
165
|
-
const
|
|
166
|
-
if (new RegExp(`^${s}$`,
|
|
127
|
+
const o = n ? "iu" : "u";
|
|
128
|
+
if (new RegExp(`^${s}$`, o).test(e))
|
|
167
129
|
return !0;
|
|
168
130
|
}
|
|
169
131
|
return !1;
|
|
170
132
|
}
|
|
171
|
-
function
|
|
172
|
-
for (let
|
|
173
|
-
if (t.charCodeAt(
|
|
133
|
+
function Rt(t) {
|
|
134
|
+
for (let e = 0; e < t.length; e++)
|
|
135
|
+
if (t.charCodeAt(e) > 127) return !1;
|
|
174
136
|
return !0;
|
|
175
137
|
}
|
|
176
|
-
function
|
|
177
|
-
if (!
|
|
138
|
+
function Et(t) {
|
|
139
|
+
if (!M(t))
|
|
178
140
|
return !1;
|
|
179
141
|
try {
|
|
180
142
|
JSON.parse(t);
|
|
@@ -183,10 +145,10 @@ function jt(t) {
|
|
|
183
145
|
}
|
|
184
146
|
return !0;
|
|
185
147
|
}
|
|
186
|
-
function
|
|
187
|
-
if (!
|
|
148
|
+
function Ct(t, e = []) {
|
|
149
|
+
if (!M(t))
|
|
188
150
|
return !1;
|
|
189
|
-
const r = (
|
|
151
|
+
const r = (e.length === 0 ? "aaa|aaas|about|acap|acct|acd|acr|adiumxtra|adt|afp|afs|aim|amss|android|appdata|apt|ark|attachment|aw|barion|beshare|bitcoin|bitcoincash|blob|bolo|browserext|calculator|callto|cap|cast|casts|chrome|chrome-extension|cid|coap|coap+tcp|coap+ws|coaps|coaps+tcp|coaps+ws|com-eventbrite-attendee|content|conti|crid|cvs|dab|data|dav|diaspora|dict|did|dis|dlna-playcontainer|dlna-playsingle|dns|dntp|dpp|drm|drop|dtn|dvb|ed2k|elsi|example|facetime|fax|feed|feedready|file|filesystem|finger|first-run-pen-experience|fish|fm|ftp|fuchsia-pkg|geo|gg|git|gizmoproject|go|gopher|graph|gtalk|h323|ham|hcap|hcp|http|https|hxxp|hxxps|hydrazone|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|isostore|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|leaptofrogans|lorawan|lvlt|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|mongodb|moz|ms-access|ms-browser-extension|ms-calculator|ms-drive-to|ms-enrollment|ms-excel|ms-eyecontrolspeech|ms-gamebarservices|ms-gamingoverlay|ms-getoffice|ms-help|ms-infopath|ms-inputapp|ms-lockscreencomponent-config|ms-media-stream-id|ms-mixedrealitycapture|ms-mobileplans|ms-officeapp|ms-people|ms-project|ms-powerpoint|ms-publisher|ms-restoretabcompanion|ms-screenclip|ms-screensketch|ms-search|ms-search-repair|ms-secondary-screen-controller|ms-secondary-screen-setup|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-connectabledevices|ms-settings-displays-topology|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|ms-spd|ms-sttoverlay|ms-transit-to|ms-useractivityset|ms-virtualtouchpad|ms-visio|ms-walk-to|ms-whiteboard|ms-whiteboard-cmd|ms-word|msnim|msrp|msrps|mss|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|ocf|oid|onenote|onenote-cmd|opaquelocktoken|openpgp4fpr|pack|palm|paparazzi|payto|pkcs11|platform|pop|pres|prospero|proxy|pwid|psyc|pttp|qb|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|s3|secondlife|service|session|sftp|sgn|shttp|sieve|simpleledger|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spiffe|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|tg|things|thismessage|tip|tn3270|tool|ts3server|turn|turns|tv|udp|unreal|urn|ut2004|v-event|vemmi|ventrilo|videotex|vnc|view-source|wais|webcal|wpid|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39.50|z39.50r|z39.50s" : e.join("|")).split("|").map((o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
190
152
|
try {
|
|
191
153
|
const c = new URL(t).protocol.replace(":", "");
|
|
192
154
|
if (r.split("|").includes(c))
|
|
@@ -217,195 +179,174 @@ function Kt(t, n = []) {
|
|
|
217
179
|
return !1;
|
|
218
180
|
}
|
|
219
181
|
}
|
|
220
|
-
function
|
|
221
|
-
|
|
222
|
-
return !1;
|
|
223
|
-
const e = P();
|
|
224
|
-
return n !== null && !e.validate(t) ? !1 : n === null ? /^[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}$/.test(
|
|
225
|
-
t
|
|
226
|
-
) : n === 0 || n === "nil" ? t.toLowerCase() === e.NIL : n === "max" ? t.toLowerCase() === e.MAX : n < 1 || n > 8 ? !1 : e.version(t) === n;
|
|
227
|
-
}
|
|
228
|
-
function Jt(t) {
|
|
229
|
-
if (!N(t))
|
|
230
|
-
return !1;
|
|
231
|
-
const n = t.toUpperCase();
|
|
232
|
-
return /^[0-9A-HJKMNP-TV-Z]{26}$/.test(n);
|
|
233
|
-
}
|
|
234
|
-
function Xt(t) {
|
|
235
|
-
return ht(t, "-");
|
|
182
|
+
function Ft(t) {
|
|
183
|
+
return rt(t, "-");
|
|
236
184
|
}
|
|
237
|
-
function
|
|
185
|
+
function F(t) {
|
|
238
186
|
return t.length;
|
|
239
187
|
}
|
|
240
|
-
function
|
|
241
|
-
if (t.length <=
|
|
188
|
+
function zt(t, e = 100, n = "...", r = !1) {
|
|
189
|
+
if (t.length <= e)
|
|
242
190
|
return t;
|
|
243
191
|
if (!r)
|
|
244
|
-
return t.slice(0,
|
|
245
|
-
t =
|
|
246
|
-
const s = t.slice(0,
|
|
247
|
-
return t.substring(
|
|
192
|
+
return t.slice(0, e).replace(/\s+$/, "") + n;
|
|
193
|
+
t = nt(t).replace(/[\n\r]+/g, " ").trim();
|
|
194
|
+
const s = t.slice(0, e).replace(/\s+$/, "");
|
|
195
|
+
return t.substring(e, e + 1) === " " ? s + n : s.replace(/(.*)\s.*/, "$1") + n;
|
|
248
196
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
197
|
+
function U(t) {
|
|
198
|
+
return N(t);
|
|
251
199
|
}
|
|
252
|
-
function
|
|
253
|
-
if (
|
|
200
|
+
function _t(t, e = 100, n = "...") {
|
|
201
|
+
if (e <= 0)
|
|
254
202
|
return t;
|
|
255
|
-
const r =
|
|
256
|
-
return !
|
|
203
|
+
const r = e, s = new RegExp(`^\\s*(?:\\S+\\s*){1,${r}}`, "u"), o = t.match(s);
|
|
204
|
+
return !o || F(t) === F(o[0]) ? t : o[0].replace(/\s+$/, "") + n;
|
|
257
205
|
}
|
|
258
|
-
function
|
|
259
|
-
if (
|
|
206
|
+
function Ot(t, e, n, r = null) {
|
|
207
|
+
if (e === "")
|
|
260
208
|
return t;
|
|
261
209
|
const s = t.length;
|
|
262
|
-
let
|
|
263
|
-
|
|
210
|
+
let o = n;
|
|
211
|
+
n < 0 && (o = n < -s ? 0 : s + n);
|
|
264
212
|
const c = t.slice(
|
|
265
|
-
|
|
266
|
-
r !== null ?
|
|
213
|
+
o,
|
|
214
|
+
r !== null ? o + r : void 0
|
|
267
215
|
);
|
|
268
216
|
if (c === "")
|
|
269
217
|
return t;
|
|
270
|
-
const
|
|
271
|
-
return
|
|
218
|
+
const i = t.slice(0, o), l = c.length, f = t.slice(o + l);
|
|
219
|
+
return i + e.slice(0, 1).repeat(l) + f;
|
|
272
220
|
}
|
|
273
|
-
function
|
|
274
|
-
let
|
|
221
|
+
function Nt(t, e) {
|
|
222
|
+
let n = "u", r = t;
|
|
275
223
|
if (t.length >= 2 && t[0] === "/") {
|
|
276
224
|
let s = -1;
|
|
277
|
-
for (let
|
|
278
|
-
if (t[
|
|
225
|
+
for (let o = t.length - 1; o > 0; o--)
|
|
226
|
+
if (t[o] === "/") {
|
|
279
227
|
let c = 0;
|
|
280
|
-
for (let
|
|
228
|
+
for (let i = o - 1; i >= 0 && t[i] === "\\"; i--)
|
|
281
229
|
c++;
|
|
282
230
|
if (c % 2 === 0) {
|
|
283
|
-
s =
|
|
231
|
+
s = o;
|
|
284
232
|
break;
|
|
285
233
|
}
|
|
286
234
|
}
|
|
287
235
|
if (s > 0) {
|
|
288
236
|
r = t.slice(1, s);
|
|
289
|
-
const
|
|
290
|
-
if (
|
|
291
|
-
for (const c of
|
|
292
|
-
/[imsuy]/.test(c) && !
|
|
237
|
+
const o = t.slice(s + 1);
|
|
238
|
+
if (o)
|
|
239
|
+
for (const c of o)
|
|
240
|
+
/[imsuy]/.test(c) && !n.includes(c) && (n += c);
|
|
293
241
|
}
|
|
294
242
|
}
|
|
295
243
|
try {
|
|
296
|
-
const
|
|
297
|
-
return
|
|
244
|
+
const o = new RegExp(r, n).exec(e);
|
|
245
|
+
return o ? o[1] !== void 0 ? o[1] : o[0] : "";
|
|
298
246
|
} catch {
|
|
299
247
|
return "";
|
|
300
248
|
}
|
|
301
249
|
}
|
|
302
|
-
function
|
|
303
|
-
|
|
304
|
-
const
|
|
305
|
-
for (const r of
|
|
250
|
+
function Mt(t, e) {
|
|
251
|
+
e = String(e);
|
|
252
|
+
const n = typeof t == "string" ? [t] : Array.from(t);
|
|
253
|
+
for (const r of n) {
|
|
306
254
|
if (typeof r != "string" || r === "") continue;
|
|
307
|
-
let s = "u",
|
|
255
|
+
let s = "u", o = r;
|
|
308
256
|
if (r.length >= 2 && r[0] === "/") {
|
|
309
257
|
let c = -1;
|
|
310
|
-
for (let
|
|
311
|
-
if (r[
|
|
258
|
+
for (let i = r.length - 1; i > 0; i--)
|
|
259
|
+
if (r[i] === "/") {
|
|
312
260
|
let l = 0;
|
|
313
|
-
for (let
|
|
261
|
+
for (let f = i - 1; f >= 0 && r[f] === "\\"; f--)
|
|
314
262
|
l++;
|
|
315
263
|
if (l % 2 === 0) {
|
|
316
|
-
c =
|
|
264
|
+
c = i;
|
|
317
265
|
break;
|
|
318
266
|
}
|
|
319
267
|
}
|
|
320
268
|
if (c > 0) {
|
|
321
|
-
|
|
322
|
-
const
|
|
323
|
-
if (
|
|
324
|
-
for (const l of
|
|
269
|
+
o = r.slice(1, c);
|
|
270
|
+
const i = r.slice(c + 1);
|
|
271
|
+
if (i)
|
|
272
|
+
for (const l of i)
|
|
325
273
|
/[imsuy]/.test(l) && !s.includes(l) && (s += l);
|
|
326
274
|
}
|
|
327
275
|
}
|
|
328
276
|
try {
|
|
329
|
-
if (new RegExp(
|
|
277
|
+
if (new RegExp(o, s).test(e))
|
|
330
278
|
return !0;
|
|
331
279
|
} catch {
|
|
332
280
|
}
|
|
333
281
|
}
|
|
334
282
|
return !1;
|
|
335
283
|
}
|
|
336
|
-
function
|
|
337
|
-
let
|
|
284
|
+
function Wt(t, e) {
|
|
285
|
+
let n = "u", r = t;
|
|
338
286
|
if (t.length >= 2 && t[0] === "/") {
|
|
339
|
-
let
|
|
287
|
+
let o = -1;
|
|
340
288
|
for (let c = t.length - 1; c > 0; c--)
|
|
341
289
|
if (t[c] === "/") {
|
|
342
|
-
let
|
|
290
|
+
let i = 0;
|
|
343
291
|
for (let l = c - 1; l >= 0 && t[l] === "\\"; l--)
|
|
344
|
-
|
|
345
|
-
if (
|
|
346
|
-
|
|
292
|
+
i++;
|
|
293
|
+
if (i % 2 === 0) {
|
|
294
|
+
o = c;
|
|
347
295
|
break;
|
|
348
296
|
}
|
|
349
297
|
}
|
|
350
|
-
if (
|
|
351
|
-
r = t.slice(1,
|
|
352
|
-
const c = t.slice(
|
|
298
|
+
if (o > 0) {
|
|
299
|
+
r = t.slice(1, o);
|
|
300
|
+
const c = t.slice(o + 1);
|
|
353
301
|
if (c)
|
|
354
|
-
for (const
|
|
355
|
-
/[imsuy]/.test(
|
|
302
|
+
for (const i of c)
|
|
303
|
+
/[imsuy]/.test(i) && !n.includes(i) && (n += i);
|
|
356
304
|
}
|
|
357
305
|
}
|
|
358
|
-
|
|
306
|
+
n.includes("g") || (n += "g");
|
|
359
307
|
let s = [];
|
|
360
308
|
try {
|
|
361
|
-
const
|
|
309
|
+
const o = new RegExp(r, n);
|
|
362
310
|
let c;
|
|
363
|
-
for (; (c =
|
|
364
|
-
s.push(c[1] !== void 0 ? c[1] : c[0]), c[0] === "" &&
|
|
311
|
+
for (; (c = o.exec(e)) !== null; )
|
|
312
|
+
s.push(c[1] !== void 0 ? c[1] : c[0]), c[0] === "" && o.lastIndex++;
|
|
365
313
|
} catch {
|
|
366
314
|
s = [];
|
|
367
315
|
}
|
|
368
316
|
return s;
|
|
369
317
|
}
|
|
370
|
-
function
|
|
371
|
-
return S(t) ? t.map((
|
|
318
|
+
function Ut(t) {
|
|
319
|
+
return S(t) ? t.map((e) => e.replace(/[^0-9]/g, "")) : t.replace(/[^0-9]/g, "");
|
|
372
320
|
}
|
|
373
|
-
function
|
|
321
|
+
function It(t, e, n = " ") {
|
|
374
322
|
const r = t.length;
|
|
375
|
-
if (
|
|
323
|
+
if (e <= r || n === "")
|
|
376
324
|
return t;
|
|
377
|
-
const s =
|
|
378
|
-
return
|
|
325
|
+
const s = e - r, o = Math.floor(s / 2), c = s - o;
|
|
326
|
+
return z(n, o) + t + z(n, c);
|
|
379
327
|
}
|
|
380
|
-
function
|
|
328
|
+
function qt(t, e, n = " ") {
|
|
381
329
|
const r = t.length;
|
|
382
|
-
if (
|
|
330
|
+
if (e <= r || n === "")
|
|
383
331
|
return t;
|
|
384
|
-
const
|
|
385
|
-
return
|
|
332
|
+
const o = e - r;
|
|
333
|
+
return z(n, o) + t;
|
|
386
334
|
}
|
|
387
|
-
function
|
|
335
|
+
function Gt(t, e, n = " ") {
|
|
388
336
|
const r = t.length;
|
|
389
|
-
if (
|
|
337
|
+
if (e <= r || n === "")
|
|
390
338
|
return t;
|
|
391
|
-
const
|
|
392
|
-
return t +
|
|
339
|
+
const o = e - r;
|
|
340
|
+
return t + z(n, o);
|
|
393
341
|
}
|
|
394
|
-
function
|
|
395
|
-
if (
|
|
396
|
-
const
|
|
397
|
-
return t.repeat(
|
|
342
|
+
function z(t, e) {
|
|
343
|
+
if (e <= 0) return "";
|
|
344
|
+
const n = Math.ceil(e / t.length);
|
|
345
|
+
return t.repeat(n).slice(0, e);
|
|
398
346
|
}
|
|
399
|
-
function
|
|
400
|
-
const
|
|
401
|
-
|
|
402
|
-
}
|
|
403
|
-
function sn(t, n = 2) {
|
|
404
|
-
return ut(t, n);
|
|
405
|
-
}
|
|
406
|
-
function on(t = 32, n = !0, e = !0, r = !0, s = !1) {
|
|
407
|
-
const a = [
|
|
408
|
-
n ? [
|
|
347
|
+
function Pt(t = 32, e = !0, n = !0, r = !0, s = !1) {
|
|
348
|
+
const f = [
|
|
349
|
+
e ? [
|
|
409
350
|
"a",
|
|
410
351
|
"b",
|
|
411
352
|
"c",
|
|
@@ -459,7 +400,7 @@ function on(t = 32, n = !0, e = !0, r = !0, s = !1) {
|
|
|
459
400
|
"Y",
|
|
460
401
|
"Z"
|
|
461
402
|
] : null,
|
|
462
|
-
|
|
403
|
+
n ? ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] : null,
|
|
463
404
|
r ? [
|
|
464
405
|
"~",
|
|
465
406
|
"!",
|
|
@@ -490,245 +431,245 @@ function on(t = 32, n = !0, e = !0, r = !0, s = !1) {
|
|
|
490
431
|
] : null,
|
|
491
432
|
s ? [" "] : null
|
|
492
433
|
].filter((p) => S(p));
|
|
493
|
-
if (
|
|
434
|
+
if (f.length === 0 || t <= 0)
|
|
494
435
|
return "";
|
|
495
436
|
const m = [];
|
|
496
|
-
for (const p of
|
|
497
|
-
const g =
|
|
437
|
+
for (const p of f) {
|
|
438
|
+
const g = O(0, p.length - 1);
|
|
498
439
|
m.push(p[g]);
|
|
499
440
|
}
|
|
500
|
-
const
|
|
501
|
-
for (let p = 0; p <
|
|
502
|
-
const g =
|
|
503
|
-
m.push(
|
|
441
|
+
const u = Math.max(0, t - m.length), a = f.flat();
|
|
442
|
+
for (let p = 0; p < u; p++) {
|
|
443
|
+
const g = O(0, a.length - 1);
|
|
444
|
+
m.push(a[g]);
|
|
504
445
|
}
|
|
505
446
|
for (let p = m.length - 1; p > 0; p--) {
|
|
506
|
-
const g =
|
|
507
|
-
m[p] = m[g], m[g] =
|
|
447
|
+
const g = O(0, p), h = m[p];
|
|
448
|
+
m[p] = m[g], m[g] = h;
|
|
508
449
|
}
|
|
509
450
|
return m.join("");
|
|
510
451
|
}
|
|
511
|
-
function
|
|
512
|
-
if (
|
|
452
|
+
function jt(t, e, n = 0) {
|
|
453
|
+
if (e === "")
|
|
513
454
|
return !1;
|
|
514
|
-
const r = Array.from(t), s = Array.from(
|
|
515
|
-
let
|
|
516
|
-
if (
|
|
455
|
+
const r = Array.from(t), s = Array.from(e);
|
|
456
|
+
let o = n >= 0 ? n : r.length + n;
|
|
457
|
+
if (o < 0 && (o = 0), o >= r.length)
|
|
517
458
|
return !1;
|
|
518
459
|
const c = r.length - s.length;
|
|
519
|
-
for (let
|
|
460
|
+
for (let i = o; i <= c; i++) {
|
|
520
461
|
let l = !0;
|
|
521
|
-
for (let
|
|
522
|
-
if (r[
|
|
462
|
+
for (let f = 0; f < s.length; f++)
|
|
463
|
+
if (r[i + f] !== s[f]) {
|
|
523
464
|
l = !1;
|
|
524
465
|
break;
|
|
525
466
|
}
|
|
526
467
|
if (l)
|
|
527
|
-
return
|
|
468
|
+
return i;
|
|
528
469
|
}
|
|
529
470
|
return !1;
|
|
530
471
|
}
|
|
531
|
-
function
|
|
532
|
-
return (
|
|
533
|
-
}
|
|
534
|
-
function pt(t) {
|
|
535
|
-
R = t;
|
|
472
|
+
function Y(t = 16) {
|
|
473
|
+
return (b ?? ((n) => J(n)))(t);
|
|
536
474
|
}
|
|
537
|
-
function
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
475
|
+
function v(t) {
|
|
476
|
+
b = t;
|
|
477
|
+
}
|
|
478
|
+
function Kt(t, e) {
|
|
479
|
+
let n = 0;
|
|
480
|
+
const r = e ?? function(s) {
|
|
481
|
+
const o = b;
|
|
482
|
+
b = null;
|
|
483
|
+
const c = Y(s);
|
|
484
|
+
return b = o, n++, c;
|
|
544
485
|
};
|
|
545
|
-
|
|
486
|
+
v((s) => n < t.length ? String(t[n++]) : r(s));
|
|
546
487
|
}
|
|
547
|
-
function
|
|
548
|
-
|
|
488
|
+
function Tt() {
|
|
489
|
+
b = null;
|
|
549
490
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
491
|
+
function Bt(t, e) {
|
|
492
|
+
return e <= 0 ? "" : t.repeat(e);
|
|
552
493
|
}
|
|
553
|
-
function
|
|
494
|
+
function Jt(t, e, n) {
|
|
554
495
|
let r;
|
|
555
|
-
typeof
|
|
556
|
-
const s =
|
|
496
|
+
typeof e == "object" && !S(e) ? r = Object.values(e) : r = S(e) ? [...e] : Array.from(e);
|
|
497
|
+
const s = n.split(t);
|
|
557
498
|
if (s.length === 1)
|
|
558
|
-
return
|
|
559
|
-
let
|
|
499
|
+
return n;
|
|
500
|
+
let o = s[0];
|
|
560
501
|
for (let c = 1; c < s.length; c++) {
|
|
561
|
-
const
|
|
562
|
-
|
|
502
|
+
const i = r.length ? r.shift() : t;
|
|
503
|
+
o += i + s[c];
|
|
563
504
|
}
|
|
564
|
-
return String(
|
|
505
|
+
return String(o);
|
|
565
506
|
}
|
|
566
|
-
function
|
|
507
|
+
function Zt(t, e) {
|
|
567
508
|
try {
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
return
|
|
509
|
+
const n = String(t);
|
|
510
|
+
if (n.length)
|
|
511
|
+
return n;
|
|
571
512
|
throw new Error("Failed to convert value to string");
|
|
572
513
|
} catch {
|
|
573
|
-
return
|
|
514
|
+
return e;
|
|
574
515
|
}
|
|
575
516
|
}
|
|
576
|
-
function
|
|
577
|
-
const s = (
|
|
578
|
-
if (
|
|
579
|
-
const p = c[
|
|
517
|
+
function Ht(t, e, n, r = !0) {
|
|
518
|
+
const s = (f) => typeof f == "string" ? [f] : Array.from(f), o = s(t), c = s(e), i = (f) => f.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), l = (f) => o.reduce((m, u, a) => {
|
|
519
|
+
if (u === "") return m;
|
|
520
|
+
const p = c[a] ?? "";
|
|
580
521
|
if (!r)
|
|
581
|
-
return m.split(
|
|
582
|
-
const g = new RegExp(
|
|
522
|
+
return m.split(u).join(p);
|
|
523
|
+
const g = new RegExp(i(u), "gi");
|
|
583
524
|
return m.replace(g, () => p);
|
|
584
|
-
},
|
|
585
|
-
return
|
|
525
|
+
}, f);
|
|
526
|
+
return M(n) ? l(n) : Array.from(n).map(l);
|
|
586
527
|
}
|
|
587
|
-
function
|
|
528
|
+
function tt(t, e, n) {
|
|
588
529
|
if (t = String(t), t === "")
|
|
589
|
-
return
|
|
590
|
-
const r =
|
|
591
|
-
return r !== -1 ?
|
|
530
|
+
return n;
|
|
531
|
+
const r = n.indexOf(t);
|
|
532
|
+
return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
|
|
592
533
|
}
|
|
593
|
-
function
|
|
594
|
-
return t = String(t), t === "" ?
|
|
534
|
+
function Vt(t, e, n) {
|
|
535
|
+
return t = String(t), t === "" ? n : I(n, t) ? tt(t, e, n) : n;
|
|
595
536
|
}
|
|
596
|
-
function
|
|
537
|
+
function et(t, e, n) {
|
|
597
538
|
if (t = String(t), t === "")
|
|
598
|
-
return
|
|
599
|
-
const r =
|
|
600
|
-
return r !== -1 ?
|
|
539
|
+
return n;
|
|
540
|
+
const r = n.lastIndexOf(t);
|
|
541
|
+
return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
|
|
601
542
|
}
|
|
602
|
-
function
|
|
603
|
-
return t = String(t), t === "" ?
|
|
543
|
+
function Dt(t, e, n) {
|
|
544
|
+
return t = String(t), t === "" ? n : W(n, t) ? et(t, e, n) : n;
|
|
604
545
|
}
|
|
605
|
-
function
|
|
606
|
-
const s = (
|
|
607
|
-
function c(
|
|
546
|
+
function Qt(t, e, n, r = -1) {
|
|
547
|
+
const s = (u) => S(u) ? u : [u], o = s(t);
|
|
548
|
+
function c(u) {
|
|
608
549
|
try {
|
|
609
|
-
if (
|
|
610
|
-
let g =
|
|
611
|
-
return g.includes("g") || (g += "g"), g.includes("u") || (g += "u"), new RegExp(
|
|
550
|
+
if (u instanceof RegExp) {
|
|
551
|
+
let g = u.flags;
|
|
552
|
+
return g.includes("g") || (g += "g"), g.includes("u") || (g += "u"), new RegExp(u.source, g);
|
|
612
553
|
}
|
|
613
|
-
let
|
|
614
|
-
if (
|
|
554
|
+
let a = u, p = "gu";
|
|
555
|
+
if (u.length >= 2 && u[0] === "/") {
|
|
615
556
|
let g = -1;
|
|
616
|
-
for (let
|
|
617
|
-
if (
|
|
618
|
-
let
|
|
619
|
-
for (let y =
|
|
620
|
-
|
|
621
|
-
if (
|
|
622
|
-
g =
|
|
557
|
+
for (let h = u.length - 1; h > 0; h--)
|
|
558
|
+
if (u[h] === "/") {
|
|
559
|
+
let d = 0;
|
|
560
|
+
for (let y = h - 1; y >= 0 && u[y] === "\\"; y--)
|
|
561
|
+
d++;
|
|
562
|
+
if (d % 2 === 0) {
|
|
563
|
+
g = h;
|
|
623
564
|
break;
|
|
624
565
|
}
|
|
625
566
|
}
|
|
626
567
|
if (g > 1) {
|
|
627
|
-
|
|
628
|
-
const
|
|
629
|
-
if (
|
|
630
|
-
for (const
|
|
631
|
-
/[imsuy]/.test(
|
|
568
|
+
a = u.slice(1, g);
|
|
569
|
+
const h = u.slice(g + 1);
|
|
570
|
+
if (h)
|
|
571
|
+
for (const d of h)
|
|
572
|
+
/[imsuy]/.test(d) && !p.includes(d) && (p += d);
|
|
632
573
|
p.includes("g") || (p += "g"), p.includes("u") || (p += "u");
|
|
633
574
|
}
|
|
634
575
|
}
|
|
635
576
|
return new RegExp(
|
|
636
|
-
|
|
577
|
+
a,
|
|
637
578
|
Array.from(new Set(p.split(""))).join("")
|
|
638
579
|
);
|
|
639
580
|
} catch {
|
|
640
581
|
return null;
|
|
641
582
|
}
|
|
642
583
|
}
|
|
643
|
-
const
|
|
644
|
-
for (const
|
|
645
|
-
const
|
|
646
|
-
if (!
|
|
647
|
-
|
|
584
|
+
const i = [];
|
|
585
|
+
for (const u of o) {
|
|
586
|
+
const a = c(u);
|
|
587
|
+
if (!a) return null;
|
|
588
|
+
i.push(a);
|
|
648
589
|
}
|
|
649
|
-
const l =
|
|
650
|
-
let
|
|
651
|
-
for (let p = 0; p <
|
|
652
|
-
const g =
|
|
590
|
+
const l = D(e), f = l ? [] : s(e), m = (u) => {
|
|
591
|
+
let a = u;
|
|
592
|
+
for (let p = 0; p < i.length; p++) {
|
|
593
|
+
const g = i[p];
|
|
653
594
|
if (l) {
|
|
654
|
-
let
|
|
655
|
-
const
|
|
656
|
-
|
|
595
|
+
let h = 0;
|
|
596
|
+
const d = e;
|
|
597
|
+
a = a.replace(
|
|
657
598
|
g,
|
|
658
599
|
(y, ...w) => {
|
|
659
|
-
if (r >= 0 &&
|
|
660
|
-
|
|
661
|
-
const
|
|
662
|
-
for (let k = 0; k <
|
|
663
|
-
|
|
664
|
-
const
|
|
665
|
-
return
|
|
600
|
+
if (r >= 0 && h >= r) return y;
|
|
601
|
+
h++;
|
|
602
|
+
const L = typeof w[w.length - 1] == "object" && typeof w[w.length - 2] == "number" ? w.length - 3 : w.length - 2, $ = [];
|
|
603
|
+
for (let k = 0; k < L; k++)
|
|
604
|
+
$.push(w[k]);
|
|
605
|
+
const A = [y, ...$];
|
|
606
|
+
return d(A);
|
|
666
607
|
}
|
|
667
608
|
);
|
|
668
609
|
} else {
|
|
669
|
-
const
|
|
610
|
+
const h = f[p] ?? (f.length === 1 ? f[0] : "");
|
|
670
611
|
if (r < 0)
|
|
671
|
-
|
|
672
|
-
const
|
|
673
|
-
return
|
|
674
|
-
const k = parseInt(
|
|
675
|
-
return (
|
|
612
|
+
a = a.replace(g, (d, ...y) => {
|
|
613
|
+
const _ = typeof y[y.length - 1] == "object" && typeof y[y.length - 2] == "number" ? y.length - 3 : y.length - 2, L = y.slice(0, _).map(($) => String($));
|
|
614
|
+
return h.replace(/\$(\d{1,2})/g, ($, A) => {
|
|
615
|
+
const k = parseInt(A, 10);
|
|
616
|
+
return (L[k - 1] ?? "").toUpperCase();
|
|
676
617
|
});
|
|
677
618
|
});
|
|
678
619
|
else {
|
|
679
|
-
let
|
|
680
|
-
|
|
681
|
-
if (
|
|
682
|
-
|
|
683
|
-
const
|
|
684
|
-
return
|
|
685
|
-
const
|
|
686
|
-
return (
|
|
620
|
+
let d = 0;
|
|
621
|
+
a = a.replace(g, (y, ...w) => {
|
|
622
|
+
if (d >= r) return y;
|
|
623
|
+
d++;
|
|
624
|
+
const L = typeof w[w.length - 1] == "object" && typeof w[w.length - 2] == "number" ? w.length - 3 : w.length - 2, $ = w.slice(0, L).map((A) => String(A));
|
|
625
|
+
return h.replace(/\$(\d{1,2})/g, (A, k) => {
|
|
626
|
+
const q = parseInt(k, 10);
|
|
627
|
+
return ($[q - 1] ?? "").toUpperCase();
|
|
687
628
|
});
|
|
688
629
|
});
|
|
689
630
|
}
|
|
690
631
|
}
|
|
691
632
|
}
|
|
692
|
-
return
|
|
633
|
+
return a;
|
|
693
634
|
};
|
|
694
|
-
return S(
|
|
635
|
+
return S(n) ? n.map(m) : m(n);
|
|
695
636
|
}
|
|
696
|
-
function
|
|
637
|
+
function nt(t) {
|
|
697
638
|
return t.replace(/<\/?[^>]+(>|$)/g, "");
|
|
698
639
|
}
|
|
699
|
-
function
|
|
700
|
-
const r = typeof t == "string" ? [t] : Array.from(t), s = (c) => c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"),
|
|
701
|
-
let
|
|
640
|
+
function Xt(t, e, n = !0) {
|
|
641
|
+
const r = typeof t == "string" ? [t] : Array.from(t), s = (c) => c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), o = (c) => {
|
|
642
|
+
let i = c;
|
|
702
643
|
for (const l of r)
|
|
703
644
|
if (l !== "")
|
|
704
|
-
if (
|
|
705
|
-
|
|
645
|
+
if (n)
|
|
646
|
+
i = i.split(l).join("");
|
|
706
647
|
else {
|
|
707
|
-
const
|
|
708
|
-
|
|
648
|
+
const f = new RegExp(s(l), "gi");
|
|
649
|
+
i = i.replace(f, "");
|
|
709
650
|
}
|
|
710
|
-
return
|
|
651
|
+
return i;
|
|
711
652
|
};
|
|
712
|
-
return typeof
|
|
653
|
+
return typeof e == "string" ? o(e) : Array.from(e, (c) => o(String(c)));
|
|
713
654
|
}
|
|
714
|
-
function
|
|
655
|
+
function Yt(t) {
|
|
715
656
|
return Array.from(t).reverse().join("");
|
|
716
657
|
}
|
|
717
|
-
function
|
|
718
|
-
const
|
|
719
|
-
return
|
|
658
|
+
function vt(t, e) {
|
|
659
|
+
const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
660
|
+
return e + t.replace(new RegExp(`^(?:${n})+`, "u"), "");
|
|
720
661
|
}
|
|
721
|
-
function
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
662
|
+
function te(t) {
|
|
663
|
+
const e = String(t).trim();
|
|
664
|
+
if (e === "")
|
|
724
665
|
return "";
|
|
725
|
-
let
|
|
726
|
-
return
|
|
666
|
+
let n = e.split(/\s+/u);
|
|
667
|
+
return n.length > 1 ? n = n.map((s) => j(s)) : n = ot(n.join("_")).map((s) => j(s)), n.join("_").replace(/[-_ ]+/gu, "_").split("_").filter((s) => s.length > 0).join(" ");
|
|
727
668
|
}
|
|
728
|
-
function
|
|
669
|
+
function ee(t) {
|
|
729
670
|
if (t.trim() === "")
|
|
730
671
|
return t;
|
|
731
|
-
const
|
|
672
|
+
const e = /* @__PURE__ */ new Set([
|
|
732
673
|
"and",
|
|
733
674
|
"as",
|
|
734
675
|
"but",
|
|
@@ -764,365 +705,273 @@ function $n(t) {
|
|
|
764
705
|
"des",
|
|
765
706
|
"par",
|
|
766
707
|
"à"
|
|
767
|
-
]),
|
|
768
|
-
if (!
|
|
769
|
-
const c = Array.from(
|
|
770
|
-
return
|
|
708
|
+
]), n = /* @__PURE__ */ new Set([".", "!", "?", ":", "—", ","]), r = t.split(/\s+/u), s = (o) => {
|
|
709
|
+
if (!o) return o;
|
|
710
|
+
const c = Array.from(o), i = c[0].toLocaleUpperCase(), l = c.slice(1).join("");
|
|
711
|
+
return i + l;
|
|
771
712
|
};
|
|
772
|
-
for (let
|
|
773
|
-
const c = r[
|
|
713
|
+
for (let o = 0; o < r.length; o++) {
|
|
714
|
+
const c = r[o].toLocaleLowerCase();
|
|
774
715
|
if (c.includes("-")) {
|
|
775
|
-
const l = c.split("-").map((
|
|
776
|
-
r[
|
|
716
|
+
const l = c.split("-").map((f) => e.has(f) && f.length <= 3 ? f : s(f));
|
|
717
|
+
r[o] = l.join("-");
|
|
777
718
|
} else {
|
|
778
|
-
const
|
|
779
|
-
|
|
719
|
+
const i = o > 0 ? r[o - 1] : "", l = i ? Array.from(i).slice(-1)[0] : void 0, f = o === 0 || l !== void 0 && n.has(l);
|
|
720
|
+
e.has(c) && c.length <= 3 && !f ? r[o] = c : r[o] = s(c);
|
|
780
721
|
}
|
|
781
722
|
}
|
|
782
723
|
return r.join(" ");
|
|
783
724
|
}
|
|
784
|
-
function
|
|
785
|
-
const r =
|
|
786
|
-
let
|
|
725
|
+
function ne(t, e = "-", n = { "@": "at" }) {
|
|
726
|
+
const r = e, s = (u) => u.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), o = (u) => u.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), c = (u) => {
|
|
727
|
+
let a = u;
|
|
787
728
|
const p = r === "-" ? "_" : "-";
|
|
788
729
|
{
|
|
789
730
|
const g = new RegExp(`[${s(p)}]+`, "gu");
|
|
790
|
-
|
|
731
|
+
a = a.replace(g, r);
|
|
791
732
|
}
|
|
792
|
-
if (
|
|
733
|
+
if (n && typeof n == "object") {
|
|
793
734
|
const g = {};
|
|
794
|
-
for (const [
|
|
795
|
-
g[
|
|
796
|
-
for (const [
|
|
797
|
-
|
|
735
|
+
for (const [h, d] of Object.entries(n))
|
|
736
|
+
g[h] = (r ?? "") + d + (r ?? "");
|
|
737
|
+
for (const [h, d] of Object.entries(g))
|
|
738
|
+
h !== "" && (a = a.split(h).join(d));
|
|
798
739
|
}
|
|
799
|
-
if (
|
|
800
|
-
return
|
|
740
|
+
if (a = U(a), r === "")
|
|
741
|
+
return a = a.replace(/[^\p{L}\p{N}\s]+/gu, ""), a = a.replace(/[\s]+/gu, ""), a;
|
|
801
742
|
{
|
|
802
743
|
const g = new RegExp(
|
|
803
744
|
`[^${s(r)}\\p{L}\\p{N}\\s]+`,
|
|
804
745
|
"gu"
|
|
805
746
|
);
|
|
806
|
-
|
|
807
|
-
const
|
|
747
|
+
a = a.replace(g, "");
|
|
748
|
+
const h = new RegExp(
|
|
808
749
|
`[${s(r)}\\s]+`,
|
|
809
750
|
"gu"
|
|
810
751
|
);
|
|
811
|
-
|
|
812
|
-
const
|
|
813
|
-
`^${
|
|
752
|
+
a = a.replace(h, r);
|
|
753
|
+
const d = new RegExp(
|
|
754
|
+
`^${o(r)}+|${o(r)}+$`,
|
|
814
755
|
"gu"
|
|
815
756
|
);
|
|
816
|
-
return
|
|
757
|
+
return a = a.replace(d, ""), a;
|
|
817
758
|
}
|
|
818
|
-
},
|
|
819
|
-
return Object.keys(
|
|
759
|
+
}, i = c(t), l = c(Z(t));
|
|
760
|
+
return Object.keys(n || {}).some((u) => /[A-Za-z0-9]/.test(u)) ? l : i;
|
|
820
761
|
}
|
|
821
|
-
function
|
|
822
|
-
const r = `${t}|${
|
|
823
|
-
if (
|
|
824
|
-
return
|
|
762
|
+
function rt(t, e = "_") {
|
|
763
|
+
const r = `${t}|${e}`;
|
|
764
|
+
if (R.has(r))
|
|
765
|
+
return R.get(r);
|
|
825
766
|
let s = t;
|
|
826
|
-
return /^[a-z]+$/.test(t) || (s =
|
|
767
|
+
return /^[a-z]+$/.test(t) || (s = it(t).replace(/\s+/gu, ""), s = s.replace(/(.)(?=[A-Z])/g, `$1${e}`), s = U(s)), R.set(r, s), s;
|
|
827
768
|
}
|
|
828
|
-
function
|
|
829
|
-
return
|
|
769
|
+
function re(t) {
|
|
770
|
+
return H(t).replace(/[\s\u3164\u1160]+/gu, " ");
|
|
830
771
|
}
|
|
831
|
-
function
|
|
832
|
-
if (t == null ||
|
|
772
|
+
function I(t, e) {
|
|
773
|
+
if (t == null || e == null)
|
|
833
774
|
return !1;
|
|
834
|
-
let
|
|
835
|
-
|
|
775
|
+
let n = [
|
|
776
|
+
e
|
|
836
777
|
];
|
|
837
|
-
typeof
|
|
778
|
+
typeof e == "string" || typeof e == "number" ? n = [e] : Symbol.iterator in Object(e) && (n = Array.from(e));
|
|
838
779
|
const r = String(t);
|
|
839
|
-
for (const s of
|
|
780
|
+
for (const s of n) {
|
|
840
781
|
if (s == null)
|
|
841
782
|
continue;
|
|
842
|
-
const
|
|
843
|
-
if (
|
|
783
|
+
const o = String(s);
|
|
784
|
+
if (o !== "" && r.startsWith(o))
|
|
844
785
|
return !0;
|
|
845
786
|
}
|
|
846
787
|
return !1;
|
|
847
788
|
}
|
|
848
|
-
function
|
|
849
|
-
return !
|
|
789
|
+
function se(t, e) {
|
|
790
|
+
return !I(t, e);
|
|
850
791
|
}
|
|
851
|
-
function
|
|
852
|
-
const
|
|
853
|
-
if (
|
|
854
|
-
return
|
|
855
|
-
const
|
|
792
|
+
function B(t) {
|
|
793
|
+
const e = t;
|
|
794
|
+
if (C.has(e))
|
|
795
|
+
return C.get(e);
|
|
796
|
+
const n = String(t).replace(/[-_]+/g, " "), r = n.trim() === "" ? [] : n.split(/\s+/u), s = (c) => {
|
|
856
797
|
if (!c) return c;
|
|
857
|
-
const
|
|
858
|
-
return l +
|
|
859
|
-
},
|
|
860
|
-
return
|
|
798
|
+
const i = Array.from(c), l = i[0].toUpperCase(), f = i.slice(1).join("");
|
|
799
|
+
return l + f;
|
|
800
|
+
}, o = r.map(s).join("");
|
|
801
|
+
return C.set(e, o), o;
|
|
861
802
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
803
|
+
function oe(t) {
|
|
804
|
+
return B(t);
|
|
864
805
|
}
|
|
865
|
-
function
|
|
806
|
+
function ie(t, e) {
|
|
866
807
|
if (!t || Object.keys(t).length === 0)
|
|
867
|
-
return
|
|
868
|
-
const
|
|
869
|
-
if (
|
|
870
|
-
return
|
|
871
|
-
|
|
872
|
-
const r = (
|
|
873
|
-
return
|
|
808
|
+
return e;
|
|
809
|
+
const n = Object.keys(t).filter((o) => o !== "");
|
|
810
|
+
if (n.length === 0)
|
|
811
|
+
return e;
|
|
812
|
+
n.sort((o, c) => c.length - o.length);
|
|
813
|
+
const r = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(n.map(r).join("|"), "gu");
|
|
814
|
+
return e.replace(s, (o) => t[o] ?? o);
|
|
874
815
|
}
|
|
875
|
-
function
|
|
876
|
-
return
|
|
816
|
+
function ce(t, e) {
|
|
817
|
+
return e < 0 ? x(t, e) : x(t, 0, e);
|
|
877
818
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
819
|
+
function st(t) {
|
|
820
|
+
return U(x(t, 0, 1)) + x(t, 1);
|
|
880
821
|
}
|
|
881
|
-
function
|
|
882
|
-
return
|
|
822
|
+
function le(t) {
|
|
823
|
+
return V(x(t, 0, 1)) + x(t, 1);
|
|
883
824
|
}
|
|
884
|
-
function
|
|
825
|
+
function ot(t) {
|
|
885
826
|
return t.split(new RegExp("(?=\\p{Lu})", "u")).filter(Boolean);
|
|
886
827
|
}
|
|
887
|
-
function
|
|
828
|
+
function it(t, e = ` \r
|
|
888
829
|
\f\v`) {
|
|
889
|
-
const
|
|
890
|
-
return t.replace(c, (
|
|
830
|
+
const n = S(e) ? e.join("") : e, r = (i) => i.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), s = n.length ? r(n) : "", o = s.length ? `(?:\\s|[${s}])` : "\\s", c = new RegExp(`(^|${o})(\\p{Ll})`, "gu");
|
|
831
|
+
return t.replace(c, (i, l, f) => l + f.toUpperCase());
|
|
891
832
|
}
|
|
892
|
-
function
|
|
893
|
-
const
|
|
833
|
+
function fe(t, e = null) {
|
|
834
|
+
const n = e && e.length > 0 ? e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&") : "", r = n.length > 0 ? new RegExp(`[\\p{L}\\p{N}${n}]+`, "gu") : /[\p{L}\p{N}]+/gu, s = t.match(r);
|
|
894
835
|
return s ? s.length : 0;
|
|
895
836
|
}
|
|
896
|
-
function
|
|
837
|
+
function ae(t, e = 75, n = `
|
|
897
838
|
`, r = !1) {
|
|
898
|
-
if (t.length === 0 ||
|
|
839
|
+
if (t.length === 0 || e < 1 || n === "")
|
|
899
840
|
return t;
|
|
900
|
-
const s = t.split(/\r\n|\n|\r/),
|
|
841
|
+
const s = t.split(/\r\n|\n|\r/), o = [];
|
|
901
842
|
for (const c of s) {
|
|
902
|
-
let
|
|
903
|
-
if (
|
|
904
|
-
|
|
843
|
+
let i = c;
|
|
844
|
+
if (i.length === 0) {
|
|
845
|
+
o.push("");
|
|
905
846
|
continue;
|
|
906
847
|
}
|
|
907
848
|
if (r) {
|
|
908
|
-
for (;
|
|
909
|
-
if (
|
|
910
|
-
|
|
849
|
+
for (; i.length > 0 && !(/^\s/u.test(i) && (i = i.replace(/^\s+/u, ""), i.length === 0)); ) {
|
|
850
|
+
if (i.length <= e) {
|
|
851
|
+
o.push(i), i = "";
|
|
911
852
|
break;
|
|
912
853
|
}
|
|
913
|
-
let l =
|
|
914
|
-
l = l.replace(/\s+$/u, ""),
|
|
854
|
+
let l = i.slice(0, e);
|
|
855
|
+
l = l.replace(/\s+$/u, ""), o.push(l), i = i.slice(e).replace(/^\s+/u, "");
|
|
915
856
|
}
|
|
916
857
|
continue;
|
|
917
858
|
}
|
|
918
|
-
for (;
|
|
919
|
-
const l =
|
|
920
|
-
if (l.length !==
|
|
859
|
+
for (; i.length > e; ) {
|
|
860
|
+
const l = i.replace(/^\s+/u, "");
|
|
861
|
+
if (l.length !== i.length && (i = l, i.length <= e))
|
|
921
862
|
break;
|
|
922
|
-
const
|
|
863
|
+
const f = i.slice(0, e + 1);
|
|
923
864
|
let m = -1;
|
|
924
|
-
for (let
|
|
925
|
-
if (/\s/u.test(a
|
|
926
|
-
m =
|
|
865
|
+
for (let a = f.length - 1; a >= 0; a--)
|
|
866
|
+
if (/\s/u.test(f[a])) {
|
|
867
|
+
m = a;
|
|
927
868
|
break;
|
|
928
869
|
}
|
|
929
870
|
if (m > 0) {
|
|
930
|
-
|
|
871
|
+
o.push(i.slice(0, m)), i = i.slice(m + 1);
|
|
931
872
|
continue;
|
|
932
873
|
}
|
|
933
|
-
const
|
|
934
|
-
if (
|
|
935
|
-
|
|
874
|
+
const u = i.search(/\s/u);
|
|
875
|
+
if (u >= 0) {
|
|
876
|
+
o.push(i.slice(0, u)), i = i.slice(u + 1);
|
|
936
877
|
continue;
|
|
937
878
|
}
|
|
938
|
-
|
|
879
|
+
o.push(i), i = "";
|
|
939
880
|
break;
|
|
940
881
|
}
|
|
941
|
-
|
|
942
|
-
}
|
|
943
|
-
return i.join(e);
|
|
944
|
-
}
|
|
945
|
-
function B() {
|
|
946
|
-
return $ ? $() : P().v4();
|
|
947
|
-
}
|
|
948
|
-
function Nn() {
|
|
949
|
-
return $ ? $() : P().v7();
|
|
950
|
-
}
|
|
951
|
-
function H(t = null) {
|
|
952
|
-
$ = t;
|
|
953
|
-
}
|
|
954
|
-
function zn(t, n = null) {
|
|
955
|
-
let e = 0;
|
|
956
|
-
n ??= function() {
|
|
957
|
-
const r = $;
|
|
958
|
-
$ = null;
|
|
959
|
-
const s = B();
|
|
960
|
-
return $ = r, e++, s;
|
|
961
|
-
}, H(function() {
|
|
962
|
-
return e < t.length ? t[e++] : n();
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
function _n(t = null) {
|
|
966
|
-
const n = B();
|
|
967
|
-
if (H(() => n), t !== null)
|
|
968
|
-
try {
|
|
969
|
-
t(n);
|
|
970
|
-
} finally {
|
|
971
|
-
St();
|
|
972
|
-
}
|
|
973
|
-
return n;
|
|
974
|
-
}
|
|
975
|
-
function St() {
|
|
976
|
-
$ = null;
|
|
977
|
-
}
|
|
978
|
-
function V(t = null) {
|
|
979
|
-
if (L)
|
|
980
|
-
return L();
|
|
981
|
-
const n = ot();
|
|
982
|
-
if (t == null)
|
|
983
|
-
return n();
|
|
984
|
-
let e;
|
|
985
|
-
t instanceof Date ? e = t.getTime() : e = t;
|
|
986
|
-
const r = Date.now;
|
|
987
|
-
try {
|
|
988
|
-
return Date.now = () => e, n();
|
|
989
|
-
} finally {
|
|
990
|
-
Date.now = r;
|
|
882
|
+
i.length > 0 && o.push(i);
|
|
991
883
|
}
|
|
884
|
+
return o.join(n);
|
|
992
885
|
}
|
|
993
|
-
function
|
|
994
|
-
|
|
995
|
-
}
|
|
996
|
-
function Q(t = null) {
|
|
997
|
-
L = t;
|
|
998
|
-
}
|
|
999
|
-
function Mn(t, n = null) {
|
|
1000
|
-
let e = 0;
|
|
1001
|
-
n ??= function() {
|
|
1002
|
-
const r = L;
|
|
1003
|
-
L = null;
|
|
1004
|
-
const s = V();
|
|
1005
|
-
return L = r, e++, s;
|
|
1006
|
-
}, Q(function() {
|
|
1007
|
-
return e < t.length ? t[e++] : n();
|
|
1008
|
-
});
|
|
1009
|
-
}
|
|
1010
|
-
function On(t = null) {
|
|
1011
|
-
const n = V();
|
|
1012
|
-
if (Q(() => n), t !== null)
|
|
1013
|
-
try {
|
|
1014
|
-
t(n);
|
|
1015
|
-
} finally {
|
|
1016
|
-
$t();
|
|
1017
|
-
}
|
|
1018
|
-
return n;
|
|
886
|
+
function ue() {
|
|
887
|
+
return R.size;
|
|
1019
888
|
}
|
|
1020
|
-
function
|
|
889
|
+
function pe() {
|
|
1021
890
|
return E.size;
|
|
1022
891
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return
|
|
1025
|
-
}
|
|
1026
|
-
function Pn() {
|
|
1027
|
-
return U.size;
|
|
892
|
+
function ge() {
|
|
893
|
+
return C.size;
|
|
1028
894
|
}
|
|
1029
|
-
function
|
|
1030
|
-
|
|
895
|
+
function me() {
|
|
896
|
+
R.clear(), E.clear(), C.clear();
|
|
1031
897
|
}
|
|
1032
898
|
export {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
St as createUuidsNormally,
|
|
1055
|
-
H as createUuidsUsing,
|
|
1056
|
-
zn as createUuidsUsingSequence,
|
|
1057
|
-
It as deduplicate,
|
|
1058
|
-
Ot as doesntContain,
|
|
1059
|
-
qt as doesntEndWith,
|
|
1060
|
-
Ln as doesntStartWith,
|
|
899
|
+
K as after,
|
|
900
|
+
at as afterLast,
|
|
901
|
+
ee as apa,
|
|
902
|
+
Q as before,
|
|
903
|
+
X as beforeLast,
|
|
904
|
+
ut as between,
|
|
905
|
+
pt as betweenFirst,
|
|
906
|
+
gt as camel,
|
|
907
|
+
pe as camelCacheSize,
|
|
908
|
+
mt as charAt,
|
|
909
|
+
dt as chopEnd,
|
|
910
|
+
ht as chopStart,
|
|
911
|
+
T as contains,
|
|
912
|
+
wt as containsAll,
|
|
913
|
+
Tt as createRandomStringsNormally,
|
|
914
|
+
v as createRandomStringsUsing,
|
|
915
|
+
Kt as createRandomStringsUsingSequence,
|
|
916
|
+
St as deduplicate,
|
|
917
|
+
xt as doesntContain,
|
|
918
|
+
$t as doesntEndWith,
|
|
919
|
+
se as doesntStartWith,
|
|
1061
920
|
W as endsWith,
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
wt as ucsplit,
|
|
1119
|
-
xt as ucwords,
|
|
1120
|
-
V as ulid,
|
|
1121
|
-
Tt as unwrap,
|
|
1122
|
-
B as uuid,
|
|
1123
|
-
Nn as uuid7,
|
|
1124
|
-
Fn as wordCount,
|
|
1125
|
-
Un as wordWrap,
|
|
1126
|
-
Bt as words,
|
|
1127
|
-
Wt as wrap
|
|
921
|
+
yt as excerpt,
|
|
922
|
+
kt as finish,
|
|
923
|
+
me as flushCache,
|
|
924
|
+
te as headline,
|
|
925
|
+
Lt as is,
|
|
926
|
+
Rt as isAscii,
|
|
927
|
+
Et as isJson,
|
|
928
|
+
Mt as isMatch,
|
|
929
|
+
Ct as isUrl,
|
|
930
|
+
Ft as kebab,
|
|
931
|
+
st as lcfirst,
|
|
932
|
+
F as length,
|
|
933
|
+
zt as limit,
|
|
934
|
+
U as lower,
|
|
935
|
+
z as makePad,
|
|
936
|
+
Ot as mask,
|
|
937
|
+
Nt as match,
|
|
938
|
+
Wt as matchAll,
|
|
939
|
+
Ut as numbers,
|
|
940
|
+
It as padBoth,
|
|
941
|
+
qt as padLeft,
|
|
942
|
+
Gt as padRight,
|
|
943
|
+
oe as pascal,
|
|
944
|
+
Pt as password,
|
|
945
|
+
jt as position,
|
|
946
|
+
Y as random,
|
|
947
|
+
Xt as remove,
|
|
948
|
+
Bt as repeat,
|
|
949
|
+
Ht as replace,
|
|
950
|
+
Jt as replaceArray,
|
|
951
|
+
Dt as replaceEnd,
|
|
952
|
+
tt as replaceFirst,
|
|
953
|
+
et as replaceLast,
|
|
954
|
+
Qt as replaceMatches,
|
|
955
|
+
Vt as replaceStart,
|
|
956
|
+
Yt as reverse,
|
|
957
|
+
ne as slug,
|
|
958
|
+
rt as snake,
|
|
959
|
+
ue as snakeCacheSize,
|
|
960
|
+
re as squish,
|
|
961
|
+
vt as start,
|
|
962
|
+
I as startsWith,
|
|
963
|
+
nt as stripTags,
|
|
964
|
+
B as studly,
|
|
965
|
+
ge as studlyCacheSize,
|
|
966
|
+
ie as swap,
|
|
967
|
+
ce as take,
|
|
968
|
+
Zt as toStringOr,
|
|
969
|
+
le as ucfirst,
|
|
970
|
+
ot as ucsplit,
|
|
971
|
+
it as ucwords,
|
|
972
|
+
bt as unwrap,
|
|
973
|
+
fe as wordCount,
|
|
974
|
+
ae as wordWrap,
|
|
975
|
+
_t as words,
|
|
976
|
+
At as wrap
|
|
1128
977
|
};
|