@dcupl/bundle 2.0.0-beta.11 → 2.0.0-beta.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/dist/dcupl.bundle.js +413 -408
- package/dist/dcupl.bundle.js.map +1 -1
- package/dist/dcupl.bundle.min.js +6 -6
- package/dist/dcupl.bundle.min.js.map +1 -1
- package/package.json +4 -4
package/dist/dcupl.bundle.js
CHANGED
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
g$1.Request = Request;
|
|
522
522
|
g$1.Response = Response;
|
|
523
523
|
}
|
|
524
|
-
var Ot$1 = typeof global == "object" && global && global.Object === Object && global, fr$1 = typeof self == "object" && self && self.Object === Object && self, O$
|
|
524
|
+
var Ot$1 = typeof global == "object" && global && global.Object === Object && global, fr$1 = typeof self == "object" && self && self.Object === Object && self, O$1 = Ot$1 || fr$1 || Function("return this")(), A$2 = O$1.Symbol, $t$1 = Object.prototype, lr$1 = $t$1.hasOwnProperty, dr$1 = $t$1.toString, k$3 = A$2 ? A$2.toStringTag : void 0;
|
|
525
525
|
function hr$1(r) {
|
|
526
526
|
var e = lr$1.call(r, k$3), t = r[k$3];
|
|
527
527
|
try {
|
|
@@ -536,30 +536,30 @@
|
|
|
536
536
|
function yr$1(r) {
|
|
537
537
|
return gr$1.call(r);
|
|
538
538
|
}
|
|
539
|
-
var mr$1 = "[object Null]", br$1 = "[object Undefined]", ke$1 = A$
|
|
539
|
+
var mr$1 = "[object Null]", br$1 = "[object Undefined]", ke$1 = A$2 ? A$2.toStringTag : void 0;
|
|
540
540
|
function N$2(r) {
|
|
541
541
|
return r == null ? r === void 0 ? br$1 : mr$1 : ke$1 && ke$1 in Object(r) ? hr$1(r) : yr$1(r);
|
|
542
542
|
}
|
|
543
|
-
function T$
|
|
543
|
+
function T$4(r) {
|
|
544
544
|
return r != null && typeof r == "object";
|
|
545
545
|
}
|
|
546
546
|
var vr$1 = "[object Symbol]";
|
|
547
547
|
function P$1(r) {
|
|
548
|
-
return typeof r == "symbol" || T$
|
|
548
|
+
return typeof r == "symbol" || T$4(r) && N$2(r) == vr$1;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function z$2(r, e) {
|
|
551
551
|
for (var t = -1, n = r == null ? 0 : r.length, s = Array(n); ++t < n; )
|
|
552
552
|
s[t] = e(r[t], t, r);
|
|
553
553
|
return s;
|
|
554
554
|
}
|
|
555
|
-
var v$
|
|
555
|
+
var v$2 = Array.isArray, Ge$1 = A$2 ? A$2.prototype : void 0, ze$2 = Ge$1 ? Ge$1.toString : void 0;
|
|
556
556
|
function ce$1(r) {
|
|
557
557
|
if (typeof r == "string")
|
|
558
558
|
return r;
|
|
559
|
-
if (v$
|
|
560
|
-
return
|
|
559
|
+
if (v$2(r))
|
|
560
|
+
return z$2(r, ce$1) + "";
|
|
561
561
|
if (P$1(r))
|
|
562
|
-
return
|
|
562
|
+
return ze$2 ? ze$2.call(r) : "";
|
|
563
563
|
var e = r + "";
|
|
564
564
|
return e == "0" && 1 / r == -1 / 0 ? "-0" : e;
|
|
565
565
|
}
|
|
@@ -577,12 +577,12 @@
|
|
|
577
577
|
var e = typeof r;
|
|
578
578
|
return r != null && (e == "object" || e == "function");
|
|
579
579
|
}
|
|
580
|
-
var
|
|
581
|
-
function
|
|
580
|
+
var Be$2 = NaN, Tr$1 = /^[-+]0x[0-9a-f]+$/i, Or$1 = /^0b[01]+$/i, $r$1 = /^0o[0-7]+$/i, _r$1 = parseInt;
|
|
581
|
+
function Mr$1(r) {
|
|
582
582
|
if (typeof r == "number")
|
|
583
583
|
return r;
|
|
584
584
|
if (P$1(r))
|
|
585
|
-
return
|
|
585
|
+
return Be$2;
|
|
586
586
|
if (E$3(r)) {
|
|
587
587
|
var e = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
588
588
|
r = E$3(e) ? e + "" : e;
|
|
@@ -591,15 +591,15 @@
|
|
|
591
591
|
return r === 0 ? r : +r;
|
|
592
592
|
r = Sr$1(r);
|
|
593
593
|
var t = Or$1.test(r);
|
|
594
|
-
return t || $r$1.test(r) ? _r$1(r.slice(2), t ? 2 : 8) : Tr$1.test(r) ?
|
|
594
|
+
return t || $r$1.test(r) ? _r$1(r.slice(2), t ? 2 : 8) : Tr$1.test(r) ? Be$2 : +r;
|
|
595
595
|
}
|
|
596
|
-
var Ue$3 = 1 / 0,
|
|
596
|
+
var Ue$3 = 1 / 0, Cr$1 = 17976931348623157e292;
|
|
597
597
|
function Dr$1(r) {
|
|
598
598
|
if (!r)
|
|
599
599
|
return r === 0 ? r : 0;
|
|
600
|
-
if (r =
|
|
600
|
+
if (r = Mr$1(r), r === Ue$3 || r === -Ue$3) {
|
|
601
601
|
var e = r < 0 ? -1 : 1;
|
|
602
|
-
return e *
|
|
602
|
+
return e * Cr$1;
|
|
603
603
|
}
|
|
604
604
|
return r === r ? r : 0;
|
|
605
605
|
}
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
var e = N$2(r);
|
|
618
618
|
return e == Er$1 || e == Qr$1 || e == Ir$1 || e == Nr$1;
|
|
619
619
|
}
|
|
620
|
-
var ge = O$
|
|
620
|
+
var ge = O$1["__core-js_shared__"], He$2 = (function() {
|
|
621
621
|
var r = /[^.]+$/.exec(ge && ge.keys && ge.keys.IE_PROTO || "");
|
|
622
622
|
return r ? "Symbol(src)_1." + r : "";
|
|
623
623
|
})();
|
|
@@ -638,13 +638,13 @@
|
|
|
638
638
|
}
|
|
639
639
|
return "";
|
|
640
640
|
}
|
|
641
|
-
var Pr$1 = /[\\^$.*+?()[\]{}|]/g, Rr$1 = /^\[object .+?Constructor\]$/, Fr$1 = Function.prototype, Lr$1 = Object.prototype, kr$1 = Fr$1.toString, Gr$1 = Lr$1.hasOwnProperty,
|
|
641
|
+
var Pr$1 = /[\\^$.*+?()[\]{}|]/g, Rr$1 = /^\[object .+?Constructor\]$/, Fr$1 = Function.prototype, Lr$1 = Object.prototype, kr$1 = Fr$1.toString, Gr$1 = Lr$1.hasOwnProperty, zr$1 = RegExp(
|
|
642
642
|
"^" + kr$1.call(Gr$1).replace(Pr$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
643
643
|
);
|
|
644
|
-
function
|
|
644
|
+
function Br$1(r) {
|
|
645
645
|
if (!E$3(r) || jr$1(r))
|
|
646
646
|
return false;
|
|
647
|
-
var e = _t$1(r) ?
|
|
647
|
+
var e = _t$1(r) ? zr$1 : Rr$1;
|
|
648
648
|
return e.test(j$2(r));
|
|
649
649
|
}
|
|
650
650
|
function Ur$1(r, e) {
|
|
@@ -652,9 +652,9 @@
|
|
|
652
652
|
}
|
|
653
653
|
function q$2(r, e) {
|
|
654
654
|
var t = Ur$1(r, e);
|
|
655
|
-
return
|
|
655
|
+
return Br$1(t) ? t : void 0;
|
|
656
656
|
}
|
|
657
|
-
var we$2 = q$2(O$
|
|
657
|
+
var we$2 = q$2(O$1, "WeakMap"), We$2 = Object.create, Hr$1 = /* @__PURE__ */ (function() {
|
|
658
658
|
function r() {
|
|
659
659
|
}
|
|
660
660
|
return function(e) {
|
|
@@ -717,7 +717,7 @@
|
|
|
717
717
|
;
|
|
718
718
|
return r;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Mt$1(r, e, t, n) {
|
|
721
721
|
for (var s = r.length, i = t + -1; ++i < s; )
|
|
722
722
|
if (e(r[i], i, r))
|
|
723
723
|
return i;
|
|
@@ -733,14 +733,14 @@
|
|
|
733
733
|
return -1;
|
|
734
734
|
}
|
|
735
735
|
function on$1(r, e, t) {
|
|
736
|
-
return e === e ? sn$1(r, e, t) :
|
|
736
|
+
return e === e ? sn$1(r, e, t) : Mt$1(r, nn$1, t);
|
|
737
737
|
}
|
|
738
738
|
function an$1(r, e) {
|
|
739
739
|
var t = r == null ? 0 : r.length;
|
|
740
740
|
return !!t && on$1(r, e, 0) > -1;
|
|
741
741
|
}
|
|
742
742
|
var un$1 = 9007199254740991, cn$1 = /^(?:0|[1-9]\d*)$/;
|
|
743
|
-
function
|
|
743
|
+
function Ct$1(r, e) {
|
|
744
744
|
var t = typeof r;
|
|
745
745
|
return e = e ?? un$1, !!e && (t == "number" || t != "symbol" && cn$1.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
746
746
|
}
|
|
@@ -793,42 +793,42 @@
|
|
|
793
793
|
}
|
|
794
794
|
var vn$1 = "[object Arguments]";
|
|
795
795
|
function Je$2(r) {
|
|
796
|
-
return T$
|
|
796
|
+
return T$4(r) && N$2(r) == vn$1;
|
|
797
797
|
}
|
|
798
798
|
var It$1 = Object.prototype, wn$1 = It$1.hasOwnProperty, An$1 = It$1.propertyIsEnumerable, Qe$2 = Je$2(/* @__PURE__ */ (function() {
|
|
799
799
|
return arguments;
|
|
800
800
|
})()) ? Je$2 : function(r) {
|
|
801
|
-
return T$
|
|
801
|
+
return T$4(r) && wn$1.call(r, "callee") && !An$1.call(r, "callee");
|
|
802
802
|
};
|
|
803
803
|
function xn$1() {
|
|
804
804
|
return false;
|
|
805
805
|
}
|
|
806
|
-
var Et$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Xe$2 = Et$1 && typeof module == "object" && module && !module.nodeType && module, Sn$1 = Xe$2 && Xe$2.exports === Et$1, Ve$3 = Sn$1 ? O$
|
|
807
|
-
y[Fn$1] = y[Ln$1] = y[kn$1] = y[Gn$1] = y[
|
|
808
|
-
y[On$1] = y[$n$1] = y[Pn$1] = y[_n$1] = y[Rn$1] = y[
|
|
806
|
+
var Et$1 = typeof exports == "object" && exports && !exports.nodeType && exports, Xe$2 = Et$1 && typeof module == "object" && module && !module.nodeType && module, Sn$1 = Xe$2 && Xe$2.exports === Et$1, Ve$3 = Sn$1 ? O$1.Buffer : void 0, Tn$1 = Ve$3 ? Ve$3.isBuffer : void 0, ae$1 = Tn$1 || xn$1, On$1 = "[object Arguments]", $n$1 = "[object Array]", _n$1 = "[object Boolean]", Mn$1 = "[object Date]", Cn$1 = "[object Error]", Dn$1 = "[object Function]", In$1 = "[object Map]", En$1 = "[object Number]", Qn$1 = "[object Object]", Nn$1 = "[object RegExp]", jn$1 = "[object Set]", qn$1 = "[object String]", Kn$1 = "[object WeakMap]", Pn$1 = "[object ArrayBuffer]", Rn$1 = "[object DataView]", Fn$1 = "[object Float32Array]", Ln$1 = "[object Float64Array]", kn$1 = "[object Int8Array]", Gn$1 = "[object Int16Array]", zn$1 = "[object Int32Array]", Bn$1 = "[object Uint8Array]", Un$1 = "[object Uint8ClampedArray]", Hn$1 = "[object Uint16Array]", Wn$1 = "[object Uint32Array]", y = {};
|
|
807
|
+
y[Fn$1] = y[Ln$1] = y[kn$1] = y[Gn$1] = y[zn$1] = y[Bn$1] = y[Un$1] = y[Hn$1] = y[Wn$1] = true;
|
|
808
|
+
y[On$1] = y[$n$1] = y[Pn$1] = y[_n$1] = y[Rn$1] = y[Mn$1] = y[Cn$1] = y[Dn$1] = y[In$1] = y[En$1] = y[Qn$1] = y[Nn$1] = y[jn$1] = y[qn$1] = y[Kn$1] = false;
|
|
809
809
|
function Zn$1(r) {
|
|
810
|
-
return T$
|
|
810
|
+
return T$4(r) && Ee$2(r.length) && !!y[N$2(r)];
|
|
811
811
|
}
|
|
812
812
|
function X$2(r) {
|
|
813
813
|
return function(e) {
|
|
814
814
|
return r(e);
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
-
var Qt$1 = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
817
|
+
var Qt$1 = typeof exports == "object" && exports && !exports.nodeType && exports, B$2 = Qt$1 && typeof module == "object" && module && !module.nodeType && module, Jn$1 = B$2 && B$2.exports === Qt$1, ye$1 = Jn$1 && Ot$1.process, R$1 = (function() {
|
|
818
818
|
try {
|
|
819
|
-
var r =
|
|
819
|
+
var r = B$2 && B$2.require && B$2.require("util").types;
|
|
820
820
|
return r || ye$1 && ye$1.binding && ye$1.binding("util");
|
|
821
821
|
} catch {
|
|
822
822
|
}
|
|
823
|
-
})(), Ye$2 = R$
|
|
823
|
+
})(), Ye$2 = R$1 && R$1.isTypedArray, Nt$1 = Ye$2 ? X$2(Ye$2) : Zn$1, Xn$1 = Object.prototype, Vn$1 = Xn$1.hasOwnProperty;
|
|
824
824
|
function Yn$1(r, e) {
|
|
825
|
-
var t = v$
|
|
825
|
+
var t = v$2(r), n = !t && Qe$2(r), s = !t && !n && ae$1(r), i = !t && !n && !s && Nt$1(r), o = t || n || s || i, a = o ? bn$1(r.length, String) : [], u = a.length;
|
|
826
826
|
for (var c in r)
|
|
827
827
|
(e || Vn$1.call(r, c)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
828
828
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
829
829
|
s && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
830
830
|
i && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
831
|
-
|
|
831
|
+
Ct$1(c, u))) && a.push(c);
|
|
832
832
|
return a;
|
|
833
833
|
}
|
|
834
834
|
function jt$1(r, e) {
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
}
|
|
851
851
|
var ns$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ss$1 = /^\w*$/;
|
|
852
852
|
function Ne$2(r, e) {
|
|
853
|
-
if (v$
|
|
853
|
+
if (v$2(r))
|
|
854
854
|
return false;
|
|
855
855
|
var t = typeof r;
|
|
856
856
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || P$1(r) ? true : ss$1.test(r) || !ns$1.test(r) || e != null && r in Object(e);
|
|
@@ -882,18 +882,18 @@
|
|
|
882
882
|
var t = this.__data__;
|
|
883
883
|
return this.size += this.has(r) ? 0 : 1, t[r] = U$2 && e === void 0 ? ps$1 : e, this;
|
|
884
884
|
}
|
|
885
|
-
function Q$
|
|
885
|
+
function Q$4(r) {
|
|
886
886
|
var e = -1, t = r == null ? 0 : r.length;
|
|
887
887
|
for (this.clear(); ++e < t; ) {
|
|
888
888
|
var n = r[e];
|
|
889
889
|
this.set(n[0], n[1]);
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
Q$
|
|
893
|
-
Q$
|
|
894
|
-
Q$
|
|
895
|
-
Q$
|
|
896
|
-
Q$
|
|
892
|
+
Q$4.prototype.clear = is$1;
|
|
893
|
+
Q$4.prototype.delete = os$1;
|
|
894
|
+
Q$4.prototype.get = fs$1;
|
|
895
|
+
Q$4.prototype.has = hs$1;
|
|
896
|
+
Q$4.prototype.set = gs$1;
|
|
897
897
|
function ys$1() {
|
|
898
898
|
this.__data__ = [], this.size = 0;
|
|
899
899
|
}
|
|
@@ -934,12 +934,12 @@
|
|
|
934
934
|
$$2.prototype.get = ws$1;
|
|
935
935
|
$$2.prototype.has = As$1;
|
|
936
936
|
$$2.prototype.set = xs$1;
|
|
937
|
-
var H$
|
|
937
|
+
var H$2 = q$2(O$1, "Map");
|
|
938
938
|
function Ss$1() {
|
|
939
939
|
this.size = 0, this.__data__ = {
|
|
940
|
-
hash: new Q$
|
|
941
|
-
map: new (H$
|
|
942
|
-
string: new Q$
|
|
940
|
+
hash: new Q$4(),
|
|
941
|
+
map: new (H$2 || $$2)(),
|
|
942
|
+
string: new Q$4()
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
945
|
function Ts$1(r) {
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
function _s$1(r) {
|
|
961
961
|
return he(this, r).has(r);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function Ms$1(r, e) {
|
|
964
964
|
var t = he(this, r), n = t.size;
|
|
965
965
|
return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
|
|
966
966
|
}
|
|
@@ -975,11 +975,11 @@
|
|
|
975
975
|
_.prototype.delete = Os$1;
|
|
976
976
|
_.prototype.get = $s$1;
|
|
977
977
|
_.prototype.has = _s$1;
|
|
978
|
-
_.prototype.set =
|
|
979
|
-
var
|
|
978
|
+
_.prototype.set = Ms$1;
|
|
979
|
+
var Cs$1 = "Expected a function";
|
|
980
980
|
function je$2(r, e) {
|
|
981
981
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
982
|
-
throw new TypeError(
|
|
982
|
+
throw new TypeError(Cs$1);
|
|
983
983
|
var t = function() {
|
|
984
984
|
var n = arguments, s = e ? e.apply(this, n) : n[0], i = t.cache;
|
|
985
985
|
if (i.has(s))
|
|
@@ -1007,7 +1007,7 @@
|
|
|
1007
1007
|
return r == null ? "" : ce$1(r);
|
|
1008
1008
|
}
|
|
1009
1009
|
function Kt$1(r, e) {
|
|
1010
|
-
return v$
|
|
1010
|
+
return v$2(r) ? r : Ne$2(r, e) ? [r] : Ns$1(qe$3(r));
|
|
1011
1011
|
}
|
|
1012
1012
|
function pe$1(r) {
|
|
1013
1013
|
if (typeof r == "string" || P$1(r))
|
|
@@ -1021,7 +1021,7 @@
|
|
|
1021
1021
|
r = r[pe$1(e[t++])];
|
|
1022
1022
|
return t && t == n ? r : void 0;
|
|
1023
1023
|
}
|
|
1024
|
-
function W$
|
|
1024
|
+
function W$2(r, e, t) {
|
|
1025
1025
|
var n = r == null ? void 0 : Ke$2(r, e);
|
|
1026
1026
|
return n === void 0 ? t : n;
|
|
1027
1027
|
}
|
|
@@ -1030,9 +1030,9 @@
|
|
|
1030
1030
|
r[s + t] = e[t];
|
|
1031
1031
|
return r;
|
|
1032
1032
|
}
|
|
1033
|
-
var et$2 = A$
|
|
1033
|
+
var et$2 = A$2 ? A$2.isConcatSpreadable : void 0;
|
|
1034
1034
|
function js$1(r) {
|
|
1035
|
-
return v$
|
|
1035
|
+
return v$2(r) || Qe$2(r) || !!(et$2 && r && r[et$2]);
|
|
1036
1036
|
}
|
|
1037
1037
|
function qs$1(r, e, t, n, s) {
|
|
1038
1038
|
var i = -1, o = r.length;
|
|
@@ -1042,9 +1042,9 @@
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return s;
|
|
1044
1044
|
}
|
|
1045
|
-
var Ks$1 = jt$1(Object.getPrototypeOf, Object), Ps$1 = "\\ud800-\\udfff", Rs$1 = "\\u0300-\\u036f", Fs$1 = "\\ufe20-\\ufe2f", Ls$1 = "\\u20d0-\\u20ff", ks$1 = Rs$1 + Fs$1 + Ls$1, Gs$1 = "\\ufe0e\\ufe0f",
|
|
1045
|
+
var Ks$1 = jt$1(Object.getPrototypeOf, Object), Ps$1 = "\\ud800-\\udfff", Rs$1 = "\\u0300-\\u036f", Fs$1 = "\\ufe20-\\ufe2f", Ls$1 = "\\u20d0-\\u20ff", ks$1 = Rs$1 + Fs$1 + Ls$1, Gs$1 = "\\ufe0e\\ufe0f", zs$1 = "\\u200d", Bs$1 = RegExp("[" + zs$1 + Ps$1 + ks$1 + Gs$1 + "]");
|
|
1046
1046
|
function Us$1(r) {
|
|
1047
|
-
return
|
|
1047
|
+
return Bs$1.test(r);
|
|
1048
1048
|
}
|
|
1049
1049
|
function Rt$1(r, e, t) {
|
|
1050
1050
|
return r === r && (t !== void 0 && (r = r <= t ? r : t), r = r >= e ? r : e), r;
|
|
@@ -1067,7 +1067,7 @@
|
|
|
1067
1067
|
var t = this.__data__;
|
|
1068
1068
|
if (t instanceof $$2) {
|
|
1069
1069
|
var n = t.__data__;
|
|
1070
|
-
if (!H$
|
|
1070
|
+
if (!H$2 || n.length < Xs$1 - 1)
|
|
1071
1071
|
return n.push([r, e]), this.size = ++t.size, this;
|
|
1072
1072
|
t = this.__data__ = new _(n);
|
|
1073
1073
|
}
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
S$2.prototype.get = Zs$1;
|
|
1083
1083
|
S$2.prototype.has = Js$1;
|
|
1084
1084
|
S$2.prototype.set = Vs$1;
|
|
1085
|
-
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$
|
|
1085
|
+
var Ft$1 = typeof exports == "object" && exports && !exports.nodeType && exports, tt$2 = Ft$1 && typeof module == "object" && module && !module.nodeType && module, Ys$1 = tt$2 && tt$2.exports === Ft$1, rt$2 = Ys$1 ? O$1.Buffer : void 0, nt$2 = rt$2 ? rt$2.allocUnsafe : void 0;
|
|
1086
1086
|
function ei(r, e) {
|
|
1087
1087
|
if (e)
|
|
1088
1088
|
return r.slice();
|
|
@@ -1106,18 +1106,18 @@
|
|
|
1106
1106
|
} : ri;
|
|
1107
1107
|
function oi(r, e, t) {
|
|
1108
1108
|
var n = e(r);
|
|
1109
|
-
return v$
|
|
1109
|
+
return v$2(r) ? n : Pt$1(n, t(r));
|
|
1110
1110
|
}
|
|
1111
1111
|
function Ae$2(r) {
|
|
1112
1112
|
return oi(r, le$1, ii);
|
|
1113
1113
|
}
|
|
1114
|
-
var xe$2 = q$2(O$
|
|
1115
|
-
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$
|
|
1114
|
+
var xe$2 = q$2(O$1, "DataView"), Se$2 = q$2(O$1, "Promise"), Te$2 = q$2(O$1, "Set"), it$2 = "[object Map]", ai = "[object Object]", ot$3 = "[object Promise]", at$2 = "[object Set]", ut$2 = "[object WeakMap]", ct$2 = "[object DataView]", ui = j$2(xe$2), ci = j$2(H$2), fi = j$2(Se$2), li = j$2(Te$2), di = j$2(we$2), w = N$2;
|
|
1115
|
+
(xe$2 && w(new xe$2(new ArrayBuffer(1))) != ct$2 || H$2 && w(new H$2()) != it$2 || Se$2 && w(Se$2.resolve()) != ot$3 || Te$2 && w(new Te$2()) != at$2 || we$2 && w(new we$2()) != ut$2) && (w = function(r) {
|
|
1116
1116
|
var e = N$2(r), t = e == ai ? r.constructor : void 0, n = t ? j$2(t) : "";
|
|
1117
1117
|
if (n)
|
|
1118
1118
|
switch (n) {
|
|
1119
1119
|
case ui:
|
|
1120
|
-
return ct$
|
|
1120
|
+
return ct$2;
|
|
1121
1121
|
case ci:
|
|
1122
1122
|
return it$2;
|
|
1123
1123
|
case fi:
|
|
@@ -1134,13 +1134,13 @@
|
|
|
1134
1134
|
var e = r.length, t = new r.constructor(e);
|
|
1135
1135
|
return e && typeof r[0] == "string" && pi.call(r, "index") && (t.index = r.index, t.input = r.input), t;
|
|
1136
1136
|
}
|
|
1137
|
-
var ue$1 = O$
|
|
1138
|
-
function Pe$
|
|
1137
|
+
var ue$1 = O$1.Uint8Array;
|
|
1138
|
+
function Pe$1(r) {
|
|
1139
1139
|
var e = new r.constructor(r.byteLength);
|
|
1140
1140
|
return new ue$1(e).set(new ue$1(r)), e;
|
|
1141
1141
|
}
|
|
1142
1142
|
function yi(r, e) {
|
|
1143
|
-
var t = Pe$
|
|
1143
|
+
var t = Pe$1(r.buffer);
|
|
1144
1144
|
return new r.constructor(t, r.byteOffset, r.byteLength);
|
|
1145
1145
|
}
|
|
1146
1146
|
var mi = /\w*$/;
|
|
@@ -1148,20 +1148,20 @@
|
|
|
1148
1148
|
var e = new r.constructor(r.source, mi.exec(r));
|
|
1149
1149
|
return e.lastIndex = r.lastIndex, e;
|
|
1150
1150
|
}
|
|
1151
|
-
var ft = A$
|
|
1151
|
+
var ft$2 = A$2 ? A$2.prototype : void 0, lt$2 = ft$2 ? ft$2.valueOf : void 0;
|
|
1152
1152
|
function vi(r) {
|
|
1153
1153
|
return lt$2 ? Object(lt$2.call(r)) : {};
|
|
1154
1154
|
}
|
|
1155
1155
|
function wi(r, e) {
|
|
1156
|
-
var t = e ? Pe$
|
|
1156
|
+
var t = e ? Pe$1(r.buffer) : r.buffer;
|
|
1157
1157
|
return new r.constructor(t, r.byteOffset, r.length);
|
|
1158
1158
|
}
|
|
1159
|
-
var Ai = "[object Boolean]", xi = "[object Date]", Si = "[object Map]", Ti = "[object Number]", Oi = "[object RegExp]", $i = "[object Set]", _i = "[object String]",
|
|
1159
|
+
var Ai = "[object Boolean]", xi = "[object Date]", Si = "[object Map]", Ti = "[object Number]", Oi = "[object RegExp]", $i = "[object Set]", _i = "[object String]", Mi = "[object Symbol]", Ci = "[object ArrayBuffer]", Di = "[object DataView]", Ii = "[object Float32Array]", Ei = "[object Float64Array]", Qi = "[object Int8Array]", Ni = "[object Int16Array]", ji = "[object Int32Array]", qi = "[object Uint8Array]", Ki = "[object Uint8ClampedArray]", Pi = "[object Uint16Array]", Ri = "[object Uint32Array]";
|
|
1160
1160
|
function Fi(r, e, t) {
|
|
1161
1161
|
var n = r.constructor;
|
|
1162
1162
|
switch (e) {
|
|
1163
|
-
case
|
|
1164
|
-
return Pe$
|
|
1163
|
+
case Ci:
|
|
1164
|
+
return Pe$1(r);
|
|
1165
1165
|
case Ai:
|
|
1166
1166
|
case xi:
|
|
1167
1167
|
return new n(+r);
|
|
@@ -1186,7 +1186,7 @@
|
|
|
1186
1186
|
return bi(r);
|
|
1187
1187
|
case $i:
|
|
1188
1188
|
return new n();
|
|
1189
|
-
case
|
|
1189
|
+
case Mi:
|
|
1190
1190
|
return vi(r);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
@@ -1195,13 +1195,13 @@
|
|
|
1195
1195
|
}
|
|
1196
1196
|
var ki = "[object Map]";
|
|
1197
1197
|
function Gi(r) {
|
|
1198
|
-
return T$
|
|
1198
|
+
return T$4(r) && w(r) == ki;
|
|
1199
1199
|
}
|
|
1200
|
-
var dt$1 = R$
|
|
1200
|
+
var dt$1 = R$1 && R$1.isMap, zi = dt$1 ? X$2(dt$1) : Gi, Bi = "[object Set]";
|
|
1201
1201
|
function Ui(r) {
|
|
1202
|
-
return T$
|
|
1202
|
+
return T$4(r) && w(r) == Bi;
|
|
1203
1203
|
}
|
|
1204
|
-
var ht = R$
|
|
1204
|
+
var ht = R$1 && R$1.isSet, Hi = ht ? X$2(ht) : Ui, Wi = 1, Lt$1 = "[object Arguments]", Zi = "[object Array]", Ji = "[object Boolean]", Xi = "[object Date]", Vi = "[object Error]", kt$1 = "[object Function]", Yi = "[object GeneratorFunction]", eo$1 = "[object Map]", to$1 = "[object Number]", Gt$1 = "[object Object]", ro$1 = "[object RegExp]", no$1 = "[object Set]", so$1 = "[object String]", io$1 = "[object Symbol]", oo$1 = "[object WeakMap]", ao$1 = "[object ArrayBuffer]", uo$1 = "[object DataView]", co$1 = "[object Float32Array]", fo$1 = "[object Float64Array]", lo$1 = "[object Int8Array]", ho$1 = "[object Int16Array]", po$1 = "[object Int32Array]", go$1 = "[object Uint8Array]", yo$1 = "[object Uint8ClampedArray]", mo$1 = "[object Uint16Array]", bo$1 = "[object Uint32Array]", g = {};
|
|
1205
1205
|
g[Lt$1] = g[Zi] = g[ao$1] = g[uo$1] = g[Ji] = g[Xi] = g[co$1] = g[fo$1] = g[lo$1] = g[ho$1] = g[po$1] = g[eo$1] = g[to$1] = g[Gt$1] = g[ro$1] = g[no$1] = g[so$1] = g[io$1] = g[go$1] = g[yo$1] = g[mo$1] = g[bo$1] = true;
|
|
1206
1206
|
g[Vi] = g[kt$1] = g[oo$1] = false;
|
|
1207
1207
|
function ie(r, e, t, n, s, i) {
|
|
@@ -1210,7 +1210,7 @@
|
|
|
1210
1210
|
return o;
|
|
1211
1211
|
if (!E$3(r))
|
|
1212
1212
|
return r;
|
|
1213
|
-
var u = v$
|
|
1213
|
+
var u = v$2(r);
|
|
1214
1214
|
if (u)
|
|
1215
1215
|
o = gi(r);
|
|
1216
1216
|
else {
|
|
@@ -1231,16 +1231,16 @@
|
|
|
1231
1231
|
return l;
|
|
1232
1232
|
i.set(r, o), Hi(r) ? r.forEach(function(p2) {
|
|
1233
1233
|
o.add(ie(p2, e, t, p2, r, i));
|
|
1234
|
-
}) :
|
|
1235
|
-
o.set(
|
|
1234
|
+
}) : zi(r) && r.forEach(function(p2, m) {
|
|
1235
|
+
o.set(m, ie(p2, e, t, m, r, i));
|
|
1236
1236
|
});
|
|
1237
1237
|
var d = Ae$2, h2 = u ? void 0 : d(r);
|
|
1238
|
-
return rn$1(h2 || r, function(p2,
|
|
1239
|
-
h2 && (
|
|
1238
|
+
return rn$1(h2 || r, function(p2, m) {
|
|
1239
|
+
h2 && (m = p2, p2 = r[m]), hn$1(o, m, ie(p2, e, t, m, r, i));
|
|
1240
1240
|
}), o;
|
|
1241
1241
|
}
|
|
1242
1242
|
var vo$1 = 1, wo$1 = 4;
|
|
1243
|
-
function
|
|
1243
|
+
function C$2(r) {
|
|
1244
1244
|
return ie(r, vo$1 | wo$1);
|
|
1245
1245
|
}
|
|
1246
1246
|
var Ao$1 = "__lodash_hash_undefined__";
|
|
@@ -1263,11 +1263,11 @@
|
|
|
1263
1263
|
return true;
|
|
1264
1264
|
return false;
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function zt$1(r, e) {
|
|
1267
1267
|
return r.has(e);
|
|
1268
1268
|
}
|
|
1269
1269
|
var Oo$1 = 1, $o$1 = 2;
|
|
1270
|
-
function
|
|
1270
|
+
function Bt$1(r, e, t, n, s, i) {
|
|
1271
1271
|
var o = t & Oo$1, a = r.length, u = e.length;
|
|
1272
1272
|
if (a != u && !(o && u > a))
|
|
1273
1273
|
return false;
|
|
@@ -1276,24 +1276,24 @@
|
|
|
1276
1276
|
return c == e && f == r;
|
|
1277
1277
|
var l = -1, d = true, h2 = t & $o$1 ? new Z$3() : void 0;
|
|
1278
1278
|
for (i.set(r, e), i.set(e, r); ++l < a; ) {
|
|
1279
|
-
var p2 = r[l],
|
|
1279
|
+
var p2 = r[l], m = e[l];
|
|
1280
1280
|
if (n)
|
|
1281
|
-
var
|
|
1282
|
-
if (
|
|
1283
|
-
if (
|
|
1281
|
+
var M2 = o ? n(m, p2, l, e, r, i) : n(p2, m, l, r, e, i);
|
|
1282
|
+
if (M2 !== void 0) {
|
|
1283
|
+
if (M2)
|
|
1284
1284
|
continue;
|
|
1285
1285
|
d = false;
|
|
1286
1286
|
break;
|
|
1287
1287
|
}
|
|
1288
1288
|
if (h2) {
|
|
1289
|
-
if (!To$1(e, function(D2,
|
|
1290
|
-
if (!
|
|
1291
|
-
return h2.push(
|
|
1289
|
+
if (!To$1(e, function(D2, I2) {
|
|
1290
|
+
if (!zt$1(h2, I2) && (p2 === D2 || s(p2, D2, t, n, i)))
|
|
1291
|
+
return h2.push(I2);
|
|
1292
1292
|
})) {
|
|
1293
1293
|
d = false;
|
|
1294
1294
|
break;
|
|
1295
1295
|
}
|
|
1296
|
-
} else if (!(p2 ===
|
|
1296
|
+
} else if (!(p2 === m || s(p2, m, t, n, i))) {
|
|
1297
1297
|
d = false;
|
|
1298
1298
|
break;
|
|
1299
1299
|
}
|
|
@@ -1306,13 +1306,13 @@
|
|
|
1306
1306
|
t[++e] = [s, n];
|
|
1307
1307
|
}), t;
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function Mo(r) {
|
|
1310
1310
|
var e = -1, t = Array(r.size);
|
|
1311
1311
|
return r.forEach(function(n) {
|
|
1312
1312
|
t[++e] = n;
|
|
1313
1313
|
}), t;
|
|
1314
1314
|
}
|
|
1315
|
-
var
|
|
1315
|
+
var Co$1 = 1, Do = 2, Io$1 = "[object Boolean]", Eo$1 = "[object Date]", Qo = "[object Error]", No = "[object Map]", jo$1 = "[object Number]", qo = "[object RegExp]", Ko = "[object Set]", Po$1 = "[object String]", Ro = "[object Symbol]", Fo$1 = "[object ArrayBuffer]", Lo = "[object DataView]", pt$1 = A$2 ? A$2.prototype : void 0, me$1 = pt$1 ? pt$1.valueOf : void 0;
|
|
1316
1316
|
function ko$1(r, e, t, n, s, i, o) {
|
|
1317
1317
|
switch (t) {
|
|
1318
1318
|
case Lo:
|
|
@@ -1333,14 +1333,14 @@
|
|
|
1333
1333
|
case No:
|
|
1334
1334
|
var a = _o$1;
|
|
1335
1335
|
case Ko:
|
|
1336
|
-
var u = n &
|
|
1337
|
-
if (a || (a =
|
|
1336
|
+
var u = n & Co$1;
|
|
1337
|
+
if (a || (a = Mo), r.size != e.size && !u)
|
|
1338
1338
|
return false;
|
|
1339
1339
|
var c = o.get(r);
|
|
1340
1340
|
if (c)
|
|
1341
1341
|
return c == e;
|
|
1342
1342
|
n |= Do, o.set(r, e);
|
|
1343
|
-
var f =
|
|
1343
|
+
var f = Bt$1(a(r), a(e), n, s, i, o);
|
|
1344
1344
|
return o.delete(r), f;
|
|
1345
1345
|
case Ro:
|
|
1346
1346
|
if (me$1)
|
|
@@ -1348,41 +1348,41 @@
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return false;
|
|
1350
1350
|
}
|
|
1351
|
-
var Go = 1,
|
|
1351
|
+
var Go = 1, zo = Object.prototype, Bo = zo.hasOwnProperty;
|
|
1352
1352
|
function Uo$1(r, e, t, n, s, i) {
|
|
1353
1353
|
var o = t & Go, a = Ae$2(r), u = a.length, c = Ae$2(e), f = c.length;
|
|
1354
1354
|
if (u != f && !o)
|
|
1355
1355
|
return false;
|
|
1356
1356
|
for (var l = u; l--; ) {
|
|
1357
1357
|
var d = a[l];
|
|
1358
|
-
if (!(o ? d in e :
|
|
1358
|
+
if (!(o ? d in e : Bo.call(e, d)))
|
|
1359
1359
|
return false;
|
|
1360
1360
|
}
|
|
1361
1361
|
var h2 = i.get(r), p2 = i.get(e);
|
|
1362
1362
|
if (h2 && p2)
|
|
1363
1363
|
return h2 == e && p2 == r;
|
|
1364
|
-
var
|
|
1364
|
+
var m = true;
|
|
1365
1365
|
i.set(r, e), i.set(e, r);
|
|
1366
|
-
for (var
|
|
1366
|
+
for (var M2 = o; ++l < u; ) {
|
|
1367
1367
|
d = a[l];
|
|
1368
|
-
var D2 = r[d],
|
|
1368
|
+
var D2 = r[d], I2 = e[d];
|
|
1369
1369
|
if (n)
|
|
1370
|
-
var Le2 = o ? n(
|
|
1371
|
-
if (!(Le2 === void 0 ? D2 ===
|
|
1372
|
-
|
|
1370
|
+
var Le2 = o ? n(I2, D2, d, e, r, i) : n(D2, I2, d, r, e, i);
|
|
1371
|
+
if (!(Le2 === void 0 ? D2 === I2 || s(D2, I2, t, n, i) : Le2)) {
|
|
1372
|
+
m = false;
|
|
1373
1373
|
break;
|
|
1374
1374
|
}
|
|
1375
|
-
|
|
1375
|
+
M2 || (M2 = d == "constructor");
|
|
1376
1376
|
}
|
|
1377
|
-
if (
|
|
1377
|
+
if (m && !M2) {
|
|
1378
1378
|
var ee2 = r.constructor, te2 = e.constructor;
|
|
1379
|
-
ee2 != te2 && "constructor" in r && "constructor" in e && !(typeof ee2 == "function" && ee2 instanceof ee2 && typeof te2 == "function" && te2 instanceof te2) && (
|
|
1379
|
+
ee2 != te2 && "constructor" in r && "constructor" in e && !(typeof ee2 == "function" && ee2 instanceof ee2 && typeof te2 == "function" && te2 instanceof te2) && (m = false);
|
|
1380
1380
|
}
|
|
1381
|
-
return i.delete(r), i.delete(e),
|
|
1381
|
+
return i.delete(r), i.delete(e), m;
|
|
1382
1382
|
}
|
|
1383
1383
|
var Ho = 1, gt = "[object Arguments]", yt = "[object Array]", re$1 = "[object Object]", Wo = Object.prototype, mt = Wo.hasOwnProperty;
|
|
1384
1384
|
function Zo(r, e, t, n, s, i) {
|
|
1385
|
-
var o = v$
|
|
1385
|
+
var o = v$2(r), a = v$2(e), u = o ? yt : w(r), c = a ? yt : w(e);
|
|
1386
1386
|
u = u == gt ? re$1 : u, c = c == gt ? re$1 : c;
|
|
1387
1387
|
var f = u == re$1, l = c == re$1, d = u == c;
|
|
1388
1388
|
if (d && ae$1(r)) {
|
|
@@ -1391,18 +1391,18 @@
|
|
|
1391
1391
|
o = true, f = false;
|
|
1392
1392
|
}
|
|
1393
1393
|
if (d && !f)
|
|
1394
|
-
return i || (i = new S$2()), o || Nt$1(r) ?
|
|
1394
|
+
return i || (i = new S$2()), o || Nt$1(r) ? Bt$1(r, e, t, n, s, i) : ko$1(r, e, u, t, n, s, i);
|
|
1395
1395
|
if (!(t & Ho)) {
|
|
1396
1396
|
var h2 = f && mt.call(r, "__wrapped__"), p2 = l && mt.call(e, "__wrapped__");
|
|
1397
1397
|
if (h2 || p2) {
|
|
1398
|
-
var
|
|
1399
|
-
return i || (i = new S$2()), s(
|
|
1398
|
+
var m = h2 ? r.value() : r, M2 = p2 ? e.value() : e;
|
|
1399
|
+
return i || (i = new S$2()), s(m, M2, t, n, i);
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
return d ? (i || (i = new S$2()), Uo$1(r, e, t, n, s, i)) : false;
|
|
1403
1403
|
}
|
|
1404
|
-
function V$
|
|
1405
|
-
return r === e ? true : r == null || e == null || !T$
|
|
1404
|
+
function V$2(r, e, t, n, s) {
|
|
1405
|
+
return r === e ? true : r == null || e == null || !T$4(r) && !T$4(e) ? r !== r && e !== e : Zo(r, e, t, n, V$2, s);
|
|
1406
1406
|
}
|
|
1407
1407
|
var Jo = 1, Xo = 2;
|
|
1408
1408
|
function Ut$1(r, e, t, n) {
|
|
@@ -1422,7 +1422,7 @@
|
|
|
1422
1422
|
return false;
|
|
1423
1423
|
} else {
|
|
1424
1424
|
var f = new S$2(), l;
|
|
1425
|
-
if (!(l === void 0 ? V$
|
|
1425
|
+
if (!(l === void 0 ? V$2(c, u, Jo | Xo, n, f) : l))
|
|
1426
1426
|
return false;
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
@@ -1460,7 +1460,7 @@
|
|
|
1460
1460
|
break;
|
|
1461
1461
|
r = r[o];
|
|
1462
1462
|
}
|
|
1463
|
-
return i || ++n != s ? i : (s = r == null ? 0 : r.length, !!s && Ee$2(s) &&
|
|
1463
|
+
return i || ++n != s ? i : (s = r == null ? 0 : r.length, !!s && Ee$2(s) && Ct$1(o, s) && (v$2(r) || Qe$2(r)));
|
|
1464
1464
|
}
|
|
1465
1465
|
function ta(r, e) {
|
|
1466
1466
|
return r != null && ea(r, e, Yo);
|
|
@@ -1468,8 +1468,8 @@
|
|
|
1468
1468
|
var ra = 1, na = 2;
|
|
1469
1469
|
function sa(r, e) {
|
|
1470
1470
|
return Ne$2(r) && Ht$1(e) ? Zt$1(pe$1(r), e) : function(t) {
|
|
1471
|
-
var n = W$
|
|
1472
|
-
return n === void 0 && n === e ? ta(t, r) : V$
|
|
1471
|
+
var n = W$2(t, r);
|
|
1472
|
+
return n === void 0 && n === e ? ta(t, r) : V$2(e, n, ra | na);
|
|
1473
1473
|
};
|
|
1474
1474
|
}
|
|
1475
1475
|
function Jt$1(r) {
|
|
@@ -1486,7 +1486,7 @@
|
|
|
1486
1486
|
return Ne$2(r) ? Jt$1(pe$1(r)) : ia(r);
|
|
1487
1487
|
}
|
|
1488
1488
|
function Y$3(r) {
|
|
1489
|
-
return typeof r == "function" ? r : r == null ? fe : typeof r == "object" ? v$
|
|
1489
|
+
return typeof r == "function" ? r : r == null ? fe : typeof r == "object" ? v$2(r) ? sa(r[0], r[1]) : Vo$1(r) : oa(r);
|
|
1490
1490
|
}
|
|
1491
1491
|
function aa(r) {
|
|
1492
1492
|
return function(e, t, n) {
|
|
@@ -1515,14 +1515,14 @@
|
|
|
1515
1515
|
}
|
|
1516
1516
|
var Xt$1 = fa(ca);
|
|
1517
1517
|
function be$1(r) {
|
|
1518
|
-
return T$
|
|
1518
|
+
return T$4(r) && F$1(r);
|
|
1519
1519
|
}
|
|
1520
1520
|
var la = 200;
|
|
1521
1521
|
function da(r, e, t, n) {
|
|
1522
1522
|
var s = -1, i = an$1, o = true, a = r.length, u = [], c = e.length;
|
|
1523
1523
|
if (!a)
|
|
1524
1524
|
return u;
|
|
1525
|
-
t && (e =
|
|
1525
|
+
t && (e = z$2(e, X$2(t))), e.length >= la && (i = zt$1, o = false, e = new Z$3(e));
|
|
1526
1526
|
e:
|
|
1527
1527
|
for (; ++s < a; ) {
|
|
1528
1528
|
var f = r[s], l = t == null ? f : t(f);
|
|
@@ -1563,7 +1563,7 @@
|
|
|
1563
1563
|
}), t;
|
|
1564
1564
|
}
|
|
1565
1565
|
function Vt$1(r, e, t) {
|
|
1566
|
-
var n = v$
|
|
1566
|
+
var n = v$2(r) ? ga : ya;
|
|
1567
1567
|
return n(r, Y$3(e));
|
|
1568
1568
|
}
|
|
1569
1569
|
function ma(r) {
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
if (!n)
|
|
1586
1586
|
return -1;
|
|
1587
1587
|
var s = t == null ? 0 : De$2(t);
|
|
1588
|
-
return s < 0 && (s = ba(n + s, 0)),
|
|
1588
|
+
return s < 0 && (s = ba(n + s, 0)), Mt$1(r, Y$3(e), s);
|
|
1589
1589
|
}
|
|
1590
1590
|
var va = ma(Oe$3);
|
|
1591
1591
|
function wa(r, e) {
|
|
@@ -1596,15 +1596,15 @@
|
|
|
1596
1596
|
}
|
|
1597
1597
|
var Aa = "[object String]";
|
|
1598
1598
|
function xa(r) {
|
|
1599
|
-
return typeof r == "string" || !v$
|
|
1599
|
+
return typeof r == "string" || !v$2(r) && T$4(r) && N$2(r) == Aa;
|
|
1600
1600
|
}
|
|
1601
1601
|
function vt(r, e) {
|
|
1602
|
-
return V$
|
|
1602
|
+
return V$2(r, e);
|
|
1603
1603
|
}
|
|
1604
1604
|
function ne$1(r, e, t) {
|
|
1605
1605
|
t = typeof t == "function" ? t : void 0;
|
|
1606
1606
|
var n = t ? t(r, e) : void 0;
|
|
1607
|
-
return n === void 0 ? V$
|
|
1607
|
+
return n === void 0 ? V$2(r, e, void 0, t) : !!n;
|
|
1608
1608
|
}
|
|
1609
1609
|
function Sa(r, e) {
|
|
1610
1610
|
return r === e || Ut$1(r, e, Wt$1(e));
|
|
@@ -1638,15 +1638,15 @@
|
|
|
1638
1638
|
return r.index - e.index;
|
|
1639
1639
|
}
|
|
1640
1640
|
function _a(r, e, t) {
|
|
1641
|
-
e.length ? e =
|
|
1642
|
-
return v$
|
|
1641
|
+
e.length ? e = z$2(e, function(i) {
|
|
1642
|
+
return v$2(i) ? function(o) {
|
|
1643
1643
|
return Ke$2(o, i.length === 1 ? i[0] : i);
|
|
1644
1644
|
} : i;
|
|
1645
1645
|
}) : e = [fe];
|
|
1646
1646
|
var n = -1;
|
|
1647
|
-
e =
|
|
1647
|
+
e = z$2(e, X$2(Y$3));
|
|
1648
1648
|
var s = wa(r, function(i, o, a) {
|
|
1649
|
-
var u =
|
|
1649
|
+
var u = z$2(e, function(c) {
|
|
1650
1650
|
return c(i);
|
|
1651
1651
|
});
|
|
1652
1652
|
return { criteria: u, index: ++n, value: i };
|
|
@@ -1656,19 +1656,19 @@
|
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
function _u(r, e, t, n) {
|
|
1659
|
-
return r == null ? [] : (v$
|
|
1659
|
+
return r == null ? [] : (v$2(e) || (e = e == null ? [] : [e]), t = t, v$2(t) || (t = t == null ? [] : [t]), _a(r, e, t));
|
|
1660
1660
|
}
|
|
1661
|
-
var
|
|
1661
|
+
var Ma = Jt$1("length"), Yt$1 = "\\ud800-\\udfff", Ca = "\\u0300-\\u036f", Da = "\\ufe20-\\ufe2f", Ia = "\\u20d0-\\u20ff", Ea = Ca + Da + Ia, Qa = "\\ufe0e\\ufe0f", Na = "[" + Yt$1 + "]", $e$2 = "[" + Ea + "]", _e$2 = "\\ud83c[\\udffb-\\udfff]", ja = "(?:" + $e$2 + "|" + _e$2 + ")", er$1 = "[^" + Yt$1 + "]", tr$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}", rr$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]", qa = "\\u200d", nr$1 = ja + "?", sr$1 = "[" + Qa + "]?", Ka = "(?:" + qa + "(?:" + [er$1, tr$1, rr$1].join("|") + ")" + sr$1 + nr$1 + ")*", Pa = sr$1 + nr$1 + Ka, Ra = "(?:" + [er$1 + $e$2 + "?", $e$2, tr$1, rr$1, Na].join("|") + ")", wt$1 = RegExp(_e$2 + "(?=" + _e$2 + ")|" + Ra + Pa, "g");
|
|
1662
1662
|
function Fa(r) {
|
|
1663
1663
|
for (var e = wt$1.lastIndex = 0; wt$1.test(r); )
|
|
1664
1664
|
++e;
|
|
1665
1665
|
return e;
|
|
1666
1666
|
}
|
|
1667
1667
|
function La(r) {
|
|
1668
|
-
return Us$1(r) ? Fa(r) :
|
|
1668
|
+
return Us$1(r) ? Fa(r) : Ma(r);
|
|
1669
1669
|
}
|
|
1670
1670
|
var ka = "[object Map]", Ga = "[object Set]";
|
|
1671
|
-
function
|
|
1671
|
+
function za(r) {
|
|
1672
1672
|
if (r == null)
|
|
1673
1673
|
return 0;
|
|
1674
1674
|
if (F$1(r))
|
|
@@ -1676,23 +1676,23 @@
|
|
|
1676
1676
|
var e = w(r);
|
|
1677
1677
|
return e == ka || e == Ga ? r.size : qt$1(r).length;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function Ba(r, e, t) {
|
|
1680
1680
|
return r = qe$3(r), t = t == null ? 0 : Rt$1(De$2(t), 0, r.length), e = ce$1(e), r.slice(t, t + e.length) == e;
|
|
1681
1681
|
}
|
|
1682
1682
|
function Re$1(r) {
|
|
1683
|
-
const e =
|
|
1683
|
+
const e = Me$2(r);
|
|
1684
1684
|
return Ua(e);
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function Me$2(r) {
|
|
1687
1687
|
if (typeof r != "object" || r === null)
|
|
1688
1688
|
return String(r);
|
|
1689
1689
|
if (Array.isArray(r))
|
|
1690
|
-
return "[" + r.map(
|
|
1690
|
+
return "[" + r.map(Me$2).join(",") + "]";
|
|
1691
1691
|
const e = Object.keys(r).sort();
|
|
1692
1692
|
let t = "{";
|
|
1693
1693
|
for (let n = 0; n < e.length; n++) {
|
|
1694
1694
|
const s = e[n];
|
|
1695
|
-
t += s + ":" +
|
|
1695
|
+
t += s + ":" + Me$2(r[s]), n < e.length - 1 && (t += ",");
|
|
1696
1696
|
}
|
|
1697
1697
|
return t += "}", t;
|
|
1698
1698
|
}
|
|
@@ -1721,7 +1721,7 @@
|
|
|
1721
1721
|
return performance.getEntriesByType(r);
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
|
-
class
|
|
1724
|
+
class Mu {
|
|
1725
1725
|
data;
|
|
1726
1726
|
enabled = false;
|
|
1727
1727
|
constructor() {
|
|
@@ -2088,7 +2088,7 @@
|
|
|
2088
2088
|
return { addedNodes: s, removedNodes: i, addedEdges: u, removedEdges: c, kindChanges: f };
|
|
2089
2089
|
}
|
|
2090
2090
|
};
|
|
2091
|
-
class
|
|
2091
|
+
class Cu {
|
|
2092
2092
|
graph;
|
|
2093
2093
|
nodeIndex;
|
|
2094
2094
|
constructor() {
|
|
@@ -2596,7 +2596,7 @@
|
|
|
2596
2596
|
}
|
|
2597
2597
|
generateContext(e) {
|
|
2598
2598
|
try {
|
|
2599
|
-
return
|
|
2599
|
+
return C$2(e);
|
|
2600
2600
|
} catch (t) {
|
|
2601
2601
|
return this.log.error("Error in cache generateContext", t), e;
|
|
2602
2602
|
}
|
|
@@ -2662,7 +2662,7 @@
|
|
|
2662
2662
|
};
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
|
-
const or$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) :
|
|
2665
|
+
const or$1 = (r, e) => e ? typeof structuredClone < "u" ? structuredClone(r) : C$2(r) : r, xt$1 = (r, e, t, n, s, i) => {
|
|
2666
2666
|
try {
|
|
2667
2667
|
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = or$1(i, o);
|
|
2668
2668
|
if (t.scope === "list" && (t.listKey = r.cdRef?.key || r.key, t.modelKey = r.model?.key || r.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
|
|
@@ -3090,10 +3090,10 @@
|
|
|
3090
3090
|
return this.getPathSegments(e).length;
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
|
-
const x$
|
|
3093
|
+
const x$1 = new su();
|
|
3094
3094
|
function L$2(r, e) {
|
|
3095
3095
|
if (e.includes("[*]")) {
|
|
3096
|
-
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$
|
|
3096
|
+
const i = e.indexOf("[*]"), o = e.substring(0, i), a = e.substring(i + 3), u = o ? W$2(r, o) : r;
|
|
3097
3097
|
if (!Array.isArray(u)) return [];
|
|
3098
3098
|
const c = [];
|
|
3099
3099
|
for (const f of u)
|
|
@@ -3153,7 +3153,7 @@
|
|
|
3153
3153
|
a === "sum" ? s.sum = i?.sum : a === "avg" ? s.avg = i?.average : a === "count" ? s.count = ou(n, e) : a === "min" ? s.min = o && o[0] : a === "max" ? s.max = o && o[1] : a === "distinct" ? s.distinct = fu(r, e, t) : a === "group" && (s.group = uu(r, e));
|
|
3154
3154
|
}), s;
|
|
3155
3155
|
}, ou = (r, e) => {
|
|
3156
|
-
const t = x$
|
|
3156
|
+
const t = x$1.parse(r).isDeepQuery;
|
|
3157
3157
|
let n = 0;
|
|
3158
3158
|
for (const s of e.values())
|
|
3159
3159
|
if (s)
|
|
@@ -3167,7 +3167,7 @@
|
|
|
3167
3167
|
return n;
|
|
3168
3168
|
}, au = (r, e) => {
|
|
3169
3169
|
let t, n;
|
|
3170
|
-
const s = x$
|
|
3170
|
+
const s = x$1.parse(r).isDeepQuery;
|
|
3171
3171
|
for (const i of e.values()) {
|
|
3172
3172
|
if (!i) continue;
|
|
3173
3173
|
let o;
|
|
@@ -3195,7 +3195,7 @@
|
|
|
3195
3195
|
option: { value: ["$dcupl_not_found"] },
|
|
3196
3196
|
count: 0,
|
|
3197
3197
|
keys: []
|
|
3198
|
-
}, s = x$
|
|
3198
|
+
}, s = x$1.parse(r.attribute).isDeepQuery;
|
|
3199
3199
|
for (const i of e.values()) {
|
|
3200
3200
|
let o;
|
|
3201
3201
|
s ? o = L$2(i, r.attribute) : o = [i[r.attribute]];
|
|
@@ -3208,7 +3208,7 @@
|
|
|
3208
3208
|
return r?.groupOptions?.calculateNotFound && t.push(n), t;
|
|
3209
3209
|
}, cu = (r, e) => {
|
|
3210
3210
|
let t = 0, n = 0;
|
|
3211
|
-
const s = x$
|
|
3211
|
+
const s = x$1.parse(r).isDeepQuery;
|
|
3212
3212
|
for (const i of e.values()) {
|
|
3213
3213
|
if (!i) continue;
|
|
3214
3214
|
let o;
|
|
@@ -3242,7 +3242,7 @@
|
|
|
3242
3242
|
}
|
|
3243
3243
|
return n;
|
|
3244
3244
|
};
|
|
3245
|
-
let G$
|
|
3245
|
+
let G$2 = class G extends Error {
|
|
3246
3246
|
query;
|
|
3247
3247
|
constructor(e, t) {
|
|
3248
3248
|
const n = `Query Error: ${e} in ${JSON.stringify(t, null, 2)}`;
|
|
@@ -3257,10 +3257,10 @@
|
|
|
3257
3257
|
queries: []
|
|
3258
3258
|
};
|
|
3259
3259
|
_initOptions;
|
|
3260
|
-
currentQuery =
|
|
3260
|
+
currentQuery = C$2(this._defaultQueryOptions);
|
|
3261
3261
|
deepQueryService;
|
|
3262
3262
|
constructor(e) {
|
|
3263
|
-
this.deepQueryService = e || x$
|
|
3263
|
+
this.deepQueryService = e || x$1;
|
|
3264
3264
|
}
|
|
3265
3265
|
/**
|
|
3266
3266
|
* Initialize the query builder.
|
|
@@ -3286,7 +3286,7 @@
|
|
|
3286
3286
|
* });
|
|
3287
3287
|
*/
|
|
3288
3288
|
init(e) {
|
|
3289
|
-
this._initOptions =
|
|
3289
|
+
this._initOptions = C$2(e), this.currentQuery = C$2(this._defaultQueryOptions), this.currentQuery.modelKey = e.modelKey, "queries" in e && Array.isArray(e.queries) && (e.groupType && (this.currentQuery.groupType = e.groupType), e.queries && (this.currentQuery.queries = C$2(e.queries)), e.count !== void 0 && (this.currentQuery.count = e.count), e.start !== void 0 && (this.currentQuery.start = e.start), e.sort && (this.currentQuery.sort = e.sort), e.projection && (this.currentQuery.projection = e.projection));
|
|
3290
3290
|
}
|
|
3291
3291
|
reset() {
|
|
3292
3292
|
return this.init(this._initOptions), this.getQuery();
|
|
@@ -3304,7 +3304,7 @@
|
|
|
3304
3304
|
return this.currentQuery.queries.find((t) => this.isQueryGroup(t) && t.groupKey === e);
|
|
3305
3305
|
}
|
|
3306
3306
|
getQuery() {
|
|
3307
|
-
return
|
|
3307
|
+
return C$2(this.currentQuery);
|
|
3308
3308
|
}
|
|
3309
3309
|
hasQueryGroup(e) {
|
|
3310
3310
|
return this.currentQuery.queries.some((t) => this.isQueryGroup(t) && t.groupKey === e);
|
|
@@ -3426,12 +3426,12 @@
|
|
|
3426
3426
|
validateQuery(e) {
|
|
3427
3427
|
const t = [];
|
|
3428
3428
|
if (this.isQuery(e))
|
|
3429
|
-
return e.attribute || t.push(new G$
|
|
3429
|
+
return e.attribute || t.push(new G$2("Missing attribute", e)), e.operator || t.push(new G$2("Missing operator", e)), typeof e.value > "u" && t.push(new G$2("Missing value", e)), e.operator === "find" && Array.isArray(e.value) && t.push(new G$2("find operator cannot have array value", e)), t.length > 0 ? { valid: false, errors: t } : { valid: true };
|
|
3430
3430
|
if (this.isQueryGroup(e)) {
|
|
3431
3431
|
const n = e.queries.map((s) => this.validateQuery(s)).filter((s) => !s.valid).map((s) => s.errors).flat();
|
|
3432
3432
|
return n.length > 0 ? { valid: false, errors: n } : { valid: true };
|
|
3433
3433
|
}
|
|
3434
|
-
return t.push(new G$
|
|
3434
|
+
return t.push(new G$2("Invalid query definition", e)), { valid: false, errors: t };
|
|
3435
3435
|
}
|
|
3436
3436
|
/**
|
|
3437
3437
|
* Get all attribute names used in the query.
|
|
@@ -3930,17 +3930,17 @@
|
|
|
3930
3930
|
return e(this.currentQuery.queries);
|
|
3931
3931
|
}
|
|
3932
3932
|
};
|
|
3933
|
-
const
|
|
3933
|
+
const Ce$2 = new ar$1();
|
|
3934
3934
|
function ju(r, e, t, n, s, i, o) {
|
|
3935
|
-
const a =
|
|
3935
|
+
const a = Ce$2.removeQuery({ groupKey: s }, C$2(n)), u = o.queryData(r, a, false, i), c = e ? [...e.keys()] : [], f = new Set(c), l = i.get(s) ?? /* @__PURE__ */ new Map();
|
|
3936
3936
|
if (!t.excludeUnresolved)
|
|
3937
3937
|
for (const h2 of l.keys())
|
|
3938
3938
|
f.add(h2);
|
|
3939
3939
|
if (t.excludeUndefineds ? f.delete(void 0) : f.add(void 0), t.sort) {
|
|
3940
3940
|
const h2 = [];
|
|
3941
|
-
for (const
|
|
3942
|
-
h2.push(Tt(
|
|
3943
|
-
const p2 = t.excludeZeros ? h2.filter((
|
|
3941
|
+
for (const m of f.values())
|
|
3942
|
+
h2.push(Tt(m, l, u, e, s, n, true));
|
|
3943
|
+
const p2 = t.excludeZeros ? h2.filter((m) => m.size > 0) : h2;
|
|
3944
3944
|
return p2.sort(lu(t.sort)), t.count ? p2.slice(0, t.count) : p2;
|
|
3945
3945
|
}
|
|
3946
3946
|
const d = [];
|
|
@@ -4003,9 +4003,9 @@
|
|
|
4003
4003
|
}
|
|
4004
4004
|
}
|
|
4005
4005
|
const du = (r, e, t) => {
|
|
4006
|
-
const n = t.queries.findIndex((s) =>
|
|
4006
|
+
const n = t.queries.findIndex((s) => Ce$2.isQueryGroup(s) && s.groupKey === r);
|
|
4007
4007
|
return n > -1 ? !!t.queries[n].queries.find((s) => {
|
|
4008
|
-
if (
|
|
4008
|
+
if (Ce$2.isQuery(s)) {
|
|
4009
4009
|
const i = s.value?.key || s.value;
|
|
4010
4010
|
return s.attribute === r && i === e;
|
|
4011
4011
|
}
|
|
@@ -4080,7 +4080,7 @@
|
|
|
4080
4080
|
if (o)
|
|
4081
4081
|
o.lastAccessedAt = Date.now();
|
|
4082
4082
|
else if (!i) {
|
|
4083
|
-
const a = x$
|
|
4083
|
+
const a = x$1.parse(e).isDeepQuery ?? false;
|
|
4084
4084
|
this.indexMetadata.set(s, {
|
|
4085
4085
|
createdAt: Date.now(),
|
|
4086
4086
|
lastAccessedAt: Date.now(),
|
|
@@ -4090,7 +4090,7 @@
|
|
|
4090
4090
|
}
|
|
4091
4091
|
if (!i) {
|
|
4092
4092
|
this.reset(s), this.indexMap.set(s, /* @__PURE__ */ new Map());
|
|
4093
|
-
const a = x$
|
|
4093
|
+
const a = x$1.parse(e).isDeepQuery;
|
|
4094
4094
|
for (const u of t.values()) {
|
|
4095
4095
|
let c;
|
|
4096
4096
|
a ? (c = L$2(u, e), c.length === 0 && (c = [void 0])) : c = [u[e]], this.fillInverseIndex(s, u.key, c), this.fillDataMap(s, c);
|
|
@@ -4194,7 +4194,7 @@
|
|
|
4194
4194
|
isDeepQueryIndex(e) {
|
|
4195
4195
|
const t = e.includes("_") ? e.split("_")[0] : e;
|
|
4196
4196
|
try {
|
|
4197
|
-
return x$
|
|
4197
|
+
return x$1.parse(t).isDeepQuery ?? false;
|
|
4198
4198
|
} catch {
|
|
4199
4199
|
return false;
|
|
4200
4200
|
}
|
|
@@ -4269,15 +4269,15 @@
|
|
|
4269
4269
|
};
|
|
4270
4270
|
}
|
|
4271
4271
|
}
|
|
4272
|
-
const K$
|
|
4272
|
+
const K$4 = "__";
|
|
4273
4273
|
function ur$1(r, e, t = { key: "root" }, n = "root", s = new hu(), i) {
|
|
4274
4274
|
const o = i || r;
|
|
4275
4275
|
for (const a of e.columns)
|
|
4276
|
-
a.attribute && (x$
|
|
4276
|
+
a.attribute && (x$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
|
|
4277
4277
|
for (const a of e.rows)
|
|
4278
|
-
a.attribute && (x$
|
|
4278
|
+
a.attribute && (x$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
|
|
4279
4279
|
for (const a of e.values)
|
|
4280
|
-
a.attribute && (x$
|
|
4280
|
+
a.attribute && (x$1.parse(a.attribute), s.getOrCreateIndex(a.attribute, o));
|
|
4281
4281
|
if (e.rows && e.rows.length > 0) {
|
|
4282
4282
|
t.rows = t.rows || [];
|
|
4283
4283
|
const a = pu(r, e.rows[0], e, s, n, i);
|
|
@@ -4321,7 +4321,7 @@
|
|
|
4321
4321
|
l,
|
|
4322
4322
|
d,
|
|
4323
4323
|
f,
|
|
4324
|
-
s + K$
|
|
4324
|
+
s + K$4 + e.attribute + K$4 + u,
|
|
4325
4325
|
n,
|
|
4326
4326
|
i
|
|
4327
4327
|
);
|
|
@@ -4333,7 +4333,7 @@
|
|
|
4333
4333
|
d,
|
|
4334
4334
|
t,
|
|
4335
4335
|
n,
|
|
4336
|
-
s + K$
|
|
4336
|
+
s + K$4 + e.attribute + K$4 + u,
|
|
4337
4337
|
i
|
|
4338
4338
|
);
|
|
4339
4339
|
f.columns.push(h2);
|
|
@@ -4366,7 +4366,7 @@
|
|
|
4366
4366
|
l,
|
|
4367
4367
|
d,
|
|
4368
4368
|
f,
|
|
4369
|
-
s + K$
|
|
4369
|
+
s + K$4 + e.attribute + K$4 + u,
|
|
4370
4370
|
n,
|
|
4371
4371
|
i
|
|
4372
4372
|
);
|
|
@@ -4444,7 +4444,7 @@
|
|
|
4444
4444
|
evaluateQuery(e, t) {
|
|
4445
4445
|
let n, s = e.value;
|
|
4446
4446
|
const i = e.options?.arrayValueHandling || "some";
|
|
4447
|
-
if (Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (s = this.transformValue(s, e.options.transform)), e.attribute.includes(".") || e.attribute.includes("[") ? n = W$
|
|
4447
|
+
if (Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (s = this.transformValue(s, e.options.transform)), e.attribute.includes(".") || e.attribute.includes("[") ? n = W$2(t, e.attribute) : n = t[e.attribute], Array.isArray(e.options?.transform) && e.options.transform.length > 0 && (n = this.transformValue(n, e.options.transform)), (typeof n > "u" || n === null) && !["typeof", "isTruthy", "eq"].includes(e.operator))
|
|
4448
4448
|
return false;
|
|
4449
4449
|
switch (e.operator) {
|
|
4450
4450
|
case "eq":
|
|
@@ -4464,7 +4464,7 @@
|
|
|
4464
4464
|
case "isTruthy":
|
|
4465
4465
|
return s === true ? Array.isArray(n) ? i === "some" ? n.some((o) => typeof !!o) : n.every((o) => typeof !!o) : !!n : !n;
|
|
4466
4466
|
case "size":
|
|
4467
|
-
return typeof n == "string" ? n.length === s :
|
|
4467
|
+
return typeof n == "string" ? n.length === s : za(n) === s;
|
|
4468
4468
|
default:
|
|
4469
4469
|
if (this.scriptController.hasScript(e.operator))
|
|
4470
4470
|
return this.scriptController.executeScript(e.operator, "operator", { query: e, item: t });
|
|
@@ -4511,7 +4511,7 @@
|
|
|
4511
4511
|
return i;
|
|
4512
4512
|
}
|
|
4513
4513
|
equalRegexFn(e, t) {
|
|
4514
|
-
if (typeof t == "string" &&
|
|
4514
|
+
if (typeof t == "string" && Ba(t, "/") && pa(t, "/"))
|
|
4515
4515
|
try {
|
|
4516
4516
|
return new RegExp(t.slice(1, -1)).test(e);
|
|
4517
4517
|
} catch {
|
|
@@ -4592,7 +4592,7 @@
|
|
|
4592
4592
|
queries: []
|
|
4593
4593
|
};
|
|
4594
4594
|
if (n !== -1) {
|
|
4595
|
-
const i = e.attribute.substring(0, n), o = i.includes(".") ? W$
|
|
4595
|
+
const i = e.attribute.substring(0, n), o = i.includes(".") ? W$2(t, i) : t[i];
|
|
4596
4596
|
if (Array.isArray(o))
|
|
4597
4597
|
for (let a = 0; a < o.length; a++) {
|
|
4598
4598
|
const u = e.attribute.replace("[*]", `[${a}]`);
|
|
@@ -4665,7 +4665,16 @@
|
|
|
4665
4665
|
// }
|
|
4666
4666
|
// }
|
|
4667
4667
|
}
|
|
4668
|
-
|
|
4668
|
+
function Pu() {
|
|
4669
|
+
const r = globalThis;
|
|
4670
|
+
return typeof r.scheduler?.yield == "function" ? r.scheduler.yield() : typeof r.setImmediate == "function" ? new Promise((e) => r.setImmediate(() => e())) : typeof r.MessageChannel == "function" ? new Promise((e) => {
|
|
4671
|
+
const t = new r.MessageChannel();
|
|
4672
|
+
t.port1.onmessage = () => {
|
|
4673
|
+
t.port1.close(), e();
|
|
4674
|
+
}, t.port2.postMessage(null);
|
|
4675
|
+
}) : new Promise((e) => setTimeout(e, 0));
|
|
4676
|
+
}
|
|
4677
|
+
class Ru {
|
|
4669
4678
|
scripts = /* @__PURE__ */ new Map();
|
|
4670
4679
|
scriptFunctions = /* @__PURE__ */ new Map();
|
|
4671
4680
|
constructor() {
|
|
@@ -4708,11 +4717,11 @@
|
|
|
4708
4717
|
return this.getScriptAsFn(e, s)(t, ...i);
|
|
4709
4718
|
}
|
|
4710
4719
|
}
|
|
4711
|
-
const
|
|
4720
|
+
const Fu = (r, e) => r ? (e || (e = {}), r.replace(/\$\{(.*?)\}/g, (t, n) => W$2(e, n.trim(), ""))) : "", Lu = (r) => {
|
|
4712
4721
|
const e = /* @__PURE__ */ new Set();
|
|
4713
4722
|
return r.replace(/\$\{(.*?)\}/g, (t, n) => (e.add(n.trim()), "")), { variables: Array.from(e).map((t) => ({ name: t })) };
|
|
4714
4723
|
};
|
|
4715
|
-
var T$
|
|
4724
|
+
var T$3 = gn$1(function(A2, e) {
|
|
4716
4725
|
return be$1(A2) ? da(A2, qs$1(e, 1, be$1)) : [];
|
|
4717
4726
|
});
|
|
4718
4727
|
let z$1 = class z {
|
|
@@ -4755,7 +4764,7 @@
|
|
|
4755
4764
|
indexDependsOnAttributes(e, t) {
|
|
4756
4765
|
const r = e.includes("_") ? e.split("_")[0] : e;
|
|
4757
4766
|
try {
|
|
4758
|
-
const i = x$
|
|
4767
|
+
const i = x$1.parse(r);
|
|
4759
4768
|
if (!i.isDeepQuery)
|
|
4760
4769
|
return false;
|
|
4761
4770
|
const n = i.attribute.split(".");
|
|
@@ -4824,7 +4833,7 @@
|
|
|
4824
4833
|
for (const r of e.queries)
|
|
4825
4834
|
if (r.queries)
|
|
4826
4835
|
for (const i of r.queries)
|
|
4827
|
-
i.attribute && x$
|
|
4836
|
+
i.attribute && x$1.parse(i.attribute).isDeepQuery && t.add(i.attribute);
|
|
4828
4837
|
return Array.from(t);
|
|
4829
4838
|
}
|
|
4830
4839
|
/**
|
|
@@ -4833,7 +4842,7 @@
|
|
|
4833
4842
|
getProjectionForQuery(e) {
|
|
4834
4843
|
const t = this.getDeepQueryAttributes(e);
|
|
4835
4844
|
if (t.length === 0) return null;
|
|
4836
|
-
const r = t.map((i) => x$
|
|
4845
|
+
const r = t.map((i) => x$1.parse(i));
|
|
4837
4846
|
return this.queryBuilder.getProjectionForAttributeEntries(r);
|
|
4838
4847
|
}
|
|
4839
4848
|
/**
|
|
@@ -4862,7 +4871,7 @@
|
|
|
4862
4871
|
});
|
|
4863
4872
|
}
|
|
4864
4873
|
getAggregate(e, t, r) {
|
|
4865
|
-
if (x$
|
|
4874
|
+
if (x$1.parse(e.attribute).isDeepQuery)
|
|
4866
4875
|
return Fe$2(e, t, r, e.attribute);
|
|
4867
4876
|
{
|
|
4868
4877
|
const n = this.model.getAttribute(e.attribute);
|
|
@@ -4878,7 +4887,7 @@
|
|
|
4878
4887
|
initialSize: 0
|
|
4879
4888
|
},
|
|
4880
4889
|
items: []
|
|
4881
|
-
}, r = x$
|
|
4890
|
+
}, r = x$1.parse(e.attribute), i = r.isDeepQuery;
|
|
4882
4891
|
let n;
|
|
4883
4892
|
if (!i && (n = this.model.getAttribute(e.attribute), !n))
|
|
4884
4893
|
throw new Error("Attribute not found");
|
|
@@ -4949,7 +4958,7 @@
|
|
|
4949
4958
|
}) : s.forEach((h2) => {
|
|
4950
4959
|
const y2 = e.items?.find((D2) => D2.key === h2.key);
|
|
4951
4960
|
if (y2) {
|
|
4952
|
-
const D2 = c.distinct.find((
|
|
4961
|
+
const D2 = c.distinct.find((q2) => q2.value === h2.key), v2 = this.getDataByKeys(u, D2.keys), x2 = this.item.getItems(v2, this.model, y2);
|
|
4953
4962
|
h2._items = x2;
|
|
4954
4963
|
}
|
|
4955
4964
|
});
|
|
@@ -5124,7 +5133,7 @@
|
|
|
5124
5133
|
}
|
|
5125
5134
|
if (!n || !o) {
|
|
5126
5135
|
this.indicesController.reset(e);
|
|
5127
|
-
const c = x$
|
|
5136
|
+
const c = x$1.parse(e), g2 = c.isDeepQuery;
|
|
5128
5137
|
let d = l;
|
|
5129
5138
|
if (g2) {
|
|
5130
5139
|
const h2 = this.queryBuilder.getProjectionForAttributeEntries([c]);
|
|
@@ -5239,7 +5248,7 @@
|
|
|
5239
5248
|
return this.filterItems.has(e) && (t?.skipProcessing || this.updateFilterItem(e, t)), this.filterItems.get(e);
|
|
5240
5249
|
}
|
|
5241
5250
|
};
|
|
5242
|
-
let K$
|
|
5251
|
+
let K$3 = class K {
|
|
5243
5252
|
constructor(e, t) {
|
|
5244
5253
|
this.modelParser = e, this.scriptController = t;
|
|
5245
5254
|
}
|
|
@@ -5338,7 +5347,7 @@
|
|
|
5338
5347
|
}
|
|
5339
5348
|
isValidSortProjection(e) {
|
|
5340
5349
|
const t = ["ASC", "DESC"];
|
|
5341
|
-
return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$
|
|
5350
|
+
return !(!e || !Array.isArray(e.attributes) || e.attributes.length === 0 || !Array.isArray(e.order) || e.attributes.length !== e.order.length || T$3(e.order, t).length > 0);
|
|
5342
5351
|
}
|
|
5343
5352
|
getProjectedData(e, t, r) {
|
|
5344
5353
|
let i = { key: r.key };
|
|
@@ -5378,14 +5387,14 @@
|
|
|
5378
5387
|
}), i;
|
|
5379
5388
|
}
|
|
5380
5389
|
};
|
|
5381
|
-
var U$1 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$
|
|
5390
|
+
var U$1 = Object.defineProperty, $$1 = Object.getOwnPropertyDescriptor, C$1 = (A2, e, t, r) => {
|
|
5382
5391
|
for (var i = $$1(e, t), n = A2.length - 1, s; n >= 0; n--)
|
|
5383
5392
|
(s = A2[n]) && (i = s(e, t, i) || i);
|
|
5384
5393
|
return i && U$1(e, t, i), i;
|
|
5385
5394
|
};
|
|
5386
5395
|
let p$3 = class p {
|
|
5387
5396
|
constructor(e, t, r) {
|
|
5388
|
-
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K$
|
|
5397
|
+
this.dcuplApi = e, this.cdRef = t, this.indicesController = r, this.itemService = new K$3(
|
|
5389
5398
|
this.dcuplApi.modelParser,
|
|
5390
5399
|
this.dcuplApi.scriptController
|
|
5391
5400
|
), this.filter = new z$1(
|
|
@@ -5779,7 +5788,7 @@
|
|
|
5779
5788
|
});
|
|
5780
5789
|
if (this.filter.cacheCtrl.has("suggestions", t))
|
|
5781
5790
|
return this.filter.cacheCtrl.get("suggestions", t);
|
|
5782
|
-
const i = x$
|
|
5791
|
+
const i = x$1.parse(e.attribute).isDeepQuery;
|
|
5783
5792
|
if (!i && !this.model.getAttribute(e.attribute))
|
|
5784
5793
|
throw new Error(`Attribute ${e.attribute} does not exist`);
|
|
5785
5794
|
if (typeof e.value == "string" && e.value.startsWith("/") && e.value.endsWith("/"))
|
|
@@ -5805,7 +5814,7 @@
|
|
|
5805
5814
|
n = this.filter.filteredData, s = this.filter.queryBuilder.getQuery();
|
|
5806
5815
|
let a = n;
|
|
5807
5816
|
if (i) {
|
|
5808
|
-
const u = x$
|
|
5817
|
+
const u = x$1.parse(e.attribute), f = this.filter.queryBuilder.getProjectionForAttributeEntries([u]), c = /* @__PURE__ */ new Map();
|
|
5809
5818
|
for (const [g2, d] of n) {
|
|
5810
5819
|
const h2 = this.filter.item.getProjectedData(f, this.model, d);
|
|
5811
5820
|
c.set(g2, h2);
|
|
@@ -5824,7 +5833,7 @@
|
|
|
5824
5833
|
});
|
|
5825
5834
|
if (this.filter.cacheCtrl.has("facets", t))
|
|
5826
5835
|
return this.filter.cacheCtrl.get("facets", t);
|
|
5827
|
-
const i = x$
|
|
5836
|
+
const i = x$1.parse(e.attribute).isDeepQuery;
|
|
5828
5837
|
let n;
|
|
5829
5838
|
if (!i) {
|
|
5830
5839
|
const a = this.model.references.get(e.attribute);
|
|
@@ -5832,7 +5841,7 @@
|
|
|
5832
5841
|
}
|
|
5833
5842
|
let s;
|
|
5834
5843
|
if (i) {
|
|
5835
|
-
const a = x$
|
|
5844
|
+
const a = x$1.parse(e.attribute), o = this.filter.queryBuilder.getProjectionForAttributeEntries([a]);
|
|
5836
5845
|
s = /* @__PURE__ */ new Map();
|
|
5837
5846
|
for (const [l, u] of this.filter.filteredData) {
|
|
5838
5847
|
const f = this.filter.item.getProjectedData(o, this.model, u);
|
|
@@ -5866,7 +5875,7 @@
|
|
|
5866
5875
|
});
|
|
5867
5876
|
if (this.filter.cacheCtrl.has("aggregation", t))
|
|
5868
5877
|
return this.filter.cacheCtrl.get("aggregation", t);
|
|
5869
|
-
const i = x$
|
|
5878
|
+
const i = x$1.parse(e.attribute);
|
|
5870
5879
|
let n = this.filter.filteredData;
|
|
5871
5880
|
if (i.isDeepQuery) {
|
|
5872
5881
|
const a = this.filter.queryBuilder.getProjectionForAttributeEntries([i]), o = /* @__PURE__ */ new Map();
|
|
@@ -5902,7 +5911,7 @@
|
|
|
5902
5911
|
...e.rows.map((l) => l.attribute),
|
|
5903
5912
|
...e.columns.map((l) => l.attribute),
|
|
5904
5913
|
...e.values.map((l) => l.attribute)
|
|
5905
|
-
].map((l) => x$
|
|
5914
|
+
].map((l) => x$1.parse(l)).filter((l) => l.isDeepQuery);
|
|
5906
5915
|
let a;
|
|
5907
5916
|
if (s.length > 0) {
|
|
5908
5917
|
const l = this.filter.queryBuilder.getProjectionForAttributeEntries(s);
|
|
@@ -5916,7 +5925,7 @@
|
|
|
5916
5925
|
return this.filter.cacheCtrl.set("pivot", t, o), o;
|
|
5917
5926
|
}
|
|
5918
5927
|
};
|
|
5919
|
-
C$
|
|
5928
|
+
C$1([
|
|
5920
5929
|
Eu({
|
|
5921
5930
|
scope: "list",
|
|
5922
5931
|
type: "fn_metadata",
|
|
@@ -5925,7 +5934,7 @@
|
|
|
5925
5934
|
connectMessageResult: true
|
|
5926
5935
|
})
|
|
5927
5936
|
], p$3.prototype, "_getMetadata");
|
|
5928
|
-
C$
|
|
5937
|
+
C$1([
|
|
5929
5938
|
Eu({
|
|
5930
5939
|
scope: "list",
|
|
5931
5940
|
type: "filter_many",
|
|
@@ -5934,7 +5943,7 @@
|
|
|
5934
5943
|
connectMessageResult: true
|
|
5935
5944
|
})
|
|
5936
5945
|
], p$3.prototype, "_getFilters");
|
|
5937
|
-
C$
|
|
5946
|
+
C$1([
|
|
5938
5947
|
Eu({
|
|
5939
5948
|
scope: "list",
|
|
5940
5949
|
type: "filter_one",
|
|
@@ -5943,20 +5952,20 @@
|
|
|
5943
5952
|
connectMessageResult: true
|
|
5944
5953
|
})
|
|
5945
5954
|
], p$3.prototype, "_getFilter");
|
|
5946
|
-
C$
|
|
5955
|
+
C$1([
|
|
5947
5956
|
Eu({
|
|
5948
5957
|
scope: "list",
|
|
5949
5958
|
type: "query_get",
|
|
5950
5959
|
cloneResult: true
|
|
5951
5960
|
})
|
|
5952
5961
|
], p$3.prototype, "getQuery");
|
|
5953
|
-
C$
|
|
5962
|
+
C$1([
|
|
5954
5963
|
Eu({
|
|
5955
5964
|
scope: "list",
|
|
5956
5965
|
type: "query_has"
|
|
5957
5966
|
})
|
|
5958
5967
|
], p$3.prototype, "hasGroupOrQueryKey");
|
|
5959
|
-
C$
|
|
5968
|
+
C$1([
|
|
5960
5969
|
Eu({
|
|
5961
5970
|
scope: "list",
|
|
5962
5971
|
type: "query_apply",
|
|
@@ -5965,7 +5974,7 @@
|
|
|
5965
5974
|
connectMessageResult: true
|
|
5966
5975
|
})
|
|
5967
5976
|
], p$3.prototype, "applyQuery");
|
|
5968
|
-
C$
|
|
5977
|
+
C$1([
|
|
5969
5978
|
Eu({
|
|
5970
5979
|
scope: "list",
|
|
5971
5980
|
type: "query_apply_options",
|
|
@@ -5974,7 +5983,7 @@
|
|
|
5974
5983
|
connectMessageResult: true
|
|
5975
5984
|
})
|
|
5976
5985
|
], p$3.prototype, "applyOptions");
|
|
5977
|
-
C$
|
|
5986
|
+
C$1([
|
|
5978
5987
|
Eu({
|
|
5979
5988
|
scope: "list",
|
|
5980
5989
|
type: "query_remove",
|
|
@@ -5983,7 +5992,7 @@
|
|
|
5983
5992
|
connectMessageResult: true
|
|
5984
5993
|
})
|
|
5985
5994
|
], p$3.prototype, "removeQuery");
|
|
5986
|
-
C$
|
|
5995
|
+
C$1([
|
|
5987
5996
|
Eu({
|
|
5988
5997
|
scope: "list",
|
|
5989
5998
|
type: "query_reset",
|
|
@@ -5992,7 +6001,7 @@
|
|
|
5992
6001
|
connectMessageResult: true
|
|
5993
6002
|
})
|
|
5994
6003
|
], p$3.prototype, "resetQuery");
|
|
5995
|
-
C$
|
|
6004
|
+
C$1([
|
|
5996
6005
|
Eu({
|
|
5997
6006
|
scope: "list",
|
|
5998
6007
|
type: "query_execute",
|
|
@@ -6001,7 +6010,7 @@
|
|
|
6001
6010
|
connectMessageResult: true
|
|
6002
6011
|
})
|
|
6003
6012
|
], p$3.prototype, "executeQuery");
|
|
6004
|
-
C$
|
|
6013
|
+
C$1([
|
|
6005
6014
|
Eu({
|
|
6006
6015
|
scope: "list",
|
|
6007
6016
|
type: "fn_groupBy",
|
|
@@ -6010,7 +6019,7 @@
|
|
|
6010
6019
|
connectMessageResult: true
|
|
6011
6020
|
})
|
|
6012
6021
|
], p$3.prototype, "_getSections");
|
|
6013
|
-
C$
|
|
6022
|
+
C$1([
|
|
6014
6023
|
Eu({
|
|
6015
6024
|
scope: "list",
|
|
6016
6025
|
type: "query_one",
|
|
@@ -6019,7 +6028,7 @@
|
|
|
6019
6028
|
connectMessageResult: true
|
|
6020
6029
|
})
|
|
6021
6030
|
], p$3.prototype, "_getItem");
|
|
6022
|
-
C$
|
|
6031
|
+
C$1([
|
|
6023
6032
|
Eu({
|
|
6024
6033
|
scope: "list",
|
|
6025
6034
|
type: "query_many",
|
|
@@ -6028,7 +6037,7 @@
|
|
|
6028
6037
|
connectMessageResult: true
|
|
6029
6038
|
})
|
|
6030
6039
|
], p$3.prototype, "_getManyItems");
|
|
6031
|
-
C$
|
|
6040
|
+
C$1([
|
|
6032
6041
|
Eu({
|
|
6033
6042
|
scope: "list",
|
|
6034
6043
|
type: "fn_suggest",
|
|
@@ -6037,7 +6046,7 @@
|
|
|
6037
6046
|
connectMessageResult: true
|
|
6038
6047
|
})
|
|
6039
6048
|
], p$3.prototype, "_getSuggestions");
|
|
6040
|
-
C$
|
|
6049
|
+
C$1([
|
|
6041
6050
|
Eu({
|
|
6042
6051
|
scope: "list",
|
|
6043
6052
|
type: "fn_facets",
|
|
@@ -6046,7 +6055,7 @@
|
|
|
6046
6055
|
connectMessageResult: true
|
|
6047
6056
|
})
|
|
6048
6057
|
], p$3.prototype, "_getFacets");
|
|
6049
|
-
C$
|
|
6058
|
+
C$1([
|
|
6050
6059
|
Eu({
|
|
6051
6060
|
scope: "list",
|
|
6052
6061
|
type: "fn_aggregate",
|
|
@@ -6055,7 +6064,7 @@
|
|
|
6055
6064
|
connectMessageResult: true
|
|
6056
6065
|
})
|
|
6057
6066
|
], p$3.prototype, "getAggregate");
|
|
6058
|
-
C$
|
|
6067
|
+
C$1([
|
|
6059
6068
|
Eu({
|
|
6060
6069
|
scope: "list",
|
|
6061
6070
|
type: "fn_pivot",
|
|
@@ -6064,7 +6073,7 @@
|
|
|
6064
6073
|
connectMessageResult: true
|
|
6065
6074
|
})
|
|
6066
6075
|
], p$3.prototype, "_getPivot");
|
|
6067
|
-
let G$
|
|
6076
|
+
let G$1 = class G extends p$3 {
|
|
6068
6077
|
constructor(e, t, r) {
|
|
6069
6078
|
super(e, t, r), this.dcuplApi = e, this.cdRef = t, this.indicesController = r;
|
|
6070
6079
|
}
|
|
@@ -6079,13 +6088,13 @@
|
|
|
6079
6088
|
this.model = e, this.filter.update(e, t, r);
|
|
6080
6089
|
}
|
|
6081
6090
|
};
|
|
6082
|
-
function
|
|
6091
|
+
function Ae$1(d, e) {
|
|
6083
6092
|
var t = -1, s = d.length;
|
|
6084
6093
|
for (e || (e = Array(s)); ++t < s; )
|
|
6085
6094
|
e[t] = d[t];
|
|
6086
6095
|
return e;
|
|
6087
6096
|
}
|
|
6088
|
-
function
|
|
6097
|
+
function De$1(d, e, t, s) {
|
|
6089
6098
|
var r = !t;
|
|
6090
6099
|
t || (t = {});
|
|
6091
6100
|
for (var i = -1, o = e.length; ++i < o; ) {
|
|
@@ -6094,110 +6103,110 @@
|
|
|
6094
6103
|
}
|
|
6095
6104
|
return t;
|
|
6096
6105
|
}
|
|
6097
|
-
function
|
|
6106
|
+
function Ce$1(d, e, t) {
|
|
6098
6107
|
if (!E$3(t))
|
|
6099
6108
|
return false;
|
|
6100
6109
|
var s = typeof e;
|
|
6101
|
-
return (s == "number" ? F$1(t) &&
|
|
6110
|
+
return (s == "number" ? F$1(t) && Ct$1(e, t.length) : s == "string" && e in t) ? Ie$2(t[e], d) : false;
|
|
6102
6111
|
}
|
|
6103
|
-
function
|
|
6112
|
+
function Ee$1(d) {
|
|
6104
6113
|
return gn$1(function(e, t) {
|
|
6105
6114
|
var s = -1, r = t.length, i = r > 1 ? t[r - 1] : void 0, o = r > 2 ? t[2] : void 0;
|
|
6106
|
-
for (i = d.length > 3 && typeof i == "function" ? (r--, i) : void 0, o &&
|
|
6115
|
+
for (i = d.length > 3 && typeof i == "function" ? (r--, i) : void 0, o && Ce$1(t[0], t[1], o) && (i = r < 3 ? void 0 : i, r = 1), e = Object(e); ++s < r; ) {
|
|
6107
6116
|
var n = t[s];
|
|
6108
6117
|
n && d(e, n, s, i);
|
|
6109
6118
|
}
|
|
6110
6119
|
return e;
|
|
6111
6120
|
});
|
|
6112
6121
|
}
|
|
6113
|
-
function
|
|
6122
|
+
function Me$1(d) {
|
|
6114
6123
|
var e = [];
|
|
6115
6124
|
if (d != null)
|
|
6116
6125
|
for (var t in Object(d))
|
|
6117
6126
|
e.push(t);
|
|
6118
6127
|
return e;
|
|
6119
6128
|
}
|
|
6120
|
-
var
|
|
6121
|
-
function
|
|
6129
|
+
var Se$1 = Object.prototype, Ie$1 = Se$1.hasOwnProperty;
|
|
6130
|
+
function xe$1(d) {
|
|
6122
6131
|
if (!E$3(d))
|
|
6123
|
-
return
|
|
6132
|
+
return Me$1(d);
|
|
6124
6133
|
var e = Dt$1(d), t = [];
|
|
6125
6134
|
for (var s in d)
|
|
6126
|
-
s == "constructor" && (e || !
|
|
6135
|
+
s == "constructor" && (e || !Ie$1.call(d, s)) || t.push(s);
|
|
6127
6136
|
return t;
|
|
6128
6137
|
}
|
|
6129
|
-
function
|
|
6130
|
-
return F$1(d) ? Yn$1(d, true) :
|
|
6138
|
+
function Q$3(d) {
|
|
6139
|
+
return F$1(d) ? Yn$1(d, true) : xe$1(d);
|
|
6131
6140
|
}
|
|
6132
|
-
var
|
|
6141
|
+
var Ge = "[object Object]", Te$1 = Function.prototype, Ke$1 = Object.prototype, z = Te$1.toString, _e$1 = Ke$1.hasOwnProperty, $e$1 = z.call(Object);
|
|
6133
6142
|
function we$1(d) {
|
|
6134
|
-
if (!T$
|
|
6143
|
+
if (!T$4(d) || N$2(d) != Ge)
|
|
6135
6144
|
return false;
|
|
6136
6145
|
var e = Ks$1(d);
|
|
6137
6146
|
if (e === null)
|
|
6138
6147
|
return true;
|
|
6139
|
-
var t =
|
|
6140
|
-
return typeof t == "function" && t instanceof t &&
|
|
6148
|
+
var t = _e$1.call(e, "constructor") && e.constructor;
|
|
6149
|
+
return typeof t == "function" && t instanceof t && z.call(t) == $e$1;
|
|
6141
6150
|
}
|
|
6142
|
-
function $
|
|
6151
|
+
function Fe$1(d, e, t, s) {
|
|
6143
6152
|
for (var r = -1, i = d == null ? 0 : d.length; ++r < i; ) {
|
|
6144
6153
|
var o = d[r];
|
|
6145
6154
|
e(s, o, t(o), d);
|
|
6146
6155
|
}
|
|
6147
6156
|
return s;
|
|
6148
6157
|
}
|
|
6149
|
-
function
|
|
6158
|
+
function qe$2(d, e, t, s) {
|
|
6150
6159
|
return Xt$1(d, function(r, i, o) {
|
|
6151
6160
|
e(s, r, t(r), o);
|
|
6152
6161
|
}), s;
|
|
6153
6162
|
}
|
|
6154
|
-
function
|
|
6163
|
+
function Oe$2(d, e) {
|
|
6155
6164
|
return function(t, s) {
|
|
6156
|
-
var r = v$
|
|
6165
|
+
var r = v$2(t) ? Fe$1 : qe$2, i = {};
|
|
6157
6166
|
return r(t, d, Y$3(s), i);
|
|
6158
6167
|
};
|
|
6159
6168
|
}
|
|
6160
|
-
function
|
|
6169
|
+
function T$2(d, e, t) {
|
|
6161
6170
|
(t !== void 0 && !Ie$2(d[e], t) || t === void 0 && !(e in d)) && fn$1(d, e, t);
|
|
6162
6171
|
}
|
|
6163
|
-
function
|
|
6172
|
+
function K$2(d, e) {
|
|
6164
6173
|
if (!(e === "constructor" && typeof d[e] == "function") && e != "__proto__")
|
|
6165
6174
|
return d[e];
|
|
6166
6175
|
}
|
|
6167
|
-
function
|
|
6168
|
-
return
|
|
6176
|
+
function Ve$2(d) {
|
|
6177
|
+
return De$1(d, Q$3(d));
|
|
6169
6178
|
}
|
|
6170
|
-
function
|
|
6171
|
-
var n =
|
|
6179
|
+
function Ue$2(d, e, t, s, r, i, o) {
|
|
6180
|
+
var n = K$2(d, t), a = K$2(e, t), l = o.get(a);
|
|
6172
6181
|
if (l) {
|
|
6173
|
-
|
|
6182
|
+
T$2(d, t, l);
|
|
6174
6183
|
return;
|
|
6175
6184
|
}
|
|
6176
6185
|
var c = i ? i(n, a, t + "", d, e, o) : void 0, f = c === void 0;
|
|
6177
6186
|
if (f) {
|
|
6178
|
-
var u = v$
|
|
6179
|
-
c = a, u || y2 || h2 ? v$
|
|
6187
|
+
var u = v$2(a), y2 = !u && ae$1(a), h2 = !u && !y2 && Nt$1(a);
|
|
6188
|
+
c = a, u || y2 || h2 ? v$2(n) ? c = n : be$1(n) ? c = Ae$1(n) : y2 ? (f = false, c = ei(a, true)) : h2 ? (f = false, c = wi(a, true)) : c = [] : we$1(a) || Qe$2(a) ? (c = n, Qe$2(n) ? c = Ve$2(n) : (!E$3(n) || _t$1(n)) && (c = Li(a))) : f = false;
|
|
6180
6189
|
}
|
|
6181
|
-
f && (o.set(a, c), r(c, a, s, i, o), o.delete(a)),
|
|
6190
|
+
f && (o.set(a, c), r(c, a, s, i, o), o.delete(a)), T$2(d, t, c);
|
|
6182
6191
|
}
|
|
6183
|
-
function
|
|
6192
|
+
function L$1(d, e, t, s, r) {
|
|
6184
6193
|
d !== e && ua(e, function(i, o) {
|
|
6185
6194
|
if (r || (r = new S$2()), E$3(i))
|
|
6186
|
-
|
|
6195
|
+
Ue$2(d, e, o, t, L$1, s, r);
|
|
6187
6196
|
else {
|
|
6188
|
-
var n = s ? s(
|
|
6189
|
-
n === void 0 && (n = i),
|
|
6197
|
+
var n = s ? s(K$2(d, o), i, o + "", d, e, r) : void 0;
|
|
6198
|
+
n === void 0 && (n = i), T$2(d, o, n);
|
|
6190
6199
|
}
|
|
6191
|
-
},
|
|
6200
|
+
}, Q$3);
|
|
6192
6201
|
}
|
|
6193
|
-
var
|
|
6194
|
-
|
|
6195
|
-
}),
|
|
6196
|
-
function
|
|
6197
|
-
return d === true || d === false || T$
|
|
6202
|
+
var Be$1 = Object.prototype, Ne$1 = Be$1.hasOwnProperty, We$1 = Oe$2(function(d, e, t) {
|
|
6203
|
+
Ne$1.call(d, t) ? d[t].push(e) : fn$1(d, t, [e]);
|
|
6204
|
+
}), Qe$1 = "[object Boolean]";
|
|
6205
|
+
function ze$1(d) {
|
|
6206
|
+
return d === true || d === false || T$4(d) && N$2(d) == Qe$1;
|
|
6198
6207
|
}
|
|
6199
|
-
var
|
|
6200
|
-
|
|
6208
|
+
var A$1 = Ee$1(function(d, e, t) {
|
|
6209
|
+
L$1(d, e, t);
|
|
6201
6210
|
});
|
|
6202
6211
|
const p$2 = (d, e, t) => ({
|
|
6203
6212
|
title: d,
|
|
@@ -6206,7 +6215,7 @@
|
|
|
6206
6215
|
errorType: "InvalidModelDefinition",
|
|
6207
6216
|
attribute: e,
|
|
6208
6217
|
description: t
|
|
6209
|
-
}),
|
|
6218
|
+
}), Le$1 = (d) => {
|
|
6210
6219
|
const e = [
|
|
6211
6220
|
"any",
|
|
6212
6221
|
"Array<date>",
|
|
@@ -6232,7 +6241,7 @@
|
|
|
6232
6241
|
}
|
|
6233
6242
|
if ("expression" in d && typeof d.expression != "string")
|
|
6234
6243
|
return p$2("Invalid Property", d.key, "Expression is invalid");
|
|
6235
|
-
},
|
|
6244
|
+
}, je$1 = (d) => {
|
|
6236
6245
|
const e = ["multiValued", "singleValued"];
|
|
6237
6246
|
if (!d.key)
|
|
6238
6247
|
return p$2("Invalid Reference", d.key, "Reference key is missing");
|
|
@@ -6254,7 +6263,7 @@
|
|
|
6254
6263
|
}
|
|
6255
6264
|
if ("groupBy" in d && !d.groupBy.reference)
|
|
6256
6265
|
return p$2("Invalid Reference", d.key, "Grouped Reference reference is missing");
|
|
6257
|
-
},
|
|
6266
|
+
}, He$1 = (d) => {
|
|
6258
6267
|
if (typeof d.key != "string" || d.key.length === 0)
|
|
6259
6268
|
throw new Error("Invalid Model: key must be a non-empty string");
|
|
6260
6269
|
if (typeof d.keyProperty < "u") {
|
|
@@ -6284,7 +6293,7 @@
|
|
|
6284
6293
|
if (d.references && !Array.isArray(d.references))
|
|
6285
6294
|
throw new Error("Invalid Model: references must be an array");
|
|
6286
6295
|
return true;
|
|
6287
|
-
},
|
|
6296
|
+
}, Je$1 = (d, e) => {
|
|
6288
6297
|
const t = [];
|
|
6289
6298
|
return d.references.forEach((s) => {
|
|
6290
6299
|
e.has(s.model) || t.push({
|
|
@@ -6295,11 +6304,11 @@
|
|
|
6295
6304
|
attribute: s.key,
|
|
6296
6305
|
model: d.key,
|
|
6297
6306
|
description: `Referenced model ${s.model} does not exist`
|
|
6298
|
-
}), "derive" in s && t.push(...
|
|
6307
|
+
}), "derive" in s && t.push(...Ye$1(s, d, e)), "resolve" in s && t.push(...Ze$1(s, d, e)), "groupBy" in s && t.push(...Xe$1(s, d));
|
|
6299
6308
|
}), d.properties.forEach((s) => {
|
|
6300
|
-
"derive" in s && t.push(...
|
|
6309
|
+
"derive" in s && t.push(...et$1(s, d, e)), "expression" in s && t.push(...tt$1(s, d));
|
|
6301
6310
|
}), t;
|
|
6302
|
-
},
|
|
6311
|
+
}, Ye$1 = (d, e, t) => {
|
|
6303
6312
|
const s = [], r = e.references.get(d.derive.localReference);
|
|
6304
6313
|
if (!r)
|
|
6305
6314
|
return s.push({
|
|
@@ -6321,7 +6330,7 @@
|
|
|
6321
6330
|
model: e.key,
|
|
6322
6331
|
description: `Remote Reference ${d.derive.remoteReference} does not exist in model ${i.key}`
|
|
6323
6332
|
})), s;
|
|
6324
|
-
},
|
|
6333
|
+
}, Ze$1 = (d, e, t) => {
|
|
6325
6334
|
const s = [], r = t.get(d.resolve.model);
|
|
6326
6335
|
return r ? (r.references.get(d.resolve.reference) || s.push({
|
|
6327
6336
|
title: "Missing Reference",
|
|
@@ -6340,7 +6349,7 @@
|
|
|
6340
6349
|
model: e.key,
|
|
6341
6350
|
description: `Referenced model ${d.model} does not exist`
|
|
6342
6351
|
}), s);
|
|
6343
|
-
},
|
|
6352
|
+
}, Xe$1 = (d, e) => {
|
|
6344
6353
|
const t = [];
|
|
6345
6354
|
return e.references.get(d.groupBy.reference) || t.push({
|
|
6346
6355
|
title: "Missing Reference",
|
|
@@ -6351,7 +6360,7 @@
|
|
|
6351
6360
|
model: e.key,
|
|
6352
6361
|
description: `Resolved Reference ${d.groupBy.reference} does not exist in model ${e.key}`
|
|
6353
6362
|
}), t;
|
|
6354
|
-
},
|
|
6363
|
+
}, et$1 = (d, e, t) => {
|
|
6355
6364
|
const s = [], r = e.references.get(d.derive.localReference);
|
|
6356
6365
|
if (!r)
|
|
6357
6366
|
return s.push({
|
|
@@ -6378,9 +6387,9 @@
|
|
|
6378
6387
|
});
|
|
6379
6388
|
}
|
|
6380
6389
|
return s;
|
|
6381
|
-
},
|
|
6390
|
+
}, tt$1 = (d, e) => {
|
|
6382
6391
|
const t = [];
|
|
6383
|
-
return
|
|
6392
|
+
return Lu(d.expression).variables.forEach((r) => {
|
|
6384
6393
|
r.name === "key" || r.name.endsWith(".key") || !e.properties.get(r.name) && !e.references.get(r.name) && t.push({
|
|
6385
6394
|
title: "Unknown Expression Variable",
|
|
6386
6395
|
type: "model",
|
|
@@ -6391,29 +6400,29 @@
|
|
|
6391
6400
|
description: `Expression Variable ${r.name} not found in expression ${d.key} in ${e.key}`
|
|
6392
6401
|
});
|
|
6393
6402
|
}), t;
|
|
6394
|
-
},
|
|
6395
|
-
function
|
|
6403
|
+
}, v$1 = "::";
|
|
6404
|
+
function rt$1(d) {
|
|
6396
6405
|
return typeof d == "string" ? [d] : Array.isArray(d) ? d : [];
|
|
6397
6406
|
}
|
|
6398
|
-
function
|
|
6407
|
+
function j$1(d, e, t = v$1) {
|
|
6399
6408
|
return typeof e == "string" ? String(d[e]) : e.length === 1 ? String(d[e[0]]) : e.map((s) => String(d[s])).join(t);
|
|
6400
6409
|
}
|
|
6401
|
-
function
|
|
6410
|
+
function S$1(d, e = v$1) {
|
|
6402
6411
|
if (d !== void 0)
|
|
6403
6412
|
return typeof d == "string" ? d : d.join(e);
|
|
6404
6413
|
}
|
|
6405
|
-
const
|
|
6414
|
+
const st$1 = {
|
|
6406
6415
|
REF_VALUE: "_dcupl_ref_"
|
|
6407
|
-
},
|
|
6416
|
+
}, H$1 = {
|
|
6408
6417
|
required: true,
|
|
6409
6418
|
forceStrictDataType: false,
|
|
6410
6419
|
nullable: false,
|
|
6411
6420
|
validatorHandling: "loose"
|
|
6412
|
-
},
|
|
6421
|
+
}, V$1 = {
|
|
6413
6422
|
enabled: true,
|
|
6414
|
-
attributes:
|
|
6423
|
+
attributes: H$1
|
|
6415
6424
|
};
|
|
6416
|
-
let
|
|
6425
|
+
let it$1 = class it {
|
|
6417
6426
|
constructor(e) {
|
|
6418
6427
|
this.modelParser = e, this.cdRef = e.cdRef;
|
|
6419
6428
|
}
|
|
@@ -6433,7 +6442,7 @@
|
|
|
6433
6442
|
keyPropertySeparator;
|
|
6434
6443
|
valueMappings = [];
|
|
6435
6444
|
meta;
|
|
6436
|
-
qualityConfig =
|
|
6445
|
+
qualityConfig = V$1;
|
|
6437
6446
|
indicesController = new hu();
|
|
6438
6447
|
cdRef;
|
|
6439
6448
|
// #120 Performance optimization: Reverse index for grouped references
|
|
@@ -6441,12 +6450,12 @@
|
|
|
6441
6450
|
// Enables O(1) lookup instead of O(n·v²) nested loops
|
|
6442
6451
|
groupedRefReverseIndex = /* @__PURE__ */ new Map();
|
|
6443
6452
|
init(e) {
|
|
6444
|
-
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig =
|
|
6453
|
+
this.key = e.key, this.initialDefinition = e, e.quality && (this.qualityConfig = A$1({}, V$1, e.quality));
|
|
6445
6454
|
}
|
|
6446
6455
|
applyPropertiesAndReferences(e) {
|
|
6447
6456
|
const t = /* @__PURE__ */ new Set();
|
|
6448
6457
|
e.properties?.map((s) => {
|
|
6449
|
-
const r =
|
|
6458
|
+
const r = Le$1(s);
|
|
6450
6459
|
if (r)
|
|
6451
6460
|
r.model = this.key, this.setError(r);
|
|
6452
6461
|
else {
|
|
@@ -6465,12 +6474,12 @@
|
|
|
6465
6474
|
t.add(s.key), this.setAttributeQualityConfig(s), this.properties.set(s.key, s);
|
|
6466
6475
|
}
|
|
6467
6476
|
}), e.references?.map((s) => {
|
|
6468
|
-
const r =
|
|
6477
|
+
const r = je$1(s);
|
|
6469
6478
|
r ? (r.model = this.key, this.setError(r)) : (s.validity = s.validity || "loose", this.setAttributeQualityConfig(s), this.references.set(s.key, s));
|
|
6470
6479
|
}), this.supportsAutoCreation = !!e.supportsAutoCreation, this.keyProperty = e.keyProperty || "key", this.keyPropertySeparator = e.keyPropertySeparator, this.autoGenerateKey = !!e.autoGenerateKey, this.autoGenerateProperties = !!e.autoGenerateProperties, this.autoGeneratePropertiesOption = e.autoGenerateProperties ?? false, this.valueMappings = e.valueMappings || [], this.meta = e.meta;
|
|
6471
6480
|
}
|
|
6472
6481
|
setAttributeQualityConfig(e) {
|
|
6473
|
-
const t = this.qualityConfig.attributes, s =
|
|
6482
|
+
const t = this.qualityConfig.attributes, s = A$1({}, H$1, t, e.quality);
|
|
6474
6483
|
this.attributeQualityConfigs.set(e.key, s);
|
|
6475
6484
|
}
|
|
6476
6485
|
getModelDefinition() {
|
|
@@ -6495,7 +6504,7 @@
|
|
|
6495
6504
|
if (r.key === "key")
|
|
6496
6505
|
return;
|
|
6497
6506
|
const i = e.keyProperty ?? this.keyProperty;
|
|
6498
|
-
|
|
6507
|
+
rt$1(i).some((n) => n && n !== "key" && n === r.key) && (r.type = "string"), r.filter = true, this.properties.set(r.key, r);
|
|
6499
6508
|
}
|
|
6500
6509
|
});
|
|
6501
6510
|
}
|
|
@@ -6759,15 +6768,15 @@
|
|
|
6759
6768
|
}
|
|
6760
6769
|
processJSONProperty(e, t, s) {
|
|
6761
6770
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6762
|
-
if (!T$
|
|
6771
|
+
if (!T$4(t)) {
|
|
6763
6772
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6764
6773
|
return;
|
|
6765
6774
|
}
|
|
6766
6775
|
return t;
|
|
6767
6776
|
}
|
|
6768
|
-
if (T$
|
|
6777
|
+
if (T$4(t))
|
|
6769
6778
|
return t;
|
|
6770
|
-
if (!T$
|
|
6779
|
+
if (!T$4(t) && typeof t == "string")
|
|
6771
6780
|
try {
|
|
6772
6781
|
return JSON.parse(t);
|
|
6773
6782
|
} catch {
|
|
@@ -6777,7 +6786,7 @@
|
|
|
6777
6786
|
}
|
|
6778
6787
|
processBooleanProperty(e, t, s) {
|
|
6779
6788
|
if (this.attributeQualityConfigs.get(e.key)?.forceStrictDataType) {
|
|
6780
|
-
if (!
|
|
6789
|
+
if (!ze$1(t)) {
|
|
6781
6790
|
this.setError(this.getWrongDataTypeError(e, t, s));
|
|
6782
6791
|
return;
|
|
6783
6792
|
}
|
|
@@ -6897,7 +6906,7 @@
|
|
|
6897
6906
|
r && r.sourceColumns.length > 0 && this.emitUnknownColumnErrors(e, r.sourceColumns, t, s, i);
|
|
6898
6907
|
for (let o of e.data) {
|
|
6899
6908
|
if (o.key === void 0 || o.key === null) {
|
|
6900
|
-
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ??
|
|
6909
|
+
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? v$1, f = S$1(l, c);
|
|
6901
6910
|
this.setError({
|
|
6902
6911
|
title: "Missing Key",
|
|
6903
6912
|
type: "model",
|
|
@@ -6915,7 +6924,7 @@
|
|
|
6915
6924
|
key: String(o.key)
|
|
6916
6925
|
};
|
|
6917
6926
|
else if (e.type === "set") {
|
|
6918
|
-
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ??
|
|
6927
|
+
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? v$1, f = S$1(l, c), u = String(o.key);
|
|
6919
6928
|
this.setError({
|
|
6920
6929
|
title: "Non Unique Key",
|
|
6921
6930
|
type: "model",
|
|
@@ -6999,7 +7008,7 @@
|
|
|
6999
7008
|
const r = JSON.stringify(s.query);
|
|
7000
7009
|
for (let i of e.data) {
|
|
7001
7010
|
let o = this.data.get(String(i.key));
|
|
7002
|
-
const n =
|
|
7011
|
+
const n = Fu(r, { ...i }), a = JSON.parse(n), l = new ar$1();
|
|
7003
7012
|
l.init({ modelKey: s.model }), l.applyQuery(a, { mode: "set" }), a.projection || l.applyOptions({ projection: { $: false } });
|
|
7004
7013
|
const c = l.getQuery();
|
|
7005
7014
|
if (c.queries.length > 0) {
|
|
@@ -7042,20 +7051,16 @@
|
|
|
7042
7051
|
if (t === null)
|
|
7043
7052
|
return { key: "null" };
|
|
7044
7053
|
if (typeof t == "object") {
|
|
7045
|
-
const s = e.keyProperty, r = e.keyPropertySeparator ??
|
|
7054
|
+
const s = e.keyProperty, r = e.keyPropertySeparator ?? v$1;
|
|
7046
7055
|
let i;
|
|
7047
|
-
e.autoGenerateKey ? i = Za() : typeof s == "string" || Array.isArray(s) && s.length > 0 ? i =
|
|
7056
|
+
e.autoGenerateKey ? i = Za() : typeof s == "string" || Array.isArray(s) && s.length > 0 ? i = j$1(t, s, r) : i = String(t.key), e.data.set(i, { key: i }), t.key = i;
|
|
7048
7057
|
const o = { model: e.key, data: [t] };
|
|
7049
|
-
return
|
|
7050
|
-
e.addContainer(o);
|
|
7051
|
-
}, 0), { key: i };
|
|
7058
|
+
return Pu().then(() => e.addContainer(o)), { key: i };
|
|
7052
7059
|
}
|
|
7053
7060
|
if (typeof t == "string") {
|
|
7054
7061
|
e.data.set(t, { key: t });
|
|
7055
7062
|
const s = { model: e.key, data: [{ key: t }] };
|
|
7056
|
-
|
|
7057
|
-
e.addContainer(s);
|
|
7058
|
-
}, 0);
|
|
7063
|
+
Pu().then(() => e.addContainer(s));
|
|
7059
7064
|
}
|
|
7060
7065
|
return { key: String(t) };
|
|
7061
7066
|
}
|
|
@@ -7164,7 +7169,7 @@
|
|
|
7164
7169
|
}), t.length > 0 && t.forEach((l) => {
|
|
7165
7170
|
this.handleDerivedProperties(l, n);
|
|
7166
7171
|
}), s.length > 0 && s.forEach((l) => {
|
|
7167
|
-
const c = this.createExpressionContext(n), f =
|
|
7172
|
+
const c = this.createExpressionContext(n), f = Fu(l.expression, c);
|
|
7168
7173
|
n[l.key] = f;
|
|
7169
7174
|
});
|
|
7170
7175
|
const a = String(n.key);
|
|
@@ -7440,7 +7445,7 @@
|
|
|
7440
7445
|
return this.data.get(e);
|
|
7441
7446
|
}
|
|
7442
7447
|
setRefValue(e, t) {
|
|
7443
|
-
this.modelParser.initOptions.referenceMetadata?.enabled && Object.defineProperty(e,
|
|
7448
|
+
this.modelParser.initOptions.referenceMetadata?.enabled && Object.defineProperty(e, st$1.REF_VALUE, {
|
|
7444
7449
|
value: t,
|
|
7445
7450
|
enumerable: true,
|
|
7446
7451
|
writable: false,
|
|
@@ -7458,7 +7463,7 @@
|
|
|
7458
7463
|
const s = this.getBasicProperties().filter((o) => t.has(o.key)), r = this.getBasicReferences().filter((o) => t.has(o.key)), i = this.modelParser.qualityController.dcupl?.getContainerSourceMetadata(e)?.origin ?? "inline";
|
|
7459
7464
|
for (let o of e.data) {
|
|
7460
7465
|
if (o.key === void 0 || o.key === null) {
|
|
7461
|
-
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ??
|
|
7466
|
+
const l = e.keyProperty ?? this.keyProperty, c = e.keyPropertySeparator ?? this.keyPropertySeparator ?? v$1, f = S$1(l, c);
|
|
7462
7467
|
this.setError({
|
|
7463
7468
|
title: "Missing Key",
|
|
7464
7469
|
type: "model",
|
|
@@ -7551,7 +7556,7 @@
|
|
|
7551
7556
|
for (let o of e.data) {
|
|
7552
7557
|
let n = this.data.get(String(o.key));
|
|
7553
7558
|
if (!n) continue;
|
|
7554
|
-
const a =
|
|
7559
|
+
const a = Fu(i, { ...o }), l = JSON.parse(a), c = new ar$1();
|
|
7555
7560
|
c.init({ modelKey: r.model }), c.applyQuery(l, { mode: "set" }), l.projection || c.applyOptions({ projection: { $: false } });
|
|
7556
7561
|
const f = c.getQuery();
|
|
7557
7562
|
if (f.queries.length > 0) {
|
|
@@ -7622,7 +7627,7 @@
|
|
|
7622
7627
|
}), s.forEach((c) => {
|
|
7623
7628
|
this.handleDerivedProperties(c, a);
|
|
7624
7629
|
}), o.forEach((c) => {
|
|
7625
|
-
const f = this.createExpressionContext(a), u =
|
|
7630
|
+
const f = this.createExpressionContext(a), u = Fu(c.expression, f);
|
|
7626
7631
|
a[c.key] = u;
|
|
7627
7632
|
});
|
|
7628
7633
|
const l = String(a.key);
|
|
@@ -7649,7 +7654,7 @@
|
|
|
7649
7654
|
}
|
|
7650
7655
|
}
|
|
7651
7656
|
};
|
|
7652
|
-
let
|
|
7657
|
+
let ot$2 = class ot {
|
|
7653
7658
|
changedAttributes;
|
|
7654
7659
|
// modelKey → Set<attributeKeys>
|
|
7655
7660
|
changedItems;
|
|
@@ -7847,7 +7852,7 @@
|
|
|
7847
7852
|
};
|
|
7848
7853
|
}
|
|
7849
7854
|
};
|
|
7850
|
-
let
|
|
7855
|
+
let nt$1 = class nt {
|
|
7851
7856
|
metrics = [];
|
|
7852
7857
|
enabled = false;
|
|
7853
7858
|
constructor() {
|
|
@@ -7922,24 +7927,24 @@
|
|
|
7922
7927
|
return this.metrics.filter((s) => s.timestamp >= e && s.timestamp <= t);
|
|
7923
7928
|
}
|
|
7924
7929
|
};
|
|
7925
|
-
function
|
|
7930
|
+
function at$1(d) {
|
|
7926
7931
|
return "query" in d;
|
|
7927
7932
|
}
|
|
7928
|
-
function
|
|
7933
|
+
function I(d) {
|
|
7929
7934
|
return "resolve" in d;
|
|
7930
7935
|
}
|
|
7931
|
-
function
|
|
7936
|
+
function dt(d) {
|
|
7932
7937
|
return "derive" in d;
|
|
7933
7938
|
}
|
|
7934
|
-
function
|
|
7939
|
+
function lt$1(d) {
|
|
7935
7940
|
return "groupBy" in d;
|
|
7936
7941
|
}
|
|
7937
|
-
var
|
|
7938
|
-
for (var r =
|
|
7942
|
+
var ct$1 = Object.defineProperty, ft$1 = Object.getOwnPropertyDescriptor, E$2 = (d, e, t, s) => {
|
|
7943
|
+
for (var r = ft$1(e, t), i = d.length - 1, o; i >= 0; i--)
|
|
7939
7944
|
(o = d[i]) && (r = o(e, t, r) || r);
|
|
7940
|
-
return r &&
|
|
7945
|
+
return r && ct$1(e, t, r), r;
|
|
7941
7946
|
};
|
|
7942
|
-
let
|
|
7947
|
+
let M$1 = class M {
|
|
7943
7948
|
constructor(e, t, s) {
|
|
7944
7949
|
this.cdRef = e, this.qualityController = t, this.dcuplInstance = s, this.qualityController.modelParser = this;
|
|
7945
7950
|
}
|
|
@@ -7956,8 +7961,8 @@
|
|
|
7956
7961
|
keyedContainers = /* @__PURE__ */ new WeakSet();
|
|
7957
7962
|
dependencyGraph;
|
|
7958
7963
|
attributeDependencyGraph;
|
|
7959
|
-
changeTracker = new
|
|
7960
|
-
partialUpdateMetrics = new
|
|
7964
|
+
changeTracker = new ot$2();
|
|
7965
|
+
partialUpdateMetrics = new nt$1();
|
|
7961
7966
|
views = /* @__PURE__ */ new Map();
|
|
7962
7967
|
models = /* @__PURE__ */ new Map();
|
|
7963
7968
|
initOptions;
|
|
@@ -7973,14 +7978,14 @@
|
|
|
7973
7978
|
if (this.models.has(e.key))
|
|
7974
7979
|
this.models.get(e.key).resetData(), this.models.get(e.key).resetIndexMap(), this.models.get(e.key).applyPropertiesAndReferences(e);
|
|
7975
7980
|
else {
|
|
7976
|
-
const t = new
|
|
7981
|
+
const t = new it$1(this);
|
|
7977
7982
|
t.init(e), t.applyPropertiesAndReferences(e), this.models.set(t.key, t);
|
|
7978
7983
|
}
|
|
7979
7984
|
});
|
|
7980
7985
|
}
|
|
7981
7986
|
validateModels() {
|
|
7982
7987
|
this.models.forEach((e) => {
|
|
7983
|
-
e.qualityConfig.enabled === true &&
|
|
7988
|
+
e.qualityConfig.enabled === true && Je$1(e, this.models).forEach((s) => {
|
|
7984
7989
|
this.setError(s, e);
|
|
7985
7990
|
});
|
|
7986
7991
|
});
|
|
@@ -8016,7 +8021,7 @@ Models cannot have circular references as this leads to unpredictable behavior d
|
|
|
8016
8021
|
* This enables partial updates by tracking which attributes depend on others.
|
|
8017
8022
|
*/
|
|
8018
8023
|
buildAttributeDependencyGraph() {
|
|
8019
|
-
this.attributeDependencyGraph = new
|
|
8024
|
+
this.attributeDependencyGraph = new Cu(), this.models.forEach((e) => {
|
|
8020
8025
|
const t = e.key;
|
|
8021
8026
|
e.properties.forEach((s, r) => {
|
|
8022
8027
|
if (s.expression)
|
|
@@ -8033,13 +8038,13 @@ Models cannot have circular references as this leads to unpredictable behavior d
|
|
|
8033
8038
|
this.attributeDependencyGraph.addAttribute(i);
|
|
8034
8039
|
}
|
|
8035
8040
|
}), e.references.forEach((s, r) => {
|
|
8036
|
-
if (
|
|
8041
|
+
if (at$1(s))
|
|
8037
8042
|
this.processQueryReference(t, r, s.query);
|
|
8038
|
-
else if (
|
|
8043
|
+
else if (I(s))
|
|
8039
8044
|
this.processResolvedReference(t, r, s.resolve);
|
|
8040
|
-
else if (at$1(s))
|
|
8041
|
-
this.processDerivedReference(t, r, s.derive);
|
|
8042
8045
|
else if (dt(s))
|
|
8046
|
+
this.processDerivedReference(t, r, s.derive);
|
|
8047
|
+
else if (lt$1(s))
|
|
8043
8048
|
this.processGroupedReference(t, r, s.groupBy);
|
|
8044
8049
|
else {
|
|
8045
8050
|
const i = {
|
|
@@ -8088,7 +8093,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8088
8093
|
processingStep: 3
|
|
8089
8094
|
};
|
|
8090
8095
|
this.attributeDependencyGraph.addAttribute(r);
|
|
8091
|
-
const { variables: i } =
|
|
8096
|
+
const { variables: i } = Lu(s);
|
|
8092
8097
|
i.forEach((o) => {
|
|
8093
8098
|
const a = o.name.split("."), l = this.models.get(e);
|
|
8094
8099
|
if (!l) return;
|
|
@@ -8111,17 +8116,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8111
8116
|
if (this.attributeDependencyGraph.addAttributeDependency(r, f), a.length > 1) {
|
|
8112
8117
|
let u = l, y2 = e;
|
|
8113
8118
|
for (let h2 = 0; h2 < a.length - 1; h2++) {
|
|
8114
|
-
const
|
|
8115
|
-
if (
|
|
8116
|
-
const
|
|
8117
|
-
if (
|
|
8118
|
-
const
|
|
8119
|
+
const b2 = a[h2], k2 = u.references.get(b2);
|
|
8120
|
+
if (k2) {
|
|
8121
|
+
const $2 = this.models.get(k2.model);
|
|
8122
|
+
if ($2 && (u = $2, y2 = k2.model, h2 === a.length - 2)) {
|
|
8123
|
+
const J2 = a[a.length - 1], Y2 = {
|
|
8119
8124
|
modelKey: y2,
|
|
8120
|
-
attributeKey:
|
|
8125
|
+
attributeKey: J2,
|
|
8121
8126
|
type: "property",
|
|
8122
8127
|
processingStep: 1
|
|
8123
8128
|
};
|
|
8124
|
-
this.attributeDependencyGraph.addAttributeDependency(r,
|
|
8129
|
+
this.attributeDependencyGraph.addAttributeDependency(r, Y2);
|
|
8125
8130
|
}
|
|
8126
8131
|
}
|
|
8127
8132
|
}
|
|
@@ -8176,7 +8181,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8176
8181
|
};
|
|
8177
8182
|
this.attributeDependencyGraph.addAttribute(r);
|
|
8178
8183
|
try {
|
|
8179
|
-
const i = JSON.stringify(s), { variables: o } =
|
|
8184
|
+
const i = JSON.stringify(s), { variables: o } = Lu(i);
|
|
8180
8185
|
o.forEach((n) => {
|
|
8181
8186
|
const a = n.name, l = this.models.get(e);
|
|
8182
8187
|
if (l) {
|
|
@@ -8374,7 +8379,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8374
8379
|
addModel(e) {
|
|
8375
8380
|
if (e?.quality?.enabled !== false)
|
|
8376
8381
|
try {
|
|
8377
|
-
|
|
8382
|
+
He$1(e);
|
|
8378
8383
|
} catch (t) {
|
|
8379
8384
|
this.qualityController.enabled && this.qualityController.setError({
|
|
8380
8385
|
title: "Invalid Model Definition",
|
|
@@ -8433,7 +8438,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8433
8438
|
this.qualityController.enabled && t.qualityConfig.enabled === true && this.qualityController.setError(e);
|
|
8434
8439
|
}
|
|
8435
8440
|
getMergedContainers(e) {
|
|
8436
|
-
const s = this.handleAlternativeKey(e).filter((o) => !o.placeholderUid), r = [], i =
|
|
8441
|
+
const s = this.handleAlternativeKey(e).filter((o) => !o.placeholderUid), r = [], i = We$1(s, "model");
|
|
8437
8442
|
for (const o in i) {
|
|
8438
8443
|
const n = i[o];
|
|
8439
8444
|
if (n.length > 1) {
|
|
@@ -8478,7 +8483,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8478
8483
|
r.data.forEach((i) => {
|
|
8479
8484
|
if (t.has(i.key)) {
|
|
8480
8485
|
let n = t.get(i.key);
|
|
8481
|
-
n =
|
|
8486
|
+
n = A$1(n, i), t.set(i.key, n);
|
|
8482
8487
|
} else
|
|
8483
8488
|
t.set(i.key, i);
|
|
8484
8489
|
});
|
|
@@ -8487,7 +8492,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8487
8492
|
r.data.forEach((i) => {
|
|
8488
8493
|
if (t.has(i.key)) {
|
|
8489
8494
|
let n = t.get(i.key);
|
|
8490
|
-
n =
|
|
8495
|
+
n = A$1(n, i), t.set(i.key, n);
|
|
8491
8496
|
}
|
|
8492
8497
|
});
|
|
8493
8498
|
break;
|
|
@@ -8638,11 +8643,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8638
8643
|
if (c)
|
|
8639
8644
|
for (const f of c) {
|
|
8640
8645
|
const u = l.references.get(f);
|
|
8641
|
-
if (u &&
|
|
8642
|
-
const y2 = u.resolve.model, h2 = u.resolve.reference,
|
|
8643
|
-
if (
|
|
8644
|
-
const
|
|
8645
|
-
|
|
8646
|
+
if (u && I(u)) {
|
|
8647
|
+
const y2 = u.resolve.model, h2 = u.resolve.reference, b2 = this.models.get(y2);
|
|
8648
|
+
if (b2) {
|
|
8649
|
+
const k2 = b2.references.get(h2);
|
|
8650
|
+
k2 && I(k2) && t.get(a).add(y2);
|
|
8646
8651
|
}
|
|
8647
8652
|
}
|
|
8648
8653
|
}
|
|
@@ -8717,9 +8722,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8717
8722
|
return e.forEach((t) => {
|
|
8718
8723
|
if (this.keyedContainers.has(t))
|
|
8719
8724
|
return;
|
|
8720
|
-
const s = this.models.get(t.model), r = t.keyProperty ?? s?.keyProperty, i = t.keyPropertySeparator ?? s?.keyPropertySeparator ??
|
|
8725
|
+
const s = this.models.get(t.model), r = t.keyProperty ?? s?.keyProperty, i = t.keyPropertySeparator ?? s?.keyPropertySeparator ?? v$1, o = t.autoGenerateKey || s?.autoGenerateKey;
|
|
8721
8726
|
(typeof r == "string" ? r !== "" && r !== "key" : Array.isArray(r) && r.length > 0) ? t.data.forEach((a) => {
|
|
8722
|
-
a.key =
|
|
8727
|
+
a.key = j$1(a, r, i);
|
|
8723
8728
|
}) : o && t.data.forEach((a) => {
|
|
8724
8729
|
a.key || (a.key = Za());
|
|
8725
8730
|
}), this.keyedContainers.add(t);
|
|
@@ -8747,7 +8752,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8747
8752
|
detail: {
|
|
8748
8753
|
model: i.model
|
|
8749
8754
|
}
|
|
8750
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8755
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8751
8756
|
}
|
|
8752
8757
|
for (let r = 0; r < e.length; r++) {
|
|
8753
8758
|
const i = e[r], o = this.models.get(i.model), n = Za();
|
|
@@ -8765,7 +8770,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8765
8770
|
detail: {
|
|
8766
8771
|
model: i.model
|
|
8767
8772
|
}
|
|
8768
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8773
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8769
8774
|
}
|
|
8770
8775
|
for (let r = 0; r < e.length; r++) {
|
|
8771
8776
|
const i = e[r], o = this.models.get(i.model), n = Za();
|
|
@@ -8783,7 +8788,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8783
8788
|
detail: {
|
|
8784
8789
|
model: i.model
|
|
8785
8790
|
}
|
|
8786
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8791
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8787
8792
|
}
|
|
8788
8793
|
for (let r = 0; r < e.length; r++) {
|
|
8789
8794
|
const i = e[r], o = this.models.get(i.model);
|
|
@@ -8808,7 +8813,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8808
8813
|
}
|
|
8809
8814
|
}), this.qualityController.enabled && o.qualityConfig.enabled === true && this.qualityController.validateAttributesAfterInitialization(o).forEach((l) => {
|
|
8810
8815
|
this.setError(l, o);
|
|
8811
|
-
}), s ? t > 0 && r > 0 && r % t === 0 && await
|
|
8816
|
+
}), s ? t > 0 && r > 0 && r % t === 0 && await Pu() : await Pu();
|
|
8812
8817
|
}
|
|
8813
8818
|
}
|
|
8814
8819
|
_getModelKeys() {
|
|
@@ -8829,44 +8834,44 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8829
8834
|
return e;
|
|
8830
8835
|
}
|
|
8831
8836
|
};
|
|
8832
|
-
|
|
8837
|
+
E$2([
|
|
8833
8838
|
Eu({
|
|
8834
8839
|
scope: "global",
|
|
8835
8840
|
type: "model_add",
|
|
8836
8841
|
connectMessage: true
|
|
8837
8842
|
})
|
|
8838
|
-
],
|
|
8839
|
-
|
|
8843
|
+
], M$1.prototype, "addModel");
|
|
8844
|
+
E$2([
|
|
8840
8845
|
Eu({
|
|
8841
8846
|
scope: "global",
|
|
8842
8847
|
type: "data_change",
|
|
8843
8848
|
connectMessage: true
|
|
8844
8849
|
})
|
|
8845
|
-
],
|
|
8846
|
-
|
|
8850
|
+
], M$1.prototype, "addData");
|
|
8851
|
+
E$2([
|
|
8847
8852
|
Eu({
|
|
8848
8853
|
scope: "global",
|
|
8849
8854
|
type: "view_add",
|
|
8850
8855
|
connectMessage: true
|
|
8851
8856
|
})
|
|
8852
|
-
],
|
|
8853
|
-
|
|
8857
|
+
], M$1.prototype, "addView");
|
|
8858
|
+
E$2([
|
|
8854
8859
|
Eu({
|
|
8855
8860
|
scope: "global",
|
|
8856
8861
|
type: "dcupl_handle_datacontainer"
|
|
8857
8862
|
})
|
|
8858
|
-
],
|
|
8863
|
+
], M$1.prototype, "handleDataContainer");
|
|
8859
8864
|
function q$1(u, e) {
|
|
8860
|
-
return
|
|
8865
|
+
return z$2(e, function(t) {
|
|
8861
8866
|
return u[t];
|
|
8862
8867
|
});
|
|
8863
8868
|
}
|
|
8864
|
-
function B$
|
|
8869
|
+
function B$1(u) {
|
|
8865
8870
|
return u == null ? [] : q$1(u, le$1(u));
|
|
8866
8871
|
}
|
|
8867
8872
|
var W$1 = Math.max;
|
|
8868
|
-
function Q$
|
|
8869
|
-
u = F$1(u) ? u : B$
|
|
8873
|
+
function Q$2(u, e, t, r) {
|
|
8874
|
+
u = F$1(u) ? u : B$1(u), t = t ? De$2(t) : 0;
|
|
8870
8875
|
var s = u.length;
|
|
8871
8876
|
return t < 0 && (t = W$1(s + t, 0)), xa(u) ? t <= s && u.indexOf(e, t) > -1 : !!s && on$1(u, e, t) > -1;
|
|
8872
8877
|
}
|
|
@@ -8890,7 +8895,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8890
8895
|
if (!t)
|
|
8891
8896
|
throw new Error(`Model with key ${e.modelKey} not found`);
|
|
8892
8897
|
const r = this.getListItemKeys(e), s = this.getRelevantData(t, r), o = this.initIndicesController(r, t, s);
|
|
8893
|
-
this.catalog ? this.catalog.filter.update(t, s, o) : (this.catalog = new G$
|
|
8898
|
+
this.catalog ? this.catalog.filter.update(t, s, o) : (this.catalog = new G$1(this.dcuplApi, this.cdRef, o), this.catalog.init(this.modelKey, t, s));
|
|
8894
8899
|
}
|
|
8895
8900
|
initIndicesController(e, t, r) {
|
|
8896
8901
|
let s;
|
|
@@ -8922,7 +8927,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
8922
8927
|
// }
|
|
8923
8928
|
// @trigger({ scope: 'global', name: 'list:create', type: 'list_created' })
|
|
8924
8929
|
init(e) {
|
|
8925
|
-
this.options =
|
|
8930
|
+
this.options = C$2(e), this.key = this.options.listKey, this.modelKey = this.options.modelKey, this.setup(this.options);
|
|
8926
8931
|
}
|
|
8927
8932
|
initFromItemKeys(e, t) {
|
|
8928
8933
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -9189,7 +9194,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9189
9194
|
}
|
|
9190
9195
|
const i = this.getModelErrors(s).filter(
|
|
9191
9196
|
(n) => n.errorType === "WrongDataType" && n.errorGroup === "PropertyDataError" && n.title === "Wrong Data Type" && n.itemKey != null
|
|
9192
|
-
), l =
|
|
9197
|
+
), l = We$1(i, "attribute");
|
|
9193
9198
|
for (const n in l) {
|
|
9194
9199
|
const a = l[n];
|
|
9195
9200
|
if (!a?.length)
|
|
@@ -9462,7 +9467,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9462
9467
|
}
|
|
9463
9468
|
}
|
|
9464
9469
|
calculateSizesForModels() {
|
|
9465
|
-
const t = this.dcupl.analyticsController.getByType("resource").filter((o) => o.value?.type === "data"), r =
|
|
9470
|
+
const t = this.dcupl.analyticsController.getByType("resource").filter((o) => o.value?.type === "data"), r = We$1(t, (o) => o.value?.model);
|
|
9466
9471
|
return Object.keys(r).map((o) => {
|
|
9467
9472
|
const i = r[o]?.reduce((n, a) => {
|
|
9468
9473
|
const d = a.value.encodedBodySize;
|
|
@@ -9670,7 +9675,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9670
9675
|
};
|
|
9671
9676
|
}
|
|
9672
9677
|
validateIncludes(e, t, r) {
|
|
9673
|
-
if (e != null && !Q$
|
|
9678
|
+
if (e != null && !Q$2(e, t.value))
|
|
9674
9679
|
return {
|
|
9675
9680
|
title: "Validator Error - Includes",
|
|
9676
9681
|
type: "model",
|
|
@@ -9737,13 +9742,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9737
9742
|
};
|
|
9738
9743
|
let p$1 = class p {
|
|
9739
9744
|
cdRef = new Iu();
|
|
9740
|
-
analyticsController = new
|
|
9745
|
+
analyticsController = new Mu();
|
|
9741
9746
|
containerSourceMetadata = /* @__PURE__ */ new WeakMap();
|
|
9742
|
-
scriptController = new
|
|
9747
|
+
scriptController = new Ru();
|
|
9743
9748
|
qualityController = new Y$2(this.scriptController);
|
|
9744
9749
|
log = Wa.child({ prefix: "Dcupl" });
|
|
9745
|
-
modelParser = new
|
|
9746
|
-
globalItemService = new K$
|
|
9750
|
+
modelParser = new M$1(this.cdRef, this.qualityController, this);
|
|
9751
|
+
globalItemService = new K$3(this.modelParser, this.scriptController);
|
|
9747
9752
|
cacheCtrl = new Du(false);
|
|
9748
9753
|
queryManager = new Ku(
|
|
9749
9754
|
this.scriptController,
|
|
@@ -9793,7 +9798,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
9793
9798
|
updateQueue = [];
|
|
9794
9799
|
// Queue for pending updates
|
|
9795
9800
|
constructor(e) {
|
|
9796
|
-
this.analyticsController.init(!!e?.analytics?.enabled), this.qualityController.dcupl = this, this.analyticsController.mark({ name: "dcupl:constructor" }), this.initOptions =
|
|
9801
|
+
this.analyticsController.init(!!e?.analytics?.enabled), this.qualityController.dcupl = this, this.analyticsController.mark({ name: "dcupl:constructor" }), this.initOptions = A$1({}, this._defaultInitOptions, e), this.qualityController.enabled = this.initOptions.errorTracking?.enabled || this.initOptions.quality?.enabled || false, this.qualityController.maxErrorsPerGroup = this.initOptions.quality?.maxErrorsPerGroup ?? 1e3, this.modelParser.initOptions = Object.assign({}, this.initOptions), this.cdRef._init({
|
|
9797
9802
|
cdRefKey: "root",
|
|
9798
9803
|
dcuplInitOptions: this.initOptions,
|
|
9799
9804
|
analyticsController: this.analyticsController
|
|
@@ -11351,9 +11356,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11351
11356
|
};
|
|
11352
11357
|
}
|
|
11353
11358
|
};
|
|
11354
|
-
const
|
|
11359
|
+
const P = (n, e) => e ? typeof structuredClone < "u" ? structuredClone(n) : cloneDeep(n) : n, T$1 = (n, e, t, r, s, i) => {
|
|
11355
11360
|
try {
|
|
11356
|
-
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a =
|
|
11361
|
+
const o = !!e.dcuplInitOptions.performance?.clone?.enabled && !!t.cloneResult, a = P(i, o);
|
|
11357
11362
|
if (t.scope === "list" && (t.listKey = n.cdRef?.key || n.key, t.modelKey = n.model?.key || n.modelKey), t.type === "list_created" && t.args[0].listKey.startsWith("__global_list__") || t.listKey?.startsWith("__global_list__"))
|
|
11358
11363
|
return a;
|
|
11359
11364
|
const c = b.now(), u = c - r, f = Math.round(u * 1e3) / 1e3;
|
|
@@ -11377,7 +11382,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11377
11382
|
}, Ve$1 = (n) => (t, r, s) => {
|
|
11378
11383
|
const i = s.value;
|
|
11379
11384
|
return s.value = function(...o) {
|
|
11380
|
-
const a = b.now(), c = this.cdRef, u =
|
|
11385
|
+
const a = b.now(), c = this.cdRef, u = P(n, true);
|
|
11381
11386
|
u.key || (c.increaseCounter(), u.key = c.getCounter());
|
|
11382
11387
|
const f = ee();
|
|
11383
11388
|
c.analyticsController.mark({
|
|
@@ -11387,11 +11392,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11387
11392
|
const l = this.model?.key;
|
|
11388
11393
|
!u.originCdRefKey && c.key && (u.originCdRefKey = c.key), l && (u.modelKey = l);
|
|
11389
11394
|
const d = i.apply(this, o);
|
|
11390
|
-
return u.method = r, u.args = o, d && typeof d == "object" && "then" in d ? d.then((h2) =>
|
|
11395
|
+
return u.method = r, u.args = o, d && typeof d == "object" && "then" in d ? d.then((h2) => T$1(this, c, u, a, f, h2)) : T$1(this, c, u, a, f, d);
|
|
11391
11396
|
}, s;
|
|
11392
11397
|
};
|
|
11393
11398
|
const Oe$1 = "k:", qe$1 = "h:";
|
|
11394
|
-
function
|
|
11399
|
+
function Q$1(n, e = 0) {
|
|
11395
11400
|
if (n.key)
|
|
11396
11401
|
return `${Oe$1}${n.key}`;
|
|
11397
11402
|
const t = K$1({
|
|
@@ -11406,13 +11411,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11406
11411
|
const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
|
|
11407
11412
|
return n.map((r) => {
|
|
11408
11413
|
const s = `${r.key ?? ""}|${r.type}|${r.rawUrl ?? r.url}|${r.model ?? ""}`;
|
|
11409
|
-
let i = e.get(s) ?? 0, o =
|
|
11414
|
+
let i = e.get(s) ?? 0, o = Q$1(r, i);
|
|
11410
11415
|
for (; t.has(o); )
|
|
11411
|
-
i += 1, o = r.key ? `${
|
|
11416
|
+
i += 1, o = r.key ? `${Q$1(r)}#${i}` : Q$1(r, i);
|
|
11412
11417
|
return e.set(s, i + 1), t.add(o), o;
|
|
11413
11418
|
});
|
|
11414
11419
|
}
|
|
11415
|
-
const
|
|
11420
|
+
const ut$1 = (n, e) => n ? (e || (e = {}), n.replace(/\$\{(.*?)\}/g, (t, r) => get(e, r.trim(), ""))) : "", ft = (n) => {
|
|
11416
11421
|
const e = /* @__PURE__ */ new Set();
|
|
11417
11422
|
return n.replace(/\$\{(.*?)\}/g, (r, s) => (e.add(s.trim()), "")), { variables: Array.from(e).map((r) => ({ name: r })) };
|
|
11418
11423
|
};
|
|
@@ -11428,7 +11433,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11428
11433
|
skipEmptyLines: i = true,
|
|
11429
11434
|
transformHeader: u,
|
|
11430
11435
|
transform: g2
|
|
11431
|
-
} = r, y2 = [],
|
|
11436
|
+
} = r, y2 = [], m = c ? [] : null;
|
|
11432
11437
|
let d = e.length, f = [], l = "", b2 = false, C2 = true, h2 = 0;
|
|
11433
11438
|
if (i) {
|
|
11434
11439
|
for (; h2 < d && (e[h2] === `
|
|
@@ -11450,7 +11455,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11450
11455
|
if (b2)
|
|
11451
11456
|
l += p2;
|
|
11452
11457
|
else {
|
|
11453
|
-
(l.length > 0 || !i) && f.push(l), C2 &&
|
|
11458
|
+
(l.length > 0 || !i) && f.push(l), C2 && m ? f.forEach((I2) => m.push(u ? u(I2) : I2)) : m ? y2.push(this.buildObjectRow(m, f, o, g2)) : y2.push([...f]), f = [], l = "", C2 = false, h2 += p2 === "\r" && _2 === `
|
|
11454
11459
|
` ? 1 : 0;
|
|
11455
11460
|
continue;
|
|
11456
11461
|
}
|
|
@@ -11459,12 +11464,12 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11459
11464
|
else if (p2 === n)
|
|
11460
11465
|
b2 ? _2 === a ? (l += n, h2++) : b2 = false : l.length === 0 ? b2 = true : l += p2;
|
|
11461
11466
|
else if ((b2 || l.length === 0) && (p2 === "{" || p2 === "[")) {
|
|
11462
|
-
const
|
|
11463
|
-
l +=
|
|
11467
|
+
const I2 = this.extractJson(e, h2, P2);
|
|
11468
|
+
l += I2.value, h2 += I2.length - 1;
|
|
11464
11469
|
} else
|
|
11465
11470
|
l += p2;
|
|
11466
11471
|
}
|
|
11467
|
-
return (l.length > 0 || !i) && f.push(l), f.length && (C2 &&
|
|
11472
|
+
return (l.length > 0 || !i) && f.push(l), f.length && (C2 && m ? f.forEach((p2) => m.push(u ? u(p2) : p2)) : m ? y2.push(this.buildObjectRow(m, f, o, g2)) : y2.push([...f])), y2;
|
|
11468
11473
|
}
|
|
11469
11474
|
// Builds an object from a row array based on headers
|
|
11470
11475
|
buildObjectRow(e, r, n, a) {
|
|
@@ -11542,7 +11547,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
11542
11547
|
if (e.properties)
|
|
11543
11548
|
for (const l of e.properties)
|
|
11544
11549
|
g2.set(l.key, l), l.origin && g2.set(l.origin, l);
|
|
11545
|
-
const y2 = r?.keyProperty ?? e.keyProperty ?? "key",
|
|
11550
|
+
const y2 = r?.keyProperty ?? e.keyProperty ?? "key", m = Array.isArray(y2) ? y2 : [y2], d = new Set(m);
|
|
11546
11551
|
return {
|
|
11547
11552
|
delimiter: i?.delimiter,
|
|
11548
11553
|
quoteChar: i?.quoteChar,
|
|
@@ -12296,9 +12301,9 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12296
12301
|
}) : Js(t) && t.forEach(function(d, f) {
|
|
12297
12302
|
o.set(f, J(d, e, r, f, t, s));
|
|
12298
12303
|
});
|
|
12299
|
-
var y2 = us,
|
|
12300
|
-
return nr(
|
|
12301
|
-
|
|
12304
|
+
var y2 = us, m = c ? void 0 : y2(t);
|
|
12305
|
+
return nr(m || t, function(d, f) {
|
|
12306
|
+
m && (f = d, d = t[f]), gr(o, f, J(d, e, r, f, t, s));
|
|
12302
12307
|
}), o;
|
|
12303
12308
|
}
|
|
12304
12309
|
var Co = 1, Po = 4;
|
|
@@ -12332,17 +12337,17 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12332
12337
|
i = Oo(g2.length, i), c[o] = a >= 120 && g2.length >= 120 ? new W(o && g2) : void 0;
|
|
12333
12338
|
}
|
|
12334
12339
|
g2 = t[0];
|
|
12335
|
-
var y2 = -1,
|
|
12340
|
+
var y2 = -1, m = c[0];
|
|
12336
12341
|
e:
|
|
12337
12342
|
for (; ++y2 < a && u.length < i; ) {
|
|
12338
12343
|
var d = g2[y2], f = d;
|
|
12339
|
-
if (d = d !== 0 ? d : 0, !(
|
|
12344
|
+
if (d = d !== 0 ? d : 0, !(m ? He(m, f) : n(u, f))) {
|
|
12340
12345
|
for (o = s; --o; ) {
|
|
12341
12346
|
var l = c[o];
|
|
12342
12347
|
if (!(l ? He(l, f) : n(t[o], f)))
|
|
12343
12348
|
continue e;
|
|
12344
12349
|
}
|
|
12345
|
-
|
|
12350
|
+
m && m.push(f), u.push(d);
|
|
12346
12351
|
}
|
|
12347
12352
|
}
|
|
12348
12353
|
return u;
|
|
@@ -12410,7 +12415,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12410
12415
|
return false;
|
|
12411
12416
|
}
|
|
12412
12417
|
function xo(t, e) {
|
|
12413
|
-
return
|
|
12418
|
+
return ft(t).variables.map((r) => r.name).filter((r) => qn(e, r) === void 0);
|
|
12414
12419
|
}
|
|
12415
12420
|
function Ke(t, e, r) {
|
|
12416
12421
|
const n = {
|
|
@@ -12429,13 +12434,13 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12429
12434
|
return;
|
|
12430
12435
|
}
|
|
12431
12436
|
}
|
|
12432
|
-
const y2 = u.url ?? "",
|
|
12437
|
+
const y2 = u.url ?? "", m = xo(y2, e), d = {
|
|
12433
12438
|
...u,
|
|
12434
12439
|
id: s[g2],
|
|
12435
12440
|
rawUrl: y2,
|
|
12436
|
-
url:
|
|
12441
|
+
url: ut$1(y2, { ...e })
|
|
12437
12442
|
};
|
|
12438
|
-
|
|
12443
|
+
m.length && (d.unresolvedVariables = m), o.push(d);
|
|
12439
12444
|
}), { scheduled: o, skipped: c, variables: e, run: n };
|
|
12440
12445
|
}
|
|
12441
12446
|
var ko = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, pt = (t, e, r, n) => {
|
|
@@ -12743,7 +12748,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12743
12748
|
for (const o of a)
|
|
12744
12749
|
s[o.key] = o.value || "";
|
|
12745
12750
|
for (const o of a)
|
|
12746
|
-
o.value =
|
|
12751
|
+
o.value = ut$1(o.value, s);
|
|
12747
12752
|
return a;
|
|
12748
12753
|
}
|
|
12749
12754
|
getEvaluatedVariablesAsRecord(e, r) {
|
|
@@ -12773,7 +12778,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12773
12778
|
});
|
|
12774
12779
|
const s = {};
|
|
12775
12780
|
if (a.forEach((o) => {
|
|
12776
|
-
const c =
|
|
12781
|
+
const c = ut$1(o.value, { ...r });
|
|
12777
12782
|
s[o.key] = c;
|
|
12778
12783
|
}), Object.keys(s).length !== 0)
|
|
12779
12784
|
return s;
|
|
@@ -12796,7 +12801,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12796
12801
|
value: r.apiKey
|
|
12797
12802
|
});
|
|
12798
12803
|
}
|
|
12799
|
-
return a.map((s) => (s.value =
|
|
12804
|
+
return a.map((s) => (s.value = ut$1(s.value, { ...r }), s));
|
|
12800
12805
|
}
|
|
12801
12806
|
isDcuplCdn(e) {
|
|
12802
12807
|
return e.includes("cdn.dcupl.com");
|
|
@@ -12962,7 +12967,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12962
12967
|
const { url: u, headers: g2 } = this.getRequestOptions(o, r, n, a), y2 = await fetch(u, { headers: g2 });
|
|
12963
12968
|
if (i = y2.status, !y2.ok)
|
|
12964
12969
|
throw new Error(`Failed to fetch data from ${u}`);
|
|
12965
|
-
const
|
|
12970
|
+
const m = b.now(), d = await y2.json(), f = b.now(), l = Array.isArray(d) ? d : [d], b$12 = [];
|
|
12966
12971
|
for (const p2 of l)
|
|
12967
12972
|
this.isValidModelDefinitionShape(p2) ? b$12.push(p2) : this.emitInvalidModelDefinitionError(
|
|
12968
12973
|
o,
|
|
@@ -12989,7 +12994,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
12989
12994
|
responseStart: p2.responseStart,
|
|
12990
12995
|
duration: p2.duration,
|
|
12991
12996
|
parseEnd: f,
|
|
12992
|
-
parseStart:
|
|
12997
|
+
parseStart: m,
|
|
12993
12998
|
decodedBodySize: p2.decodedBodySize,
|
|
12994
12999
|
encodedBodySize: p2.encodedBodySize,
|
|
12995
13000
|
end: f
|
|
@@ -13034,10 +13039,10 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13034
13039
|
};
|
|
13035
13040
|
this.core.registerContainer(g2);
|
|
13036
13041
|
const y2 = (/* @__PURE__ */ new Date()).getTime();
|
|
13037
|
-
let
|
|
13042
|
+
let m;
|
|
13038
13043
|
try {
|
|
13039
13044
|
const { url: d, headers: f } = this.getRequestOptions(i, r, a, s), l = await fetch(d, { headers: f });
|
|
13040
|
-
if (
|
|
13045
|
+
if (m = l.status, !l.ok)
|
|
13041
13046
|
throw new Error(`Failed to fetch data from ${d}`);
|
|
13042
13047
|
const b$12 = l.headers.get("content-type"), C2 = b.now();
|
|
13043
13048
|
let h2;
|
|
@@ -13047,7 +13052,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13047
13052
|
i,
|
|
13048
13053
|
"rawFileTransformer",
|
|
13049
13054
|
o || []
|
|
13050
|
-
),
|
|
13055
|
+
), I2 = b.now();
|
|
13051
13056
|
let H2 = [], z2 = this.core.modelParser.unprocessedModelDescriptions.get(i.model);
|
|
13052
13057
|
if (!z2 && (n?.missingModelHandling?.autoGenerateProperties || i.options?.autoGenerateProperties)) {
|
|
13053
13058
|
const w2 = i.options?.autoGenerateProperties ?? n?.missingModelHandling?.autoGenerateProperties ?? true;
|
|
@@ -13108,7 +13113,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13108
13113
|
duration: w2.duration,
|
|
13109
13114
|
parseEnd: P2,
|
|
13110
13115
|
rawTransformStart: p2,
|
|
13111
|
-
rawTransformEnd:
|
|
13116
|
+
rawTransformEnd: I2,
|
|
13112
13117
|
parseStart: C2,
|
|
13113
13118
|
csvToJsonStart: dt2,
|
|
13114
13119
|
csvToJsonEnd: ft2,
|
|
@@ -13122,7 +13127,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13122
13127
|
this.core.analyticsController.set({ value: mt2, context: this.currentContext });
|
|
13123
13128
|
}
|
|
13124
13129
|
this.core.updateRegisteredContainer(he2, fe2);
|
|
13125
|
-
const yt2 = this.progressHandler.update(i, true, "data",
|
|
13130
|
+
const yt2 = this.progressHandler.update(i, true, "data", m);
|
|
13126
13131
|
return this.updateProgressListeners(yt2), Promise.resolve(he2);
|
|
13127
13132
|
} catch (d) {
|
|
13128
13133
|
this.log.error("Failed to load data resource", d, { url: i.url, model: i.model });
|
|
@@ -13136,7 +13141,7 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13136
13141
|
description: d?.message
|
|
13137
13142
|
};
|
|
13138
13143
|
this.setError(f), this.core.removeRegisteredContainer(g2);
|
|
13139
|
-
const l = this.progressHandler.update(i, false, "data",
|
|
13144
|
+
const l = this.progressHandler.update(i, false, "data", m);
|
|
13140
13145
|
return this.updateProgressListeners(l), Promise.resolve();
|
|
13141
13146
|
}
|
|
13142
13147
|
});
|
|
@@ -13167,11 +13172,11 @@ These attributes will default to Step 1 processing which may be incorrect. This
|
|
|
13167
13172
|
(d) => d.type === "model"
|
|
13168
13173
|
);
|
|
13169
13174
|
await this.handleModelResources(y2, r, a, s);
|
|
13170
|
-
const
|
|
13175
|
+
const m = o.filter(
|
|
13171
13176
|
(d) => d.type === "data"
|
|
13172
13177
|
);
|
|
13173
13178
|
return await this.handleDataResources(
|
|
13174
|
-
|
|
13179
|
+
m,
|
|
13175
13180
|
r,
|
|
13176
13181
|
n,
|
|
13177
13182
|
a,
|