@stencil/core 4.43.2 → 4.43.3
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/cli/index.cjs +379 -154
- package/cli/index.js +379 -154
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +2276 -2065
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +346 -137
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +423 -214
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +396 -189
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +1 -1
- package/internal/stencil-public-compiler.d.ts +61 -6
- package/internal/testing/index.js +410 -201
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +2 -4
- package/mock-doc/index.d.ts +1 -1
- package/mock-doc/index.js +2 -4
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/index.js +341 -132
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +44 -46
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +420 -211
- package/testing/package.json +1 -1
|
@@ -377,8 +377,8 @@ var SERIALIZED_PREFIX = "serialized:";
|
|
|
377
377
|
// src/runtime/element.ts
|
|
378
378
|
var import_app_data = require("@stencil/core/internal/app-data");
|
|
379
379
|
var getElement = (ref) => {
|
|
380
|
-
var
|
|
381
|
-
return import_app_data.BUILD.lazyLoad ? (
|
|
380
|
+
var _a2;
|
|
381
|
+
return import_app_data.BUILD.lazyLoad ? (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$hostElement$ : ref;
|
|
382
382
|
};
|
|
383
383
|
|
|
384
384
|
// src/runtime/event-emitter.ts
|
|
@@ -540,8 +540,35 @@ var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
|
540
540
|
};
|
|
541
541
|
|
|
542
542
|
// node_modules/minimatch/dist/esm/ast.js
|
|
543
|
+
var _a;
|
|
543
544
|
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
544
545
|
var isExtglobType = (c) => types.has(c);
|
|
546
|
+
var isExtglobAST = (c) => isExtglobType(c.type);
|
|
547
|
+
var adoptionMap = /* @__PURE__ */ new Map([
|
|
548
|
+
["!", ["@"]],
|
|
549
|
+
["?", ["?", "@"]],
|
|
550
|
+
["@", ["@"]],
|
|
551
|
+
["*", ["*", "+", "?", "@"]],
|
|
552
|
+
["+", ["+", "@"]]
|
|
553
|
+
]);
|
|
554
|
+
var adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
555
|
+
["!", ["?"]],
|
|
556
|
+
["@", ["?"]],
|
|
557
|
+
["+", ["?", "*"]]
|
|
558
|
+
]);
|
|
559
|
+
var adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
560
|
+
["!", ["?", "@"]],
|
|
561
|
+
["?", ["?", "@"]],
|
|
562
|
+
["@", ["?", "@"]],
|
|
563
|
+
["*", ["*", "+", "?", "@"]],
|
|
564
|
+
["+", ["+", "@", "?", "*"]]
|
|
565
|
+
]);
|
|
566
|
+
var usurpMap = /* @__PURE__ */ new Map([
|
|
567
|
+
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
568
|
+
["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
|
|
569
|
+
["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
|
|
570
|
+
["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
|
|
571
|
+
]);
|
|
545
572
|
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
546
573
|
var startNoDot = "(?!\\.)";
|
|
547
574
|
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
@@ -551,8 +578,8 @@ var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
|
551
578
|
var qmark = "[^/]";
|
|
552
579
|
var star = qmark + "*?";
|
|
553
580
|
var starNoEmpty = qmark + "+?";
|
|
554
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
555
|
-
var
|
|
581
|
+
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, canAdoptWithSpace_fn, canAdopt_fn, canAdoptType_fn, adoptWithSpace_fn, adopt_fn, canUsurpType_fn, canUsurp_fn, usurp_fn, flatten_fn, partsToRegExp_fn, parseGlob_fn;
|
|
582
|
+
var AST = class {
|
|
556
583
|
constructor(type, parent, options = {}) {
|
|
557
584
|
__privateAdd(this, _AST_instances);
|
|
558
585
|
__publicField(this, "type");
|
|
@@ -605,44 +632,44 @@ var _AST = class _AST {
|
|
|
605
632
|
for (const p of parts) {
|
|
606
633
|
if (p === "")
|
|
607
634
|
continue;
|
|
608
|
-
if (typeof p !== "string" && !(p instanceof
|
|
635
|
+
if (typeof p !== "string" && !(p instanceof _a && __privateGet(p, _parent) === this)) {
|
|
609
636
|
throw new Error("invalid part: " + p);
|
|
610
637
|
}
|
|
611
638
|
__privateGet(this, _parts).push(p);
|
|
612
639
|
}
|
|
613
640
|
}
|
|
614
641
|
toJSON() {
|
|
615
|
-
var
|
|
642
|
+
var _a2;
|
|
616
643
|
const ret = this.type === null ? __privateGet(this, _parts).slice().map((p) => typeof p === "string" ? p : p.toJSON()) : [this.type, ...__privateGet(this, _parts).map((p) => p.toJSON())];
|
|
617
644
|
if (this.isStart() && !this.type)
|
|
618
645
|
ret.unshift([]);
|
|
619
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
646
|
+
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")) {
|
|
620
647
|
ret.push({});
|
|
621
648
|
}
|
|
622
649
|
return ret;
|
|
623
650
|
}
|
|
624
651
|
isStart() {
|
|
625
|
-
var
|
|
652
|
+
var _a2;
|
|
626
653
|
if (__privateGet(this, _root) === this)
|
|
627
654
|
return true;
|
|
628
|
-
if (!((
|
|
655
|
+
if (!((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.isStart()))
|
|
629
656
|
return false;
|
|
630
657
|
if (__privateGet(this, _parentIndex) === 0)
|
|
631
658
|
return true;
|
|
632
659
|
const p = __privateGet(this, _parent);
|
|
633
660
|
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
634
661
|
const pp = __privateGet(p, _parts)[i2];
|
|
635
|
-
if (!(pp instanceof
|
|
662
|
+
if (!(pp instanceof _a && pp.type === "!")) {
|
|
636
663
|
return false;
|
|
637
664
|
}
|
|
638
665
|
}
|
|
639
666
|
return true;
|
|
640
667
|
}
|
|
641
668
|
isEnd() {
|
|
642
|
-
var
|
|
669
|
+
var _a2, _b, _c;
|
|
643
670
|
if (__privateGet(this, _root) === this)
|
|
644
671
|
return true;
|
|
645
|
-
if (((
|
|
672
|
+
if (((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!")
|
|
646
673
|
return true;
|
|
647
674
|
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
648
675
|
return false;
|
|
@@ -658,16 +685,16 @@ var _AST = class _AST {
|
|
|
658
685
|
this.push(part.clone(this));
|
|
659
686
|
}
|
|
660
687
|
clone(parent) {
|
|
661
|
-
const c = new
|
|
688
|
+
const c = new _a(this.type, parent);
|
|
662
689
|
for (const p of __privateGet(this, _parts)) {
|
|
663
690
|
c.copyIn(p);
|
|
664
691
|
}
|
|
665
692
|
return c;
|
|
666
693
|
}
|
|
667
694
|
static fromGlob(pattern, options = {}) {
|
|
668
|
-
var
|
|
669
|
-
const ast = new
|
|
670
|
-
__privateMethod(
|
|
695
|
+
var _a2;
|
|
696
|
+
const ast = new _a(null, void 0, options);
|
|
697
|
+
__privateMethod(_a2 = _a, _AST_static, parseAST_fn).call(_a2, pattern, ast, 0, options, 0);
|
|
671
698
|
return ast;
|
|
672
699
|
}
|
|
673
700
|
// returns the regular expression if there's magic, or the unescaped
|
|
@@ -760,15 +787,17 @@ var _AST = class _AST {
|
|
|
760
787
|
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
761
788
|
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
762
789
|
toRegExpSource(allowDot) {
|
|
763
|
-
var
|
|
790
|
+
var _a2;
|
|
764
791
|
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
765
|
-
if (__privateGet(this, _root) === this)
|
|
792
|
+
if (__privateGet(this, _root) === this) {
|
|
793
|
+
__privateMethod(this, _AST_instances, flatten_fn).call(this);
|
|
766
794
|
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
767
|
-
|
|
795
|
+
}
|
|
796
|
+
if (!isExtglobAST(this)) {
|
|
768
797
|
const noEmpty = this.isStart() && this.isEnd();
|
|
769
798
|
const src = __privateGet(this, _parts).map((p) => {
|
|
770
|
-
var
|
|
771
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(
|
|
799
|
+
var _a3;
|
|
800
|
+
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a3 = _a, _AST_static, parseGlob_fn).call(_a3, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
772
801
|
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
773
802
|
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
774
803
|
return re;
|
|
@@ -791,7 +820,7 @@ var _AST = class _AST {
|
|
|
791
820
|
}
|
|
792
821
|
}
|
|
793
822
|
let end = "";
|
|
794
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((
|
|
823
|
+
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a2 = __privateGet(this, _parent)) == null ? void 0 : _a2.type) === "!") {
|
|
795
824
|
end = "(?:$|\\/)";
|
|
796
825
|
}
|
|
797
826
|
const final2 = start2 + src + end;
|
|
@@ -807,9 +836,10 @@ var _AST = class _AST {
|
|
|
807
836
|
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
808
837
|
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
809
838
|
const s = this.toString();
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
839
|
+
const me = this;
|
|
840
|
+
__privateSet(me, _parts, [s]);
|
|
841
|
+
me.type = null;
|
|
842
|
+
__privateSet(me, _hasMagic, void 0);
|
|
813
843
|
return [s, unescape(this.toString()), false, false];
|
|
814
844
|
}
|
|
815
845
|
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
@@ -878,8 +908,9 @@ fillNegs_fn = function() {
|
|
|
878
908
|
return this;
|
|
879
909
|
};
|
|
880
910
|
_AST_static = new WeakSet();
|
|
881
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
882
|
-
var
|
|
911
|
+
parseAST_fn = function(str, ast, pos, opt, extDepth) {
|
|
912
|
+
var _a2, _b, _c, _d, _e;
|
|
913
|
+
const maxDepth = (_a2 = opt.maxExtglobRecursion) != null ? _a2 : 2;
|
|
883
914
|
let escaping = false;
|
|
884
915
|
let inBrace = false;
|
|
885
916
|
let braceStart = -1;
|
|
@@ -911,11 +942,12 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
911
942
|
acc2 += c;
|
|
912
943
|
continue;
|
|
913
944
|
}
|
|
914
|
-
|
|
945
|
+
const doRecurse = !opt.noext && isExtglobType(c) && str.charAt(i3) === "(" && extDepth <= maxDepth;
|
|
946
|
+
if (doRecurse) {
|
|
915
947
|
ast.push(acc2);
|
|
916
948
|
acc2 = "";
|
|
917
|
-
const ext2 = new
|
|
918
|
-
i3 = __privateMethod(
|
|
949
|
+
const ext2 = new _a(c, ast);
|
|
950
|
+
i3 = __privateMethod(_b = _a, _AST_static, parseAST_fn).call(_b, str, ext2, i3, opt, extDepth + 1);
|
|
919
951
|
ast.push(ext2);
|
|
920
952
|
continue;
|
|
921
953
|
}
|
|
@@ -925,7 +957,7 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
925
957
|
return i3;
|
|
926
958
|
}
|
|
927
959
|
let i2 = pos + 1;
|
|
928
|
-
let part = new
|
|
960
|
+
let part = new _a(null, ast);
|
|
929
961
|
const parts = [];
|
|
930
962
|
let acc = "";
|
|
931
963
|
while (i2 < str.length) {
|
|
@@ -952,19 +984,22 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
952
984
|
acc += c;
|
|
953
985
|
continue;
|
|
954
986
|
}
|
|
955
|
-
|
|
987
|
+
const doRecurse = isExtglobType(c) && str.charAt(i2) === "(" && /* c8 ignore start - the maxDepth is sufficient here */
|
|
988
|
+
(extDepth <= maxDepth || ast && __privateMethod(_c = ast, _AST_instances, canAdoptType_fn).call(_c, c));
|
|
989
|
+
if (doRecurse) {
|
|
990
|
+
const depthAdd = ast && __privateMethod(_d = ast, _AST_instances, canAdoptType_fn).call(_d, c) ? 0 : 1;
|
|
956
991
|
part.push(acc);
|
|
957
992
|
acc = "";
|
|
958
|
-
const ext2 = new
|
|
993
|
+
const ext2 = new _a(c, part);
|
|
959
994
|
part.push(ext2);
|
|
960
|
-
i2 = __privateMethod(
|
|
995
|
+
i2 = __privateMethod(_e = _a, _AST_static, parseAST_fn).call(_e, str, ext2, i2, opt, extDepth + depthAdd);
|
|
961
996
|
continue;
|
|
962
997
|
}
|
|
963
998
|
if (c === "|") {
|
|
964
999
|
part.push(acc);
|
|
965
1000
|
acc = "";
|
|
966
1001
|
parts.push(part);
|
|
967
|
-
part = new
|
|
1002
|
+
part = new _a(null, ast);
|
|
968
1003
|
continue;
|
|
969
1004
|
}
|
|
970
1005
|
if (c === ")") {
|
|
@@ -983,6 +1018,100 @@ parseAST_fn = function(str, ast, pos, opt) {
|
|
|
983
1018
|
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
984
1019
|
return i2;
|
|
985
1020
|
};
|
|
1021
|
+
canAdoptWithSpace_fn = function(child) {
|
|
1022
|
+
return __privateMethod(this, _AST_instances, canAdopt_fn).call(this, child, adoptionWithSpaceMap);
|
|
1023
|
+
};
|
|
1024
|
+
canAdopt_fn = function(child, map2 = adoptionMap) {
|
|
1025
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null) {
|
|
1026
|
+
return false;
|
|
1027
|
+
}
|
|
1028
|
+
const gc = __privateGet(child, _parts)[0];
|
|
1029
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
1030
|
+
return false;
|
|
1031
|
+
}
|
|
1032
|
+
return __privateMethod(this, _AST_instances, canAdoptType_fn).call(this, gc.type, map2);
|
|
1033
|
+
};
|
|
1034
|
+
canAdoptType_fn = function(c, map2 = adoptionAnyMap) {
|
|
1035
|
+
var _a2;
|
|
1036
|
+
return !!((_a2 = map2.get(this.type)) == null ? void 0 : _a2.includes(c));
|
|
1037
|
+
};
|
|
1038
|
+
adoptWithSpace_fn = function(child, index) {
|
|
1039
|
+
const gc = __privateGet(child, _parts)[0];
|
|
1040
|
+
const blank = new _a(null, gc, this.options);
|
|
1041
|
+
__privateGet(blank, _parts).push("");
|
|
1042
|
+
gc.push(blank);
|
|
1043
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, child, index);
|
|
1044
|
+
};
|
|
1045
|
+
adopt_fn = function(child, index) {
|
|
1046
|
+
const gc = __privateGet(child, _parts)[0];
|
|
1047
|
+
__privateGet(this, _parts).splice(index, 1, ...__privateGet(gc, _parts));
|
|
1048
|
+
for (const p of __privateGet(gc, _parts)) {
|
|
1049
|
+
if (typeof p === "object")
|
|
1050
|
+
__privateSet(p, _parent, this);
|
|
1051
|
+
}
|
|
1052
|
+
__privateSet(this, _toString, void 0);
|
|
1053
|
+
};
|
|
1054
|
+
canUsurpType_fn = function(c) {
|
|
1055
|
+
const m = usurpMap.get(this.type);
|
|
1056
|
+
return !!(m == null ? void 0 : m.has(c));
|
|
1057
|
+
};
|
|
1058
|
+
canUsurp_fn = function(child) {
|
|
1059
|
+
if (!child || typeof child !== "object" || child.type !== null || __privateGet(child, _parts).length !== 1 || this.type === null || __privateGet(this, _parts).length !== 1) {
|
|
1060
|
+
return false;
|
|
1061
|
+
}
|
|
1062
|
+
const gc = __privateGet(child, _parts)[0];
|
|
1063
|
+
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
1064
|
+
return false;
|
|
1065
|
+
}
|
|
1066
|
+
return __privateMethod(this, _AST_instances, canUsurpType_fn).call(this, gc.type);
|
|
1067
|
+
};
|
|
1068
|
+
usurp_fn = function(child) {
|
|
1069
|
+
const m = usurpMap.get(this.type);
|
|
1070
|
+
const gc = __privateGet(child, _parts)[0];
|
|
1071
|
+
const nt = m == null ? void 0 : m.get(gc.type);
|
|
1072
|
+
if (!nt)
|
|
1073
|
+
return false;
|
|
1074
|
+
__privateSet(this, _parts, __privateGet(gc, _parts));
|
|
1075
|
+
for (const p of __privateGet(this, _parts)) {
|
|
1076
|
+
if (typeof p === "object")
|
|
1077
|
+
__privateSet(p, _parent, this);
|
|
1078
|
+
}
|
|
1079
|
+
this.type = nt;
|
|
1080
|
+
__privateSet(this, _toString, void 0);
|
|
1081
|
+
__privateSet(this, _emptyExt, false);
|
|
1082
|
+
};
|
|
1083
|
+
flatten_fn = function() {
|
|
1084
|
+
var _a2, _b;
|
|
1085
|
+
if (!isExtglobAST(this)) {
|
|
1086
|
+
for (const p of __privateGet(this, _parts)) {
|
|
1087
|
+
if (typeof p === "object")
|
|
1088
|
+
__privateMethod(_a2 = p, _AST_instances, flatten_fn).call(_a2);
|
|
1089
|
+
}
|
|
1090
|
+
} else {
|
|
1091
|
+
let iterations = 0;
|
|
1092
|
+
let done = false;
|
|
1093
|
+
do {
|
|
1094
|
+
done = true;
|
|
1095
|
+
for (let i2 = 0; i2 < __privateGet(this, _parts).length; i2++) {
|
|
1096
|
+
const c = __privateGet(this, _parts)[i2];
|
|
1097
|
+
if (typeof c === "object") {
|
|
1098
|
+
__privateMethod(_b = c, _AST_instances, flatten_fn).call(_b);
|
|
1099
|
+
if (__privateMethod(this, _AST_instances, canAdopt_fn).call(this, c)) {
|
|
1100
|
+
done = false;
|
|
1101
|
+
__privateMethod(this, _AST_instances, adopt_fn).call(this, c, i2);
|
|
1102
|
+
} else if (__privateMethod(this, _AST_instances, canAdoptWithSpace_fn).call(this, c)) {
|
|
1103
|
+
done = false;
|
|
1104
|
+
__privateMethod(this, _AST_instances, adoptWithSpace_fn).call(this, c, i2);
|
|
1105
|
+
} else if (__privateMethod(this, _AST_instances, canUsurp_fn).call(this, c)) {
|
|
1106
|
+
done = false;
|
|
1107
|
+
__privateMethod(this, _AST_instances, usurp_fn).call(this, c);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
} while (!done && ++iterations < 10);
|
|
1112
|
+
}
|
|
1113
|
+
__privateSet(this, _toString, void 0);
|
|
1114
|
+
};
|
|
986
1115
|
partsToRegExp_fn = function(dot) {
|
|
987
1116
|
return __privateGet(this, _parts).map((p) => {
|
|
988
1117
|
if (typeof p === "string") {
|
|
@@ -997,11 +1126,13 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
997
1126
|
let escaping = false;
|
|
998
1127
|
let re = "";
|
|
999
1128
|
let uflag = false;
|
|
1129
|
+
let inStar = false;
|
|
1000
1130
|
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
1001
1131
|
const c = glob.charAt(i2);
|
|
1002
1132
|
if (escaping) {
|
|
1003
1133
|
escaping = false;
|
|
1004
1134
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
1135
|
+
inStar = false;
|
|
1005
1136
|
continue;
|
|
1006
1137
|
}
|
|
1007
1138
|
if (c === "\\") {
|
|
@@ -1019,16 +1150,19 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
1019
1150
|
uflag = uflag || needUflag;
|
|
1020
1151
|
i2 += consumed - 1;
|
|
1021
1152
|
hasMagic = hasMagic || magic;
|
|
1153
|
+
inStar = false;
|
|
1022
1154
|
continue;
|
|
1023
1155
|
}
|
|
1024
1156
|
}
|
|
1025
1157
|
if (c === "*") {
|
|
1026
|
-
if (
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1158
|
+
if (inStar)
|
|
1159
|
+
continue;
|
|
1160
|
+
inStar = true;
|
|
1161
|
+
re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star;
|
|
1030
1162
|
hasMagic = true;
|
|
1031
1163
|
continue;
|
|
1164
|
+
} else {
|
|
1165
|
+
inStar = false;
|
|
1032
1166
|
}
|
|
1033
1167
|
if (c === "?") {
|
|
1034
1168
|
re += qmark;
|
|
@@ -1039,8 +1173,8 @@ parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
|
1039
1173
|
}
|
|
1040
1174
|
return [re, unescape(glob), !!hasMagic, uflag];
|
|
1041
1175
|
};
|
|
1042
|
-
__privateAdd(
|
|
1043
|
-
|
|
1176
|
+
__privateAdd(AST, _AST_static);
|
|
1177
|
+
_a = AST;
|
|
1044
1178
|
|
|
1045
1179
|
// node_modules/minimatch/dist/esm/escape.js
|
|
1046
1180
|
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
@@ -1179,28 +1313,33 @@ var match = (list, pattern, options = {}) => {
|
|
|
1179
1313
|
minimatch.match = match;
|
|
1180
1314
|
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1181
1315
|
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1316
|
+
var _Minimatch_instances, matchGlobstar_fn, matchGlobStarBodySections_fn, matchOne_fn;
|
|
1182
1317
|
var Minimatch = class {
|
|
1183
|
-
options;
|
|
1184
|
-
set;
|
|
1185
|
-
pattern;
|
|
1186
|
-
windowsPathsNoEscape;
|
|
1187
|
-
nonegate;
|
|
1188
|
-
negate;
|
|
1189
|
-
comment;
|
|
1190
|
-
empty;
|
|
1191
|
-
preserveMultipleSlashes;
|
|
1192
|
-
partial;
|
|
1193
|
-
globSet;
|
|
1194
|
-
globParts;
|
|
1195
|
-
nocase;
|
|
1196
|
-
isWindows;
|
|
1197
|
-
platform;
|
|
1198
|
-
windowsNoMagicRoot;
|
|
1199
|
-
regexp;
|
|
1200
1318
|
constructor(pattern, options = {}) {
|
|
1319
|
+
__privateAdd(this, _Minimatch_instances);
|
|
1320
|
+
__publicField(this, "options");
|
|
1321
|
+
__publicField(this, "set");
|
|
1322
|
+
__publicField(this, "pattern");
|
|
1323
|
+
__publicField(this, "windowsPathsNoEscape");
|
|
1324
|
+
__publicField(this, "nonegate");
|
|
1325
|
+
__publicField(this, "negate");
|
|
1326
|
+
__publicField(this, "comment");
|
|
1327
|
+
__publicField(this, "empty");
|
|
1328
|
+
__publicField(this, "preserveMultipleSlashes");
|
|
1329
|
+
__publicField(this, "partial");
|
|
1330
|
+
__publicField(this, "globSet");
|
|
1331
|
+
__publicField(this, "globParts");
|
|
1332
|
+
__publicField(this, "nocase");
|
|
1333
|
+
__publicField(this, "isWindows");
|
|
1334
|
+
__publicField(this, "platform");
|
|
1335
|
+
__publicField(this, "windowsNoMagicRoot");
|
|
1336
|
+
__publicField(this, "maxGlobstarRecursion");
|
|
1337
|
+
__publicField(this, "regexp");
|
|
1338
|
+
var _a2;
|
|
1201
1339
|
assertValidPattern(pattern);
|
|
1202
1340
|
options = options || {};
|
|
1203
1341
|
this.options = options;
|
|
1342
|
+
this.maxGlobstarRecursion = (_a2 = options.maxGlobstarRecursion) != null ? _a2 : 200;
|
|
1204
1343
|
this.pattern = pattern;
|
|
1205
1344
|
this.platform = options.platform || defaultPlatform;
|
|
1206
1345
|
this.isWindows = this.platform === "win32";
|
|
@@ -1468,10 +1607,11 @@ var Minimatch = class {
|
|
|
1468
1607
|
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
1469
1608
|
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
1470
1609
|
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
1471
|
-
if (
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1610
|
+
if (matched) {
|
|
1611
|
+
globParts[i2] = [];
|
|
1612
|
+
globParts[j] = matched;
|
|
1613
|
+
break;
|
|
1614
|
+
}
|
|
1475
1615
|
}
|
|
1476
1616
|
}
|
|
1477
1617
|
return globParts.filter((gs) => gs.length);
|
|
@@ -1532,7 +1672,8 @@ var Minimatch = class {
|
|
|
1532
1672
|
// out of pattern, then that's fine, as long as all
|
|
1533
1673
|
// the parts match.
|
|
1534
1674
|
matchOne(file, pattern, partial = false) {
|
|
1535
|
-
|
|
1675
|
+
let fileStartIndex = 0;
|
|
1676
|
+
let patternStartIndex = 0;
|
|
1536
1677
|
if (this.isWindows) {
|
|
1537
1678
|
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1538
1679
|
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
@@ -1541,14 +1682,14 @@ var Minimatch = class {
|
|
|
1541
1682
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1542
1683
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1543
1684
|
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1544
|
-
const [fd, pd] = [
|
|
1685
|
+
const [fd, pd] = [
|
|
1686
|
+
file[fdi],
|
|
1687
|
+
pattern[pdi]
|
|
1688
|
+
];
|
|
1545
1689
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1546
1690
|
pattern[pdi] = fd;
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
} else if (fdi > pdi) {
|
|
1550
|
-
file = file.slice(fdi);
|
|
1551
|
-
}
|
|
1691
|
+
patternStartIndex = pdi;
|
|
1692
|
+
fileStartIndex = fdi;
|
|
1552
1693
|
}
|
|
1553
1694
|
}
|
|
1554
1695
|
}
|
|
@@ -1556,71 +1697,10 @@ var Minimatch = class {
|
|
|
1556
1697
|
if (optimizationLevel >= 2) {
|
|
1557
1698
|
file = this.levelTwoFileOptimize(file);
|
|
1558
1699
|
}
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1562
|
-
this.debug("matchOne loop");
|
|
1563
|
-
var p = pattern[pi];
|
|
1564
|
-
var f = file[fi];
|
|
1565
|
-
this.debug(pattern, p, f);
|
|
1566
|
-
if (p === false) {
|
|
1567
|
-
return false;
|
|
1568
|
-
}
|
|
1569
|
-
if (p === GLOBSTAR) {
|
|
1570
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1571
|
-
var fr = fi;
|
|
1572
|
-
var pr = pi + 1;
|
|
1573
|
-
if (pr === pl) {
|
|
1574
|
-
this.debug("** at the end");
|
|
1575
|
-
for (; fi < fl; fi++) {
|
|
1576
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
1577
|
-
return false;
|
|
1578
|
-
}
|
|
1579
|
-
return true;
|
|
1580
|
-
}
|
|
1581
|
-
while (fr < fl) {
|
|
1582
|
-
var swallowee = file[fr];
|
|
1583
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
1584
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
1585
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
1586
|
-
return true;
|
|
1587
|
-
} else {
|
|
1588
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
1589
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
1590
|
-
break;
|
|
1591
|
-
}
|
|
1592
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1593
|
-
fr++;
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
if (partial) {
|
|
1597
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
1598
|
-
if (fr === fl) {
|
|
1599
|
-
return true;
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
return false;
|
|
1603
|
-
}
|
|
1604
|
-
let hit;
|
|
1605
|
-
if (typeof p === "string") {
|
|
1606
|
-
hit = f === p;
|
|
1607
|
-
this.debug("string match", p, f, hit);
|
|
1608
|
-
} else {
|
|
1609
|
-
hit = p.test(f);
|
|
1610
|
-
this.debug("pattern match", p, f, hit);
|
|
1611
|
-
}
|
|
1612
|
-
if (!hit)
|
|
1613
|
-
return false;
|
|
1614
|
-
}
|
|
1615
|
-
if (fi === fl && pi === pl) {
|
|
1616
|
-
return true;
|
|
1617
|
-
} else if (fi === fl) {
|
|
1618
|
-
return partial;
|
|
1619
|
-
} else if (pi === pl) {
|
|
1620
|
-
return fi === fl - 1 && file[fi] === "";
|
|
1621
|
-
} else {
|
|
1622
|
-
throw new Error("wtf?");
|
|
1700
|
+
if (pattern.includes(GLOBSTAR)) {
|
|
1701
|
+
return __privateMethod(this, _Minimatch_instances, matchGlobstar_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
1623
1702
|
}
|
|
1703
|
+
return __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, pattern, partial, fileStartIndex, patternStartIndex);
|
|
1624
1704
|
}
|
|
1625
1705
|
braceExpand() {
|
|
1626
1706
|
return braceExpand(this.pattern, this.options);
|
|
@@ -1759,6 +1839,135 @@ var Minimatch = class {
|
|
|
1759
1839
|
return minimatch.defaults(def).Minimatch;
|
|
1760
1840
|
}
|
|
1761
1841
|
};
|
|
1842
|
+
_Minimatch_instances = new WeakSet();
|
|
1843
|
+
matchGlobstar_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
1844
|
+
const firstgs = pattern.indexOf(GLOBSTAR, patternIndex);
|
|
1845
|
+
const lastgs = pattern.lastIndexOf(GLOBSTAR);
|
|
1846
|
+
const [head, body, tail] = partial ? [
|
|
1847
|
+
pattern.slice(patternIndex, firstgs),
|
|
1848
|
+
pattern.slice(firstgs + 1),
|
|
1849
|
+
[]
|
|
1850
|
+
] : [
|
|
1851
|
+
pattern.slice(patternIndex, firstgs),
|
|
1852
|
+
pattern.slice(firstgs + 1, lastgs),
|
|
1853
|
+
pattern.slice(lastgs + 1)
|
|
1854
|
+
];
|
|
1855
|
+
if (head.length) {
|
|
1856
|
+
const fileHead = file.slice(fileIndex, fileIndex + head.length);
|
|
1857
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, fileHead, head, partial, 0, 0))
|
|
1858
|
+
return false;
|
|
1859
|
+
fileIndex += head.length;
|
|
1860
|
+
}
|
|
1861
|
+
let fileTailMatch = 0;
|
|
1862
|
+
if (tail.length) {
|
|
1863
|
+
if (tail.length + fileIndex > file.length)
|
|
1864
|
+
return false;
|
|
1865
|
+
let tailStart = file.length - tail.length;
|
|
1866
|
+
if (__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0)) {
|
|
1867
|
+
fileTailMatch = tail.length;
|
|
1868
|
+
} else {
|
|
1869
|
+
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
1870
|
+
return false;
|
|
1871
|
+
}
|
|
1872
|
+
tailStart--;
|
|
1873
|
+
if (!__privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file, tail, partial, tailStart, 0))
|
|
1874
|
+
return false;
|
|
1875
|
+
fileTailMatch = tail.length + 1;
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
if (!body.length) {
|
|
1879
|
+
let sawSome = !!fileTailMatch;
|
|
1880
|
+
for (let i3 = fileIndex; i3 < file.length - fileTailMatch; i3++) {
|
|
1881
|
+
const f = String(file[i3]);
|
|
1882
|
+
sawSome = true;
|
|
1883
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
1884
|
+
return false;
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
return partial || sawSome;
|
|
1888
|
+
}
|
|
1889
|
+
const bodySegments = [[[], 0]];
|
|
1890
|
+
let currentBody = bodySegments[0];
|
|
1891
|
+
let nonGsParts = 0;
|
|
1892
|
+
const nonGsPartsSums = [0];
|
|
1893
|
+
for (const b of body) {
|
|
1894
|
+
if (b === GLOBSTAR) {
|
|
1895
|
+
nonGsPartsSums.push(nonGsParts);
|
|
1896
|
+
currentBody = [[], 0];
|
|
1897
|
+
bodySegments.push(currentBody);
|
|
1898
|
+
} else {
|
|
1899
|
+
currentBody[0].push(b);
|
|
1900
|
+
nonGsParts++;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
let i2 = bodySegments.length - 1;
|
|
1904
|
+
const fileLength = file.length - fileTailMatch;
|
|
1905
|
+
for (const b of bodySegments) {
|
|
1906
|
+
b[1] = fileLength - (nonGsPartsSums[i2--] + b[0].length);
|
|
1907
|
+
}
|
|
1908
|
+
return !!__privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex, 0, partial, 0, !!fileTailMatch);
|
|
1909
|
+
};
|
|
1910
|
+
matchGlobStarBodySections_fn = function(file, bodySegments, fileIndex, bodyIndex, partial, globStarDepth, sawTail) {
|
|
1911
|
+
const bs = bodySegments[bodyIndex];
|
|
1912
|
+
if (!bs) {
|
|
1913
|
+
for (let i2 = fileIndex; i2 < file.length; i2++) {
|
|
1914
|
+
sawTail = true;
|
|
1915
|
+
const f = file[i2];
|
|
1916
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
1917
|
+
return false;
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
return sawTail;
|
|
1921
|
+
}
|
|
1922
|
+
const [body, after] = bs;
|
|
1923
|
+
while (fileIndex <= after) {
|
|
1924
|
+
const m = __privateMethod(this, _Minimatch_instances, matchOne_fn).call(this, file.slice(0, fileIndex + body.length), body, partial, fileIndex, 0);
|
|
1925
|
+
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
1926
|
+
const sub = __privateMethod(this, _Minimatch_instances, matchGlobStarBodySections_fn).call(this, file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial, globStarDepth + 1, sawTail);
|
|
1927
|
+
if (sub !== false)
|
|
1928
|
+
return sub;
|
|
1929
|
+
}
|
|
1930
|
+
const f = file[fileIndex];
|
|
1931
|
+
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
1932
|
+
return false;
|
|
1933
|
+
}
|
|
1934
|
+
fileIndex++;
|
|
1935
|
+
}
|
|
1936
|
+
return partial || null;
|
|
1937
|
+
};
|
|
1938
|
+
matchOne_fn = function(file, pattern, partial, fileIndex, patternIndex) {
|
|
1939
|
+
let fi;
|
|
1940
|
+
let pi;
|
|
1941
|
+
let pl;
|
|
1942
|
+
let fl;
|
|
1943
|
+
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1944
|
+
this.debug("matchOne loop");
|
|
1945
|
+
let p = pattern[pi];
|
|
1946
|
+
let f = file[fi];
|
|
1947
|
+
this.debug(pattern, p, f);
|
|
1948
|
+
if (p === false || p === GLOBSTAR)
|
|
1949
|
+
return false;
|
|
1950
|
+
let hit;
|
|
1951
|
+
if (typeof p === "string") {
|
|
1952
|
+
hit = f === p;
|
|
1953
|
+
this.debug("string match", p, f, hit);
|
|
1954
|
+
} else {
|
|
1955
|
+
hit = p.test(f);
|
|
1956
|
+
this.debug("pattern match", p, f, hit);
|
|
1957
|
+
}
|
|
1958
|
+
if (!hit)
|
|
1959
|
+
return false;
|
|
1960
|
+
}
|
|
1961
|
+
if (fi === fl && pi === pl) {
|
|
1962
|
+
return true;
|
|
1963
|
+
} else if (fi === fl) {
|
|
1964
|
+
return partial;
|
|
1965
|
+
} else if (pi === pl) {
|
|
1966
|
+
return fi === fl - 1 && file[fi] === "";
|
|
1967
|
+
} else {
|
|
1968
|
+
throw new Error("wtf?");
|
|
1969
|
+
}
|
|
1970
|
+
};
|
|
1762
1971
|
minimatch.AST = AST;
|
|
1763
1972
|
minimatch.Minimatch = Minimatch;
|
|
1764
1973
|
minimatch.escape = escape;
|
|
@@ -1766,8 +1975,8 @@ minimatch.unescape = unescape;
|
|
|
1766
1975
|
|
|
1767
1976
|
// src/utils/query-nonce-meta-tag-content.ts
|
|
1768
1977
|
function queryNonceMetaTagContent(doc) {
|
|
1769
|
-
var
|
|
1770
|
-
return (_c = (_b = (
|
|
1978
|
+
var _a2, _b, _c;
|
|
1979
|
+
return (_c = (_b = (_a2 = doc.head) == null ? void 0 : _a2.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1771
1980
|
}
|
|
1772
1981
|
|
|
1773
1982
|
// src/utils/regular-expression.ts
|
|
@@ -1973,7 +2182,7 @@ function createStyleSheetIfNeededAndSupported(styles2) {
|
|
|
1973
2182
|
var globalStyleSheet;
|
|
1974
2183
|
var GLOBAL_STYLE_ID = "sc-global";
|
|
1975
2184
|
function createShadowRoot(cmpMeta) {
|
|
1976
|
-
var
|
|
2185
|
+
var _a2;
|
|
1977
2186
|
const opts = { mode: "open" };
|
|
1978
2187
|
if (import_app_data3.BUILD.shadowDelegatesFocus) {
|
|
1979
2188
|
opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);
|
|
@@ -1985,7 +2194,7 @@ function createShadowRoot(cmpMeta) {
|
|
|
1985
2194
|
}
|
|
1986
2195
|
}
|
|
1987
2196
|
const shadowRoot = this.attachShadow(opts);
|
|
1988
|
-
if (globalStyleSheet === void 0) globalStyleSheet = (
|
|
2197
|
+
if (globalStyleSheet === void 0) globalStyleSheet = (_a2 = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a2 : null;
|
|
1989
2198
|
if (globalStyleSheet) {
|
|
1990
2199
|
if (supportsMutableAdoptedStyleSheets) {
|
|
1991
2200
|
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
@@ -2471,8 +2680,8 @@ function dispatchSlotChangeEvent(elm) {
|
|
|
2471
2680
|
elm.dispatchEvent(new CustomEvent("slotchange", { bubbles: false, cancelable: false, composed: false }));
|
|
2472
2681
|
}
|
|
2473
2682
|
function findSlotFromSlottedNode(slottedNode, parentHost) {
|
|
2474
|
-
var
|
|
2475
|
-
parentHost = parentHost || ((
|
|
2683
|
+
var _a2;
|
|
2684
|
+
parentHost = parentHost || ((_a2 = slottedNode["s-ol"]) == null ? void 0 : _a2.parentElement);
|
|
2476
2685
|
if (!parentHost) return { slotNode: null, slotName: "" };
|
|
2477
2686
|
const slotName = slottedNode["s-sn"] = getSlotName(slottedNode) || "";
|
|
2478
2687
|
const childNodes = internalCall(parentHost, "childNodes");
|
|
@@ -2763,8 +2972,8 @@ var patchNextSibling = (node) => {
|
|
|
2763
2972
|
patchHostOriginalAccessor("nextSibling", node);
|
|
2764
2973
|
Object.defineProperty(node, "nextSibling", {
|
|
2765
2974
|
get: function() {
|
|
2766
|
-
var
|
|
2767
|
-
const parentNodes = (
|
|
2975
|
+
var _a2;
|
|
2976
|
+
const parentNodes = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.childNodes;
|
|
2768
2977
|
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
2769
2978
|
if (parentNodes && index > -1) {
|
|
2770
2979
|
return parentNodes[index + 1];
|
|
@@ -2778,8 +2987,8 @@ var patchNextElementSibling = (element) => {
|
|
|
2778
2987
|
patchHostOriginalAccessor("nextElementSibling", element);
|
|
2779
2988
|
Object.defineProperty(element, "nextElementSibling", {
|
|
2780
2989
|
get: function() {
|
|
2781
|
-
var
|
|
2782
|
-
const parentEles = (
|
|
2990
|
+
var _a2;
|
|
2991
|
+
const parentEles = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.children;
|
|
2783
2992
|
const index = parentEles == null ? void 0 : parentEles.indexOf(this);
|
|
2784
2993
|
if (parentEles && index > -1) {
|
|
2785
2994
|
return parentEles[index + 1];
|
|
@@ -2793,8 +3002,8 @@ var patchPreviousSibling = (node) => {
|
|
|
2793
3002
|
patchHostOriginalAccessor("previousSibling", node);
|
|
2794
3003
|
Object.defineProperty(node, "previousSibling", {
|
|
2795
3004
|
get: function() {
|
|
2796
|
-
var
|
|
2797
|
-
const parentNodes = (
|
|
3005
|
+
var _a2;
|
|
3006
|
+
const parentNodes = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.childNodes;
|
|
2798
3007
|
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
2799
3008
|
if (parentNodes && index > -1) {
|
|
2800
3009
|
return parentNodes[index - 1];
|
|
@@ -2808,8 +3017,8 @@ var patchPreviousElementSibling = (element) => {
|
|
|
2808
3017
|
patchHostOriginalAccessor("previousElementSibling", element);
|
|
2809
3018
|
Object.defineProperty(element, "previousElementSibling", {
|
|
2810
3019
|
get: function() {
|
|
2811
|
-
var
|
|
2812
|
-
const parentNodes = (
|
|
3020
|
+
var _a2;
|
|
3021
|
+
const parentNodes = (_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode.children;
|
|
2813
3022
|
const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);
|
|
2814
3023
|
if (parentNodes && index > -1) {
|
|
2815
3024
|
return parentNodes[index - 1];
|
|
@@ -2823,8 +3032,8 @@ var patchParentNode = (node) => {
|
|
|
2823
3032
|
patchHostOriginalAccessor("parentNode", node);
|
|
2824
3033
|
Object.defineProperty(node, "parentNode", {
|
|
2825
3034
|
get: function() {
|
|
2826
|
-
var
|
|
2827
|
-
return ((
|
|
3035
|
+
var _a2;
|
|
3036
|
+
return ((_a2 = this["s-ol"]) == null ? void 0 : _a2.parentNode) || this.__parentNode;
|
|
2828
3037
|
},
|
|
2829
3038
|
set: function(value) {
|
|
2830
3039
|
this.__parentNode = value;
|
|
@@ -2973,7 +3182,7 @@ var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
|
2973
3182
|
styles.set(scopeId2, style);
|
|
2974
3183
|
};
|
|
2975
3184
|
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
2976
|
-
var
|
|
3185
|
+
var _a2, _b, _c;
|
|
2977
3186
|
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
2978
3187
|
const style = styles.get(scopeId2);
|
|
2979
3188
|
if (!import_app_data7.BUILD.attachStyles || !win.document) {
|
|
@@ -2994,7 +3203,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2994
3203
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
2995
3204
|
styleElm = win.document.createElement("style");
|
|
2996
3205
|
styleElm.textContent = style;
|
|
2997
|
-
const nonce = (
|
|
3206
|
+
const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
|
|
2998
3207
|
if (nonce != null) {
|
|
2999
3208
|
styleElm.setAttribute("nonce", nonce);
|
|
3000
3209
|
}
|
|
@@ -3249,7 +3458,7 @@ var validateInputProperties = (inputElm) => {
|
|
|
3249
3458
|
|
|
3250
3459
|
// src/runtime/client-hydrate.ts
|
|
3251
3460
|
var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
3252
|
-
var
|
|
3461
|
+
var _a2, _b, _c, _d;
|
|
3253
3462
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
3254
3463
|
const shadowRoot = hostElm.shadowRoot;
|
|
3255
3464
|
const childRenderNodes = [];
|
|
@@ -3296,7 +3505,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
3296
3505
|
if (childRenderNode.$tag$ === "slot") {
|
|
3297
3506
|
node["s-cr"] = hostElm["s-cr"];
|
|
3298
3507
|
}
|
|
3299
|
-
} else if (((
|
|
3508
|
+
} else if (((_a2 = childRenderNode.$tag$) == null ? void 0 : _a2.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
|
|
3300
3509
|
const cmpMeta = getHostRef(childRenderNode.$elm$);
|
|
3301
3510
|
if (cmpMeta) {
|
|
3302
3511
|
const scopeId3 = getScopeId(
|
|
@@ -3646,10 +3855,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
3646
3855
|
parentVNode.$children$[childVNode.$index$] = childVNode;
|
|
3647
3856
|
}
|
|
3648
3857
|
var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
|
|
3649
|
-
var
|
|
3858
|
+
var _a2, _b;
|
|
3650
3859
|
let slottedNode = slotNode.nextSibling;
|
|
3651
3860
|
slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
|
|
3652
|
-
if (!slottedNode || ((
|
|
3861
|
+
if (!slottedNode || ((_a2 = slottedNode.nodeValue) == null ? void 0 : _a2.startsWith(SLOT_NODE_ID + "."))) return;
|
|
3653
3862
|
do {
|
|
3654
3863
|
if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
|
|
3655
3864
|
slottedNode["s-sn"] = slotName;
|
|
@@ -4079,8 +4288,8 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
|
|
|
4079
4288
|
var computeMode = (elm) => modeResolutionChain.map((h2) => h2(elm)).find((m) => !!m);
|
|
4080
4289
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
4081
4290
|
var getMode = (ref) => {
|
|
4082
|
-
var
|
|
4083
|
-
return (
|
|
4291
|
+
var _a2;
|
|
4292
|
+
return (_a2 = getHostRef(ref)) == null ? void 0 : _a2.$modeName$;
|
|
4084
4293
|
};
|
|
4085
4294
|
|
|
4086
4295
|
// src/runtime/proxy-component.ts
|
|
@@ -4345,7 +4554,7 @@ var isSvgMode = false;
|
|
|
4345
4554
|
var refCallbacksToRemove = [];
|
|
4346
4555
|
var refCallbacksToAttach = [];
|
|
4347
4556
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
4348
|
-
var
|
|
4557
|
+
var _a2;
|
|
4349
4558
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
4350
4559
|
let i2 = 0;
|
|
4351
4560
|
let elm;
|
|
@@ -4423,7 +4632,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
4423
4632
|
elm["s-sr"] = true;
|
|
4424
4633
|
elm["s-cr"] = contentRef;
|
|
4425
4634
|
elm["s-sn"] = newVNode2.$name$ || "";
|
|
4426
|
-
elm["s-rf"] = (
|
|
4635
|
+
elm["s-rf"] = (_a2 = newVNode2.$attrs$) == null ? void 0 : _a2.ref;
|
|
4427
4636
|
patchSlotNode(elm);
|
|
4428
4637
|
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
4429
4638
|
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
@@ -4770,12 +4979,12 @@ var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
4770
4979
|
}
|
|
4771
4980
|
};
|
|
4772
4981
|
function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
4773
|
-
var
|
|
4982
|
+
var _a2, _b;
|
|
4774
4983
|
let scopeId2;
|
|
4775
4984
|
if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
|
|
4776
4985
|
const scopeName = slotNode["s-sn"];
|
|
4777
4986
|
const hostName = slotNode["s-hn"];
|
|
4778
|
-
(
|
|
4987
|
+
(_a2 = newParent.classList) == null ? void 0 : _a2.add(scopeId2 + "-s");
|
|
4779
4988
|
if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
|
|
4780
4989
|
let child = (oldParent.__childNodes || oldParent.childNodes)[0];
|
|
4781
4990
|
let found = false;
|
|
@@ -4791,7 +5000,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
|
4791
5000
|
}
|
|
4792
5001
|
}
|
|
4793
5002
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
4794
|
-
var
|
|
5003
|
+
var _a2, _b, _c, _d, _e;
|
|
4795
5004
|
const hostElm = hostRef.$hostElement$;
|
|
4796
5005
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
4797
5006
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -4863,7 +5072,7 @@ render() {
|
|
|
4863
5072
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
4864
5073
|
const slotRefNode = relocateData.$slotRefNode$;
|
|
4865
5074
|
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {
|
|
4866
|
-
nodeToRelocate["s-ih"] = (
|
|
5075
|
+
nodeToRelocate["s-ih"] = (_a2 = nodeToRelocate.hidden) != null ? _a2 : false;
|
|
4867
5076
|
}
|
|
4868
5077
|
if (slotRefNode) {
|
|
4869
5078
|
const parentNodeRef = slotRefNode.parentNode;
|
|
@@ -4940,14 +5149,14 @@ render() {
|
|
|
4940
5149
|
flushQueuedRefCallbacks();
|
|
4941
5150
|
};
|
|
4942
5151
|
var slotReferenceDebugNode = (slotVNode) => {
|
|
4943
|
-
var
|
|
4944
|
-
return (
|
|
5152
|
+
var _a2;
|
|
5153
|
+
return (_a2 = win.document) == null ? void 0 : _a2.createComment(
|
|
4945
5154
|
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
4946
5155
|
);
|
|
4947
5156
|
};
|
|
4948
5157
|
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
4949
|
-
var
|
|
4950
|
-
return (
|
|
5158
|
+
var _a2;
|
|
5159
|
+
return (_a2 = win.document) == null ? void 0 : _a2.createComment(
|
|
4951
5160
|
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
4952
5161
|
);
|
|
4953
5162
|
};
|
|
@@ -5027,7 +5236,7 @@ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then
|
|
|
5027
5236
|
}) : fn();
|
|
5028
5237
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
5029
5238
|
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
5030
|
-
var
|
|
5239
|
+
var _a2;
|
|
5031
5240
|
const elm = hostRef.$hostElement$;
|
|
5032
5241
|
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
5033
5242
|
const rc = elm["s-rc"];
|
|
@@ -5068,7 +5277,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
5068
5277
|
endRender();
|
|
5069
5278
|
endUpdate();
|
|
5070
5279
|
if (import_app_data14.BUILD.asyncLoading) {
|
|
5071
|
-
const childrenPromises = (
|
|
5280
|
+
const childrenPromises = (_a2 = elm["s-p"]) != null ? _a2 : [];
|
|
5072
5281
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
5073
5282
|
if (childrenPromises.length === 0) {
|
|
5074
5283
|
postUpdate();
|
|
@@ -5179,10 +5388,10 @@ var postUpdateComponent = (hostRef) => {
|
|
|
5179
5388
|
}
|
|
5180
5389
|
};
|
|
5181
5390
|
var forceUpdate = (ref) => {
|
|
5182
|
-
var
|
|
5391
|
+
var _a2;
|
|
5183
5392
|
if (import_app_data14.BUILD.updatable && (Build.isBrowser || Build.isTesting)) {
|
|
5184
5393
|
const hostRef = getHostRef(ref);
|
|
5185
|
-
const isConnected = (
|
|
5394
|
+
const isConnected = (_a2 = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a2.isConnected;
|
|
5186
5395
|
if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
5187
5396
|
scheduleUpdate(hostRef, false);
|
|
5188
5397
|
}
|
|
@@ -5191,13 +5400,13 @@ var forceUpdate = (ref) => {
|
|
|
5191
5400
|
return false;
|
|
5192
5401
|
};
|
|
5193
5402
|
var appDidLoad = (who) => {
|
|
5194
|
-
var
|
|
5403
|
+
var _a2;
|
|
5195
5404
|
if (import_app_data14.BUILD.asyncQueue) {
|
|
5196
5405
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
5197
5406
|
}
|
|
5198
5407
|
nextTick(() => emitEvent(win, "appload", { detail: { namespace: import_app_data14.NAMESPACE } }));
|
|
5199
5408
|
if (import_app_data14.BUILD.hydrateClientSide) {
|
|
5200
|
-
if ((
|
|
5409
|
+
if ((_a2 = plt.$orgLocNodes$) == null ? void 0 : _a2.size) {
|
|
5201
5410
|
plt.$orgLocNodes$.clear();
|
|
5202
5411
|
}
|
|
5203
5412
|
}
|
|
@@ -5227,8 +5436,8 @@ var emitLifecycleEvent = (elm, lifecycleName) => {
|
|
|
5227
5436
|
}
|
|
5228
5437
|
};
|
|
5229
5438
|
var addHydratedFlag = (elm) => {
|
|
5230
|
-
var
|
|
5231
|
-
return import_app_data14.BUILD.hydratedClass ? elm.classList.add((
|
|
5439
|
+
var _a2, _b;
|
|
5440
|
+
return import_app_data14.BUILD.hydratedClass ? elm.classList.add((_a2 = import_app_data14.BUILD.hydratedSelectorName) != null ? _a2 : "hydrated") : import_app_data14.BUILD.hydratedAttribute ? elm.setAttribute((_b = import_app_data14.BUILD.hydratedSelectorName) != null ? _b : "hydrated", "") : void 0;
|
|
5232
5441
|
};
|
|
5233
5442
|
var serverSideConnected = (elm) => {
|
|
5234
5443
|
const children = elm.children;
|
|
@@ -5350,7 +5559,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
5350
5559
|
|
|
5351
5560
|
// src/runtime/proxy-component.ts
|
|
5352
5561
|
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
5353
|
-
var
|
|
5562
|
+
var _a2, _b;
|
|
5354
5563
|
const prototype = Cstr.prototype;
|
|
5355
5564
|
if (import_app_data16.BUILD.isTesting) {
|
|
5356
5565
|
if (prototype.__stencilAugmented) {
|
|
@@ -5363,11 +5572,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
5363
5572
|
const originalFormAssociatedCallback = prototype[cbName];
|
|
5364
5573
|
Object.defineProperty(prototype, cbName, {
|
|
5365
5574
|
value(...args) {
|
|
5366
|
-
var
|
|
5575
|
+
var _a3;
|
|
5367
5576
|
const hostRef = getHostRef(this);
|
|
5368
5577
|
const instance = import_app_data16.BUILD.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;
|
|
5369
5578
|
if (!instance) {
|
|
5370
|
-
(
|
|
5579
|
+
(_a3 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a3.then((asyncInstance) => {
|
|
5371
5580
|
const cb = asyncInstance[cbName];
|
|
5372
5581
|
typeof cb === "function" && cb.call(asyncInstance, ...args);
|
|
5373
5582
|
});
|
|
@@ -5391,7 +5600,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
5391
5600
|
cmpMeta.$serializers$ = Cstr.serializers;
|
|
5392
5601
|
}
|
|
5393
5602
|
}
|
|
5394
|
-
const members = Object.entries((
|
|
5603
|
+
const members = Object.entries((_a2 = cmpMeta.$members$) != null ? _a2 : {});
|
|
5395
5604
|
members.map(([memberName, [memberFlags]]) => {
|
|
5396
5605
|
if ((import_app_data16.BUILD.prop || import_app_data16.BUILD.state) && (memberFlags & 31 /* Prop */ || (!import_app_data16.BUILD.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
5397
5606
|
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
@@ -5495,11 +5704,11 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5495
5704
|
} else if (import_app_data16.BUILD.lazyLoad && import_app_data16.BUILD.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
|
|
5496
5705
|
Object.defineProperty(prototype, memberName, {
|
|
5497
5706
|
value(...args) {
|
|
5498
|
-
var
|
|
5707
|
+
var _a3;
|
|
5499
5708
|
const ref = getHostRef(this);
|
|
5500
|
-
return (
|
|
5501
|
-
var
|
|
5502
|
-
return (
|
|
5709
|
+
return (_a3 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a3.then(() => {
|
|
5710
|
+
var _a4;
|
|
5711
|
+
return (_a4 = ref.$lazyInstance$) == null ? void 0 : _a4[memberName](...args);
|
|
5503
5712
|
});
|
|
5504
5713
|
}
|
|
5505
5714
|
});
|
|
@@ -5509,7 +5718,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5509
5718
|
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
5510
5719
|
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
5511
5720
|
plt.jmp(() => {
|
|
5512
|
-
var
|
|
5721
|
+
var _a3;
|
|
5513
5722
|
const propName = attrNameToPropName.get(attrName);
|
|
5514
5723
|
const hostRef = getHostRef(this);
|
|
5515
5724
|
if (import_app_data16.BUILD.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {
|
|
@@ -5549,7 +5758,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5549
5758
|
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
5550
5759
|
const elm = import_app_data16.BUILD.lazyLoad ? hostRef.$hostElement$ : this;
|
|
5551
5760
|
const instance = import_app_data16.BUILD.lazyLoad ? hostRef.$lazyInstance$ : elm;
|
|
5552
|
-
const entry = (
|
|
5761
|
+
const entry = (_a3 = cmpMeta.$watchers$) == null ? void 0 : _a3[attrName];
|
|
5553
5762
|
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
5554
5763
|
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
5555
5764
|
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
@@ -5573,11 +5782,11 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5573
5782
|
/* @__PURE__ */ new Set([
|
|
5574
5783
|
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
5575
5784
|
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
5576
|
-
var
|
|
5785
|
+
var _a3;
|
|
5577
5786
|
const attrName = m[1] || propName;
|
|
5578
5787
|
attrNameToPropName.set(attrName, propName);
|
|
5579
5788
|
if (import_app_data16.BUILD.reflect && m[0] & 512 /* ReflectAttr */) {
|
|
5580
|
-
(
|
|
5789
|
+
(_a3 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a3.push([propName, attrName]);
|
|
5581
5790
|
}
|
|
5582
5791
|
return attrName;
|
|
5583
5792
|
})
|
|
@@ -5953,7 +6162,7 @@ var hmrStart = (hostElement, cmpMeta, hmrVersionId) => {
|
|
|
5953
6162
|
|
|
5954
6163
|
// src/runtime/bootstrap-lazy.ts
|
|
5955
6164
|
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
5956
|
-
var
|
|
6165
|
+
var _a2;
|
|
5957
6166
|
if (import_app_data21.BUILD.profile && performance.mark) {
|
|
5958
6167
|
performance.mark("st:app:start");
|
|
5959
6168
|
}
|
|
@@ -5988,7 +6197,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
5988
6197
|
let hasSlotRelocation = false;
|
|
5989
6198
|
lazyBundles.map((lazyBundle) => {
|
|
5990
6199
|
lazyBundle[1].map((compactMeta) => {
|
|
5991
|
-
var
|
|
6200
|
+
var _a3, _b, _c;
|
|
5992
6201
|
const cmpMeta = {
|
|
5993
6202
|
$flags$: compactMeta[0],
|
|
5994
6203
|
$tagName$: compactMeta[1],
|
|
@@ -6008,7 +6217,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6008
6217
|
cmpMeta.$attrsToReflect$ = [];
|
|
6009
6218
|
}
|
|
6010
6219
|
if (import_app_data21.BUILD.propChangeCallback) {
|
|
6011
|
-
cmpMeta.$watchers$ = (
|
|
6220
|
+
cmpMeta.$watchers$ = (_a3 = compactMeta[4]) != null ? _a3 : {};
|
|
6012
6221
|
cmpMeta.$serializers$ = (_b = compactMeta[5]) != null ? _b : {};
|
|
6013
6222
|
cmpMeta.$deserializers$ = (_c = compactMeta[6]) != null ? _c : {};
|
|
6014
6223
|
}
|
|
@@ -6063,7 +6272,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6063
6272
|
disconnectedCallback() {
|
|
6064
6273
|
plt.jmp(() => disconnectedCallback(this));
|
|
6065
6274
|
plt.raf(() => {
|
|
6066
|
-
var
|
|
6275
|
+
var _a4;
|
|
6067
6276
|
const hostRef = getHostRef(this);
|
|
6068
6277
|
if (!hostRef) {
|
|
6069
6278
|
return;
|
|
@@ -6072,14 +6281,14 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6072
6281
|
if (i2 > -1) {
|
|
6073
6282
|
deferredConnectedCallbacks.splice(i2, 1);
|
|
6074
6283
|
}
|
|
6075
|
-
if (((
|
|
6284
|
+
if (((_a4 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a4.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
6076
6285
|
delete hostRef.$vnode$.$elm$;
|
|
6077
6286
|
}
|
|
6078
6287
|
});
|
|
6079
6288
|
}
|
|
6080
6289
|
componentOnReady() {
|
|
6081
|
-
var
|
|
6082
|
-
return (
|
|
6290
|
+
var _a4;
|
|
6291
|
+
return (_a4 = getHostRef(this)) == null ? void 0 : _a4.$onReadyPromise$;
|
|
6083
6292
|
}
|
|
6084
6293
|
};
|
|
6085
6294
|
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
@@ -6129,7 +6338,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
6129
6338
|
}
|
|
6130
6339
|
if (dataStyles.innerHTML.length) {
|
|
6131
6340
|
dataStyles.setAttribute("data-styles", "");
|
|
6132
|
-
const nonce = (
|
|
6341
|
+
const nonce = (_a2 = plt.$nonce$) != null ? _a2 : queryNonceMetaTagContent(win.document);
|
|
6133
6342
|
if (nonce != null) {
|
|
6134
6343
|
dataStyles.setAttribute("nonce", nonce);
|
|
6135
6344
|
}
|
|
@@ -6173,11 +6382,11 @@ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =>
|
|
|
6173
6382
|
}
|
|
6174
6383
|
};
|
|
6175
6384
|
var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
6176
|
-
var
|
|
6385
|
+
var _a2;
|
|
6177
6386
|
try {
|
|
6178
6387
|
if (import_app_data22.BUILD.lazyLoad) {
|
|
6179
6388
|
if (hostRef.$flags$ & 256 /* isListenReady */) {
|
|
6180
|
-
(
|
|
6389
|
+
(_a2 = hostRef.$lazyInstance$) == null ? void 0 : _a2[methodName](ev);
|
|
6181
6390
|
} else {
|
|
6182
6391
|
(hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
|
|
6183
6392
|
}
|
|
@@ -6310,7 +6519,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
6310
6519
|
const orgLocationNodes = [];
|
|
6311
6520
|
parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);
|
|
6312
6521
|
orgLocationNodes.forEach((orgLocationNode) => {
|
|
6313
|
-
var
|
|
6522
|
+
var _a2;
|
|
6314
6523
|
if (orgLocationNode != null && orgLocationNode["s-nr"]) {
|
|
6315
6524
|
const nodeRef = orgLocationNode["s-nr"];
|
|
6316
6525
|
let hostId = nodeRef["s-host-id"];
|
|
@@ -6328,7 +6537,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
6328
6537
|
}
|
|
6329
6538
|
} else if (nodeRef.nodeType === 3 /* TextNode */) {
|
|
6330
6539
|
if (hostId === 0) {
|
|
6331
|
-
const textContent = (
|
|
6540
|
+
const textContent = (_a2 = nodeRef.nodeValue) == null ? void 0 : _a2.trim();
|
|
6332
6541
|
if (textContent === "") {
|
|
6333
6542
|
orgLocationNode.remove();
|
|
6334
6543
|
return;
|
|
@@ -6358,7 +6567,7 @@ var insertVdomAnnotations = (doc, staticComponents) => {
|
|
|
6358
6567
|
}
|
|
6359
6568
|
};
|
|
6360
6569
|
var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
6361
|
-
var
|
|
6570
|
+
var _a2;
|
|
6362
6571
|
if (node == null) {
|
|
6363
6572
|
return;
|
|
6364
6573
|
}
|
|
@@ -6366,7 +6575,7 @@ var parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {
|
|
|
6366
6575
|
orgLocationNodes.push(node);
|
|
6367
6576
|
}
|
|
6368
6577
|
if (node.nodeType === 1 /* ElementNode */) {
|
|
6369
|
-
const childNodes = [...Array.from(node.childNodes), ...Array.from(((
|
|
6578
|
+
const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a2 = node.shadowRoot) == null ? void 0 : _a2.childNodes) || [])];
|
|
6370
6579
|
childNodes.forEach((childNode) => {
|
|
6371
6580
|
const hostRef = getHostRef(childNode);
|
|
6372
6581
|
if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {
|