@endge/utils 0.24.11 → 0.24.12
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.ts +6 -0
- package/dist/utils.js +288 -250
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -610,6 +610,9 @@ export declare interface ISerializable {
|
|
|
610
610
|
|
|
611
611
|
export declare function isNullOrUndefined<T>(value: T | null | undefined): value is null | undefined;
|
|
612
612
|
|
|
613
|
+
/** Formats a DateTime as `HH:mm` in the configured IANA timezone or browser-local timezone. */
|
|
614
|
+
export declare function isoDateTimeToTimeInput(value: unknown, timezone?: unknown): string;
|
|
615
|
+
|
|
613
616
|
export declare function IsOptionalTransformed(validationOptions?: ValidationOptions): (object: object, propertyName: string) => void;
|
|
614
617
|
|
|
615
618
|
export declare function isoToDateInput(value: unknown): string;
|
|
@@ -675,6 +678,9 @@ export declare type Maybe<T> = T | null | undefined;
|
|
|
675
678
|
*/
|
|
676
679
|
export declare type MaybeArray<T> = T | Array<T>;
|
|
677
680
|
|
|
681
|
+
/** Replaces only hours and minutes while preserving the DateTime calendar date in the selected timezone. */
|
|
682
|
+
export declare function mergeTimeIntoDateTime(value: unknown, time: unknown, timezone?: unknown): string | null;
|
|
683
|
+
|
|
678
684
|
/**
|
|
679
685
|
* Описывает ответственность NamedExecutor в архитектуре проекта.
|
|
680
686
|
*/
|
package/dist/utils.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (r, t, e) =>
|
|
4
|
-
import { ref as b, watch as
|
|
5
|
-
import { parse as
|
|
6
|
-
import { destr as
|
|
7
|
-
import { plainToInstance as w, instanceToPlain as x, Transform as f, TransformationType as m, Expose as
|
|
8
|
-
import { IsOptional as
|
|
1
|
+
var W = Object.defineProperty;
|
|
2
|
+
var Y = (r, t, e) => t in r ? W(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var o = (r, t, e) => Y(r, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as b, watch as H, triggerRef as R, onScopeDispose as q, reactive as Q } from "vue";
|
|
5
|
+
import { parse as X, serialize as k } from "cookie-es";
|
|
6
|
+
import { destr as v } from "destr";
|
|
7
|
+
import { plainToInstance as w, instanceToPlain as x, Transform as f, TransformationType as m, Expose as tt } from "class-transformer";
|
|
8
|
+
import { IsOptional as et } from "class-validator";
|
|
9
9
|
import "reflect-metadata";
|
|
10
|
-
import
|
|
11
|
-
import { v4 as
|
|
12
|
-
import { DateTime as
|
|
13
|
-
import { differenceInSeconds as
|
|
14
|
-
import { utcToZonedTime as
|
|
15
|
-
import { fetchEventSource as
|
|
16
|
-
import { defineStore as
|
|
17
|
-
const
|
|
10
|
+
import rt from "lodash/debounce.js";
|
|
11
|
+
import { v4 as nt } from "uuid";
|
|
12
|
+
import { DateTime as it } from "ts-luxon";
|
|
13
|
+
import { differenceInSeconds as U, format as S, differenceInCalendarDays as st, isAfter as E, isEqual as ot, isBefore as K, startOfDay as g, endOfDay as at } from "date-fns";
|
|
14
|
+
import { utcToZonedTime as A, getTimezoneOffset as D, zonedTimeToUtc as ct } from "date-fns-tz";
|
|
15
|
+
import { fetchEventSource as lt, EventStreamContentType as ut } from "@microsoft/fetch-event-source";
|
|
16
|
+
import { defineStore as ft } from "pinia";
|
|
17
|
+
const dt = {
|
|
18
18
|
path: "/",
|
|
19
19
|
watch: !0,
|
|
20
|
-
decode: (r) =>
|
|
20
|
+
decode: (r) => v(decodeURIComponent(r)),
|
|
21
21
|
encode: (r) => encodeURIComponent(typeof r == "string" ? r : JSON.stringify(r))
|
|
22
|
-
},
|
|
22
|
+
}, Ut = (r, t) => {
|
|
23
23
|
var s;
|
|
24
|
-
const e = { ...
|
|
25
|
-
return
|
|
26
|
-
document.cookie =
|
|
24
|
+
const e = { ...dt, ...t || {} }, n = X(document.cookie, e), i = b(n[r] ?? ((s = e.default) == null ? void 0 : s.call(e)));
|
|
25
|
+
return H(i, () => {
|
|
26
|
+
document.cookie = ht(r, i.value, e);
|
|
27
27
|
}), i;
|
|
28
28
|
};
|
|
29
|
-
function
|
|
30
|
-
return t == null ?
|
|
29
|
+
function ht(r, t, e = {}) {
|
|
30
|
+
return t == null ? k(r, t, { ...e, maxAge: -1 }) : k(r, t, e);
|
|
31
31
|
}
|
|
32
32
|
var y = /* @__PURE__ */ ((r) => (r.Add = "add", r.Remove = "remove", r.Update = "update", r.IndexCreate = "indexCreate", r))(y || {});
|
|
33
|
-
class
|
|
33
|
+
class j {
|
|
34
34
|
/**
|
|
35
35
|
* Создает экземпляр EventBus и подготавливает базовое состояние.
|
|
36
36
|
*/
|
|
@@ -156,8 +156,8 @@ class K {
|
|
|
156
156
|
t ? (e = this.listeners.get(t)) == null || e.clear() : this.listeners.clear();
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
class
|
|
159
|
+
const Kt = new j(Object.keys({}));
|
|
160
|
+
class B {
|
|
161
161
|
constructor() {
|
|
162
162
|
o(this, "subscribers", /* @__PURE__ */ new Set());
|
|
163
163
|
}
|
|
@@ -178,18 +178,18 @@ class j {
|
|
|
178
178
|
this.subscribers.forEach((t) => t());
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const jt = (r) => {
|
|
182
182
|
const t = b(r), e = r.subscribe(() => {
|
|
183
183
|
R(t);
|
|
184
184
|
});
|
|
185
185
|
return { refObj: t, unsubscribe: e };
|
|
186
|
-
},
|
|
186
|
+
}, Bt = (r) => {
|
|
187
187
|
const t = b(r), e = r.subscribe(() => R(t));
|
|
188
|
-
return
|
|
188
|
+
return q(() => {
|
|
189
189
|
e();
|
|
190
190
|
}), t;
|
|
191
191
|
};
|
|
192
|
-
class
|
|
192
|
+
class Jt extends B {
|
|
193
193
|
/**
|
|
194
194
|
* Создает экземпляр Collection и подготавливает базовое состояние.
|
|
195
195
|
*/
|
|
@@ -199,7 +199,7 @@ class Kt extends j {
|
|
|
199
199
|
o(this, "indices", /* @__PURE__ */ new Map());
|
|
200
200
|
o(this, "rootIds", /* @__PURE__ */ new Set());
|
|
201
201
|
o(this, "bus");
|
|
202
|
-
this.bus = new
|
|
202
|
+
this.bus = new j(Object.values(y)), e.length && this.add(e), this.createIndex("id");
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
205
205
|
* Выполняет действие add в рамках ответственности Collection.
|
|
@@ -221,8 +221,8 @@ class Kt extends j {
|
|
|
221
221
|
const a = typeof s == "string" ? s : s.id, u = this.items.findIndex((l) => l.id === a);
|
|
222
222
|
if (u !== -1) {
|
|
223
223
|
const [l] = this.items.splice(u, 1);
|
|
224
|
-
this.indices.forEach((c,
|
|
225
|
-
c.delete(l[
|
|
224
|
+
this.indices.forEach((c, h) => {
|
|
225
|
+
c.delete(l[h]);
|
|
226
226
|
}), l.parentId || this.rootIds.delete(l.id), i.push(l);
|
|
227
227
|
}
|
|
228
228
|
}), i.length && (this.bus.emit(y.Remove, i), this.notify());
|
|
@@ -286,7 +286,7 @@ class Kt extends j {
|
|
|
286
286
|
this.bus.off(e, n);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
class
|
|
289
|
+
class Vt {
|
|
290
290
|
/**
|
|
291
291
|
* Создает экземпляр IndexedCollection и подготавливает базовое состояние.
|
|
292
292
|
*/
|
|
@@ -516,7 +516,7 @@ class jt {
|
|
|
516
516
|
this.list.pop(), this.indexById.delete(t);
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
class
|
|
519
|
+
class Gt {
|
|
520
520
|
constructor(t) {
|
|
521
521
|
o(this, "_cap");
|
|
522
522
|
o(this, "_buf");
|
|
@@ -547,7 +547,7 @@ class Bt {
|
|
|
547
547
|
return t;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
class
|
|
550
|
+
class Zt {
|
|
551
551
|
constructor(t) {
|
|
552
552
|
o(this, "baseUrl");
|
|
553
553
|
this.baseUrl = t.baseUrl.replace(/\/+$/, "");
|
|
@@ -619,7 +619,7 @@ class Jt {
|
|
|
619
619
|
return await n.json().catch(() => ({}));
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
class
|
|
622
|
+
class Wt {
|
|
623
623
|
/**
|
|
624
624
|
* Создает экземпляр DelayedExecutor и подготавливает базовое состояние.
|
|
625
625
|
*/
|
|
@@ -659,14 +659,14 @@ class Vt {
|
|
|
659
659
|
this.delayTimer && clearTimeout(this.delayTimer), this.maxTimer && clearTimeout(this.maxTimer), this.delayTimer = null, this.maxTimer = null;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function I(r) {
|
|
663
663
|
var t;
|
|
664
664
|
return r == null ? String(r) : typeof r == "string" ? `string(${r.length})` : typeof r != "object" ? `${typeof r}(${String(r)})` : Array.isArray(r) ? `Array(${r.length})` : r instanceof Map ? `Map(${r.size})` : r instanceof Set ? `Set(${r.size})` : ((t = r.constructor) == null ? void 0 : t.name) || "Object";
|
|
665
665
|
}
|
|
666
666
|
function T(r) {
|
|
667
|
-
return r instanceof Error ? `${r.name}: ${r.message}` :
|
|
667
|
+
return r instanceof Error ? `${r.name}: ${r.message}` : I(r);
|
|
668
668
|
}
|
|
669
|
-
class
|
|
669
|
+
class Yt {
|
|
670
670
|
/**
|
|
671
671
|
* Создает экземпляр NamedExecutor и подготавливает базовое состояние.
|
|
672
672
|
*/
|
|
@@ -727,68 +727,68 @@ class Gt {
|
|
|
727
727
|
clearTimeout(this.delayTimers.get(t)), clearTimeout(this.maxTimers.get(t)), this.delayTimers.delete(t), this.maxTimers.delete(t), this.callbacks.delete(t), this.firstCallTime.delete(t);
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function qt(r, t) {
|
|
731
731
|
return w(r, t, {
|
|
732
732
|
exposeDefaultValues: !0,
|
|
733
733
|
excludeExtraneousValues: !0
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Qt(r) {
|
|
737
737
|
return x(r, {
|
|
738
738
|
exposeUnsetFields: !1
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Xt(r) {
|
|
742
742
|
return function(t, e) {
|
|
743
|
-
|
|
743
|
+
tt(r)(t, e), Reflect.defineMetadata("genericExpose", r.name, t, e);
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
const
|
|
747
|
-
function
|
|
746
|
+
const mt = Symbol("beforeSerialize");
|
|
747
|
+
function vt() {
|
|
748
748
|
return function(r, t, e) {
|
|
749
|
-
Reflect.defineMetadata(
|
|
749
|
+
Reflect.defineMetadata(mt, t, r);
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function te(r, t, e) {
|
|
753
753
|
r.__afterDeserializeMethods__ || (r.__afterDeserializeMethods__ = []), r.__afterDeserializeMethods__.push(t);
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function ee(r) {
|
|
756
756
|
return function(t, e) {
|
|
757
|
-
f(({ value: n }) => n === null ? void 0 : n, { toPlainOnly: !0 })(t, e),
|
|
757
|
+
f(({ value: n }) => n === null ? void 0 : n, { toPlainOnly: !0 })(t, e), et(r)(t, e);
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function re() {
|
|
761
761
|
return f(({ value: r, type: t }) => t === m.PLAIN_TO_CLASS ? r == null ? void 0 : r.id : r);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function ne(r) {
|
|
764
764
|
return f(({ value: t, type: e }) => e === m.PLAIN_TO_CLASS ? t == null ? void 0 : t.map((n) => n == null ? void 0 : n[r]) : t);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function ie() {
|
|
767
767
|
return f(({ value: r, type: t }) => t === m.CLASS_TO_PLAIN && (r == null ? void 0 : r.id) || r);
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function se() {
|
|
770
770
|
return f(({ value: r, type: t }) => t === m.CLASS_TO_PLAIN ? r.map((e) => e.id) : r);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function oe() {
|
|
773
773
|
return f(({ value: r, type: t }) => t === "classToPlain" ? void 0 : r, { toPlainOnly: !0 });
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function ae(r) {
|
|
776
776
|
return r == null;
|
|
777
777
|
}
|
|
778
|
-
const
|
|
779
|
-
function
|
|
778
|
+
const J = Symbol("onDeserialized");
|
|
779
|
+
function ce() {
|
|
780
780
|
return function(r, t) {
|
|
781
|
-
Reflect.defineMetadata(
|
|
781
|
+
Reflect.defineMetadata(J, t, r);
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function yt(r) {
|
|
785
785
|
const t = Reflect.getMetadata(
|
|
786
|
-
|
|
786
|
+
J,
|
|
787
787
|
r
|
|
788
788
|
);
|
|
789
789
|
return t ? r[t].bind(r) : null;
|
|
790
790
|
}
|
|
791
|
-
class
|
|
791
|
+
class le {
|
|
792
792
|
/**
|
|
793
793
|
* Выполняет действие toPlain в рамках ответственности Serialize.
|
|
794
794
|
*/
|
|
@@ -805,11 +805,11 @@ class oe {
|
|
|
805
805
|
const n = w(t, e, {
|
|
806
806
|
exposeDefaultValues: !0,
|
|
807
807
|
excludeExtraneousValues: !0
|
|
808
|
-
}), i =
|
|
808
|
+
}), i = yt(n);
|
|
809
809
|
return i && i(), n;
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function ue() {
|
|
813
813
|
return function(r, t) {
|
|
814
814
|
f(
|
|
815
815
|
({ value: e }) => {
|
|
@@ -834,7 +834,7 @@ function ae() {
|
|
|
834
834
|
)(r, t);
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
function
|
|
837
|
+
function fe() {
|
|
838
838
|
return function(r, t) {
|
|
839
839
|
f(
|
|
840
840
|
({ value: e }) => {
|
|
@@ -865,7 +865,7 @@ function ce() {
|
|
|
865
865
|
)(r, t);
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function de() {
|
|
869
869
|
return function(r, t) {
|
|
870
870
|
f(
|
|
871
871
|
({ value: e }) => typeof e == "string" ? e.trim() : String(e ?? ""),
|
|
@@ -876,7 +876,7 @@ function le() {
|
|
|
876
876
|
)(r, t);
|
|
877
877
|
};
|
|
878
878
|
}
|
|
879
|
-
function
|
|
879
|
+
function he(r, t) {
|
|
880
880
|
return f(({ value: e, type: n }) => e ? n === m.PLAIN_TO_CLASS ? Array.isArray(e) ? t ? new Map(
|
|
881
881
|
e.map((i) => {
|
|
882
882
|
const s = w(r, i);
|
|
@@ -889,9 +889,9 @@ function ue(r, t) {
|
|
|
889
889
|
const a = new r();
|
|
890
890
|
return Object.assign(a, s), [i, a];
|
|
891
891
|
})
|
|
892
|
-
) : (console.warn(`[TypeMap] Expected object or array, got ${
|
|
892
|
+
) : (console.warn(`[TypeMap] Expected object or array, got ${I(e)}`), /* @__PURE__ */ new Map()) : n === m.CLASS_TO_PLAIN ? e instanceof Map ? Array.from(e.values()).map((i) => x(i)) : (console.warn(`[TypeMap] Expected Map, got ${I(e)}`), t ? [] : {}) : (console.warn(`[TypeMap] Unexpected transformation type: ${String(n)}`), e) : /* @__PURE__ */ new Map());
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function me(r) {
|
|
895
895
|
return f(({ value: t, type: e }) => {
|
|
896
896
|
if (!t || typeof t != "object") return {};
|
|
897
897
|
if (e === m.PLAIN_TO_CLASS) {
|
|
@@ -909,7 +909,7 @@ function fe(r) {
|
|
|
909
909
|
return t;
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function ye(r, t, e = (s) => s, n = (s) => s, i = 300) {
|
|
913
913
|
let s = t;
|
|
914
914
|
const a = localStorage.getItem(r);
|
|
915
915
|
if (a)
|
|
@@ -919,7 +919,7 @@ function de(r, t, e = (s) => s, n = (s) => s, i = 300) {
|
|
|
919
919
|
} catch (c) {
|
|
920
920
|
console.error(`[useStorageDebounced] Failed to parse "${r}" (${a.length} chars): ${T(c)}`);
|
|
921
921
|
}
|
|
922
|
-
const u = b(s), l =
|
|
922
|
+
const u = b(s), l = rt(() => {
|
|
923
923
|
try {
|
|
924
924
|
const c = JSON.stringify(n(u.value));
|
|
925
925
|
localStorage.setItem(r, c);
|
|
@@ -927,7 +927,7 @@ function de(r, t, e = (s) => s, n = (s) => s, i = 300) {
|
|
|
927
927
|
console.error(`[useStorageDebounced] Failed to save "${r}": ${T(c)}`);
|
|
928
928
|
}
|
|
929
929
|
}, i);
|
|
930
|
-
return
|
|
930
|
+
return H(
|
|
931
931
|
() => u.value,
|
|
932
932
|
() => {
|
|
933
933
|
l();
|
|
@@ -935,24 +935,24 @@ function de(r, t, e = (s) => s, n = (s) => s, i = 300) {
|
|
|
935
935
|
{ deep: !0 }
|
|
936
936
|
), u;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function pe(r, t) {
|
|
939
939
|
return r < t ? -1 : r > t ? 1 : 0;
|
|
940
940
|
}
|
|
941
|
-
const
|
|
942
|
-
function
|
|
943
|
-
if (!
|
|
941
|
+
const pt = process.env.NODE_ENV !== "production";
|
|
942
|
+
function ge(r, t) {
|
|
943
|
+
if (!pt) return t();
|
|
944
944
|
console.groupCollapsed(`⏳ ${r}`);
|
|
945
945
|
const e = performance.now(), n = t(), i = performance.now();
|
|
946
946
|
return console.log(`${r}: ${Math.round(i - e)} ms`), console.groupEnd(), n;
|
|
947
947
|
}
|
|
948
|
-
const
|
|
949
|
-
function
|
|
948
|
+
const be = () => nt(), F = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
949
|
+
function Se(r) {
|
|
950
950
|
let t = "";
|
|
951
951
|
for (let e = 0; e < r; ++e)
|
|
952
|
-
t +=
|
|
952
|
+
t += F[Math.floor(F.length * Math.random())];
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
|
-
class
|
|
955
|
+
class Te {
|
|
956
956
|
/**
|
|
957
957
|
* Создает экземпляр HotkeyManager и подготавливает базовое состояние.
|
|
958
958
|
*/
|
|
@@ -1033,14 +1033,14 @@ class ge {
|
|
|
1033
1033
|
this.clear(), this.target.removeEventListener("keydown", this.handleBound);
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function we(r, t) {
|
|
1037
1037
|
return t != null && t.key ? r.some((e) => {
|
|
1038
1038
|
var l, c;
|
|
1039
1039
|
const n = e.ctrl === void 0 || t.ctrlKey === e.ctrl, i = e.alt === void 0 || t.altKey === e.alt, s = e.shift === void 0 || t.shiftKey === e.shift, a = e.meta === void 0 || t.metaKey === e.meta, u = t.key && e.key && ((l = t.key) == null ? void 0 : l.toLowerCase()) === ((c = e.key) == null ? void 0 : c.toLowerCase());
|
|
1040
1040
|
return n && i && s && a && u;
|
|
1041
1041
|
}) : !1;
|
|
1042
1042
|
}
|
|
1043
|
-
const
|
|
1043
|
+
const N = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new Set([
|
|
1044
1044
|
"Alt",
|
|
1045
1045
|
"AltGraph",
|
|
1046
1046
|
"CapsLock",
|
|
@@ -1057,59 +1057,59 @@ const F = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new Set([
|
|
|
1057
1057
|
"Symbol",
|
|
1058
1058
|
"SymbolLock"
|
|
1059
1059
|
]);
|
|
1060
|
-
function
|
|
1061
|
-
return
|
|
1060
|
+
function xe(r) {
|
|
1061
|
+
return O(V(r).snapshot);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const e =
|
|
1065
|
-
return e.subscribers.add(t), t(
|
|
1063
|
+
function _e(r, t) {
|
|
1064
|
+
const e = V(r);
|
|
1065
|
+
return e.subscribers.add(t), t(O(e.snapshot)), () => e.subscribers.delete(t);
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function V(r) {
|
|
1068
1068
|
var a, u, l;
|
|
1069
|
-
const t =
|
|
1069
|
+
const t = N.get(r);
|
|
1070
1070
|
if (t)
|
|
1071
1071
|
return t;
|
|
1072
|
-
const e =
|
|
1072
|
+
const e = bt((a = r.defaultView) == null ? void 0 : a.navigator), n = {
|
|
1073
1073
|
snapshot: L(e),
|
|
1074
1074
|
entries: /* @__PURE__ */ new Map(),
|
|
1075
1075
|
subscribers: /* @__PURE__ */ new Set()
|
|
1076
1076
|
}, i = (c) => {
|
|
1077
|
-
var
|
|
1078
|
-
const
|
|
1077
|
+
var M;
|
|
1078
|
+
const h = c ? {
|
|
1079
1079
|
ctrl: c.ctrlKey,
|
|
1080
1080
|
shift: c.shiftKey,
|
|
1081
1081
|
alt: c.altKey,
|
|
1082
1082
|
meta: c.metaKey,
|
|
1083
1083
|
mod: e === "macos" ? c.metaKey : e === "windows" || e === "linux" ? c.ctrlKey : c.ctrlKey || c.metaKey,
|
|
1084
|
-
altGraph: ((
|
|
1085
|
-
} : L(e).modifiers,
|
|
1084
|
+
altGraph: ((M = c.getModifierState) == null ? void 0 : M.call(c, "AltGraph")) === !0
|
|
1085
|
+
} : L(e).modifiers, $ = [...n.entries.values()], _ = {
|
|
1086
1086
|
platform: e,
|
|
1087
|
-
modifiers:
|
|
1087
|
+
modifiers: h,
|
|
1088
1088
|
held: {
|
|
1089
|
-
key: [...new Set(
|
|
1090
|
-
code: [...new Set(
|
|
1089
|
+
key: [...new Set($.map((p) => p.key))].sort(),
|
|
1090
|
+
code: [...new Set($.map((p) => p.code).filter(Boolean))].sort()
|
|
1091
1091
|
}
|
|
1092
1092
|
};
|
|
1093
|
-
if (!
|
|
1093
|
+
if (!St(n.snapshot, _)) {
|
|
1094
1094
|
n.snapshot = _;
|
|
1095
1095
|
for (const p of n.subscribers)
|
|
1096
|
-
p(
|
|
1096
|
+
p(O(_));
|
|
1097
1097
|
}
|
|
1098
1098
|
}, s = () => {
|
|
1099
1099
|
n.entries.clear(), i();
|
|
1100
1100
|
};
|
|
1101
1101
|
return r.addEventListener("keydown", (c) => {
|
|
1102
|
-
if (!
|
|
1103
|
-
const
|
|
1104
|
-
n.entries.set(c.code || `key:${
|
|
1102
|
+
if (!gt.has(c.key)) {
|
|
1103
|
+
const h = c.key.toLowerCase();
|
|
1104
|
+
n.entries.set(c.code || `key:${h}`, { key: h, code: c.code });
|
|
1105
1105
|
}
|
|
1106
1106
|
i(c);
|
|
1107
1107
|
}, !0), r.addEventListener("keyup", (c) => {
|
|
1108
|
-
const
|
|
1109
|
-
n.entries.delete(c.code || `key:${
|
|
1108
|
+
const h = c.key.toLowerCase();
|
|
1109
|
+
n.entries.delete(c.code || `key:${h}`), i(c);
|
|
1110
1110
|
}, !0), r.addEventListener("visibilitychange", () => {
|
|
1111
1111
|
r.visibilityState === "hidden" && s();
|
|
1112
|
-
}), (u = r.defaultView) == null || u.addEventListener("blur", s), (l = r.defaultView) == null || l.addEventListener("pagehide", s),
|
|
1112
|
+
}), (u = r.defaultView) == null || u.addEventListener("blur", s), (l = r.defaultView) == null || l.addEventListener("pagehide", s), N.set(r, n), n;
|
|
1113
1113
|
}
|
|
1114
1114
|
function L(r) {
|
|
1115
1115
|
return {
|
|
@@ -1125,25 +1125,25 @@ function L(r) {
|
|
|
1125
1125
|
held: { key: [], code: [] }
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function bt(r) {
|
|
1129
1129
|
var n;
|
|
1130
1130
|
const t = r, e = String(((n = t == null ? void 0 : t.userAgentData) == null ? void 0 : n.platform) ?? (t == null ? void 0 : t.platform) ?? (t == null ? void 0 : t.userAgent) ?? "").toLowerCase();
|
|
1131
1131
|
return e.includes("mac") || e.includes("darwin") || e.includes("iphone") || e.includes("ipad") ? "macos" : e.includes("win") ? "windows" : e.includes("linux") || e.includes("x11") || e.includes("cros") ? "linux" : "unknown";
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return r.platform === t.platform && r.modifiers.ctrl === t.modifiers.ctrl && r.modifiers.shift === t.modifiers.shift && r.modifiers.alt === t.modifiers.alt && r.modifiers.meta === t.modifiers.meta && r.modifiers.mod === t.modifiers.mod && r.modifiers.altGraph === t.modifiers.altGraph &&
|
|
1133
|
+
function St(r, t) {
|
|
1134
|
+
return r.platform === t.platform && r.modifiers.ctrl === t.modifiers.ctrl && r.modifiers.shift === t.modifiers.shift && r.modifiers.alt === t.modifiers.alt && r.modifiers.meta === t.modifiers.meta && r.modifiers.mod === t.modifiers.mod && r.modifiers.altGraph === t.modifiers.altGraph && z(r.held.key, t.held.key) && z(r.held.code, t.held.code);
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function z(r, t) {
|
|
1137
1137
|
return r.length === t.length && r.every((e, n) => e === t[n]);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function O(r) {
|
|
1140
1140
|
return {
|
|
1141
1141
|
platform: r.platform,
|
|
1142
1142
|
modifiers: { ...r.modifiers },
|
|
1143
1143
|
held: { key: [...r.held.key], code: [...r.held.code] }
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
|
-
class
|
|
1146
|
+
class De extends B {
|
|
1147
1147
|
constructor() {
|
|
1148
1148
|
super(...arguments);
|
|
1149
1149
|
/** Массив всех логов */
|
|
@@ -1294,27 +1294,27 @@ class we extends j {
|
|
|
1294
1294
|
this.logs = [], this.notify();
|
|
1295
1295
|
}
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function Tt(r) {
|
|
1298
1298
|
try {
|
|
1299
1299
|
return new new Proxy(r, { construct: () => ({}) })(), !0;
|
|
1300
1300
|
} catch {
|
|
1301
1301
|
return !1;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1305
|
-
if (
|
|
1304
|
+
function Ie(r, ...t) {
|
|
1305
|
+
if (Tt(r)) {
|
|
1306
1306
|
const e = r;
|
|
1307
1307
|
return new e(...t);
|
|
1308
1308
|
} else
|
|
1309
1309
|
return r(...t);
|
|
1310
1310
|
}
|
|
1311
|
-
const
|
|
1312
|
-
function
|
|
1311
|
+
const wt = /* @__PURE__ */ new WeakMap();
|
|
1312
|
+
function Ee(r) {
|
|
1313
1313
|
let t;
|
|
1314
|
-
return () => (t || (t = r(),
|
|
1314
|
+
return () => (t || (t = r(), wt.set(r, t)), t);
|
|
1315
1315
|
}
|
|
1316
|
-
const
|
|
1317
|
-
DateTime:
|
|
1316
|
+
const xt = {
|
|
1317
|
+
DateTime: it,
|
|
1318
1318
|
toDateTime(r) {
|
|
1319
1319
|
return this.DateTime.fromJSDate(r);
|
|
1320
1320
|
},
|
|
@@ -1342,25 +1342,25 @@ const St = {
|
|
|
1342
1342
|
getZone() {
|
|
1343
1343
|
return this.DateTime.now().zone;
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1346
|
-
function
|
|
1345
|
+
}, Ae = (r) => xt.toDateTime(r);
|
|
1346
|
+
function Oe(r) {
|
|
1347
1347
|
return String(r).charAt(0).toUpperCase() + String(r).slice(1);
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1349
|
+
function Ce(r, t) {
|
|
1350
|
+
return E(r, t) || ot(r, t);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function $e(r, t, e, n) {
|
|
1353
1353
|
const i = g(r), s = g(t), a = g(e), u = g(n);
|
|
1354
|
-
return !
|
|
1354
|
+
return !K(s, a) && !E(i, u);
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1357
|
-
return !
|
|
1356
|
+
function Me(r, t, e) {
|
|
1357
|
+
return !K(r, g(t)) && !E(r, at(e));
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1360
|
-
function
|
|
1359
|
+
const ke = (r) => r && new Date(r);
|
|
1360
|
+
function Fe(r, t = "HH:mm dd.MM.yyyy", e = {}) {
|
|
1361
1361
|
return r && S(r, t, e);
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function _t(r, t = "HH:mm dd.MM.yyyy", e = {}, n = !0) {
|
|
1364
1364
|
if (!r || !r || r === "")
|
|
1365
1365
|
return "";
|
|
1366
1366
|
if (typeof r == "string")
|
|
@@ -1370,39 +1370,39 @@ function Tt(r, t = "HH:mm dd.MM.yyyy", e = {}, n = !0) {
|
|
|
1370
1370
|
return "";
|
|
1371
1371
|
} else
|
|
1372
1372
|
r = new Date(r.toString());
|
|
1373
|
-
return n ? S(r, t, e) : S(
|
|
1373
|
+
return n ? S(r, t, e) : S(A(r, "utc"), t, e);
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Ne(r) {
|
|
1376
1376
|
const t = { weekday: "short" }, e = new Intl.DateTimeFormat("ru-RU", t).format(r);
|
|
1377
1377
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function Le(r) {
|
|
1380
1380
|
const t = new Date(r), e = t.getTime() + t.getTimezoneOffset() * 6e3, n = new Date(e + 180 * 6e3), i = String(n.getDate()).padStart(2, "0"), s = String(n.getMonth() + 1).padStart(2, "0"), a = n.getFullYear();
|
|
1381
1381
|
return `${i}.${s}.${a}`;
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return
|
|
1383
|
+
function ze(r, t = !0) {
|
|
1384
|
+
return _t(r, "HH:mm", {}, t);
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function Pe(r) {
|
|
1387
1387
|
const t = Array.from(r), e = Math.min(...t.map((i) => i.getTime())), n = Math.max(...t.map((i) => i.getTime()));
|
|
1388
1388
|
return {
|
|
1389
1389
|
minDate: new Date(e),
|
|
1390
1390
|
maxDate: new Date(n)
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1394
|
-
const e =
|
|
1395
|
-
return n || i ? `${e > 0 ? "-" : "+"}${
|
|
1393
|
+
function He(r, t) {
|
|
1394
|
+
const e = U(r, t), { hours: n, minutes: i } = C(e);
|
|
1395
|
+
return n || i ? `${e > 0 ? "-" : "+"}${d(n)}:${d(i)}` : "";
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
const e =
|
|
1399
|
-
return n || i ? `${e > 0 ? "-" : ""}${
|
|
1397
|
+
function Re(r, t) {
|
|
1398
|
+
const e = U(r, t), { hours: n, minutes: i } = C(e);
|
|
1399
|
+
return n || i ? `${e > 0 ? "-" : ""}${d(n)}:${d(i)}` : "";
|
|
1400
1400
|
}
|
|
1401
1401
|
function P(r = /* @__PURE__ */ new Date()) {
|
|
1402
1402
|
return new Date(r.getFullYear(), r.getMonth(), r.getDate());
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1405
|
-
const e =
|
|
1404
|
+
function Ue(r, t) {
|
|
1405
|
+
const e = st(P(r), P(t));
|
|
1406
1406
|
return e ? e > 7 ? {
|
|
1407
1407
|
variant: "red",
|
|
1408
1408
|
value: ">7"
|
|
@@ -1417,40 +1417,66 @@ function ze(r, t) {
|
|
|
1417
1417
|
value: `${e}`
|
|
1418
1418
|
} : null;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function Ke(r) {
|
|
1421
1421
|
const e = String(r ?? "").trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
1422
1422
|
if (!e)
|
|
1423
1423
|
return null;
|
|
1424
1424
|
const n = Number(e[1]), i = Number(e[2]) - 1, s = Number(e[3]), a = new Date(Date.UTC(n, i, s, 0, 0, 0, 0));
|
|
1425
1425
|
return Number.isNaN(a.getTime()) ? null : a.toISOString();
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function je(r) {
|
|
1428
1428
|
const t = String(r ?? "").trim();
|
|
1429
1429
|
if (!t)
|
|
1430
1430
|
return null;
|
|
1431
1431
|
const e = t.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2}))?$/);
|
|
1432
1432
|
if (e) {
|
|
1433
|
-
const i = Number(e[1]), s = Number(e[2]) - 1, a = Number(e[3]), u = Number(e[4]), l = Number(e[5]), c = e[6] != null ? Number(e[6]) : 0,
|
|
1434
|
-
return Number.isNaN(
|
|
1433
|
+
const i = Number(e[1]), s = Number(e[2]) - 1, a = Number(e[3]), u = Number(e[4]), l = Number(e[5]), c = e[6] != null ? Number(e[6]) : 0, h = new Date(i, s, a, u, l, c, 0);
|
|
1434
|
+
return Number.isNaN(h.getTime()) ? null : h.toISOString();
|
|
1435
1435
|
}
|
|
1436
1436
|
const n = new Date(t);
|
|
1437
1437
|
return Number.isNaN(n.getTime()) ? null : n.toISOString();
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function Be(r) {
|
|
1440
1440
|
const t = String(r ?? "").trim();
|
|
1441
1441
|
return t ? t.slice(0, 10) : "";
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function Je(r) {
|
|
1444
1444
|
const t = String(r ?? "").trim();
|
|
1445
1445
|
if (!t)
|
|
1446
1446
|
return "";
|
|
1447
1447
|
const e = new Date(t);
|
|
1448
1448
|
if (Number.isNaN(e.getTime()))
|
|
1449
1449
|
return t.slice(0, 16);
|
|
1450
|
-
const n = e.getFullYear(), i =
|
|
1450
|
+
const n = e.getFullYear(), i = d(e.getMonth() + 1), s = d(e.getDate()), a = d(e.getHours()), u = d(e.getMinutes());
|
|
1451
1451
|
return `${n}-${i}-${s}T${a}:${u}`;
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function Ve(r, t) {
|
|
1454
|
+
const e = G(r);
|
|
1455
|
+
if (e)
|
|
1456
|
+
return e;
|
|
1457
|
+
const n = new Date(String(r ?? "").trim());
|
|
1458
|
+
if (Number.isNaN(n.getTime()))
|
|
1459
|
+
return "";
|
|
1460
|
+
const i = Z(t), s = i ? A(n, i) : n;
|
|
1461
|
+
return `${d(s.getHours())}:${d(s.getMinutes())}`;
|
|
1462
|
+
}
|
|
1463
|
+
function Ge(r, t, e) {
|
|
1464
|
+
const n = G(t).match(/^(\d{2}):(\d{2})$/);
|
|
1465
|
+
if (!n)
|
|
1466
|
+
return null;
|
|
1467
|
+
const i = new Date(String(r ?? "").trim());
|
|
1468
|
+
if (Number.isNaN(i.getTime()))
|
|
1469
|
+
return null;
|
|
1470
|
+
const s = Number(n[1]), a = Number(n[2]);
|
|
1471
|
+
if (s > 23 || a > 59)
|
|
1472
|
+
return null;
|
|
1473
|
+
const u = Z(e);
|
|
1474
|
+
if (!u)
|
|
1475
|
+
return i.setHours(s, a, 0, 0), i.toISOString();
|
|
1476
|
+
const l = A(i, u);
|
|
1477
|
+
return l.setHours(s, a, 0, 0), ct(l, u).toISOString();
|
|
1478
|
+
}
|
|
1479
|
+
function G(r) {
|
|
1454
1480
|
if (r == null)
|
|
1455
1481
|
return "";
|
|
1456
1482
|
const t = String(r).trim();
|
|
@@ -1462,7 +1488,17 @@ function je(r) {
|
|
|
1462
1488
|
const n = t.match(/^(\d{2}):(\d{2})$/);
|
|
1463
1489
|
return n ? `${n[1]}:${n[2]}` : "";
|
|
1464
1490
|
}
|
|
1465
|
-
function
|
|
1491
|
+
function Z(r) {
|
|
1492
|
+
const t = String(r ?? "").trim();
|
|
1493
|
+
if (!t || t === "local")
|
|
1494
|
+
return null;
|
|
1495
|
+
try {
|
|
1496
|
+
return new Intl.DateTimeFormat("en", { timeZone: t }).format(), t;
|
|
1497
|
+
} catch {
|
|
1498
|
+
return null;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
function Ze(r) {
|
|
1466
1502
|
if (r == null)
|
|
1467
1503
|
return null;
|
|
1468
1504
|
const t = String(r).trim();
|
|
@@ -1474,31 +1510,31 @@ function Be(r) {
|
|
|
1474
1510
|
const n = t.match(/^(\d{2}):(\d{2})$/);
|
|
1475
1511
|
return n ? `${n[1]}:${n[2]}:00` : null;
|
|
1476
1512
|
}
|
|
1477
|
-
function
|
|
1478
|
-
const t =
|
|
1479
|
-
return `${e}${
|
|
1513
|
+
function We(r) {
|
|
1514
|
+
const t = It(r), e = Math.sign(t) >= 0 ? "" : "-", { hours: n, minutes: i } = C(t);
|
|
1515
|
+
return `${e}${d(n)}:${d(i)}`;
|
|
1480
1516
|
}
|
|
1481
|
-
function
|
|
1482
|
-
const n =
|
|
1517
|
+
function Ye(r = null, t = "dd", e = {}) {
|
|
1518
|
+
const n = Dt(r);
|
|
1483
1519
|
if (!n)
|
|
1484
1520
|
return "";
|
|
1485
1521
|
const i = /* @__PURE__ */ new Date(), s = new Date(n);
|
|
1486
1522
|
return i.setHours(0, 0, 0, 0), s.setHours(0, 0, 0, 0), s.toDateString() === i.toDateString() ? "" : `/${S(n, t, e)}`;
|
|
1487
1523
|
}
|
|
1488
|
-
function
|
|
1524
|
+
function Dt(r) {
|
|
1489
1525
|
if (!r || r === "")
|
|
1490
1526
|
return null;
|
|
1491
1527
|
const t = typeof r == "string" ? new Date(r) : r instanceof Date ? r : new Date(r.toString());
|
|
1492
1528
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
1493
1529
|
}
|
|
1494
|
-
function
|
|
1530
|
+
function C(r) {
|
|
1495
1531
|
const t = Math.abs(r);
|
|
1496
1532
|
return {
|
|
1497
1533
|
hours: Math.floor(t / 3600) % 24,
|
|
1498
1534
|
minutes: Math.floor(t / 60) % 60
|
|
1499
1535
|
};
|
|
1500
1536
|
}
|
|
1501
|
-
function
|
|
1537
|
+
function It(r) {
|
|
1502
1538
|
const t = String(r ?? "").trim();
|
|
1503
1539
|
if (!t)
|
|
1504
1540
|
return 0;
|
|
@@ -1512,10 +1548,10 @@ function xt(r) {
|
|
|
1512
1548
|
}
|
|
1513
1549
|
return 0;
|
|
1514
1550
|
}
|
|
1515
|
-
function
|
|
1551
|
+
function d(r) {
|
|
1516
1552
|
return String(r).padStart(2, "0");
|
|
1517
1553
|
}
|
|
1518
|
-
function
|
|
1554
|
+
function qe(r) {
|
|
1519
1555
|
const t = /* @__PURE__ */ new Date();
|
|
1520
1556
|
try {
|
|
1521
1557
|
const e = D(r, t), n = Intl.supportedValuesOf("timeZone");
|
|
@@ -1527,10 +1563,10 @@ function Ge(r) {
|
|
|
1527
1563
|
}
|
|
1528
1564
|
return null;
|
|
1529
1565
|
}
|
|
1530
|
-
function
|
|
1566
|
+
function Qe(r) {
|
|
1531
1567
|
return D(r, /* @__PURE__ */ new Date());
|
|
1532
1568
|
}
|
|
1533
|
-
class
|
|
1569
|
+
class Xe {
|
|
1534
1570
|
constructor(t) {
|
|
1535
1571
|
o(this, "_url");
|
|
1536
1572
|
o(this, "_retryInterval");
|
|
@@ -1561,14 +1597,14 @@ class We {
|
|
|
1561
1597
|
async _connect() {
|
|
1562
1598
|
var t, e, n;
|
|
1563
1599
|
try {
|
|
1564
|
-
await
|
|
1600
|
+
await lt(this._url, {
|
|
1565
1601
|
method: "GET",
|
|
1566
1602
|
headers: await this._buildHeaders(),
|
|
1567
1603
|
signal: (t = this._abortController) == null ? void 0 : t.signal,
|
|
1568
1604
|
openWhenHidden: !0,
|
|
1569
1605
|
onopen: (i) => {
|
|
1570
1606
|
var a, u;
|
|
1571
|
-
if (i.ok && i.headers.get("content-type") ===
|
|
1607
|
+
if (i.ok && i.headers.get("content-type") === ut) {
|
|
1572
1608
|
this._isConnected = !0, (u = (a = this._options).onOpen) == null || u.call(a);
|
|
1573
1609
|
return;
|
|
1574
1610
|
}
|
|
@@ -1599,7 +1635,7 @@ class We {
|
|
|
1599
1635
|
return this._isConnected;
|
|
1600
1636
|
}
|
|
1601
1637
|
}
|
|
1602
|
-
class
|
|
1638
|
+
class ve {
|
|
1603
1639
|
constructor() {
|
|
1604
1640
|
o(this, "_currentCount", 0);
|
|
1605
1641
|
o(this, "_lastResetTime", Date.now());
|
|
@@ -1616,8 +1652,8 @@ class Ye {
|
|
|
1616
1652
|
this._currentCount = 0, this._lastEventsPerSecond = 0, this._lastResetTime = Date.now();
|
|
1617
1653
|
}
|
|
1618
1654
|
}
|
|
1619
|
-
const
|
|
1620
|
-
const r =
|
|
1655
|
+
const tr = ft("tooltip", () => {
|
|
1656
|
+
const r = Q({}), t = b(null);
|
|
1621
1657
|
function e(l) {
|
|
1622
1658
|
r[l.id] = {
|
|
1623
1659
|
...l,
|
|
@@ -1650,91 +1686,93 @@ const qe = ct("tooltip", () => {
|
|
|
1650
1686
|
clearActiveTooltipId: u
|
|
1651
1687
|
};
|
|
1652
1688
|
});
|
|
1653
|
-
function
|
|
1689
|
+
function er(r, t) {
|
|
1654
1690
|
var e;
|
|
1655
1691
|
return r("div", {}, (e = t.slots) != null && e.default ? t.slots.default() : []);
|
|
1656
1692
|
}
|
|
1657
|
-
const
|
|
1693
|
+
const rr = "x-collection-tooltip-id";
|
|
1658
1694
|
export {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1695
|
+
te as AfterDeserialize,
|
|
1696
|
+
Kt as AppBus,
|
|
1697
|
+
vt as BeforeSerialize,
|
|
1698
|
+
Jt as Collection,
|
|
1699
|
+
Wt as DelayedExecutor,
|
|
1700
|
+
ne as DeserializeArrayField,
|
|
1701
|
+
re as DeserializeId,
|
|
1702
|
+
j as EventBus,
|
|
1667
1703
|
y as Events,
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1704
|
+
Xt as GenericExpose,
|
|
1705
|
+
Te as HotkeyManager,
|
|
1706
|
+
pt as IS_DEBUG,
|
|
1707
|
+
oe as IgnoreToPlain,
|
|
1708
|
+
Vt as IndexedCollection,
|
|
1709
|
+
ee as IsOptionalTransformed,
|
|
1710
|
+
ue as Json,
|
|
1711
|
+
fe as JsonString,
|
|
1712
|
+
Yt as NamedExecutor,
|
|
1713
|
+
Zt as PayloadHttpClient,
|
|
1714
|
+
Gt as RingBuffer,
|
|
1715
|
+
Xe as SSEManager,
|
|
1716
|
+
de as Script,
|
|
1717
|
+
le as Serialize,
|
|
1718
|
+
ie as SerializeId,
|
|
1719
|
+
se as SerializeIds,
|
|
1720
|
+
De as StructuredLogger,
|
|
1721
|
+
B as Subscribable,
|
|
1722
|
+
xt as SystemClock,
|
|
1723
|
+
rr as TooltipAttribute,
|
|
1724
|
+
er as TooltipRegistrator,
|
|
1725
|
+
he as TypeMap,
|
|
1726
|
+
me as TypeRecord,
|
|
1727
|
+
ve as UPSMeter_Service,
|
|
1728
|
+
Oe as capitalize,
|
|
1729
|
+
pe as compareNumber,
|
|
1694
1730
|
T as consoleErrorSummary,
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1731
|
+
I as consoleValueSummary,
|
|
1732
|
+
Ie as createInstance,
|
|
1733
|
+
He as diffDuration,
|
|
1734
|
+
Re as diffDurationTable,
|
|
1735
|
+
Ae as dt,
|
|
1736
|
+
ze as extractTime,
|
|
1737
|
+
Pe as findMinMaxDates,
|
|
1738
|
+
Le as formatDateToMSK,
|
|
1739
|
+
Fe as formatDatetime,
|
|
1740
|
+
_t as formatDatetimeTZ,
|
|
1741
|
+
Ye as formatDatetimeTZSpecial,
|
|
1742
|
+
be as generateUUID,
|
|
1743
|
+
Ue as getDateOnlyDiffFactor,
|
|
1744
|
+
Ne as getDayOfWeek,
|
|
1745
|
+
xe as getKeyboardStateSnapshot,
|
|
1746
|
+
yt as getOnDeserializedMethod,
|
|
1747
|
+
Qe as getTimezoneOffsetMs,
|
|
1748
|
+
Ee as globalState,
|
|
1749
|
+
Ce as isAfterOrEqual,
|
|
1750
|
+
we as isAnyKeyComboActive,
|
|
1751
|
+
Tt as isConstructor,
|
|
1752
|
+
Me as isDateInRange,
|
|
1753
|
+
$e as isDateRangeOverlap,
|
|
1754
|
+
ae as isNullOrUndefined,
|
|
1755
|
+
Ve as isoDateTimeToTimeInput,
|
|
1756
|
+
Be as isoToDateInput,
|
|
1757
|
+
Je as isoToDateTimeLocalInput,
|
|
1758
|
+
Ge as mergeTimeIntoDateTime,
|
|
1759
|
+
ce as onDeserialized,
|
|
1760
|
+
ke as parseDate,
|
|
1761
|
+
We as parseDuration,
|
|
1762
|
+
qe as parseOffsetToTimezone,
|
|
1763
|
+
ge as profile,
|
|
1764
|
+
Se as randomString,
|
|
1727
1765
|
P as removeTime,
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1766
|
+
_e as subscribeKeyboardState,
|
|
1767
|
+
G as timeToTimeInput,
|
|
1768
|
+
qt as toInstance,
|
|
1769
|
+
Ke as toIsoZDate,
|
|
1770
|
+
je as toIsoZDateTime,
|
|
1771
|
+
Qt as toPlain,
|
|
1772
|
+
Ze as toTimeHHMMSS,
|
|
1773
|
+
Ut as useCookie,
|
|
1774
|
+
ye as useStorageDebounced,
|
|
1775
|
+
jt as useSubscribableRef,
|
|
1776
|
+
Bt as useSubscribableRefAuto,
|
|
1777
|
+
tr as useTooltipStore
|
|
1740
1778
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endge/utils",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.24.
|
|
4
|
+
"version": "0.24.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/utils.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"scripts": {
|
|
19
19
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
20
20
|
"dev": "vite build --watch",
|
|
21
|
-
"dev:watch": "vite build --watch",
|
|
22
21
|
"build": "vite build",
|
|
23
22
|
"test": "vitest"
|
|
24
23
|
},
|