@biggive/components 202601131242.0.0 → 202601201057.0.0
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/biggive/biggive.esm.js +1 -1
- package/dist/biggive/{p-883cc8c6.entry.js → p-00bb4f19.entry.js} +1 -1
- package/dist/biggive/p-039ea423.entry.js +1 -0
- package/dist/biggive/{p-b21800fd.entry.js → p-07c4384e.entry.js} +1 -1
- package/dist/biggive/{p-dbf97887.entry.js → p-0ce0f287.entry.js} +1 -1
- package/dist/biggive/{p-da14dd12.entry.js → p-13bb4b28.entry.js} +1 -1
- package/dist/biggive/{p-f7461305.entry.js → p-1ad783ef.entry.js} +1 -1
- package/dist/biggive/{p-37fcee45.entry.js → p-1c647040.entry.js} +1 -1
- package/dist/biggive/{p-06f84b97.entry.js → p-1cc0dad8.entry.js} +1 -1
- package/dist/biggive/{p-27439b4d.entry.js → p-2cd167ed.entry.js} +1 -1
- package/dist/biggive/{p-7f3c8e12.entry.js → p-2d179315.entry.js} +1 -1
- package/dist/biggive/{p-14b8a0ed.entry.js → p-30e5a365.entry.js} +1 -1
- package/dist/biggive/{p-84cd60fe.entry.js → p-34698f02.entry.js} +1 -1
- package/dist/biggive/{p-e734c856.entry.js → p-3b0742b5.entry.js} +1 -1
- package/dist/biggive/{p-245fc9b4.entry.js → p-3ce0e0de.entry.js} +1 -1
- package/dist/biggive/{p-9e7f178c.entry.js → p-3d11a9b4.entry.js} +1 -1
- package/dist/biggive/{p-4ad94941.entry.js → p-3f1ee3dc.entry.js} +1 -1
- package/dist/biggive/p-4635c414.entry.js +1 -0
- package/dist/biggive/{p-d1cb5ed4.entry.js → p-483a97dd.entry.js} +1 -1
- package/dist/biggive/{p-745d5364.entry.js → p-597460ba.entry.js} +1 -1
- package/dist/biggive/{p-c8428569.entry.js → p-5d55839c.entry.js} +1 -1
- package/dist/biggive/{p-34cdb424.entry.js → p-652b9468.entry.js} +1 -1
- package/dist/biggive/{p-afdaa6ed.entry.js → p-665adfd1.entry.js} +1 -1
- package/dist/biggive/{p-033dc823.entry.js → p-7ad65b4c.entry.js} +1 -1
- package/dist/biggive/{p-a4365a45.entry.js → p-7c7f54ca.entry.js} +1 -1
- package/dist/biggive/{p-bbac6ba7.entry.js → p-7cb10bd9.entry.js} +1 -1
- package/dist/biggive/{p-c827231f.entry.js → p-83f2928b.entry.js} +1 -1
- package/dist/biggive/{p-8a6d38c3.entry.js → p-84d42185.entry.js} +1 -1
- package/dist/biggive/{p-314f0d49.entry.js → p-8567e09e.entry.js} +1 -1
- package/dist/biggive/{p-898d3c08.entry.js → p-8b31509b.entry.js} +1 -1
- package/dist/biggive/{p-dc744db4.entry.js → p-914ec938.entry.js} +1 -1
- package/dist/biggive/{p-3345b69d.entry.js → p-96488837.entry.js} +1 -1
- package/dist/biggive/{p-3a6b0d46.entry.js → p-9e102d3e.entry.js} +1 -1
- package/dist/biggive/{p-341fe120.entry.js → p-a08a6522.entry.js} +1 -1
- package/dist/biggive/{p-5c9fb546.entry.js → p-a0c8167c.entry.js} +1 -1
- package/dist/biggive/{p-7994eb80.entry.js → p-a5d402ff.entry.js} +1 -1
- package/dist/biggive/{p-7aca10c5.entry.js → p-a6cc6db0.entry.js} +1 -1
- package/dist/biggive/{p-fc9a2cf8.entry.js → p-a956740f.entry.js} +1 -1
- package/dist/biggive/{p-731d5bac.entry.js → p-aa929d18.entry.js} +1 -1
- package/dist/biggive/p-acf54c24.entry.js +1 -0
- package/dist/biggive/{p-d35170ca.entry.js → p-adf0ac5a.entry.js} +1 -1
- package/dist/biggive/{p-41c31437.entry.js → p-b644b481.entry.js} +1 -1
- package/dist/biggive/{p-fc68f506.entry.js → p-c039f5dc.entry.js} +1 -1
- package/dist/biggive/{p-38fe8830.entry.js → p-c13e69be.entry.js} +1 -1
- package/dist/biggive/{p-d7de8fce.entry.js → p-c1aee468.entry.js} +1 -1
- package/dist/biggive/{p-36ed7b99.entry.js → p-dd93e787.entry.js} +1 -1
- package/dist/biggive/{p-141e2b10.entry.js → p-de5b0605.entry.js} +1 -1
- package/dist/biggive/{p-687415ae.entry.js → p-e505165b.entry.js} +1 -1
- package/dist/biggive/{p-d4104fd3.entry.js → p-ea0fb5ad.entry.js} +1 -1
- package/dist/biggive/{p-e1ca3b18.entry.js → p-ef3ca77f.entry.js} +1 -1
- package/dist/biggive/p-f72f8cdd.entry.js +1 -0
- package/dist/biggive/{p-fed9faa3.entry.js → p-fc0dbbb1.entry.js} +1 -1
- package/dist/biggive/{p-0d0465cb.entry.js → p-fc629e8a.entry.js} +1 -1
- package/dist/biggive/p-l7-FekKE.js +2 -0
- package/dist/cjs/biggive-accordion-entry.cjs.entry.js +1 -1
- package/dist/cjs/biggive-accordion.cjs.entry.js +1 -1
- package/dist/cjs/biggive-article-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-back-to-top.cjs.entry.js +1 -1
- package/dist/cjs/biggive-basic-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-biography-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-boxed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-branded-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-button.cjs.entry.js +1 -1
- package/dist/cjs/biggive-call-to-action.cjs.entry.js +1 -1
- package/dist/cjs/biggive-campaign-card-filter-grid.cjs.entry.js +1 -1
- package/dist/cjs/biggive-campaign-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-campaign-highlights.cjs.entry.js +1 -1
- package/dist/cjs/biggive-container-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-cookie-banner.cjs.entry.js +1 -1
- package/dist/cjs/biggive-footer.cjs.entry.js +1 -1
- package/dist/cjs/biggive-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/biggive-form.cjs.entry.js +1 -1
- package/dist/cjs/biggive-formatted-text.cjs.entry.js +1 -1
- package/dist/cjs/biggive-grid.cjs.entry.js +1 -1
- package/dist/cjs/biggive-heading-banner.cjs.entry.js +1 -1
- package/dist/cjs/biggive-heading.cjs.entry.js +1 -1
- package/dist/cjs/biggive-hero-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-button.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-card.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/biggive-image.cjs.entry.js +1 -1
- package/dist/cjs/biggive-main-menu.cjs.entry.js +1 -1
- package/dist/cjs/biggive-misc-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-group.cjs.entry.js +1 -1
- package/dist/cjs/biggive-nav-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-page-column.cjs.entry.js +1 -1
- package/dist/cjs/biggive-page-columns.cjs.entry.js +1 -1
- package/dist/cjs/biggive-page-section.cjs.entry.js +1 -1
- package/dist/cjs/biggive-popup.cjs.entry.js +1 -1
- package/dist/cjs/biggive-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/biggive-quote.cjs.entry.js +1 -1
- package/dist/cjs/biggive-sheet.cjs.entry.js +1 -1
- package/dist/cjs/biggive-social-icon.cjs.entry.js +1 -1
- package/dist/cjs/biggive-tab.cjs.entry.js +1 -1
- package/dist/cjs/biggive-tabbed-content.cjs.entry.js +1 -1
- package/dist/cjs/biggive-table.cjs.entry.js +1 -1
- package/dist/cjs/biggive-text-input.cjs.entry.js +1 -1
- package/dist/cjs/biggive-timeline-entry.cjs.entry.js +1 -1
- package/dist/cjs/biggive-timeline.cjs.entry.js +1 -1
- package/dist/cjs/biggive-totalizer-ticker-item.cjs.entry.js +1 -1
- package/dist/cjs/biggive-totalizer.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video-feature.cjs.entry.js +1 -1
- package/dist/cjs/biggive-video.cjs.entry.js +1 -1
- package/dist/cjs/biggive.cjs.js +2 -2
- package/dist/cjs/{index-DQ_Q5ber.js → index-9eGSeKBf.js} +229 -1904
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/philco-footer.cjs.entry.js +1 -1
- package/dist/cjs/philco-main-menu.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/biggive-accordion-entry.entry.js +1 -1
- package/dist/esm/biggive-accordion.entry.js +1 -1
- package/dist/esm/biggive-article-card.entry.js +1 -1
- package/dist/esm/biggive-back-to-top.entry.js +1 -1
- package/dist/esm/biggive-basic-card.entry.js +1 -1
- package/dist/esm/biggive-biography-card.entry.js +1 -1
- package/dist/esm/biggive-boxed-content.entry.js +1 -1
- package/dist/esm/biggive-branded-image.entry.js +1 -1
- package/dist/esm/biggive-button.entry.js +1 -1
- package/dist/esm/biggive-call-to-action.entry.js +1 -1
- package/dist/esm/biggive-campaign-card-filter-grid.entry.js +1 -1
- package/dist/esm/biggive-campaign-card.entry.js +1 -1
- package/dist/esm/biggive-campaign-highlights.entry.js +1 -1
- package/dist/esm/biggive-container-card.entry.js +1 -1
- package/dist/esm/biggive-cookie-banner.entry.js +1 -1
- package/dist/esm/biggive-footer.entry.js +1 -1
- package/dist/esm/biggive-form-field-select.entry.js +1 -1
- package/dist/esm/biggive-form.entry.js +1 -1
- package/dist/esm/biggive-formatted-text.entry.js +1 -1
- package/dist/esm/biggive-grid.entry.js +1 -1
- package/dist/esm/biggive-heading-banner.entry.js +1 -1
- package/dist/esm/biggive-heading.entry.js +1 -1
- package/dist/esm/biggive-hero-image.entry.js +1 -1
- package/dist/esm/biggive-icon-button.entry.js +1 -1
- package/dist/esm/biggive-image-button.entry.js +1 -1
- package/dist/esm/biggive-image-card.entry.js +1 -1
- package/dist/esm/biggive-image-feature.entry.js +1 -1
- package/dist/esm/biggive-image.entry.js +1 -1
- package/dist/esm/biggive-main-menu.entry.js +1 -1
- package/dist/esm/biggive-misc-icon.entry.js +1 -1
- package/dist/esm/biggive-nav-group.entry.js +1 -1
- package/dist/esm/biggive-nav-item.entry.js +1 -1
- package/dist/esm/biggive-page-column.entry.js +1 -1
- package/dist/esm/biggive-page-columns.entry.js +1 -1
- package/dist/esm/biggive-page-section.entry.js +1 -1
- package/dist/esm/biggive-popup.entry.js +1 -1
- package/dist/esm/biggive-progress-bar.entry.js +1 -1
- package/dist/esm/biggive-quote.entry.js +1 -1
- package/dist/esm/biggive-sheet.entry.js +1 -1
- package/dist/esm/biggive-social-icon.entry.js +1 -1
- package/dist/esm/biggive-tab.entry.js +1 -1
- package/dist/esm/biggive-tabbed-content.entry.js +1 -1
- package/dist/esm/biggive-table.entry.js +1 -1
- package/dist/esm/biggive-text-input.entry.js +1 -1
- package/dist/esm/biggive-timeline-entry.entry.js +1 -1
- package/dist/esm/biggive-timeline.entry.js +1 -1
- package/dist/esm/biggive-totalizer-ticker-item.entry.js +1 -1
- package/dist/esm/biggive-totalizer.entry.js +1 -1
- package/dist/esm/biggive-video-feature.entry.js +1 -1
- package/dist/esm/biggive-video.entry.js +1 -1
- package/dist/esm/biggive.js +3 -3
- package/dist/esm/{index-YKo_OpIM.js → index-l7-FekKE.js} +229 -1904
- package/dist/esm/loader.js +2 -2
- package/dist/esm/philco-footer.entry.js +1 -1
- package/dist/esm/philco-main-menu.entry.js +1 -1
- package/hydrate/index.js +3838 -3848
- package/hydrate/index.mjs +3838 -3848
- package/package.json +1 -1
- package/dist/biggive/p-2b4c37c5.entry.js +0 -1
- package/dist/biggive/p-4ca621e7.entry.js +0 -1
- package/dist/biggive/p-8b8e64db.entry.js +0 -1
- package/dist/biggive/p-YKo_OpIM.js +0 -2
- package/dist/biggive/p-d0113557.entry.js +0 -1
|
@@ -4,254 +4,9 @@ const NAMESPACE = 'biggive';
|
|
|
4
4
|
const BUILD = /* biggive */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, shadowDom: true, state: true, updatable: true};
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
|
-
Stencil Client Platform v4.41.
|
|
7
|
+
Stencil Client Platform v4.41.2 | MIT Licensed | https://stenciljs.com
|
|
8
8
|
*/
|
|
9
|
-
var __create = Object.create;
|
|
10
|
-
var __defProp = Object.defineProperty;
|
|
11
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
14
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
-
var __typeError = (msg) => {
|
|
16
|
-
throw TypeError(msg);
|
|
17
|
-
};
|
|
18
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
19
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
20
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
21
|
-
};
|
|
22
|
-
var __export = (target, all) => {
|
|
23
|
-
for (var name in all)
|
|
24
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
25
|
-
};
|
|
26
|
-
var __copyProps = (to, from, except, desc) => {
|
|
27
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
28
|
-
for (let key of __getOwnPropNames(from))
|
|
29
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
30
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31
|
-
}
|
|
32
|
-
return to;
|
|
33
|
-
};
|
|
34
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
35
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
36
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
37
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
38
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
39
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
40
|
-
mod
|
|
41
|
-
));
|
|
42
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
43
|
-
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
44
|
-
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
45
|
-
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
46
|
-
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
|
|
47
|
-
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
48
9
|
|
|
49
|
-
// node_modules/balanced-match/index.js
|
|
50
|
-
var require_balanced_match = __commonJS({
|
|
51
|
-
"node_modules/balanced-match/index.js"(exports, module) {
|
|
52
|
-
module.exports = balanced;
|
|
53
|
-
function balanced(a, b, str) {
|
|
54
|
-
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
55
|
-
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
56
|
-
var r = range(a, b, str);
|
|
57
|
-
return r && {
|
|
58
|
-
start: r[0],
|
|
59
|
-
end: r[1],
|
|
60
|
-
pre: str.slice(0, r[0]),
|
|
61
|
-
body: str.slice(r[0] + a.length, r[1]),
|
|
62
|
-
post: str.slice(r[1] + b.length)
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function maybeMatch(reg, str) {
|
|
66
|
-
var m = str.match(reg);
|
|
67
|
-
return m ? m[0] : null;
|
|
68
|
-
}
|
|
69
|
-
balanced.range = range;
|
|
70
|
-
function range(a, b, str) {
|
|
71
|
-
var begs, beg, left, right, result;
|
|
72
|
-
var ai = str.indexOf(a);
|
|
73
|
-
var bi = str.indexOf(b, ai + 1);
|
|
74
|
-
var i2 = ai;
|
|
75
|
-
if (ai >= 0 && bi > 0) {
|
|
76
|
-
if (a === b) {
|
|
77
|
-
return [ai, bi];
|
|
78
|
-
}
|
|
79
|
-
begs = [];
|
|
80
|
-
left = str.length;
|
|
81
|
-
while (i2 >= 0 && !result) {
|
|
82
|
-
if (i2 == ai) {
|
|
83
|
-
begs.push(i2);
|
|
84
|
-
ai = str.indexOf(a, i2 + 1);
|
|
85
|
-
} else if (begs.length == 1) {
|
|
86
|
-
result = [begs.pop(), bi];
|
|
87
|
-
} else {
|
|
88
|
-
beg = begs.pop();
|
|
89
|
-
if (beg < left) {
|
|
90
|
-
left = beg;
|
|
91
|
-
right = bi;
|
|
92
|
-
}
|
|
93
|
-
bi = str.indexOf(b, i2 + 1);
|
|
94
|
-
}
|
|
95
|
-
i2 = ai < bi && ai >= 0 ? ai : bi;
|
|
96
|
-
}
|
|
97
|
-
if (begs.length) {
|
|
98
|
-
result = [left, right];
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
return result;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
// node_modules/brace-expansion/index.js
|
|
107
|
-
var require_brace_expansion = __commonJS({
|
|
108
|
-
"node_modules/brace-expansion/index.js"(exports, module) {
|
|
109
|
-
var balanced = require_balanced_match();
|
|
110
|
-
module.exports = expandTop;
|
|
111
|
-
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
112
|
-
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
113
|
-
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
114
|
-
var escComma = "\0COMMA" + Math.random() + "\0";
|
|
115
|
-
var escPeriod = "\0PERIOD" + Math.random() + "\0";
|
|
116
|
-
function numeric(str) {
|
|
117
|
-
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
|
|
118
|
-
}
|
|
119
|
-
function escapeBraces(str) {
|
|
120
|
-
return str.split("\\\\").join(escSlash).split("\\{").join(escOpen).split("\\}").join(escClose).split("\\,").join(escComma).split("\\.").join(escPeriod);
|
|
121
|
-
}
|
|
122
|
-
function unescapeBraces(str) {
|
|
123
|
-
return str.split(escSlash).join("\\").split(escOpen).join("{").split(escClose).join("}").split(escComma).join(",").split(escPeriod).join(".");
|
|
124
|
-
}
|
|
125
|
-
function parseCommaParts(str) {
|
|
126
|
-
if (!str)
|
|
127
|
-
return [""];
|
|
128
|
-
var parts = [];
|
|
129
|
-
var m = balanced("{", "}", str);
|
|
130
|
-
if (!m)
|
|
131
|
-
return str.split(",");
|
|
132
|
-
var pre = m.pre;
|
|
133
|
-
var body = m.body;
|
|
134
|
-
var post = m.post;
|
|
135
|
-
var p = pre.split(",");
|
|
136
|
-
p[p.length - 1] += "{" + body + "}";
|
|
137
|
-
var postParts = parseCommaParts(post);
|
|
138
|
-
if (post.length) {
|
|
139
|
-
p[p.length - 1] += postParts.shift();
|
|
140
|
-
p.push.apply(p, postParts);
|
|
141
|
-
}
|
|
142
|
-
parts.push.apply(parts, p);
|
|
143
|
-
return parts;
|
|
144
|
-
}
|
|
145
|
-
function expandTop(str) {
|
|
146
|
-
if (!str)
|
|
147
|
-
return [];
|
|
148
|
-
if (str.substr(0, 2) === "{}") {
|
|
149
|
-
str = "\\{\\}" + str.substr(2);
|
|
150
|
-
}
|
|
151
|
-
return expand2(escapeBraces(str), true).map(unescapeBraces);
|
|
152
|
-
}
|
|
153
|
-
function embrace(str) {
|
|
154
|
-
return "{" + str + "}";
|
|
155
|
-
}
|
|
156
|
-
function isPadded(el) {
|
|
157
|
-
return /^-?0\d/.test(el);
|
|
158
|
-
}
|
|
159
|
-
function lte(i2, y) {
|
|
160
|
-
return i2 <= y;
|
|
161
|
-
}
|
|
162
|
-
function gte(i2, y) {
|
|
163
|
-
return i2 >= y;
|
|
164
|
-
}
|
|
165
|
-
function expand2(str, isTop) {
|
|
166
|
-
var expansions = [];
|
|
167
|
-
var m = balanced("{", "}", str);
|
|
168
|
-
if (!m) return [str];
|
|
169
|
-
var pre = m.pre;
|
|
170
|
-
var post = m.post.length ? expand2(m.post, false) : [""];
|
|
171
|
-
if (/\$$/.test(m.pre)) {
|
|
172
|
-
for (var k = 0; k < post.length; k++) {
|
|
173
|
-
var expansion = pre + "{" + m.body + "}" + post[k];
|
|
174
|
-
expansions.push(expansion);
|
|
175
|
-
}
|
|
176
|
-
} else {
|
|
177
|
-
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
178
|
-
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
179
|
-
var isSequence = isNumericSequence || isAlphaSequence;
|
|
180
|
-
var isOptions = m.body.indexOf(",") >= 0;
|
|
181
|
-
if (!isSequence && !isOptions) {
|
|
182
|
-
if (m.post.match(/,(?!,).*\}/)) {
|
|
183
|
-
str = m.pre + "{" + m.body + escClose + m.post;
|
|
184
|
-
return expand2(str);
|
|
185
|
-
}
|
|
186
|
-
return [str];
|
|
187
|
-
}
|
|
188
|
-
var n;
|
|
189
|
-
if (isSequence) {
|
|
190
|
-
n = m.body.split(/\.\./);
|
|
191
|
-
} else {
|
|
192
|
-
n = parseCommaParts(m.body);
|
|
193
|
-
if (n.length === 1) {
|
|
194
|
-
n = expand2(n[0], false).map(embrace);
|
|
195
|
-
if (n.length === 1) {
|
|
196
|
-
return post.map(function(p) {
|
|
197
|
-
return m.pre + n[0] + p;
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
var N;
|
|
203
|
-
if (isSequence) {
|
|
204
|
-
var x = numeric(n[0]);
|
|
205
|
-
var y = numeric(n[1]);
|
|
206
|
-
var width = Math.max(n[0].length, n[1].length);
|
|
207
|
-
var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1;
|
|
208
|
-
var test = lte;
|
|
209
|
-
var reverse = y < x;
|
|
210
|
-
if (reverse) {
|
|
211
|
-
incr *= -1;
|
|
212
|
-
test = gte;
|
|
213
|
-
}
|
|
214
|
-
var pad = n.some(isPadded);
|
|
215
|
-
N = [];
|
|
216
|
-
for (var i2 = x; test(i2, y); i2 += incr) {
|
|
217
|
-
var c;
|
|
218
|
-
if (isAlphaSequence) {
|
|
219
|
-
c = String.fromCharCode(i2);
|
|
220
|
-
if (c === "\\")
|
|
221
|
-
c = "";
|
|
222
|
-
} else {
|
|
223
|
-
c = String(i2);
|
|
224
|
-
if (pad) {
|
|
225
|
-
var need = width - c.length;
|
|
226
|
-
if (need > 0) {
|
|
227
|
-
var z = new Array(need + 1).join("0");
|
|
228
|
-
if (i2 < 0)
|
|
229
|
-
c = "-" + z + c.slice(1);
|
|
230
|
-
else
|
|
231
|
-
c = z + c;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
N.push(c);
|
|
236
|
-
}
|
|
237
|
-
} else {
|
|
238
|
-
N = [];
|
|
239
|
-
for (var j = 0; j < n.length; j++) {
|
|
240
|
-
N.push.apply(N, expand2(n[j], false));
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
for (var j = 0; j < N.length; j++) {
|
|
244
|
-
for (var k = 0; k < post.length; k++) {
|
|
245
|
-
var expansion = pre + N[j] + post[k];
|
|
246
|
-
if (!isTop || isSequence || expansion)
|
|
247
|
-
expansions.push(expansion);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
return expansions;
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
10
|
|
|
256
11
|
// src/utils/constants.ts
|
|
257
12
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
|
@@ -356,1637 +111,117 @@ var consoleError = (e, el) => (0, console.error)(e, el);
|
|
|
356
111
|
|
|
357
112
|
// src/client/client-load-module.ts
|
|
358
113
|
var cmpModules = /* @__PURE__ */ new Map();
|
|
359
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
360
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
361
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
362
|
-
if (!bundleId) {
|
|
363
|
-
return void 0;
|
|
364
|
-
}
|
|
365
|
-
const module = cmpModules.get(bundleId) ;
|
|
366
|
-
if (module) {
|
|
367
|
-
return module[exportName];
|
|
368
|
-
}
|
|
369
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
370
|
-
return import(
|
|
371
|
-
/* @vite-ignore */
|
|
372
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
373
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
374
|
-
/* webpackMode: "lazy" */
|
|
375
|
-
`./${bundleId}.entry.js${""}`
|
|
376
|
-
).then(
|
|
377
|
-
(importedModule) => {
|
|
378
|
-
{
|
|
379
|
-
cmpModules.set(bundleId, importedModule);
|
|
380
|
-
}
|
|
381
|
-
return importedModule[exportName];
|
|
382
|
-
},
|
|
383
|
-
(e) => {
|
|
384
|
-
consoleError(e, hostRef.$hostElement$);
|
|
385
|
-
}
|
|
386
|
-
);
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
// src/client/client-style.ts
|
|
390
|
-
var styles = /* @__PURE__ */ new Map();
|
|
391
|
-
|
|
392
|
-
// src/runtime/runtime-constants.ts
|
|
393
|
-
var CONTENT_REF_ID = "r";
|
|
394
|
-
var ORG_LOCATION_ID = "o";
|
|
395
|
-
var SLOT_NODE_ID = "s";
|
|
396
|
-
var TEXT_NODE_ID = "t";
|
|
397
|
-
var COMMENT_NODE_ID = "c";
|
|
398
|
-
var HYDRATE_ID = "s-id";
|
|
399
|
-
var HYDRATED_STYLE_ID = "sty-id";
|
|
400
|
-
var HYDRATE_CHILD_ID = "c-id";
|
|
401
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
402
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
403
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
404
|
-
var H = win.HTMLElement || class {
|
|
405
|
-
};
|
|
406
|
-
var plt = {
|
|
407
|
-
$flags$: 0,
|
|
408
|
-
$resourcesUrl$: "",
|
|
409
|
-
jmp: (h2) => h2(),
|
|
410
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
411
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
412
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
413
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
414
|
-
};
|
|
415
|
-
var supportsShadow = BUILD.shadowDom;
|
|
416
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
417
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
418
|
-
try {
|
|
419
|
-
if (!win.document.adoptedStyleSheets) {
|
|
420
|
-
return false;
|
|
421
|
-
}
|
|
422
|
-
new CSSStyleSheet();
|
|
423
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
424
|
-
} catch (e) {
|
|
425
|
-
}
|
|
426
|
-
return false;
|
|
427
|
-
})() ;
|
|
428
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
429
|
-
var queuePending = false;
|
|
430
|
-
var queueDomReads = [];
|
|
431
|
-
var queueDomWrites = [];
|
|
432
|
-
var queueTask = (queue, write) => (cb) => {
|
|
433
|
-
queue.push(cb);
|
|
434
|
-
if (!queuePending) {
|
|
435
|
-
queuePending = true;
|
|
436
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
437
|
-
nextTick(flush);
|
|
438
|
-
} else {
|
|
439
|
-
plt.raf(flush);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
};
|
|
443
|
-
var consume = (queue) => {
|
|
444
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
445
|
-
try {
|
|
446
|
-
queue[i2](performance.now());
|
|
447
|
-
} catch (e) {
|
|
448
|
-
consoleError(e);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
queue.length = 0;
|
|
452
|
-
};
|
|
453
|
-
var flush = () => {
|
|
454
|
-
consume(queueDomReads);
|
|
455
|
-
{
|
|
456
|
-
consume(queueDomWrites);
|
|
457
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
458
|
-
plt.raf(flush);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
463
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
464
|
-
|
|
465
|
-
// src/runtime/asset-path.ts
|
|
466
|
-
var getAssetPath = (path2) => {
|
|
467
|
-
const assetUrl = new URL(path2, plt.$resourcesUrl$);
|
|
468
|
-
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
469
|
-
};
|
|
470
|
-
var isComplexType = (o) => {
|
|
471
|
-
o = typeof o;
|
|
472
|
-
return o === "object" || o === "function";
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
476
|
-
var import_brace_expansion = __toESM(require_brace_expansion());
|
|
477
|
-
|
|
478
|
-
// node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
479
|
-
var MAX_PATTERN_LENGTH = 1024 * 64;
|
|
480
|
-
var assertValidPattern = (pattern) => {
|
|
481
|
-
if (typeof pattern !== "string") {
|
|
482
|
-
throw new TypeError("invalid pattern");
|
|
483
|
-
}
|
|
484
|
-
if (pattern.length > MAX_PATTERN_LENGTH) {
|
|
485
|
-
throw new TypeError("pattern is too long");
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
|
|
489
|
-
// node_modules/minimatch/dist/esm/brace-expressions.js
|
|
490
|
-
var posixClasses = {
|
|
491
|
-
"[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
|
|
492
|
-
"[:alpha:]": ["\\p{L}\\p{Nl}", true],
|
|
493
|
-
"[:ascii:]": ["\\x00-\\x7f", false],
|
|
494
|
-
"[:blank:]": ["\\p{Zs}\\t", true],
|
|
495
|
-
"[:cntrl:]": ["\\p{Cc}", true],
|
|
496
|
-
"[:digit:]": ["\\p{Nd}", true],
|
|
497
|
-
"[:graph:]": ["\\p{Z}\\p{C}", true, true],
|
|
498
|
-
"[:lower:]": ["\\p{Ll}", true],
|
|
499
|
-
"[:print:]": ["\\p{C}", true],
|
|
500
|
-
"[:punct:]": ["\\p{P}", true],
|
|
501
|
-
"[:space:]": ["\\p{Z}\\t\\r\\n\\v\\f", true],
|
|
502
|
-
"[:upper:]": ["\\p{Lu}", true],
|
|
503
|
-
"[:word:]": ["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}", true],
|
|
504
|
-
"[:xdigit:]": ["A-Fa-f0-9", false]
|
|
505
|
-
};
|
|
506
|
-
var braceEscape = (s) => s.replace(/[[\]\\-]/g, "\\$&");
|
|
507
|
-
var regexpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
508
|
-
var rangesToString = (ranges) => ranges.join("");
|
|
509
|
-
var parseClass = (glob, position) => {
|
|
510
|
-
const pos = position;
|
|
511
|
-
if (glob.charAt(pos) !== "[") {
|
|
512
|
-
throw new Error("not in a brace expression");
|
|
513
|
-
}
|
|
514
|
-
const ranges = [];
|
|
515
|
-
const negs = [];
|
|
516
|
-
let i2 = pos + 1;
|
|
517
|
-
let sawStart = false;
|
|
518
|
-
let uflag = false;
|
|
519
|
-
let escaping = false;
|
|
520
|
-
let negate = false;
|
|
521
|
-
let endPos = pos;
|
|
522
|
-
let rangeStart = "";
|
|
523
|
-
WHILE: while (i2 < glob.length) {
|
|
524
|
-
const c = glob.charAt(i2);
|
|
525
|
-
if ((c === "!" || c === "^") && i2 === pos + 1) {
|
|
526
|
-
negate = true;
|
|
527
|
-
i2++;
|
|
528
|
-
continue;
|
|
529
|
-
}
|
|
530
|
-
if (c === "]" && sawStart && !escaping) {
|
|
531
|
-
endPos = i2 + 1;
|
|
532
|
-
break;
|
|
533
|
-
}
|
|
534
|
-
sawStart = true;
|
|
535
|
-
if (c === "\\") {
|
|
536
|
-
if (!escaping) {
|
|
537
|
-
escaping = true;
|
|
538
|
-
i2++;
|
|
539
|
-
continue;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
if (c === "[" && !escaping) {
|
|
543
|
-
for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {
|
|
544
|
-
if (glob.startsWith(cls, i2)) {
|
|
545
|
-
if (rangeStart) {
|
|
546
|
-
return ["$.", false, glob.length - pos, true];
|
|
547
|
-
}
|
|
548
|
-
i2 += cls.length;
|
|
549
|
-
if (neg)
|
|
550
|
-
negs.push(unip);
|
|
551
|
-
else
|
|
552
|
-
ranges.push(unip);
|
|
553
|
-
uflag = uflag || u;
|
|
554
|
-
continue WHILE;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
escaping = false;
|
|
559
|
-
if (rangeStart) {
|
|
560
|
-
if (c > rangeStart) {
|
|
561
|
-
ranges.push(braceEscape(rangeStart) + "-" + braceEscape(c));
|
|
562
|
-
} else if (c === rangeStart) {
|
|
563
|
-
ranges.push(braceEscape(c));
|
|
564
|
-
}
|
|
565
|
-
rangeStart = "";
|
|
566
|
-
i2++;
|
|
567
|
-
continue;
|
|
568
|
-
}
|
|
569
|
-
if (glob.startsWith("-]", i2 + 1)) {
|
|
570
|
-
ranges.push(braceEscape(c + "-"));
|
|
571
|
-
i2 += 2;
|
|
572
|
-
continue;
|
|
573
|
-
}
|
|
574
|
-
if (glob.startsWith("-", i2 + 1)) {
|
|
575
|
-
rangeStart = c;
|
|
576
|
-
i2 += 2;
|
|
577
|
-
continue;
|
|
578
|
-
}
|
|
579
|
-
ranges.push(braceEscape(c));
|
|
580
|
-
i2++;
|
|
581
|
-
}
|
|
582
|
-
if (endPos < i2) {
|
|
583
|
-
return ["", false, 0, false];
|
|
584
|
-
}
|
|
585
|
-
if (!ranges.length && !negs.length) {
|
|
586
|
-
return ["$.", false, glob.length - pos, true];
|
|
587
|
-
}
|
|
588
|
-
if (negs.length === 0 && ranges.length === 1 && /^\\?.$/.test(ranges[0]) && !negate) {
|
|
589
|
-
const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0];
|
|
590
|
-
return [regexpEscape(r), false, endPos - pos, false];
|
|
591
|
-
}
|
|
592
|
-
const sranges = "[" + (negate ? "^" : "") + rangesToString(ranges) + "]";
|
|
593
|
-
const snegs = "[" + (negate ? "" : "^") + rangesToString(negs) + "]";
|
|
594
|
-
const comb = ranges.length && negs.length ? "(" + sranges + "|" + snegs + ")" : ranges.length ? sranges : snegs;
|
|
595
|
-
return [comb, uflag, endPos - pos, true];
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
// node_modules/minimatch/dist/esm/unescape.js
|
|
599
|
-
var unescape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
600
|
-
return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
// node_modules/minimatch/dist/esm/ast.js
|
|
604
|
-
var types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
605
|
-
var isExtglobType = (c) => types.has(c);
|
|
606
|
-
var startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
607
|
-
var startNoDot = "(?!\\.)";
|
|
608
|
-
var addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
609
|
-
var justDots = /* @__PURE__ */ new Set(["..", "."]);
|
|
610
|
-
var reSpecials = new Set("().*{}+?[]^$\\!");
|
|
611
|
-
var regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
612
|
-
var qmark = "[^/]";
|
|
613
|
-
var star = qmark + "*?";
|
|
614
|
-
var starNoEmpty = qmark + "+?";
|
|
615
|
-
var _root, _hasMagic, _uflag, _parts, _parent, _parentIndex, _negs, _filledNegs, _options, _toString, _emptyExt, _AST_instances, fillNegs_fn, _AST_static, parseAST_fn, partsToRegExp_fn, parseGlob_fn;
|
|
616
|
-
var _AST = class _AST {
|
|
617
|
-
constructor(type, parent, options = {}) {
|
|
618
|
-
__privateAdd(this, _AST_instances);
|
|
619
|
-
__publicField(this, "type");
|
|
620
|
-
__privateAdd(this, _root);
|
|
621
|
-
__privateAdd(this, _hasMagic);
|
|
622
|
-
__privateAdd(this, _uflag, false);
|
|
623
|
-
__privateAdd(this, _parts, []);
|
|
624
|
-
__privateAdd(this, _parent);
|
|
625
|
-
__privateAdd(this, _parentIndex);
|
|
626
|
-
__privateAdd(this, _negs);
|
|
627
|
-
__privateAdd(this, _filledNegs, false);
|
|
628
|
-
__privateAdd(this, _options);
|
|
629
|
-
__privateAdd(this, _toString);
|
|
630
|
-
// set to true if it's an extglob with no children
|
|
631
|
-
// (which really means one child of '')
|
|
632
|
-
__privateAdd(this, _emptyExt, false);
|
|
633
|
-
this.type = type;
|
|
634
|
-
if (type)
|
|
635
|
-
__privateSet(this, _hasMagic, true);
|
|
636
|
-
__privateSet(this, _parent, parent);
|
|
637
|
-
__privateSet(this, _root, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _root) : this);
|
|
638
|
-
__privateSet(this, _options, __privateGet(this, _root) === this ? options : __privateGet(__privateGet(this, _root), _options));
|
|
639
|
-
__privateSet(this, _negs, __privateGet(this, _root) === this ? [] : __privateGet(__privateGet(this, _root), _negs));
|
|
640
|
-
if (type === "!" && !__privateGet(__privateGet(this, _root), _filledNegs))
|
|
641
|
-
__privateGet(this, _negs).push(this);
|
|
642
|
-
__privateSet(this, _parentIndex, __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0);
|
|
643
|
-
}
|
|
644
|
-
get hasMagic() {
|
|
645
|
-
if (__privateGet(this, _hasMagic) !== void 0)
|
|
646
|
-
return __privateGet(this, _hasMagic);
|
|
647
|
-
for (const p of __privateGet(this, _parts)) {
|
|
648
|
-
if (typeof p === "string")
|
|
649
|
-
continue;
|
|
650
|
-
if (p.type || p.hasMagic)
|
|
651
|
-
return __privateSet(this, _hasMagic, true);
|
|
652
|
-
}
|
|
653
|
-
return __privateGet(this, _hasMagic);
|
|
654
|
-
}
|
|
655
|
-
// reconstructs the pattern
|
|
656
|
-
toString() {
|
|
657
|
-
if (__privateGet(this, _toString) !== void 0)
|
|
658
|
-
return __privateGet(this, _toString);
|
|
659
|
-
if (!this.type) {
|
|
660
|
-
return __privateSet(this, _toString, __privateGet(this, _parts).map((p) => String(p)).join(""));
|
|
661
|
-
} else {
|
|
662
|
-
return __privateSet(this, _toString, this.type + "(" + __privateGet(this, _parts).map((p) => String(p)).join("|") + ")");
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
push(...parts) {
|
|
666
|
-
for (const p of parts) {
|
|
667
|
-
if (p === "")
|
|
668
|
-
continue;
|
|
669
|
-
if (typeof p !== "string" && !(p instanceof _AST && __privateGet(p, _parent) === this)) {
|
|
670
|
-
throw new Error("invalid part: " + p);
|
|
671
|
-
}
|
|
672
|
-
__privateGet(this, _parts).push(p);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
toJSON() {
|
|
676
|
-
var _a;
|
|
677
|
-
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())];
|
|
678
|
-
if (this.isStart() && !this.type)
|
|
679
|
-
ret.unshift([]);
|
|
680
|
-
if (this.isEnd() && (this === __privateGet(this, _root) || __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")) {
|
|
681
|
-
ret.push({});
|
|
682
|
-
}
|
|
683
|
-
return ret;
|
|
684
|
-
}
|
|
685
|
-
isStart() {
|
|
686
|
-
var _a;
|
|
687
|
-
if (__privateGet(this, _root) === this)
|
|
688
|
-
return true;
|
|
689
|
-
if (!((_a = __privateGet(this, _parent)) == null ? void 0 : _a.isStart()))
|
|
690
|
-
return false;
|
|
691
|
-
if (__privateGet(this, _parentIndex) === 0)
|
|
692
|
-
return true;
|
|
693
|
-
const p = __privateGet(this, _parent);
|
|
694
|
-
for (let i2 = 0; i2 < __privateGet(this, _parentIndex); i2++) {
|
|
695
|
-
const pp = __privateGet(p, _parts)[i2];
|
|
696
|
-
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
697
|
-
return false;
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
return true;
|
|
701
|
-
}
|
|
702
|
-
isEnd() {
|
|
703
|
-
var _a, _b, _c;
|
|
704
|
-
if (__privateGet(this, _root) === this)
|
|
705
|
-
return true;
|
|
706
|
-
if (((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!")
|
|
707
|
-
return true;
|
|
708
|
-
if (!((_b = __privateGet(this, _parent)) == null ? void 0 : _b.isEnd()))
|
|
709
|
-
return false;
|
|
710
|
-
if (!this.type)
|
|
711
|
-
return (_c = __privateGet(this, _parent)) == null ? void 0 : _c.isEnd();
|
|
712
|
-
const pl = __privateGet(this, _parent) ? __privateGet(__privateGet(this, _parent), _parts).length : 0;
|
|
713
|
-
return __privateGet(this, _parentIndex) === pl - 1;
|
|
714
|
-
}
|
|
715
|
-
copyIn(part) {
|
|
716
|
-
if (typeof part === "string")
|
|
717
|
-
this.push(part);
|
|
718
|
-
else
|
|
719
|
-
this.push(part.clone(this));
|
|
720
|
-
}
|
|
721
|
-
clone(parent) {
|
|
722
|
-
const c = new _AST(this.type, parent);
|
|
723
|
-
for (const p of __privateGet(this, _parts)) {
|
|
724
|
-
c.copyIn(p);
|
|
725
|
-
}
|
|
726
|
-
return c;
|
|
727
|
-
}
|
|
728
|
-
static fromGlob(pattern, options = {}) {
|
|
729
|
-
var _a;
|
|
730
|
-
const ast = new _AST(null, void 0, options);
|
|
731
|
-
__privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, pattern, ast, 0, options);
|
|
732
|
-
return ast;
|
|
733
|
-
}
|
|
734
|
-
// returns the regular expression if there's magic, or the unescaped
|
|
735
|
-
// string if not.
|
|
736
|
-
toMMPattern() {
|
|
737
|
-
if (this !== __privateGet(this, _root))
|
|
738
|
-
return __privateGet(this, _root).toMMPattern();
|
|
739
|
-
const glob = this.toString();
|
|
740
|
-
const [re, body, hasMagic, uflag] = this.toRegExpSource();
|
|
741
|
-
const anyMagic = hasMagic || __privateGet(this, _hasMagic) || __privateGet(this, _options).nocase && !__privateGet(this, _options).nocaseMagicOnly && glob.toUpperCase() !== glob.toLowerCase();
|
|
742
|
-
if (!anyMagic) {
|
|
743
|
-
return body;
|
|
744
|
-
}
|
|
745
|
-
const flags = (__privateGet(this, _options).nocase ? "i" : "") + (uflag ? "u" : "");
|
|
746
|
-
return Object.assign(new RegExp(`^${re}$`, flags), {
|
|
747
|
-
_src: re,
|
|
748
|
-
_glob: glob
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
get options() {
|
|
752
|
-
return __privateGet(this, _options);
|
|
753
|
-
}
|
|
754
|
-
// returns the string match, the regexp source, whether there's magic
|
|
755
|
-
// in the regexp (so a regular expression is required) and whether or
|
|
756
|
-
// not the uflag is needed for the regular expression (for posix classes)
|
|
757
|
-
// TODO: instead of injecting the start/end at this point, just return
|
|
758
|
-
// the BODY of the regexp, along with the start/end portions suitable
|
|
759
|
-
// for binding the start/end in either a joined full-path makeRe context
|
|
760
|
-
// (where we bind to (^|/), or a standalone matchPart context (where
|
|
761
|
-
// we bind to ^, and not /). Otherwise slashes get duped!
|
|
762
|
-
//
|
|
763
|
-
// In part-matching mode, the start is:
|
|
764
|
-
// - if not isStart: nothing
|
|
765
|
-
// - if traversal possible, but not allowed: ^(?!\.\.?$)
|
|
766
|
-
// - if dots allowed or not possible: ^
|
|
767
|
-
// - if dots possible and not allowed: ^(?!\.)
|
|
768
|
-
// end is:
|
|
769
|
-
// - if not isEnd(): nothing
|
|
770
|
-
// - else: $
|
|
771
|
-
//
|
|
772
|
-
// In full-path matching mode, we put the slash at the START of the
|
|
773
|
-
// pattern, so start is:
|
|
774
|
-
// - if first pattern: same as part-matching mode
|
|
775
|
-
// - if not isStart(): nothing
|
|
776
|
-
// - if traversal possible, but not allowed: /(?!\.\.?(?:$|/))
|
|
777
|
-
// - if dots allowed or not possible: /
|
|
778
|
-
// - if dots possible and not allowed: /(?!\.)
|
|
779
|
-
// end is:
|
|
780
|
-
// - if last pattern, same as part-matching mode
|
|
781
|
-
// - else nothing
|
|
782
|
-
//
|
|
783
|
-
// Always put the (?:$|/) on negated tails, though, because that has to be
|
|
784
|
-
// there to bind the end of the negated pattern portion, and it's easier to
|
|
785
|
-
// just stick it in now rather than try to inject it later in the middle of
|
|
786
|
-
// the pattern.
|
|
787
|
-
//
|
|
788
|
-
// We can just always return the same end, and leave it up to the caller
|
|
789
|
-
// to know whether it's going to be used joined or in parts.
|
|
790
|
-
// And, if the start is adjusted slightly, can do the same there:
|
|
791
|
-
// - if not isStart: nothing
|
|
792
|
-
// - if traversal possible, but not allowed: (?:/|^)(?!\.\.?$)
|
|
793
|
-
// - if dots allowed or not possible: (?:/|^)
|
|
794
|
-
// - if dots possible and not allowed: (?:/|^)(?!\.)
|
|
795
|
-
//
|
|
796
|
-
// But it's better to have a simpler binding without a conditional, for
|
|
797
|
-
// performance, so probably better to return both start options.
|
|
798
|
-
//
|
|
799
|
-
// Then the caller just ignores the end if it's not the first pattern,
|
|
800
|
-
// and the start always gets applied.
|
|
801
|
-
//
|
|
802
|
-
// But that's always going to be $ if it's the ending pattern, or nothing,
|
|
803
|
-
// so the caller can just attach $ at the end of the pattern when building.
|
|
804
|
-
//
|
|
805
|
-
// So the todo is:
|
|
806
|
-
// - better detect what kind of start is needed
|
|
807
|
-
// - return both flavors of starting pattern
|
|
808
|
-
// - attach $ at the end of the pattern when creating the actual RegExp
|
|
809
|
-
//
|
|
810
|
-
// Ah, but wait, no, that all only applies to the root when the first pattern
|
|
811
|
-
// is not an extglob. If the first pattern IS an extglob, then we need all
|
|
812
|
-
// that dot prevention biz to live in the extglob portions, because eg
|
|
813
|
-
// +(*|.x*) can match .xy but not .yx.
|
|
814
|
-
//
|
|
815
|
-
// So, return the two flavors if it's #root and the first child is not an
|
|
816
|
-
// AST, otherwise leave it to the child AST to handle it, and there,
|
|
817
|
-
// use the (?:^|/) style of start binding.
|
|
818
|
-
//
|
|
819
|
-
// Even simplified further:
|
|
820
|
-
// - Since the start for a join is eg /(?!\.) and the start for a part
|
|
821
|
-
// is ^(?!\.), we can just prepend (?!\.) to the pattern (either root
|
|
822
|
-
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
823
|
-
toRegExpSource(allowDot) {
|
|
824
|
-
var _a;
|
|
825
|
-
const dot = allowDot != null ? allowDot : !!__privateGet(this, _options).dot;
|
|
826
|
-
if (__privateGet(this, _root) === this)
|
|
827
|
-
__privateMethod(this, _AST_instances, fillNegs_fn).call(this);
|
|
828
|
-
if (!this.type) {
|
|
829
|
-
const noEmpty = this.isStart() && this.isEnd();
|
|
830
|
-
const src = __privateGet(this, _parts).map((p) => {
|
|
831
|
-
var _a2;
|
|
832
|
-
const [re, _, hasMagic, uflag] = typeof p === "string" ? __privateMethod(_a2 = _AST, _AST_static, parseGlob_fn).call(_a2, p, __privateGet(this, _hasMagic), noEmpty) : p.toRegExpSource(allowDot);
|
|
833
|
-
__privateSet(this, _hasMagic, __privateGet(this, _hasMagic) || hasMagic);
|
|
834
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
835
|
-
return re;
|
|
836
|
-
}).join("");
|
|
837
|
-
let start2 = "";
|
|
838
|
-
if (this.isStart()) {
|
|
839
|
-
if (typeof __privateGet(this, _parts)[0] === "string") {
|
|
840
|
-
const dotTravAllowed = __privateGet(this, _parts).length === 1 && justDots.has(__privateGet(this, _parts)[0]);
|
|
841
|
-
if (!dotTravAllowed) {
|
|
842
|
-
const aps = addPatternStart;
|
|
843
|
-
const needNoTrav = (
|
|
844
|
-
// dots are allowed, and the pattern starts with [ or .
|
|
845
|
-
dot && aps.has(src.charAt(0)) || // the pattern starts with \., and then [ or .
|
|
846
|
-
src.startsWith("\\.") && aps.has(src.charAt(2)) || // the pattern starts with \.\., and then [ or .
|
|
847
|
-
src.startsWith("\\.\\.") && aps.has(src.charAt(4))
|
|
848
|
-
);
|
|
849
|
-
const needNoDot = !dot && !allowDot && aps.has(src.charAt(0));
|
|
850
|
-
start2 = needNoTrav ? startNoTraversal : needNoDot ? startNoDot : "";
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
let end = "";
|
|
855
|
-
if (this.isEnd() && __privateGet(__privateGet(this, _root), _filledNegs) && ((_a = __privateGet(this, _parent)) == null ? void 0 : _a.type) === "!") {
|
|
856
|
-
end = "(?:$|\\/)";
|
|
857
|
-
}
|
|
858
|
-
const final2 = start2 + src + end;
|
|
859
|
-
return [
|
|
860
|
-
final2,
|
|
861
|
-
unescape(src),
|
|
862
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
863
|
-
__privateGet(this, _uflag)
|
|
864
|
-
];
|
|
865
|
-
}
|
|
866
|
-
const repeated = this.type === "*" || this.type === "+";
|
|
867
|
-
const start = this.type === "!" ? "(?:(?!(?:" : "(?:";
|
|
868
|
-
let body = __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, dot);
|
|
869
|
-
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
870
|
-
const s = this.toString();
|
|
871
|
-
__privateSet(this, _parts, [s]);
|
|
872
|
-
this.type = null;
|
|
873
|
-
__privateSet(this, _hasMagic, void 0);
|
|
874
|
-
return [s, unescape(this.toString()), false, false];
|
|
875
|
-
}
|
|
876
|
-
let bodyDotAllowed = !repeated || allowDot || dot || false ? "" : __privateMethod(this, _AST_instances, partsToRegExp_fn).call(this, true);
|
|
877
|
-
if (bodyDotAllowed === body) {
|
|
878
|
-
bodyDotAllowed = "";
|
|
879
|
-
}
|
|
880
|
-
if (bodyDotAllowed) {
|
|
881
|
-
body = `(?:${body})(?:${bodyDotAllowed})*?`;
|
|
882
|
-
}
|
|
883
|
-
let final = "";
|
|
884
|
-
if (this.type === "!" && __privateGet(this, _emptyExt)) {
|
|
885
|
-
final = (this.isStart() && !dot ? startNoDot : "") + starNoEmpty;
|
|
886
|
-
} else {
|
|
887
|
-
const close = this.type === "!" ? (
|
|
888
|
-
// !() must match something,but !(x) can match ''
|
|
889
|
-
"))" + (this.isStart() && !dot && !allowDot ? startNoDot : "") + star + ")"
|
|
890
|
-
) : this.type === "@" ? ")" : this.type === "?" ? ")?" : this.type === "+" && bodyDotAllowed ? ")" : this.type === "*" && bodyDotAllowed ? `)?` : `)${this.type}`;
|
|
891
|
-
final = start + body + close;
|
|
892
|
-
}
|
|
893
|
-
return [
|
|
894
|
-
final,
|
|
895
|
-
unescape(body),
|
|
896
|
-
__privateSet(this, _hasMagic, !!__privateGet(this, _hasMagic)),
|
|
897
|
-
__privateGet(this, _uflag)
|
|
898
|
-
];
|
|
899
|
-
}
|
|
900
|
-
};
|
|
901
|
-
_root = new WeakMap();
|
|
902
|
-
_hasMagic = new WeakMap();
|
|
903
|
-
_uflag = new WeakMap();
|
|
904
|
-
_parts = new WeakMap();
|
|
905
|
-
_parent = new WeakMap();
|
|
906
|
-
_parentIndex = new WeakMap();
|
|
907
|
-
_negs = new WeakMap();
|
|
908
|
-
_filledNegs = new WeakMap();
|
|
909
|
-
_options = new WeakMap();
|
|
910
|
-
_toString = new WeakMap();
|
|
911
|
-
_emptyExt = new WeakMap();
|
|
912
|
-
_AST_instances = new WeakSet();
|
|
913
|
-
fillNegs_fn = function() {
|
|
914
|
-
if (this !== __privateGet(this, _root))
|
|
915
|
-
throw new Error("should only call on root");
|
|
916
|
-
if (__privateGet(this, _filledNegs))
|
|
917
|
-
return this;
|
|
918
|
-
this.toString();
|
|
919
|
-
__privateSet(this, _filledNegs, true);
|
|
920
|
-
let n;
|
|
921
|
-
while (n = __privateGet(this, _negs).pop()) {
|
|
922
|
-
if (n.type !== "!")
|
|
923
|
-
continue;
|
|
924
|
-
let p = n;
|
|
925
|
-
let pp = __privateGet(p, _parent);
|
|
926
|
-
while (pp) {
|
|
927
|
-
for (let i2 = __privateGet(p, _parentIndex) + 1; !pp.type && i2 < __privateGet(pp, _parts).length; i2++) {
|
|
928
|
-
for (const part of __privateGet(n, _parts)) {
|
|
929
|
-
if (typeof part === "string") {
|
|
930
|
-
throw new Error("string part in extglob AST??");
|
|
931
|
-
}
|
|
932
|
-
part.copyIn(__privateGet(pp, _parts)[i2]);
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
p = pp;
|
|
936
|
-
pp = __privateGet(p, _parent);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
return this;
|
|
940
|
-
};
|
|
941
|
-
_AST_static = new WeakSet();
|
|
942
|
-
parseAST_fn = function(str, ast, pos, opt) {
|
|
943
|
-
var _a, _b;
|
|
944
|
-
let escaping = false;
|
|
945
|
-
let inBrace = false;
|
|
946
|
-
let braceStart = -1;
|
|
947
|
-
let braceNeg = false;
|
|
948
|
-
if (ast.type === null) {
|
|
949
|
-
let i3 = pos;
|
|
950
|
-
let acc2 = "";
|
|
951
|
-
while (i3 < str.length) {
|
|
952
|
-
const c = str.charAt(i3++);
|
|
953
|
-
if (escaping || c === "\\") {
|
|
954
|
-
escaping = !escaping;
|
|
955
|
-
acc2 += c;
|
|
956
|
-
continue;
|
|
957
|
-
}
|
|
958
|
-
if (inBrace) {
|
|
959
|
-
if (i3 === braceStart + 1) {
|
|
960
|
-
if (c === "^" || c === "!") {
|
|
961
|
-
braceNeg = true;
|
|
962
|
-
}
|
|
963
|
-
} else if (c === "]" && !(i3 === braceStart + 2 && braceNeg)) {
|
|
964
|
-
inBrace = false;
|
|
965
|
-
}
|
|
966
|
-
acc2 += c;
|
|
967
|
-
continue;
|
|
968
|
-
} else if (c === "[") {
|
|
969
|
-
inBrace = true;
|
|
970
|
-
braceStart = i3;
|
|
971
|
-
braceNeg = false;
|
|
972
|
-
acc2 += c;
|
|
973
|
-
continue;
|
|
974
|
-
}
|
|
975
|
-
if (!opt.noext && isExtglobType(c) && str.charAt(i3) === "(") {
|
|
976
|
-
ast.push(acc2);
|
|
977
|
-
acc2 = "";
|
|
978
|
-
const ext2 = new _AST(c, ast);
|
|
979
|
-
i3 = __privateMethod(_a = _AST, _AST_static, parseAST_fn).call(_a, str, ext2, i3, opt);
|
|
980
|
-
ast.push(ext2);
|
|
981
|
-
continue;
|
|
982
|
-
}
|
|
983
|
-
acc2 += c;
|
|
984
|
-
}
|
|
985
|
-
ast.push(acc2);
|
|
986
|
-
return i3;
|
|
987
|
-
}
|
|
988
|
-
let i2 = pos + 1;
|
|
989
|
-
let part = new _AST(null, ast);
|
|
990
|
-
const parts = [];
|
|
991
|
-
let acc = "";
|
|
992
|
-
while (i2 < str.length) {
|
|
993
|
-
const c = str.charAt(i2++);
|
|
994
|
-
if (escaping || c === "\\") {
|
|
995
|
-
escaping = !escaping;
|
|
996
|
-
acc += c;
|
|
997
|
-
continue;
|
|
998
|
-
}
|
|
999
|
-
if (inBrace) {
|
|
1000
|
-
if (i2 === braceStart + 1) {
|
|
1001
|
-
if (c === "^" || c === "!") {
|
|
1002
|
-
braceNeg = true;
|
|
1003
|
-
}
|
|
1004
|
-
} else if (c === "]" && !(i2 === braceStart + 2 && braceNeg)) {
|
|
1005
|
-
inBrace = false;
|
|
1006
|
-
}
|
|
1007
|
-
acc += c;
|
|
1008
|
-
continue;
|
|
1009
|
-
} else if (c === "[") {
|
|
1010
|
-
inBrace = true;
|
|
1011
|
-
braceStart = i2;
|
|
1012
|
-
braceNeg = false;
|
|
1013
|
-
acc += c;
|
|
1014
|
-
continue;
|
|
1015
|
-
}
|
|
1016
|
-
if (isExtglobType(c) && str.charAt(i2) === "(") {
|
|
1017
|
-
part.push(acc);
|
|
1018
|
-
acc = "";
|
|
1019
|
-
const ext2 = new _AST(c, part);
|
|
1020
|
-
part.push(ext2);
|
|
1021
|
-
i2 = __privateMethod(_b = _AST, _AST_static, parseAST_fn).call(_b, str, ext2, i2, opt);
|
|
1022
|
-
continue;
|
|
1023
|
-
}
|
|
1024
|
-
if (c === "|") {
|
|
1025
|
-
part.push(acc);
|
|
1026
|
-
acc = "";
|
|
1027
|
-
parts.push(part);
|
|
1028
|
-
part = new _AST(null, ast);
|
|
1029
|
-
continue;
|
|
1030
|
-
}
|
|
1031
|
-
if (c === ")") {
|
|
1032
|
-
if (acc === "" && __privateGet(ast, _parts).length === 0) {
|
|
1033
|
-
__privateSet(ast, _emptyExt, true);
|
|
1034
|
-
}
|
|
1035
|
-
part.push(acc);
|
|
1036
|
-
acc = "";
|
|
1037
|
-
ast.push(...parts, part);
|
|
1038
|
-
return i2;
|
|
1039
|
-
}
|
|
1040
|
-
acc += c;
|
|
1041
|
-
}
|
|
1042
|
-
ast.type = null;
|
|
1043
|
-
__privateSet(ast, _hasMagic, void 0);
|
|
1044
|
-
__privateSet(ast, _parts, [str.substring(pos - 1)]);
|
|
1045
|
-
return i2;
|
|
1046
|
-
};
|
|
1047
|
-
partsToRegExp_fn = function(dot) {
|
|
1048
|
-
return __privateGet(this, _parts).map((p) => {
|
|
1049
|
-
if (typeof p === "string") {
|
|
1050
|
-
throw new Error("string type in extglob ast??");
|
|
1051
|
-
}
|
|
1052
|
-
const [re, _, _hasMagic2, uflag] = p.toRegExpSource(dot);
|
|
1053
|
-
__privateSet(this, _uflag, __privateGet(this, _uflag) || uflag);
|
|
1054
|
-
return re;
|
|
1055
|
-
}).filter((p) => !(this.isStart() && this.isEnd()) || !!p).join("|");
|
|
1056
|
-
};
|
|
1057
|
-
parseGlob_fn = function(glob, hasMagic, noEmpty = false) {
|
|
1058
|
-
let escaping = false;
|
|
1059
|
-
let re = "";
|
|
1060
|
-
let uflag = false;
|
|
1061
|
-
for (let i2 = 0; i2 < glob.length; i2++) {
|
|
1062
|
-
const c = glob.charAt(i2);
|
|
1063
|
-
if (escaping) {
|
|
1064
|
-
escaping = false;
|
|
1065
|
-
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
1066
|
-
continue;
|
|
1067
|
-
}
|
|
1068
|
-
if (c === "\\") {
|
|
1069
|
-
if (i2 === glob.length - 1) {
|
|
1070
|
-
re += "\\\\";
|
|
1071
|
-
} else {
|
|
1072
|
-
escaping = true;
|
|
1073
|
-
}
|
|
1074
|
-
continue;
|
|
1075
|
-
}
|
|
1076
|
-
if (c === "[") {
|
|
1077
|
-
const [src, needUflag, consumed, magic] = parseClass(glob, i2);
|
|
1078
|
-
if (consumed) {
|
|
1079
|
-
re += src;
|
|
1080
|
-
uflag = uflag || needUflag;
|
|
1081
|
-
i2 += consumed - 1;
|
|
1082
|
-
hasMagic = hasMagic || magic;
|
|
1083
|
-
continue;
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
if (c === "*") {
|
|
1087
|
-
if (noEmpty && glob === "*")
|
|
1088
|
-
re += starNoEmpty;
|
|
1089
|
-
else
|
|
1090
|
-
re += star;
|
|
1091
|
-
hasMagic = true;
|
|
1092
|
-
continue;
|
|
1093
|
-
}
|
|
1094
|
-
if (c === "?") {
|
|
1095
|
-
re += qmark;
|
|
1096
|
-
hasMagic = true;
|
|
1097
|
-
continue;
|
|
1098
|
-
}
|
|
1099
|
-
re += regExpEscape(c);
|
|
1100
|
-
}
|
|
1101
|
-
return [re, unescape(glob), !!hasMagic, uflag];
|
|
1102
|
-
};
|
|
1103
|
-
__privateAdd(_AST, _AST_static);
|
|
1104
|
-
var AST = _AST;
|
|
1105
|
-
|
|
1106
|
-
// node_modules/minimatch/dist/esm/escape.js
|
|
1107
|
-
var escape = (s, { windowsPathsNoEscape = false } = {}) => {
|
|
1108
|
-
return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
|
|
1109
|
-
};
|
|
1110
|
-
|
|
1111
|
-
// node_modules/minimatch/dist/esm/index.js
|
|
1112
|
-
var minimatch = (p, pattern, options = {}) => {
|
|
1113
|
-
assertValidPattern(pattern);
|
|
1114
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1115
|
-
return false;
|
|
1116
|
-
}
|
|
1117
|
-
return new Minimatch(pattern, options).match(p);
|
|
1118
|
-
};
|
|
1119
|
-
var starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
|
|
1120
|
-
var starDotExtTest = (ext2) => (f) => !f.startsWith(".") && f.endsWith(ext2);
|
|
1121
|
-
var starDotExtTestDot = (ext2) => (f) => f.endsWith(ext2);
|
|
1122
|
-
var starDotExtTestNocase = (ext2) => {
|
|
1123
|
-
ext2 = ext2.toLowerCase();
|
|
1124
|
-
return (f) => !f.startsWith(".") && f.toLowerCase().endsWith(ext2);
|
|
1125
|
-
};
|
|
1126
|
-
var starDotExtTestNocaseDot = (ext2) => {
|
|
1127
|
-
ext2 = ext2.toLowerCase();
|
|
1128
|
-
return (f) => f.toLowerCase().endsWith(ext2);
|
|
1129
|
-
};
|
|
1130
|
-
var starDotStarRE = /^\*+\.\*+$/;
|
|
1131
|
-
var starDotStarTest = (f) => !f.startsWith(".") && f.includes(".");
|
|
1132
|
-
var starDotStarTestDot = (f) => f !== "." && f !== ".." && f.includes(".");
|
|
1133
|
-
var dotStarRE = /^\.\*+$/;
|
|
1134
|
-
var dotStarTest = (f) => f !== "." && f !== ".." && f.startsWith(".");
|
|
1135
|
-
var starRE = /^\*+$/;
|
|
1136
|
-
var starTest = (f) => f.length !== 0 && !f.startsWith(".");
|
|
1137
|
-
var starTestDot = (f) => f.length !== 0 && f !== "." && f !== "..";
|
|
1138
|
-
var qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
|
|
1139
|
-
var qmarksTestNocase = ([$0, ext2 = ""]) => {
|
|
1140
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1141
|
-
if (!ext2)
|
|
1142
|
-
return noext;
|
|
1143
|
-
ext2 = ext2.toLowerCase();
|
|
1144
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1145
|
-
};
|
|
1146
|
-
var qmarksTestNocaseDot = ([$0, ext2 = ""]) => {
|
|
1147
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1148
|
-
if (!ext2)
|
|
1149
|
-
return noext;
|
|
1150
|
-
ext2 = ext2.toLowerCase();
|
|
1151
|
-
return (f) => noext(f) && f.toLowerCase().endsWith(ext2);
|
|
1152
|
-
};
|
|
1153
|
-
var qmarksTestDot = ([$0, ext2 = ""]) => {
|
|
1154
|
-
const noext = qmarksTestNoExtDot([$0]);
|
|
1155
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1156
|
-
};
|
|
1157
|
-
var qmarksTest = ([$0, ext2 = ""]) => {
|
|
1158
|
-
const noext = qmarksTestNoExt([$0]);
|
|
1159
|
-
return !ext2 ? noext : (f) => noext(f) && f.endsWith(ext2);
|
|
1160
|
-
};
|
|
1161
|
-
var qmarksTestNoExt = ([$0]) => {
|
|
1162
|
-
const len = $0.length;
|
|
1163
|
-
return (f) => f.length === len && !f.startsWith(".");
|
|
1164
|
-
};
|
|
1165
|
-
var qmarksTestNoExtDot = ([$0]) => {
|
|
1166
|
-
const len = $0.length;
|
|
1167
|
-
return (f) => f.length === len && f !== "." && f !== "..";
|
|
1168
|
-
};
|
|
1169
|
-
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
1170
|
-
var path = {
|
|
1171
|
-
win32: { sep: "\\" },
|
|
1172
|
-
posix: { sep: "/" }
|
|
1173
|
-
};
|
|
1174
|
-
var sep = defaultPlatform === "win32" ? path.win32.sep : path.posix.sep;
|
|
1175
|
-
minimatch.sep = sep;
|
|
1176
|
-
var GLOBSTAR = Symbol("globstar **");
|
|
1177
|
-
minimatch.GLOBSTAR = GLOBSTAR;
|
|
1178
|
-
var qmark2 = "[^/]";
|
|
1179
|
-
var star2 = qmark2 + "*?";
|
|
1180
|
-
var twoStarDot = "(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";
|
|
1181
|
-
var twoStarNoDot = "(?:(?!(?:\\/|^)\\.).)*?";
|
|
1182
|
-
var filter = (pattern, options = {}) => (p) => minimatch(p, pattern, options);
|
|
1183
|
-
minimatch.filter = filter;
|
|
1184
|
-
var ext = (a, b = {}) => Object.assign({}, a, b);
|
|
1185
|
-
var defaults = (def) => {
|
|
1186
|
-
if (!def || typeof def !== "object" || !Object.keys(def).length) {
|
|
1187
|
-
return minimatch;
|
|
1188
|
-
}
|
|
1189
|
-
const orig = minimatch;
|
|
1190
|
-
const m = (p, pattern, options = {}) => orig(p, pattern, ext(def, options));
|
|
1191
|
-
return Object.assign(m, {
|
|
1192
|
-
Minimatch: class Minimatch extends orig.Minimatch {
|
|
1193
|
-
constructor(pattern, options = {}) {
|
|
1194
|
-
super(pattern, ext(def, options));
|
|
1195
|
-
}
|
|
1196
|
-
static defaults(options) {
|
|
1197
|
-
return orig.defaults(ext(def, options)).Minimatch;
|
|
1198
|
-
}
|
|
1199
|
-
},
|
|
1200
|
-
AST: class AST extends orig.AST {
|
|
1201
|
-
/* c8 ignore start */
|
|
1202
|
-
constructor(type, parent, options = {}) {
|
|
1203
|
-
super(type, parent, ext(def, options));
|
|
1204
|
-
}
|
|
1205
|
-
/* c8 ignore stop */
|
|
1206
|
-
static fromGlob(pattern, options = {}) {
|
|
1207
|
-
return orig.AST.fromGlob(pattern, ext(def, options));
|
|
1208
|
-
}
|
|
1209
|
-
},
|
|
1210
|
-
unescape: (s, options = {}) => orig.unescape(s, ext(def, options)),
|
|
1211
|
-
escape: (s, options = {}) => orig.escape(s, ext(def, options)),
|
|
1212
|
-
filter: (pattern, options = {}) => orig.filter(pattern, ext(def, options)),
|
|
1213
|
-
defaults: (options) => orig.defaults(ext(def, options)),
|
|
1214
|
-
makeRe: (pattern, options = {}) => orig.makeRe(pattern, ext(def, options)),
|
|
1215
|
-
braceExpand: (pattern, options = {}) => orig.braceExpand(pattern, ext(def, options)),
|
|
1216
|
-
match: (list, pattern, options = {}) => orig.match(list, pattern, ext(def, options)),
|
|
1217
|
-
sep: orig.sep,
|
|
1218
|
-
GLOBSTAR
|
|
1219
|
-
});
|
|
1220
|
-
};
|
|
1221
|
-
minimatch.defaults = defaults;
|
|
1222
|
-
var braceExpand = (pattern, options = {}) => {
|
|
1223
|
-
assertValidPattern(pattern);
|
|
1224
|
-
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
|
1225
|
-
return [pattern];
|
|
1226
|
-
}
|
|
1227
|
-
return (0, import_brace_expansion.default)(pattern);
|
|
1228
|
-
};
|
|
1229
|
-
minimatch.braceExpand = braceExpand;
|
|
1230
|
-
var makeRe = (pattern, options = {}) => new Minimatch(pattern, options).makeRe();
|
|
1231
|
-
minimatch.makeRe = makeRe;
|
|
1232
|
-
var match = (list, pattern, options = {}) => {
|
|
1233
|
-
const mm = new Minimatch(pattern, options);
|
|
1234
|
-
list = list.filter((f) => mm.match(f));
|
|
1235
|
-
if (mm.options.nonull && !list.length) {
|
|
1236
|
-
list.push(pattern);
|
|
1237
|
-
}
|
|
1238
|
-
return list;
|
|
1239
|
-
};
|
|
1240
|
-
minimatch.match = match;
|
|
1241
|
-
var globMagic = /[?*]|[+@!]\(.*?\)|\[|\]/;
|
|
1242
|
-
var regExpEscape2 = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
1243
|
-
var Minimatch = class {
|
|
1244
|
-
options;
|
|
1245
|
-
set;
|
|
1246
|
-
pattern;
|
|
1247
|
-
windowsPathsNoEscape;
|
|
1248
|
-
nonegate;
|
|
1249
|
-
negate;
|
|
1250
|
-
comment;
|
|
1251
|
-
empty;
|
|
1252
|
-
preserveMultipleSlashes;
|
|
1253
|
-
partial;
|
|
1254
|
-
globSet;
|
|
1255
|
-
globParts;
|
|
1256
|
-
nocase;
|
|
1257
|
-
isWindows;
|
|
1258
|
-
platform;
|
|
1259
|
-
windowsNoMagicRoot;
|
|
1260
|
-
regexp;
|
|
1261
|
-
constructor(pattern, options = {}) {
|
|
1262
|
-
assertValidPattern(pattern);
|
|
1263
|
-
options = options || {};
|
|
1264
|
-
this.options = options;
|
|
1265
|
-
this.pattern = pattern;
|
|
1266
|
-
this.platform = options.platform || defaultPlatform;
|
|
1267
|
-
this.isWindows = this.platform === "win32";
|
|
1268
|
-
this.windowsPathsNoEscape = !!options.windowsPathsNoEscape || options.allowWindowsEscape === false;
|
|
1269
|
-
if (this.windowsPathsNoEscape) {
|
|
1270
|
-
this.pattern = this.pattern.replace(/\\/g, "/");
|
|
1271
|
-
}
|
|
1272
|
-
this.preserveMultipleSlashes = !!options.preserveMultipleSlashes;
|
|
1273
|
-
this.regexp = null;
|
|
1274
|
-
this.negate = false;
|
|
1275
|
-
this.nonegate = !!options.nonegate;
|
|
1276
|
-
this.comment = false;
|
|
1277
|
-
this.empty = false;
|
|
1278
|
-
this.partial = !!options.partial;
|
|
1279
|
-
this.nocase = !!this.options.nocase;
|
|
1280
|
-
this.windowsNoMagicRoot = options.windowsNoMagicRoot !== void 0 ? options.windowsNoMagicRoot : !!(this.isWindows && this.nocase);
|
|
1281
|
-
this.globSet = [];
|
|
1282
|
-
this.globParts = [];
|
|
1283
|
-
this.set = [];
|
|
1284
|
-
this.make();
|
|
1285
|
-
}
|
|
1286
|
-
hasMagic() {
|
|
1287
|
-
if (this.options.magicalBraces && this.set.length > 1) {
|
|
1288
|
-
return true;
|
|
1289
|
-
}
|
|
1290
|
-
for (const pattern of this.set) {
|
|
1291
|
-
for (const part of pattern) {
|
|
1292
|
-
if (typeof part !== "string")
|
|
1293
|
-
return true;
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
return false;
|
|
1297
|
-
}
|
|
1298
|
-
debug(..._) {
|
|
1299
|
-
}
|
|
1300
|
-
make() {
|
|
1301
|
-
const pattern = this.pattern;
|
|
1302
|
-
const options = this.options;
|
|
1303
|
-
if (!options.nocomment && pattern.charAt(0) === "#") {
|
|
1304
|
-
this.comment = true;
|
|
1305
|
-
return;
|
|
1306
|
-
}
|
|
1307
|
-
if (!pattern) {
|
|
1308
|
-
this.empty = true;
|
|
1309
|
-
return;
|
|
1310
|
-
}
|
|
1311
|
-
this.parseNegate();
|
|
1312
|
-
this.globSet = [...new Set(this.braceExpand())];
|
|
1313
|
-
if (options.debug) {
|
|
1314
|
-
this.debug = (...args) => console.error(...args);
|
|
1315
|
-
}
|
|
1316
|
-
this.debug(this.pattern, this.globSet);
|
|
1317
|
-
const rawGlobParts = this.globSet.map((s) => this.slashSplit(s));
|
|
1318
|
-
this.globParts = this.preprocess(rawGlobParts);
|
|
1319
|
-
this.debug(this.pattern, this.globParts);
|
|
1320
|
-
let set = this.globParts.map((s, _, __) => {
|
|
1321
|
-
if (this.isWindows && this.windowsNoMagicRoot) {
|
|
1322
|
-
const isUNC = s[0] === "" && s[1] === "" && (s[2] === "?" || !globMagic.test(s[2])) && !globMagic.test(s[3]);
|
|
1323
|
-
const isDrive = /^[a-z]:/i.test(s[0]);
|
|
1324
|
-
if (isUNC) {
|
|
1325
|
-
return [...s.slice(0, 4), ...s.slice(4).map((ss) => this.parse(ss))];
|
|
1326
|
-
} else if (isDrive) {
|
|
1327
|
-
return [s[0], ...s.slice(1).map((ss) => this.parse(ss))];
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
return s.map((ss) => this.parse(ss));
|
|
1331
|
-
});
|
|
1332
|
-
this.debug(this.pattern, set);
|
|
1333
|
-
this.set = set.filter((s) => s.indexOf(false) === -1);
|
|
1334
|
-
if (this.isWindows) {
|
|
1335
|
-
for (let i2 = 0; i2 < this.set.length; i2++) {
|
|
1336
|
-
const p = this.set[i2];
|
|
1337
|
-
if (p[0] === "" && p[1] === "" && this.globParts[i2][2] === "?" && typeof p[3] === "string" && /^[a-z]:$/i.test(p[3])) {
|
|
1338
|
-
p[2] = "?";
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
this.debug(this.pattern, this.set);
|
|
1343
|
-
}
|
|
1344
|
-
// various transforms to equivalent pattern sets that are
|
|
1345
|
-
// faster to process in a filesystem walk. The goal is to
|
|
1346
|
-
// eliminate what we can, and push all ** patterns as far
|
|
1347
|
-
// to the right as possible, even if it increases the number
|
|
1348
|
-
// of patterns that we have to process.
|
|
1349
|
-
preprocess(globParts) {
|
|
1350
|
-
if (this.options.noglobstar) {
|
|
1351
|
-
for (let i2 = 0; i2 < globParts.length; i2++) {
|
|
1352
|
-
for (let j = 0; j < globParts[i2].length; j++) {
|
|
1353
|
-
if (globParts[i2][j] === "**") {
|
|
1354
|
-
globParts[i2][j] = "*";
|
|
1355
|
-
}
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1360
|
-
if (optimizationLevel >= 2) {
|
|
1361
|
-
globParts = this.firstPhasePreProcess(globParts);
|
|
1362
|
-
globParts = this.secondPhasePreProcess(globParts);
|
|
1363
|
-
} else if (optimizationLevel >= 1) {
|
|
1364
|
-
globParts = this.levelOneOptimize(globParts);
|
|
1365
|
-
} else {
|
|
1366
|
-
globParts = this.adjascentGlobstarOptimize(globParts);
|
|
1367
|
-
}
|
|
1368
|
-
return globParts;
|
|
1369
|
-
}
|
|
1370
|
-
// just get rid of adjascent ** portions
|
|
1371
|
-
adjascentGlobstarOptimize(globParts) {
|
|
1372
|
-
return globParts.map((parts) => {
|
|
1373
|
-
let gs = -1;
|
|
1374
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1375
|
-
let i2 = gs;
|
|
1376
|
-
while (parts[i2 + 1] === "**") {
|
|
1377
|
-
i2++;
|
|
1378
|
-
}
|
|
1379
|
-
if (i2 !== gs) {
|
|
1380
|
-
parts.splice(gs, i2 - gs);
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
return parts;
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
// get rid of adjascent ** and resolve .. portions
|
|
1387
|
-
levelOneOptimize(globParts) {
|
|
1388
|
-
return globParts.map((parts) => {
|
|
1389
|
-
parts = parts.reduce((set, part) => {
|
|
1390
|
-
const prev = set[set.length - 1];
|
|
1391
|
-
if (part === "**" && prev === "**") {
|
|
1392
|
-
return set;
|
|
1393
|
-
}
|
|
1394
|
-
if (part === "..") {
|
|
1395
|
-
if (prev && prev !== ".." && prev !== "." && prev !== "**") {
|
|
1396
|
-
set.pop();
|
|
1397
|
-
return set;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
set.push(part);
|
|
1401
|
-
return set;
|
|
1402
|
-
}, []);
|
|
1403
|
-
return parts.length === 0 ? [""] : parts;
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
levelTwoFileOptimize(parts) {
|
|
1407
|
-
if (!Array.isArray(parts)) {
|
|
1408
|
-
parts = this.slashSplit(parts);
|
|
1409
|
-
}
|
|
1410
|
-
let didSomething = false;
|
|
1411
|
-
do {
|
|
1412
|
-
didSomething = false;
|
|
1413
|
-
if (!this.preserveMultipleSlashes) {
|
|
1414
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1415
|
-
const p = parts[i2];
|
|
1416
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1417
|
-
continue;
|
|
1418
|
-
if (p === "." || p === "") {
|
|
1419
|
-
didSomething = true;
|
|
1420
|
-
parts.splice(i2, 1);
|
|
1421
|
-
i2--;
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1425
|
-
didSomething = true;
|
|
1426
|
-
parts.pop();
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
let dd = 0;
|
|
1430
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1431
|
-
const p = parts[dd - 1];
|
|
1432
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1433
|
-
didSomething = true;
|
|
1434
|
-
parts.splice(dd - 1, 2);
|
|
1435
|
-
dd -= 2;
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
} while (didSomething);
|
|
1439
|
-
return parts.length === 0 ? [""] : parts;
|
|
1440
|
-
}
|
|
1441
|
-
// First phase: single-pattern processing
|
|
1442
|
-
// <pre> is 1 or more portions
|
|
1443
|
-
// <rest> is 1 or more portions
|
|
1444
|
-
// <p> is any portion other than ., .., '', or **
|
|
1445
|
-
// <e> is . or ''
|
|
1446
|
-
//
|
|
1447
|
-
// **/.. is *brutal* for filesystem walking performance, because
|
|
1448
|
-
// it effectively resets the recursive walk each time it occurs,
|
|
1449
|
-
// and ** cannot be reduced out by a .. pattern part like a regexp
|
|
1450
|
-
// or most strings (other than .., ., and '') can be.
|
|
1451
|
-
//
|
|
1452
|
-
// <pre>/**/../<p>/<p>/<rest> -> {<pre>/../<p>/<p>/<rest>,<pre>/**/<p>/<p>/<rest>}
|
|
1453
|
-
// <pre>/<e>/<rest> -> <pre>/<rest>
|
|
1454
|
-
// <pre>/<p>/../<rest> -> <pre>/<rest>
|
|
1455
|
-
// **/**/<rest> -> **/<rest>
|
|
1456
|
-
//
|
|
1457
|
-
// **/*/<rest> -> */**/<rest> <== not valid because ** doesn't follow
|
|
1458
|
-
// this WOULD be allowed if ** did follow symlinks, or * didn't
|
|
1459
|
-
firstPhasePreProcess(globParts) {
|
|
1460
|
-
let didSomething = false;
|
|
1461
|
-
do {
|
|
1462
|
-
didSomething = false;
|
|
1463
|
-
for (let parts of globParts) {
|
|
1464
|
-
let gs = -1;
|
|
1465
|
-
while (-1 !== (gs = parts.indexOf("**", gs + 1))) {
|
|
1466
|
-
let gss = gs;
|
|
1467
|
-
while (parts[gss + 1] === "**") {
|
|
1468
|
-
gss++;
|
|
1469
|
-
}
|
|
1470
|
-
if (gss > gs) {
|
|
1471
|
-
parts.splice(gs + 1, gss - gs);
|
|
1472
|
-
}
|
|
1473
|
-
let next = parts[gs + 1];
|
|
1474
|
-
const p = parts[gs + 2];
|
|
1475
|
-
const p2 = parts[gs + 3];
|
|
1476
|
-
if (next !== "..")
|
|
1477
|
-
continue;
|
|
1478
|
-
if (!p || p === "." || p === ".." || !p2 || p2 === "." || p2 === "..") {
|
|
1479
|
-
continue;
|
|
1480
|
-
}
|
|
1481
|
-
didSomething = true;
|
|
1482
|
-
parts.splice(gs, 1);
|
|
1483
|
-
const other = parts.slice(0);
|
|
1484
|
-
other[gs] = "**";
|
|
1485
|
-
globParts.push(other);
|
|
1486
|
-
gs--;
|
|
1487
|
-
}
|
|
1488
|
-
if (!this.preserveMultipleSlashes) {
|
|
1489
|
-
for (let i2 = 1; i2 < parts.length - 1; i2++) {
|
|
1490
|
-
const p = parts[i2];
|
|
1491
|
-
if (i2 === 1 && p === "" && parts[0] === "")
|
|
1492
|
-
continue;
|
|
1493
|
-
if (p === "." || p === "") {
|
|
1494
|
-
didSomething = true;
|
|
1495
|
-
parts.splice(i2, 1);
|
|
1496
|
-
i2--;
|
|
1497
|
-
}
|
|
1498
|
-
}
|
|
1499
|
-
if (parts[0] === "." && parts.length === 2 && (parts[1] === "." || parts[1] === "")) {
|
|
1500
|
-
didSomething = true;
|
|
1501
|
-
parts.pop();
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
let dd = 0;
|
|
1505
|
-
while (-1 !== (dd = parts.indexOf("..", dd + 1))) {
|
|
1506
|
-
const p = parts[dd - 1];
|
|
1507
|
-
if (p && p !== "." && p !== ".." && p !== "**") {
|
|
1508
|
-
didSomething = true;
|
|
1509
|
-
const needDot = dd === 1 && parts[dd + 1] === "**";
|
|
1510
|
-
const splin = needDot ? ["."] : [];
|
|
1511
|
-
parts.splice(dd - 1, 2, ...splin);
|
|
1512
|
-
if (parts.length === 0)
|
|
1513
|
-
parts.push("");
|
|
1514
|
-
dd -= 2;
|
|
1515
|
-
}
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
} while (didSomething);
|
|
1519
|
-
return globParts;
|
|
1520
|
-
}
|
|
1521
|
-
// second phase: multi-pattern dedupes
|
|
1522
|
-
// {<pre>/*/<rest>,<pre>/<p>/<rest>} -> <pre>/*/<rest>
|
|
1523
|
-
// {<pre>/<rest>,<pre>/<rest>} -> <pre>/<rest>
|
|
1524
|
-
// {<pre>/**/<rest>,<pre>/<rest>} -> <pre>/**/<rest>
|
|
1525
|
-
//
|
|
1526
|
-
// {<pre>/**/<rest>,<pre>/**/<p>/<rest>} -> <pre>/**/<rest>
|
|
1527
|
-
// ^-- not valid because ** doens't follow symlinks
|
|
1528
|
-
secondPhasePreProcess(globParts) {
|
|
1529
|
-
for (let i2 = 0; i2 < globParts.length - 1; i2++) {
|
|
1530
|
-
for (let j = i2 + 1; j < globParts.length; j++) {
|
|
1531
|
-
const matched = this.partsMatch(globParts[i2], globParts[j], !this.preserveMultipleSlashes);
|
|
1532
|
-
if (!matched)
|
|
1533
|
-
continue;
|
|
1534
|
-
globParts[i2] = matched;
|
|
1535
|
-
globParts[j] = [];
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
return globParts.filter((gs) => gs.length);
|
|
1539
|
-
}
|
|
1540
|
-
partsMatch(a, b, emptyGSMatch = false) {
|
|
1541
|
-
let ai = 0;
|
|
1542
|
-
let bi = 0;
|
|
1543
|
-
let result = [];
|
|
1544
|
-
let which = "";
|
|
1545
|
-
while (ai < a.length && bi < b.length) {
|
|
1546
|
-
if (a[ai] === b[bi]) {
|
|
1547
|
-
result.push(which === "b" ? b[bi] : a[ai]);
|
|
1548
|
-
ai++;
|
|
1549
|
-
bi++;
|
|
1550
|
-
} else if (emptyGSMatch && a[ai] === "**" && b[bi] === a[ai + 1]) {
|
|
1551
|
-
result.push(a[ai]);
|
|
1552
|
-
ai++;
|
|
1553
|
-
} else if (emptyGSMatch && b[bi] === "**" && a[ai] === b[bi + 1]) {
|
|
1554
|
-
result.push(b[bi]);
|
|
1555
|
-
bi++;
|
|
1556
|
-
} else if (a[ai] === "*" && b[bi] && (this.options.dot || !b[bi].startsWith(".")) && b[bi] !== "**") {
|
|
1557
|
-
if (which === "b")
|
|
1558
|
-
return false;
|
|
1559
|
-
which = "a";
|
|
1560
|
-
result.push(a[ai]);
|
|
1561
|
-
ai++;
|
|
1562
|
-
bi++;
|
|
1563
|
-
} else if (b[bi] === "*" && a[ai] && (this.options.dot || !a[ai].startsWith(".")) && a[ai] !== "**") {
|
|
1564
|
-
if (which === "a")
|
|
1565
|
-
return false;
|
|
1566
|
-
which = "b";
|
|
1567
|
-
result.push(b[bi]);
|
|
1568
|
-
ai++;
|
|
1569
|
-
bi++;
|
|
1570
|
-
} else {
|
|
1571
|
-
return false;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
return a.length === b.length && result;
|
|
1575
|
-
}
|
|
1576
|
-
parseNegate() {
|
|
1577
|
-
if (this.nonegate)
|
|
1578
|
-
return;
|
|
1579
|
-
const pattern = this.pattern;
|
|
1580
|
-
let negate = false;
|
|
1581
|
-
let negateOffset = 0;
|
|
1582
|
-
for (let i2 = 0; i2 < pattern.length && pattern.charAt(i2) === "!"; i2++) {
|
|
1583
|
-
negate = !negate;
|
|
1584
|
-
negateOffset++;
|
|
1585
|
-
}
|
|
1586
|
-
if (negateOffset)
|
|
1587
|
-
this.pattern = pattern.slice(negateOffset);
|
|
1588
|
-
this.negate = negate;
|
|
1589
|
-
}
|
|
1590
|
-
// set partial to true to test if, for example,
|
|
1591
|
-
// "/a/b" matches the start of "/*/b/*/d"
|
|
1592
|
-
// Partial means, if you run out of file before you run
|
|
1593
|
-
// out of pattern, then that's fine, as long as all
|
|
1594
|
-
// the parts match.
|
|
1595
|
-
matchOne(file, pattern, partial = false) {
|
|
1596
|
-
const options = this.options;
|
|
1597
|
-
if (this.isWindows) {
|
|
1598
|
-
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
1599
|
-
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
1600
|
-
const patternDrive = typeof pattern[0] === "string" && /^[a-z]:$/i.test(pattern[0]);
|
|
1601
|
-
const patternUNC = !patternDrive && pattern[0] === "" && pattern[1] === "" && pattern[2] === "?" && typeof pattern[3] === "string" && /^[a-z]:$/i.test(pattern[3]);
|
|
1602
|
-
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
1603
|
-
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
1604
|
-
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
1605
|
-
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
1606
|
-
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
1607
|
-
pattern[pdi] = fd;
|
|
1608
|
-
if (pdi > fdi) {
|
|
1609
|
-
pattern = pattern.slice(pdi);
|
|
1610
|
-
} else if (fdi > pdi) {
|
|
1611
|
-
file = file.slice(fdi);
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
}
|
|
1616
|
-
const { optimizationLevel = 1 } = this.options;
|
|
1617
|
-
if (optimizationLevel >= 2) {
|
|
1618
|
-
file = this.levelTwoFileOptimize(file);
|
|
1619
|
-
}
|
|
1620
|
-
this.debug("matchOne", this, { file, pattern });
|
|
1621
|
-
this.debug("matchOne", file.length, pattern.length);
|
|
1622
|
-
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
1623
|
-
this.debug("matchOne loop");
|
|
1624
|
-
var p = pattern[pi];
|
|
1625
|
-
var f = file[fi];
|
|
1626
|
-
this.debug(pattern, p, f);
|
|
1627
|
-
if (p === false) {
|
|
1628
|
-
return false;
|
|
1629
|
-
}
|
|
1630
|
-
if (p === GLOBSTAR) {
|
|
1631
|
-
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
1632
|
-
var fr = fi;
|
|
1633
|
-
var pr = pi + 1;
|
|
1634
|
-
if (pr === pl) {
|
|
1635
|
-
this.debug("** at the end");
|
|
1636
|
-
for (; fi < fl; fi++) {
|
|
1637
|
-
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
1638
|
-
return false;
|
|
1639
|
-
}
|
|
1640
|
-
return true;
|
|
1641
|
-
}
|
|
1642
|
-
while (fr < fl) {
|
|
1643
|
-
var swallowee = file[fr];
|
|
1644
|
-
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
1645
|
-
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
|
1646
|
-
this.debug("globstar found match!", fr, fl, swallowee);
|
|
1647
|
-
return true;
|
|
1648
|
-
} else {
|
|
1649
|
-
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
1650
|
-
this.debug("dot detected!", file, fr, pattern, pr);
|
|
1651
|
-
break;
|
|
1652
|
-
}
|
|
1653
|
-
this.debug("globstar swallow a segment, and continue");
|
|
1654
|
-
fr++;
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
if (partial) {
|
|
1658
|
-
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
1659
|
-
if (fr === fl) {
|
|
1660
|
-
return true;
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
return false;
|
|
1664
|
-
}
|
|
1665
|
-
let hit;
|
|
1666
|
-
if (typeof p === "string") {
|
|
1667
|
-
hit = f === p;
|
|
1668
|
-
this.debug("string match", p, f, hit);
|
|
1669
|
-
} else {
|
|
1670
|
-
hit = p.test(f);
|
|
1671
|
-
this.debug("pattern match", p, f, hit);
|
|
1672
|
-
}
|
|
1673
|
-
if (!hit)
|
|
1674
|
-
return false;
|
|
1675
|
-
}
|
|
1676
|
-
if (fi === fl && pi === pl) {
|
|
1677
|
-
return true;
|
|
1678
|
-
} else if (fi === fl) {
|
|
1679
|
-
return partial;
|
|
1680
|
-
} else if (pi === pl) {
|
|
1681
|
-
return fi === fl - 1 && file[fi] === "";
|
|
1682
|
-
} else {
|
|
1683
|
-
throw new Error("wtf?");
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
braceExpand() {
|
|
1687
|
-
return braceExpand(this.pattern, this.options);
|
|
1688
|
-
}
|
|
1689
|
-
parse(pattern) {
|
|
1690
|
-
assertValidPattern(pattern);
|
|
1691
|
-
const options = this.options;
|
|
1692
|
-
if (pattern === "**")
|
|
1693
|
-
return GLOBSTAR;
|
|
1694
|
-
if (pattern === "")
|
|
1695
|
-
return "";
|
|
1696
|
-
let m;
|
|
1697
|
-
let fastTest = null;
|
|
1698
|
-
if (m = pattern.match(starRE)) {
|
|
1699
|
-
fastTest = options.dot ? starTestDot : starTest;
|
|
1700
|
-
} else if (m = pattern.match(starDotExtRE)) {
|
|
1701
|
-
fastTest = (options.nocase ? options.dot ? starDotExtTestNocaseDot : starDotExtTestNocase : options.dot ? starDotExtTestDot : starDotExtTest)(m[1]);
|
|
1702
|
-
} else if (m = pattern.match(qmarksRE)) {
|
|
1703
|
-
fastTest = (options.nocase ? options.dot ? qmarksTestNocaseDot : qmarksTestNocase : options.dot ? qmarksTestDot : qmarksTest)(m);
|
|
1704
|
-
} else if (m = pattern.match(starDotStarRE)) {
|
|
1705
|
-
fastTest = options.dot ? starDotStarTestDot : starDotStarTest;
|
|
1706
|
-
} else if (m = pattern.match(dotStarRE)) {
|
|
1707
|
-
fastTest = dotStarTest;
|
|
1708
|
-
}
|
|
1709
|
-
const re = AST.fromGlob(pattern, this.options).toMMPattern();
|
|
1710
|
-
if (fastTest && typeof re === "object") {
|
|
1711
|
-
Reflect.defineProperty(re, "test", { value: fastTest });
|
|
1712
|
-
}
|
|
1713
|
-
return re;
|
|
1714
|
-
}
|
|
1715
|
-
makeRe() {
|
|
1716
|
-
if (this.regexp || this.regexp === false)
|
|
1717
|
-
return this.regexp;
|
|
1718
|
-
const set = this.set;
|
|
1719
|
-
if (!set.length) {
|
|
1720
|
-
this.regexp = false;
|
|
1721
|
-
return this.regexp;
|
|
1722
|
-
}
|
|
1723
|
-
const options = this.options;
|
|
1724
|
-
const twoStar = options.noglobstar ? star2 : options.dot ? twoStarDot : twoStarNoDot;
|
|
1725
|
-
const flags = new Set(options.nocase ? ["i"] : []);
|
|
1726
|
-
let re = set.map((pattern) => {
|
|
1727
|
-
const pp = pattern.map((p) => {
|
|
1728
|
-
if (p instanceof RegExp) {
|
|
1729
|
-
for (const f of p.flags.split(""))
|
|
1730
|
-
flags.add(f);
|
|
1731
|
-
}
|
|
1732
|
-
return typeof p === "string" ? regExpEscape2(p) : p === GLOBSTAR ? GLOBSTAR : p._src;
|
|
1733
|
-
});
|
|
1734
|
-
pp.forEach((p, i2) => {
|
|
1735
|
-
const next = pp[i2 + 1];
|
|
1736
|
-
const prev = pp[i2 - 1];
|
|
1737
|
-
if (p !== GLOBSTAR || prev === GLOBSTAR) {
|
|
1738
|
-
return;
|
|
1739
|
-
}
|
|
1740
|
-
if (prev === void 0) {
|
|
1741
|
-
if (next !== void 0 && next !== GLOBSTAR) {
|
|
1742
|
-
pp[i2 + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
|
|
1743
|
-
} else {
|
|
1744
|
-
pp[i2] = twoStar;
|
|
1745
|
-
}
|
|
1746
|
-
} else if (next === void 0) {
|
|
1747
|
-
pp[i2 - 1] = prev + "(?:\\/|" + twoStar + ")?";
|
|
1748
|
-
} else if (next !== GLOBSTAR) {
|
|
1749
|
-
pp[i2 - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
|
|
1750
|
-
pp[i2 + 1] = GLOBSTAR;
|
|
1751
|
-
}
|
|
1752
|
-
});
|
|
1753
|
-
return pp.filter((p) => p !== GLOBSTAR).join("/");
|
|
1754
|
-
}).join("|");
|
|
1755
|
-
const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
|
|
1756
|
-
re = "^" + open + re + close + "$";
|
|
1757
|
-
if (this.negate)
|
|
1758
|
-
re = "^(?!" + re + ").+$";
|
|
1759
|
-
try {
|
|
1760
|
-
this.regexp = new RegExp(re, [...flags].join(""));
|
|
1761
|
-
} catch (ex) {
|
|
1762
|
-
this.regexp = false;
|
|
1763
|
-
}
|
|
1764
|
-
return this.regexp;
|
|
1765
|
-
}
|
|
1766
|
-
slashSplit(p) {
|
|
1767
|
-
if (this.preserveMultipleSlashes) {
|
|
1768
|
-
return p.split("/");
|
|
1769
|
-
} else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
|
|
1770
|
-
return ["", ...p.split(/\/+/)];
|
|
1771
|
-
} else {
|
|
1772
|
-
return p.split(/\/+/);
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
match(f, partial = this.partial) {
|
|
1776
|
-
this.debug("match", f, this.pattern);
|
|
1777
|
-
if (this.comment) {
|
|
1778
|
-
return false;
|
|
1779
|
-
}
|
|
1780
|
-
if (this.empty) {
|
|
1781
|
-
return f === "";
|
|
1782
|
-
}
|
|
1783
|
-
if (f === "/" && partial) {
|
|
1784
|
-
return true;
|
|
1785
|
-
}
|
|
1786
|
-
const options = this.options;
|
|
1787
|
-
if (this.isWindows) {
|
|
1788
|
-
f = f.split("\\").join("/");
|
|
1789
|
-
}
|
|
1790
|
-
const ff = this.slashSplit(f);
|
|
1791
|
-
this.debug(this.pattern, "split", ff);
|
|
1792
|
-
const set = this.set;
|
|
1793
|
-
this.debug(this.pattern, "set", set);
|
|
1794
|
-
let filename = ff[ff.length - 1];
|
|
1795
|
-
if (!filename) {
|
|
1796
|
-
for (let i2 = ff.length - 2; !filename && i2 >= 0; i2--) {
|
|
1797
|
-
filename = ff[i2];
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
for (let i2 = 0; i2 < set.length; i2++) {
|
|
1801
|
-
const pattern = set[i2];
|
|
1802
|
-
let file = ff;
|
|
1803
|
-
if (options.matchBase && pattern.length === 1) {
|
|
1804
|
-
file = [filename];
|
|
1805
|
-
}
|
|
1806
|
-
const hit = this.matchOne(file, pattern, partial);
|
|
1807
|
-
if (hit) {
|
|
1808
|
-
if (options.flipNegate) {
|
|
1809
|
-
return true;
|
|
1810
|
-
}
|
|
1811
|
-
return !this.negate;
|
|
1812
|
-
}
|
|
1813
|
-
}
|
|
1814
|
-
if (options.flipNegate) {
|
|
1815
|
-
return false;
|
|
1816
|
-
}
|
|
1817
|
-
return this.negate;
|
|
1818
|
-
}
|
|
1819
|
-
static defaults(def) {
|
|
1820
|
-
return minimatch.defaults(def).Minimatch;
|
|
1821
|
-
}
|
|
1822
|
-
};
|
|
1823
|
-
minimatch.AST = AST;
|
|
1824
|
-
minimatch.Minimatch = Minimatch;
|
|
1825
|
-
minimatch.escape = escape;
|
|
1826
|
-
minimatch.unescape = unescape;
|
|
1827
|
-
|
|
1828
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
1829
|
-
function queryNonceMetaTagContent(doc) {
|
|
1830
|
-
var _a, _b, _c;
|
|
1831
|
-
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
1832
|
-
}
|
|
1833
|
-
|
|
1834
|
-
// src/utils/regular-expression.ts
|
|
1835
|
-
var escapeRegExpSpecialCharacters = (text) => {
|
|
1836
|
-
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
1837
|
-
};
|
|
1838
|
-
|
|
1839
|
-
// src/utils/remote-value.ts
|
|
1840
|
-
var RemoteValue = class _RemoteValue {
|
|
1841
|
-
/**
|
|
1842
|
-
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1843
|
-
*
|
|
1844
|
-
* @param serialized The serialized LocalValue object
|
|
1845
|
-
* @returns The original JavaScript value/object
|
|
1846
|
-
*/
|
|
1847
|
-
static fromLocalValue(serialized) {
|
|
1848
|
-
const type = serialized[TYPE_CONSTANT];
|
|
1849
|
-
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1850
|
-
switch (type) {
|
|
1851
|
-
case "string" /* String */:
|
|
1852
|
-
return value;
|
|
1853
|
-
case "boolean" /* Boolean */:
|
|
1854
|
-
return value;
|
|
1855
|
-
case "bigint" /* BigInt */:
|
|
1856
|
-
return BigInt(value);
|
|
1857
|
-
case "undefined" /* Undefined */:
|
|
1858
|
-
return void 0;
|
|
1859
|
-
case "null" /* Null */:
|
|
1860
|
-
return null;
|
|
1861
|
-
case "number" /* Number */:
|
|
1862
|
-
if (value === "NaN") return NaN;
|
|
1863
|
-
if (value === "-0") return -0;
|
|
1864
|
-
if (value === "Infinity") return Infinity;
|
|
1865
|
-
if (value === "-Infinity") return -Infinity;
|
|
1866
|
-
return value;
|
|
1867
|
-
case "array" /* Array */:
|
|
1868
|
-
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1869
|
-
case "date" /* Date */:
|
|
1870
|
-
return new Date(value);
|
|
1871
|
-
case "map" /* Map */:
|
|
1872
|
-
const map2 = /* @__PURE__ */ new Map();
|
|
1873
|
-
for (const [key, val] of value) {
|
|
1874
|
-
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1875
|
-
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1876
|
-
map2.set(deserializedKey, deserializedValue);
|
|
1877
|
-
}
|
|
1878
|
-
return map2;
|
|
1879
|
-
case "object" /* Object */:
|
|
1880
|
-
const obj = {};
|
|
1881
|
-
for (const [key, val] of value) {
|
|
1882
|
-
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1883
|
-
}
|
|
1884
|
-
return obj;
|
|
1885
|
-
case "regexp" /* RegularExpression */:
|
|
1886
|
-
const { pattern, flags } = value;
|
|
1887
|
-
return new RegExp(pattern, flags);
|
|
1888
|
-
case "set" /* Set */:
|
|
1889
|
-
const set = /* @__PURE__ */ new Set();
|
|
1890
|
-
for (const item of value) {
|
|
1891
|
-
set.add(_RemoteValue.fromLocalValue(item));
|
|
1892
|
-
}
|
|
1893
|
-
return set;
|
|
1894
|
-
case "symbol" /* Symbol */:
|
|
1895
|
-
return Symbol(value);
|
|
1896
|
-
default:
|
|
1897
|
-
throw new Error(`Unsupported type: ${type}`);
|
|
1898
|
-
}
|
|
114
|
+
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
115
|
+
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
116
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
117
|
+
if (!bundleId) {
|
|
118
|
+
return void 0;
|
|
1899
119
|
}
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
* @param serializedValues Array of serialized LocalValue objects
|
|
1904
|
-
* @returns Array of deserialized JavaScript values
|
|
1905
|
-
*/
|
|
1906
|
-
static fromLocalValueArray(serializedValues) {
|
|
1907
|
-
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
120
|
+
const module = cmpModules.get(bundleId) ;
|
|
121
|
+
if (module) {
|
|
122
|
+
return module[exportName];
|
|
1908
123
|
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
124
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
125
|
+
return import(
|
|
126
|
+
/* @vite-ignore */
|
|
127
|
+
/* webpackInclude: /\.entry\.js$/ */
|
|
128
|
+
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
129
|
+
/* webpackMode: "lazy" */
|
|
130
|
+
`./${bundleId}.entry.js${""}`
|
|
131
|
+
).then(
|
|
132
|
+
(importedModule) => {
|
|
133
|
+
{
|
|
134
|
+
cmpModules.set(bundleId, importedModule);
|
|
135
|
+
}
|
|
136
|
+
return importedModule[exportName];
|
|
137
|
+
},
|
|
138
|
+
(e) => {
|
|
139
|
+
consoleError(e, hostRef.$hostElement$);
|
|
1921
140
|
}
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
// src/client/client-style.ts
|
|
145
|
+
var styles = /* @__PURE__ */ new Map();
|
|
146
|
+
|
|
147
|
+
// src/runtime/runtime-constants.ts
|
|
148
|
+
var CONTENT_REF_ID = "r";
|
|
149
|
+
var ORG_LOCATION_ID = "o";
|
|
150
|
+
var SLOT_NODE_ID = "s";
|
|
151
|
+
var TEXT_NODE_ID = "t";
|
|
152
|
+
var COMMENT_NODE_ID = "c";
|
|
153
|
+
var HYDRATE_ID = "s-id";
|
|
154
|
+
var HYDRATED_STYLE_ID = "sty-id";
|
|
155
|
+
var HYDRATE_CHILD_ID = "c-id";
|
|
156
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
157
|
+
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
158
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
159
|
+
var H = win.HTMLElement || class {
|
|
160
|
+
};
|
|
161
|
+
var plt = {
|
|
162
|
+
$flags$: 0,
|
|
163
|
+
$resourcesUrl$: "",
|
|
164
|
+
jmp: (h2) => h2(),
|
|
165
|
+
raf: (h2) => requestAnimationFrame(h2),
|
|
166
|
+
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
167
|
+
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
168
|
+
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
169
|
+
};
|
|
170
|
+
var supportsShadow = BUILD.shadowDom;
|
|
171
|
+
var promiseResolve = (v) => Promise.resolve(v);
|
|
172
|
+
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
173
|
+
try {
|
|
174
|
+
if (!win.document.adoptedStyleSheets) {
|
|
1925
175
|
return false;
|
|
1926
176
|
}
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
return true;
|
|
177
|
+
new CSSStyleSheet();
|
|
178
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
179
|
+
} catch (e) {
|
|
1931
180
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
var
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
isOk: true,
|
|
1945
|
-
isErr: false,
|
|
1946
|
-
value
|
|
1947
|
-
});
|
|
1948
|
-
var err = (value) => ({
|
|
1949
|
-
isOk: false,
|
|
1950
|
-
isErr: true,
|
|
1951
|
-
value
|
|
1952
|
-
});
|
|
1953
|
-
function map(result, fn) {
|
|
1954
|
-
if (result.isOk) {
|
|
1955
|
-
const val = fn(result.value);
|
|
1956
|
-
if (val instanceof Promise) {
|
|
1957
|
-
return val.then((newVal) => ok(newVal));
|
|
181
|
+
return false;
|
|
182
|
+
})() ;
|
|
183
|
+
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
184
|
+
var queuePending = false;
|
|
185
|
+
var queueDomReads = [];
|
|
186
|
+
var queueDomWrites = [];
|
|
187
|
+
var queueTask = (queue, write) => (cb) => {
|
|
188
|
+
queue.push(cb);
|
|
189
|
+
if (!queuePending) {
|
|
190
|
+
queuePending = true;
|
|
191
|
+
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
192
|
+
nextTick(flush);
|
|
1958
193
|
} else {
|
|
1959
|
-
|
|
194
|
+
plt.raf(flush);
|
|
1960
195
|
}
|
|
1961
196
|
}
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
}
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
return result.value;
|
|
1971
|
-
} else {
|
|
1972
|
-
throw result.value;
|
|
197
|
+
};
|
|
198
|
+
var consume = (queue) => {
|
|
199
|
+
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
200
|
+
try {
|
|
201
|
+
queue[i2](performance.now());
|
|
202
|
+
} catch (e) {
|
|
203
|
+
consoleError(e);
|
|
204
|
+
}
|
|
1973
205
|
}
|
|
206
|
+
queue.length = 0;
|
|
1974
207
|
};
|
|
1975
|
-
var
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
208
|
+
var flush = () => {
|
|
209
|
+
consume(queueDomReads);
|
|
210
|
+
{
|
|
211
|
+
consume(queueDomWrites);
|
|
212
|
+
if (queuePending = queueDomReads.length > 0) {
|
|
213
|
+
plt.raf(flush);
|
|
214
|
+
}
|
|
1980
215
|
}
|
|
1981
216
|
};
|
|
217
|
+
var nextTick = (cb) => promiseResolve().then(cb);
|
|
218
|
+
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1982
219
|
|
|
1983
|
-
// src/
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
1989
|
-
}
|
|
220
|
+
// src/runtime/asset-path.ts
|
|
221
|
+
var getAssetPath = (path) => {
|
|
222
|
+
const assetUrl = new URL(path, plt.$resourcesUrl$);
|
|
223
|
+
return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
224
|
+
};
|
|
1990
225
|
|
|
1991
226
|
// src/utils/style.ts
|
|
1992
227
|
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
@@ -2531,6 +766,14 @@ var uniqueTime = (key, measureText) => {
|
|
|
2531
766
|
};
|
|
2532
767
|
}
|
|
2533
768
|
};
|
|
769
|
+
|
|
770
|
+
// src/utils/query-nonce-meta-tag-content.ts
|
|
771
|
+
function queryNonceMetaTagContent(doc) {
|
|
772
|
+
var _a, _b, _c;
|
|
773
|
+
return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
// src/runtime/styles.ts
|
|
2534
777
|
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
2535
778
|
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
2536
779
|
let style = styles.get(scopeId2);
|
|
@@ -2564,10 +807,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2564
807
|
}
|
|
2565
808
|
const existingStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`);
|
|
2566
809
|
if (existingStyleElm) {
|
|
2567
|
-
existingStyleElm.
|
|
810
|
+
existingStyleElm.textContent = style;
|
|
2568
811
|
} else if (!appliedStyles.has(scopeId2)) {
|
|
2569
812
|
styleElm = win.document.createElement("style");
|
|
2570
|
-
styleElm.
|
|
813
|
+
styleElm.textContent = style;
|
|
2571
814
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
2572
815
|
if (nonce != null) {
|
|
2573
816
|
styleElm.setAttribute("nonce", nonce);
|
|
@@ -2593,7 +836,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2593
836
|
} else {
|
|
2594
837
|
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
2595
838
|
if (existingStyleContainer) {
|
|
2596
|
-
existingStyleContainer.
|
|
839
|
+
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
2597
840
|
} else {
|
|
2598
841
|
styleContainerNode.prepend(styleElm);
|
|
2599
842
|
}
|
|
@@ -2606,7 +849,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
2606
849
|
styleContainerNode.insertBefore(styleElm, null);
|
|
2607
850
|
}
|
|
2608
851
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
2609
|
-
styleElm.
|
|
852
|
+
styleElm.textContent += SLOT_FB_CSS;
|
|
2610
853
|
}
|
|
2611
854
|
if (appliedStyles) {
|
|
2612
855
|
appliedStyles.add(scopeId2);
|
|
@@ -2665,6 +908,12 @@ var hydrateScopedToShadow = () => {
|
|
|
2665
908
|
registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
|
|
2666
909
|
}
|
|
2667
910
|
};
|
|
911
|
+
var isComplexType = (o) => {
|
|
912
|
+
o = typeof o;
|
|
913
|
+
return o === "object" || o === "function";
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
// src/runtime/vdom/h.ts
|
|
2668
917
|
var h = (nodeName, vnodeData, ...children) => {
|
|
2669
918
|
if (typeof nodeName === "string") {
|
|
2670
919
|
nodeName = transformTag(nodeName);
|
|
@@ -2725,7 +974,8 @@ var newVNode = (tag, text) => {
|
|
|
2725
974
|
const vnode = {
|
|
2726
975
|
$flags$: 0,
|
|
2727
976
|
$tag$: tag,
|
|
2728
|
-
|
|
977
|
+
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
978
|
+
$text$: text != null ? text : null,
|
|
2729
979
|
$elm$: null,
|
|
2730
980
|
$children$: null
|
|
2731
981
|
};
|
|
@@ -2816,7 +1066,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
2816
1066
|
cmpMeta.$cmpMeta$);
|
|
2817
1067
|
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
2818
1068
|
if (styleSheet) {
|
|
2819
|
-
|
|
1069
|
+
shadowRootNodes.unshift(styleSheet.cloneNode(true));
|
|
2820
1070
|
}
|
|
2821
1071
|
}
|
|
2822
1072
|
}
|
|
@@ -2889,7 +1139,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
2889
1139
|
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
2890
1140
|
}
|
|
2891
1141
|
}
|
|
2892
|
-
if (shadowRoot) {
|
|
1142
|
+
if (shadowRoot && !shadowRoot.childNodes.length) {
|
|
2893
1143
|
let rnIdex = 0;
|
|
2894
1144
|
const rnLen = shadowRootNodes.length;
|
|
2895
1145
|
if (rnLen) {
|
|
@@ -3160,18 +1410,111 @@ var findCorrespondingNode = (node, type) => {
|
|
|
3160
1410
|
} while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));
|
|
3161
1411
|
return sibling;
|
|
3162
1412
|
};
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
1413
|
+
|
|
1414
|
+
// src/utils/remote-value.ts
|
|
1415
|
+
var RemoteValue = class _RemoteValue {
|
|
1416
|
+
/**
|
|
1417
|
+
* Deserializes a LocalValue serialized object back to its original JavaScript representation
|
|
1418
|
+
*
|
|
1419
|
+
* @param serialized The serialized LocalValue object
|
|
1420
|
+
* @returns The original JavaScript value/object
|
|
1421
|
+
*/
|
|
1422
|
+
static fromLocalValue(serialized) {
|
|
1423
|
+
const type = serialized[TYPE_CONSTANT];
|
|
1424
|
+
const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
|
|
1425
|
+
switch (type) {
|
|
1426
|
+
case "string" /* String */:
|
|
1427
|
+
return value;
|
|
1428
|
+
case "boolean" /* Boolean */:
|
|
1429
|
+
return value;
|
|
1430
|
+
case "bigint" /* BigInt */:
|
|
1431
|
+
return BigInt(value);
|
|
1432
|
+
case "undefined" /* Undefined */:
|
|
1433
|
+
return void 0;
|
|
1434
|
+
case "null" /* Null */:
|
|
1435
|
+
return null;
|
|
1436
|
+
case "number" /* Number */:
|
|
1437
|
+
if (value === "NaN") return NaN;
|
|
1438
|
+
if (value === "-0") return -0;
|
|
1439
|
+
if (value === "Infinity") return Infinity;
|
|
1440
|
+
if (value === "-Infinity") return -Infinity;
|
|
1441
|
+
return value;
|
|
1442
|
+
case "array" /* Array */:
|
|
1443
|
+
return value.map((item) => _RemoteValue.fromLocalValue(item));
|
|
1444
|
+
case "date" /* Date */:
|
|
1445
|
+
return new Date(value);
|
|
1446
|
+
case "map" /* Map */:
|
|
1447
|
+
const map = /* @__PURE__ */ new Map();
|
|
1448
|
+
for (const [key, val] of value) {
|
|
1449
|
+
const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
|
|
1450
|
+
const deserializedValue = _RemoteValue.fromLocalValue(val);
|
|
1451
|
+
map.set(deserializedKey, deserializedValue);
|
|
1452
|
+
}
|
|
1453
|
+
return map;
|
|
1454
|
+
case "object" /* Object */:
|
|
1455
|
+
const obj = {};
|
|
1456
|
+
for (const [key, val] of value) {
|
|
1457
|
+
obj[key] = _RemoteValue.fromLocalValue(val);
|
|
1458
|
+
}
|
|
1459
|
+
return obj;
|
|
1460
|
+
case "regexp" /* RegularExpression */:
|
|
1461
|
+
const { pattern, flags } = value;
|
|
1462
|
+
return new RegExp(pattern, flags);
|
|
1463
|
+
case "set" /* Set */:
|
|
1464
|
+
const set = /* @__PURE__ */ new Set();
|
|
1465
|
+
for (const item of value) {
|
|
1466
|
+
set.add(_RemoteValue.fromLocalValue(item));
|
|
1467
|
+
}
|
|
1468
|
+
return set;
|
|
1469
|
+
case "symbol" /* Symbol */:
|
|
1470
|
+
return Symbol(value);
|
|
1471
|
+
default:
|
|
1472
|
+
throw new Error(`Unsupported type: ${type}`);
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Utility method to deserialize multiple LocalValues at once
|
|
1477
|
+
*
|
|
1478
|
+
* @param serializedValues Array of serialized LocalValue objects
|
|
1479
|
+
* @returns Array of deserialized JavaScript values
|
|
1480
|
+
*/
|
|
1481
|
+
static fromLocalValueArray(serializedValues) {
|
|
1482
|
+
return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Verifies if the given object matches the structure of a serialized LocalValue
|
|
1486
|
+
*
|
|
1487
|
+
* @param obj Object to verify
|
|
1488
|
+
* @returns boolean indicating if the object has LocalValue structure
|
|
1489
|
+
*/
|
|
1490
|
+
static isLocalValueObject(obj) {
|
|
1491
|
+
if (typeof obj !== "object" || obj === null) {
|
|
1492
|
+
return false;
|
|
1493
|
+
}
|
|
1494
|
+
if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
|
|
1495
|
+
return false;
|
|
1496
|
+
}
|
|
1497
|
+
const type = obj[TYPE_CONSTANT];
|
|
1498
|
+
const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
|
|
1499
|
+
if (!hasTypeProperty) {
|
|
1500
|
+
return false;
|
|
1501
|
+
}
|
|
1502
|
+
if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
|
|
1503
|
+
return obj.hasOwnProperty(VALUE_CONSTANT);
|
|
1504
|
+
}
|
|
1505
|
+
return true;
|
|
1506
|
+
}
|
|
3171
1507
|
};
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
1508
|
+
|
|
1509
|
+
// src/utils/serialize.ts
|
|
1510
|
+
function deserializeProperty(value) {
|
|
1511
|
+
if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
|
|
1512
|
+
return value;
|
|
1513
|
+
}
|
|
1514
|
+
return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
// src/runtime/parse-property-value.ts
|
|
3175
1518
|
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
3176
1519
|
if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
|
|
3177
1520
|
propValue = deserializeProperty(propValue);
|
|
@@ -3379,16 +1722,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
3379
1722
|
let i2 = 0;
|
|
3380
1723
|
let elm;
|
|
3381
1724
|
let childNode;
|
|
3382
|
-
if (newVNode2.$text$
|
|
1725
|
+
if (newVNode2.$text$ != null) {
|
|
3383
1726
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
3384
1727
|
} else {
|
|
3385
1728
|
if (!isSvgMode) {
|
|
3386
1729
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
3387
1730
|
}
|
|
3388
1731
|
if (!win.document) {
|
|
3389
|
-
throw new Error(
|
|
3390
|
-
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
3391
|
-
);
|
|
1732
|
+
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
3392
1733
|
}
|
|
3393
1734
|
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
3394
1735
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
@@ -3573,7 +1914,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
3573
1914
|
const newChildren = newVNode2.$children$;
|
|
3574
1915
|
const tag = newVNode2.$tag$;
|
|
3575
1916
|
const text = newVNode2.$text$;
|
|
3576
|
-
if (text
|
|
1917
|
+
if (text == null) {
|
|
3577
1918
|
{
|
|
3578
1919
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
3579
1920
|
}
|
|
@@ -3615,15 +1956,6 @@ var nullifyVNodeRefs = (vNode) => {
|
|
|
3615
1956
|
}
|
|
3616
1957
|
};
|
|
3617
1958
|
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
3618
|
-
if (typeof newNode["s-sn"] === "string") {
|
|
3619
|
-
if (parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {
|
|
3620
|
-
patchParentNode(newNode);
|
|
3621
|
-
}
|
|
3622
|
-
parent.insertBefore(newNode, reference);
|
|
3623
|
-
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3624
|
-
if (slotNode && true) dispatchSlotChangeEvent(slotNode);
|
|
3625
|
-
return newNode;
|
|
3626
|
-
}
|
|
3627
1959
|
if (parent.__insertBefore) {
|
|
3628
1960
|
return parent.__insertBefore(newNode, reference);
|
|
3629
1961
|
} else {
|
|
@@ -3707,8 +2039,8 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3707
2039
|
endSchedule();
|
|
3708
2040
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
3709
2041
|
};
|
|
3710
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((
|
|
3711
|
-
console.error(
|
|
2042
|
+
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
2043
|
+
console.error(err);
|
|
3712
2044
|
fn();
|
|
3713
2045
|
}) : fn();
|
|
3714
2046
|
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
@@ -4215,7 +2547,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4215
2547
|
{
|
|
4216
2548
|
hydrateScopedToShadow();
|
|
4217
2549
|
}
|
|
4218
|
-
let hasSlotRelocation = false;
|
|
4219
2550
|
lazyBundles.map((lazyBundle) => {
|
|
4220
2551
|
lazyBundle[1].map((compactMeta) => {
|
|
4221
2552
|
var _a2, _b, _c;
|
|
@@ -4225,9 +2556,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4225
2556
|
$members$: compactMeta[2],
|
|
4226
2557
|
$listeners$: compactMeta[3]
|
|
4227
2558
|
};
|
|
4228
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
4229
|
-
hasSlotRelocation = true;
|
|
4230
|
-
}
|
|
4231
2559
|
{
|
|
4232
2560
|
cmpMeta.$members$ = compactMeta[2];
|
|
4233
2561
|
}
|
|
@@ -4318,9 +2646,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4318
2646
|
});
|
|
4319
2647
|
});
|
|
4320
2648
|
if (cmpTags.length > 0) {
|
|
4321
|
-
if (hasSlotRelocation) {
|
|
4322
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
4323
|
-
}
|
|
4324
2649
|
{
|
|
4325
2650
|
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
4326
2651
|
}
|