{"ast":null,"code":"(function () {\n /*\n Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n Code distributed by Google as part of the polymer project is also\n subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n */\n 'use strict';\n\n 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(\" \"));\n function g(a) {\n var b = aa.has(a);\n a = /^[a-z][.0-9_a-z]*-[\\-.0-9_a-z]*$/.test(a);\n return !b && a;\n }\n function l(a) {\n var b = a.isConnected;\n if (void 0 !== b) return b;\n for (; a && !(a.__CE_isImportDocument || a instanceof Document);) a = a.parentNode || (window.ShadowRoot && a instanceof ShadowRoot ? a.host : void 0);\n return !(!a || !(a.__CE_isImportDocument || a instanceof Document));\n }\n function n(a, b) {\n for (; b && b !== a && !b.nextSibling;) b = b.parentNode;\n return b && b !== a ? b.nextSibling : null;\n }\n function p(a, b, d) {\n d = void 0 === d ? new Set() : d;\n for (var c = a; c;) {\n if (c.nodeType === Node.ELEMENT_NODE) {\n var e = c;\n b(e);\n var f = e.localName;\n if (\"link\" === f && \"import\" === e.getAttribute(\"rel\")) {\n c = e.import;\n if (c instanceof Node && !d.has(c)) for (d.add(c), c = c.firstChild; c; c = c.nextSibling) p(c, b, d);\n c = n(a, e);\n continue;\n } else if (\"template\" === f) {\n c = n(a, e);\n continue;\n }\n if (e = e.__CE_shadowRoot) for (e = e.firstChild; e; e = e.nextSibling) p(e, b, d);\n }\n c = c.firstChild ? c.firstChild : n(a, c);\n }\n }\n function r(a, b, d) {\n a[b] = d;\n }\n ;\n function u() {\n this.a = new Map();\n this.g = new Map();\n this.c = [];\n this.f = [];\n this.b = !1;\n }\n function ba(a, b, d) {\n a.a.set(b, d);\n a.g.set(d.constructorFunction, d);\n }\n function ca(a, b) {\n a.b = !0;\n a.c.push(b);\n }\n function da(a, b) {\n a.b = !0;\n a.f.push(b);\n }\n function v(a, b) {\n a.b && p(b, function (b) {\n return w(a, b);\n });\n }\n function w(a, b) {\n if (a.b && !b.__CE_patched) {\n b.__CE_patched = !0;\n for (var d = 0; d < a.c.length; d++) a.c[d](b);\n for (d = 0; d < a.f.length; d++) a.f[d](b);\n }\n }\n function x(a, b) {\n var d = [];\n p(b, function (b) {\n return d.push(b);\n });\n for (b = 0; b < d.length; b++) {\n var c = d[b];\n 1 === c.__CE_state ? a.connectedCallback(c) : y(a, c);\n }\n }\n function z(a, b) {\n var d = [];\n p(b, function (b) {\n return d.push(b);\n });\n for (b = 0; b < d.length; b++) {\n var c = d[b];\n 1 === c.__CE_state && a.disconnectedCallback(c);\n }\n }\n function A(a, b, d) {\n d = void 0 === d ? {} : d;\n var c = d.u || new Set(),\n e = d.i || function (b) {\n return y(a, b);\n },\n f = [];\n p(b, function (b) {\n if (\"link\" === b.localName && \"import\" === b.getAttribute(\"rel\")) {\n var d = b.import;\n d instanceof Node && (d.__CE_isImportDocument = !0, d.__CE_hasRegistry = !0);\n d && \"complete\" === d.readyState ? d.__CE_documentLoadHandled = !0 : b.addEventListener(\"load\", function () {\n var d = b.import;\n if (!d.__CE_documentLoadHandled) {\n d.__CE_documentLoadHandled = !0;\n var f = new Set(c);\n f.delete(d);\n A(a, d, {\n u: f,\n i: e\n });\n }\n });\n } else f.push(b);\n }, c);\n if (a.b) for (b = 0; b < f.length; b++) w(a, f[b]);\n for (b = 0; b < f.length; b++) e(f[b]);\n }\n function y(a, b) {\n if (void 0 === b.__CE_state) {\n var d = b.ownerDocument;\n if (d.defaultView || d.__CE_isImportDocument && d.__CE_hasRegistry) if (d = a.a.get(b.localName)) {\n d.constructionStack.push(b);\n var c = d.constructorFunction;\n try {\n try {\n if (new c() !== b) throw Error(\"The custom element constructor did not produce the element being upgraded.\");\n } finally {\n d.constructionStack.pop();\n }\n } catch (t) {\n throw b.__CE_state = 2, t;\n }\n b.__CE_state = 1;\n b.__CE_definition = d;\n if (d.attributeChangedCallback) for (d = d.observedAttributes, c = 0; c < d.length; c++) {\n var e = d[c],\n f = b.getAttribute(e);\n null !== f && a.attributeChangedCallback(b, e, null, f, null);\n }\n l(b) && a.connectedCallback(b);\n }\n }\n }\n u.prototype.connectedCallback = function (a) {\n var b = a.__CE_definition;\n b.connectedCallback && b.connectedCallback.call(a);\n };\n u.prototype.disconnectedCallback = function (a) {\n var b = a.__CE_definition;\n b.disconnectedCallback && b.disconnectedCallback.call(a);\n };\n u.prototype.attributeChangedCallback = function (a, b, d, c, e) {\n var f = a.__CE_definition;\n f.attributeChangedCallback && -1 < f.observedAttributes.indexOf(b) && f.attributeChangedCallback.call(a, b, d, c, e);\n };\n function B(a) {\n var b = document;\n this.c = a;\n this.a = b;\n this.b = void 0;\n A(this.c, this.a);\n \"loading\" === this.a.readyState && (this.b = new MutationObserver(this.f.bind(this)), this.b.observe(this.a, {\n childList: !0,\n subtree: !0\n }));\n }\n function C(a) {\n a.b && a.b.disconnect();\n }\n B.prototype.f = function (a) {\n var b = this.a.readyState;\n \"interactive\" !== b && \"complete\" !== b || C(this);\n for (b = 0; b < a.length; b++) for (var d = a[b].addedNodes, c = 0; c < d.length; c++) A(this.c, d[c]);\n };\n function ea() {\n var a = this;\n this.b = this.a = void 0;\n this.c = new Promise(function (b) {\n a.b = b;\n a.a && b(a.a);\n });\n }\n function D(a) {\n if (a.a) throw Error(\"Already resolved.\");\n a.a = void 0;\n a.b && a.b(void 0);\n }\n ;\n function E(a) {\n this.c = !1;\n this.a = a;\n this.j = new Map();\n this.f = function (b) {\n return b();\n };\n this.b = !1;\n this.g = [];\n this.o = new B(a);\n }\n E.prototype.l = function (a, b) {\n var d = this;\n if (!(b instanceof Function)) throw new TypeError(\"Custom element constructors must be functions.\");\n if (!g(a)) throw new SyntaxError(\"The element name '\" + a + \"' is not valid.\");\n if (this.a.a.get(a)) throw Error(\"A custom element with name '\" + a + \"' has already been defined.\");\n if (this.c) throw Error(\"A custom element is already being defined.\");\n this.c = !0;\n try {\n var c = function (b) {\n var a = e[b];\n if (void 0 !== a && !(a instanceof Function)) throw Error(\"The '\" + b + \"' callback must be a function.\");\n return a;\n },\n e = b.prototype;\n if (!(e instanceof Object)) throw new TypeError(\"The custom element constructor's prototype is not an object.\");\n var f = c(\"connectedCallback\");\n var t = c(\"disconnectedCallback\");\n var k = c(\"adoptedCallback\");\n var h = c(\"attributeChangedCallback\");\n var m = b.observedAttributes || [];\n } catch (q) {\n return;\n } finally {\n this.c = !1;\n }\n b = {\n localName: a,\n constructorFunction: b,\n connectedCallback: f,\n disconnectedCallback: t,\n adoptedCallback: k,\n attributeChangedCallback: h,\n observedAttributes: m,\n constructionStack: []\n };\n ba(this.a, a, b);\n this.g.push(b);\n this.b || (this.b = !0, this.f(function () {\n return fa(d);\n }));\n };\n E.prototype.i = function (a) {\n A(this.a, a);\n };\n function fa(a) {\n if (!1 !== a.b) {\n a.b = !1;\n for (var b = a.g, d = [], c = new Map(), e = 0; e < b.length; e++) c.set(b[e].localName, []);\n A(a.a, document, {\n i: function (b) {\n if (void 0 === b.__CE_state) {\n var e = b.localName,\n f = c.get(e);\n f ? f.push(b) : a.a.a.get(e) && d.push(b);\n }\n }\n });\n for (e = 0; e < d.length; e++) y(a.a, d[e]);\n for (; 0 < b.length;) {\n var f = b.shift();\n e = f.localName;\n f = c.get(f.localName);\n for (var t = 0; t < f.length; t++) y(a.a, f[t]);\n (e = a.j.get(e)) && D(e);\n }\n }\n }\n E.prototype.get = function (a) {\n if (a = this.a.a.get(a)) return a.constructorFunction;\n };\n E.prototype.m = function (a) {\n if (!g(a)) return Promise.reject(new SyntaxError(\"'\" + a + \"' is not a valid custom element name.\"));\n var b = this.j.get(a);\n if (b) return b.c;\n b = new ea();\n this.j.set(a, b);\n this.a.a.get(a) && !this.g.some(function (b) {\n return b.localName === a;\n }) && D(b);\n return b.c;\n };\n E.prototype.s = function (a) {\n C(this.o);\n var b = this.f;\n this.f = function (d) {\n return a(function () {\n return b(d);\n });\n };\n };\n window.CustomElementRegistry = E;\n E.prototype.define = E.prototype.l;\n E.prototype.upgrade = E.prototype.i;\n E.prototype.get = E.prototype.get;\n E.prototype.whenDefined = E.prototype.m;\n E.prototype.polyfillWrapFlushCallback = E.prototype.s;\n var F = window.Document.prototype.createElement,\n G = window.Document.prototype.createElementNS,\n ha = window.Document.prototype.importNode,\n ia = window.Document.prototype.prepend,\n ja = window.Document.prototype.append,\n ka = window.DocumentFragment.prototype.prepend,\n la = window.DocumentFragment.prototype.append,\n H = window.Node.prototype.cloneNode,\n I = window.Node.prototype.appendChild,\n J = window.Node.prototype.insertBefore,\n K = window.Node.prototype.removeChild,\n L = window.Node.prototype.replaceChild,\n M = Object.getOwnPropertyDescriptor(window.Node.prototype, \"textContent\"),\n N = window.Element.prototype.attachShadow,\n O = Object.getOwnPropertyDescriptor(window.Element.prototype, \"innerHTML\"),\n P = window.Element.prototype.getAttribute,\n Q = window.Element.prototype.setAttribute,\n R = window.Element.prototype.removeAttribute,\n S = window.Element.prototype.getAttributeNS,\n T = window.Element.prototype.setAttributeNS,\n U = window.Element.prototype.removeAttributeNS,\n ma = window.Element.prototype.insertAdjacentElement,\n na = window.Element.prototype.insertAdjacentHTML,\n oa = window.Element.prototype.prepend,\n pa = window.Element.prototype.append,\n V = window.Element.prototype.before,\n qa = window.Element.prototype.after,\n ra = window.Element.prototype.replaceWith,\n sa = window.Element.prototype.remove,\n ta = window.HTMLElement,\n W = Object.getOwnPropertyDescriptor(window.HTMLElement.prototype, \"innerHTML\"),\n ua = window.HTMLElement.prototype.insertAdjacentElement,\n va = window.HTMLElement.prototype.insertAdjacentHTML;\n var wa = new function () {}();\n function xa() {\n var a = X;\n window.HTMLElement = function () {\n function b() {\n var b = this.constructor,\n c = a.g.get(b);\n if (!c) throw Error(\"The custom element being constructed was not registered with `customElements`.\");\n var e = c.constructionStack;\n if (0 === e.length) return e = F.call(document, c.localName), Object.setPrototypeOf(e, b.prototype), e.__CE_state = 1, e.__CE_definition = c, w(a, e), e;\n c = e.length - 1;\n var f = e[c];\n if (f === wa) throw Error(\"The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.\");\n e[c] = wa;\n Object.setPrototypeOf(f, b.prototype);\n w(a, f);\n return f;\n }\n b.prototype = ta.prototype;\n Object.defineProperty(b.prototype, \"constructor\", {\n writable: !0,\n configurable: !0,\n enumerable: !1,\n value: b\n });\n return b;\n }();\n }\n ;\n function Y(a, b, d) {\n function c(b) {\n return function (d) {\n for (var e = [], c = 0; c < arguments.length; ++c) e[c] = arguments[c];\n c = [];\n for (var f = [], m = 0; m < e.length; m++) {\n var q = e[m];\n q instanceof Element && l(q) && f.push(q);\n if (q instanceof DocumentFragment) for (q = q.firstChild; q; q = q.nextSibling) c.push(q);else c.push(q);\n }\n b.apply(this, e);\n for (e = 0; e < f.length; e++) z(a, f[e]);\n if (l(this)) for (e = 0; e < c.length; e++) f = c[e], f instanceof Element && x(a, f);\n };\n }\n void 0 !== d.h && (b.prepend = c(d.h));\n void 0 !== d.append && (b.append = c(d.append));\n }\n ;\n function ya() {\n var a = X;\n r(Document.prototype, \"createElement\", function (b) {\n if (this.__CE_hasRegistry) {\n var d = a.a.get(b);\n if (d) return new d.constructorFunction();\n }\n b = F.call(this, b);\n w(a, b);\n return b;\n });\n r(Document.prototype, \"importNode\", function (b, d) {\n b = ha.call(this, b, !!d);\n this.__CE_hasRegistry ? A(a, b) : v(a, b);\n return b;\n });\n r(Document.prototype, \"createElementNS\", function (b, d) {\n if (this.__CE_hasRegistry && (null === b || \"http://www.w3.org/1999/xhtml\" === b)) {\n var c = a.a.get(d);\n if (c) return new c.constructorFunction();\n }\n b = G.call(this, b, d);\n w(a, b);\n return b;\n });\n Y(a, Document.prototype, {\n h: ia,\n append: ja\n });\n }\n ;\n function za() {\n function a(a, c) {\n Object.defineProperty(a, \"textContent\", {\n enumerable: c.enumerable,\n configurable: !0,\n get: c.get,\n set: function (a) {\n if (this.nodeType === Node.TEXT_NODE) c.set.call(this, a);else {\n var d = void 0;\n if (this.firstChild) {\n var e = this.childNodes,\n k = e.length;\n if (0 < k && l(this)) {\n d = Array(k);\n for (var h = 0; h < k; h++) d[h] = e[h];\n }\n }\n c.set.call(this, a);\n if (d) for (a = 0; a < d.length; a++) z(b, d[a]);\n }\n }\n });\n }\n var b = X;\n r(Node.prototype, \"insertBefore\", function (a, c) {\n if (a instanceof DocumentFragment) {\n var e = Array.prototype.slice.apply(a.childNodes);\n a = J.call(this, a, c);\n if (l(this)) for (c = 0; c < e.length; c++) x(b, e[c]);\n return a;\n }\n e = l(a);\n c = J.call(this, a, c);\n e && z(b, a);\n l(this) && x(b, a);\n return c;\n });\n r(Node.prototype, \"appendChild\", function (a) {\n if (a instanceof DocumentFragment) {\n var c = Array.prototype.slice.apply(a.childNodes);\n a = I.call(this, a);\n if (l(this)) for (var e = 0; e < c.length; e++) x(b, c[e]);\n return a;\n }\n c = l(a);\n e = I.call(this, a);\n c && z(b, a);\n l(this) && x(b, a);\n return e;\n });\n r(Node.prototype, \"cloneNode\", function (a) {\n a = H.call(this, !!a);\n this.ownerDocument.__CE_hasRegistry ? A(b, a) : v(b, a);\n return a;\n });\n r(Node.prototype, \"removeChild\", function (a) {\n var c = l(a),\n e = K.call(this, a);\n c && z(b, a);\n return e;\n });\n r(Node.prototype, \"replaceChild\", function (a, c) {\n if (a instanceof DocumentFragment) {\n var e = Array.prototype.slice.apply(a.childNodes);\n a = L.call(this, a, c);\n if (l(this)) for (z(b, c), c = 0; c < e.length; c++) x(b, e[c]);\n return a;\n }\n e = l(a);\n var f = L.call(this, a, c),\n d = l(this);\n d && z(b, c);\n e && z(b, a);\n d && x(b, a);\n return f;\n });\n M && M.get ? a(Node.prototype, M) : ca(b, function (b) {\n a(b, {\n enumerable: !0,\n configurable: !0,\n get: function () {\n for (var a = [], b = 0; b < this.childNodes.length; b++) {\n var f = this.childNodes[b];\n f.nodeType !== Node.COMMENT_NODE && a.push(f.textContent);\n }\n return a.join(\"\");\n },\n set: function (a) {\n for (; this.firstChild;) K.call(this, this.firstChild);\n null != a && \"\" !== a && I.call(this, document.createTextNode(a));\n }\n });\n });\n }\n ;\n function Aa(a) {\n function b(b) {\n return function (e) {\n for (var c = [], d = 0; d < arguments.length; ++d) c[d] = arguments[d];\n d = [];\n for (var k = [], h = 0; h < c.length; h++) {\n var m = c[h];\n m instanceof Element && l(m) && k.push(m);\n if (m instanceof DocumentFragment) for (m = m.firstChild; m; m = m.nextSibling) d.push(m);else d.push(m);\n }\n b.apply(this, c);\n for (c = 0; c < k.length; c++) z(a, k[c]);\n if (l(this)) for (c = 0; c < d.length; c++) k = d[c], k instanceof Element && x(a, k);\n };\n }\n var d = Element.prototype;\n void 0 !== V && (d.before = b(V));\n void 0 !== V && (d.after = b(qa));\n void 0 !== ra && r(d, \"replaceWith\", function (b) {\n for (var e = [], c = 0; c < arguments.length; ++c) e[c] = arguments[c];\n c = [];\n for (var d = [], k = 0; k < e.length; k++) {\n var h = e[k];\n h instanceof Element && l(h) && d.push(h);\n if (h instanceof DocumentFragment) for (h = h.firstChild; h; h = h.nextSibling) c.push(h);else c.push(h);\n }\n k = l(this);\n ra.apply(this, e);\n for (e = 0; e < d.length; e++) z(a, d[e]);\n if (k) for (z(a, this), e = 0; e < c.length; e++) d = c[e], d instanceof Element && x(a, d);\n });\n void 0 !== sa && r(d, \"remove\", function () {\n var b = l(this);\n sa.call(this);\n b && z(a, this);\n });\n }\n ;\n function Ba() {\n function a(a, b) {\n Object.defineProperty(a, \"innerHTML\", {\n enumerable: b.enumerable,\n configurable: !0,\n get: b.get,\n set: function (a) {\n var e = this,\n d = void 0;\n l(this) && (d = [], p(this, function (a) {\n a !== e && d.push(a);\n }));\n b.set.call(this, a);\n if (d) for (var f = 0; f < d.length; f++) {\n var t = d[f];\n 1 === t.__CE_state && c.disconnectedCallback(t);\n }\n this.ownerDocument.__CE_hasRegistry ? A(c, this) : v(c, this);\n return a;\n }\n });\n }\n function b(a, b) {\n r(a, \"insertAdjacentElement\", function (a, e) {\n var d = l(e);\n a = b.call(this, a, e);\n d && z(c, e);\n l(a) && x(c, e);\n return a;\n });\n }\n function d(a, b) {\n function e(a, b) {\n for (var e = []; a !== b; a = a.nextSibling) e.push(a);\n for (b = 0; b < e.length; b++) A(c, e[b]);\n }\n r(a, \"insertAdjacentHTML\", function (a, c) {\n a = a.toLowerCase();\n if (\"beforebegin\" === a) {\n var d = this.previousSibling;\n b.call(this, a, c);\n e(d || this.parentNode.firstChild, this);\n } else if (\"afterbegin\" === a) d = this.firstChild, b.call(this, a, c), e(this.firstChild, d);else if (\"beforeend\" === a) d = this.lastChild, b.call(this, a, c), e(d || this.firstChild, null);else if (\"afterend\" === a) d = this.nextSibling, b.call(this, a, c), e(this.nextSibling, d);else throw new SyntaxError(\"The value provided (\" + String(a) + \") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.\");\n });\n }\n var c = X;\n N && r(Element.prototype, \"attachShadow\", function (a) {\n a = N.call(this, a);\n var b = c;\n if (b.b && !a.__CE_patched) {\n a.__CE_patched = !0;\n for (var e = 0; e < b.c.length; e++) b.c[e](a);\n }\n return this.__CE_shadowRoot = a;\n });\n O && O.get ? a(Element.prototype, O) : W && W.get ? a(HTMLElement.prototype, W) : da(c, function (b) {\n a(b, {\n enumerable: !0,\n configurable: !0,\n get: function () {\n return H.call(this, !0).innerHTML;\n },\n set: function (a) {\n var b = \"template\" === this.localName,\n c = b ? this.content : this,\n e = G.call(document, this.namespaceURI, this.localName);\n for (e.innerHTML = a; 0 < c.childNodes.length;) K.call(c, c.childNodes[0]);\n for (a = b ? e.content : e; 0 < a.childNodes.length;) I.call(c, a.childNodes[0]);\n }\n });\n });\n r(Element.prototype, \"setAttribute\", function (a, b) {\n if (1 !== this.__CE_state) return Q.call(this, a, b);\n var e = P.call(this, a);\n Q.call(this, a, b);\n b = P.call(this, a);\n c.attributeChangedCallback(this, a, e, b, null);\n });\n r(Element.prototype, \"setAttributeNS\", function (a, b, d) {\n if (1 !== this.__CE_state) return T.call(this, a, b, d);\n var e = S.call(this, a, b);\n T.call(this, a, b, d);\n d = S.call(this, a, b);\n c.attributeChangedCallback(this, b, e, d, a);\n });\n r(Element.prototype, \"removeAttribute\", function (a) {\n if (1 !== this.__CE_state) return R.call(this, a);\n var b = P.call(this, a);\n R.call(this, a);\n null !== b && c.attributeChangedCallback(this, a, b, null, null);\n });\n r(Element.prototype, \"removeAttributeNS\", function (a, b) {\n if (1 !== this.__CE_state) return U.call(this, a, b);\n var d = S.call(this, a, b);\n U.call(this, a, b);\n var e = S.call(this, a, b);\n d !== e && c.attributeChangedCallback(this, b, d, e, a);\n });\n ua ? b(HTMLElement.prototype, ua) : ma ? b(Element.prototype, ma) : console.warn(\"Custom Elements: `Element#insertAdjacentElement` was not patched.\");\n va ? d(HTMLElement.prototype, va) : na ? d(Element.prototype, na) : console.warn(\"Custom Elements: `Element#insertAdjacentHTML` was not patched.\");\n Y(c, Element.prototype, {\n h: oa,\n append: pa\n });\n Aa(c);\n }\n ;\n var Z = window.customElements;\n if (!Z || Z.forcePolyfill || \"function\" != typeof Z.define || \"function\" != typeof Z.get) {\n var X = new u();\n xa();\n ya();\n Y(X, DocumentFragment.prototype, {\n h: ka,\n append: la\n });\n za();\n Ba();\n document.__CE_hasRegistry = !0;\n var customElements = new E(X);\n Object.defineProperty(window, \"customElements\", {\n configurable: !0,\n enumerable: !0,\n value: customElements\n });\n }\n ;\n}).call(self);\n\n// Polyfill document.baseURI\n\"string\" !== typeof document.baseURI && Object.defineProperty(Document.prototype, \"baseURI\", {\n enumerable: !0,\n configurable: !0,\n get: function () {\n var a = document.querySelector(\"base\");\n return a && a.href ? a.href : document.URL;\n }\n});\n\n// Polyfill CustomEvent\n\"function\" !== typeof window.CustomEvent && (window.CustomEvent = function (c, a) {\n a = a || {\n bubbles: !1,\n cancelable: !1,\n detail: void 0\n };\n var b = document.createEvent(\"CustomEvent\");\n b.initCustomEvent(c, a.bubbles, a.cancelable, a.detail);\n return b;\n}, window.CustomEvent.prototype = window.Event.prototype);\n\n// Event.composedPath\n(function (b, c, d) {\n b.composedPath || (b.composedPath = function () {\n if (this.path) return this.path;\n var a = this.target;\n for (this.path = []; null !== a.parentNode;) this.path.push(a), a = a.parentNode;\n this.path.push(c, d);\n return this.path;\n });\n})(Event.prototype, document, window);\n\n/*!\nElement.closest and Element.matches\nhttps://github.com/jonathantneal/closest\nCreative Commons Zero v1.0 Universal\n*/\n(function (a) {\n \"function\" !== typeof a.matches && (a.matches = a.msMatchesSelector || a.mozMatchesSelector || a.webkitMatchesSelector || function (a) {\n a = (this.document || this.ownerDocument).querySelectorAll(a);\n for (var b = 0; a[b] && a[b] !== this;) ++b;\n return !!a[b];\n });\n \"function\" !== typeof a.closest && (a.closest = function (a) {\n for (var b = this; b && 1 === b.nodeType;) {\n if (b.matches(a)) return b;\n b = b.parentNode;\n }\n return null;\n });\n})(window.Element.prototype);\n\n/*!\nElement.getRootNode()\n*/\n(function (c) {\n function d(a) {\n a = b(a);\n return a && 11 === a.nodeType ? d(a.host) : a;\n }\n function b(a) {\n return a && a.parentNode ? b(a.parentNode) : a;\n }\n \"function\" !== typeof c.getRootNode && (c.getRootNode = function (a) {\n return a && a.composed ? d(this) : b(this);\n });\n})(Element.prototype);\n\n/*!\nElement.isConnected()\n*/\n(function (a) {\n \"isConnected\" in a || Object.defineProperty(a, \"isConnected\", {\n configurable: !0,\n enumerable: !0,\n get: function () {\n var a = this.getRootNode({\n composed: !0\n });\n return a && 9 === a.nodeType;\n }\n });\n})(Element.prototype);\n\n/*!\nElement.remove()\n*/\n(function (b) {\n b.forEach(function (a) {\n a.hasOwnProperty(\"remove\") || Object.defineProperty(a, \"remove\", {\n configurable: !0,\n enumerable: !0,\n writable: !0,\n value: function () {\n null !== this.parentNode && this.parentNode.removeChild(this);\n }\n });\n });\n})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);\n\n/*!\nElement.classList\n*/\n!function (e) {\n 'classList' in e || Object.defineProperty(e, \"classList\", {\n get: function () {\n var e = this,\n t = (e.getAttribute(\"class\") || \"\").replace(/^\\s+|\\s$/g, \"\").split(/\\s+/g);\n function n() {\n t.length > 0 ? e.setAttribute(\"class\", t.join(\" \")) : e.removeAttribute(\"class\");\n }\n return \"\" === t[0] && t.splice(0, 1), t.toggle = function (e, i) {\n void 0 !== i ? i ? t.add(e) : t.remove(e) : -1 !== t.indexOf(e) ? t.splice(t.indexOf(e), 1) : t.push(e), n();\n }, t.add = function () {\n for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++) -1 === t.indexOf(e[i]) && t.push(e[i]);\n n();\n }, t.remove = function () {\n for (var e = [].slice.call(arguments), i = 0, s = e.length; i < s; i++) -1 !== t.indexOf(e[i]) && t.splice(t.indexOf(e[i]), 1);\n n();\n }, t.item = function (e) {\n return t[e];\n }, t.contains = function (e) {\n return -1 !== t.indexOf(e);\n }, t.replace = function (e, i) {\n -1 !== t.indexOf(e) && t.splice(t.indexOf(e), 1, i), n();\n }, t.value = e.getAttribute(\"class\") || \"\", t;\n }\n });\n}(Element.prototype);\n\n/*!\nDOMTokenList\n*/\n(function (b) {\n try {\n document.body.classList.add();\n } catch (e) {\n var c = b.add,\n d = b.remove;\n b.add = function () {\n for (var a = 0; a < arguments.length; a++) c.call(this, arguments[a]);\n };\n b.remove = function () {\n for (var a = 0; a < arguments.length; a++) d.call(this, arguments[a]);\n };\n }\n})(DOMTokenList.prototype);","map":{"version":3,"names":["aa","Set","split","g","a","b","has","test","l","isConnected","__CE_isImportDocument","Document","parentNode","window","ShadowRoot","host","n","nextSibling","p","d","c","nodeType","Node","ELEMENT_NODE","e","f","localName","getAttribute","import","add","firstChild","__CE_shadowRoot","r","u","Map","ba","set","constructorFunction","ca","push","da","v","w","__CE_patched","length","x","__CE_state","connectedCallback","y","z","disconnectedCallback","A","i","__CE_hasRegistry","readyState","__CE_documentLoadHandled","addEventListener","delete","ownerDocument","defaultView","get","constructionStack","Error","pop","t","__CE_definition","attributeChangedCallback","observedAttributes","prototype","call","indexOf","B","document","MutationObserver","bind","observe","childList","subtree","C","disconnect","addedNodes","ea","Promise","D","E","j","o","Function","TypeError","SyntaxError","Object","k","h","m","q","adoptedCallback","fa","shift","reject","some","s","CustomElementRegistry","define","upgrade","whenDefined","polyfillWrapFlushCallback","F","createElement","G","createElementNS","ha","importNode","ia","prepend","ja","append","ka","DocumentFragment","la","H","cloneNode","I","appendChild","J","insertBefore","K","removeChild","L","replaceChild","M","getOwnPropertyDescriptor","N","Element","attachShadow","O","P","Q","setAttribute","R","removeAttribute","S","getAttributeNS","T","setAttributeNS","U","removeAttributeNS","ma","insertAdjacentElement","na","insertAdjacentHTML","oa","pa","V","before","qa","after","ra","replaceWith","sa","remove","ta","HTMLElement","W","ua","va","wa","xa","X","constructor","setPrototypeOf","defineProperty","writable","configurable","enumerable","value","Y","arguments","apply","ya","za","TEXT_NODE","childNodes","Array","slice","COMMENT_NODE","textContent","join","createTextNode","Aa","Ba","toLowerCase","previousSibling","lastChild","String","innerHTML","content","namespaceURI","console","warn","Z","customElements","forcePolyfill","self","baseURI","querySelector","href","URL","CustomEvent","bubbles","cancelable","detail","createEvent","initCustomEvent","Event","composedPath","path","target","matches","msMatchesSelector","mozMatchesSelector","webkitMatchesSelector","querySelectorAll","closest","getRootNode","composed","forEach","hasOwnProperty","CharacterData","DocumentType","replace","splice","toggle","item","contains","body","classList","DOMTokenList"],"sources":["F:/workspace/huinongbao-app/node_modules/@ionic/core/dist/esm/polyfills/dom.js"],"sourcesContent":["(function(){\n /*\n Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n Code distributed by Google as part of the polymer project is also\n subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n */\n 'use strict';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(\" \"));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\\-.0-9_a-z]*$/.test(a);return!b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;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))}\n function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}\n function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if(\"link\"===f&&\"import\"===e.getAttribute(\"rel\")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if(\"template\"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d)}c=c.firstChild?c.firstChild:n(a,c)}}function r(a,b,d){a[b]=d};function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d)}function ca(a,b){a.b=!0;a.c.push(b)}function da(a,b){a.b=!0;a.f.push(b)}function v(a,b){a.b&&p(b,function(b){return w(a,b)})}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d0?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