UNPKG

@senx/warpview

Version:
1,586 lines (1,354 loc) 163 kB
/******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 70173: /*!****************************************************************************!*\ !*** ./node_modules/@webcomponents/custom-elements/custom-elements.min.js ***! \****************************************************************************/ /***/ (function() { (function () { /* Copyright (c) 2020 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ 'use strict'; /* Copyright (c) 2016 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var n = window.Document.prototype.createElement, p = window.Document.prototype.createElementNS, aa = window.Document.prototype.importNode, ba = window.Document.prototype.prepend, ca = window.Document.prototype.append, da = window.DocumentFragment.prototype.prepend, ea = window.DocumentFragment.prototype.append, q = window.Node.prototype.cloneNode, r = window.Node.prototype.appendChild, t = window.Node.prototype.insertBefore, u = window.Node.prototype.removeChild, v = window.Node.prototype.replaceChild, w = Object.getOwnPropertyDescriptor(window.Node.prototype, "textContent"), y = window.Element.prototype.attachShadow, z = Object.getOwnPropertyDescriptor(window.Element.prototype, "innerHTML"), A = window.Element.prototype.getAttribute, B = window.Element.prototype.setAttribute, C = window.Element.prototype.removeAttribute, D = window.Element.prototype.getAttributeNS, E = window.Element.prototype.setAttributeNS, F = window.Element.prototype.removeAttributeNS, G = window.Element.prototype.insertAdjacentElement, H = window.Element.prototype.insertAdjacentHTML, fa = window.Element.prototype.prepend, ha = window.Element.prototype.append, ia = window.Element.prototype.before, ja = window.Element.prototype.after, ka = window.Element.prototype.replaceWith, la = window.Element.prototype.remove, ma = window.HTMLElement, I = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, "innerHTML"), na = window.HTMLElement.prototype.insertAdjacentElement, oa = window.HTMLElement.prototype.insertAdjacentHTML; var pa = new Set(); "annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function (a) { return pa.add(a); }); function qa(a) { var b = pa.has(a); a = /^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a); return !b && a; } var ra = document.contains ? document.contains.bind(document) : document.documentElement.contains.bind(document.documentElement); function J(a) { var b = a.isConnected; if (void 0 !== b) return b; if (ra(a)) return !0; for (; a && !(a.__CE_isImportDocument || a instanceof Document);) { a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0); } return !(!a || !(a.__CE_isImportDocument || a instanceof Document)); } function K(a) { var b = a.children; if (b) return Array.prototype.slice.call(b); b = []; for (a = a.firstChild; a; a = a.nextSibling) { a.nodeType === Node.ELEMENT_NODE && b.push(a); } return b; } function L(a, b) { for (; b && b !== a && !b.nextSibling;) { b = b.parentNode; } return b && b !== a ? b.nextSibling : null; } function M(a, b, c) { for (var f = a; f;) { if (f.nodeType === Node.ELEMENT_NODE) { var d = f; b(d); var e = d.localName; if ("link" === e && "import" === d.getAttribute("rel")) { f = d.import; void 0 === c && (c = new Set()); if (f instanceof Node && !c.has(f)) for (c.add(f), f = f.firstChild; f; f = f.nextSibling) { M(f, b, c); } f = L(a, d); continue; } else if ("template" === e) { f = L(a, d); continue; } if (d = d.__CE_shadowRoot) for (d = d.firstChild; d; d = d.nextSibling) { M(d, b, c); } } f = f.firstChild ? f.firstChild : L(a, f); } } ; function N() { var a = !(null === O || void 0 === O || !O.noDocumentConstructionObserver), b = !(null === O || void 0 === O || !O.shadyDomFastWalk); this.h = []; this.a = []; this.f = !1; this.shadyDomFastWalk = b; this.C = !a; } function P(a, b, c, f) { var d = window.ShadyDom; if (a.shadyDomFastWalk && d && d.inUse) { if (b.nodeType === Node.ELEMENT_NODE && c(b), b.querySelectorAll) for (a = d.nativeMethods.querySelectorAll.call(b, "*"), b = 0; b < a.length; b++) { c(a[b]); } } else M(b, c, f); } function sa(a, b) { a.f = !0; a.h.push(b); } function ta(a, b) { a.f = !0; a.a.push(b); } function Q(a, b) { a.f && P(a, b, function (c) { return R(a, c); }); } function R(a, b) { if (a.f && !b.__CE_patched) { b.__CE_patched = !0; for (var c = 0; c < a.h.length; c++) { a.h[c](b); } for (c = 0; c < a.a.length; c++) { a.a[c](b); } } } function S(a, b) { var c = []; P(a, b, function (d) { return c.push(d); }); for (b = 0; b < c.length; b++) { var f = c[b]; 1 === f.__CE_state ? a.connectedCallback(f) : T(a, f); } } function U(a, b) { var c = []; P(a, b, function (d) { return c.push(d); }); for (b = 0; b < c.length; b++) { var f = c[b]; 1 === f.__CE_state && a.disconnectedCallback(f); } } function V(a, b, c) { c = void 0 === c ? {} : c; var f = c.D, d = c.upgrade || function (g) { return T(a, g); }, e = []; P(a, b, function (g) { a.f && R(a, g); if ("link" === g.localName && "import" === g.getAttribute("rel")) { var h = g.import; h instanceof Node && (h.__CE_isImportDocument = !0, h.__CE_registry = document.__CE_registry); h && "complete" === h.readyState ? h.__CE_documentLoadHandled = !0 : g.addEventListener("load", function () { var k = g.import; if (!k.__CE_documentLoadHandled) { k.__CE_documentLoadHandled = !0; var l = new Set(); f && (f.forEach(function (m) { return l.add(m); }), l.delete(k)); V(a, k, { D: l, upgrade: d }); } }); } else e.push(g); }, f); for (b = 0; b < e.length; b++) { d(e[b]); } } function T(a, b) { try { var c = b.ownerDocument, f = c.__CE_registry; var d = f && (c.defaultView || c.__CE_isImportDocument) ? W(f, b.localName) : void 0; if (d && void 0 === b.__CE_state) { d.constructionStack.push(b); try { try { if (new d.constructorFunction() !== b) throw Error("The custom element constructor did not produce the element being upgraded."); } finally { d.constructionStack.pop(); } } catch (k) { throw b.__CE_state = 2, k; } b.__CE_state = 1; b.__CE_definition = d; if (d.attributeChangedCallback && b.hasAttributes()) { var e = d.observedAttributes; for (d = 0; d < e.length; d++) { var g = e[d], h = b.getAttribute(g); null !== h && a.attributeChangedCallback(b, g, null, h, null); } } J(b) && a.connectedCallback(b); } } catch (k) { X(k); } } N.prototype.connectedCallback = function (a) { var b = a.__CE_definition; if (b.connectedCallback) try { b.connectedCallback.call(a); } catch (c) { X(c); } }; N.prototype.disconnectedCallback = function (a) { var b = a.__CE_definition; if (b.disconnectedCallback) try { b.disconnectedCallback.call(a); } catch (c) { X(c); } }; N.prototype.attributeChangedCallback = function (a, b, c, f, d) { var e = a.__CE_definition; if (e.attributeChangedCallback && -1 < e.observedAttributes.indexOf(b)) try { e.attributeChangedCallback.call(a, b, c, f, d); } catch (g) { X(g); } }; function ua(a, b, c, f) { var d = b.__CE_registry; if (d && (null === f || "http://www.w3.org/1999/xhtml" === f) && (d = W(d, c))) try { var e = new d.constructorFunction(); if (void 0 === e.__CE_state || void 0 === e.__CE_definition) throw Error("Failed to construct '" + c + "': The returned value was not constructed with the HTMLElement constructor."); if ("http://www.w3.org/1999/xhtml" !== e.namespaceURI) throw Error("Failed to construct '" + c + "': The constructed element's namespace must be the HTML namespace."); if (e.hasAttributes()) throw Error("Failed to construct '" + c + "': The constructed element must not have any attributes."); if (null !== e.firstChild) throw Error("Failed to construct '" + c + "': The constructed element must not have any children."); if (null !== e.parentNode) throw Error("Failed to construct '" + c + "': The constructed element must not have a parent node."); if (e.ownerDocument !== b) throw Error("Failed to construct '" + c + "': The constructed element's owner document is incorrect."); if (e.localName !== c) throw Error("Failed to construct '" + c + "': The constructed element's local name is incorrect."); return e; } catch (g) { return X(g), b = null === f ? n.call(b, c) : p.call(b, f, c), Object.setPrototypeOf(b, HTMLUnknownElement.prototype), b.__CE_state = 2, b.__CE_definition = void 0, R(a, b), b; } b = null === f ? n.call(b, c) : p.call(b, f, c); R(a, b); return b; } function X(a) { var b = a.message, c = a.sourceURL || a.fileName || "", f = a.line || a.lineNumber || 0, d = a.column || a.columnNumber || 0, e = void 0; void 0 === ErrorEvent.prototype.initErrorEvent ? e = new ErrorEvent("error", { cancelable: !0, message: b, filename: c, lineno: f, colno: d, error: a }) : (e = document.createEvent("ErrorEvent"), e.initErrorEvent("error", !1, !0, b, c, f), e.preventDefault = function () { Object.defineProperty(this, "defaultPrevented", { configurable: !0, get: function get() { return !0; } }); }); void 0 === e.error && Object.defineProperty(e, "error", { configurable: !0, enumerable: !0, get: function get() { return a; } }); window.dispatchEvent(e); e.defaultPrevented || console.error(a); } ; function va() { var a = this; this.a = void 0; this.w = new Promise(function (b) { a.g = b; }); } va.prototype.resolve = function (a) { if (this.a) throw Error("Already resolved."); this.a = a; this.g(a); }; function wa(a) { var b = document; this.g = void 0; this.b = a; this.a = b; V(this.b, this.a); "loading" === this.a.readyState && (this.g = new MutationObserver(this.A.bind(this)), this.g.observe(this.a, { childList: !0, subtree: !0 })); } function xa(a) { a.g && a.g.disconnect(); } wa.prototype.A = function (a) { var b = this.a.readyState; "interactive" !== b && "complete" !== b || xa(this); for (b = 0; b < a.length; b++) { for (var c = a[b].addedNodes, f = 0; f < c.length; f++) { V(this.b, c[f]); } } }; function Y(a) { this.j = new Map(); this.l = new Map(); this.u = new Map(); this.o = !1; this.s = new Map(); this.i = function (b) { return b(); }; this.c = !1; this.m = []; this.b = a; this.v = a.C ? new wa(a) : void 0; } Y.prototype.B = function (a, b) { var c = this; if (!(b instanceof Function)) throw new TypeError("Custom element constructor getters must be functions."); ya(this, a); this.j.set(a, b); this.m.push(a); this.c || (this.c = !0, this.i(function () { return za(c); })); }; Y.prototype.define = function (a, b) { var c = this; if (!(b instanceof Function)) throw new TypeError("Custom element constructors must be functions."); ya(this, a); Aa(this, a, b); this.m.push(a); this.c || (this.c = !0, this.i(function () { return za(c); })); }; function ya(a, b) { if (!qa(b)) throw new SyntaxError("The element name '" + b + "' is not valid."); if (W(a, b)) throw Error("A custom element with name '" + (b + "' has already been defined.")); if (a.o) throw Error("A custom element is already being defined."); } function Aa(a, b, c) { a.o = !0; var f; try { var d = c.prototype; if (!(d instanceof Object)) throw new TypeError("The custom element constructor's prototype is not an object."); var e = function e(m) { var x = d[m]; if (void 0 !== x && !(x instanceof Function)) throw Error("The '" + m + "' callback must be a function."); return x; }; var g = e("connectedCallback"); var h = e("disconnectedCallback"); var k = e("adoptedCallback"); var l = (f = e("attributeChangedCallback")) && c.observedAttributes || []; } catch (m) { throw m; } finally { a.o = !1; } c = { localName: b, constructorFunction: c, connectedCallback: g, disconnectedCallback: h, adoptedCallback: k, attributeChangedCallback: f, observedAttributes: l, constructionStack: [] }; a.l.set(b, c); a.u.set(c.constructorFunction, c); return c; } Y.prototype.upgrade = function (a) { V(this.b, a); }; function za(a) { if (!1 !== a.c) { a.c = !1; for (var b = [], c = a.m, f = new Map(), d = 0; d < c.length; d++) { f.set(c[d], []); } V(a.b, document, { upgrade: function upgrade(k) { if (void 0 === k.__CE_state) { var l = k.localName, m = f.get(l); m ? m.push(k) : a.l.has(l) && b.push(k); } } }); for (d = 0; d < b.length; d++) { T(a.b, b[d]); } for (d = 0; d < c.length; d++) { for (var e = c[d], g = f.get(e), h = 0; h < g.length; h++) { T(a.b, g[h]); } (e = a.s.get(e)) && e.resolve(void 0); } c.length = 0; } } Y.prototype.get = function (a) { if (a = W(this, a)) return a.constructorFunction; }; Y.prototype.whenDefined = function (a) { if (!qa(a)) return Promise.reject(new SyntaxError("'" + a + "' is not a valid custom element name.")); var b = this.s.get(a); if (b) return b.w; b = new va(); this.s.set(a, b); var c = this.l.has(a) || this.j.has(a); a = -1 === this.m.indexOf(a); c && a && b.resolve(void 0); return b.w; }; Y.prototype.polyfillWrapFlushCallback = function (a) { this.v && xa(this.v); var b = this.i; this.i = function (c) { return a(function () { return b(c); }); }; }; function W(a, b) { var c = a.l.get(b); if (c) return c; if (c = a.j.get(b)) { a.j.delete(b); try { return Aa(a, b, c()); } catch (f) { X(f); } } } window.CustomElementRegistry = Y; Y.prototype.define = Y.prototype.define; Y.prototype.upgrade = Y.prototype.upgrade; Y.prototype.get = Y.prototype.get; Y.prototype.whenDefined = Y.prototype.whenDefined; Y.prototype.polyfillDefineLazy = Y.prototype.B; Y.prototype.polyfillWrapFlushCallback = Y.prototype.polyfillWrapFlushCallback; function Z(a, b, c) { function f(d) { return function (e) { for (var g = [], h = 0; h < arguments.length; ++h) { g[h] = arguments[h]; } h = []; for (var k = [], l = 0; l < g.length; l++) { var m = g[l]; m instanceof Element && J(m) && k.push(m); if (m instanceof DocumentFragment) for (m = m.firstChild; m; m = m.nextSibling) { h.push(m); } else h.push(m); } d.apply(this, g); for (g = 0; g < k.length; g++) { U(a, k[g]); } if (J(this)) for (g = 0; g < h.length; g++) { k = h[g], k instanceof Element && S(a, k); } }; } void 0 !== c.prepend && (b.prepend = f(c.prepend)); void 0 !== c.append && (b.append = f(c.append)); } ; function Ba(a) { Document.prototype.createElement = function (b) { return ua(a, this, b, null); }; Document.prototype.importNode = function (b, c) { b = aa.call(this, b, !!c); this.__CE_registry ? V(a, b) : Q(a, b); return b; }; Document.prototype.createElementNS = function (b, c) { return ua(a, this, c, b); }; Z(a, Document.prototype, { prepend: ba, append: ca }); } ; function Ca(a) { function b(f) { return function (d) { for (var e = [], g = 0; g < arguments.length; ++g) { e[g] = arguments[g]; } g = []; for (var h = [], k = 0; k < e.length; k++) { var l = e[k]; l instanceof Element && J(l) && h.push(l); if (l instanceof DocumentFragment) for (l = l.firstChild; l; l = l.nextSibling) { g.push(l); } else g.push(l); } f.apply(this, e); for (e = 0; e < h.length; e++) { U(a, h[e]); } if (J(this)) for (e = 0; e < g.length; e++) { h = g[e], h instanceof Element && S(a, h); } }; } var c = Element.prototype; void 0 !== ia && (c.before = b(ia)); void 0 !== ja && (c.after = b(ja)); void 0 !== ka && (c.replaceWith = function (f) { for (var d = [], e = 0; e < arguments.length; ++e) { d[e] = arguments[e]; } e = []; for (var g = [], h = 0; h < d.length; h++) { var k = d[h]; k instanceof Element && J(k) && g.push(k); if (k instanceof DocumentFragment) for (k = k.firstChild; k; k = k.nextSibling) { e.push(k); } else e.push(k); } h = J(this); ka.apply(this, d); for (d = 0; d < g.length; d++) { U(a, g[d]); } if (h) for (U(a, this), d = 0; d < e.length; d++) { g = e[d], g instanceof Element && S(a, g); } }); void 0 !== la && (c.remove = function () { var f = J(this); la.call(this); f && U(a, this); }); } ; function Da(a) { function b(d, e) { Object.defineProperty(d, "innerHTML", { enumerable: e.enumerable, configurable: !0, get: e.get, set: function set(g) { var h = this, k = void 0; J(this) && (k = [], P(a, this, function (x) { x !== h && k.push(x); })); e.set.call(this, g); if (k) for (var l = 0; l < k.length; l++) { var m = k[l]; 1 === m.__CE_state && a.disconnectedCallback(m); } this.ownerDocument.__CE_registry ? V(a, this) : Q(a, this); return g; } }); } function c(d, e) { d.insertAdjacentElement = function (g, h) { var k = J(h); g = e.call(this, g, h); k && U(a, h); J(g) && S(a, h); return g; }; } function f(d, e) { function g(h, k) { for (var l = []; h !== k; h = h.nextSibling) { l.push(h); } for (k = 0; k < l.length; k++) { V(a, l[k]); } } d.insertAdjacentHTML = function (h, k) { h = h.toLowerCase(); if ("beforebegin" === h) { var l = this.previousSibling; e.call(this, h, k); g(l || this.parentNode.firstChild, this); } else if ("afterbegin" === h) l = this.firstChild, e.call(this, h, k), g(this.firstChild, l);else if ("beforeend" === h) l = this.lastChild, e.call(this, h, k), g(l || this.firstChild, null);else if ("afterend" === h) l = this.nextSibling, e.call(this, h, k), g(this.nextSibling, l);else throw new SyntaxError("The value provided (" + String(h) + ") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'."); }; } y && (Element.prototype.attachShadow = function (d) { d = y.call(this, d); if (a.f && !d.__CE_patched) { d.__CE_patched = !0; for (var e = 0; e < a.h.length; e++) { a.h[e](d); } } return this.__CE_shadowRoot = d; }); z && z.get ? b(Element.prototype, z) : I && I.get ? b(HTMLElement.prototype, I) : ta(a, function (d) { b(d, { enumerable: !0, configurable: !0, get: function get() { return q.call(this, !0).innerHTML; }, set: function set(e) { var g = "template" === this.localName, h = g ? this.content : this, k = p.call(document, this.namespaceURI, this.localName); for (k.innerHTML = e; 0 < h.childNodes.length;) { u.call(h, h.childNodes[0]); } for (e = g ? k.content : k; 0 < e.childNodes.length;) { r.call(h, e.childNodes[0]); } } }); }); Element.prototype.setAttribute = function (d, e) { if (1 !== this.__CE_state) return B.call(this, d, e); var g = A.call(this, d); B.call(this, d, e); e = A.call(this, d); a.attributeChangedCallback(this, d, g, e, null); }; Element.prototype.setAttributeNS = function (d, e, g) { if (1 !== this.__CE_state) return E.call(this, d, e, g); var h = D.call(this, d, e); E.call(this, d, e, g); g = D.call(this, d, e); a.attributeChangedCallback(this, e, h, g, d); }; Element.prototype.removeAttribute = function (d) { if (1 !== this.__CE_state) return C.call(this, d); var e = A.call(this, d); C.call(this, d); null !== e && a.attributeChangedCallback(this, d, e, null, null); }; Element.prototype.removeAttributeNS = function (d, e) { if (1 !== this.__CE_state) return F.call(this, d, e); var g = D.call(this, d, e); F.call(this, d, e); var h = D.call(this, d, e); g !== h && a.attributeChangedCallback(this, e, g, h, d); }; na ? c(HTMLElement.prototype, na) : G && c(Element.prototype, G); oa ? f(HTMLElement.prototype, oa) : H && f(Element.prototype, H); Z(a, Element.prototype, { prepend: fa, append: ha }); Ca(a); } ; var Ea = {}; function Fa(a) { function b() { var c = this.constructor; var f = document.__CE_registry.u.get(c); if (!f) throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`."); var d = f.constructionStack; if (0 === d.length) return d = n.call(document, f.localName), Object.setPrototypeOf(d, c.prototype), d.__CE_state = 1, d.__CE_definition = f, R(a, d), d; var e = d.length - 1, g = d[e]; if (g === Ea) throw Error("Failed to construct '" + f.localName + "': This element was already constructed."); d[e] = Ea; Object.setPrototypeOf(g, c.prototype); R(a, g); return g; } b.prototype = ma.prototype; Object.defineProperty(HTMLElement.prototype, "constructor", { writable: !0, configurable: !0, enumerable: !1, value: b }); window.HTMLElement = b; } ; function Ga(a) { function b(c, f) { Object.defineProperty(c, "textContent", { enumerable: f.enumerable, configurable: !0, get: f.get, set: function set(d) { if (this.nodeType === Node.TEXT_NODE) f.set.call(this, d);else { var e = void 0; if (this.firstChild) { var g = this.childNodes, h = g.length; if (0 < h && J(this)) { e = Array(h); for (var k = 0; k < h; k++) { e[k] = g[k]; } } } f.set.call(this, d); if (e) for (d = 0; d < e.length; d++) { U(a, e[d]); } } } }); } Node.prototype.insertBefore = function (c, f) { if (c instanceof DocumentFragment) { var d = K(c); c = t.call(this, c, f); if (J(this)) for (f = 0; f < d.length; f++) { S(a, d[f]); } return c; } d = c instanceof Element && J(c); f = t.call(this, c, f); d && U(a, c); J(this) && S(a, c); return f; }; Node.prototype.appendChild = function (c) { if (c instanceof DocumentFragment) { var f = K(c); c = r.call(this, c); if (J(this)) for (var d = 0; d < f.length; d++) { S(a, f[d]); } return c; } f = c instanceof Element && J(c); d = r.call(this, c); f && U(a, c); J(this) && S(a, c); return d; }; Node.prototype.cloneNode = function (c) { c = q.call(this, !!c); this.ownerDocument.__CE_registry ? V(a, c) : Q(a, c); return c; }; Node.prototype.removeChild = function (c) { var f = c instanceof Element && J(c), d = u.call(this, c); f && U(a, c); return d; }; Node.prototype.replaceChild = function (c, f) { if (c instanceof DocumentFragment) { var d = K(c); c = v.call(this, c, f); if (J(this)) for (U(a, f), f = 0; f < d.length; f++) { S(a, d[f]); } return c; } d = c instanceof Element && J(c); var e = v.call(this, c, f), g = J(this); g && U(a, f); d && U(a, c); g && S(a, c); return e; }; w && w.get ? b(Node.prototype, w) : sa(a, function (c) { b(c, { enumerable: !0, configurable: !0, get: function get() { for (var f = [], d = this.firstChild; d; d = d.nextSibling) { d.nodeType !== Node.COMMENT_NODE && f.push(d.textContent); } return f.join(""); }, set: function set(f) { for (; this.firstChild;) { u.call(this, this.firstChild); } null != f && "" !== f && r.call(this, document.createTextNode(f)); } }); }); } ; var O = window.customElements; function Ha() { var a = new N(); Fa(a); Ba(a); Z(a, DocumentFragment.prototype, { prepend: da, append: ea }); Ga(a); Da(a); a = new Y(a); document.__CE_registry = a; Object.defineProperty(window, "customElements", { configurable: !0, enumerable: !0, value: a }); } O && !O.forcePolyfill && "function" == typeof O.define && "function" == typeof O.get || Ha(); window.__CE_installPolyfill = Ha; }).call(self); //# sourceMappingURL=custom-elements.min.js.map /***/ }), /***/ 148: /*!************************************************************************!*\ !*** ./node_modules/@webcomponents/custom-elements/src/native-shim.js ***! \************************************************************************/ /***/ (function() { "use strict"; /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt The complete set of authors may be found * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by * Google as part of the polymer project is also subject to an additional IP * rights grant found at http://polymer.github.io/PATENTS.txt */ /** * This shim allows elements written in, or compiled to, ES5 to work on native * implementations of Custom Elements v1. It sets new.target to the value of * this.constructor so that the native HTMLElement constructor can access the * current under-construction element's definition. */ (function () { if ( // No Reflect, no classes, no need for shim because native custom elements // require ES2015 classes or Reflect. window.Reflect === undefined || window.customElements === undefined || // The webcomponentsjs custom elements polyfill doesn't require // ES2015-compatible construction (`super()` or `Reflect.construct`). window.customElements.polyfillWrapFlushCallback) { return; } var BuiltInHTMLElement = HTMLElement; /** * With jscompiler's RECOMMENDED_FLAGS the function name will be optimized away. * However, if we declare the function as a property on an object literal, and * use quotes for the property name, then closure will leave that much intact, * which is enough for the JS VM to correctly set Function.prototype.name. */ var wrapperForTheName = { 'HTMLElement': function HTMLElement() { return Reflect.construct(BuiltInHTMLElement, [], this.constructor); } }; window.HTMLElement = wrapperForTheName['HTMLElement']; HTMLElement.prototype = BuiltInHTMLElement.prototype; HTMLElement.prototype.constructor = HTMLElement; Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement); })(); //# sourceMappingURL=native-shim.js.map /***/ }), /***/ 41924: /*!************************************************************************************!*\ !*** ./node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js ***! \************************************************************************************/ /***/ (function() { /** @license @nocompile Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ (function () { 'use strict'; (function () { if (void 0 === window.Reflect || void 0 === window.customElements || window.customElements.polyfillWrapFlushCallback) return; var a = HTMLElement; window.HTMLElement = { HTMLElement: function HTMLElement() { return Reflect.construct(a, [], this.constructor); } }.HTMLElement, HTMLElement.prototype = a.prototype, HTMLElement.prototype.constructor = HTMLElement, Object.setPrototypeOf(HTMLElement, a); })(); })(); /***/ }), /***/ 88583: /*!***********************************************!*\ !*** ./node_modules/zone.js/fesm2015/zone.js ***! \***********************************************/ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) { "use strict"; /** * @license Angular v12.0.0-next.0 * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var _createForOfIteratorHelper = (__webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js */ 43269)["default"]); var _classCallCheck = (__webpack_require__(/*! ./node_modules/@babel/runtime/helpers/classCallCheck.js */ 34575)["default"]); var _createClass = (__webpack_require__(/*! ./node_modules/@babel/runtime/helpers/createClass.js */ 93913)["default"]); var Zone$1 = function (global) { var performance = global['performance']; function mark(name) { performance && performance['mark'] && performance['mark'](name); } function performanceMeasure(name, label) { performance && performance['measure'] && performance['measure'](name, label); } mark('Zone'); // Initialize before it's accessed below. // __Zone_symbol_prefix global can be used to override the default zone // symbol prefix with a custom one if needed. var symbolPrefix = global['__Zone_symbol_prefix'] || '__zone_symbol__'; function __symbol__(name) { return symbolPrefix + name; } var checkDuplicate = global[__symbol__('forceDuplicateZoneCheck')] === true; if (global['Zone']) { // if global['Zone'] already exists (maybe zone.js was already loaded or // some other lib also registered a global object named Zone), we may need // to throw an error, but sometimes user may not want this error. // For example, // we have two web pages, page1 includes zone.js, page2 doesn't. // and the 1st time user load page1 and page2, everything work fine, // but when user load page2 again, error occurs because global['Zone'] already exists. // so we add a flag to let user choose whether to throw this error or not. // By default, if existing Zone is from zone.js, we will not throw the error. if (checkDuplicate || typeof global['Zone'].__symbol__ !== 'function') { throw new Error('Zone already loaded.'); } else { return global['Zone']; } } var Zone = /*#__PURE__*/function () { function Zone(parent, zoneSpec) { _classCallCheck(this, Zone); this._parent = parent; this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>'; this._properties = zoneSpec && zoneSpec.properties || {}; this._zoneDelegate = new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec); } _createClass(Zone, [{ key: "parent", get: function get() { return this._parent; } }, { key: "name", get: function get() { return this._name; } }, { key: "get", value: function get(key) { var zone = this.getZoneWith(key); if (zone) return zone._properties[key]; } }, { key: "getZoneWith", value: function getZoneWith(key) { var current = this; while (current) { if (current._properties.hasOwnProperty(key)) { return current; } current = current._parent; } return null; } }, { key: "fork", value: function fork(zoneSpec) { if (!zoneSpec) throw new Error('ZoneSpec required!'); return this._zoneDelegate.fork(this, zoneSpec); } }, { key: "wrap", value: function wrap(callback, source) { if (typeof callback !== 'function') { throw new Error('Expecting function got: ' + callback); } var _callback = this._zoneDelegate.intercept(this, callback, source); var zone = this; return function () { return zone.runGuarded(_callback, this, arguments, source); }; } }, { key: "run", value: function run(callback, applyThis, applyArgs, source) { _currentZoneFrame = { parent: _currentZoneFrame, zone: this }; try { return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source); } finally { _currentZoneFrame = _currentZoneFrame.parent; } } }, { key: "runGuarded", value: function runGuarded(callback) { var applyThis = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; var applyArgs = arguments.length > 2 ? arguments[2] : undefined; var source = arguments.length > 3 ? arguments[3] : undefined; _currentZoneFrame = { parent: _currentZoneFrame, zone: this }; try { try { return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source); } catch (error) { if (this._zoneDelegate.handleError(this, error)) { throw error; } } } finally { _currentZoneFrame = _currentZoneFrame.parent; } } }, { key: "runTask", value: function runTask(task, applyThis, applyArgs) { if (task.zone != this) { throw new Error('A task can only be run in the zone of creation! (Creation: ' + (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')'); } // https://github.com/angular/zone.js/issues/778, sometimes eventTask // will run in notScheduled(canceled) state, we should not try to // run such kind of task but just return if (task.state === notScheduled && (task.type === eventTask || task.type === macroTask)) { return; } var reEntryGuard = task.state != running; reEntryGuard && task._transitionTo(running, scheduled); task.runCount++; var previousTask = _currentTask; _currentTask = task; _currentZoneFrame = { parent: _currentZoneFrame, zone: this }; try { if (task.type == macroTask && task.data && !task.data.isPeriodic) { task.cancelFn = undefined; } try { return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs); } catch (error) { if (this._zoneDelegate.handleError(this, error)) { throw error; } } } finally { // if the task's state is notScheduled or unknown, then it has already been cancelled // we should not reset the state to scheduled if (task.state !== notScheduled && task.state !== unknown) { if (task.type == eventTask || task.data && task.data.isPeriodic) { reEntryGuard && task._transitionTo(scheduled, running); } else { task.runCount = 0; this._updateTaskCount(task, -1); reEntryGuard && task._transitionTo(notScheduled, running, notScheduled); } } _currentZoneFrame = _currentZoneFrame.parent; _currentTask = previousTask; } } }, { key: "scheduleTask", value: function scheduleTask(task) { if (task.zone && task.zone !== this) { // check if the task was rescheduled, the newZone // should not be the children of the original zone var newZone = this; while (newZone) { if (newZone === task.zone) { throw Error("can not reschedule task to ".concat(this.name, " which is descendants of the original zone ").concat(task.zone.name)); } newZone = newZone.parent; } } task._transitionTo(scheduling, notScheduled); var zoneDelegates = []; task._zoneDelegates = zoneDelegates; task._zone = this; try { task = this._zoneDelegate.scheduleTask(this, task); } catch (err) { // should set task's state to unknown when scheduleTask throw error // because the err may from reschedule, so the fromState maybe notScheduled task._transitionTo(unknown, scheduling, notScheduled); // TODO: @JiaLiPassion, should we check the result from handleError? this._zoneDelegate.handleError(this, err); throw err; } if (task._zoneDelegates === zoneDelegates) { // we have to check because internally the delegate can reschedule the task. this._updateTaskCount(task, 1); } if (task.state == scheduling) { task._transitionTo(scheduled, scheduling); } return task; } }, { key: "scheduleMicroTask", value: function scheduleMicroTask(source, callback, data, customSchedule) { return this.scheduleTask(new ZoneTask(microTask, source, callback, data, customSchedule, undefined)); } }, { key: "scheduleMacroTask", value: function scheduleMacroTask(source, callback, data, customSchedule, customCancel) { return this.scheduleTask(new ZoneTask(macroTask, source, callback, data, customSchedule, customCancel)); } }, { key: "scheduleEventTask", value: function scheduleEventTask(source, callback, data, customSchedule, customCancel) { return this.scheduleTask(new ZoneTask(eventTask, source, callback, data, customSchedule, customCancel)); } }, { key: "cancelTask", value: function cancelTask(task) { if (task.zone != this) throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' + (task.zone || NO_ZONE).name + '; Execution: ' + this.name + ')'); task._transitionTo(canceling, scheduled, running); try { this._zoneDelegate.cancelTask(this, task); } catch (err) { // if error occurs when cancelTask, transit the state to unknown task._transitionTo(unknown, canceling); this._zoneDelegate.handleError(this, err); throw err; } this._updateTaskCount(task, -1); task._transitionTo(notScheduled, canceling); task.runCount = 0; return task; } }, { key: "_updateTaskCount", value: function _updateTaskCount(task, count) { var zoneDelegates = task._zoneDelegates; if (count == -1) { task._zoneDelegates = null; } for (var i = 0; i < zoneDelegates.length; i++) { zoneDelegates[i]._updateTaskCount(task.type, count); } } }], [{ key: "assertZonePatched", value: function assertZonePatched() { if (global['Promise'] !== patches['ZoneAwarePromise']) { throw new Error('Zone.js has detected that ZoneAwarePromise `(window|global).Promise` ' + 'has been overwritten.\n' + 'Most likely cause is that a Promise polyfill has been loaded ' + 'after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. ' + 'If you must load one, do so before loading zone.js.)'); } } }, { key: "root", get: function get() { var zone = Zone.current; while (zone.parent) { zone = zone.parent; } return zone; } }, { key: "current", get: function get() { return _currentZoneFrame.zone; } }, { key: "currentTask", get: function get() { return _currentTask; } // tslint:disable-next-line:require-internal-with-underscore }, { key: "__load_patch", value: function __load_patch(name, fn) { var ignoreDuplicate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; if (patches.hasOwnProperty(name)) { // `checkDuplicate` option is defined from global variable // so it works for all modules. // `ignoreDuplicate` can work for the specified module if (!ignoreDuplicate && checkDuplicate) { throw Error('Already loaded patch: ' + name); } } else if (!global['__Zone_disable_' + name]) { var perfName = 'Zone:' + name; mark(perfName); patches[name] = fn(global, Zone, _api); performanceMeasure(perfName, perfName); } } }]); return Zone; }(); // tslint:disable-next-line:require-internal-with-underscore Zone.__symbol__ = __symbol__; var DELEGATE_ZS = { name: '', onHasTask: function onHasTask(delegate, _, target, hasTaskState) { return delegate.hasTask(target, hasTaskState); }, onScheduleTask: function onScheduleTask(delegate, _, target, task) { return delegate.scheduleTask(target, task); }, onInvokeTask: function onInvokeTask(delegate, _, target, task, applyThis, applyArgs) { return delegate.invokeTask(target, task, applyThis, applyArgs); }, onCancelTask: function onCancelTask(delegate, _, target, task) { return delegate.cancelTask(target, task); } }; var ZoneDelegate = /*#__PURE__*/function () { function ZoneDelegate(zone, parentDelegate, zoneSpec) { _classCallCheck(this, ZoneDelegate); this._taskCounts = { 'microTask': 0, 'macroTask': 0, 'eventTask': 0 }; this.zone = zone; this._parentDelegate = parentDelegate; this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS); this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt); this._forkCurrZone = zoneSpec && (zoneSpec.onFork ? this.zone : parentDelegate._forkCurrZone); this._interceptZS = zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS); this._interceptDlgt = zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt); this._interceptCurrZone = zoneSpec && (zoneSpec.onIntercept ? this.zone : parentDelegate._interceptCurrZone); this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS); this._invokeDlgt = zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt); this._invokeCurrZone = zoneSpec && (zoneSpec.onInvoke ? this.zone : parentDelegate._invokeCurrZone); this._handleErrorZS = zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS); this._handleErrorDlgt = zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt); this._handleErrorCurrZone = zoneSpec && (zoneSpec.onHandleError ? this.zone : parentDelegate._handleErrorCurrZone); this._scheduleTaskZS = zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS); this._scheduleTaskDlgt = zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt); this._scheduleTaskCurrZone = zoneSpec && (zoneSpec.onScheduleTask ? this.zone : parentDelegate._scheduleTaskCurrZone); this._invokeTaskZS = zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS); this._invokeTaskDlgt = zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt); this._invokeTaskCurrZone = zoneSpec && (zoneSpec.onInvokeTask ? this.zone : parentDelegate._invokeTaskCurrZone); this._cancelTaskZS = zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS); this._cancelTaskDlgt = zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt); this._cancelTaskCurrZone = zoneSpec && (zoneSpec.onCancelTask ? this.zone : parentDelegate._cancelTaskCurrZone); this._hasTaskZS = null; this._hasTaskDlgt = null; this._hasTaskDlgtOwner = null; this._hasTaskCurrZone = null; var zoneSpecHasTask = zoneSpec && zoneSpec.onHasTask; var parentHasTask = parentDelegate && parentDelegate._hasTaskZS; if (zoneSpecHasTask || parentHasTask) { // If we need to report hasTask, than this ZS needs to do ref counting on tasks. In such // a case all task related interceptors must go through this ZD. We can't short circuit it. this._hasTaskZS = zoneSpecHasTask ? zoneSpec : DELEGATE_ZS; this._hasTaskDlgt = parentDelegate; this._hasTaskDlgtOwner = this; this._hasTaskCurrZone = zone; if (!zoneSpec.onScheduleTask) { this._scheduleTaskZS = DELEGATE_ZS; this._scheduleTaskDlgt = parentDelegate; this._scheduleTaskCurrZone = this.zone; } if (!zoneSpec.onInvokeTask) { this._invokeTaskZS = DELEGATE_ZS; this._invokeTaskDlgt = parentDelegate; this._invokeTaskCurrZone = this.zone; } if (!zoneSpec.onCancelTask) { this._cancelTaskZS = DELEGATE_ZS; this._cancelTaskDlgt = parentDelegate; this._cancelTaskCurrZone = this.zone; } } } _createClass(ZoneDelegate, [{ key: "fork", value: function fork(targetZone, zoneSpec) { return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec) : new Zone(targetZone, zoneSpec); } }, { key: "intercept", value: function intercept(targetZone, callback, source) { return this._interceptZS ? this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, targetZone, callback, source) : callback; } }, { key: "invoke", value: function invoke(targetZone, callback, applyThis, applyArgs, source) { return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, targetZone, callback, applyThis, applyArgs, source) : callback.apply(applyThis, applyArgs); } }, { key: "handleError", value: function handleError