scordi-extension 1.15.14 → 1.15.15
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/sdk/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Pn = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var ue = (r, e, t) =>
|
|
2
|
+
var Nn = (r, e, t) => e in r ? Pn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var ue = (r, e, t) => Nn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
var we;
|
|
5
5
|
(function(r) {
|
|
6
6
|
r.assertEqual = (s) => {
|
|
@@ -105,7 +105,7 @@ const z = we.arrayToEnum([
|
|
|
105
105
|
"invalid_intersection_types",
|
|
106
106
|
"not_multiple_of",
|
|
107
107
|
"not_finite"
|
|
108
|
-
]),
|
|
108
|
+
]), Cn = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
109
109
|
class at extends Error {
|
|
110
110
|
get errors() {
|
|
111
111
|
return this.issues;
|
|
@@ -503,7 +503,7 @@ class le {
|
|
|
503
503
|
return yt.create(this, this._def);
|
|
504
504
|
}
|
|
505
505
|
nullable() {
|
|
506
|
-
return
|
|
506
|
+
return Ct.create(this, this._def);
|
|
507
507
|
}
|
|
508
508
|
nullish() {
|
|
509
509
|
return this.nullable().optional();
|
|
@@ -1590,7 +1590,7 @@ function Vt(r) {
|
|
|
1590
1590
|
} else return r instanceof dt ? new dt({
|
|
1591
1591
|
...r._def,
|
|
1592
1592
|
type: Vt(r.element)
|
|
1593
|
-
}) : r instanceof yt ? yt.create(Vt(r.unwrap())) : r instanceof
|
|
1593
|
+
}) : r instanceof yt ? yt.create(Vt(r.unwrap())) : r instanceof Ct ? Ct.create(Vt(r.unwrap())) : r instanceof vt ? vt.create(r.items.map((e) => Vt(e))) : r;
|
|
1594
1594
|
}
|
|
1595
1595
|
class Ie extends le {
|
|
1596
1596
|
constructor() {
|
|
@@ -1953,7 +1953,7 @@ sr.create = (r, e) => new sr({
|
|
|
1953
1953
|
typeName: ne.ZodUnion,
|
|
1954
1954
|
...oe(e)
|
|
1955
1955
|
});
|
|
1956
|
-
const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerType()) : r instanceof ur ? [r.value] : r instanceof
|
|
1956
|
+
const xt = (r) => r instanceof cr ? xt(r.schema) : r instanceof ht ? xt(r.innerType()) : r instanceof ur ? [r.value] : r instanceof Nt ? r.options : r instanceof lr ? we.objectValues(r.enum) : r instanceof fr ? xt(r._def.innerType) : r instanceof nr ? [void 0] : r instanceof ar ? [null] : r instanceof yt ? [void 0, ...xt(r.unwrap())] : r instanceof Ct ? [null, ...xt(r.unwrap())] : r instanceof $r || r instanceof hr ? xt(r.unwrap()) : r instanceof dr ? xt(r._def.innerType) : [];
|
|
1957
1957
|
class Dr extends le {
|
|
1958
1958
|
_parse(e) {
|
|
1959
1959
|
const { ctx: t } = this._processInputParams(e);
|
|
@@ -2410,13 +2410,13 @@ ur.create = (r, e) => new ur({
|
|
|
2410
2410
|
...oe(e)
|
|
2411
2411
|
});
|
|
2412
2412
|
function rn(r, e) {
|
|
2413
|
-
return new
|
|
2413
|
+
return new Nt({
|
|
2414
2414
|
values: r,
|
|
2415
2415
|
typeName: ne.ZodEnum,
|
|
2416
2416
|
...oe(e)
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
2419
|
-
class
|
|
2419
|
+
class Nt extends le {
|
|
2420
2420
|
_parse(e) {
|
|
2421
2421
|
if (typeof e.data != "string") {
|
|
2422
2422
|
const t = this._getOrReturnCtx(e), a = this._def.values;
|
|
@@ -2458,19 +2458,19 @@ class Ct extends le {
|
|
|
2458
2458
|
return e;
|
|
2459
2459
|
}
|
|
2460
2460
|
extract(e, t = this._def) {
|
|
2461
|
-
return
|
|
2461
|
+
return Nt.create(e, {
|
|
2462
2462
|
...this._def,
|
|
2463
2463
|
...t
|
|
2464
2464
|
});
|
|
2465
2465
|
}
|
|
2466
2466
|
exclude(e, t = this._def) {
|
|
2467
|
-
return
|
|
2467
|
+
return Nt.create(this.options.filter((a) => !e.includes(a)), {
|
|
2468
2468
|
...this._def,
|
|
2469
2469
|
...t
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
|
|
2473
|
+
Nt.create = rn;
|
|
2474
2474
|
class lr extends le {
|
|
2475
2475
|
_parse(e) {
|
|
2476
2476
|
const t = we.getValidEnumValues(this._def.values), a = this._getOrReturnCtx(e);
|
|
@@ -2630,7 +2630,7 @@ yt.create = (r, e) => new yt({
|
|
|
2630
2630
|
typeName: ne.ZodOptional,
|
|
2631
2631
|
...oe(e)
|
|
2632
2632
|
});
|
|
2633
|
-
class
|
|
2633
|
+
class Ct extends le {
|
|
2634
2634
|
_parse(e) {
|
|
2635
2635
|
return this._getType(e) === z.null ? Je(null) : this._def.innerType._parse(e);
|
|
2636
2636
|
}
|
|
@@ -2638,7 +2638,7 @@ class Nt extends le {
|
|
|
2638
2638
|
return this._def.innerType;
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
|
-
|
|
2641
|
+
Ct.create = (r, e) => new Ct({
|
|
2642
2642
|
innerType: r,
|
|
2643
2643
|
typeName: ne.ZodNullable,
|
|
2644
2644
|
...oe(e)
|
|
@@ -2820,7 +2820,7 @@ var ne;
|
|
|
2820
2820
|
})(ne || (ne = {}));
|
|
2821
2821
|
const aa = (r, e = {
|
|
2822
2822
|
message: `Input not instance of ${r.name}`
|
|
2823
|
-
}) => nn((t) => t instanceof r, e), $e = ft.create, Lt = Ot.create, sa = Sr.create, ia = Pt.create, Tt = rr.create, oa = Ut.create, ca = Er.create, ua = nr.create, la = ar.create, fa = Yt.create, da = jt.create, ha = Et.create, pa = Tr.create, ma = dt.create, Rt = Ie.create, ya = Ie.strictCreate, ga = sr.create, va = Dr.create, wa = ir.create, ba = vt.create, ka = or.create, xa = Ar.create, _a = $t.create, Ea = Ht.create, Ta = cr.create, Aa = ur.create, Lr =
|
|
2823
|
+
}) => nn((t) => t instanceof r, e), $e = ft.create, Lt = Ot.create, sa = Sr.create, ia = Pt.create, Tt = rr.create, oa = Ut.create, ca = Er.create, ua = nr.create, la = ar.create, fa = Yt.create, da = jt.create, ha = Et.create, pa = Tr.create, ma = dt.create, Rt = Ie.create, ya = Ie.strictCreate, ga = sr.create, va = Dr.create, wa = ir.create, ba = vt.create, ka = or.create, xa = Ar.create, _a = $t.create, Ea = Ht.create, Ta = cr.create, Aa = ur.create, Lr = Nt.create, Br = lr.create, Sa = Kt.create, Gr = ht.create, Da = yt.create, Oa = Ct.create, Pa = ht.createWithPreprocess, Na = pr.create, Ca = () => $e().optional(), Ra = () => Lt().optional(), Ma = () => Tt().optional(), Fr = {
|
|
2824
2824
|
string: ((r) => ft.create({ ...r, coerce: !0 })),
|
|
2825
2825
|
number: ((r) => Ot.create({ ...r, coerce: !0 })),
|
|
2826
2826
|
boolean: ((r) => rr.create({
|
|
@@ -2849,7 +2849,7 @@ const aa = (r, e = {
|
|
|
2849
2849
|
ZodDefault: fr,
|
|
2850
2850
|
ZodDiscriminatedUnion: Dr,
|
|
2851
2851
|
ZodEffects: ht,
|
|
2852
|
-
ZodEnum:
|
|
2852
|
+
ZodEnum: Nt,
|
|
2853
2853
|
ZodError: at,
|
|
2854
2854
|
get ZodFirstPartyTypeKind() {
|
|
2855
2855
|
return ne;
|
|
@@ -2864,7 +2864,7 @@ const aa = (r, e = {
|
|
|
2864
2864
|
ZodNativeEnum: lr,
|
|
2865
2865
|
ZodNever: Et,
|
|
2866
2866
|
ZodNull: ar,
|
|
2867
|
-
ZodNullable:
|
|
2867
|
+
ZodNullable: Ct,
|
|
2868
2868
|
ZodNumber: Ot,
|
|
2869
2869
|
ZodObject: Ie,
|
|
2870
2870
|
ZodOptional: yt,
|
|
@@ -2924,11 +2924,11 @@ const aa = (r, e = {
|
|
|
2924
2924
|
oboolean: Ma,
|
|
2925
2925
|
onumber: Ra,
|
|
2926
2926
|
optional: Da,
|
|
2927
|
-
ostring:
|
|
2928
|
-
pipeline:
|
|
2927
|
+
ostring: Ca,
|
|
2928
|
+
pipeline: Na,
|
|
2929
2929
|
preprocess: Pa,
|
|
2930
2930
|
promise: Sa,
|
|
2931
|
-
quotelessJson:
|
|
2931
|
+
quotelessJson: Cn,
|
|
2932
2932
|
record: ka,
|
|
2933
2933
|
set: _a,
|
|
2934
2934
|
setErrorMap: Rn,
|
|
@@ -3358,8 +3358,8 @@ async function Ya(r) {
|
|
|
3358
3358
|
} else
|
|
3359
3359
|
Q = 0;
|
|
3360
3360
|
}
|
|
3361
|
-
const
|
|
3362
|
-
if (window.scrollBy({ top: M, behavior: "auto" }), await new Promise((B) => setTimeout(B, D)), (window.pageYOffset || document.documentElement.scrollTop) ===
|
|
3361
|
+
const C = window.pageYOffset || document.documentElement.scrollTop;
|
|
3362
|
+
if (window.scrollBy({ top: M, behavior: "auto" }), await new Promise((B) => setTimeout(B, D)), (window.pageYOffset || document.documentElement.scrollTop) === C)
|
|
3363
3363
|
break;
|
|
3364
3364
|
ae++;
|
|
3365
3365
|
}
|
|
@@ -3683,7 +3683,7 @@ async function ys(r, e, t, a = []) {
|
|
|
3683
3683
|
data: {
|
|
3684
3684
|
key: r,
|
|
3685
3685
|
code: e || r,
|
|
3686
|
-
keyCode: t ||
|
|
3686
|
+
keyCode: t || Nr(r),
|
|
3687
3687
|
modifiers: a
|
|
3688
3688
|
}
|
|
3689
3689
|
});
|
|
@@ -3696,14 +3696,14 @@ async function ys(r, e, t, a = []) {
|
|
|
3696
3696
|
const i = new KeyboardEvent("keydown", {
|
|
3697
3697
|
key: r,
|
|
3698
3698
|
code: e || r,
|
|
3699
|
-
keyCode: t ||
|
|
3699
|
+
keyCode: t || Nr(r),
|
|
3700
3700
|
bubbles: !0,
|
|
3701
3701
|
cancelable: !0,
|
|
3702
3702
|
...Yr(a)
|
|
3703
3703
|
}), c = new KeyboardEvent("keyup", {
|
|
3704
3704
|
key: r,
|
|
3705
3705
|
code: e || r,
|
|
3706
|
-
keyCode: t ||
|
|
3706
|
+
keyCode: t || Nr(r),
|
|
3707
3707
|
bubbles: !0,
|
|
3708
3708
|
cancelable: !0,
|
|
3709
3709
|
...Yr(a)
|
|
@@ -3712,7 +3712,7 @@ async function ys(r, e, t, a = []) {
|
|
|
3712
3712
|
}
|
|
3713
3713
|
await new Promise((s) => setTimeout(s, 50));
|
|
3714
3714
|
}
|
|
3715
|
-
function
|
|
3715
|
+
function Nr(r) {
|
|
3716
3716
|
return {
|
|
3717
3717
|
Escape: 27,
|
|
3718
3718
|
Enter: 13,
|
|
@@ -4104,9 +4104,9 @@ async function Ps(r) {
|
|
|
4104
4104
|
case "toElement":
|
|
4105
4105
|
if (!e)
|
|
4106
4106
|
throw new Error("Selector is required for toElement scroll type");
|
|
4107
|
-
return await
|
|
4107
|
+
return await Ns(e, f, w, s);
|
|
4108
4108
|
case "toBottom":
|
|
4109
|
-
return await
|
|
4109
|
+
return await Cs(s, c);
|
|
4110
4110
|
case "byDistance":
|
|
4111
4111
|
return await Rs(a, s);
|
|
4112
4112
|
case "untilLoaded":
|
|
@@ -4122,7 +4122,7 @@ async function Ps(r) {
|
|
|
4122
4122
|
};
|
|
4123
4123
|
}
|
|
4124
4124
|
}
|
|
4125
|
-
async function
|
|
4125
|
+
async function Ns(r, e, t, a) {
|
|
4126
4126
|
const s = await pt({ selector: r, findBy: e, option: t });
|
|
4127
4127
|
return s ? ((Array.isArray(s) ? s[0] : s).scrollIntoView({ behavior: a, block: "center" }), { data: !0 }) : {
|
|
4128
4128
|
hasError: !0,
|
|
@@ -4130,7 +4130,7 @@ async function Cs(r, e, t, a) {
|
|
|
4130
4130
|
data: !1
|
|
4131
4131
|
};
|
|
4132
4132
|
}
|
|
4133
|
-
async function
|
|
4133
|
+
async function Cs(r, e) {
|
|
4134
4134
|
let t = document.body.scrollHeight, a = 0;
|
|
4135
4135
|
const s = 50;
|
|
4136
4136
|
for (; a < s; ) {
|
|
@@ -4217,7 +4217,7 @@ function Fs(r) {
|
|
|
4217
4217
|
function kr(r) {
|
|
4218
4218
|
throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4219
4219
|
}
|
|
4220
|
-
var
|
|
4220
|
+
var Cr = { exports: {} }, Jr;
|
|
4221
4221
|
function Us() {
|
|
4222
4222
|
return Jr || (Jr = 1, (function(r, e) {
|
|
4223
4223
|
(function(t) {
|
|
@@ -4309,8 +4309,8 @@ function Us() {
|
|
|
4309
4309
|
F = (j ? ", " : "") + b(be, !1, !1) + " " + D[J - 1], K > 0 ? F += b(K, !0, O) : O && (F += "th");
|
|
4310
4310
|
}
|
|
4311
4311
|
return F;
|
|
4312
|
-
},
|
|
4313
|
-
return
|
|
4312
|
+
}, N = b(v, !1, A);
|
|
4313
|
+
return N;
|
|
4314
4314
|
}
|
|
4315
4315
|
const S = {};
|
|
4316
4316
|
w.forEach(function(v, A) {
|
|
@@ -4321,19 +4321,19 @@ function Us() {
|
|
|
4321
4321
|
const b = v.toLowerCase();
|
|
4322
4322
|
S[b] = (A + 2) * 10, S[b.substring(0, v.length - 1) + "ieth"] = S[b];
|
|
4323
4323
|
}), S.hundredth = 100, D.forEach(function(v, A) {
|
|
4324
|
-
const b = v.toLowerCase(),
|
|
4325
|
-
S[b] =
|
|
4324
|
+
const b = v.toLowerCase(), N = Math.pow(10, (A + 1) * 3);
|
|
4325
|
+
S[b] = N, S[b + "th"] = N;
|
|
4326
4326
|
});
|
|
4327
4327
|
function I(v) {
|
|
4328
4328
|
const b = v.split(/,\s|\sand\s|[\s\\-]/).map((j) => S[j]);
|
|
4329
|
-
let
|
|
4329
|
+
let N = [0];
|
|
4330
4330
|
return b.forEach((j) => {
|
|
4331
4331
|
if (j < 100) {
|
|
4332
|
-
let O =
|
|
4333
|
-
O >= 1e3 && (
|
|
4332
|
+
let O = N.pop();
|
|
4333
|
+
O >= 1e3 && (N.push(O), O = 0), N.push(O + j);
|
|
4334
4334
|
} else
|
|
4335
|
-
|
|
4336
|
-
}),
|
|
4335
|
+
N.push(N.pop() * j);
|
|
4336
|
+
}), N.reduce((j, O) => j + O, 0);
|
|
4337
4337
|
}
|
|
4338
4338
|
const ae = [
|
|
4339
4339
|
[1e3, "m"],
|
|
@@ -4359,21 +4359,21 @@ function Us() {
|
|
|
4359
4359
|
return "";
|
|
4360
4360
|
}
|
|
4361
4361
|
function H(v) {
|
|
4362
|
-
for (var A = 0, b = 1,
|
|
4363
|
-
const U = v[
|
|
4362
|
+
for (var A = 0, b = 1, N = v.length - 1; N >= 0; N--) {
|
|
4363
|
+
const U = v[N], j = Q[U];
|
|
4364
4364
|
j < b ? A -= j : (b = j, A += j);
|
|
4365
4365
|
}
|
|
4366
4366
|
return A;
|
|
4367
4367
|
}
|
|
4368
|
-
function
|
|
4369
|
-
for (var b = [],
|
|
4370
|
-
b.unshift(String.fromCharCode((v - 1) % 26 +
|
|
4368
|
+
function C(v, A) {
|
|
4369
|
+
for (var b = [], N = A.charCodeAt(0); v > 0; )
|
|
4370
|
+
b.unshift(String.fromCharCode((v - 1) % 26 + N)), v = Math.floor((v - 1) / 26);
|
|
4371
4371
|
return b.join("");
|
|
4372
4372
|
}
|
|
4373
4373
|
function se(v, A) {
|
|
4374
|
-
for (var b = A.charCodeAt(0),
|
|
4375
|
-
|
|
4376
|
-
return
|
|
4374
|
+
for (var b = A.charCodeAt(0), N = 0, U = 0; U < v.length; U++)
|
|
4375
|
+
N += (v.charCodeAt(v.length - U - 1) - b + 1) * Math.pow(26, U);
|
|
4376
|
+
return N;
|
|
4377
4377
|
}
|
|
4378
4378
|
function B(v, A) {
|
|
4379
4379
|
if (typeof v > "u")
|
|
@@ -4395,10 +4395,10 @@ function Us() {
|
|
|
4395
4395
|
};
|
|
4396
4396
|
function W(v, A) {
|
|
4397
4397
|
let b;
|
|
4398
|
-
const
|
|
4398
|
+
const N = v < 0;
|
|
4399
4399
|
switch (v = Math.abs(v), A.primary) {
|
|
4400
4400
|
case E.LETTERS:
|
|
4401
|
-
b =
|
|
4401
|
+
b = C(v, A.case === L.UPPER ? "A" : "a");
|
|
4402
4402
|
break;
|
|
4403
4403
|
case E.ROMAN:
|
|
4404
4404
|
b = pe(v), A.case === L.UPPER && (b = b.toUpperCase());
|
|
@@ -4435,7 +4435,7 @@ function Us() {
|
|
|
4435
4435
|
value: A.token
|
|
4436
4436
|
};
|
|
4437
4437
|
}
|
|
4438
|
-
return
|
|
4438
|
+
return N && (b = "-" + b), b;
|
|
4439
4439
|
}
|
|
4440
4440
|
const he = [48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3558, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43504, 43600, 44016, 65296];
|
|
4441
4441
|
function xe(v) {
|
|
@@ -4445,9 +4445,9 @@ function Us() {
|
|
|
4445
4445
|
case: L.LOWER,
|
|
4446
4446
|
ordinal: !1
|
|
4447
4447
|
};
|
|
4448
|
-
let b,
|
|
4448
|
+
let b, N;
|
|
4449
4449
|
const U = v.lastIndexOf(";");
|
|
4450
|
-
switch (U === -1 ? b = v : (b = v.substring(0, U),
|
|
4450
|
+
switch (U === -1 ? b = v : (b = v.substring(0, U), N = v.substring(U + 1), N[0] === "o" && (A.ordinal = !0)), b) {
|
|
4451
4451
|
case "A":
|
|
4452
4452
|
A.case = L.UPPER;
|
|
4453
4453
|
/* eslnt-disable-next-line no-fallthrough */
|
|
@@ -4542,7 +4542,7 @@ function Us() {
|
|
|
4542
4542
|
const b = {
|
|
4543
4543
|
type: "datetime",
|
|
4544
4544
|
parts: A
|
|
4545
|
-
},
|
|
4545
|
+
}, N = function(ee, me) {
|
|
4546
4546
|
if (me > ee) {
|
|
4547
4547
|
let G = v.substring(ee, me);
|
|
4548
4548
|
G = G.split("]]").join("]"), A.push({ type: "literal", value: G });
|
|
@@ -4551,10 +4551,10 @@ function Us() {
|
|
|
4551
4551
|
for (var U = 0, j = 0; j < v.length; ) {
|
|
4552
4552
|
if (v.charAt(j) === "[") {
|
|
4553
4553
|
if (v.charAt(j + 1) === "[") {
|
|
4554
|
-
|
|
4554
|
+
N(U, j), A.push({ type: "literal", value: "[" }), j += 2, U = j;
|
|
4555
4555
|
continue;
|
|
4556
4556
|
}
|
|
4557
|
-
if (
|
|
4557
|
+
if (N(U, j), U = j, j = v.indexOf("]", U), j === -1)
|
|
4558
4558
|
throw {
|
|
4559
4559
|
code: "D3135"
|
|
4560
4560
|
};
|
|
@@ -4612,7 +4612,7 @@ function Us() {
|
|
|
4612
4612
|
}
|
|
4613
4613
|
j++;
|
|
4614
4614
|
}
|
|
4615
|
-
return
|
|
4615
|
+
return N(U, j), b;
|
|
4616
4616
|
}
|
|
4617
4617
|
const ve = ["", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], Re = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], et = 1e3 * 60 * 60 * 24, _e = function(v) {
|
|
4618
4618
|
const A = Date.UTC(v.year, v.month);
|
|
@@ -4650,47 +4650,47 @@ function Us() {
|
|
|
4650
4650
|
b = v.getUTCDate();
|
|
4651
4651
|
break;
|
|
4652
4652
|
case "d": {
|
|
4653
|
-
const
|
|
4654
|
-
b = (
|
|
4653
|
+
const N = Date.UTC(v.getUTCFullYear(), v.getUTCMonth(), v.getUTCDate()), U = Date.UTC(v.getUTCFullYear(), 0);
|
|
4654
|
+
b = (N - U) / et + 1;
|
|
4655
4655
|
break;
|
|
4656
4656
|
}
|
|
4657
4657
|
case "F":
|
|
4658
4658
|
b = v.getUTCDay(), b === 0 && (b = 7);
|
|
4659
4659
|
break;
|
|
4660
4660
|
case "W": {
|
|
4661
|
-
const
|
|
4661
|
+
const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = Date.UTC(N.year, v.getUTCMonth(), v.getUTCDate());
|
|
4662
4662
|
let O = tt(U, j);
|
|
4663
4663
|
if (O > 52) {
|
|
4664
|
-
const F = _e(
|
|
4664
|
+
const F = _e(N.nextYear());
|
|
4665
4665
|
j >= F && (O = 1);
|
|
4666
4666
|
} else if (O < 1) {
|
|
4667
|
-
const F = _e(
|
|
4667
|
+
const F = _e(N.previousYear());
|
|
4668
4668
|
O = tt(F, j);
|
|
4669
4669
|
}
|
|
4670
4670
|
b = Math.floor(O);
|
|
4671
4671
|
break;
|
|
4672
4672
|
}
|
|
4673
4673
|
case "w": {
|
|
4674
|
-
const
|
|
4674
|
+
const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = Date.UTC(N.year, N.month, v.getUTCDate());
|
|
4675
4675
|
let O = tt(U, j);
|
|
4676
4676
|
if (O > 4) {
|
|
4677
|
-
const F = _e(
|
|
4677
|
+
const F = _e(N.nextMonth());
|
|
4678
4678
|
j >= F && (O = 1);
|
|
4679
4679
|
} else if (O < 1) {
|
|
4680
|
-
const F = _e(
|
|
4680
|
+
const F = _e(N.previousMonth());
|
|
4681
4681
|
O = tt(F, j);
|
|
4682
4682
|
}
|
|
4683
4683
|
b = Math.floor(O);
|
|
4684
4684
|
break;
|
|
4685
4685
|
}
|
|
4686
4686
|
case "X": {
|
|
4687
|
-
const
|
|
4688
|
-
O < U ? b =
|
|
4687
|
+
const N = fe(v.getUTCFullYear(), 0), U = _e(N), j = _e(N.nextYear()), O = v.getTime();
|
|
4688
|
+
O < U ? b = N.year - 1 : O >= j ? b = N.year + 1 : b = N.year;
|
|
4689
4689
|
break;
|
|
4690
4690
|
}
|
|
4691
4691
|
case "x": {
|
|
4692
|
-
const
|
|
4693
|
-
F < U ? b =
|
|
4692
|
+
const N = fe(v.getUTCFullYear(), v.getUTCMonth()), U = _e(N), j = N.nextMonth(), O = _e(j), F = v.getTime();
|
|
4693
|
+
F < U ? b = N.previousMonth().month + 1 : F >= O ? b = j.month + 1 : b = N.month + 1;
|
|
4694
4694
|
break;
|
|
4695
4695
|
}
|
|
4696
4696
|
case "H":
|
|
@@ -4726,10 +4726,10 @@ function Us() {
|
|
|
4726
4726
|
};
|
|
4727
4727
|
let Fe = null;
|
|
4728
4728
|
function st(v, A, b) {
|
|
4729
|
-
var
|
|
4729
|
+
var N = 0, U = 0;
|
|
4730
4730
|
if (typeof b < "u") {
|
|
4731
4731
|
const be = parseInt(b);
|
|
4732
|
-
|
|
4732
|
+
N = Math.floor(be / 100), U = be % 100;
|
|
4733
4733
|
}
|
|
4734
4734
|
var j = function(be, K) {
|
|
4735
4735
|
var ee = ie(be, K.component);
|
|
@@ -4750,13 +4750,13 @@ function Us() {
|
|
|
4750
4750
|
else if (K.component === "f")
|
|
4751
4751
|
ee = W(ee, K.integerFormat);
|
|
4752
4752
|
else if (K.component === "Z" || K.component === "z") {
|
|
4753
|
-
const me =
|
|
4753
|
+
const me = N * 100 + U;
|
|
4754
4754
|
if (K.integerFormat.regular)
|
|
4755
4755
|
ee = W(me, K.integerFormat);
|
|
4756
4756
|
else {
|
|
4757
4757
|
const G = K.integerFormat.mandatoryDigits;
|
|
4758
4758
|
if (G === 1 || G === 2)
|
|
4759
|
-
ee = W(
|
|
4759
|
+
ee = W(N, K.integerFormat), U !== 0 && (ee += ":" + B(U, "00"));
|
|
4760
4760
|
else if (G === 3 || G === 4)
|
|
4761
4761
|
ee = W(me, K.integerFormat);
|
|
4762
4762
|
else
|
|
@@ -4771,7 +4771,7 @@ function Us() {
|
|
|
4771
4771
|
};
|
|
4772
4772
|
let O;
|
|
4773
4773
|
typeof A > "u" ? (Fe === null && (Fe = Ae("[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001][Z01:01t]")), O = Fe) : O = Ae(A);
|
|
4774
|
-
const F = (60 *
|
|
4774
|
+
const F = (60 * N + U) * 60 * 1e3, J = new Date(v + F);
|
|
4775
4775
|
let ge = "";
|
|
4776
4776
|
return O.parts.forEach(function(be) {
|
|
4777
4777
|
be.type === "literal" ? ge += be.value : ge += j(J, be);
|
|
@@ -4781,20 +4781,20 @@ function Us() {
|
|
|
4781
4781
|
var A = {};
|
|
4782
4782
|
if (v.type === "datetime")
|
|
4783
4783
|
A.type = "datetime", A.parts = v.parts.map(function(b) {
|
|
4784
|
-
var
|
|
4784
|
+
var N = {};
|
|
4785
4785
|
if (b.type === "literal")
|
|
4786
|
-
|
|
4786
|
+
N.regex = b.value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
4787
4787
|
else if (b.component === "Z" || b.component === "z") {
|
|
4788
4788
|
let j;
|
|
4789
|
-
Array.isArray(b.integerFormat.groupingSeparators) || (j = b.integerFormat.groupingSeparators),
|
|
4789
|
+
Array.isArray(b.integerFormat.groupingSeparators) || (j = b.integerFormat.groupingSeparators), N.regex = "", b.component === "z" && (N.regex = "GMT"), N.regex += "[-+][0-9]+", j && (N.regex += j.character + "[0-9]+"), N.parse = function(O) {
|
|
4790
4790
|
b.component === "z" && (O = O.substring(3));
|
|
4791
4791
|
let F = 0, J = 0;
|
|
4792
4792
|
return j ? (F = Number.parseInt(O.substring(0, O.indexOf(j.character))), J = Number.parseInt(O.substring(O.indexOf(j.character) + 1))) : O.length - 1 <= 2 ? F = Number.parseInt(O) : (F = Number.parseInt(O.substring(0, 3)), J = Number.parseInt(O.substring(3))), F * 60 + J;
|
|
4793
4793
|
};
|
|
4794
4794
|
} else if (b.integerFormat)
|
|
4795
|
-
|
|
4795
|
+
N = d(b.integerFormat);
|
|
4796
4796
|
else {
|
|
4797
|
-
|
|
4797
|
+
N.regex = "[a-zA-Z]+";
|
|
4798
4798
|
var U = {};
|
|
4799
4799
|
if (b.component === "M" || b.component === "x")
|
|
4800
4800
|
Re.forEach(function(j, O) {
|
|
@@ -4811,35 +4811,35 @@ function Us() {
|
|
|
4811
4811
|
code: "D3133",
|
|
4812
4812
|
value: b.component
|
|
4813
4813
|
};
|
|
4814
|
-
|
|
4814
|
+
N.parse = function(j) {
|
|
4815
4815
|
return U[j];
|
|
4816
4816
|
};
|
|
4817
4817
|
}
|
|
4818
|
-
return
|
|
4818
|
+
return N.component = b.component, N;
|
|
4819
4819
|
});
|
|
4820
4820
|
else {
|
|
4821
4821
|
A.type = "integer";
|
|
4822
4822
|
const b = v.case === L.UPPER;
|
|
4823
4823
|
switch (v.primary) {
|
|
4824
4824
|
case E.LETTERS:
|
|
4825
|
-
A.regex = b ? "[A-Z]+" : "[a-z]+", A.parse = function(
|
|
4826
|
-
return se(
|
|
4825
|
+
A.regex = b ? "[A-Z]+" : "[a-z]+", A.parse = function(N) {
|
|
4826
|
+
return se(N, b ? "A" : "a");
|
|
4827
4827
|
};
|
|
4828
4828
|
break;
|
|
4829
4829
|
case E.ROMAN:
|
|
4830
|
-
A.regex = b ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(
|
|
4831
|
-
return H(b ?
|
|
4830
|
+
A.regex = b ? "[MDCLXVI]+" : "[mdclxvi]+", A.parse = function(N) {
|
|
4831
|
+
return H(b ? N : N.toUpperCase());
|
|
4832
4832
|
};
|
|
4833
4833
|
break;
|
|
4834
4834
|
case E.WORDS:
|
|
4835
|
-
A.regex = "(?:" + Object.keys(S).concat("and", "[\\-, ]").join("|") + ")+", A.parse = function(
|
|
4836
|
-
return I(
|
|
4835
|
+
A.regex = "(?:" + Object.keys(S).concat("and", "[\\-, ]").join("|") + ")+", A.parse = function(N) {
|
|
4836
|
+
return I(N.toLowerCase());
|
|
4837
4837
|
};
|
|
4838
4838
|
break;
|
|
4839
4839
|
case E.DECIMAL:
|
|
4840
|
-
A.regex = "[0-9]", v.parseWidth ? A.regex += `{${v.parseWidth}}` : A.regex += "+", v.ordinal && (A.regex += "(?:th|st|nd|rd)"), A.parse = function(
|
|
4841
|
-
let U =
|
|
4842
|
-
return v.ordinal && (U =
|
|
4840
|
+
A.regex = "[0-9]", v.parseWidth ? A.regex += `{${v.parseWidth}}` : A.regex += "+", v.ordinal && (A.regex += "(?:th|st|nd|rd)"), A.parse = function(N) {
|
|
4841
|
+
let U = N;
|
|
4842
|
+
return v.ordinal && (U = N.substring(0, N.length - 2)), v.regular ? U = U.split(",").join("") : v.groupingSeparators.forEach((j) => {
|
|
4843
4843
|
U = U.split(j.character).join("");
|
|
4844
4844
|
}), v.zeroCode !== 48 && (U = U.split("").map((j) => String.fromCodePoint(j.codePointAt(0) - v.zeroCode + 48)).join("")), parseInt(U);
|
|
4845
4845
|
};
|
|
@@ -4860,12 +4860,12 @@ function Us() {
|
|
|
4860
4860
|
return d(b).parse(v);
|
|
4861
4861
|
}
|
|
4862
4862
|
function V(v, A) {
|
|
4863
|
-
const b = Ae(A),
|
|
4863
|
+
const b = Ae(A), N = d(b), U = "^" + N.parts.map((J) => "(" + J.regex + ")").join("") + "$";
|
|
4864
4864
|
var O = new RegExp(U, "i").exec(v);
|
|
4865
4865
|
if (O !== null) {
|
|
4866
4866
|
const G = {};
|
|
4867
4867
|
for (let De = 1; De < O.length; De++) {
|
|
4868
|
-
const u =
|
|
4868
|
+
const u = N.parts[De - 1];
|
|
4869
4869
|
u.parse && (G[u.component] = u.parse(O[De]));
|
|
4870
4870
|
}
|
|
4871
4871
|
if (Object.getOwnPropertyNames(G).length === 0)
|
|
@@ -4935,7 +4935,7 @@ function Us() {
|
|
|
4935
4935
|
var c = t("./utils");
|
|
4936
4936
|
const f = (() => {
|
|
4937
4937
|
var w = c.isNumeric, k = c.isArrayOfStrings, M = c.isArrayOfNumbers, D = c.createSequence, x = c.isSequence, S = c.isFunction, I = c.isLambda, ae = c.isPromise, Q = c.getFunctionArity, pe = c.isDeepEqual, H = c.stringToArray;
|
|
4938
|
-
function
|
|
4938
|
+
function C(n) {
|
|
4939
4939
|
if (!(typeof n > "u")) {
|
|
4940
4940
|
var o = 0;
|
|
4941
4941
|
return n.forEach(function(l) {
|
|
@@ -5138,14 +5138,14 @@ function Us() {
|
|
|
5138
5138
|
if (typeof ye < "u") {
|
|
5139
5139
|
for (; typeof ye < "u" && (typeof g > "u" || X < g); ) {
|
|
5140
5140
|
R += n.substring(q, ye.start);
|
|
5141
|
-
var
|
|
5142
|
-
if (ae(
|
|
5143
|
-
R +=
|
|
5141
|
+
var Ne = _.apply(p, [ye]);
|
|
5142
|
+
if (ae(Ne) && (Ne = await Ne), typeof Ne == "string")
|
|
5143
|
+
R += Ne;
|
|
5144
5144
|
else
|
|
5145
5145
|
throw {
|
|
5146
5146
|
code: "D3012",
|
|
5147
5147
|
stack: new Error().stack,
|
|
5148
|
-
value:
|
|
5148
|
+
value: Ne
|
|
5149
5149
|
};
|
|
5150
5150
|
q = ye.start + ye.match.length, X++, ye = await fe(ye.next);
|
|
5151
5151
|
}
|
|
@@ -5308,22 +5308,22 @@ function Us() {
|
|
|
5308
5308
|
for (var Be, nt = re.length - 1; nt >= 0; nt--)
|
|
5309
5309
|
if (Be = re.charAt(nt), X.indexOf(Be) !== -1 && Be !== p["exponent-separator"])
|
|
5310
5310
|
return re.substring(nt + 1);
|
|
5311
|
-
})(),
|
|
5312
|
-
rt === -1 || rt > re.length - Ye.length ? (Xe =
|
|
5311
|
+
})(), Ce = re.substring(Me.length, re.length - Ye.length), Xe, Dt, Qe, It, rt = re.indexOf(p["exponent-separator"], Me.length);
|
|
5312
|
+
rt === -1 || rt > re.length - Ye.length ? (Xe = Ce, Dt = void 0) : (Xe = Ce.substring(0, rt), Dt = Ce.substring(rt + 1));
|
|
5313
5313
|
var ut = Xe.indexOf(p["decimal-separator"]);
|
|
5314
5314
|
return ut === -1 ? (Qe = Xe, It = Ye) : (Qe = Xe.substring(0, ut), It = Xe.substring(ut + 1)), {
|
|
5315
5315
|
prefix: Me,
|
|
5316
5316
|
suffix: Ye,
|
|
5317
|
-
activePart:
|
|
5317
|
+
activePart: Ce,
|
|
5318
5318
|
mantissaPart: Xe,
|
|
5319
5319
|
exponentPart: Dt,
|
|
5320
5320
|
integerPart: Qe,
|
|
5321
5321
|
fractionalPart: It,
|
|
5322
5322
|
subpicture: re
|
|
5323
5323
|
};
|
|
5324
|
-
},
|
|
5325
|
-
var Me, Ye,
|
|
5326
|
-
Xe !==
|
|
5324
|
+
}, Ne = function(re) {
|
|
5325
|
+
var Me, Ye, Ce = re.subpicture, Xe = Ce.indexOf(p["decimal-separator"]);
|
|
5326
|
+
Xe !== Ce.lastIndexOf(p["decimal-separator"]) && (Me = "D3081"), Ce.indexOf(p.percent) !== Ce.lastIndexOf(p.percent) && (Me = "D3082"), Ce.indexOf(p["per-mille"]) !== Ce.lastIndexOf(p["per-mille"]) && (Me = "D3083"), Ce.indexOf(p.percent) !== -1 && Ce.indexOf(p["per-mille"]) !== -1 && (Me = "D3084");
|
|
5327
5327
|
var Dt = !1;
|
|
5328
5328
|
for (Ye = 0; Ye < re.mantissaPart.length; Ye++) {
|
|
5329
5329
|
var Qe = re.mantissaPart.charAt(Ye);
|
|
@@ -5336,7 +5336,7 @@ function Us() {
|
|
|
5336
5336
|
var It = re.activePart.split("").map(function(Be) {
|
|
5337
5337
|
return X.indexOf(Be) === -1 ? "p" : "a";
|
|
5338
5338
|
}).join("");
|
|
5339
|
-
It.indexOf("p") !== -1 && (Me = "D3086"), Xe !== -1 ? (
|
|
5339
|
+
It.indexOf("p") !== -1 && (Me = "D3086"), Xe !== -1 ? (Ce.charAt(Xe - 1) === p["grouping-separator"] || Ce.charAt(Xe + 1) === p["grouping-separator"]) && (Me = "D3087") : re.integerPart.charAt(re.integerPart.length - 1) === p["grouping-separator"] && (Me = "D3088"), Ce.indexOf(p["grouping-separator"] + p["grouping-separator"]) !== -1 && (Me = "D3089");
|
|
5340
5340
|
var rt = re.integerPart.indexOf(p.digit);
|
|
5341
5341
|
rt !== -1 && re.integerPart.substring(0, rt).split("").filter(function(Be) {
|
|
5342
5342
|
return _.indexOf(Be) > -1;
|
|
@@ -5344,7 +5344,7 @@ function Us() {
|
|
|
5344
5344
|
return _.indexOf(Be) > -1;
|
|
5345
5345
|
}).length > 0 && (Me = "D3091");
|
|
5346
5346
|
var ut = typeof re.exponentPart == "string";
|
|
5347
|
-
if (ut && re.exponentPart.length > 0 && (
|
|
5347
|
+
if (ut && re.exponentPart.length > 0 && (Ce.indexOf(p.percent) !== -1 || Ce.indexOf(p["per-mille"]) !== -1) && (Me = "D3092"), ut && (re.exponentPart.length === 0 || re.exponentPart.split("").filter(function(Be) {
|
|
5348
5348
|
return _.indexOf(Be) === -1;
|
|
5349
5349
|
}).length > 0) && (Me = "D3093"), Me)
|
|
5350
5350
|
throw {
|
|
@@ -5360,7 +5360,7 @@ function Us() {
|
|
|
5360
5360
|
er.push(br), kt = re.integerPart.indexOf(p["grouping-separator"], kt + 1);
|
|
5361
5361
|
}
|
|
5362
5362
|
return er;
|
|
5363
|
-
}, Ye = Me(re.integerPart),
|
|
5363
|
+
}, Ye = Me(re.integerPart), Ce = function(Ve) {
|
|
5364
5364
|
if (Ve.length === 0)
|
|
5365
5365
|
return 0;
|
|
5366
5366
|
for (var wr = function(br, Wt) {
|
|
@@ -5369,7 +5369,7 @@ function Us() {
|
|
|
5369
5369
|
if (Ve.indexOf(kt * er) === -1)
|
|
5370
5370
|
return 0;
|
|
5371
5371
|
return er;
|
|
5372
|
-
}, Xe =
|
|
5372
|
+
}, Xe = Ce(Ye), Dt = Me(re.fractionalPart, !0), Qe = re.integerPart.split("").filter(function(Ve) {
|
|
5373
5373
|
return _.indexOf(Ve) !== -1;
|
|
5374
5374
|
}).length, It = Qe, rt = re.fractionalPart.split(""), ut = rt.filter(function(Ve) {
|
|
5375
5375
|
return _.indexOf(Ve) !== -1;
|
|
@@ -5394,7 +5394,7 @@ function Us() {
|
|
|
5394
5394
|
picture: re.subpicture
|
|
5395
5395
|
};
|
|
5396
5396
|
}, ze = Oe.map(ye);
|
|
5397
|
-
ze.forEach(
|
|
5397
|
+
ze.forEach(Ne);
|
|
5398
5398
|
var ke = ze.map(Se), je = p["minus-sign"], ot = p["zero-digit"], We = p["decimal-separator"], Zt = p["grouping-separator"];
|
|
5399
5399
|
ke.length === 1 && (ke.push(JSON.parse(JSON.stringify(ke[0]))), ke[1].prefix = je + ke[1].prefix);
|
|
5400
5400
|
var Ue;
|
|
@@ -5413,8 +5413,8 @@ function Us() {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
var Dn = F(Mt, Ue.maximumFactionalPartSize), zr = function(re, Me) {
|
|
5415
5415
|
var Ye = Math.abs(re).toFixed(Me);
|
|
5416
|
-
return ot !== "0" && (Ye = Ye.split("").map(function(
|
|
5417
|
-
return
|
|
5416
|
+
return ot !== "0" && (Ye = Ye.split("").map(function(Ce) {
|
|
5417
|
+
return Ce >= "0" && Ce <= "9" ? _[Ce.charCodeAt(0) - 48] : Ce;
|
|
5418
5418
|
}).join("")), Ye;
|
|
5419
5419
|
}, ce = zr(Dn, Ue.maximumFactionalPartSize), Ge = ce.indexOf(".");
|
|
5420
5420
|
for (Ge === -1 ? ce = ce + We : ce = ce.replace(".", We); ce.charAt(0) === ot; )
|
|
@@ -5451,7 +5451,7 @@ function Us() {
|
|
|
5451
5451
|
return l;
|
|
5452
5452
|
}
|
|
5453
5453
|
}
|
|
5454
|
-
function
|
|
5454
|
+
function N(n) {
|
|
5455
5455
|
var o;
|
|
5456
5456
|
if (!(typeof n > "u")) {
|
|
5457
5457
|
if (typeof n == "number")
|
|
@@ -5733,8 +5733,8 @@ function Us() {
|
|
|
5733
5733
|
} else
|
|
5734
5734
|
l = o;
|
|
5735
5735
|
var g = async function(R, q) {
|
|
5736
|
-
var X = async function(ye,
|
|
5737
|
-
|
|
5736
|
+
var X = async function(ye, Ne, Se) {
|
|
5737
|
+
Ne.length === 0 ? Array.prototype.push.apply(ye, Se) : Se.length === 0 ? Array.prototype.push.apply(ye, Ne) : await l(Ne[0], Se[0]) ? (ye.push(Se[0]), await X(ye, Ne, Se.slice(1))) : (ye.push(Ne[0]), await X(ye, Ne.slice(1), Se));
|
|
5738
5738
|
}, Oe = [];
|
|
5739
5739
|
return await X(Oe, R, q), Oe;
|
|
5740
5740
|
}, p = async function(R) {
|
|
@@ -5781,7 +5781,7 @@ function Us() {
|
|
|
5781
5781
|
return Object.keys(l).length === 0 && (l = void 0), l;
|
|
5782
5782
|
}
|
|
5783
5783
|
return {
|
|
5784
|
-
sum:
|
|
5784
|
+
sum: C,
|
|
5785
5785
|
count: se,
|
|
5786
5786
|
max: B,
|
|
5787
5787
|
min: E,
|
|
@@ -5802,7 +5802,7 @@ function Us() {
|
|
|
5802
5802
|
join: v,
|
|
5803
5803
|
formatNumber: A,
|
|
5804
5804
|
formatBase: b,
|
|
5805
|
-
number:
|
|
5805
|
+
number: N,
|
|
5806
5806
|
floor: j,
|
|
5807
5807
|
ceil: O,
|
|
5808
5808
|
round: F,
|
|
@@ -5845,7 +5845,7 @@ function Us() {
|
|
|
5845
5845
|
}).call(this, typeof Kr < "u" ? Kr : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
5846
5846
|
}, { "./utils": 6 }], 3: [function(t, a, s) {
|
|
5847
5847
|
var i = t("./datetime"), c = t("./functions"), f = t("./utils"), w = t("./parser"), k = t("./signature"), M = (function() {
|
|
5848
|
-
var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable,
|
|
5848
|
+
var D = f.isNumeric, x = f.isArrayOfStrings, S = f.isArrayOfNumbers, I = f.createSequence, ae = f.isSequence, Q = f.isFunction, pe = f.isLambda, H = f.isIterable, C = f.isPromise, se = f.getFunctionArity, B = f.isDeepEqual, E = ct(null);
|
|
5849
5849
|
async function L(u, h, y) {
|
|
5850
5850
|
var n, o = y.lookup(Symbol.for("jsonata.__evaluate_entry"));
|
|
5851
5851
|
switch (o && await o(u, h, y), u.type) {
|
|
@@ -6050,7 +6050,7 @@ function Us() {
|
|
|
6050
6050
|
n = v(o, p);
|
|
6051
6051
|
break;
|
|
6052
6052
|
case "..":
|
|
6053
|
-
n =
|
|
6053
|
+
n = N(o, p);
|
|
6054
6054
|
break;
|
|
6055
6055
|
case "in":
|
|
6056
6056
|
n = de(o, p);
|
|
@@ -6278,8 +6278,8 @@ function Us() {
|
|
|
6278
6278
|
return y.isParallelCall = ze > 0, [Se, await L(u.lhs[ke.exprIndex][1], je, ot)];
|
|
6279
6279
|
}));
|
|
6280
6280
|
for (let Se of ye) {
|
|
6281
|
-
var [X,
|
|
6282
|
-
typeof
|
|
6281
|
+
var [X, Ne] = await Se;
|
|
6282
|
+
typeof Ne < "u" && (n[X] = Ne);
|
|
6283
6283
|
}
|
|
6284
6284
|
return n;
|
|
6285
6285
|
}
|
|
@@ -6293,7 +6293,7 @@ function Us() {
|
|
|
6293
6293
|
h[n] = c.append(h[n], u[y][n]);
|
|
6294
6294
|
return h;
|
|
6295
6295
|
}
|
|
6296
|
-
function
|
|
6296
|
+
function N(u, h) {
|
|
6297
6297
|
var y;
|
|
6298
6298
|
if (typeof u < "u" && !Number.isInteger(u))
|
|
6299
6299
|
throw {
|
|
@@ -6373,11 +6373,11 @@ function Us() {
|
|
|
6373
6373
|
async function ge(u, h, y) {
|
|
6374
6374
|
var n, o = h, l = !!h.tupleStream, g = async function(_, R) {
|
|
6375
6375
|
for (var q = 0, X = 0; q === 0 && X < u.terms.length; X++) {
|
|
6376
|
-
var Oe = u.terms[X], ye = _,
|
|
6377
|
-
l && (ye = _["@"],
|
|
6378
|
-
var Se = await L(Oe.expression, ye,
|
|
6379
|
-
ye = R,
|
|
6380
|
-
var ze = await L(Oe.expression, ye,
|
|
6376
|
+
var Oe = u.terms[X], ye = _, Ne = y;
|
|
6377
|
+
l && (ye = _["@"], Ne = he(y, _));
|
|
6378
|
+
var Se = await L(Oe.expression, ye, Ne);
|
|
6379
|
+
ye = R, Ne = y, l && (ye = R["@"], Ne = he(y, R));
|
|
6380
|
+
var ze = await L(Oe.expression, ye, Ne), ke = typeof Se, je = typeof ze;
|
|
6381
6381
|
if (ke === "undefined") {
|
|
6382
6382
|
q = je === "undefined" ? 0 : 1;
|
|
6383
6383
|
continue;
|
|
@@ -6446,13 +6446,13 @@ function Us() {
|
|
|
6446
6446
|
if (typeof u.delete < "u") {
|
|
6447
6447
|
var ye = await L(u.delete, R, y);
|
|
6448
6448
|
if (typeof ye < "u") {
|
|
6449
|
-
var
|
|
6449
|
+
var Ne = ye;
|
|
6450
6450
|
if (Array.isArray(ye) || (ye = [ye]), !x(ye))
|
|
6451
6451
|
throw {
|
|
6452
6452
|
code: "T2012",
|
|
6453
6453
|
stack: new Error().stack,
|
|
6454
6454
|
position: u.delete.position,
|
|
6455
|
-
value:
|
|
6455
|
+
value: Ne
|
|
6456
6456
|
};
|
|
6457
6457
|
for (var Se = 0; Se < ye.length; Se++)
|
|
6458
6458
|
typeof R == "object" && R !== null && delete R[ye[Se]];
|
|
@@ -6538,9 +6538,9 @@ function Us() {
|
|
|
6538
6538
|
environment: n,
|
|
6539
6539
|
input: y
|
|
6540
6540
|
};
|
|
6541
|
-
o = u.implementation.apply(g, l), H(o) && (o = o.next().value),
|
|
6541
|
+
o = u.implementation.apply(g, l), H(o) && (o = o.next().value), C(o) && (o = await o);
|
|
6542
6542
|
} else if (typeof u == "function")
|
|
6543
|
-
o = u.apply(y, l),
|
|
6543
|
+
o = u.apply(y, l), C(o) && (o = await o);
|
|
6544
6544
|
else
|
|
6545
6545
|
throw {
|
|
6546
6546
|
code: "T1006",
|
|
@@ -6635,7 +6635,7 @@ function Us() {
|
|
|
6635
6635
|
}), o = {
|
|
6636
6636
|
environment: h
|
|
6637
6637
|
}, l = u.apply(o, n);
|
|
6638
|
-
return
|
|
6638
|
+
return C(l) && (l = await l), l;
|
|
6639
6639
|
}
|
|
6640
6640
|
function St(u) {
|
|
6641
6641
|
var h = u.toString(), y = /\(([^)]*)\)/.exec(h)[1], n = y.split(",");
|
|
@@ -6926,10 +6926,10 @@ function Us() {
|
|
|
6926
6926
|
t: " "
|
|
6927
6927
|
}, k = function(D) {
|
|
6928
6928
|
var x = 0, S = D.length, I = function(pe, H) {
|
|
6929
|
-
var
|
|
6930
|
-
return
|
|
6929
|
+
var C = { type: pe, value: H, position: x };
|
|
6930
|
+
return C;
|
|
6931
6931
|
}, ae = function() {
|
|
6932
|
-
for (var pe = x, H = 0,
|
|
6932
|
+
for (var pe = x, H = 0, C, se, B = function(L) {
|
|
6933
6933
|
if (D.charAt(L) === "/" && H === 0) {
|
|
6934
6934
|
for (var W = 0; D.charAt(L - (W + 1)) === "\\"; )
|
|
6935
6935
|
W++;
|
|
@@ -6940,7 +6940,7 @@ function Us() {
|
|
|
6940
6940
|
}; x < S; ) {
|
|
6941
6941
|
var E = D.charAt(x);
|
|
6942
6942
|
if (B(x)) {
|
|
6943
|
-
if (
|
|
6943
|
+
if (C = D.substring(pe, x), C === "")
|
|
6944
6944
|
throw {
|
|
6945
6945
|
code: "S0301",
|
|
6946
6946
|
stack: new Error().stack,
|
|
@@ -6948,7 +6948,7 @@ function Us() {
|
|
|
6948
6948
|
};
|
|
6949
6949
|
for (x++, E = D.charAt(x), pe = x; E === "i" || E === "m"; )
|
|
6950
6950
|
x++, E = D.charAt(x);
|
|
6951
|
-
return se = D.substring(pe, x) + "g", new RegExp(
|
|
6951
|
+
return se = D.substring(pe, x) + "g", new RegExp(C, se);
|
|
6952
6952
|
}
|
|
6953
6953
|
(E === "(" || E === "[" || E === "{") && D.charAt(x - 1) !== "\\" && H++, (E === ")" || E === "]" || E === "}") && D.charAt(x - 1) !== "\\" && H--, x++;
|
|
6954
6954
|
}
|
|
@@ -6963,13 +6963,13 @@ function Us() {
|
|
|
6963
6963
|
\r\v`.indexOf(H) > -1; )
|
|
6964
6964
|
x++, H = D.charAt(x);
|
|
6965
6965
|
if (H === "/" && D.charAt(x + 1) === "*") {
|
|
6966
|
-
var
|
|
6966
|
+
var C = x;
|
|
6967
6967
|
for (x += 2, H = D.charAt(x); !(H === "*" && D.charAt(x + 1) === "/"); )
|
|
6968
6968
|
if (H = D.charAt(++x), x >= S)
|
|
6969
6969
|
throw {
|
|
6970
6970
|
code: "S0106",
|
|
6971
6971
|
stack: new Error().stack,
|
|
6972
|
-
position:
|
|
6972
|
+
position: C
|
|
6973
6973
|
};
|
|
6974
6974
|
return x += 2, H = D.charAt(x), Q(pe);
|
|
6975
6975
|
}
|
|
@@ -7098,7 +7098,7 @@ function Us() {
|
|
|
7098
7098
|
return d.remaining = pe(), d.type = "error", Q.push(d), d;
|
|
7099
7099
|
throw d.stack = new Error().stack, d;
|
|
7100
7100
|
}
|
|
7101
|
-
},
|
|
7101
|
+
}, C = function(d, m) {
|
|
7102
7102
|
var V = ae[d];
|
|
7103
7103
|
return m = m || 0, V ? m >= V.lbp && (V.lbp = m) : (V = Object.create(H), V.id = V.value = d, V.lbp = m, ae[d] = V), V;
|
|
7104
7104
|
}, se = function(d) {
|
|
@@ -7162,25 +7162,25 @@ function Us() {
|
|
|
7162
7162
|
V = S, B(), m = V.led(m);
|
|
7163
7163
|
return m;
|
|
7164
7164
|
}, L = function(d) {
|
|
7165
|
-
var m =
|
|
7165
|
+
var m = C(d, 0);
|
|
7166
7166
|
m.nud = function() {
|
|
7167
7167
|
return this;
|
|
7168
7168
|
};
|
|
7169
7169
|
}, W = function(d, m, V) {
|
|
7170
|
-
var de = m || f[d], Pe =
|
|
7170
|
+
var de = m || f[d], Pe = C(d, de);
|
|
7171
7171
|
return Pe.led = V || function(Ee) {
|
|
7172
7172
|
return this.lhs = Ee, this.rhs = E(de), this.type = "binary", this;
|
|
7173
7173
|
}, Pe;
|
|
7174
7174
|
}, he = function(d, m, V) {
|
|
7175
|
-
var de =
|
|
7175
|
+
var de = C(d, m);
|
|
7176
7176
|
return de.led = V, de;
|
|
7177
7177
|
}, xe = function(d, m) {
|
|
7178
|
-
var V =
|
|
7178
|
+
var V = C(d);
|
|
7179
7179
|
return V.nud = m || function() {
|
|
7180
7180
|
return this.expression = E(70), this.type = "unary", this;
|
|
7181
7181
|
}, V;
|
|
7182
7182
|
};
|
|
7183
|
-
L("(end)"), L("(name)"), L("(literal)"), L("(regex)"),
|
|
7183
|
+
L("(end)"), L("(name)"), L("(literal)"), L("(regex)"), C(":"), C(";"), C(","), C(")"), C("]"), C("}"), C(".."), W("."), W("+"), W("-"), W("*"), W("/"), W("%"), W("="), W("<"), W(">"), W("!="), W("<="), W(">="), W("&"), W("and"), W("or"), W("in"), L("and"), L("or"), L("in"), xe("-"), W("~>"), W("??", f["??"], function(d) {
|
|
7184
7184
|
return this.type = "condition", this.condition = {
|
|
7185
7185
|
type: "function",
|
|
7186
7186
|
value: "(",
|
|
@@ -7420,14 +7420,14 @@ function Us() {
|
|
|
7420
7420
|
break;
|
|
7421
7421
|
case "^":
|
|
7422
7422
|
m = ie(d.lhs), m.type !== "path" && (m = { type: "path", steps: [m] });
|
|
7423
|
-
var
|
|
7424
|
-
|
|
7423
|
+
var N = { type: "sort", position: d.position };
|
|
7424
|
+
N.terms = d.rhs.map(function(F) {
|
|
7425
7425
|
var J = ie(F.expression);
|
|
7426
|
-
return fe(
|
|
7426
|
+
return fe(N, J), {
|
|
7427
7427
|
descending: F.descending,
|
|
7428
7428
|
expression: J
|
|
7429
7429
|
};
|
|
7430
|
-
}), m.steps.push(
|
|
7430
|
+
}), m.steps.push(N), tt(m);
|
|
7431
7431
|
break;
|
|
7432
7432
|
case ":=":
|
|
7433
7433
|
m = { type: "bind", value: d.value, position: d.position }, m.lhs = ie(d.lhs), m.rhs = ie(d.rhs), fe(m, m.rhs);
|
|
@@ -7636,8 +7636,8 @@ function Us() {
|
|
|
7636
7636
|
break;
|
|
7637
7637
|
case "<":
|
|
7638
7638
|
if (S.type === "a" || S.type === "f") {
|
|
7639
|
-
var
|
|
7640
|
-
S.subtype = k.substring(M + 1,
|
|
7639
|
+
var C = Q(k, M, "<", ">");
|
|
7640
|
+
S.subtype = k.substring(M + 1, C), M = C;
|
|
7641
7641
|
} else
|
|
7642
7642
|
throw {
|
|
7643
7643
|
code: "S0401",
|
|
@@ -7770,62 +7770,62 @@ function Us() {
|
|
|
7770
7770
|
a.exports = c;
|
|
7771
7771
|
}, { "./utils": 6 }], 6: [function(t, a, s) {
|
|
7772
7772
|
const i = (() => {
|
|
7773
|
-
function c(
|
|
7773
|
+
function c(C) {
|
|
7774
7774
|
var se = !1;
|
|
7775
|
-
if (typeof
|
|
7775
|
+
if (typeof C == "number" && (se = !isNaN(C), se && !isFinite(C)))
|
|
7776
7776
|
throw {
|
|
7777
7777
|
code: "D1001",
|
|
7778
|
-
value:
|
|
7778
|
+
value: C,
|
|
7779
7779
|
stack: new Error().stack
|
|
7780
7780
|
};
|
|
7781
7781
|
return se;
|
|
7782
7782
|
}
|
|
7783
|
-
function f(
|
|
7783
|
+
function f(C) {
|
|
7784
7784
|
var se = !1;
|
|
7785
|
-
return Array.isArray(
|
|
7785
|
+
return Array.isArray(C) && (se = C.filter(function(B) {
|
|
7786
7786
|
return typeof B != "string";
|
|
7787
7787
|
}).length === 0), se;
|
|
7788
7788
|
}
|
|
7789
|
-
function w(
|
|
7789
|
+
function w(C) {
|
|
7790
7790
|
var se = !1;
|
|
7791
|
-
return Array.isArray(
|
|
7791
|
+
return Array.isArray(C) && (se = C.filter(function(B) {
|
|
7792
7792
|
return !c(B);
|
|
7793
7793
|
}).length === 0), se;
|
|
7794
7794
|
}
|
|
7795
7795
|
function k() {
|
|
7796
|
-
var
|
|
7797
|
-
return
|
|
7796
|
+
var C = [];
|
|
7797
|
+
return C.sequence = !0, arguments.length === 1 && C.push(arguments[0]), C;
|
|
7798
7798
|
}
|
|
7799
|
-
function M(
|
|
7800
|
-
return
|
|
7799
|
+
function M(C) {
|
|
7800
|
+
return C.sequence === !0 && Array.isArray(C);
|
|
7801
7801
|
}
|
|
7802
|
-
function D(
|
|
7803
|
-
return
|
|
7802
|
+
function D(C) {
|
|
7803
|
+
return C && (C._jsonata_function === !0 || C._jsonata_lambda === !0) || typeof C == "function";
|
|
7804
7804
|
}
|
|
7805
|
-
function x(
|
|
7806
|
-
var se = typeof
|
|
7805
|
+
function x(C) {
|
|
7806
|
+
var se = typeof C.arity == "number" ? C.arity : typeof C.implementation == "function" ? C.implementation.length : typeof C.length == "number" ? C.length : C.arguments.length;
|
|
7807
7807
|
return se;
|
|
7808
7808
|
}
|
|
7809
|
-
function S(
|
|
7810
|
-
return
|
|
7809
|
+
function S(C) {
|
|
7810
|
+
return C && C._jsonata_lambda === !0;
|
|
7811
7811
|
}
|
|
7812
7812
|
var I = (typeof Symbol == "function" ? Symbol : {}).iterator || "@@iterator";
|
|
7813
|
-
function ae(
|
|
7814
|
-
return typeof
|
|
7813
|
+
function ae(C) {
|
|
7814
|
+
return typeof C == "object" && C !== null && I in C && "next" in C && typeof C.next == "function";
|
|
7815
7815
|
}
|
|
7816
|
-
function Q(
|
|
7817
|
-
if (
|
|
7816
|
+
function Q(C, se) {
|
|
7817
|
+
if (C === se)
|
|
7818
7818
|
return !0;
|
|
7819
|
-
if (typeof
|
|
7820
|
-
if (Array.isArray(
|
|
7821
|
-
if (
|
|
7819
|
+
if (typeof C == "object" && typeof se == "object" && C !== null && se !== null) {
|
|
7820
|
+
if (Array.isArray(C) && Array.isArray(se)) {
|
|
7821
|
+
if (C.length !== se.length)
|
|
7822
7822
|
return !1;
|
|
7823
|
-
for (var B = 0; B <
|
|
7824
|
-
if (!Q(
|
|
7823
|
+
for (var B = 0; B < C.length; B++)
|
|
7824
|
+
if (!Q(C[B], se[B]))
|
|
7825
7825
|
return !1;
|
|
7826
7826
|
return !0;
|
|
7827
7827
|
}
|
|
7828
|
-
var E = Object.getOwnPropertyNames(
|
|
7828
|
+
var E = Object.getOwnPropertyNames(C), L = Object.getOwnPropertyNames(se);
|
|
7829
7829
|
if (E.length !== L.length)
|
|
7830
7830
|
return !1;
|
|
7831
7831
|
for (E = E.sort(), L = L.sort(), B = 0; B < E.length; B++)
|
|
@@ -7833,19 +7833,19 @@ function Us() {
|
|
|
7833
7833
|
return !1;
|
|
7834
7834
|
for (B = 0; B < E.length; B++) {
|
|
7835
7835
|
var W = E[B];
|
|
7836
|
-
if (!Q(
|
|
7836
|
+
if (!Q(C[W], se[W]))
|
|
7837
7837
|
return !1;
|
|
7838
7838
|
}
|
|
7839
7839
|
return !0;
|
|
7840
7840
|
}
|
|
7841
7841
|
return !1;
|
|
7842
7842
|
}
|
|
7843
|
-
function pe(
|
|
7844
|
-
return typeof
|
|
7843
|
+
function pe(C) {
|
|
7844
|
+
return typeof C == "object" && C !== null && "then" in C && typeof C.then == "function";
|
|
7845
7845
|
}
|
|
7846
|
-
function H(
|
|
7846
|
+
function H(C) {
|
|
7847
7847
|
var se = [];
|
|
7848
|
-
for (let B of
|
|
7848
|
+
for (let B of C)
|
|
7849
7849
|
se.push(B);
|
|
7850
7850
|
return se;
|
|
7851
7851
|
}
|
|
@@ -7867,7 +7867,7 @@ function Us() {
|
|
|
7867
7867
|
a.exports = i;
|
|
7868
7868
|
}, {}] }, {}, [3])(3);
|
|
7869
7869
|
});
|
|
7870
|
-
})(
|
|
7870
|
+
})(Cr)), Cr.exports;
|
|
7871
7871
|
}
|
|
7872
7872
|
var $s = Us();
|
|
7873
7873
|
const Ls = /* @__PURE__ */ Fs($s), xn = T.object({
|
|
@@ -7893,7 +7893,7 @@ async function Zs(r) {
|
|
|
7893
7893
|
try {
|
|
7894
7894
|
i = await s.evaluate(a);
|
|
7895
7895
|
} catch (c) {
|
|
7896
|
-
throw new Error(
|
|
7896
|
+
throw console.error("JSONata evaluation failed:", c), new Error(
|
|
7897
7897
|
`JSONata evaluation failed: ${c instanceof Error ? c.message : "Unknown error"}`
|
|
7898
7898
|
);
|
|
7899
7899
|
}
|