@naturalcycles/internal-web-lib 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/analyticsClient.js +19 -19
- package/bundle/analyticsClient.js.map +1 -1
- package/bundle/conversionClient.js +17 -17
- package/bundle/conversionClient.js.map +1 -1
- package/bundle/cookieMonster.js +169 -137
- package/bundle/cookieMonster.js.map +1 -1
- package/dist/cookie-monster/css/shared-sheets.js +1 -1
- package/dist/cookie-monster/utils/translationsService.d.ts +2 -2
- package/dist/cookie-monster/utils/translationsService.js +5 -5
- package/dist/node_modules/.pnpm/{@naturalcycles_ncuikit@1.15.0_react@19.3.0_undici@8.11.2 → @naturalcycles_ncuikit@1.17.0_react@19.3.1_undici@8.12.1}/node_modules/@naturalcycles/ncuikit/dist/styles/_palette.js +1 -1
- package/package.json +2 -2
|
@@ -9,7 +9,7 @@ function t() {
|
|
|
9
9
|
return e();
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
12
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/is.util.js
|
|
13
13
|
var n = (e) => !!e;
|
|
14
14
|
function r(e) {
|
|
15
15
|
return typeof e == "object" && !!e && !Array.isArray(e) || !1;
|
|
@@ -25,7 +25,7 @@ function i(e) {
|
|
|
25
25
|
return !1;
|
|
26
26
|
}
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
28
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/abort.js
|
|
29
29
|
function a(e) {
|
|
30
30
|
return e ? o(e) : void 0;
|
|
31
31
|
}
|
|
@@ -55,7 +55,7 @@ function u(e) {
|
|
|
55
55
|
return t.signal;
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
58
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/log/commonLogger.js
|
|
59
59
|
function d(e, t) {
|
|
60
60
|
let n = (n, [r, i]) => e({
|
|
61
61
|
...t?.(),
|
|
@@ -116,7 +116,7 @@ var f = d(({ level: e, msg: t, err: n, ...r }) => {
|
|
|
116
116
|
}
|
|
117
117
|
}(), m = p.runInBackground.bind(p), te = (...e) => void 0, h = Object.entries;
|
|
118
118
|
//#endregion
|
|
119
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
119
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/object/object.util.js
|
|
120
120
|
function g(e, t, n = {}) {
|
|
121
121
|
if (n.mutate) {
|
|
122
122
|
for (let n of Object.keys(e)) t.includes(n) || delete e[n];
|
|
@@ -166,7 +166,7 @@ function S(e, ...t) {
|
|
|
166
166
|
return e;
|
|
167
167
|
}
|
|
168
168
|
//#endregion
|
|
169
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
169
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/env.js
|
|
170
170
|
function C() {
|
|
171
171
|
return !ie();
|
|
172
172
|
}
|
|
@@ -174,7 +174,7 @@ function ie() {
|
|
|
174
174
|
return typeof window < "u" && !!window?.document;
|
|
175
175
|
}
|
|
176
176
|
//#endregion
|
|
177
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
177
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/json.util.js
|
|
178
178
|
var ae = /^\s*[{["\-\d]/;
|
|
179
179
|
function w(e, t) {
|
|
180
180
|
if (typeof e == "string" && e && ae.test(e)) try {
|
|
@@ -190,7 +190,7 @@ function oe(e, t) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
193
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/string.util.js
|
|
194
194
|
function T(e, t, n = "...") {
|
|
195
195
|
if (!e || e.length <= t) return e;
|
|
196
196
|
if (t <= n.length) return n;
|
|
@@ -202,7 +202,7 @@ function E(e, t) {
|
|
|
202
202
|
return e.slice(0, n === -1 ? void 0 : n);
|
|
203
203
|
}
|
|
204
204
|
//#endregion
|
|
205
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
205
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/error/error.util.js
|
|
206
206
|
function D(e, t = Error, n) {
|
|
207
207
|
let r;
|
|
208
208
|
return r = e instanceof t ? e : se(O(e), t), n && (r.data ||= {}, Object.assign(r.data, n)), r;
|
|
@@ -342,7 +342,7 @@ var P = class e extends Error {
|
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
344
|
//#endregion
|
|
345
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
345
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/safeJsonStringify.js
|
|
346
346
|
function R(e, t, n, r) {
|
|
347
347
|
try {
|
|
348
348
|
return JSON.stringify(e, t, n);
|
|
@@ -361,7 +361,7 @@ function z(e, t) {
|
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
363
|
//#endregion
|
|
364
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
364
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/stringify.js
|
|
365
365
|
var B = typeof globalThis.AggregateError == "function", V = R;
|
|
366
366
|
function H(e, t = {}) {
|
|
367
367
|
if (e === void 0) return "undefined";
|
|
@@ -399,7 +399,7 @@ function U(e, t) {
|
|
|
399
399
|
].join("\n")), e.cause && n && (r = r + "\nCaused by: " + H(e.cause, t)), r;
|
|
400
400
|
}
|
|
401
401
|
//#endregion
|
|
402
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
402
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/error/assert.js
|
|
403
403
|
function W(e, t = Error) {
|
|
404
404
|
if (!(e instanceof t)) throw new ce(`Expected to be instanceof ${t.name}, actual typeof: ${typeof e}`);
|
|
405
405
|
}
|
|
@@ -407,7 +407,7 @@ function ue(e, t) {
|
|
|
407
407
|
if (!(e instanceof t)) throw e;
|
|
408
408
|
}
|
|
409
409
|
//#endregion
|
|
410
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
410
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/promise/pDelay.js
|
|
411
411
|
async function de(e, t) {
|
|
412
412
|
t?.aborted || await new Promise((n) => {
|
|
413
413
|
let r = setTimeout(i, e);
|
|
@@ -418,7 +418,7 @@ async function de(e, t) {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
//#endregion
|
|
421
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
421
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/datetime/time.util.js
|
|
422
422
|
function G(e, t = Date.now()) {
|
|
423
423
|
return K(t - e);
|
|
424
424
|
}
|
|
@@ -429,12 +429,12 @@ function K(e) {
|
|
|
429
429
|
return r === 0 ? n === 0 ? `${t} sec` : `${n}m${t}s` : r < 24 ? `${r}h${n}m` : r < 48 ? `${Math.round(r + n / 60)}h` : `${Math.floor(r / 24)} days`;
|
|
430
430
|
}
|
|
431
431
|
//#endregion
|
|
432
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
432
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/number/number.util.js
|
|
433
433
|
function fe(e, t, n) {
|
|
434
434
|
return e <= t ? t : e >= n ? n : e;
|
|
435
435
|
}
|
|
436
436
|
//#endregion
|
|
437
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
437
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/promise/pTimeout.js
|
|
438
438
|
async function pe(e, t) {
|
|
439
439
|
let n = new AbortController(), { signal: r } = n;
|
|
440
440
|
if (!t.timeout) return await e(r);
|
|
@@ -461,7 +461,7 @@ async function pe(e, t) {
|
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
463
|
//#endregion
|
|
464
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
464
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/string/url.util.js
|
|
465
465
|
function me(e, t) {
|
|
466
466
|
if (typeof e != "string") return null;
|
|
467
467
|
try {
|
|
@@ -471,7 +471,7 @@ function me(e, t) {
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
//#endregion
|
|
474
|
-
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.
|
|
474
|
+
//#region ../../node_modules/.pnpm/@naturalcycles+js-lib@15.93.1_undici@8.12.1/node_modules/@naturalcycles/js-lib/dist/http/http.model.js
|
|
475
475
|
var he = [
|
|
476
476
|
"GET",
|
|
477
477
|
"POST",
|