@alleninstitute/cortex-ui 0.1.0 → 0.3.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/README.md +101 -79
- package/dist/cjs/cortex-ui.cjs.js +3 -3
- package/dist/cjs/cui-divider.cjs.entry.js +49 -0
- package/dist/cjs/cui-icon.cjs.entry.js +100 -0
- package/dist/cjs/cui-progress.cjs.entry.js +46 -0
- package/dist/cjs/cui-tag.cjs.entry.js +4 -4
- package/dist/cjs/index-RBrlguTk.js +1565 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +4 -1
- package/dist/collection/components/cui-divider/cui-divider.css +100 -0
- package/dist/collection/components/cui-divider/cui-divider.js +150 -0
- package/dist/collection/components/cui-icon/cui-icon.css +134 -0
- package/dist/collection/components/cui-icon/cui-icon.js +239 -0
- package/dist/collection/components/cui-progress/cui-progress.css +102 -0
- package/dist/collection/components/cui-progress/cui-progress.js +187 -0
- package/dist/collection/components/cui-tag/cui-tag.css +19 -19
- package/dist/collection/components/cui-tag/cui-tag.js +5 -5
- package/dist/components/cui-divider.d.ts +11 -0
- package/dist/components/cui-divider.js +1 -0
- package/dist/components/cui-icon.d.ts +11 -0
- package/dist/components/cui-icon.js +1 -0
- package/dist/components/cui-progress.d.ts +11 -0
- package/dist/components/cui-progress.js +1 -0
- package/dist/components/cui-tag.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/cortex-ui/cortex-ui.css +1 -1
- package/dist/cortex-ui/cortex-ui.esm.js +1 -1
- package/dist/cortex-ui/p-0e66a721.entry.js +1 -0
- package/dist/cortex-ui/p-1af73c5a.entry.js +1 -0
- package/dist/cortex-ui/p-2d2004f0.entry.js +1 -0
- package/dist/cortex-ui/p-8925abbe.entry.js +1 -0
- package/dist/cortex-ui/p-BZmInLSX.js +3 -0
- package/dist/esm/cortex-ui.js +4 -4
- package/dist/esm/cui-divider.entry.js +47 -0
- package/dist/esm/cui-icon.entry.js +98 -0
- package/dist/esm/cui-progress.entry.js +44 -0
- package/dist/esm/cui-tag.entry.js +4 -4
- package/dist/esm/index-BZmInLSX.js +1557 -0
- package/dist/esm/loader.js +3 -3
- package/dist/fonts/AllenInstituteHeadline-Bold.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-BoldItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-Italic.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-Light.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-LightItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-Medium.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-MediumItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-Regular.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-Semibold.woff2 +0 -0
- package/dist/fonts/AllenInstituteHeadline-SemiboldItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-Bold.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-BoldItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-Italic.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-Light.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-LightItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-Medium.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-MediumItalic.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-Regular.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-Semibold.woff2 +0 -0
- package/dist/fonts/AllenInstituteText-SemiboldItalic.woff2 +0 -0
- package/dist/fonts.css +186 -0
- package/dist/types/components/cui-divider/cui-divider.d.ts +38 -0
- package/dist/types/components/cui-icon/cui-icon.d.ts +76 -0
- package/dist/types/components/cui-progress/cui-progress.d.ts +40 -0
- package/dist/types/components/cui-tag/cui-tag.d.ts +1 -1
- package/dist/types/components.d.ts +343 -5
- package/dist/types/stencil-public-runtime.d.ts +11 -0
- package/package.json +31 -22
- package/dist/cjs/index-Rxdz0vyq.js +0 -1337
- package/dist/collection/stories/assets/accessibility.svg +0 -1
- package/dist/collection/stories/assets/discord.svg +0 -1
- package/dist/collection/stories/assets/github.svg +0 -1
- package/dist/collection/stories/assets/tutorials.svg +0 -1
- package/dist/collection/stories/assets/youtube.svg +0 -1
- package/dist/cortex-ui/p-054ebfa8.entry.js +0 -1
- package/dist/cortex-ui/p-C70YK15K.js +0 -2
- package/dist/esm/index-C70YK15K.js +0 -1330
|
@@ -1,1337 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const NAMESPACE = 'cortex-ui';
|
|
4
|
-
const BUILD = /* cortex-ui */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, prop: true, propChangeCallback: false, updatable: true};
|
|
5
|
-
|
|
6
|
-
const globalScripts = () => {};
|
|
7
|
-
const globalStyles = ":root{--cui-light-blue-100:#ededff;--cui-light-blue-200:#ddddfe;--cui-light-blue-300:#bcbcfe;--cui-light-blue-400:#9898fc;--cui-light-blue-500:#7070ff;--cui-light-blue-600:#4c4cd9;--cui-light-blue-700:#30309f;--cui-light-blue-800:#121265;--cui-light-blue-900:#070756;--cui-light-gray-50:#ffffff;--cui-light-gray-75:#fafafa;--cui-light-gray-100:#f3f3f3;--cui-light-gray-200:#e5e5e5;--cui-light-gray-300:#c3c3c3;--cui-light-gray-400:#a3a3a3;--cui-light-gray-500:#828282;--cui-light-gray-600:#5b5b5b;--cui-light-gray-700:#3b3b3b;--cui-light-gray-800:#1b1b1b;--cui-light-gray-900:#101010;--cui-light-green-100:#d1fbf8;--cui-light-green-200:#b1f5f1;--cui-light-green-300:#7de0d9;--cui-light-green-400:#39d0c6;--cui-light-green-500:#02b1a5;--cui-light-green-600:#01867e;--cui-light-green-700:#015751;--cui-light-green-800:#042825;--cui-light-green-900:#011917;--cui-light-purple-100:#f0e7fd;--cui-light-purple-200:#e4d7fa;--cui-light-purple-300:#ccb4f2;--cui-light-purple-400:#a980ec;--cui-light-purple-500:#874fe2;--cui-light-purple-600:#743fca;--cui-light-purple-700:#4e2294;--cui-light-purple-800:#260f4c;--cui-light-purple-900:#1d0544;--cui-light-red-100:#fee6f0;--cui-light-red-200:#fad1e2;--cui-light-red-300:#ecabc5;--cui-light-red-400:#dc709b;--cui-light-red-500:#e0387c;--cui-light-red-600:#cd2568;--cui-light-red-700:#9b0b44;--cui-light-red-800:#4c0521;--cui-light-red-900:#2f0214;--cui-light-yellow-100:#fdefca;--cui-light-yellow-200:#fce197;--cui-light-yellow-300:#f6cf62;--cui-light-yellow-400:#e1ac1c;--cui-light-yellow-500:#d39c00;--cui-light-yellow-600:#926c04;--cui-light-yellow-700:#594202;--cui-light-yellow-800:#402f02;--cui-light-yellow-900:#2f2200;--cui-dark-blue-100:#070756;--cui-dark-blue-200:#121265;--cui-dark-blue-300:#30309f;--cui-dark-blue-400:#4c4cd9;--cui-dark-blue-500:#7070ff;--cui-dark-blue-600:#9898fc;--cui-dark-blue-700:#bcbcfe;--cui-dark-blue-800:#ddddfe;--cui-dark-blue-900:#ededff;--cui-dark-gray-50:#101010;--cui-dark-gray-75:#1b1b1b;--cui-dark-gray-100:#3b3b3b;--cui-dark-gray-200:#5b5b5b;--cui-dark-gray-300:#828282;--cui-dark-gray-400:#a3a3a3;--cui-dark-gray-500:#c3c3c3;--cui-dark-gray-600:#e5e5e5;--cui-dark-gray-700:#f3f3f3;--cui-dark-gray-800:#fafafa;--cui-dark-gray-900:#ffffff;--cui-dark-green-100:#011917;--cui-dark-green-200:#042825;--cui-dark-green-300:#015751;--cui-dark-green-400:#01867e;--cui-dark-green-500:#02b1a5;--cui-dark-green-600:#39d0c6;--cui-dark-green-700:#7de0d9;--cui-dark-green-800:#b1f5f1;--cui-dark-green-900:#d1fbf8;--cui-dark-purple-100:#151530;--cui-dark-purple-200:#260f4c;--cui-dark-purple-300:#4e2294;--cui-dark-purple-400:#743fca;--cui-dark-purple-500:#874fe2;--cui-dark-purple-600:#a980ec;--cui-dark-purple-700:#ccb4f2;--cui-dark-purple-800:#e4d7fa;--cui-dark-purple-900:#f0e7fd;--cui-dark-red-100:#2f0214;--cui-dark-red-200:#4c0521;--cui-dark-red-300:#9b0b44;--cui-dark-red-400:#cd2568;--cui-dark-red-500:#e0387c;--cui-dark-red-600:#dc709b;--cui-dark-red-700:#ecabc5;--cui-dark-red-800:#fad1e2;--cui-dark-red-900:#fee6f0;--cui-dark-yellow-100:#2f2200;--cui-dark-yellow-200:#402f02;--cui-dark-yellow-300:#594202;--cui-dark-yellow-400:#926c04;--cui-dark-yellow-500:#d39c00;--cui-dark-yellow-600:#e1ac1c;--cui-dark-yellow-700:#f6cf62;--cui-dark-yellow-800:#fce197;--cui-dark-yellow-900:#fdefca;--cui-blue-100:var(--cui-light-blue-100);--cui-blue-200:var(--cui-light-blue-200);--cui-blue-300:var(--cui-light-blue-300);--cui-blue-400:var(--cui-light-blue-400);--cui-blue-500:var(--cui-light-blue-500);--cui-blue-600:var(--cui-light-blue-600);--cui-blue-700:var(--cui-light-blue-700);--cui-blue-800:var(--cui-light-blue-800);--cui-blue-900:var(--cui-light-blue-900);--cui-gray-50:var(--cui-light-gray-50);--cui-gray-75:var(--cui-light-gray-75);--cui-gray-100:var(--cui-light-gray-100);--cui-gray-200:var(--cui-light-gray-200);--cui-gray-300:var(--cui-light-gray-300);--cui-gray-400:var(--cui-light-gray-400);--cui-gray-500:var(--cui-light-gray-500);--cui-gray-600:var(--cui-light-gray-600);--cui-gray-700:var(--cui-light-gray-700);--cui-gray-800:var(--cui-light-gray-800);--cui-gray-900:var(--cui-light-gray-900);--cui-green-100:var(--cui-light-green-100);--cui-green-200:var(--cui-light-green-200);--cui-green-300:var(--cui-light-green-300);--cui-green-400:var(--cui-light-green-400);--cui-green-500:var(--cui-light-green-500);--cui-green-600:var(--cui-light-green-600);--cui-green-700:var(--cui-light-green-700);--cui-green-800:var(--cui-light-green-800);--cui-green-900:var(--cui-light-green-900);--cui-purple-100:var(--cui-light-purple-100);--cui-purple-200:var(--cui-light-purple-200);--cui-purple-300:var(--cui-light-purple-300);--cui-purple-400:var(--cui-light-purple-400);--cui-purple-500:var(--cui-light-purple-500);--cui-purple-600:var(--cui-light-purple-600);--cui-purple-700:var(--cui-light-purple-700);--cui-purple-800:var(--cui-light-purple-800);--cui-purple-900:var(--cui-light-purple-900);--cui-red-100:var(--cui-light-red-100);--cui-red-200:var(--cui-light-red-200);--cui-red-300:var(--cui-light-red-300);--cui-red-400:var(--cui-light-red-400);--cui-red-500:var(--cui-light-red-500);--cui-red-600:var(--cui-light-red-600);--cui-red-700:var(--cui-light-red-700);--cui-red-800:var(--cui-light-red-800);--cui-red-900:var(--cui-light-red-900);--cui-yellow-100:var(--cui-light-yellow-100);--cui-yellow-200:var(--cui-light-yellow-200);--cui-yellow-300:var(--cui-light-yellow-300);--cui-yellow-400:var(--cui-light-yellow-400);--cui-yellow-500:var(--cui-light-yellow-500);--cui-yellow-600:var(--cui-light-yellow-600);--cui-yellow-700:var(--cui-light-yellow-700);--cui-yellow-800:var(--cui-light-yellow-800);--cui-yellow-900:var(--cui-light-yellow-900);--cui-base-bg:var(--cui-gray-50);--cui-base-bg-lvl-1:var(--cui-gray-75);--cui-base-bg-lvl-2:var(--cui-gray-100);--cui-base-text-primary:var(--cui-gray-900);--cui-base-text-secondary:var(--cui-gray-700);--cui-base-text-inverted:var(--cui-gray-50);--cui-base-border:var(--cui-gray-200);--cui-accent:var(--cui-blue-500);--cui-accent-bg:var(--cui-blue-100);--cui-accent-border:var(--cui-blue-300);--cui-accent-text:var(--cui-blue-800);--cui-positive:var(--cui-green-500);--cui-positive-bg:var(--cui-green-100);--cui-positive-border:var(--cui-green-300);--cui-positive-text:var(--cui-green-800);--cui-warning:var(--cui-yellow-500);--cui-warning-bg:var(--cui-yellow-100);--cui-warning-border:var(--cui-yellow-300);--cui-warning-text:var(--cui-yellow-800);--cui-negative:var(--cui-red-500);--cui-negative-bg:var(--cui-red-100);--cui-negative-border:var(--cui-red-300);--cui-negative-text:var(--cui-red-800);--cui-neutral:var(--cui-gray-500);--cui-neutral-bg:var(--cui-gray-100);--cui-neutral-border:var(--cui-gray-300);--cui-neutral-text:var(--cui-gray-800);--cui-highlight:var(--cui-purple-500);--cui-highlight-bg:var(--cui-purple-100);--cui-highlight-border:var(--cui-purple-300);--cui-highlight-text:var(--cui-purple-800);--cui-info:var(--cui-blue-500);--cui-info-bg:var(--cui-blue-100);--cui-info-border:var(--cui-blue-300);--cui-info-text:var(--cui-blue-800);--cui-font-family-base:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;--cui-font-family-mono:'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;--cui-font-size-xxs:10px;--cui-font-size-xs:12px;--cui-font-size-sm:14px;--cui-font-size-md:16px;--cui-font-size-lg:18px;--cui-font-size-xl:24px;--cui-font-weight-normal:400;--cui-font-weight-medium:500;--cui-font-weight-semibold:600;--cui-font-weight-bold:700;--cui-line-height-tight:1.2;--cui-line-height-base:1.4;--cui-spacing-xxs:2px;--cui-spacing-xs:4px;--cui-spacing-sm:8px;--cui-spacing-md:12px;--cui-spacing-lg:20px;--cui-spacing-xl:32px;--cui-spacing-xxl:48px;--cui-radius-sm:4px;--cui-radius-md:6px;--cui-radius-lg:8px;--cui-radius-full:9999px;--cui-shadow-sm:0 1px 2px rgba(0, 0, 0, 0.05);--cui-shadow-md:0 2px 4px rgba(0, 0, 0, 0.1);--cui-shadow-lg:0 4px 12px rgba(0, 0, 0, 0.15);--cui-transition-fast:160ms ease;--cui-transition-base:240ms ease;--cui-transition-slow:320ms ease}:root[data-theme=dark]{--cui-blue-100:var(--cui-dark-blue-100);--cui-blue-200:var(--cui-dark-blue-200);--cui-blue-300:var(--cui-dark-blue-300);--cui-blue-400:var(--cui-dark-blue-400);--cui-blue-500:var(--cui-dark-blue-500);--cui-blue-600:var(--cui-dark-blue-600);--cui-blue-700:var(--cui-dark-blue-700);--cui-blue-800:var(--cui-dark-blue-800);--cui-blue-900:var(--cui-dark-blue-900);--cui-gray-50:var(--cui-dark-gray-50);--cui-gray-75:var(--cui-dark-gray-75);--cui-gray-100:var(--cui-dark-gray-100);--cui-gray-200:var(--cui-dark-gray-200);--cui-gray-300:var(--cui-dark-gray-300);--cui-gray-400:var(--cui-dark-gray-400);--cui-gray-500:var(--cui-dark-gray-500);--cui-gray-600:var(--cui-dark-gray-600);--cui-gray-700:var(--cui-dark-gray-700);--cui-gray-800:var(--cui-dark-gray-800);--cui-gray-900:var(--cui-dark-gray-900);--cui-green-100:var(--cui-dark-green-100);--cui-green-200:var(--cui-dark-green-200);--cui-green-300:var(--cui-dark-green-300);--cui-green-400:var(--cui-dark-green-400);--cui-green-500:var(--cui-dark-green-500);--cui-green-600:var(--cui-dark-green-600);--cui-green-700:var(--cui-dark-green-700);--cui-green-800:var(--cui-dark-green-800);--cui-green-900:var(--cui-dark-green-900);--cui-purple-100:var(--cui-dark-purple-100);--cui-purple-200:var(--cui-dark-purple-200);--cui-purple-300:var(--cui-dark-purple-300);--cui-purple-400:var(--cui-dark-purple-400);--cui-purple-500:var(--cui-dark-purple-500);--cui-purple-600:var(--cui-dark-purple-600);--cui-purple-700:var(--cui-dark-purple-700);--cui-purple-800:var(--cui-dark-purple-800);--cui-purple-900:var(--cui-dark-purple-900);--cui-red-100:var(--cui-dark-red-100);--cui-red-200:var(--cui-dark-red-200);--cui-red-300:var(--cui-dark-red-300);--cui-red-400:var(--cui-dark-red-400);--cui-red-500:var(--cui-dark-red-500);--cui-red-600:var(--cui-dark-red-600);--cui-red-700:var(--cui-dark-red-700);--cui-red-800:var(--cui-dark-red-800);--cui-red-900:var(--cui-dark-red-900);--cui-yellow-100:var(--cui-dark-yellow-100);--cui-yellow-200:var(--cui-dark-yellow-200);--cui-yellow-300:var(--cui-dark-yellow-300);--cui-yellow-400:var(--cui-dark-yellow-400);--cui-yellow-500:var(--cui-dark-yellow-500);--cui-yellow-600:var(--cui-dark-yellow-600);--cui-yellow-700:var(--cui-dark-yellow-700);--cui-yellow-800:var(--cui-dark-yellow-800);--cui-yellow-900:var(--cui-dark-yellow-900);--cui-base-text-secondary:var(--cui-gray-600)}*,*::before,*::after{box-sizing:border-box}html{font-family:var(--cui-font-family-base);font-size:var(--cui-font-size-md);line-height:var(--cui-line-height-base);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;color:var(--cui-base-text-secondary);background:var(--cui-base-bg)}a{color:var(--cui-accent-text)}";
|
|
8
|
-
|
|
9
|
-
/*
|
|
10
|
-
Stencil Client Platform v4.43.5 | MIT Licensed | https://stenciljs.com
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// src/utils/get-prop-descriptor.ts
|
|
15
|
-
function getPropertyDescriptor(obj, memberName, getOnly) {
|
|
16
|
-
const stopAt = typeof HTMLElement !== "undefined" ? HTMLElement.prototype : null;
|
|
17
|
-
while (obj && obj !== stopAt) {
|
|
18
|
-
const desc = Object.getOwnPropertyDescriptor(obj, memberName);
|
|
19
|
-
if (desc && (!getOnly || desc.get)) return desc;
|
|
20
|
-
obj = Object.getPrototypeOf(obj);
|
|
21
|
-
}
|
|
22
|
-
return void 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// src/utils/es2022-rewire-class-members.ts
|
|
26
|
-
var reWireGetterSetter = (instance, hostRef) => {
|
|
27
|
-
var _a;
|
|
28
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
29
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
30
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
31
|
-
if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
|
|
32
|
-
const ogValue = instance[memberName];
|
|
33
|
-
const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);
|
|
34
|
-
if (ogDescriptor) {
|
|
35
|
-
Object.defineProperty(instance, memberName, {
|
|
36
|
-
get() {
|
|
37
|
-
return ogDescriptor.get.call(this);
|
|
38
|
-
},
|
|
39
|
-
set(newValue) {
|
|
40
|
-
ogDescriptor.set.call(this, newValue);
|
|
41
|
-
},
|
|
42
|
-
configurable: true,
|
|
43
|
-
enumerable: true
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
if (hostRef.$instanceValues$.has(memberName)) {
|
|
47
|
-
instance[memberName] = hostRef.$instanceValues$.get(memberName);
|
|
48
|
-
} else if (ogValue !== void 0) {
|
|
49
|
-
instance[memberName] = ogValue;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// src/client/client-host-ref.ts
|
|
56
|
-
var getHostRef = (ref) => {
|
|
57
|
-
if (ref.__stencil__getHostRef) {
|
|
58
|
-
return ref.__stencil__getHostRef();
|
|
59
|
-
}
|
|
60
|
-
return void 0;
|
|
61
|
-
};
|
|
62
|
-
var registerInstance = (lazyInstance, hostRef) => {
|
|
63
|
-
if (!hostRef) return;
|
|
64
|
-
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
65
|
-
hostRef.$lazyInstance$ = lazyInstance;
|
|
66
|
-
if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.prop)) {
|
|
67
|
-
reWireGetterSetter(lazyInstance, hostRef);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var registerHost = (hostElement, cmpMeta) => {
|
|
71
|
-
const hostRef = {
|
|
72
|
-
$flags$: 0,
|
|
73
|
-
$hostElement$: hostElement,
|
|
74
|
-
$cmpMeta$: cmpMeta,
|
|
75
|
-
$instanceValues$: /* @__PURE__ */ new Map(),
|
|
76
|
-
$serializerValues$: /* @__PURE__ */ new Map()
|
|
77
|
-
};
|
|
78
|
-
{
|
|
79
|
-
hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
|
|
80
|
-
hostElement["s-p"] = [];
|
|
81
|
-
hostElement["s-rc"] = [];
|
|
82
|
-
}
|
|
83
|
-
{
|
|
84
|
-
hostRef.$fetchedCbList$ = [];
|
|
85
|
-
}
|
|
86
|
-
const ref = hostRef;
|
|
87
|
-
hostElement.__stencil__getHostRef = () => ref;
|
|
88
|
-
return ref;
|
|
89
|
-
};
|
|
90
|
-
var consoleError = (e, el) => (0, console.error)(e, el);
|
|
91
|
-
|
|
92
|
-
// src/client/client-load-module.ts
|
|
93
|
-
var cmpModules = /* @__PURE__ */ new Map();
|
|
94
|
-
var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
95
|
-
const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
|
|
96
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
97
|
-
if (!bundleId) {
|
|
98
|
-
return void 0;
|
|
99
|
-
}
|
|
100
|
-
const module = cmpModules.get(bundleId) ;
|
|
101
|
-
if (module) {
|
|
102
|
-
return module[exportName];
|
|
103
|
-
}
|
|
104
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
105
|
-
return import(
|
|
106
|
-
/* @vite-ignore */
|
|
107
|
-
/* webpackInclude: /\.entry\.js$/ */
|
|
108
|
-
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
109
|
-
/* webpackMode: "lazy" */
|
|
110
|
-
`./${bundleId}.entry.js${""}`
|
|
111
|
-
).then(
|
|
112
|
-
(importedModule) => {
|
|
113
|
-
{
|
|
114
|
-
cmpModules.set(bundleId, importedModule);
|
|
115
|
-
}
|
|
116
|
-
return importedModule[exportName];
|
|
117
|
-
},
|
|
118
|
-
(e) => {
|
|
119
|
-
consoleError(e, hostRef.$hostElement$);
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
// src/client/client-style.ts
|
|
125
|
-
var styles = /* @__PURE__ */ new Map();
|
|
126
|
-
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
127
|
-
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
128
|
-
var win = typeof window !== "undefined" ? window : {};
|
|
129
|
-
var plt = {
|
|
130
|
-
$flags$: 0,
|
|
131
|
-
$resourcesUrl$: "",
|
|
132
|
-
jmp: (h2) => h2(),
|
|
133
|
-
raf: (h2) => requestAnimationFrame(h2),
|
|
134
|
-
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
135
|
-
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
136
|
-
ce: (eventName, opts) => new CustomEvent(eventName, opts)
|
|
137
|
-
};
|
|
138
|
-
var promiseResolve = (v) => Promise.resolve(v);
|
|
139
|
-
var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
|
|
140
|
-
try {
|
|
141
|
-
if (!win.document.adoptedStyleSheets) {
|
|
142
|
-
return false;
|
|
143
|
-
}
|
|
144
|
-
new CSSStyleSheet();
|
|
145
|
-
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
146
|
-
} catch (e) {
|
|
147
|
-
}
|
|
148
|
-
return false;
|
|
149
|
-
})() ;
|
|
150
|
-
var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
|
|
151
|
-
var queuePending = false;
|
|
152
|
-
var queueDomReads = [];
|
|
153
|
-
var queueDomWrites = [];
|
|
154
|
-
var queueTask = (queue, write) => (cb) => {
|
|
155
|
-
queue.push(cb);
|
|
156
|
-
if (!queuePending) {
|
|
157
|
-
queuePending = true;
|
|
158
|
-
if (write && plt.$flags$ & 4 /* queueSync */) {
|
|
159
|
-
nextTick(flush);
|
|
160
|
-
} else {
|
|
161
|
-
plt.raf(flush);
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
var consume = (queue) => {
|
|
166
|
-
for (let i2 = 0; i2 < queue.length; i2++) {
|
|
167
|
-
try {
|
|
168
|
-
queue[i2](performance.now());
|
|
169
|
-
} catch (e) {
|
|
170
|
-
consoleError(e);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
queue.length = 0;
|
|
174
|
-
};
|
|
175
|
-
var flush = () => {
|
|
176
|
-
consume(queueDomReads);
|
|
177
|
-
{
|
|
178
|
-
consume(queueDomWrites);
|
|
179
|
-
if (queuePending = queueDomReads.length > 0) {
|
|
180
|
-
plt.raf(flush);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
var nextTick = (cb) => promiseResolve().then(cb);
|
|
185
|
-
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
186
|
-
|
|
187
|
-
// src/utils/style.ts
|
|
188
|
-
function createStyleSheetIfNeededAndSupported(styles2) {
|
|
189
|
-
if (!supportsConstructableStylesheets) return void 0;
|
|
190
|
-
const sheet = new CSSStyleSheet();
|
|
191
|
-
sheet.replaceSync(styles2);
|
|
192
|
-
return sheet;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// src/utils/shadow-root.ts
|
|
196
|
-
var globalStyleSheet;
|
|
197
|
-
function createShadowRoot(cmpMeta) {
|
|
198
|
-
var _a;
|
|
199
|
-
const opts = { mode: "open" };
|
|
200
|
-
const shadowRoot = this.attachShadow(opts);
|
|
201
|
-
if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;
|
|
202
|
-
if (globalStyleSheet) {
|
|
203
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
204
|
-
shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
205
|
-
} else {
|
|
206
|
-
shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
207
|
-
}
|
|
208
|
-
} else if (!supportsConstructableStylesheets) {
|
|
209
|
-
const styleElm = document.createElement("style");
|
|
210
|
-
styleElm.innerHTML = globalStyles;
|
|
211
|
-
shadowRoot.prepend(styleElm);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
var createTime = (fnName, tagName = "") => {
|
|
215
|
-
{
|
|
216
|
-
return () => {
|
|
217
|
-
return;
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
var uniqueTime = (key, measureText) => {
|
|
222
|
-
{
|
|
223
|
-
return () => {
|
|
224
|
-
return;
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
// src/utils/query-nonce-meta-tag-content.ts
|
|
230
|
-
function queryNonceMetaTagContent(doc) {
|
|
231
|
-
var _a, _b, _c;
|
|
232
|
-
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;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// src/runtime/styles.ts
|
|
236
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
237
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
238
|
-
let style = styles.get(scopeId2);
|
|
239
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
240
|
-
style = style || new CSSStyleSheet();
|
|
241
|
-
if (typeof style === "string") {
|
|
242
|
-
style = cssText;
|
|
243
|
-
} else {
|
|
244
|
-
style.replaceSync(cssText);
|
|
245
|
-
}
|
|
246
|
-
} else {
|
|
247
|
-
style = cssText;
|
|
248
|
-
}
|
|
249
|
-
styles.set(scopeId2, style);
|
|
250
|
-
};
|
|
251
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
252
|
-
var _a, _b, _c;
|
|
253
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
254
|
-
const style = styles.get(scopeId2);
|
|
255
|
-
if (!win.document) {
|
|
256
|
-
return scopeId2;
|
|
257
|
-
}
|
|
258
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
259
|
-
if (style) {
|
|
260
|
-
if (typeof style === "string") {
|
|
261
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
262
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
263
|
-
let styleElm;
|
|
264
|
-
if (!appliedStyles) {
|
|
265
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
266
|
-
}
|
|
267
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
268
|
-
styleElm = win.document.createElement("style");
|
|
269
|
-
styleElm.textContent = style;
|
|
270
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
271
|
-
if (nonce != null) {
|
|
272
|
-
styleElm.setAttribute("nonce", nonce);
|
|
273
|
-
}
|
|
274
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
275
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
276
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
277
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
278
|
-
styleContainerNode.insertBefore(
|
|
279
|
-
styleElm,
|
|
280
|
-
(referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
|
|
281
|
-
);
|
|
282
|
-
} else if ("host" in styleContainerNode) {
|
|
283
|
-
if (supportsConstructableStylesheets) {
|
|
284
|
-
const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;
|
|
285
|
-
const stylesheet = new currentWindow.CSSStyleSheet();
|
|
286
|
-
stylesheet.replaceSync(style);
|
|
287
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
288
|
-
styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
|
|
289
|
-
} else {
|
|
290
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
291
|
-
}
|
|
292
|
-
} else {
|
|
293
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
294
|
-
if (existingStyleContainer && true) {
|
|
295
|
-
existingStyleContainer.textContent = style + existingStyleContainer.textContent;
|
|
296
|
-
} else {
|
|
297
|
-
styleContainerNode.prepend(styleElm);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
} else {
|
|
301
|
-
styleContainerNode.append(styleElm);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
305
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
306
|
-
}
|
|
307
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
308
|
-
styleElm.textContent += SLOT_FB_CSS;
|
|
309
|
-
}
|
|
310
|
-
if (appliedStyles) {
|
|
311
|
-
appliedStyles.add(scopeId2);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
} else {
|
|
315
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
316
|
-
if (!appliedStyles) {
|
|
317
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
318
|
-
}
|
|
319
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
320
|
-
const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;
|
|
321
|
-
let stylesheet;
|
|
322
|
-
if (style.constructor === currentWindow.CSSStyleSheet) {
|
|
323
|
-
stylesheet = style;
|
|
324
|
-
} else {
|
|
325
|
-
stylesheet = new currentWindow.CSSStyleSheet();
|
|
326
|
-
for (let i2 = 0; i2 < style.cssRules.length; i2++) {
|
|
327
|
-
stylesheet.insertRule(style.cssRules[i2].cssText, i2);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
if (supportsMutableAdoptedStyleSheets) {
|
|
331
|
-
styleContainerNode.adoptedStyleSheets.push(stylesheet);
|
|
332
|
-
} else {
|
|
333
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];
|
|
334
|
-
}
|
|
335
|
-
appliedStyles.add(scopeId2);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
return scopeId2;
|
|
340
|
-
};
|
|
341
|
-
var attachStyles = (hostRef) => {
|
|
342
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
343
|
-
const elm = hostRef.$hostElement$;
|
|
344
|
-
const flags = cmpMeta.$flags$;
|
|
345
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
346
|
-
const scopeId2 = addStyle(
|
|
347
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
348
|
-
cmpMeta);
|
|
349
|
-
if (flags & 10 /* needsScopedEncapsulation */) {
|
|
350
|
-
elm["s-sc"] = scopeId2;
|
|
351
|
-
elm.classList.add(scopeId2 + "-h");
|
|
352
|
-
}
|
|
353
|
-
endAttachStyles();
|
|
354
|
-
};
|
|
355
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
356
|
-
var isComplexType = (o) => {
|
|
357
|
-
o = typeof o;
|
|
358
|
-
return o === "object" || o === "function";
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
// src/runtime/vdom/h.ts
|
|
362
|
-
var h = (nodeName, vnodeData, ...children) => {
|
|
363
|
-
if (typeof nodeName === "string") {
|
|
364
|
-
nodeName = transformTag(nodeName);
|
|
365
|
-
}
|
|
366
|
-
let child = null;
|
|
367
|
-
let key = null;
|
|
368
|
-
let simple = false;
|
|
369
|
-
let lastSimple = false;
|
|
370
|
-
const vNodeChildren = [];
|
|
371
|
-
const walk = (c) => {
|
|
372
|
-
for (let i2 = 0; i2 < c.length; i2++) {
|
|
373
|
-
child = c[i2];
|
|
374
|
-
if (Array.isArray(child)) {
|
|
375
|
-
walk(child);
|
|
376
|
-
} else if (child != null && typeof child !== "boolean") {
|
|
377
|
-
if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
|
|
378
|
-
child = String(child);
|
|
379
|
-
}
|
|
380
|
-
if (simple && lastSimple) {
|
|
381
|
-
vNodeChildren[vNodeChildren.length - 1].$text$ += child;
|
|
382
|
-
} else {
|
|
383
|
-
vNodeChildren.push(simple ? newVNode(null, child) : child);
|
|
384
|
-
}
|
|
385
|
-
lastSimple = simple;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
walk(children);
|
|
390
|
-
if (vnodeData) {
|
|
391
|
-
if (vnodeData.key) {
|
|
392
|
-
key = vnodeData.key;
|
|
393
|
-
}
|
|
394
|
-
{
|
|
395
|
-
const classData = vnodeData.className || vnodeData.class;
|
|
396
|
-
if (classData) {
|
|
397
|
-
vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
const vnode = newVNode(nodeName, null);
|
|
402
|
-
vnode.$attrs$ = vnodeData;
|
|
403
|
-
if (vNodeChildren.length > 0) {
|
|
404
|
-
vnode.$children$ = vNodeChildren;
|
|
405
|
-
}
|
|
406
|
-
{
|
|
407
|
-
vnode.$key$ = key;
|
|
408
|
-
}
|
|
409
|
-
return vnode;
|
|
410
|
-
};
|
|
411
|
-
var newVNode = (tag, text) => {
|
|
412
|
-
const vnode = {
|
|
413
|
-
$flags$: 0,
|
|
414
|
-
$tag$: tag,
|
|
415
|
-
// Normalize undefined to null to prevent rendering "undefined" as text
|
|
416
|
-
$text$: text != null ? text : null,
|
|
417
|
-
$elm$: null,
|
|
418
|
-
$children$: null
|
|
419
|
-
};
|
|
420
|
-
{
|
|
421
|
-
vnode.$attrs$ = null;
|
|
422
|
-
}
|
|
423
|
-
{
|
|
424
|
-
vnode.$key$ = null;
|
|
425
|
-
}
|
|
426
|
-
return vnode;
|
|
427
|
-
};
|
|
428
|
-
var Host = {};
|
|
429
|
-
var isHost = (node) => node && node.$tag$ === Host;
|
|
430
|
-
|
|
431
|
-
// src/runtime/parse-property-value.ts
|
|
432
|
-
var parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
433
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
434
|
-
if (propType & 1 /* String */) {
|
|
435
|
-
return String(propValue);
|
|
436
|
-
}
|
|
437
|
-
return propValue;
|
|
438
|
-
}
|
|
439
|
-
return propValue;
|
|
440
|
-
};
|
|
441
|
-
var emitEvent = (elm, name, opts) => {
|
|
442
|
-
const ev = plt.ce(name, opts);
|
|
443
|
-
elm.dispatchEvent(ev);
|
|
444
|
-
return ev;
|
|
445
|
-
};
|
|
446
|
-
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
447
|
-
if (oldValue === newValue) {
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
memberName.toLowerCase();
|
|
451
|
-
if (memberName === "class") {
|
|
452
|
-
const classList = elm.classList;
|
|
453
|
-
const oldClasses = parseClassList(oldValue);
|
|
454
|
-
let newClasses = parseClassList(newValue);
|
|
455
|
-
{
|
|
456
|
-
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
457
|
-
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
var parseClassListRegex = /\s/;
|
|
462
|
-
var parseClassList = (value) => {
|
|
463
|
-
if (typeof value === "object" && value && "baseVal" in value) {
|
|
464
|
-
value = value.baseVal;
|
|
465
|
-
}
|
|
466
|
-
if (!value || typeof value !== "string") {
|
|
467
|
-
return [];
|
|
468
|
-
}
|
|
469
|
-
return value.split(parseClassListRegex);
|
|
470
|
-
};
|
|
471
|
-
|
|
472
|
-
// src/runtime/vdom/update-element.ts
|
|
473
|
-
var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
|
|
474
|
-
const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
|
|
475
|
-
const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
|
|
476
|
-
const newVnodeAttrs = newVnode.$attrs$ || {};
|
|
477
|
-
{
|
|
478
|
-
for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
|
|
479
|
-
if (!(memberName in newVnodeAttrs)) {
|
|
480
|
-
setAccessor(
|
|
481
|
-
elm,
|
|
482
|
-
memberName,
|
|
483
|
-
oldVnodeAttrs[memberName],
|
|
484
|
-
void 0);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
|
|
489
|
-
setAccessor(
|
|
490
|
-
elm,
|
|
491
|
-
memberName,
|
|
492
|
-
oldVnodeAttrs[memberName],
|
|
493
|
-
newVnodeAttrs[memberName]);
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
function sortedAttrNames(attrNames) {
|
|
497
|
-
return attrNames.includes("ref") ? (
|
|
498
|
-
// we need to sort these to ensure that `'ref'` is the last attr
|
|
499
|
-
[...attrNames.filter((attr) => attr !== "ref"), "ref"]
|
|
500
|
-
) : (
|
|
501
|
-
// no need to sort, return the original array
|
|
502
|
-
attrNames
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
var hostTagName;
|
|
506
|
-
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
507
|
-
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
508
|
-
let i2 = 0;
|
|
509
|
-
let elm;
|
|
510
|
-
let childNode;
|
|
511
|
-
if (newVNode2.$text$ != null) {
|
|
512
|
-
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
513
|
-
} else {
|
|
514
|
-
if (!win.document) {
|
|
515
|
-
throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");
|
|
516
|
-
}
|
|
517
|
-
elm = newVNode2.$elm$ = win.document.createElement(
|
|
518
|
-
newVNode2.$tag$
|
|
519
|
-
);
|
|
520
|
-
{
|
|
521
|
-
updateElement(null, newVNode2);
|
|
522
|
-
}
|
|
523
|
-
if (newVNode2.$children$) {
|
|
524
|
-
const appendTarget = newVNode2.$tag$ === "template" ? elm.content : elm;
|
|
525
|
-
for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
|
|
526
|
-
childNode = createElm(oldParentVNode, newVNode2, i2);
|
|
527
|
-
if (childNode) {
|
|
528
|
-
appendTarget.appendChild(childNode);
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
elm["s-hn"] = hostTagName;
|
|
534
|
-
return elm;
|
|
535
|
-
};
|
|
536
|
-
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
537
|
-
let containerElm = parentElm;
|
|
538
|
-
let childNode;
|
|
539
|
-
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
540
|
-
containerElm = containerElm.shadowRoot;
|
|
541
|
-
}
|
|
542
|
-
if (parentVNode.$tag$ === "template") {
|
|
543
|
-
containerElm = containerElm.content;
|
|
544
|
-
}
|
|
545
|
-
for (; startIdx <= endIdx; ++startIdx) {
|
|
546
|
-
if (vnodes[startIdx]) {
|
|
547
|
-
childNode = createElm(null, parentVNode, startIdx);
|
|
548
|
-
if (childNode) {
|
|
549
|
-
vnodes[startIdx].$elm$ = childNode;
|
|
550
|
-
insertBefore(containerElm, childNode, before);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
556
|
-
for (let index = startIdx; index <= endIdx; ++index) {
|
|
557
|
-
const vnode = vnodes[index];
|
|
558
|
-
if (vnode) {
|
|
559
|
-
const elm = vnode.$elm$;
|
|
560
|
-
if (elm) {
|
|
561
|
-
elm.remove();
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
|
|
567
|
-
let oldStartIdx = 0;
|
|
568
|
-
let newStartIdx = 0;
|
|
569
|
-
let idxInOld = 0;
|
|
570
|
-
let i2 = 0;
|
|
571
|
-
let oldEndIdx = oldCh.length - 1;
|
|
572
|
-
let oldStartVnode = oldCh[0];
|
|
573
|
-
let oldEndVnode = oldCh[oldEndIdx];
|
|
574
|
-
let newEndIdx = newCh.length - 1;
|
|
575
|
-
let newStartVnode = newCh[0];
|
|
576
|
-
let newEndVnode = newCh[newEndIdx];
|
|
577
|
-
let node;
|
|
578
|
-
let elmToMove;
|
|
579
|
-
const containerElm = newVNode2.$tag$ === "template" ? parentElm.content : parentElm;
|
|
580
|
-
while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
|
|
581
|
-
if (oldStartVnode == null) {
|
|
582
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
583
|
-
} else if (oldEndVnode == null) {
|
|
584
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
585
|
-
} else if (newStartVnode == null) {
|
|
586
|
-
newStartVnode = newCh[++newStartIdx];
|
|
587
|
-
} else if (newEndVnode == null) {
|
|
588
|
-
newEndVnode = newCh[--newEndIdx];
|
|
589
|
-
} else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
|
|
590
|
-
patch(oldStartVnode, newStartVnode, isInitialRender);
|
|
591
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
592
|
-
newStartVnode = newCh[++newStartIdx];
|
|
593
|
-
} else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
|
|
594
|
-
patch(oldEndVnode, newEndVnode, isInitialRender);
|
|
595
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
596
|
-
newEndVnode = newCh[--newEndIdx];
|
|
597
|
-
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
598
|
-
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
599
|
-
insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
600
|
-
oldStartVnode = oldCh[++oldStartIdx];
|
|
601
|
-
newEndVnode = newCh[--newEndIdx];
|
|
602
|
-
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
603
|
-
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
604
|
-
insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
605
|
-
oldEndVnode = oldCh[--oldEndIdx];
|
|
606
|
-
newStartVnode = newCh[++newStartIdx];
|
|
607
|
-
} else {
|
|
608
|
-
idxInOld = -1;
|
|
609
|
-
{
|
|
610
|
-
for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
|
|
611
|
-
if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
|
|
612
|
-
idxInOld = i2;
|
|
613
|
-
break;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
if (idxInOld >= 0) {
|
|
618
|
-
elmToMove = oldCh[idxInOld];
|
|
619
|
-
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
620
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
|
|
621
|
-
} else {
|
|
622
|
-
patch(elmToMove, newStartVnode, isInitialRender);
|
|
623
|
-
oldCh[idxInOld] = void 0;
|
|
624
|
-
node = elmToMove.$elm$;
|
|
625
|
-
}
|
|
626
|
-
newStartVnode = newCh[++newStartIdx];
|
|
627
|
-
} else {
|
|
628
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
|
|
629
|
-
newStartVnode = newCh[++newStartIdx];
|
|
630
|
-
}
|
|
631
|
-
if (node) {
|
|
632
|
-
{
|
|
633
|
-
insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
if (oldStartIdx > oldEndIdx) {
|
|
639
|
-
addVnodes(
|
|
640
|
-
parentElm,
|
|
641
|
-
newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
|
|
642
|
-
newVNode2,
|
|
643
|
-
newCh,
|
|
644
|
-
newStartIdx,
|
|
645
|
-
newEndIdx
|
|
646
|
-
);
|
|
647
|
-
} else if (newStartIdx > newEndIdx) {
|
|
648
|
-
removeVnodes(oldCh, oldStartIdx, oldEndIdx);
|
|
649
|
-
}
|
|
650
|
-
};
|
|
651
|
-
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
652
|
-
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
653
|
-
if (!isInitialRender) {
|
|
654
|
-
return leftVNode.$key$ === rightVNode.$key$;
|
|
655
|
-
}
|
|
656
|
-
if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
|
|
657
|
-
leftVNode.$key$ = rightVNode.$key$;
|
|
658
|
-
}
|
|
659
|
-
return true;
|
|
660
|
-
}
|
|
661
|
-
return false;
|
|
662
|
-
};
|
|
663
|
-
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
664
|
-
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
665
|
-
const oldChildren = oldVNode.$children$;
|
|
666
|
-
const newChildren = newVNode2.$children$;
|
|
667
|
-
const text = newVNode2.$text$;
|
|
668
|
-
if (text == null) {
|
|
669
|
-
{
|
|
670
|
-
updateElement(oldVNode, newVNode2);
|
|
671
|
-
}
|
|
672
|
-
if (oldChildren !== null && newChildren !== null) {
|
|
673
|
-
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
674
|
-
} else if (newChildren !== null) {
|
|
675
|
-
if (oldVNode.$text$ !== null) {
|
|
676
|
-
elm.textContent = "";
|
|
677
|
-
}
|
|
678
|
-
addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
|
|
679
|
-
} else if (
|
|
680
|
-
// don't do this on initial render as it can cause non-hydrated content to be removed
|
|
681
|
-
!isInitialRender && BUILD.updatable && oldChildren !== null
|
|
682
|
-
) {
|
|
683
|
-
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
684
|
-
} else ;
|
|
685
|
-
} else if (oldVNode.$text$ !== text) {
|
|
686
|
-
elm.data = text;
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
var insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
690
|
-
if (parent.__insertBefore) {
|
|
691
|
-
return parent.__insertBefore(newNode, reference);
|
|
692
|
-
} else {
|
|
693
|
-
return parent == null ? void 0 : parent.insertBefore(newNode, reference);
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
|
-
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
697
|
-
const hostElm = hostRef.$hostElement$;
|
|
698
|
-
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
699
|
-
const isHostElement = isHost(renderFnResults);
|
|
700
|
-
const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
|
|
701
|
-
hostTagName = hostElm.tagName;
|
|
702
|
-
if (isInitialLoad && rootVnode.$attrs$) {
|
|
703
|
-
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
704
|
-
if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
|
|
705
|
-
rootVnode.$attrs$[key] = hostElm[key];
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
rootVnode.$tag$ = null;
|
|
710
|
-
rootVnode.$flags$ |= 4 /* isHost */;
|
|
711
|
-
hostRef.$vnode$ = rootVnode;
|
|
712
|
-
rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
|
|
713
|
-
patch(oldVNode, rootVnode, isInitialLoad);
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
// src/runtime/update-component.ts
|
|
717
|
-
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
718
|
-
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
|
|
719
|
-
const index = ancestorComponent["s-p"].push(
|
|
720
|
-
new Promise(
|
|
721
|
-
(r) => hostRef.$onRenderResolve$ = () => {
|
|
722
|
-
ancestorComponent["s-p"].splice(index - 1, 1);
|
|
723
|
-
r();
|
|
724
|
-
}
|
|
725
|
-
)
|
|
726
|
-
);
|
|
727
|
-
}
|
|
728
|
-
};
|
|
729
|
-
var scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
730
|
-
{
|
|
731
|
-
hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
|
|
732
|
-
}
|
|
733
|
-
if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
|
|
734
|
-
hostRef.$flags$ |= 512 /* needsRerender */;
|
|
735
|
-
return;
|
|
736
|
-
}
|
|
737
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$);
|
|
738
|
-
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
739
|
-
if (isInitialLoad) {
|
|
740
|
-
queueMicrotask(() => {
|
|
741
|
-
dispatch();
|
|
742
|
-
});
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
return writeTask(dispatch) ;
|
|
746
|
-
};
|
|
747
|
-
var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
748
|
-
const elm = hostRef.$hostElement$;
|
|
749
|
-
const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
|
|
750
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
751
|
-
if (!instance) {
|
|
752
|
-
throw new Error(
|
|
753
|
-
`Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
|
|
754
|
-
);
|
|
755
|
-
}
|
|
756
|
-
let maybePromise;
|
|
757
|
-
if (isInitialLoad) {
|
|
758
|
-
{
|
|
759
|
-
if (hostRef.$fetchedCbList$.length) {
|
|
760
|
-
hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
764
|
-
} else {
|
|
765
|
-
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
766
|
-
}
|
|
767
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
768
|
-
endSchedule();
|
|
769
|
-
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
770
|
-
};
|
|
771
|
-
var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {
|
|
772
|
-
console.error(err);
|
|
773
|
-
fn();
|
|
774
|
-
}) : fn();
|
|
775
|
-
var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
|
|
776
|
-
var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
777
|
-
var _a;
|
|
778
|
-
const elm = hostRef.$hostElement$;
|
|
779
|
-
const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
|
|
780
|
-
const rc = elm["s-rc"];
|
|
781
|
-
if (isInitialLoad) {
|
|
782
|
-
attachStyles(hostRef);
|
|
783
|
-
}
|
|
784
|
-
const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
|
|
785
|
-
{
|
|
786
|
-
callRender(hostRef, instance, elm, isInitialLoad);
|
|
787
|
-
}
|
|
788
|
-
if (rc) {
|
|
789
|
-
rc.map((cb) => cb());
|
|
790
|
-
elm["s-rc"] = void 0;
|
|
791
|
-
}
|
|
792
|
-
endRender();
|
|
793
|
-
endUpdate();
|
|
794
|
-
{
|
|
795
|
-
const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
|
|
796
|
-
const postUpdate = () => postUpdateComponent(hostRef);
|
|
797
|
-
if (childrenPromises.length === 0) {
|
|
798
|
-
postUpdate();
|
|
799
|
-
} else {
|
|
800
|
-
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
801
|
-
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
802
|
-
childrenPromises.length = 0;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
var callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
807
|
-
try {
|
|
808
|
-
instance = instance.render() ;
|
|
809
|
-
{
|
|
810
|
-
hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
|
|
811
|
-
}
|
|
812
|
-
{
|
|
813
|
-
hostRef.$flags$ |= 2 /* hasRendered */;
|
|
814
|
-
}
|
|
815
|
-
{
|
|
816
|
-
{
|
|
817
|
-
{
|
|
818
|
-
renderVdom(hostRef, instance, isInitialLoad);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
} catch (e) {
|
|
823
|
-
consoleError(e, hostRef.$hostElement$);
|
|
824
|
-
}
|
|
825
|
-
return null;
|
|
826
|
-
};
|
|
827
|
-
var postUpdateComponent = (hostRef) => {
|
|
828
|
-
const tagName = hostRef.$cmpMeta$.$tagName$;
|
|
829
|
-
const elm = hostRef.$hostElement$;
|
|
830
|
-
const endPostUpdate = createTime("postUpdate", tagName);
|
|
831
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
832
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
833
|
-
safeCall(instance, "componentDidRender", void 0, elm);
|
|
834
|
-
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
835
|
-
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
836
|
-
{
|
|
837
|
-
addHydratedFlag(elm);
|
|
838
|
-
}
|
|
839
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
840
|
-
endPostUpdate();
|
|
841
|
-
{
|
|
842
|
-
hostRef.$onReadyResolve$(elm);
|
|
843
|
-
if (!ancestorComponent) {
|
|
844
|
-
appDidLoad();
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
} else {
|
|
848
|
-
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
849
|
-
endPostUpdate();
|
|
850
|
-
}
|
|
851
|
-
{
|
|
852
|
-
if (hostRef.$onRenderResolve$) {
|
|
853
|
-
hostRef.$onRenderResolve$();
|
|
854
|
-
hostRef.$onRenderResolve$ = void 0;
|
|
855
|
-
}
|
|
856
|
-
if (hostRef.$flags$ & 512 /* needsRerender */) {
|
|
857
|
-
nextTick(() => scheduleUpdate(hostRef, false));
|
|
858
|
-
}
|
|
859
|
-
hostRef.$flags$ &= -517;
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
var appDidLoad = (who) => {
|
|
863
|
-
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
864
|
-
};
|
|
865
|
-
var safeCall = (instance, method, arg, elm) => {
|
|
866
|
-
if (instance && instance[method]) {
|
|
867
|
-
try {
|
|
868
|
-
return instance[method](arg);
|
|
869
|
-
} catch (e) {
|
|
870
|
-
consoleError(e, elm);
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
return void 0;
|
|
874
|
-
};
|
|
875
|
-
var addHydratedFlag = (elm) => {
|
|
876
|
-
var _a;
|
|
877
|
-
return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
// src/runtime/set-value.ts
|
|
881
|
-
var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
882
|
-
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
883
|
-
const hostRef = getHostRef(ref);
|
|
884
|
-
if (!hostRef) {
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
if (!hostRef) {
|
|
888
|
-
throw new Error(
|
|
889
|
-
`Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
|
|
890
|
-
);
|
|
891
|
-
}
|
|
892
|
-
const oldVal = hostRef.$instanceValues$.get(propName);
|
|
893
|
-
const flags = hostRef.$flags$;
|
|
894
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
895
|
-
newVal = parsePropertyValue(
|
|
896
|
-
newVal,
|
|
897
|
-
cmpMeta.$members$[propName][0]);
|
|
898
|
-
const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
|
|
899
|
-
const didValueChange = newVal !== oldVal && !areBothNaN;
|
|
900
|
-
if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
|
|
901
|
-
hostRef.$instanceValues$.set(propName, newVal);
|
|
902
|
-
if (flags & 2 /* hasRendered */) {
|
|
903
|
-
if (instance.componentShouldUpdate) {
|
|
904
|
-
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
905
|
-
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
906
|
-
return;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
910
|
-
scheduleUpdate(hostRef, false);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
};
|
|
915
|
-
|
|
916
|
-
// src/runtime/proxy-component.ts
|
|
917
|
-
var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
918
|
-
var _a, _b;
|
|
919
|
-
const prototype = Cstr.prototype;
|
|
920
|
-
if (cmpMeta.$members$ || BUILD.propChangeCallback) {
|
|
921
|
-
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
922
|
-
members.map(([memberName, [memberFlags]]) => {
|
|
923
|
-
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
924
|
-
const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};
|
|
925
|
-
if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
|
|
926
|
-
if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
|
|
927
|
-
if (flags & 1 /* isElementConstructor */ || !origGetter) {
|
|
928
|
-
Object.defineProperty(prototype, memberName, {
|
|
929
|
-
get() {
|
|
930
|
-
{
|
|
931
|
-
if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
|
|
932
|
-
return getValue(this, memberName);
|
|
933
|
-
}
|
|
934
|
-
const ref = getHostRef(this);
|
|
935
|
-
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
936
|
-
if (!instance) return;
|
|
937
|
-
return instance[memberName];
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
configurable: true,
|
|
941
|
-
enumerable: true
|
|
942
|
-
});
|
|
943
|
-
}
|
|
944
|
-
Object.defineProperty(prototype, memberName, {
|
|
945
|
-
set(newValue) {
|
|
946
|
-
const ref = getHostRef(this);
|
|
947
|
-
if (!ref) {
|
|
948
|
-
return;
|
|
949
|
-
}
|
|
950
|
-
if (origSetter) {
|
|
951
|
-
const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
952
|
-
if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
|
|
953
|
-
newValue = ref.$instanceValues$.get(memberName);
|
|
954
|
-
}
|
|
955
|
-
origSetter.apply(this, [
|
|
956
|
-
parsePropertyValue(
|
|
957
|
-
newValue,
|
|
958
|
-
memberFlags)
|
|
959
|
-
]);
|
|
960
|
-
newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
|
|
961
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
{
|
|
965
|
-
if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
|
|
966
|
-
setValue(this, memberName, newValue, cmpMeta);
|
|
967
|
-
if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
|
|
968
|
-
ref.$fetchedCbList$.push(() => {
|
|
969
|
-
if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
|
|
970
|
-
ref.$lazyInstance$[memberName] = newValue;
|
|
971
|
-
}
|
|
972
|
-
});
|
|
973
|
-
}
|
|
974
|
-
return;
|
|
975
|
-
}
|
|
976
|
-
const setterSetVal = () => {
|
|
977
|
-
const currentValue = ref.$lazyInstance$[memberName];
|
|
978
|
-
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
979
|
-
ref.$instanceValues$.set(memberName, currentValue);
|
|
980
|
-
}
|
|
981
|
-
ref.$lazyInstance$[memberName] = parsePropertyValue(
|
|
982
|
-
newValue,
|
|
983
|
-
memberFlags);
|
|
984
|
-
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
985
|
-
};
|
|
986
|
-
if (ref.$lazyInstance$) {
|
|
987
|
-
setterSetVal();
|
|
988
|
-
} else {
|
|
989
|
-
ref.$fetchedCbList$.push(() => {
|
|
990
|
-
setterSetVal();
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
if ((flags & 1 /* isElementConstructor */)) {
|
|
999
|
-
const attrNameToPropName = /* @__PURE__ */ new Map();
|
|
1000
|
-
prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
|
|
1001
|
-
plt.jmp(() => {
|
|
1002
|
-
var _a2;
|
|
1003
|
-
const propName = attrNameToPropName.get(attrName);
|
|
1004
|
-
const hostRef = getHostRef(this);
|
|
1005
|
-
if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
|
|
1006
|
-
newValue = this[propName];
|
|
1007
|
-
delete this[propName];
|
|
1008
|
-
}
|
|
1009
|
-
if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
|
|
1010
|
-
this[propName] == newValue) {
|
|
1011
|
-
return;
|
|
1012
|
-
} else if (propName == null) {
|
|
1013
|
-
const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
|
|
1014
|
-
if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {
|
|
1015
|
-
const instance = hostRef.$lazyInstance$ ;
|
|
1016
|
-
const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
|
|
1017
|
-
entry == null ? void 0 : entry.forEach((watcher) => {
|
|
1018
|
-
const [[watchMethodName, watcherFlags]] = Object.entries(watcher);
|
|
1019
|
-
if (instance[watchMethodName] != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {
|
|
1020
|
-
instance[watchMethodName].call(instance, newValue, oldValue, attrName);
|
|
1021
|
-
}
|
|
1022
|
-
});
|
|
1023
|
-
}
|
|
1024
|
-
return;
|
|
1025
|
-
}
|
|
1026
|
-
const propFlags = members.find(([m]) => m === propName);
|
|
1027
|
-
const isBooleanTarget = propFlags && propFlags[1][0] & 4 /* Boolean */;
|
|
1028
|
-
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
1029
|
-
if (isBooleanTarget) {
|
|
1030
|
-
newValue = newValue === null || newValue === "false" ? false : true;
|
|
1031
|
-
}
|
|
1032
|
-
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
1033
|
-
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) {
|
|
1034
|
-
this[propName] = newValue;
|
|
1035
|
-
}
|
|
1036
|
-
});
|
|
1037
|
-
};
|
|
1038
|
-
Cstr.observedAttributes = Array.from(
|
|
1039
|
-
/* @__PURE__ */ new Set([
|
|
1040
|
-
...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
|
|
1041
|
-
...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {
|
|
1042
|
-
const attrName = m[1] || propName;
|
|
1043
|
-
attrNameToPropName.set(attrName, propName);
|
|
1044
|
-
return attrName;
|
|
1045
|
-
})
|
|
1046
|
-
])
|
|
1047
|
-
);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
return Cstr;
|
|
1051
|
-
};
|
|
1052
|
-
|
|
1053
|
-
// src/runtime/initialize-component.ts
|
|
1054
|
-
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
1055
|
-
let Cstr;
|
|
1056
|
-
try {
|
|
1057
|
-
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
1058
|
-
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
1059
|
-
const bundleId = cmpMeta.$lazyBundleId$;
|
|
1060
|
-
if (bundleId) {
|
|
1061
|
-
const CstrImport = loadModule(cmpMeta, hostRef);
|
|
1062
|
-
if (CstrImport && "then" in CstrImport) {
|
|
1063
|
-
const endLoad = uniqueTime();
|
|
1064
|
-
Cstr = await CstrImport;
|
|
1065
|
-
endLoad();
|
|
1066
|
-
} else {
|
|
1067
|
-
Cstr = CstrImport;
|
|
1068
|
-
}
|
|
1069
|
-
if (!Cstr) {
|
|
1070
|
-
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
1071
|
-
}
|
|
1072
|
-
if (!Cstr.isProxied) {
|
|
1073
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
1074
|
-
Cstr.isProxied = true;
|
|
1075
|
-
}
|
|
1076
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
1077
|
-
{
|
|
1078
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
1079
|
-
}
|
|
1080
|
-
try {
|
|
1081
|
-
new Cstr(hostRef);
|
|
1082
|
-
} catch (e) {
|
|
1083
|
-
consoleError(e, elm);
|
|
1084
|
-
}
|
|
1085
|
-
{
|
|
1086
|
-
hostRef.$flags$ &= -9 /* isConstructingInstance */;
|
|
1087
|
-
}
|
|
1088
|
-
endNewInstance();
|
|
1089
|
-
{
|
|
1090
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1091
|
-
}
|
|
1092
|
-
} else {
|
|
1093
|
-
Cstr = elm.constructor;
|
|
1094
|
-
const cmpTag = elm.localName;
|
|
1095
|
-
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
1096
|
-
}
|
|
1097
|
-
if (Cstr && Cstr.style) {
|
|
1098
|
-
let style;
|
|
1099
|
-
if (typeof Cstr.style === "string") {
|
|
1100
|
-
style = Cstr.style;
|
|
1101
|
-
}
|
|
1102
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
1103
|
-
if (!styles.has(scopeId2) || BUILD.hotModuleReplacement) {
|
|
1104
|
-
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
1105
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
1106
|
-
endRegisterStyles();
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1111
|
-
const schedule = () => scheduleUpdate(hostRef, true);
|
|
1112
|
-
if (ancestorComponent && ancestorComponent["s-rc"]) {
|
|
1113
|
-
ancestorComponent["s-rc"].push(schedule);
|
|
1114
|
-
} else {
|
|
1115
|
-
schedule();
|
|
1116
|
-
}
|
|
1117
|
-
} catch (e) {
|
|
1118
|
-
consoleError(e, elm);
|
|
1119
|
-
if (hostRef.$onRenderResolve$) {
|
|
1120
|
-
hostRef.$onRenderResolve$();
|
|
1121
|
-
hostRef.$onRenderResolve$ = void 0;
|
|
1122
|
-
}
|
|
1123
|
-
if (hostRef.$onReadyResolve$) {
|
|
1124
|
-
hostRef.$onReadyResolve$(elm);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
var fireConnectedCallback = (instance, elm) => {
|
|
1129
|
-
{
|
|
1130
|
-
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
|
|
1134
|
-
// src/runtime/connected-callback.ts
|
|
1135
|
-
var connectedCallback = (elm) => {
|
|
1136
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1137
|
-
const hostRef = getHostRef(elm);
|
|
1138
|
-
if (!hostRef) {
|
|
1139
|
-
return;
|
|
1140
|
-
}
|
|
1141
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1142
|
-
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1143
|
-
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1144
|
-
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1145
|
-
{
|
|
1146
|
-
let ancestorComponent = elm;
|
|
1147
|
-
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
1148
|
-
if (ancestorComponent["s-p"]) {
|
|
1149
|
-
attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
|
|
1150
|
-
break;
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
if (cmpMeta.$members$) {
|
|
1155
|
-
Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
|
|
1156
|
-
if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {
|
|
1157
|
-
const value = elm[memberName];
|
|
1158
|
-
delete elm[memberName];
|
|
1159
|
-
elm[memberName] = value;
|
|
1160
|
-
}
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
{
|
|
1164
|
-
initializeComponent(elm, hostRef, cmpMeta);
|
|
1165
|
-
}
|
|
1166
|
-
} else {
|
|
1167
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1168
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1169
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1170
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
endConnected();
|
|
1174
|
-
}
|
|
1175
|
-
};
|
|
1176
|
-
var disconnectInstance = (instance, elm) => {
|
|
1177
|
-
{
|
|
1178
|
-
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
1179
|
-
}
|
|
1180
|
-
};
|
|
1181
|
-
var disconnectedCallback = async (elm) => {
|
|
1182
|
-
if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
|
|
1183
|
-
const hostRef = getHostRef(elm);
|
|
1184
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1185
|
-
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
1186
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1187
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
if (rootAppliedStyles.has(elm)) {
|
|
1191
|
-
rootAppliedStyles.delete(elm);
|
|
1192
|
-
}
|
|
1193
|
-
if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
|
|
1194
|
-
rootAppliedStyles.delete(elm.shadowRoot);
|
|
1195
|
-
}
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
// src/runtime/bootstrap-lazy.ts
|
|
1199
|
-
var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
1200
|
-
var _a;
|
|
1201
|
-
if (!win.document) {
|
|
1202
|
-
console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
|
|
1203
|
-
return;
|
|
1204
|
-
}
|
|
1205
|
-
const endBootstrap = createTime();
|
|
1206
|
-
const cmpTags = [];
|
|
1207
|
-
const exclude = options.exclude || [];
|
|
1208
|
-
const customElements2 = win.customElements;
|
|
1209
|
-
const head = win.document.head;
|
|
1210
|
-
const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
|
|
1211
|
-
const dataStyles = /* @__PURE__ */ win.document.createElement("style");
|
|
1212
|
-
const deferredConnectedCallbacks = [];
|
|
1213
|
-
let appLoadFallback;
|
|
1214
|
-
let isBootstrapping = true;
|
|
1215
|
-
Object.assign(plt, options);
|
|
1216
|
-
plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
|
|
1217
|
-
lazyBundles.map((lazyBundle) => {
|
|
1218
|
-
lazyBundle[1].map((compactMeta) => {
|
|
1219
|
-
const cmpMeta = {
|
|
1220
|
-
$flags$: compactMeta[0],
|
|
1221
|
-
$tagName$: compactMeta[1],
|
|
1222
|
-
$members$: compactMeta[2],
|
|
1223
|
-
$listeners$: compactMeta[3]
|
|
1224
|
-
};
|
|
1225
|
-
{
|
|
1226
|
-
cmpMeta.$members$ = compactMeta[2];
|
|
1227
|
-
}
|
|
1228
|
-
const tagName = transformTag(cmpMeta.$tagName$);
|
|
1229
|
-
const HostElement = class extends HTMLElement {
|
|
1230
|
-
["s-p"];
|
|
1231
|
-
["s-rc"];
|
|
1232
|
-
hasRegisteredEventListeners = false;
|
|
1233
|
-
// StencilLazyHost
|
|
1234
|
-
constructor(self) {
|
|
1235
|
-
super(self);
|
|
1236
|
-
self = this;
|
|
1237
|
-
registerHost(self, cmpMeta);
|
|
1238
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
1239
|
-
{
|
|
1240
|
-
if (!self.shadowRoot) {
|
|
1241
|
-
createShadowRoot.call(self, cmpMeta);
|
|
1242
|
-
} else {
|
|
1243
|
-
if (self.shadowRoot.mode !== "open") {
|
|
1244
|
-
throw new Error(
|
|
1245
|
-
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
1246
|
-
);
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
connectedCallback() {
|
|
1253
|
-
const hostRef = getHostRef(this);
|
|
1254
|
-
if (!hostRef) {
|
|
1255
|
-
return;
|
|
1256
|
-
}
|
|
1257
|
-
if (!this.hasRegisteredEventListeners) {
|
|
1258
|
-
this.hasRegisteredEventListeners = true;
|
|
1259
|
-
}
|
|
1260
|
-
if (appLoadFallback) {
|
|
1261
|
-
clearTimeout(appLoadFallback);
|
|
1262
|
-
appLoadFallback = null;
|
|
1263
|
-
}
|
|
1264
|
-
if (isBootstrapping) {
|
|
1265
|
-
deferredConnectedCallbacks.push(this);
|
|
1266
|
-
} else {
|
|
1267
|
-
plt.jmp(() => connectedCallback(this));
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
disconnectedCallback() {
|
|
1271
|
-
plt.jmp(() => disconnectedCallback(this));
|
|
1272
|
-
plt.raf(() => {
|
|
1273
|
-
var _a3;
|
|
1274
|
-
const hostRef = getHostRef(this);
|
|
1275
|
-
if (!hostRef) {
|
|
1276
|
-
return;
|
|
1277
|
-
}
|
|
1278
|
-
const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
|
|
1279
|
-
if (i2 > -1) {
|
|
1280
|
-
deferredConnectedCallbacks.splice(i2, 1);
|
|
1281
|
-
}
|
|
1282
|
-
if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
|
|
1283
|
-
delete hostRef.$vnode$.$elm$;
|
|
1284
|
-
}
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
componentOnReady() {
|
|
1288
|
-
var _a3;
|
|
1289
|
-
return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
|
|
1290
|
-
}
|
|
1291
|
-
};
|
|
1292
|
-
cmpMeta.$lazyBundleId$ = lazyBundle[0];
|
|
1293
|
-
if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
|
|
1294
|
-
cmpTags.push(tagName);
|
|
1295
|
-
customElements2.define(
|
|
1296
|
-
tagName,
|
|
1297
|
-
proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
});
|
|
1301
|
-
});
|
|
1302
|
-
if (cmpTags.length > 0) {
|
|
1303
|
-
{
|
|
1304
|
-
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1305
|
-
}
|
|
1306
|
-
if (dataStyles.innerHTML.length) {
|
|
1307
|
-
dataStyles.setAttribute("data-styles", "");
|
|
1308
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
1309
|
-
if (nonce != null) {
|
|
1310
|
-
dataStyles.setAttribute("nonce", nonce);
|
|
1311
|
-
}
|
|
1312
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
isBootstrapping = false;
|
|
1316
|
-
if (deferredConnectedCallbacks.length) {
|
|
1317
|
-
deferredConnectedCallbacks.map((host) => host.connectedCallback());
|
|
1318
|
-
} else {
|
|
1319
|
-
{
|
|
1320
|
-
plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
endBootstrap();
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
// src/runtime/nonce.ts
|
|
1327
|
-
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1328
|
-
function transformTag(tag) {
|
|
1329
|
-
return tag;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
exports.bootstrapLazy = bootstrapLazy;
|
|
1333
|
-
exports.globalScripts = globalScripts;
|
|
1334
|
-
exports.h = h;
|
|
1335
|
-
exports.promiseResolve = promiseResolve;
|
|
1336
|
-
exports.registerInstance = registerInstance;
|
|
1337
|
-
exports.setNonce = setNonce;
|