@saasquatch/vanilla-components 1.2.4-4 → 1.2.4-7
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/LICENSE +21 -21
- package/dist/cjs/{WidgetHost-71b013eb.js → WidgetHost-d7b870ce.js} +615 -615
- package/dist/cjs/sqh-close-button.cjs.entry.js +25 -25
- package/dist/cjs/sqh-copy-button_12.cjs.entry.js +1134 -1050
- package/dist/cjs/sqh-referral-code.cjs.entry.js +22 -22
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +26 -26
- package/dist/collection/components/close-button/close-button.js +70 -70
- package/dist/collection/components/copy-button/copy-button.js +389 -389
- package/dist/collection/components/copy-link-button/copy-link-button.js +236 -233
- package/dist/collection/components/global-container/global-container.js +170 -170
- package/dist/collection/components/image-component/image-component.js +178 -175
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +199 -193
- package/dist/collection/components/referral-code/referral-code.js +36 -36
- package/dist/collection/components/referral-component/referral-component.js +255 -255
- package/dist/collection/components/referral-list/referral-list.js +935 -932
- package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
- package/dist/collection/components/share-button/share-button.js +310 -310
- package/dist/collection/components/share-button-container/share-button-container.js +2457 -2470
- package/dist/collection/components/stat-component/stat-component.js +200 -194
- package/dist/collection/components/stats-container/stats-container.js +210 -208
- package/dist/collection/components/text-component/text-component.js +283 -280
- package/dist/collection/entrypoint.js +32 -32
- package/dist/collection/global/global.js +4 -4
- package/dist/collection/services/FormatJs.js +15 -15
- package/dist/collection/services/WidgetHost.js +621 -621
- package/dist/collection/utilities.js +81 -81
- package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-a27e693d.js} +615 -615
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/sqh-close-button.entry.js +25 -25
- package/dist/esm/sqh-copy-button_12.entry.js +1134 -1050
- package/dist/esm/sqh-referral-code.entry.js +22 -22
- package/dist/esm/sqh-rewards-actions.entry.js +26 -26
- package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-a27e693d.js} +9432 -9432
- package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
- package/dist/esm-es5/css-shim-a659079f.js +122 -122
- package/dist/esm-es5/dom-4061ceba.js +468 -468
- package/dist/esm-es5/en-be593af0.js +1471 -1471
- package/dist/esm-es5/index-8ea8b6d8.js +1758 -1758
- package/dist/esm-es5/loader.mjs +11 -11
- package/dist/esm-es5/sqh-close-button.entry.js +35 -35
- package/dist/esm-es5/sqh-copy-button_12.entry.js +9643 -9571
- package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
- package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
- package/dist/esm-es5/widget-components.mjs +6 -6
- package/dist/types/components/close-button/close-button.d.ts +18 -18
- package/dist/types/components/copy-button/copy-button.d.ts +93 -107
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +55 -62
- package/dist/types/components/global-container/global-container.d.ts +43 -47
- package/dist/types/components/image-component/image-component.d.ts +46 -51
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +52 -54
- package/dist/types/components/referral-code/referral-code.d.ts +12 -12
- package/dist/types/components/referral-component/referral-component.d.ts +46 -46
- package/dist/types/components/referral-list/referral-list.d.ts +242 -251
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
- package/dist/types/components/share-button/share-button.d.ts +82 -82
- package/dist/types/components/share-button-container/share-button-container.d.ts +629 -684
- package/dist/types/components/stat-component/stat-component.d.ts +50 -54
- package/dist/types/components/stats-container/stats-container.d.ts +47 -48
- package/dist/types/components/text-component/text-component.d.ts +70 -81
- package/dist/types/components.d.ts +132 -234
- package/dist/types/global/global.d.ts +4 -4
- package/dist/types/saasquatch.d.ts +103 -103
- package/dist/types/services/FormatJs.d.ts +7 -7
- package/dist/types/services/WidgetHost.d.ts +45 -45
- package/dist/types/utilities.d.ts +7 -7
- package/dist/widget-components/entrypoint.js +32 -32
- package/dist/widget-components/p-24fc4ba9.js +1 -1
- package/dist/widget-components/p-46109683.js +3 -3
- package/dist/widget-components/p-58be1132.system.js +1 -1
- package/dist/widget-components/{p-54ea7a00.entry.js → p-650d012d.entry.js} +1 -1
- package/dist/widget-components/p-908068c2.system.entry.js +1 -0
- package/dist/widget-components/{p-edd43dbc.js → p-9525bf4a.js} +0 -0
- package/dist/widget-components/{p-8e232564.system.js → p-9adc7c50.system.js} +0 -0
- package/dist/widget-components/{p-b17efca4.system.entry.js → p-c0cdba77.system.entry.js} +1 -1
- package/dist/widget-components/{p-366f1663.entry.js → p-d4b27c72.entry.js} +1 -1
- package/dist/widget-components/{p-d416634a.entry.js → p-d7059393.entry.js} +16 -16
- package/dist/widget-components/p-fba5ea7f.system.entry.js +8 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +96 -96
- package/readme.md +52 -52
- package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
- package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
|
@@ -1,468 +1,468 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Stencil Client Patch v1.17.3 | MIT Licensed | https://stenciljs.com
|
|
3
|
-
*/
|
|
4
|
-
(function () {
|
|
5
|
-
var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
|
|
6
|
-
function g(a) { var b = aa.has(a); a = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a); return !b && a; }
|
|
7
|
-
function l(a) { var b = a.isConnected; if (void 0 !== b)
|
|
8
|
-
return b; for (; a && !(a.__CE_isImportDocument || a instanceof Document);)
|
|
9
|
-
a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0); return !(!a || !(a.__CE_isImportDocument || a instanceof Document)); }
|
|
10
|
-
function n(a, b) { for (; b && b !== a && !b.nextSibling;)
|
|
11
|
-
b = b.parentNode; return b && b !== a ? b.nextSibling : null; }
|
|
12
|
-
function p(a, b, d) { d = void 0 === d ? new Set : d; for (var c = a; c;) {
|
|
13
|
-
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
14
|
-
var e = c;
|
|
15
|
-
b(e);
|
|
16
|
-
var f = e.localName;
|
|
17
|
-
if ("link" === f && "import" === e.getAttribute("rel")) {
|
|
18
|
-
c = e.import;
|
|
19
|
-
if (c instanceof Node && !d.has(c))
|
|
20
|
-
for (d.add(c), c = c.firstChild; c; c = c.nextSibling)
|
|
21
|
-
p(c, b, d);
|
|
22
|
-
c = n(a, e);
|
|
23
|
-
continue;
|
|
24
|
-
}
|
|
25
|
-
else if ("template" === f) {
|
|
26
|
-
c = n(a, e);
|
|
27
|
-
continue;
|
|
28
|
-
}
|
|
29
|
-
if (e = e.__CE_shadowRoot)
|
|
30
|
-
for (e = e.firstChild; e; e = e.nextSibling)
|
|
31
|
-
p(e, b, d);
|
|
32
|
-
}
|
|
33
|
-
c = c.firstChild ? c.firstChild : n(a, c);
|
|
34
|
-
} }
|
|
35
|
-
function r(a, b, d) { a[b] = d; }
|
|
36
|
-
function u() { this.a = new Map; this.g = new Map; this.c = []; this.f = []; this.b = !1; }
|
|
37
|
-
function ba(a, b, d) { a.a.set(b, d); a.g.set(d.constructorFunction, d); }
|
|
38
|
-
function ca(a, b) { a.b = !0; a.c.push(b); }
|
|
39
|
-
function da(a, b) { a.b = !0; a.f.push(b); }
|
|
40
|
-
function v(a, b) { a.b && p(b, function (b) { return w(a, b); }); }
|
|
41
|
-
function w(a, b) { if (a.b && !b.__CE_patched) {
|
|
42
|
-
b.__CE_patched = !0;
|
|
43
|
-
for (var d = 0; d < a.c.length; d++)
|
|
44
|
-
a.c[d](b);
|
|
45
|
-
for (d = 0; d < a.f.length; d++)
|
|
46
|
-
a.f[d](b);
|
|
47
|
-
} }
|
|
48
|
-
function x(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
|
|
49
|
-
var c = d[b];
|
|
50
|
-
1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);
|
|
51
|
-
} }
|
|
52
|
-
function z(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
|
|
53
|
-
var c = d[b];
|
|
54
|
-
1 === c.__CE_state && a.disconnectedCallback(c);
|
|
55
|
-
} }
|
|
56
|
-
function A(a, b, d) {
|
|
57
|
-
d = void 0 === d ? {} : d;
|
|
58
|
-
var c = d.u || new Set, e = d.i || function (b) { return y(a, b); }, f = [];
|
|
59
|
-
p(b, function (b) { if ("link" === b.localName && "import" === b.getAttribute("rel")) {
|
|
60
|
-
var d = b.import;
|
|
61
|
-
d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);
|
|
62
|
-
d && "complete" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener("load", function () { var d = b.import; if (!d.__CE_documentLoadHandled) {
|
|
63
|
-
d.__CE_documentLoadHandled = !0;
|
|
64
|
-
var f = new Set(c);
|
|
65
|
-
f.delete(d);
|
|
66
|
-
A(a, d, { u: f, i: e });
|
|
67
|
-
} });
|
|
68
|
-
}
|
|
69
|
-
else
|
|
70
|
-
f.push(b); }, c);
|
|
71
|
-
if (a.b)
|
|
72
|
-
for (b =
|
|
73
|
-
0; b < f.length; b++)
|
|
74
|
-
w(a, f[b]);
|
|
75
|
-
for (b = 0; b < f.length; b++)
|
|
76
|
-
e(f[b]);
|
|
77
|
-
}
|
|
78
|
-
function y(a, b) {
|
|
79
|
-
if (void 0 === b.__CE_state) {
|
|
80
|
-
var d = b.ownerDocument;
|
|
81
|
-
if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry)
|
|
82
|
-
if (d = a.a.get(b.localName)) {
|
|
83
|
-
d.constructionStack.push(b);
|
|
84
|
-
var c = d.constructorFunction;
|
|
85
|
-
try {
|
|
86
|
-
try {
|
|
87
|
-
if (new c !== b)
|
|
88
|
-
throw Error("The custom element constructor did not produce the element being upgraded.");
|
|
89
|
-
}
|
|
90
|
-
finally {
|
|
91
|
-
d.constructionStack.pop();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
catch (t) {
|
|
95
|
-
throw b.__CE_state = 2, t;
|
|
96
|
-
}
|
|
97
|
-
b.__CE_state = 1;
|
|
98
|
-
b.__CE_definition = d;
|
|
99
|
-
if (d.attributeChangedCallback)
|
|
100
|
-
for (d = d.observedAttributes, c = 0; c < d.length; c++) {
|
|
101
|
-
var e = d[c], f = b.getAttribute(e);
|
|
102
|
-
null !== f && a.attributeChangedCallback(b, e, null, f, null);
|
|
103
|
-
}
|
|
104
|
-
l(b) && a.connectedCallback(b);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
u.prototype.connectedCallback = function (a) { var b = a.__CE_definition; b.connectedCallback && b.connectedCallback.call(a); };
|
|
109
|
-
u.prototype.disconnectedCallback = function (a) { var b = a.__CE_definition; b.disconnectedCallback && b.disconnectedCallback.call(a); };
|
|
110
|
-
u.prototype.attributeChangedCallback = function (a, b, d, c, e) { var f = a.__CE_definition; f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e); };
|
|
111
|
-
function B(a) { var b = document; this.c = a; this.a = b; this.b = void 0; A(this.c, this.a); "loading" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, { childList: !0, subtree: !0 })); }
|
|
112
|
-
function C(a) { a.b && a.b.disconnect(); }
|
|
113
|
-
B.prototype.f = function (a) { var b = this.a.readyState; "interactive" !== b && "complete" !== b || C(this); for (b = 0; b < a.length; b++)
|
|
114
|
-
for (var d = a[b].addedNodes, c = 0; c < d.length; c++)
|
|
115
|
-
A(this.c, d[c]); };
|
|
116
|
-
function ea() { var a = this; this.b = this.a = void 0; this.c = new Promise(function (b) { a.b = b; a.a && b(a.a); }); }
|
|
117
|
-
function D(a) { if (a.a)
|
|
118
|
-
throw Error("Already resolved."); a.a = void 0; a.b && a.b(void 0); }
|
|
119
|
-
function E(a) { this.c = !1; this.a = a; this.j = new Map; this.f = function (b) { return b(); }; this.b = !1; this.g = []; this.o = new B(a); }
|
|
120
|
-
E.prototype.l = function (a, b) {
|
|
121
|
-
var d = this;
|
|
122
|
-
if (!(b instanceof Function))
|
|
123
|
-
throw new TypeError("Custom element constructors must be functions.");
|
|
124
|
-
if (!g(a))
|
|
125
|
-
throw new SyntaxError("The element name '" + a + "' is not valid.");
|
|
126
|
-
if (this.a.a.get(a))
|
|
127
|
-
throw Error("A custom element with name '" + a + "' has already been defined.");
|
|
128
|
-
if (this.c)
|
|
129
|
-
throw Error("A custom element is already being defined.");
|
|
130
|
-
this.c = !0;
|
|
131
|
-
try {
|
|
132
|
-
var c = function (b) {
|
|
133
|
-
var a = e[b];
|
|
134
|
-
if (void 0 !== a && !(a instanceof Function))
|
|
135
|
-
throw Error("The '" + b + "' callback must be a function.");
|
|
136
|
-
return a;
|
|
137
|
-
}, e = b.prototype;
|
|
138
|
-
if (!(e instanceof Object))
|
|
139
|
-
throw new TypeError("The custom element constructor's prototype is not an object.");
|
|
140
|
-
var f = c("connectedCallback");
|
|
141
|
-
var t = c("disconnectedCallback");
|
|
142
|
-
var k = c("adoptedCallback");
|
|
143
|
-
var h = c("attributeChangedCallback");
|
|
144
|
-
var m = b.observedAttributes || [];
|
|
145
|
-
}
|
|
146
|
-
catch (q) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
finally {
|
|
150
|
-
this.c = !1;
|
|
151
|
-
}
|
|
152
|
-
b = { localName: a, constructorFunction: b, connectedCallback: f, disconnectedCallback: t, adoptedCallback: k, attributeChangedCallback: h, observedAttributes: m, constructionStack: [] };
|
|
153
|
-
ba(this.a, a, b);
|
|
154
|
-
this.g.push(b);
|
|
155
|
-
this.b || (this.b = !0, this.f(function () { return fa(d); }));
|
|
156
|
-
};
|
|
157
|
-
E.prototype.i = function (a) { A(this.a, a); };
|
|
158
|
-
function fa(a) { if (!1 !== a.b) {
|
|
159
|
-
a.b = !1;
|
|
160
|
-
for (var b = a.g, d = [], c = new Map, e = 0; e < b.length; e++)
|
|
161
|
-
c.set(b[e].localName, []);
|
|
162
|
-
A(a.a, document, { i: function (b) { if (void 0 === b.__CE_state) {
|
|
163
|
-
var e = b.localName, f = c.get(e);
|
|
164
|
-
f ? f.push(b) : a.a.a.get(e) && d.push(b);
|
|
165
|
-
} } });
|
|
166
|
-
for (e = 0; e < d.length; e++)
|
|
167
|
-
y(a.a, d[e]);
|
|
168
|
-
for (; 0 < b.length;) {
|
|
169
|
-
var f = b.shift();
|
|
170
|
-
e = f.localName;
|
|
171
|
-
f = c.get(f.localName);
|
|
172
|
-
for (var t = 0; t < f.length; t++)
|
|
173
|
-
y(a.a, f[t]);
|
|
174
|
-
(e = a.j.get(e)) && D(e);
|
|
175
|
-
}
|
|
176
|
-
} }
|
|
177
|
-
E.prototype.get = function (a) { if (a = this.a.a.get(a))
|
|
178
|
-
return a.constructorFunction; };
|
|
179
|
-
E.prototype.m = function (a) { if (!g(a))
|
|
180
|
-
return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name.")); var b = this.j.get(a); if (b)
|
|
181
|
-
return b.c; b = new ea; this.j.set(a, b); this.a.a.get(a) && !this.g.some(function (b) { return b.localName === a; }) && D(b); return b.c; };
|
|
182
|
-
E.prototype.s = function (a) { C(this.o); var b = this.f; this.f = function (d) { return a(function () { return b(d); }); }; };
|
|
183
|
-
window.CustomElementRegistry = E;
|
|
184
|
-
E.prototype.define = E.prototype.l;
|
|
185
|
-
E.prototype.upgrade = E.prototype.i;
|
|
186
|
-
E.prototype.get = E.prototype.get;
|
|
187
|
-
E.prototype.whenDefined = E.prototype.m;
|
|
188
|
-
E.prototype.polyfillWrapFlushCallback = E.prototype.s;
|
|
189
|
-
var F = window.Document.prototype.createElement, G = window.Document.prototype.createElementNS, ha = window.Document.prototype.importNode, ia = window.Document.prototype.prepend, ja = window.Document.prototype.append, ka = window.DocumentFragment.prototype.prepend, la = window.DocumentFragment.prototype.append, H = window.Node.prototype.cloneNode, I = window.Node.prototype.appendChild, J = window.Node.prototype.insertBefore, K = window.Node.prototype.removeChild, L = window.Node.prototype.replaceChild, M = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"), N = window.Element.prototype.attachShadow, O = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), P = window.Element.prototype.getAttribute, Q = window.Element.prototype.setAttribute, R = window.Element.prototype.removeAttribute, S = window.Element.prototype.getAttributeNS, T = window.Element.prototype.setAttributeNS, U = window.Element.prototype.removeAttributeNS, ma = window.Element.prototype.insertAdjacentElement, na = window.Element.prototype.insertAdjacentHTML, oa = window.Element.prototype.prepend, pa = window.Element.prototype.append, V = window.Element.prototype.before, qa = window.Element.prototype.after, ra = window.Element.prototype.replaceWith, sa = window.Element.prototype.remove, ta = window.HTMLElement, W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), ua = window.HTMLElement.prototype.insertAdjacentElement, va = window.HTMLElement.prototype.insertAdjacentHTML;
|
|
190
|
-
var wa = new function () { };
|
|
191
|
-
function xa() {
|
|
192
|
-
var a = X;
|
|
193
|
-
window.HTMLElement = function () {
|
|
194
|
-
function b() {
|
|
195
|
-
var b = this.constructor, c = a.g.get(b);
|
|
196
|
-
if (!c)
|
|
197
|
-
throw Error("The custom element being constructed was not registered with `customElements`.");
|
|
198
|
-
var e = c.constructionStack;
|
|
199
|
-
if (0 === e.length)
|
|
200
|
-
return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;
|
|
201
|
-
c = e.length - 1;
|
|
202
|
-
var f = e[c];
|
|
203
|
-
if (f === wa)
|
|
204
|
-
throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
|
|
205
|
-
e[c] = wa;
|
|
206
|
-
Object.setPrototypeOf(f, b.prototype);
|
|
207
|
-
w(a, f);
|
|
208
|
-
return f;
|
|
209
|
-
}
|
|
210
|
-
b.prototype = ta.prototype;
|
|
211
|
-
Object.defineProperty(b.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: b });
|
|
212
|
-
return b;
|
|
213
|
-
}();
|
|
214
|
-
}
|
|
215
|
-
function Y(a, b, d) { function c(b) { return function (d) { for (var e = [], c = 0; c < arguments.length; ++c)
|
|
216
|
-
e[c] = arguments[c]; c = []; for (var f = [], m = 0; m < e.length; m++) {
|
|
217
|
-
var q = e[m];
|
|
218
|
-
q instanceof Element && l(q) && f.push(q);
|
|
219
|
-
if (q instanceof DocumentFragment)
|
|
220
|
-
for (q = q.firstChild; q; q = q.nextSibling)
|
|
221
|
-
c.push(q);
|
|
222
|
-
else
|
|
223
|
-
c.push(q);
|
|
224
|
-
} b.apply(this, e); for (e = 0; e < f.length; e++)
|
|
225
|
-
z(a, f[e]); if (l(this))
|
|
226
|
-
for (e = 0; e < c.length; e++)
|
|
227
|
-
f = c[e], f instanceof Element && x(a, f); }; } void 0 !== d.h && (b.prepend = c(d.h)); void 0 !== d.append && (b.append = c(d.append)); }
|
|
228
|
-
function ya() {
|
|
229
|
-
var a = X;
|
|
230
|
-
r(Document.prototype, "createElement", function (b) { if (this.__CE_hasRegistry) {
|
|
231
|
-
var d = a.a.get(b);
|
|
232
|
-
if (d)
|
|
233
|
-
return new d.constructorFunction;
|
|
234
|
-
} b = F.call(this, b); w(a, b); return b; });
|
|
235
|
-
r(Document.prototype, "importNode", function (b, d) { b = ha.call(this, b, !!d); this.__CE_hasRegistry ? A(a, b) : v(a, b); return b; });
|
|
236
|
-
r(Document.prototype, "createElementNS", function (b, d) {
|
|
237
|
-
if (this.__CE_hasRegistry && (null === b || "http://www.w3.org/1999/xhtml" === b)) {
|
|
238
|
-
var c = a.a.get(d);
|
|
239
|
-
if (c)
|
|
240
|
-
return new c.constructorFunction;
|
|
241
|
-
}
|
|
242
|
-
b = G.call(this, b, d);
|
|
243
|
-
w(a, b);
|
|
244
|
-
return b;
|
|
245
|
-
});
|
|
246
|
-
Y(a, Document.prototype, { h: ia, append: ja });
|
|
247
|
-
}
|
|
248
|
-
function za() {
|
|
249
|
-
function a(a, c) { Object.defineProperty(a, "textContent", { enumerable: c.enumerable, configurable: !0, get: c.get, set: function (a) { if (this.nodeType === Node.TEXT_NODE)
|
|
250
|
-
c.set.call(this, a);
|
|
251
|
-
else {
|
|
252
|
-
var d = void 0;
|
|
253
|
-
if (this.firstChild) {
|
|
254
|
-
var e = this.childNodes, k = e.length;
|
|
255
|
-
if (0 < k && l(this)) {
|
|
256
|
-
d = Array(k);
|
|
257
|
-
for (var h = 0; h < k; h++)
|
|
258
|
-
d[h] = e[h];
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
c.set.call(this, a);
|
|
262
|
-
if (d)
|
|
263
|
-
for (a = 0; a < d.length; a++)
|
|
264
|
-
z(b, d[a]);
|
|
265
|
-
} } }); }
|
|
266
|
-
var b = X;
|
|
267
|
-
r(Node.prototype, "insertBefore", function (a, c) {
|
|
268
|
-
if (a instanceof DocumentFragment) {
|
|
269
|
-
var e = Array.prototype.slice.apply(a.childNodes);
|
|
270
|
-
a = J.call(this, a, c);
|
|
271
|
-
if (l(this))
|
|
272
|
-
for (c = 0; c < e.length; c++)
|
|
273
|
-
x(b, e[c]);
|
|
274
|
-
return a;
|
|
275
|
-
}
|
|
276
|
-
e = l(a);
|
|
277
|
-
c = J.call(this, a, c);
|
|
278
|
-
e && z(b, a);
|
|
279
|
-
l(this) && x(b, a);
|
|
280
|
-
return c;
|
|
281
|
-
});
|
|
282
|
-
r(Node.prototype, "appendChild", function (a) { if (a instanceof DocumentFragment) {
|
|
283
|
-
var c = Array.prototype.slice.apply(a.childNodes);
|
|
284
|
-
a = I.call(this, a);
|
|
285
|
-
if (l(this))
|
|
286
|
-
for (var e = 0; e < c.length; e++)
|
|
287
|
-
x(b, c[e]);
|
|
288
|
-
return a;
|
|
289
|
-
} c = l(a); e = I.call(this, a); c && z(b, a); l(this) && x(b, a); return e; });
|
|
290
|
-
r(Node.prototype, "cloneNode", function (a) {
|
|
291
|
-
a = H.call(this, !!a);
|
|
292
|
-
this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);
|
|
293
|
-
return a;
|
|
294
|
-
});
|
|
295
|
-
r(Node.prototype, "removeChild", function (a) { var c = l(a), e = K.call(this, a); c && z(b, a); return e; });
|
|
296
|
-
r(Node.prototype, "replaceChild", function (a, c) { if (a instanceof DocumentFragment) {
|
|
297
|
-
var e = Array.prototype.slice.apply(a.childNodes);
|
|
298
|
-
a = L.call(this, a, c);
|
|
299
|
-
if (l(this))
|
|
300
|
-
for (z(b, c), c = 0; c < e.length; c++)
|
|
301
|
-
x(b, e[c]);
|
|
302
|
-
return a;
|
|
303
|
-
} e = l(a); var f = L.call(this, a, c), d = l(this); d && z(b, c); e && z(b, a); d && x(b, a); return f; });
|
|
304
|
-
M && M.get ? a(Node.prototype, M) : ca(b, function (b) {
|
|
305
|
-
a(b, { enumerable: !0, configurable: !0, get: function () {
|
|
306
|
-
for (var a = [], b = 0; b < this.childNodes.length; b++) {
|
|
307
|
-
var f = this.childNodes[b];
|
|
308
|
-
f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);
|
|
309
|
-
}
|
|
310
|
-
return a.join("");
|
|
311
|
-
}, set: function (a) { for (; this.firstChild;)
|
|
312
|
-
K.call(this, this.firstChild); null != a && "" !== a && I.call(this, document.createTextNode(a)); } });
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
function Aa(a) {
|
|
316
|
-
function b(b) { return function (e) { for (var c = [], d = 0; d < arguments.length; ++d)
|
|
317
|
-
c[d] = arguments[d]; d = []; for (var k = [], h = 0; h < c.length; h++) {
|
|
318
|
-
var m = c[h];
|
|
319
|
-
m instanceof Element && l(m) && k.push(m);
|
|
320
|
-
if (m instanceof DocumentFragment)
|
|
321
|
-
for (m = m.firstChild; m; m = m.nextSibling)
|
|
322
|
-
d.push(m);
|
|
323
|
-
else
|
|
324
|
-
d.push(m);
|
|
325
|
-
} b.apply(this, c); for (c = 0; c < k.length; c++)
|
|
326
|
-
z(a, k[c]); if (l(this))
|
|
327
|
-
for (c = 0; c < d.length; c++)
|
|
328
|
-
k = d[c], k instanceof Element && x(a, k); }; }
|
|
329
|
-
var d = Element.prototype;
|
|
330
|
-
void 0 !== V && (d.before = b(V));
|
|
331
|
-
void 0 !== V && (d.after = b(qa));
|
|
332
|
-
void 0 !== ra &&
|
|
333
|
-
r(d, "replaceWith", function (b) { for (var e = [], c = 0; c < arguments.length; ++c)
|
|
334
|
-
e[c] = arguments[c]; c = []; for (var d = [], k = 0; k < e.length; k++) {
|
|
335
|
-
var h = e[k];
|
|
336
|
-
h instanceof Element && l(h) && d.push(h);
|
|
337
|
-
if (h instanceof DocumentFragment)
|
|
338
|
-
for (h = h.firstChild; h; h = h.nextSibling)
|
|
339
|
-
c.push(h);
|
|
340
|
-
else
|
|
341
|
-
c.push(h);
|
|
342
|
-
} k = l(this); ra.apply(this, e); for (e = 0; e < d.length; e++)
|
|
343
|
-
z(a, d[e]); if (k)
|
|
344
|
-
for (z(a, this), e = 0; e < c.length; e++)
|
|
345
|
-
d = c[e], d instanceof Element && x(a, d); });
|
|
346
|
-
void 0 !== sa && r(d, "remove", function () { var b = l(this); sa.call(this); b && z(a, this); });
|
|
347
|
-
}
|
|
348
|
-
function Ba() {
|
|
349
|
-
function a(a, b) { Object.defineProperty(a, "innerHTML", { enumerable: b.enumerable, configurable: !0, get: b.get, set: function (a) { var e = this, d = void 0; l(this) && (d = [], p(this, function (a) { a !== e && d.push(a); })); b.set.call(this, a); if (d)
|
|
350
|
-
for (var f = 0; f < d.length; f++) {
|
|
351
|
-
var t = d[f];
|
|
352
|
-
1 === t.__CE_state && c.disconnectedCallback(t);
|
|
353
|
-
} this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this); return a; } }); }
|
|
354
|
-
function b(a, b) { r(a, "insertAdjacentElement", function (a, e) { var d = l(e); a = b.call(this, a, e); d && z(c, e); l(a) && x(c, e); return a; }); }
|
|
355
|
-
function d(a, b) {
|
|
356
|
-
function e(a, b) { for (var e = []; a !== b; a = a.nextSibling)
|
|
357
|
-
e.push(a); for (b = 0; b < e.length; b++)
|
|
358
|
-
A(c, e[b]); }
|
|
359
|
-
r(a, "insertAdjacentHTML", function (a, c) {
|
|
360
|
-
a = a.toLowerCase();
|
|
361
|
-
if ("beforebegin" === a) {
|
|
362
|
-
var d = this.previousSibling;
|
|
363
|
-
b.call(this, a, c);
|
|
364
|
-
e(d || this.parentNode.firstChild, this);
|
|
365
|
-
}
|
|
366
|
-
else if ("afterbegin" === a)
|
|
367
|
-
d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);
|
|
368
|
-
else if ("beforeend" === a)
|
|
369
|
-
d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);
|
|
370
|
-
else if ("afterend" === a)
|
|
371
|
-
d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);
|
|
372
|
-
else
|
|
373
|
-
throw new SyntaxError("The value provided (" + String(a) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
var c = X;
|
|
377
|
-
N && r(Element.prototype, "attachShadow", function (a) { a = N.call(this, a); var b = c; if (b.b && !a.__CE_patched) {
|
|
378
|
-
a.__CE_patched = !0;
|
|
379
|
-
for (var e = 0; e < b.c.length; e++)
|
|
380
|
-
b.c[e](a);
|
|
381
|
-
} return this.__CE_shadowRoot = a; });
|
|
382
|
-
O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {
|
|
383
|
-
a(b, { enumerable: !0, configurable: !0, get: function () { return H.call(this, !0).innerHTML; }, set: function (a) { var b = "template" === this.localName, c = b ? this.content : this, e = G.call(document, this.namespaceURI, this.localName); for (e.innerHTML = a; 0 < c.childNodes.length;)
|
|
384
|
-
K.call(c, c.childNodes[0]); for (a = b ? e.content : e; 0 < a.childNodes.length;)
|
|
385
|
-
I.call(c, a.childNodes[0]); } });
|
|
386
|
-
});
|
|
387
|
-
r(Element.prototype, "setAttribute", function (a, b) { if (1 !== this.__CE_state)
|
|
388
|
-
return Q.call(this, a, b); var e = P.call(this, a); Q.call(this, a, b); b = P.call(this, a); c.attributeChangedCallback(this, a, e, b, null); });
|
|
389
|
-
r(Element.prototype, "setAttributeNS", function (a, b, d) { if (1 !== this.__CE_state)
|
|
390
|
-
return T.call(this, a, b, d); var e = S.call(this, a, b); T.call(this, a, b, d); d = S.call(this, a, b); c.attributeChangedCallback(this, b, e, d, a); });
|
|
391
|
-
r(Element.prototype, "removeAttribute", function (a) { if (1 !== this.__CE_state)
|
|
392
|
-
return R.call(this, a); var b = P.call(this, a); R.call(this, a); null !== b && c.attributeChangedCallback(this, a, b, null, null); });
|
|
393
|
-
r(Element.prototype, "removeAttributeNS", function (a, b) {
|
|
394
|
-
if (1 !== this.__CE_state)
|
|
395
|
-
return U.call(this, a, b);
|
|
396
|
-
var d = S.call(this, a, b);
|
|
397
|
-
U.call(this, a, b);
|
|
398
|
-
var e = S.call(this, a, b);
|
|
399
|
-
d !== e && c.attributeChangedCallback(this, b, d, e, a);
|
|
400
|
-
});
|
|
401
|
-
ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");
|
|
402
|
-
va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");
|
|
403
|
-
Y(c, Element.prototype, { h: oa, append: pa });
|
|
404
|
-
Aa(c);
|
|
405
|
-
}
|
|
406
|
-
var Z = window.customElements;
|
|
407
|
-
if (!Z || Z.forcePolyfill || "function" != typeof Z.define || "function" != typeof Z.get) {
|
|
408
|
-
var X = new u;
|
|
409
|
-
xa();
|
|
410
|
-
ya();
|
|
411
|
-
Y(X, DocumentFragment.prototype, { h: ka, append: la });
|
|
412
|
-
za();
|
|
413
|
-
Ba();
|
|
414
|
-
document.__CE_hasRegistry = !0;
|
|
415
|
-
var customElements = new E(X);
|
|
416
|
-
Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: customElements });
|
|
417
|
-
}
|
|
418
|
-
}).call(self);
|
|
419
|
-
// Polyfill document.baseURI
|
|
420
|
-
"string" !== typeof document.baseURI && Object.defineProperty(Document.prototype, "baseURI", { enumerable: !0, configurable: !0, get: function () { var a = document.querySelector("base"); return a && a.href ? a.href : document.URL; } });
|
|
421
|
-
// Polyfill CustomEvent
|
|
422
|
-
"function" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) { a = a || { bubbles: !1, cancelable: !1, detail: void 0 }; var b = document.createEvent("CustomEvent"); b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail); return b; }, window.CustomEvent.prototype = window.Event.prototype);
|
|
423
|
-
// Event.composedPath
|
|
424
|
-
(function (b, c, d) { b.composedPath || (b.composedPath = function () { if (this.path)
|
|
425
|
-
return this.path; var a = this.target; for (this.path = []; null !== a.parentNode;)
|
|
426
|
-
this.path.push(a), a = a.parentNode; this.path.push(c, d); return this.path; }); })(Event.prototype, document, window);
|
|
427
|
-
/*!
|
|
428
|
-
Element.closest and Element.matches
|
|
429
|
-
https://github.com/jonathantneal/closest
|
|
430
|
-
Creative Commons Zero v1.0 Universal
|
|
431
|
-
*/
|
|
432
|
-
(function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
|
|
433
|
-
++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
|
|
434
|
-
if (b.matches(a))
|
|
435
|
-
return b;
|
|
436
|
-
b = b.parentNode;
|
|
437
|
-
} return null; }); })(window.Element.prototype);
|
|
438
|
-
/*!
|
|
439
|
-
Element.getRootNode()
|
|
440
|
-
*/
|
|
441
|
-
(function (c) { function d(a) { a = b(a); return a && 11 === a.nodeType ? d(a.host) : a; } function b(a) { return a && a.parentNode ? b(a.parentNode) : a; } "function" !== typeof c.getRootNode && (c.getRootNode = function (a) { return a && a.composed ? d(this) : b(this); }); })(Element.prototype);
|
|
442
|
-
/*!
|
|
443
|
-
Element.isConnected()
|
|
444
|
-
*/
|
|
445
|
-
(function (a) { "isConnected" in a || Object.defineProperty(a, "isConnected", { configurable: !0, enumerable: !0, get: function () { var a = this.getRootNode({ composed: !0 }); return a && 9 === a.nodeType; } }); })(Element.prototype);
|
|
446
|
-
/*!
|
|
447
|
-
Element.remove()
|
|
448
|
-
*/
|
|
449
|
-
(function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
|
450
|
-
/*!
|
|
451
|
-
Element.classList
|
|
452
|
-
*/
|
|
453
|
-
!function (e) { 'classList' in e || Object.defineProperty(e, "classList", { get: function () { var e = this, t = (e.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g); function n() { t.length > 0 ? e.setAttribute("class", t.join(" ")) : e.removeAttribute("class"); } return "" === t[0] && t.splice(0, 1), t.toggle = function (e, i) { void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n(); }, t.add = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
|
|
454
|
-
-1 === t.indexOf(e[i]) && t.push(e[i]); n(); }, t.remove = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
|
|
455
|
-
-1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1); n(); }, t.item = function (e) { return t[e]; }, t.contains = function (e) { return -1 !== t.indexOf(e); }, t.replace = function (e, i) { -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n(); }, t.value = e.getAttribute("class") || "", t; } }); }(Element.prototype);
|
|
456
|
-
/*!
|
|
457
|
-
DOMTokenList
|
|
458
|
-
*/
|
|
459
|
-
(function (b) { try {
|
|
460
|
-
document.body.classList.add();
|
|
461
|
-
}
|
|
462
|
-
catch (e) {
|
|
463
|
-
var c = b.add, d = b.remove;
|
|
464
|
-
b.add = function () { for (var a = 0; a < arguments.length; a++)
|
|
465
|
-
c.call(this, arguments[a]); };
|
|
466
|
-
b.remove = function () { for (var a = 0; a < arguments.length; a++)
|
|
467
|
-
d.call(this, arguments[a]); };
|
|
468
|
-
} })(DOMTokenList.prototype);
|
|
1
|
+
/*
|
|
2
|
+
Stencil Client Patch v1.17.3 | MIT Licensed | https://stenciljs.com
|
|
3
|
+
*/
|
|
4
|
+
(function () {
|
|
5
|
+
var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
|
|
6
|
+
function g(a) { var b = aa.has(a); a = /^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a); return !b && a; }
|
|
7
|
+
function l(a) { var b = a.isConnected; if (void 0 !== b)
|
|
8
|
+
return b; for (; a && !(a.__CE_isImportDocument || a instanceof Document);)
|
|
9
|
+
a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0); return !(!a || !(a.__CE_isImportDocument || a instanceof Document)); }
|
|
10
|
+
function n(a, b) { for (; b && b !== a && !b.nextSibling;)
|
|
11
|
+
b = b.parentNode; return b && b !== a ? b.nextSibling : null; }
|
|
12
|
+
function p(a, b, d) { d = void 0 === d ? new Set : d; for (var c = a; c;) {
|
|
13
|
+
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
14
|
+
var e = c;
|
|
15
|
+
b(e);
|
|
16
|
+
var f = e.localName;
|
|
17
|
+
if ("link" === f && "import" === e.getAttribute("rel")) {
|
|
18
|
+
c = e.import;
|
|
19
|
+
if (c instanceof Node && !d.has(c))
|
|
20
|
+
for (d.add(c), c = c.firstChild; c; c = c.nextSibling)
|
|
21
|
+
p(c, b, d);
|
|
22
|
+
c = n(a, e);
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
else if ("template" === f) {
|
|
26
|
+
c = n(a, e);
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
if (e = e.__CE_shadowRoot)
|
|
30
|
+
for (e = e.firstChild; e; e = e.nextSibling)
|
|
31
|
+
p(e, b, d);
|
|
32
|
+
}
|
|
33
|
+
c = c.firstChild ? c.firstChild : n(a, c);
|
|
34
|
+
} }
|
|
35
|
+
function r(a, b, d) { a[b] = d; }
|
|
36
|
+
function u() { this.a = new Map; this.g = new Map; this.c = []; this.f = []; this.b = !1; }
|
|
37
|
+
function ba(a, b, d) { a.a.set(b, d); a.g.set(d.constructorFunction, d); }
|
|
38
|
+
function ca(a, b) { a.b = !0; a.c.push(b); }
|
|
39
|
+
function da(a, b) { a.b = !0; a.f.push(b); }
|
|
40
|
+
function v(a, b) { a.b && p(b, function (b) { return w(a, b); }); }
|
|
41
|
+
function w(a, b) { if (a.b && !b.__CE_patched) {
|
|
42
|
+
b.__CE_patched = !0;
|
|
43
|
+
for (var d = 0; d < a.c.length; d++)
|
|
44
|
+
a.c[d](b);
|
|
45
|
+
for (d = 0; d < a.f.length; d++)
|
|
46
|
+
a.f[d](b);
|
|
47
|
+
} }
|
|
48
|
+
function x(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
|
|
49
|
+
var c = d[b];
|
|
50
|
+
1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);
|
|
51
|
+
} }
|
|
52
|
+
function z(a, b) { var d = []; p(b, function (b) { return d.push(b); }); for (b = 0; b < d.length; b++) {
|
|
53
|
+
var c = d[b];
|
|
54
|
+
1 === c.__CE_state && a.disconnectedCallback(c);
|
|
55
|
+
} }
|
|
56
|
+
function A(a, b, d) {
|
|
57
|
+
d = void 0 === d ? {} : d;
|
|
58
|
+
var c = d.u || new Set, e = d.i || function (b) { return y(a, b); }, f = [];
|
|
59
|
+
p(b, function (b) { if ("link" === b.localName && "import" === b.getAttribute("rel")) {
|
|
60
|
+
var d = b.import;
|
|
61
|
+
d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);
|
|
62
|
+
d && "complete" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener("load", function () { var d = b.import; if (!d.__CE_documentLoadHandled) {
|
|
63
|
+
d.__CE_documentLoadHandled = !0;
|
|
64
|
+
var f = new Set(c);
|
|
65
|
+
f.delete(d);
|
|
66
|
+
A(a, d, { u: f, i: e });
|
|
67
|
+
} });
|
|
68
|
+
}
|
|
69
|
+
else
|
|
70
|
+
f.push(b); }, c);
|
|
71
|
+
if (a.b)
|
|
72
|
+
for (b =
|
|
73
|
+
0; b < f.length; b++)
|
|
74
|
+
w(a, f[b]);
|
|
75
|
+
for (b = 0; b < f.length; b++)
|
|
76
|
+
e(f[b]);
|
|
77
|
+
}
|
|
78
|
+
function y(a, b) {
|
|
79
|
+
if (void 0 === b.__CE_state) {
|
|
80
|
+
var d = b.ownerDocument;
|
|
81
|
+
if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry)
|
|
82
|
+
if (d = a.a.get(b.localName)) {
|
|
83
|
+
d.constructionStack.push(b);
|
|
84
|
+
var c = d.constructorFunction;
|
|
85
|
+
try {
|
|
86
|
+
try {
|
|
87
|
+
if (new c !== b)
|
|
88
|
+
throw Error("The custom element constructor did not produce the element being upgraded.");
|
|
89
|
+
}
|
|
90
|
+
finally {
|
|
91
|
+
d.constructionStack.pop();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
catch (t) {
|
|
95
|
+
throw b.__CE_state = 2, t;
|
|
96
|
+
}
|
|
97
|
+
b.__CE_state = 1;
|
|
98
|
+
b.__CE_definition = d;
|
|
99
|
+
if (d.attributeChangedCallback)
|
|
100
|
+
for (d = d.observedAttributes, c = 0; c < d.length; c++) {
|
|
101
|
+
var e = d[c], f = b.getAttribute(e);
|
|
102
|
+
null !== f && a.attributeChangedCallback(b, e, null, f, null);
|
|
103
|
+
}
|
|
104
|
+
l(b) && a.connectedCallback(b);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
u.prototype.connectedCallback = function (a) { var b = a.__CE_definition; b.connectedCallback && b.connectedCallback.call(a); };
|
|
109
|
+
u.prototype.disconnectedCallback = function (a) { var b = a.__CE_definition; b.disconnectedCallback && b.disconnectedCallback.call(a); };
|
|
110
|
+
u.prototype.attributeChangedCallback = function (a, b, d, c, e) { var f = a.__CE_definition; f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e); };
|
|
111
|
+
function B(a) { var b = document; this.c = a; this.a = b; this.b = void 0; A(this.c, this.a); "loading" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, { childList: !0, subtree: !0 })); }
|
|
112
|
+
function C(a) { a.b && a.b.disconnect(); }
|
|
113
|
+
B.prototype.f = function (a) { var b = this.a.readyState; "interactive" !== b && "complete" !== b || C(this); for (b = 0; b < a.length; b++)
|
|
114
|
+
for (var d = a[b].addedNodes, c = 0; c < d.length; c++)
|
|
115
|
+
A(this.c, d[c]); };
|
|
116
|
+
function ea() { var a = this; this.b = this.a = void 0; this.c = new Promise(function (b) { a.b = b; a.a && b(a.a); }); }
|
|
117
|
+
function D(a) { if (a.a)
|
|
118
|
+
throw Error("Already resolved."); a.a = void 0; a.b && a.b(void 0); }
|
|
119
|
+
function E(a) { this.c = !1; this.a = a; this.j = new Map; this.f = function (b) { return b(); }; this.b = !1; this.g = []; this.o = new B(a); }
|
|
120
|
+
E.prototype.l = function (a, b) {
|
|
121
|
+
var d = this;
|
|
122
|
+
if (!(b instanceof Function))
|
|
123
|
+
throw new TypeError("Custom element constructors must be functions.");
|
|
124
|
+
if (!g(a))
|
|
125
|
+
throw new SyntaxError("The element name '" + a + "' is not valid.");
|
|
126
|
+
if (this.a.a.get(a))
|
|
127
|
+
throw Error("A custom element with name '" + a + "' has already been defined.");
|
|
128
|
+
if (this.c)
|
|
129
|
+
throw Error("A custom element is already being defined.");
|
|
130
|
+
this.c = !0;
|
|
131
|
+
try {
|
|
132
|
+
var c = function (b) {
|
|
133
|
+
var a = e[b];
|
|
134
|
+
if (void 0 !== a && !(a instanceof Function))
|
|
135
|
+
throw Error("The '" + b + "' callback must be a function.");
|
|
136
|
+
return a;
|
|
137
|
+
}, e = b.prototype;
|
|
138
|
+
if (!(e instanceof Object))
|
|
139
|
+
throw new TypeError("The custom element constructor's prototype is not an object.");
|
|
140
|
+
var f = c("connectedCallback");
|
|
141
|
+
var t = c("disconnectedCallback");
|
|
142
|
+
var k = c("adoptedCallback");
|
|
143
|
+
var h = c("attributeChangedCallback");
|
|
144
|
+
var m = b.observedAttributes || [];
|
|
145
|
+
}
|
|
146
|
+
catch (q) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
finally {
|
|
150
|
+
this.c = !1;
|
|
151
|
+
}
|
|
152
|
+
b = { localName: a, constructorFunction: b, connectedCallback: f, disconnectedCallback: t, adoptedCallback: k, attributeChangedCallback: h, observedAttributes: m, constructionStack: [] };
|
|
153
|
+
ba(this.a, a, b);
|
|
154
|
+
this.g.push(b);
|
|
155
|
+
this.b || (this.b = !0, this.f(function () { return fa(d); }));
|
|
156
|
+
};
|
|
157
|
+
E.prototype.i = function (a) { A(this.a, a); };
|
|
158
|
+
function fa(a) { if (!1 !== a.b) {
|
|
159
|
+
a.b = !1;
|
|
160
|
+
for (var b = a.g, d = [], c = new Map, e = 0; e < b.length; e++)
|
|
161
|
+
c.set(b[e].localName, []);
|
|
162
|
+
A(a.a, document, { i: function (b) { if (void 0 === b.__CE_state) {
|
|
163
|
+
var e = b.localName, f = c.get(e);
|
|
164
|
+
f ? f.push(b) : a.a.a.get(e) && d.push(b);
|
|
165
|
+
} } });
|
|
166
|
+
for (e = 0; e < d.length; e++)
|
|
167
|
+
y(a.a, d[e]);
|
|
168
|
+
for (; 0 < b.length;) {
|
|
169
|
+
var f = b.shift();
|
|
170
|
+
e = f.localName;
|
|
171
|
+
f = c.get(f.localName);
|
|
172
|
+
for (var t = 0; t < f.length; t++)
|
|
173
|
+
y(a.a, f[t]);
|
|
174
|
+
(e = a.j.get(e)) && D(e);
|
|
175
|
+
}
|
|
176
|
+
} }
|
|
177
|
+
E.prototype.get = function (a) { if (a = this.a.a.get(a))
|
|
178
|
+
return a.constructorFunction; };
|
|
179
|
+
E.prototype.m = function (a) { if (!g(a))
|
|
180
|
+
return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name.")); var b = this.j.get(a); if (b)
|
|
181
|
+
return b.c; b = new ea; this.j.set(a, b); this.a.a.get(a) && !this.g.some(function (b) { return b.localName === a; }) && D(b); return b.c; };
|
|
182
|
+
E.prototype.s = function (a) { C(this.o); var b = this.f; this.f = function (d) { return a(function () { return b(d); }); }; };
|
|
183
|
+
window.CustomElementRegistry = E;
|
|
184
|
+
E.prototype.define = E.prototype.l;
|
|
185
|
+
E.prototype.upgrade = E.prototype.i;
|
|
186
|
+
E.prototype.get = E.prototype.get;
|
|
187
|
+
E.prototype.whenDefined = E.prototype.m;
|
|
188
|
+
E.prototype.polyfillWrapFlushCallback = E.prototype.s;
|
|
189
|
+
var F = window.Document.prototype.createElement, G = window.Document.prototype.createElementNS, ha = window.Document.prototype.importNode, ia = window.Document.prototype.prepend, ja = window.Document.prototype.append, ka = window.DocumentFragment.prototype.prepend, la = window.DocumentFragment.prototype.append, H = window.Node.prototype.cloneNode, I = window.Node.prototype.appendChild, J = window.Node.prototype.insertBefore, K = window.Node.prototype.removeChild, L = window.Node.prototype.replaceChild, M = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"), N = window.Element.prototype.attachShadow, O = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), P = window.Element.prototype.getAttribute, Q = window.Element.prototype.setAttribute, R = window.Element.prototype.removeAttribute, S = window.Element.prototype.getAttributeNS, T = window.Element.prototype.setAttributeNS, U = window.Element.prototype.removeAttributeNS, ma = window.Element.prototype.insertAdjacentElement, na = window.Element.prototype.insertAdjacentHTML, oa = window.Element.prototype.prepend, pa = window.Element.prototype.append, V = window.Element.prototype.before, qa = window.Element.prototype.after, ra = window.Element.prototype.replaceWith, sa = window.Element.prototype.remove, ta = window.HTMLElement, W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), ua = window.HTMLElement.prototype.insertAdjacentElement, va = window.HTMLElement.prototype.insertAdjacentHTML;
|
|
190
|
+
var wa = new function () { };
|
|
191
|
+
function xa() {
|
|
192
|
+
var a = X;
|
|
193
|
+
window.HTMLElement = function () {
|
|
194
|
+
function b() {
|
|
195
|
+
var b = this.constructor, c = a.g.get(b);
|
|
196
|
+
if (!c)
|
|
197
|
+
throw Error("The custom element being constructed was not registered with `customElements`.");
|
|
198
|
+
var e = c.constructionStack;
|
|
199
|
+
if (0 === e.length)
|
|
200
|
+
return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;
|
|
201
|
+
c = e.length - 1;
|
|
202
|
+
var f = e[c];
|
|
203
|
+
if (f === wa)
|
|
204
|
+
throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
|
|
205
|
+
e[c] = wa;
|
|
206
|
+
Object.setPrototypeOf(f, b.prototype);
|
|
207
|
+
w(a, f);
|
|
208
|
+
return f;
|
|
209
|
+
}
|
|
210
|
+
b.prototype = ta.prototype;
|
|
211
|
+
Object.defineProperty(b.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: b });
|
|
212
|
+
return b;
|
|
213
|
+
}();
|
|
214
|
+
}
|
|
215
|
+
function Y(a, b, d) { function c(b) { return function (d) { for (var e = [], c = 0; c < arguments.length; ++c)
|
|
216
|
+
e[c] = arguments[c]; c = []; for (var f = [], m = 0; m < e.length; m++) {
|
|
217
|
+
var q = e[m];
|
|
218
|
+
q instanceof Element && l(q) && f.push(q);
|
|
219
|
+
if (q instanceof DocumentFragment)
|
|
220
|
+
for (q = q.firstChild; q; q = q.nextSibling)
|
|
221
|
+
c.push(q);
|
|
222
|
+
else
|
|
223
|
+
c.push(q);
|
|
224
|
+
} b.apply(this, e); for (e = 0; e < f.length; e++)
|
|
225
|
+
z(a, f[e]); if (l(this))
|
|
226
|
+
for (e = 0; e < c.length; e++)
|
|
227
|
+
f = c[e], f instanceof Element && x(a, f); }; } void 0 !== d.h && (b.prepend = c(d.h)); void 0 !== d.append && (b.append = c(d.append)); }
|
|
228
|
+
function ya() {
|
|
229
|
+
var a = X;
|
|
230
|
+
r(Document.prototype, "createElement", function (b) { if (this.__CE_hasRegistry) {
|
|
231
|
+
var d = a.a.get(b);
|
|
232
|
+
if (d)
|
|
233
|
+
return new d.constructorFunction;
|
|
234
|
+
} b = F.call(this, b); w(a, b); return b; });
|
|
235
|
+
r(Document.prototype, "importNode", function (b, d) { b = ha.call(this, b, !!d); this.__CE_hasRegistry ? A(a, b) : v(a, b); return b; });
|
|
236
|
+
r(Document.prototype, "createElementNS", function (b, d) {
|
|
237
|
+
if (this.__CE_hasRegistry && (null === b || "http://www.w3.org/1999/xhtml" === b)) {
|
|
238
|
+
var c = a.a.get(d);
|
|
239
|
+
if (c)
|
|
240
|
+
return new c.constructorFunction;
|
|
241
|
+
}
|
|
242
|
+
b = G.call(this, b, d);
|
|
243
|
+
w(a, b);
|
|
244
|
+
return b;
|
|
245
|
+
});
|
|
246
|
+
Y(a, Document.prototype, { h: ia, append: ja });
|
|
247
|
+
}
|
|
248
|
+
function za() {
|
|
249
|
+
function a(a, c) { Object.defineProperty(a, "textContent", { enumerable: c.enumerable, configurable: !0, get: c.get, set: function (a) { if (this.nodeType === Node.TEXT_NODE)
|
|
250
|
+
c.set.call(this, a);
|
|
251
|
+
else {
|
|
252
|
+
var d = void 0;
|
|
253
|
+
if (this.firstChild) {
|
|
254
|
+
var e = this.childNodes, k = e.length;
|
|
255
|
+
if (0 < k && l(this)) {
|
|
256
|
+
d = Array(k);
|
|
257
|
+
for (var h = 0; h < k; h++)
|
|
258
|
+
d[h] = e[h];
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
c.set.call(this, a);
|
|
262
|
+
if (d)
|
|
263
|
+
for (a = 0; a < d.length; a++)
|
|
264
|
+
z(b, d[a]);
|
|
265
|
+
} } }); }
|
|
266
|
+
var b = X;
|
|
267
|
+
r(Node.prototype, "insertBefore", function (a, c) {
|
|
268
|
+
if (a instanceof DocumentFragment) {
|
|
269
|
+
var e = Array.prototype.slice.apply(a.childNodes);
|
|
270
|
+
a = J.call(this, a, c);
|
|
271
|
+
if (l(this))
|
|
272
|
+
for (c = 0; c < e.length; c++)
|
|
273
|
+
x(b, e[c]);
|
|
274
|
+
return a;
|
|
275
|
+
}
|
|
276
|
+
e = l(a);
|
|
277
|
+
c = J.call(this, a, c);
|
|
278
|
+
e && z(b, a);
|
|
279
|
+
l(this) && x(b, a);
|
|
280
|
+
return c;
|
|
281
|
+
});
|
|
282
|
+
r(Node.prototype, "appendChild", function (a) { if (a instanceof DocumentFragment) {
|
|
283
|
+
var c = Array.prototype.slice.apply(a.childNodes);
|
|
284
|
+
a = I.call(this, a);
|
|
285
|
+
if (l(this))
|
|
286
|
+
for (var e = 0; e < c.length; e++)
|
|
287
|
+
x(b, c[e]);
|
|
288
|
+
return a;
|
|
289
|
+
} c = l(a); e = I.call(this, a); c && z(b, a); l(this) && x(b, a); return e; });
|
|
290
|
+
r(Node.prototype, "cloneNode", function (a) {
|
|
291
|
+
a = H.call(this, !!a);
|
|
292
|
+
this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);
|
|
293
|
+
return a;
|
|
294
|
+
});
|
|
295
|
+
r(Node.prototype, "removeChild", function (a) { var c = l(a), e = K.call(this, a); c && z(b, a); return e; });
|
|
296
|
+
r(Node.prototype, "replaceChild", function (a, c) { if (a instanceof DocumentFragment) {
|
|
297
|
+
var e = Array.prototype.slice.apply(a.childNodes);
|
|
298
|
+
a = L.call(this, a, c);
|
|
299
|
+
if (l(this))
|
|
300
|
+
for (z(b, c), c = 0; c < e.length; c++)
|
|
301
|
+
x(b, e[c]);
|
|
302
|
+
return a;
|
|
303
|
+
} e = l(a); var f = L.call(this, a, c), d = l(this); d && z(b, c); e && z(b, a); d && x(b, a); return f; });
|
|
304
|
+
M && M.get ? a(Node.prototype, M) : ca(b, function (b) {
|
|
305
|
+
a(b, { enumerable: !0, configurable: !0, get: function () {
|
|
306
|
+
for (var a = [], b = 0; b < this.childNodes.length; b++) {
|
|
307
|
+
var f = this.childNodes[b];
|
|
308
|
+
f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);
|
|
309
|
+
}
|
|
310
|
+
return a.join("");
|
|
311
|
+
}, set: function (a) { for (; this.firstChild;)
|
|
312
|
+
K.call(this, this.firstChild); null != a && "" !== a && I.call(this, document.createTextNode(a)); } });
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function Aa(a) {
|
|
316
|
+
function b(b) { return function (e) { for (var c = [], d = 0; d < arguments.length; ++d)
|
|
317
|
+
c[d] = arguments[d]; d = []; for (var k = [], h = 0; h < c.length; h++) {
|
|
318
|
+
var m = c[h];
|
|
319
|
+
m instanceof Element && l(m) && k.push(m);
|
|
320
|
+
if (m instanceof DocumentFragment)
|
|
321
|
+
for (m = m.firstChild; m; m = m.nextSibling)
|
|
322
|
+
d.push(m);
|
|
323
|
+
else
|
|
324
|
+
d.push(m);
|
|
325
|
+
} b.apply(this, c); for (c = 0; c < k.length; c++)
|
|
326
|
+
z(a, k[c]); if (l(this))
|
|
327
|
+
for (c = 0; c < d.length; c++)
|
|
328
|
+
k = d[c], k instanceof Element && x(a, k); }; }
|
|
329
|
+
var d = Element.prototype;
|
|
330
|
+
void 0 !== V && (d.before = b(V));
|
|
331
|
+
void 0 !== V && (d.after = b(qa));
|
|
332
|
+
void 0 !== ra &&
|
|
333
|
+
r(d, "replaceWith", function (b) { for (var e = [], c = 0; c < arguments.length; ++c)
|
|
334
|
+
e[c] = arguments[c]; c = []; for (var d = [], k = 0; k < e.length; k++) {
|
|
335
|
+
var h = e[k];
|
|
336
|
+
h instanceof Element && l(h) && d.push(h);
|
|
337
|
+
if (h instanceof DocumentFragment)
|
|
338
|
+
for (h = h.firstChild; h; h = h.nextSibling)
|
|
339
|
+
c.push(h);
|
|
340
|
+
else
|
|
341
|
+
c.push(h);
|
|
342
|
+
} k = l(this); ra.apply(this, e); for (e = 0; e < d.length; e++)
|
|
343
|
+
z(a, d[e]); if (k)
|
|
344
|
+
for (z(a, this), e = 0; e < c.length; e++)
|
|
345
|
+
d = c[e], d instanceof Element && x(a, d); });
|
|
346
|
+
void 0 !== sa && r(d, "remove", function () { var b = l(this); sa.call(this); b && z(a, this); });
|
|
347
|
+
}
|
|
348
|
+
function Ba() {
|
|
349
|
+
function a(a, b) { Object.defineProperty(a, "innerHTML", { enumerable: b.enumerable, configurable: !0, get: b.get, set: function (a) { var e = this, d = void 0; l(this) && (d = [], p(this, function (a) { a !== e && d.push(a); })); b.set.call(this, a); if (d)
|
|
350
|
+
for (var f = 0; f < d.length; f++) {
|
|
351
|
+
var t = d[f];
|
|
352
|
+
1 === t.__CE_state && c.disconnectedCallback(t);
|
|
353
|
+
} this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this); return a; } }); }
|
|
354
|
+
function b(a, b) { r(a, "insertAdjacentElement", function (a, e) { var d = l(e); a = b.call(this, a, e); d && z(c, e); l(a) && x(c, e); return a; }); }
|
|
355
|
+
function d(a, b) {
|
|
356
|
+
function e(a, b) { for (var e = []; a !== b; a = a.nextSibling)
|
|
357
|
+
e.push(a); for (b = 0; b < e.length; b++)
|
|
358
|
+
A(c, e[b]); }
|
|
359
|
+
r(a, "insertAdjacentHTML", function (a, c) {
|
|
360
|
+
a = a.toLowerCase();
|
|
361
|
+
if ("beforebegin" === a) {
|
|
362
|
+
var d = this.previousSibling;
|
|
363
|
+
b.call(this, a, c);
|
|
364
|
+
e(d || this.parentNode.firstChild, this);
|
|
365
|
+
}
|
|
366
|
+
else if ("afterbegin" === a)
|
|
367
|
+
d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);
|
|
368
|
+
else if ("beforeend" === a)
|
|
369
|
+
d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);
|
|
370
|
+
else if ("afterend" === a)
|
|
371
|
+
d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);
|
|
372
|
+
else
|
|
373
|
+
throw new SyntaxError("The value provided (" + String(a) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
var c = X;
|
|
377
|
+
N && r(Element.prototype, "attachShadow", function (a) { a = N.call(this, a); var b = c; if (b.b && !a.__CE_patched) {
|
|
378
|
+
a.__CE_patched = !0;
|
|
379
|
+
for (var e = 0; e < b.c.length; e++)
|
|
380
|
+
b.c[e](a);
|
|
381
|
+
} return this.__CE_shadowRoot = a; });
|
|
382
|
+
O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {
|
|
383
|
+
a(b, { enumerable: !0, configurable: !0, get: function () { return H.call(this, !0).innerHTML; }, set: function (a) { var b = "template" === this.localName, c = b ? this.content : this, e = G.call(document, this.namespaceURI, this.localName); for (e.innerHTML = a; 0 < c.childNodes.length;)
|
|
384
|
+
K.call(c, c.childNodes[0]); for (a = b ? e.content : e; 0 < a.childNodes.length;)
|
|
385
|
+
I.call(c, a.childNodes[0]); } });
|
|
386
|
+
});
|
|
387
|
+
r(Element.prototype, "setAttribute", function (a, b) { if (1 !== this.__CE_state)
|
|
388
|
+
return Q.call(this, a, b); var e = P.call(this, a); Q.call(this, a, b); b = P.call(this, a); c.attributeChangedCallback(this, a, e, b, null); });
|
|
389
|
+
r(Element.prototype, "setAttributeNS", function (a, b, d) { if (1 !== this.__CE_state)
|
|
390
|
+
return T.call(this, a, b, d); var e = S.call(this, a, b); T.call(this, a, b, d); d = S.call(this, a, b); c.attributeChangedCallback(this, b, e, d, a); });
|
|
391
|
+
r(Element.prototype, "removeAttribute", function (a) { if (1 !== this.__CE_state)
|
|
392
|
+
return R.call(this, a); var b = P.call(this, a); R.call(this, a); null !== b && c.attributeChangedCallback(this, a, b, null, null); });
|
|
393
|
+
r(Element.prototype, "removeAttributeNS", function (a, b) {
|
|
394
|
+
if (1 !== this.__CE_state)
|
|
395
|
+
return U.call(this, a, b);
|
|
396
|
+
var d = S.call(this, a, b);
|
|
397
|
+
U.call(this, a, b);
|
|
398
|
+
var e = S.call(this, a, b);
|
|
399
|
+
d !== e && c.attributeChangedCallback(this, b, d, e, a);
|
|
400
|
+
});
|
|
401
|
+
ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");
|
|
402
|
+
va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");
|
|
403
|
+
Y(c, Element.prototype, { h: oa, append: pa });
|
|
404
|
+
Aa(c);
|
|
405
|
+
}
|
|
406
|
+
var Z = window.customElements;
|
|
407
|
+
if (!Z || Z.forcePolyfill || "function" != typeof Z.define || "function" != typeof Z.get) {
|
|
408
|
+
var X = new u;
|
|
409
|
+
xa();
|
|
410
|
+
ya();
|
|
411
|
+
Y(X, DocumentFragment.prototype, { h: ka, append: la });
|
|
412
|
+
za();
|
|
413
|
+
Ba();
|
|
414
|
+
document.__CE_hasRegistry = !0;
|
|
415
|
+
var customElements = new E(X);
|
|
416
|
+
Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: customElements });
|
|
417
|
+
}
|
|
418
|
+
}).call(self);
|
|
419
|
+
// Polyfill document.baseURI
|
|
420
|
+
"string" !== typeof document.baseURI && Object.defineProperty(Document.prototype, "baseURI", { enumerable: !0, configurable: !0, get: function () { var a = document.querySelector("base"); return a && a.href ? a.href : document.URL; } });
|
|
421
|
+
// Polyfill CustomEvent
|
|
422
|
+
"function" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) { a = a || { bubbles: !1, cancelable: !1, detail: void 0 }; var b = document.createEvent("CustomEvent"); b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail); return b; }, window.CustomEvent.prototype = window.Event.prototype);
|
|
423
|
+
// Event.composedPath
|
|
424
|
+
(function (b, c, d) { b.composedPath || (b.composedPath = function () { if (this.path)
|
|
425
|
+
return this.path; var a = this.target; for (this.path = []; null !== a.parentNode;)
|
|
426
|
+
this.path.push(a), a = a.parentNode; this.path.push(c, d); return this.path; }); })(Event.prototype, document, window);
|
|
427
|
+
/*!
|
|
428
|
+
Element.closest and Element.matches
|
|
429
|
+
https://github.com/jonathantneal/closest
|
|
430
|
+
Creative Commons Zero v1.0 Universal
|
|
431
|
+
*/
|
|
432
|
+
(function (a) { "function" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) { a = (this.document || this.ownerDocument).querySelectorAll(a); for (var b = 0; a[b] && a[b] !== this;)
|
|
433
|
+
++b; return !!a[b]; }); "function" !== typeof a.closest && (a.closest = function (a) { for (var b = this; b && 1 === b.nodeType;) {
|
|
434
|
+
if (b.matches(a))
|
|
435
|
+
return b;
|
|
436
|
+
b = b.parentNode;
|
|
437
|
+
} return null; }); })(window.Element.prototype);
|
|
438
|
+
/*!
|
|
439
|
+
Element.getRootNode()
|
|
440
|
+
*/
|
|
441
|
+
(function (c) { function d(a) { a = b(a); return a && 11 === a.nodeType ? d(a.host) : a; } function b(a) { return a && a.parentNode ? b(a.parentNode) : a; } "function" !== typeof c.getRootNode && (c.getRootNode = function (a) { return a && a.composed ? d(this) : b(this); }); })(Element.prototype);
|
|
442
|
+
/*!
|
|
443
|
+
Element.isConnected()
|
|
444
|
+
*/
|
|
445
|
+
(function (a) { "isConnected" in a || Object.defineProperty(a, "isConnected", { configurable: !0, enumerable: !0, get: function () { var a = this.getRootNode({ composed: !0 }); return a && 9 === a.nodeType; } }); })(Element.prototype);
|
|
446
|
+
/*!
|
|
447
|
+
Element.remove()
|
|
448
|
+
*/
|
|
449
|
+
(function (b) { b.forEach(function (a) { a.hasOwnProperty("remove") || Object.defineProperty(a, "remove", { configurable: !0, enumerable: !0, writable: !0, value: function () { null !== this.parentNode && this.parentNode.removeChild(this); } }); }); })([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
|
|
450
|
+
/*!
|
|
451
|
+
Element.classList
|
|
452
|
+
*/
|
|
453
|
+
!function (e) { 'classList' in e || Object.defineProperty(e, "classList", { get: function () { var e = this, t = (e.getAttribute("class") || "").replace(/^\s+|\s$/g, "").split(/\s+/g); function n() { t.length > 0 ? e.setAttribute("class", t.join(" ")) : e.removeAttribute("class"); } return "" === t[0] && t.splice(0, 1), t.toggle = function (e, i) { void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n(); }, t.add = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
|
|
454
|
+
-1 === t.indexOf(e[i]) && t.push(e[i]); n(); }, t.remove = function () { for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++)
|
|
455
|
+
-1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1); n(); }, t.item = function (e) { return t[e]; }, t.contains = function (e) { return -1 !== t.indexOf(e); }, t.replace = function (e, i) { -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n(); }, t.value = e.getAttribute("class") || "", t; } }); }(Element.prototype);
|
|
456
|
+
/*!
|
|
457
|
+
DOMTokenList
|
|
458
|
+
*/
|
|
459
|
+
(function (b) { try {
|
|
460
|
+
document.body.classList.add();
|
|
461
|
+
}
|
|
462
|
+
catch (e) {
|
|
463
|
+
var c = b.add, d = b.remove;
|
|
464
|
+
b.add = function () { for (var a = 0; a < arguments.length; a++)
|
|
465
|
+
c.call(this, arguments[a]); };
|
|
466
|
+
b.remove = function () { for (var a = 0; a < arguments.length; a++)
|
|
467
|
+
d.call(this, arguments[a]); };
|
|
468
|
+
} })(DOMTokenList.prototype);
|