@platforma-sdk/ui-vue 1.30.11 → 1.30.13
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/CHANGELOG.md +6 -0
- package/dist/lib.js +108 -106
- package/dist/lib.js.map +1 -1
- package/dist/lib.umd.cjs +7 -7
- package/dist/lib.umd.cjs.map +1 -1
- package/dist/src/plugins/Monetization/MonetizationSidebar.vue.d.ts.map +1 -1
- package/dist/src/plugins/Monetization/useInfo.d.ts +2 -2
- package/dist/src/plugins/Monetization/validation.d.ts +10 -10
- package/dist/src/plugins/Monetization/validation.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/plugins/Monetization/MonetizationSidebar.vue +7 -1
- package/src/plugins/Monetization/useInfo.ts +5 -5
- package/src/plugins/Monetization/validation.ts +1 -6
package/CHANGELOG.md
CHANGED
package/dist/lib.js
CHANGED
|
@@ -2856,7 +2856,7 @@ const DE = (t, e = {
|
|
|
2856
2856
|
bigint: (t) => bi.create({ ...t, coerce: !0 }),
|
|
2857
2857
|
date: (t) => Xi.create({ ...t, coerce: !0 })
|
|
2858
2858
|
}, y2 = Ve;
|
|
2859
|
-
var
|
|
2859
|
+
var Ee = /* @__PURE__ */ Object.freeze({
|
|
2860
2860
|
__proto__: null,
|
|
2861
2861
|
defaultErrorMap: Bs,
|
|
2862
2862
|
setErrorMap: yE,
|
|
@@ -3025,16 +3025,16 @@ function or(t) {
|
|
|
3025
3025
|
const { type: e, name: n, domain: r } = t;
|
|
3026
3026
|
return { type: e, name: n, ...r && { domain: r } };
|
|
3027
3027
|
}
|
|
3028
|
-
|
|
3029
|
-
__isRef:
|
|
3030
|
-
blockId:
|
|
3031
|
-
name:
|
|
3032
|
-
requireEnrichments:
|
|
3028
|
+
Ee.object({
|
|
3029
|
+
__isRef: Ee.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
3030
|
+
blockId: Ee.string().describe("Upstream block id"),
|
|
3031
|
+
name: Ee.string().describe("Name of the output provided to the upstream block's output context"),
|
|
3032
|
+
requireEnrichments: Ee.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
|
|
3033
3033
|
}).describe(
|
|
3034
3034
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
3035
3035
|
).readonly();
|
|
3036
3036
|
const E2 = 24;
|
|
3037
|
-
|
|
3037
|
+
Ee.string().length(E2).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
3038
3038
|
function qd(t) {
|
|
3039
3039
|
return Ti(t);
|
|
3040
3040
|
}
|
|
@@ -3058,25 +3058,25 @@ var Gd = { exports: {} };
|
|
|
3058
3058
|
}
|
|
3059
3059
|
})(Gd, Gd.exports);
|
|
3060
3060
|
var A2 = Gd.exports;
|
|
3061
|
-
const T2 = /* @__PURE__ */ If(A2), O2 =
|
|
3062
|
-
type:
|
|
3063
|
-
name:
|
|
3064
|
-
message:
|
|
3061
|
+
const T2 = /* @__PURE__ */ If(A2), O2 = Ee.object({
|
|
3062
|
+
type: Ee.literal("PlError"),
|
|
3063
|
+
name: Ee.string(),
|
|
3064
|
+
message: Ee.string(),
|
|
3065
3065
|
/** The message with all details needed for SDK developers. */
|
|
3066
|
-
fullMessage:
|
|
3067
|
-
stack:
|
|
3066
|
+
fullMessage: Ee.string().optional(),
|
|
3067
|
+
stack: Ee.string().optional()
|
|
3068
3068
|
}), $2 = O2.extend({
|
|
3069
|
-
cause:
|
|
3070
|
-
errors:
|
|
3071
|
-
}), R2 =
|
|
3072
|
-
type:
|
|
3073
|
-
name:
|
|
3074
|
-
message:
|
|
3075
|
-
stack:
|
|
3069
|
+
cause: Ee.lazy(() => tu).optional(),
|
|
3070
|
+
errors: Ee.lazy(() => tu.array()).optional()
|
|
3071
|
+
}), R2 = Ee.object({
|
|
3072
|
+
type: Ee.literal("StandardError"),
|
|
3073
|
+
name: Ee.string(),
|
|
3074
|
+
message: Ee.string(),
|
|
3075
|
+
stack: Ee.string().optional()
|
|
3076
3076
|
}), I2 = R2.extend({
|
|
3077
|
-
cause:
|
|
3078
|
-
errors:
|
|
3079
|
-
}), tu =
|
|
3077
|
+
cause: Ee.lazy(() => tu).optional(),
|
|
3078
|
+
errors: Ee.lazy(() => tu.array()).optional()
|
|
3079
|
+
}), tu = Ee.union([I2, $2]);
|
|
3080
3080
|
function Da(t) {
|
|
3081
3081
|
const e = Kd.safeParse(t);
|
|
3082
3082
|
if (e.success) {
|
|
@@ -3108,14 +3108,14 @@ function Da(t) {
|
|
|
3108
3108
|
message: T2(t)
|
|
3109
3109
|
};
|
|
3110
3110
|
}
|
|
3111
|
-
const P2 =
|
|
3112
|
-
name:
|
|
3113
|
-
message:
|
|
3114
|
-
fullMessage:
|
|
3115
|
-
stack:
|
|
3111
|
+
const P2 = Ee.object({
|
|
3112
|
+
name: Ee.string(),
|
|
3113
|
+
message: Ee.string(),
|
|
3114
|
+
fullMessage: Ee.string().optional(),
|
|
3115
|
+
stack: Ee.string().optional()
|
|
3116
3116
|
}), Kd = P2.extend({
|
|
3117
|
-
cause:
|
|
3118
|
-
errors:
|
|
3117
|
+
cause: Ee.lazy(() => Kd).optional(),
|
|
3118
|
+
errors: Ee.lazy(() => Kd.array()).optional()
|
|
3119
3119
|
});
|
|
3120
3120
|
function N2(t) {
|
|
3121
3121
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
@@ -3123,13 +3123,13 @@ function N2(t) {
|
|
|
3123
3123
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
3124
3124
|
throw new Error("Can't get platforma instance.");
|
|
3125
3125
|
}
|
|
3126
|
-
const L2 =
|
|
3127
|
-
type:
|
|
3128
|
-
importance:
|
|
3129
|
-
id:
|
|
3130
|
-
label:
|
|
3126
|
+
const L2 = Ee.object({
|
|
3127
|
+
type: Ee.string(),
|
|
3128
|
+
importance: Ee.number().optional(),
|
|
3129
|
+
id: Ee.string().optional(),
|
|
3130
|
+
label: Ee.string()
|
|
3131
3131
|
});
|
|
3132
|
-
|
|
3132
|
+
Ee.array(L2);
|
|
3133
3133
|
const M2 = "1.30.11";
|
|
3134
3134
|
function D2(t) {
|
|
3135
3135
|
const e = t.type;
|
|
@@ -6633,7 +6633,7 @@ const qf = /* @__PURE__ */ ie({
|
|
|
6633
6633
|
if (!Q)
|
|
6634
6634
|
return;
|
|
6635
6635
|
B.code === "Enter" && F((x = q.find((Be) => Be.index === H)) == null ? void 0 : x.value);
|
|
6636
|
-
const de = q.findIndex((Be) => Be.index === H) ?? -1,
|
|
6636
|
+
const de = q.findIndex((Be) => Be.index === H) ?? -1, Se = B.code === "ArrowDown" ? 1 : B.code === "ArrowUp" ? -1 : 0, Re = Math.abs(de + Se + Q) % Q;
|
|
6637
6637
|
c.activeIndex = D.value[Re].index ?? -1;
|
|
6638
6638
|
};
|
|
6639
6639
|
return Jr(a), be(() => r.modelValue, p, { immediate: !0 }), be(
|
|
@@ -7178,7 +7178,7 @@ const vR = { class: "resizable-input" }, gR = ["placeholder", "value", "disabled
|
|
|
7178
7178
|
if (!de)
|
|
7179
7179
|
return;
|
|
7180
7180
|
T.code === "Enter" && F((U = Q.find((ct) => ct.index === q)) == null ? void 0 : U.value);
|
|
7181
|
-
const
|
|
7181
|
+
const Se = Q.findIndex((ct) => ct.index === q) ?? -1, Re = T.code === "ArrowDown" ? 1 : T.code === "ArrowUp" ? -1 : 0, Be = Math.abs(Se + Re + de) % de;
|
|
7182
7182
|
c.activeIndex = D.value[Be].index ?? -1;
|
|
7183
7183
|
};
|
|
7184
7184
|
return Jr(a), be(() => r.modelValue, p, { immediate: !0 }), be(
|
|
@@ -11686,7 +11686,7 @@ const NN = ["tabindex"], LN = { class: "pl-autocomplete__container" }, MN = { cl
|
|
|
11686
11686
|
return "Data loading error";
|
|
11687
11687
|
}
|
|
11688
11688
|
}), D = O(() => {
|
|
11689
|
-
const q = w(v), Q = w(_), de = q ?? Q.find((
|
|
11689
|
+
const q = w(v), Q = w(_), de = q ?? Q.find((Se) => Mt(Se.value, e.value)) ?? Q.find((Se) => Mt(Se.value, e.value));
|
|
11690
11690
|
return (de == null ? void 0 : de.label) || (e.value ? n.formatValue(e.value) : "");
|
|
11691
11691
|
}), X = O(() => !c.open && e.value ? "" : e.value ? String(D.value) : n.placeholder), F = O(() => e.value !== void 0 && e.value !== null), R = O(() => I.value ? void 0 : "0"), W = (q) => {
|
|
11692
11692
|
var Q;
|
|
@@ -11701,16 +11701,16 @@ const NN = ["tabindex"], LN = { class: "pl-autocomplete__container" }, MN = { cl
|
|
|
11701
11701
|
}, S = () => {
|
|
11702
11702
|
c.open = !0;
|
|
11703
11703
|
}, B = (q) => {
|
|
11704
|
-
var Q, de,
|
|
11704
|
+
var Q, de, Se;
|
|
11705
11705
|
const Re = q.relatedTarget;
|
|
11706
|
-
!((Q = i.value) != null && Q.contains(Re)) && !((
|
|
11706
|
+
!((Q = i.value) != null && Q.contains(Re)) && !((Se = (de = l.value) == null ? void 0 : de.listRef) != null && Se.contains(Re)) && (u.value = null, c.open = !1);
|
|
11707
11707
|
}, T = (q) => {
|
|
11708
11708
|
var Q;
|
|
11709
11709
|
if (["ArrowDown", "ArrowUp", "Enter", "Escape"].includes(q.code))
|
|
11710
11710
|
q.preventDefault();
|
|
11711
11711
|
else
|
|
11712
11712
|
return;
|
|
11713
|
-
const { open: de, activeIndex:
|
|
11713
|
+
const { open: de, activeIndex: Se } = c;
|
|
11714
11714
|
if (!de) {
|
|
11715
11715
|
q.code === "Enter" && (c.open = !0, u.value = "");
|
|
11716
11716
|
return;
|
|
@@ -11719,8 +11719,8 @@ const NN = ["tabindex"], LN = { class: "pl-autocomplete__container" }, MN = { cl
|
|
|
11719
11719
|
const Re = w(_), { length: Be } = Re;
|
|
11720
11720
|
if (!Be)
|
|
11721
11721
|
return;
|
|
11722
|
-
q.code === "Enter" && W(Re.find((pn) => pn.index ===
|
|
11723
|
-
const ct = Re.findIndex((pn) => pn.index ===
|
|
11722
|
+
q.code === "Enter" && W(Re.find((pn) => pn.index === Se));
|
|
11723
|
+
const ct = Re.findIndex((pn) => pn.index === Se) ?? -1, Wt = q.code === "ArrowDown" ? 1 : q.code === "ArrowUp" ? -1 : 0, pt = Math.abs(ct + Wt + Be) % Be;
|
|
11724
11724
|
c.activeIndex = _.value[pt].index ?? -1;
|
|
11725
11725
|
};
|
|
11726
11726
|
Jr(i), be(() => e.value, p, { immediate: !0 }), be(
|
|
@@ -11838,8 +11838,8 @@ const NN = ["tabindex"], LN = { class: "pl-autocomplete__container" }, MN = { cl
|
|
|
11838
11838
|
gap: 3
|
|
11839
11839
|
}, {
|
|
11840
11840
|
default: he(() => [
|
|
11841
|
-
(g(!0), C(ze, null, rt(_.value, (de,
|
|
11842
|
-
key:
|
|
11841
|
+
(g(!0), C(ze, null, rt(_.value, (de, Se) => (g(), le(na, {
|
|
11842
|
+
key: Se,
|
|
11843
11843
|
option: de,
|
|
11844
11844
|
"is-selected": de.isSelected,
|
|
11845
11845
|
"is-hovered": de.isActive,
|
|
@@ -16220,7 +16220,7 @@ const EB = { class: "ui-slider__wrapper" }, AB = { class: "ui-slider__label-sect
|
|
|
16220
16220
|
{ r: U, th: u },
|
|
16221
16221
|
{ r: H, th: c },
|
|
16222
16222
|
{ r: q, th: f }
|
|
16223
|
-
].sort((de,
|
|
16223
|
+
].sort((de, Se) => de.r - Se.r);
|
|
16224
16224
|
Q[0].th.value && (Q[0].th.value.dataset.hint = "high"), Q[1].th.value && (Q[1].th.value.dataset.hint = "mid"), Q[2].th.value && (Q[2].th.value.dataset.hint = "low");
|
|
16225
16225
|
}
|
|
16226
16226
|
function x(U, H) {
|
|
@@ -17693,43 +17693,39 @@ function _6(t) {
|
|
|
17693
17693
|
};
|
|
17694
17694
|
return bt(r), Af(r), e;
|
|
17695
17695
|
}
|
|
17696
|
-
const b6 =
|
|
17696
|
+
const b6 = Ee.literal("trial"), w6 = Ee.literal("free"), x6 = Ee.literal("single_payment"), k6 = Ee.literal("subscription"), C6 = Ee.union([
|
|
17697
17697
|
b6,
|
|
17698
17698
|
w6,
|
|
17699
17699
|
x6,
|
|
17700
17700
|
k6,
|
|
17701
|
-
|
|
17701
|
+
Ee.literal("base")
|
|
17702
17702
|
// outdated
|
|
17703
|
-
]), S6 =
|
|
17704
|
-
type:
|
|
17705
|
-
|
|
17706
|
-
|
|
17703
|
+
]), S6 = Ee.object({
|
|
17704
|
+
type: Ee.union([
|
|
17705
|
+
Ee.literal("unique_launches"),
|
|
17706
|
+
Ee.literal("volume_limit")
|
|
17707
17707
|
]),
|
|
17708
|
-
used:
|
|
17709
|
-
toSpend:
|
|
17710
|
-
available:
|
|
17708
|
+
used: Ee.number(),
|
|
17709
|
+
toSpend: Ee.number(),
|
|
17710
|
+
available: Ee.number().nullable()
|
|
17711
17711
|
// null if unlimited
|
|
17712
|
-
}), E6 =
|
|
17713
|
-
productKey:
|
|
17714
|
-
productName:
|
|
17715
|
-
customerEmail:
|
|
17716
|
-
canRun:
|
|
17717
|
-
status:
|
|
17718
|
-
|
|
17719
|
-
|
|
17720
|
-
Se.literal("payment_required"),
|
|
17721
|
-
Se.literal("limits_exceeded")
|
|
17722
|
-
]),
|
|
17723
|
-
mnz: Se.object({
|
|
17712
|
+
}), E6 = Ee.object({
|
|
17713
|
+
productKey: Ee.string(),
|
|
17714
|
+
productName: Ee.string().default("Unknown product"),
|
|
17715
|
+
customerEmail: Ee.string().optional(),
|
|
17716
|
+
canRun: Ee.boolean(),
|
|
17717
|
+
status: Ee.string(),
|
|
17718
|
+
// 'select-tariff', 'active', 'payment_required', 'limits_exceeded', 'inactive', 'unknown',
|
|
17719
|
+
mnz: Ee.object({
|
|
17724
17720
|
type: C6.optional(),
|
|
17725
|
-
endOfBillingPeriod:
|
|
17726
|
-
limits:
|
|
17721
|
+
endOfBillingPeriod: Ee.string().nullable().optional(),
|
|
17722
|
+
limits: Ee.array(S6).optional()
|
|
17727
17723
|
})
|
|
17728
|
-
}, { message: "Invalid DryRunResult" }), A6 =
|
|
17729
|
-
httpError:
|
|
17730
|
-
response:
|
|
17724
|
+
}, { message: "Invalid DryRunResult" }), A6 = Ee.object({
|
|
17725
|
+
httpError: Ee.string().optional(),
|
|
17726
|
+
response: Ee.object({
|
|
17731
17727
|
result: E6.optional(),
|
|
17732
|
-
error:
|
|
17728
|
+
error: Ee.unknown().optional()
|
|
17733
17729
|
}).optional()
|
|
17734
17730
|
}).optional();
|
|
17735
17731
|
function T6() {
|
|
@@ -17742,28 +17738,28 @@ function T6() {
|
|
|
17742
17738
|
}), i = O(() => {
|
|
17743
17739
|
var I;
|
|
17744
17740
|
return (I = r.value) == null ? void 0 : I.data;
|
|
17745
|
-
}), a =
|
|
17741
|
+
}), a = O(() => {
|
|
17746
17742
|
var I, z, Z;
|
|
17747
|
-
return ((I = r.value) == null ? void 0 : I.error) ?? ((Z = (z =
|
|
17748
|
-
});
|
|
17743
|
+
return ((I = r.value) == null ? void 0 : I.error) ?? ((Z = (z = l.value) == null ? void 0 : z.response) == null ? void 0 : Z.error);
|
|
17744
|
+
}), l = ne(void 0), u = ne(!1), c = ne(0);
|
|
17749
17745
|
be([i], ([I]) => {
|
|
17750
17746
|
if (I) {
|
|
17751
|
-
|
|
17752
|
-
const z = ++
|
|
17747
|
+
l.value = I;
|
|
17748
|
+
const z = ++c.value;
|
|
17753
17749
|
setTimeout(() => {
|
|
17754
|
-
|
|
17750
|
+
c.value === z && (u.value = !1);
|
|
17755
17751
|
}, 1e3);
|
|
17756
17752
|
}
|
|
17757
17753
|
}, { immediate: !0 });
|
|
17758
17754
|
const f = O(() => {
|
|
17759
17755
|
var I, z;
|
|
17760
|
-
return (z = (I =
|
|
17756
|
+
return (z = (I = l.value) == null ? void 0 : I.response) == null ? void 0 : z.result;
|
|
17761
17757
|
}), p = O(() => {
|
|
17762
17758
|
var I;
|
|
17763
17759
|
return !!((I = f.value) != null && I.canRun);
|
|
17764
17760
|
}), m = O(() => {
|
|
17765
17761
|
var I;
|
|
17766
|
-
return (I = f.value) == null ? void 0 : I.status;
|
|
17762
|
+
return i.value ? (I = f.value) == null ? void 0 : I.status : "awaiting";
|
|
17767
17763
|
}), v = O(() => {
|
|
17768
17764
|
var I;
|
|
17769
17765
|
return (I = f.value) == null ? void 0 : I.customerEmail;
|
|
@@ -17775,7 +17771,7 @@ function T6() {
|
|
|
17775
17771
|
return (I = f.value) == null ? void 0 : I.mnz.limits;
|
|
17776
17772
|
}), $ = () => {
|
|
17777
17773
|
var I;
|
|
17778
|
-
|
|
17774
|
+
u.value = !0, ((I = e.value) == null ? void 0 : I.model.args).__mnzDate = (/* @__PURE__ */ new Date()).toISOString();
|
|
17779
17775
|
};
|
|
17780
17776
|
return be(p, (I) => {
|
|
17781
17777
|
var z;
|
|
@@ -17783,15 +17779,15 @@ function T6() {
|
|
|
17783
17779
|
}), n.value && Q2($, 6e4), {
|
|
17784
17780
|
hasMonetization: n,
|
|
17785
17781
|
result: f,
|
|
17786
|
-
error:
|
|
17782
|
+
error: a,
|
|
17787
17783
|
canRun: p,
|
|
17788
17784
|
status: m,
|
|
17789
17785
|
customerEmail: v,
|
|
17790
17786
|
endOfBillingPeriod: _,
|
|
17791
17787
|
limits: A,
|
|
17792
17788
|
refresh: $,
|
|
17793
|
-
version:
|
|
17794
|
-
isLoading:
|
|
17789
|
+
version: c,
|
|
17790
|
+
isLoading: u
|
|
17795
17791
|
};
|
|
17796
17792
|
}
|
|
17797
17793
|
const O6 = ["title"], $6 = /* @__PURE__ */ ie({
|
|
@@ -18036,14 +18032,20 @@ const O6 = ["title"], $6 = /* @__PURE__ */ ie({
|
|
|
18036
18032
|
}
|
|
18037
18033
|
] : []), I = O(() => {
|
|
18038
18034
|
switch (l.value) {
|
|
18035
|
+
case "active":
|
|
18036
|
+
return "";
|
|
18039
18037
|
case "limits_exceeded":
|
|
18040
18038
|
return "Usage limits exceeded for the current billing period.";
|
|
18041
18039
|
case "payment_required":
|
|
18042
18040
|
return "Payment required to continue using the service.";
|
|
18043
18041
|
case "select-tariff":
|
|
18044
18042
|
return "Select a subscription plan in the Scientist Cabinet.";
|
|
18043
|
+
case "inactive":
|
|
18044
|
+
return "Not found billing period.";
|
|
18045
|
+
case "awaiting":
|
|
18046
|
+
return "Waiting for monetization information";
|
|
18045
18047
|
default:
|
|
18046
|
-
return "";
|
|
18048
|
+
return "Unknown status: " + l.value;
|
|
18047
18049
|
}
|
|
18048
18050
|
}), z = O(() => a.value ? "monetization-on" : "monetization-off");
|
|
18049
18051
|
return (Z, D) => (g(), C(ze, null, [
|
|
@@ -18179,7 +18181,7 @@ var Eu = { exports: {} };
|
|
|
18179
18181
|
Eu.exports;
|
|
18180
18182
|
(function(t, e) {
|
|
18181
18183
|
(function() {
|
|
18182
|
-
var n, r = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", u = "Invalid `variable` option passed into `_.template`", c = "__lodash_hash_undefined__", f = 500, p = "__lodash_placeholder__", m = 1, v = 2, _ = 4, A = 1, $ = 2, I = 1, z = 2, Z = 4, D = 8, X = 16, F = 32, R = 64, W = 128, J = 256, E = 512, L = 30, S = "...", B = 800, T = 16, x = 1, U = 2, H = 3, q = 1 / 0, Q = 9007199254740991, de = 17976931348623157e292,
|
|
18184
|
+
var n, r = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", l = "Expected a function", u = "Invalid `variable` option passed into `_.template`", c = "__lodash_hash_undefined__", f = 500, p = "__lodash_placeholder__", m = 1, v = 2, _ = 4, A = 1, $ = 2, I = 1, z = 2, Z = 4, D = 8, X = 16, F = 32, R = 64, W = 128, J = 256, E = 512, L = 30, S = "...", B = 800, T = 16, x = 1, U = 2, H = 3, q = 1 / 0, Q = 9007199254740991, de = 17976931348623157e292, Se = NaN, Re = 4294967295, Be = Re - 1, ct = Re >>> 1, Wt = [
|
|
18183
18185
|
["ary", W],
|
|
18184
18186
|
["bind", I],
|
|
18185
18187
|
["bindKey", z],
|
|
@@ -18567,7 +18569,7 @@ Eu.exports;
|
|
|
18567
18569
|
}
|
|
18568
18570
|
function fh(G, re) {
|
|
18569
18571
|
var te = G == null ? 0 : G.length;
|
|
18570
|
-
return te ? bc(G, re) / te :
|
|
18572
|
+
return te ? bc(G, re) / te : Se;
|
|
18571
18573
|
}
|
|
18572
18574
|
function yc(G) {
|
|
18573
18575
|
return function(re) {
|
|
@@ -19515,7 +19517,7 @@ Eu.exports;
|
|
|
19515
19517
|
return k;
|
|
19516
19518
|
}
|
|
19517
19519
|
function Gh(s) {
|
|
19518
|
-
return typeof s == "number" ? s : Cn(s) ?
|
|
19520
|
+
return typeof s == "number" ? s : Cn(s) ? Se : +s;
|
|
19519
19521
|
}
|
|
19520
19522
|
function kn(s) {
|
|
19521
19523
|
if (typeof s == "string")
|
|
@@ -21204,7 +21206,7 @@ Eu.exports;
|
|
|
21204
21206
|
if (typeof s == "number")
|
|
21205
21207
|
return s;
|
|
21206
21208
|
if (Cn(s))
|
|
21207
|
-
return
|
|
21209
|
+
return Se;
|
|
21208
21210
|
if (xt(s)) {
|
|
21209
21211
|
var o = typeof s.valueOf == "function" ? s.valueOf() : s;
|
|
21210
21212
|
s = xt(o) ? o + "" : o;
|
|
@@ -21213,7 +21215,7 @@ Eu.exports;
|
|
|
21213
21215
|
return s === 0 ? s : +s;
|
|
21214
21216
|
s = hh(s);
|
|
21215
21217
|
var d = L_.test(s);
|
|
21216
|
-
return d || D_.test(s) ? m1(s.slice(2), d ? 2 : 8) : N_.test(s) ?
|
|
21218
|
+
return d || D_.test(s) ? m1(s.slice(2), d ? 2 : 8) : N_.test(s) ? Se : +s;
|
|
21217
21219
|
}
|
|
21218
21220
|
function Xm(s) {
|
|
21219
21221
|
return yr(s, vn(s));
|
|
@@ -24229,8 +24231,8 @@ function vr() {
|
|
|
24229
24231
|
const q = ((this.options.includePrerelease && _) | (this.options.loose && A)) + ":" + U, Q = r.get(q);
|
|
24230
24232
|
if (Q)
|
|
24231
24233
|
return Q;
|
|
24232
|
-
const de = this.options.loose,
|
|
24233
|
-
U = U.replace(
|
|
24234
|
+
const de = this.options.loose, Se = de ? c[f.HYPHENRANGELOOSE] : c[f.HYPHENRANGE];
|
|
24235
|
+
U = U.replace(Se, B(this.options.includePrerelease)), l("hyphen replace", U), U = U.replace(c[f.COMPARATORTRIM], p), l("comparator trim", U), U = U.replace(c[f.TILDETRIM], m), l("tilde trim", U), U = U.replace(c[f.CARETTRIM], v), l("caret trim", U);
|
|
24234
24236
|
let Re = U.split(" ").map((pt) => Z(pt, this.options)).join(" ").split(/\s+/).map((pt) => S(pt, this.options));
|
|
24235
24237
|
de && (Re = Re.filter((pt) => (l("loose invalid filter", pt, this.options), !!pt.match(c[f.COMPARATORLOOSE])))), l("range list", Re);
|
|
24236
24238
|
const Be = /* @__PURE__ */ new Map(), ct = Re.map((pt) => new a(pt, this.options));
|
|
@@ -24246,7 +24248,7 @@ function vr() {
|
|
|
24246
24248
|
intersects(U, H) {
|
|
24247
24249
|
if (!(U instanceof e))
|
|
24248
24250
|
throw new TypeError("a Range is required");
|
|
24249
|
-
return this.set.some((q) => z(q, H) && U.set.some((Q) => z(Q, H) && q.every((de) => Q.every((
|
|
24251
|
+
return this.set.some((q) => z(q, H) && U.set.some((Q) => z(Q, H) && q.every((de) => Q.every((Se) => de.intersects(Se, H)))));
|
|
24250
24252
|
}
|
|
24251
24253
|
// if ANY of the sets match ALL of its comparators, then pass
|
|
24252
24254
|
test(U) {
|
|
@@ -24280,28 +24282,28 @@ function vr() {
|
|
|
24280
24282
|
return H;
|
|
24281
24283
|
}, Z = (x, U) => (l("comp", x, U), x = R(x, U), l("caret", x), x = X(x, U), l("tildes", x), x = J(x, U), l("xrange", x), x = L(x, U), l("stars", x), x), D = (x) => !x || x.toLowerCase() === "x" || x === "*", X = (x, U) => x.trim().split(/\s+/).map((H) => F(H, U)).join(" "), F = (x, U) => {
|
|
24282
24284
|
const H = U.loose ? c[f.TILDELOOSE] : c[f.TILDE];
|
|
24283
|
-
return x.replace(H, (q, Q, de,
|
|
24284
|
-
l("tilde", x, q, Q, de,
|
|
24285
|
+
return x.replace(H, (q, Q, de, Se, Re) => {
|
|
24286
|
+
l("tilde", x, q, Q, de, Se, Re);
|
|
24285
24287
|
let Be;
|
|
24286
|
-
return D(Q) ? Be = "" : D(de) ? Be = `>=${Q}.0.0 <${+Q + 1}.0.0-0` : D(
|
|
24288
|
+
return D(Q) ? Be = "" : D(de) ? Be = `>=${Q}.0.0 <${+Q + 1}.0.0-0` : D(Se) ? Be = `>=${Q}.${de}.0 <${Q}.${+de + 1}.0-0` : Re ? (l("replaceTilde pr", Re), Be = `>=${Q}.${de}.${Se}-${Re} <${Q}.${+de + 1}.0-0`) : Be = `>=${Q}.${de}.${Se} <${Q}.${+de + 1}.0-0`, l("tilde return", Be), Be;
|
|
24287
24289
|
});
|
|
24288
24290
|
}, R = (x, U) => x.trim().split(/\s+/).map((H) => W(H, U)).join(" "), W = (x, U) => {
|
|
24289
24291
|
l("caret", x, U);
|
|
24290
24292
|
const H = U.loose ? c[f.CARETLOOSE] : c[f.CARET], q = U.includePrerelease ? "-0" : "";
|
|
24291
|
-
return x.replace(H, (Q, de,
|
|
24292
|
-
l("caret", x, Q, de,
|
|
24293
|
+
return x.replace(H, (Q, de, Se, Re, Be) => {
|
|
24294
|
+
l("caret", x, Q, de, Se, Re, Be);
|
|
24293
24295
|
let ct;
|
|
24294
|
-
return D(de) ? ct = "" : D(
|
|
24296
|
+
return D(de) ? ct = "" : D(Se) ? ct = `>=${de}.0.0${q} <${+de + 1}.0.0-0` : D(Re) ? de === "0" ? ct = `>=${de}.${Se}.0${q} <${de}.${+Se + 1}.0-0` : ct = `>=${de}.${Se}.0${q} <${+de + 1}.0.0-0` : Be ? (l("replaceCaret pr", Be), de === "0" ? Se === "0" ? ct = `>=${de}.${Se}.${Re}-${Be} <${de}.${Se}.${+Re + 1}-0` : ct = `>=${de}.${Se}.${Re}-${Be} <${de}.${+Se + 1}.0-0` : ct = `>=${de}.${Se}.${Re}-${Be} <${+de + 1}.0.0-0`) : (l("no pr"), de === "0" ? Se === "0" ? ct = `>=${de}.${Se}.${Re}${q} <${de}.${Se}.${+Re + 1}-0` : ct = `>=${de}.${Se}.${Re}${q} <${de}.${+Se + 1}.0-0` : ct = `>=${de}.${Se}.${Re} <${+de + 1}.0.0-0`), l("caret return", ct), ct;
|
|
24295
24297
|
});
|
|
24296
24298
|
}, J = (x, U) => (l("replaceXRanges", x, U), x.split(/\s+/).map((H) => E(H, U)).join(" ")), E = (x, U) => {
|
|
24297
24299
|
x = x.trim();
|
|
24298
24300
|
const H = U.loose ? c[f.XRANGELOOSE] : c[f.XRANGE];
|
|
24299
|
-
return x.replace(H, (q, Q, de,
|
|
24300
|
-
l("xRange", x, q, Q, de,
|
|
24301
|
-
const ct = D(de), Wt = ct || D(
|
|
24302
|
-
return Q === "=" && pn && (Q = ""), Be = U.includePrerelease ? "-0" : "", ct ? Q === ">" || Q === "<" ? q = "<0.0.0-0" : q = "*" : Q && pn ? (Wt && (
|
|
24301
|
+
return x.replace(H, (q, Q, de, Se, Re, Be) => {
|
|
24302
|
+
l("xRange", x, q, Q, de, Se, Re, Be);
|
|
24303
|
+
const ct = D(de), Wt = ct || D(Se), pt = Wt || D(Re), pn = pt;
|
|
24304
|
+
return Q === "=" && pn && (Q = ""), Be = U.includePrerelease ? "-0" : "", ct ? Q === ">" || Q === "<" ? q = "<0.0.0-0" : q = "*" : Q && pn ? (Wt && (Se = 0), Re = 0, Q === ">" ? (Q = ">=", Wt ? (de = +de + 1, Se = 0, Re = 0) : (Se = +Se + 1, Re = 0)) : Q === "<=" && (Q = "<", Wt ? de = +de + 1 : Se = +Se + 1), Q === "<" && (Be = "-0"), q = `${Q + de}.${Se}.${Re}${Be}`) : Wt ? q = `>=${de}.0.0${Be} <${+de + 1}.0.0-0` : pt && (q = `>=${de}.${Se}.0${Be} <${de}.${+Se + 1}.0-0`), l("xRange return", q), q;
|
|
24303
24305
|
});
|
|
24304
|
-
}, L = (x, U) => (l("replaceStars", x, U), x.trim().replace(c[f.STAR], "")), S = (x, U) => (l("replaceGTE0", x, U), x.trim().replace(c[U.includePrerelease ? f.GTE0PRE : f.GTE0], "")), B = (x) => (U, H, q, Q, de,
|
|
24306
|
+
}, L = (x, U) => (l("replaceStars", x, U), x.trim().replace(c[f.STAR], "")), S = (x, U) => (l("replaceGTE0", x, U), x.trim().replace(c[U.includePrerelease ? f.GTE0PRE : f.GTE0], "")), B = (x) => (U, H, q, Q, de, Se, Re, Be, ct, Wt, pt, pn) => (D(q) ? H = "" : D(Q) ? H = `>=${q}.0.0${x ? "-0" : ""}` : D(de) ? H = `>=${q}.${Q}.0${x ? "-0" : ""}` : Se ? H = `>=${H}` : H = `>=${H}${x ? "-0" : ""}`, D(ct) ? Be = "" : D(Wt) ? Be = `<${+ct + 1}.0.0-0` : D(pt) ? Be = `<${ct}.${+Wt + 1}.0-0` : pn ? Be = `<=${ct}.${Wt}.${pt}-${pn}` : x ? Be = `<${ct}.${Wt}.${+pt + 1}-0` : Be = `<=${Be}`, `${H} ${Be}`.trim()), T = (x, U, H) => {
|
|
24305
24307
|
for (let q = 0; q < x.length; q++)
|
|
24306
24308
|
if (!x[q].test(U))
|
|
24307
24309
|
return !1;
|