diff --git a/polyfill-lib/shady-css/scoping-shim.min.js b/polyfill-lib/shady-css/scoping-shim.min.js index d0c5ec7..b100b3d 100644 --- a/polyfill-lib/shady-css/scoping-shim.min.js +++ b/polyfill-lib/shady-css/scoping-shim.min.js @@ -9,25 +9,25 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ "use strict"; - var l, + var m, aa = "undefined" != typeof window && window === this ? this : "undefined" != typeof global && null != global ? global : this, ba = /calc\(/g; - function n(a, b) { + function p(a, b) { b = void 0 === b ? 0 : b; return a - .map(function(a) { - a: switch (a.kind) { + .map(function(c) { + a: switch (c.kind) { case "CssCalcExpression": - var c = b; - a = 0 === c ? "calc(" + n(a.children, c + 1) + ")" : "(" + n(a.children, c + 1) + ")"; + var e = b; + c = 0 === e ? "calc(" + p(c.children, e + 1) + ")" : "(" + p(c.children, e + 1) + ")"; break a; case "CssOtherExpression": - a = a.text; + c = c.text; break a; default: - a = ""; + c = ""; } - return a; + return c; }) .join(""); } @@ -39,21 +39,21 @@ g = e; } b = void 0 === b ? {s: 0, end: a.length} : b; - for (var e = b.s + -1, d = [], f = [], g = e, h = !1, k = !1; !(e >= a.length || e >= b.end); ) { - var m = a[++e], - q = 0; - if (k || "c" !== m || "a" !== a[e + ++q] || "l" !== a[e + ++q] || "c" !== a[e + ++q] || "(" !== a[e + ++q]) - "/" === m && "*" === a[e + 1] ? (k = !0) : "*" === m && "/" === a[e + 1] && (k = !1), h || ((g = e), (h = !0)), null != m && f.push(m); + for (var e = b.s + -1, d = [], f = [], g = e, h = !1, l = !1; !(e >= a.length || e >= b.end); ) { + var k = a[++e], + n = 0; + if (l || "c" !== k || "a" !== a[e + ++n] || "l" !== a[e + ++n] || "c" !== a[e + ++n] || "(" !== a[e + ++n]) + "/" === k && "*" === a[e + 1] ? (l = !0) : "*" === k && "/" === a[e + 1] && (l = !1), h || ((g = e), (h = !0)), null != k && f.push(k); else { c(); - for (m = 0; q < a.length; ) { - var sa = a[e + q++]; - if ("(" === sa) m++; - else if (")" === sa && (m--, 0 === m)) break; + for (k = 0; n < a.length; ) { + var r = a[e + n++]; + if ("(" === r) k++; + else if (")" === r && (k--, 0 === k)) break; } - q = {s: e, end: e + q}; - d.push({kind: "CssCalcExpression", span: q, text: a.slice(q.s, q.end), children: ca(a, {s: q.s + 5, end: q.end - 1})}); - g = e = q.end; + n = {s: e, end: e + n}; + d.push({kind: "CssCalcExpression", span: n, text: a.slice(n.s, n.end), children: ca(a, {s: n.s + 5, end: n.end - 1})}); + g = e = n.end; h = !0; } } @@ -68,7 +68,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI 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 p() { + function q() { this.end = this.start = 0; this.rules = this.parent = this.previous = null; this.cssText = this.parsedCssText = ""; @@ -76,48 +76,50 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN this.type = 0; this.parsedSelector = this.selector = this.keyframesName = ""; } - function r(a) { - a = a.replace(da, "").replace(ea, ""); - var b = fa, - c = a, - e = new p(); - e.start = 0; - e.end = c.length; - for (var d = e, f = 0, g = c.length; f < g; f++) - if ("{" === c[f]) { - d.rules || (d.rules = []); - var h = d, - k = h.rules[h.rules.length - 1] || null; - d = new p(); - d.start = f + 1; - d.parent = h; - d.previous = k; - h.rules.push(d); - } else "}" === c[f] && ((d.end = f + 1), (d = d.parent || e)); - return b(e, a); - } - function fa(a, b) { + function da(a) { + var b = (a = a.replace(ea, "").replace(fa, "")), + c = new q(); + c.start = 0; + c.end = b.length; + for (var e = c, d = 0, f = b.length; d < f; d++) + if ("{" === b[d]) { + e.rules || (e.rules = []); + var g = e, + h = g.rules[g.rules.length - 1] || null; + e = new q(); + e.start = d + 1; + e.parent = g; + e.previous = h; + g.rules.push(e); + } else "}" === b[d] && ((e.end = d + 1), (e = e.parent || c)); + return ha(c, a); + } + function ha(a, b) { var c = b.substring(a.start, a.end - 1); a.parsedCssText = a.cssText = c.trim(); a.parent && ((c = b.substring(a.previous ? a.previous.end : a.parent.start, a.start - 1)), - (c = ha(c)), - (c = c.replace(ia, " ")), + (c = ia(c)), + (c = c.replace(ja, " ")), (c = c.substring(c.lastIndexOf(";") + 1)), (c = a.parsedSelector = a.selector = c.trim()), (a.atRule = 0 === c.indexOf("@")), - a.atRule ? (0 === c.indexOf("@media") ? (a.type = ja) : c.match(ka) && ((a.type = t), (a.keyframesName = a.selector.split(ia).pop()))) : (a.type = 0 === c.indexOf("--") ? la : ma)); - if ((c = a.rules)) for (var e = 0, d = c.length, f = void 0; e < d && (f = c[e]); e++) fa(f, b); + a.atRule + ? 0 === c.indexOf("@media") + ? (a.type = ka) + : c.match(la) && ((a.type = ma), (a.keyframesName = a.selector.split(ja).pop())) + : (a.type = 0 === c.indexOf("--") ? na : oa)); + if ((c = a.rules)) for (var e = 0, d = c.length, f = void 0; e < d && (f = c[e]); e++) ha(f, b); return a; } - function ha(a) { - return a.replace(/\\([0-9a-f]{1,6})\s/gi, function(a, c) { - a = c; - for (c = 6 - a.length; c--; ) a = "0" + a; - return "\\" + a; + function ia(a) { + return a.replace(/\\([0-9a-f]{1,6})\s/gi, function(b, c) { + b = c; + for (c = 6 - b.length; c--; ) b = "0" + b; + return "\\" + b; }); } - function na(a, b, c) { + function pa(a, b, c) { c = void 0 === c ? "" : c; var e = ""; if (a.cssText || a.rules) { @@ -126,43 +128,55 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN if ((f = d)) (f = d[0]), (f = !(f && f.selector && 0 === f.selector.indexOf("--"))); if (f) { f = 0; - for (var g = d.length, h = void 0; f < g && (h = d[f]); f++) e = na(h, b, e); + for (var g = d.length, h = void 0; f < g && (h = d[f]); f++) e = pa(h, b, e); } else b ? (b = a.cssText) - : ((b = a.cssText), (b = b.replace(oa, "").replace(pa, "")), (b = b.replace(qa, "").replace(ra, "")), (e = b.match(ba)), null == e || 2 > e.length || ((b = ca(b)), (b = n(b)))), + : ((b = a.cssText), + (b = b.replace(qa, "").replace(ra, "")), + (b = b.replace(sa, "").replace(ta, "")), + (e = b.match(ba)), + null == e || 2 > e.length || ((b = ca(b)), (b = p(b)))), (e = b.trim()) && (e = " " + e + "\n"); } e && (a.selector && (c += a.selector + " {\n"), (c += e), a.selector && (c += "}\n\n")); return c; } - var ma = 1, - t = 7, - ja = 4, - la = 1e3, - da = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, - ea = /@import[^;]*;/gim, - oa = /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim, - pa = /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim, - qa = /@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim, - ra = /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim, - ka = /^@[^\s]*keyframes/, - ia = /\s+/g; - var u = !(window.ShadyDOM && window.ShadyDOM.inUse), - v; - function ta(a) { - v = a && a.shimcssproperties ? !1 : u || !(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/) || !window.CSS || !CSS.supports || !CSS.supports("box-shadow", "0 0 0 var(--foo)")); - } - var ua; - window.ShadyCSS && void 0 !== window.ShadyCSS.cssBuild && (ua = window.ShadyCSS.cssBuild); - var w = !(!window.ShadyCSS || !window.ShadyCSS.disableRuntime); + var oa = 1, + ma = 7, + ka = 4, + na = 1e3, + ea = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim, + fa = /@import[^;]*;/gim, + qa = /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim, + ra = /(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim, + sa = /@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim, + ta = /[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim, + la = /^@[^\s]*keyframes/, + ja = /\s+/g; + var t = !(window.ShadyDOM && window.ShadyDOM.inUse), + ua; + function va(a) { + ua = + a && a.shimcssproperties + ? !1 + : t || + !( + navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/) || + !window.CSS || + !CSS.supports || + !CSS.supports("box-shadow", "0 0 0 var(--foo)") + ); + } + var u; + window.ShadyCSS && void 0 !== window.ShadyCSS.cssBuild && (u = window.ShadyCSS.cssBuild); + var v = !(!window.ShadyCSS || !window.ShadyCSS.disableRuntime); window.ShadyCSS && void 0 !== window.ShadyCSS.nativeCss - ? (v = window.ShadyCSS.nativeCss) + ? (ua = window.ShadyCSS.nativeCss) : window.ShadyCSS - ? (ta(window.ShadyCSS), (window.ShadyCSS = void 0)) - : ta(window.WebComponents && window.WebComponents.flags); - var x = v, - va = ua; + ? (va(window.ShadyCSS), (window.ShadyCSS = void 0)) + : va(window.WebComponents && window.WebComponents.flags); + var w = ua; var y = /(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi, z = /(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi, wa = /(--[\w-]+)\s*([:,;)]|$)/gi, @@ -172,26 +186,26 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN var Aa = new Set(); function A(a, b) { if (!a) return ""; - "string" === typeof a && (a = r(a)); + "string" === typeof a && (a = da(a)); b && B(a, b); - return na(a, x); + return pa(a, w); } function C(a) { - !a.__cssRules && a.textContent && (a.__cssRules = r(a.textContent)); + !a.__cssRules && a.textContent && (a.__cssRules = da(a.textContent)); return a.__cssRules || null; } function Ba(a) { - return !!a.parent && a.parent.type === t; + return !!a.parent && a.parent.type === ma; } function B(a, b, c, e) { if (a) { var d = !1, f = a.type; - if (e && f === ja) { + if (e && f === ka) { var g = a.selector.match(ya); g && (window.matchMedia(g[1]).matches || (d = !0)); } - f === ma ? b(a) : c && f === t ? c(a) : f === la && (d = !0); + f === oa ? b(a) : c && f === ma ? c(a) : f === na && (d = !0); if ((a = a.rules) && !d) for (d = 0, f = a.length, g = void 0; d < f && (g = a[d]); d++) B(g, b, c, e); } } @@ -231,7 +245,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN return -1 === e ? b(c, d.trim(), "", a) : b(c, d.substring(0, e).trim(), d.substring(e + 1).trim(), a); } function E(a, b) { - u ? a.setAttribute("class", b) : window.ShadyDOM.nativeMethods.setAttribute.call(a, "class", b); + t ? a.setAttribute("class", b) : window.ShadyDOM.nativeMethods.setAttribute.call(a, "class", b); } var F = (window.ShadyDOM && window.ShadyDOM.wrap) || @@ -255,7 +269,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN return b; } function H(a) { - if (void 0 !== va) return va; + if (void 0 !== u) return u; if (void 0 === a.__cssBuild) { var b = a.getAttribute("css-build"); if (b) a.__cssBuild = b; @@ -279,12 +293,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } function Ia(a) { a = void 0 === a ? "" : a; - return "" !== a && x ? (u ? "shadow" === a : "shady" === a) : !1; + return "" !== a && w ? (t ? "shadow" === a : "shady" === a) : !1; } function I() {} function Ja(a, b) { - J(K, a, function(a) { - L(a, b || ""); + J(K, a, function(c) { + L(c, b || ""); }); } function J(a, b, c) { @@ -302,28 +316,28 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } } function Ka(a, b, c) { - J(K, a, function(a) { - L(a, b, !0); - L(a, c); + J(K, a, function(e) { + L(e, b, !0); + L(e, c); }); } function La(a, b) { - J(K, a, function(a) { - L(a, b || "", !0); + J(K, a, function(c) { + L(c, b || "", !0); }); } function M(a, b, c, e, d) { var f = K; d = void 0 === d ? "" : d; - "" === d && (u || "shady" === (void 0 === e ? "" : e) ? (d = A(b, c)) : ((a = G(a)), (d = Ma(f, b, a.is, a.u, c) + "\n\n"))); + "" === d && (t || "shady" === (void 0 === e ? "" : e) ? (d = A(b, c)) : ((a = G(a)), (d = Ma(f, b, a.is, a.u, c) + "\n\n"))); return d.trim(); } function Ma(a, b, c, e, d) { var f = Na(c, e); c = c ? "." + c : ""; - return A(b, function(b) { - b.c || ((b.selector = b.g = Oa(a, b, a.b, c, f)), (b.c = !0)); - d && d(b, c, f); + return A(b, function(g) { + g.c || ((g.selector = g.g = Oa(a, g, a.b, c, f)), (g.c = !0)); + d && d(g, c, f); }); } function Na(a, b) { @@ -336,13 +350,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN for (var g = f.length, h = void 0; b < g && (h = f[b]); b++) f[b] = c.call(a, h, e, d); } return f - .filter(function(a) { - return !!a; + .filter(function(l) { + return !!l; }) .join(","); } function Pa(a) { - return a.replace(Qa, function(a, c, e) { + return a.replace(Qa, function(b, c, e) { -1 < e.indexOf("+") ? (e = e.replace(/\+/g, "___")) : -1 < e.indexOf("___") && (e = e.replace(/___/g, "+")); return ":" + c + "(" + e + ")"; }); @@ -360,8 +374,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } function Ta(a, b) { var c = a.split("\ue000"); - return b.reduce(function(a, b, f) { - return a + b + c[f + 1]; + return b.reduce(function(e, d, f) { + return e + d + c[f + 1]; }, c[0]); } I.prototype.b = function(a, b, c) { @@ -369,8 +383,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN a = a.trim(); var d = Qa.test(a); d && - ((a = a.replace(Qa, function(a, b, c) { - return ":" + b + "(" + c.replace(/\s/g, "") + ")"; + ((a = a.replace(Qa, function(h, l, k) { + return ":" + l + "(" + k.replace(/\s/g, "") + ")"; })), (a = Pa(a))); var f = Sa.test(a); @@ -380,14 +394,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN g = g.matches; } a = a.replace(Ua, ":host $1"); - a = a.replace(Va, function(a, d, f) { - e || ((a = Wa(f, d, b, c)), (e = e || a.stop), (d = a.H), (f = a.value)); - return d + f; + a = a.replace(Va, function(h, l, k) { + e || ((h = Wa(k, l, b, c)), (e = e || h.stop), (l = h.H), (k = h.value)); + return l + k; }); f && (a = Ta(a, g)); d && (a = Pa(a)); - return (a = a.replace(Xa, function(a, b, c, d) { - return '[dir="' + c + '"] ' + b + d + ", " + b + '[dir="' + c + '"]' + d; + return (a = a.replace(Xa, function(h, l, k, n) { + return '[dir="' + k + '"] ' + l + n + ", " + l + '[dir="' + k + '"]' + n; })); }; function Wa(a, b, c, e) { @@ -398,8 +412,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN if (c) { var f = !0; c && - (a = a.replace($a, function(a, b) { - return " > " + b; + (a = a.replace($a, function(g, h) { + return " > " + h; })); } return {value: a, H: b, stop: f}; @@ -418,7 +432,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN var c = a.match(ab); return (c = (c && c[2].trim()) || "") ? c[0].match(bb) - ? a.replace(ab, function(a, c, f) { + ? a.replace(ab, function(e, d, f) { return b + f; }) : c.split(bb)[0] === b @@ -451,13 +465,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN Sa = /:(?:matches|any|-(?:webkit|moz)-any)/, K = new I(); function N(a, b, c, e, d) { - this.o = a || null; + this.l = a || null; this.b = b || null; this.A = c || []; this.i = null; this.cssBuild = d || ""; this.u = e || ""; - this.a = this.j = this.m = null; + this.a = this.j = this.o = null; } function O(a) { return a ? a.__styleInfo : null; @@ -466,32 +480,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN return (a.__styleInfo = b); } N.prototype.c = function() { - return this.o; + return this.l; }; N.prototype._getStyleRules = N.prototype.c; function eb(a) { - var b = this.matches || this.matchesSelector || this.mozMatchesSelector || this.msMatchesSelector || this.oMatchesSelector || this.webkitMatchesSelector; + var b = + this.matches || + this.matchesSelector || + this.mozMatchesSelector || + this.msMatchesSelector || + this.oMatchesSelector || + this.webkitMatchesSelector; return b && b.call(this, a); } - var fb = navigator.userAgent.match("Trident"); - function gb() {} - function hb(a) { + var fb = /:host\s*>\s*/, + gb = navigator.userAgent.match("Trident"); + function hb() {} + function ib(a) { var b = {}, c = [], e = 0; B( a, - function(a) { - P(a); - a.index = e++; - a = a.f.cssText; - for (var c; (c = wa.exec(a)); ) { - var d = c[1]; - ":" !== c[2] && (b[d] = !0); + function(f) { + P(f); + f.index = e++; + f = f.f.cssText; + for (var g; (g = wa.exec(f)); ) { + var h = g[1]; + ":" !== g[2] && (b[h] = !0); } }, - function(a) { - c.push(a); + function(f) { + c.push(f); } ); a.b = c; @@ -503,7 +524,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN if (!a.f) { var b = {}, c = {}; - Q(a, c) && ((b.l = c), (a.rules = null)); + Q(a, c) && ((b.m = c), (a.rules = null)); b.cssText = a.parsedCssText.replace(za, "").replace(y, ""); a.f = b; } @@ -511,7 +532,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN function Q(a, b) { var c = a.f; if (c) { - if (c.l) return Object.assign(b, c.l), !0; + if (c.m) return Object.assign(b, c.m), !0; } else { c = a.parsedCssText; for (var e; (a = y.exec(c)); ) { @@ -522,71 +543,75 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN return e; } } - function S(a, b, c) { + function R(a, b, c) { b && (b = 0 <= b.indexOf(";") - ? ib(a, b, c) - : Ga(b, function(b, d, f, g) { - if (!d) return b + g; - (d = S(a, c[d], c)) && "initial" !== d ? "apply-shim-inherit" === d && (d = "inherit") : (d = S(a, c[f] || f, c) || f); - return b + (d || "") + g; + ? jb(a, b, c) + : Ga(b, function(e, d, f, g) { + if (!d) return e + g; + (d = R(a, c[d], c)) && "initial" !== d ? "apply-shim-inherit" === d && (d = "inherit") : (d = R(a, c[f] || f, c) || f); + return e + (d || "") + g; })); return (b && b.trim()) || ""; } - function ib(a, b, c) { + function jb(a, b, c) { b = b.split(";"); for (var e = 0, d, f; e < b.length; e++) if ((d = b[e])) { z.lastIndex = 0; - if ((f = z.exec(d))) d = S(a, c[f[1]], c); + if ((f = z.exec(d))) d = R(a, c[f[1]], c); else if (((f = d.indexOf(":")), -1 !== f)) { var g = d.substring(f); g = g.trim(); - g = S(a, g, c) || g; + g = R(a, g, c) || g; d = d.substring(0, f) + g; } b[e] = d && d.lastIndexOf(";") === d.length - 1 ? d.slice(0, -1) : d || ""; } return b.join(";"); } - function jb(a, b) { + function kb(a, b) { var c = {}, e = []; B( a, - function(a) { - a.f || P(a); - var d = a.g || a.parsedSelector; - b && a.f.l && d && eb.call(b, d) && (Q(a, c), (a = a.index), (d = parseInt(a / 32, 10)), (e[d] = (e[d] || 0) | (1 << a % 32))); + function(d) { + d.f || P(d); + var f = d.g || d.parsedSelector; + b && d.f.m && f && eb.call(b, f) && (Q(d, c), (d = d.index), (f = parseInt(d / 32, 10)), (e[f] = (e[f] || 0) | (1 << d % 32))); }, null, !0 ); - return {l: c, key: e}; + return {m: c, key: e}; } - function kb(a, b, c, e) { + function lb(a, b, c, e) { b.f || P(b); - if (b.f.l) { + if (b.f.m) { var d = G(a); a = d.is; d = d.u; d = a ? Na(a, d) : "html"; - var f = b.parsedSelector, - g = ":host > *" === f || "html" === f, - h = 0 === f.indexOf(":host") && !g; + var f = b.parsedSelector; + var g = !!f.match(fb) || ("html" === d && -1 < f.indexOf("html")); + var h = 0 === f.indexOf(":host") && !g; "shady" === c && ((g = f === d + " > *." + d || -1 !== f.indexOf("html")), (h = !g && 0 === f.indexOf(d))); - if (g || h) (c = d), h && (b.g || (b.g = Oa(K, b, K.b, a ? "." + a : "", d)), (c = b.g || d)), e({B: c, L: h, U: g}); + if (g || h) + (c = d), + h && (b.g || (b.g = Oa(K, b, K.b, a ? "." + a : "", d)), (c = b.g || d)), + g && "html" === d && (c = b.g || b.v), + e({B: c, L: h, U: g}); } } - function lb(a, b, c) { + function mb(a, b, c) { var e = {}, d = {}; B( b, - function(b) { - kb(a, b, c, function(c) { - eb.call(a._element || a, c.B) && (c.L ? Q(b, e) : Q(b, d)); + function(f) { + lb(a, f, c, function(g) { + eb.call(a._element || a, g.B) && (g.L ? Q(f, e) : Q(f, d)); }); }, null, @@ -594,49 +619,49 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN ); return {N: d, K: e}; } - function mb(a, b, c, e) { + function nb(a, b, c, e) { var d = G(b), f = Na(d.is, d.u), g = new RegExp("(?:^|[^.#[:])" + (b.extends ? "\\" + f.slice(0, -1) + "\\]" : f) + "($|[.:[\\s>+~])"), h = O(b); - d = h.o; + d = h.l; h = h.cssBuild; - var k = nb(d, e); + var l = ob(d, e); return M( b, d, - function(b) { - var d = ""; - b.f || P(b); - b.f.cssText && (d = ib(a, b.f.cssText, c)); - b.cssText = d; - if (!u && !Ba(b) && b.cssText) { - var h = (d = b.cssText); - null == b.D && (b.D = xa.test(d)); - if (b.D) - if (null == b.v) { - b.v = []; - for (var m in k) (h = k[m]), (h = h(d)), d !== h && ((d = h), b.v.push(m)); + function(k) { + var n = ""; + k.f || P(k); + k.f.cssText && (n = jb(a, k.f.cssText, c)); + k.cssText = n; + if (!t && !Ba(k) && k.cssText) { + var r = (n = k.cssText); + null == k.D && (k.D = xa.test(n)); + if (k.D) + if (null == k.w) { + k.w = []; + for (var x in l) (r = l[x]), (r = r(n)), n !== r && ((n = r), k.w.push(x)); } else { - for (m = 0; m < b.v.length; ++m) (h = k[b.v[m]]), (d = h(d)); - h = d; + for (x = 0; x < k.w.length; ++x) (r = l[k.w[x]]), (n = r(n)); + r = n; } - b.cssText = h; - b.g = b.g || b.selector; - d = "." + e; - m = Ha(b.g); - h = 0; - for (var Fb = m.length, R = void 0; h < Fb && (R = m[h]); h++) m[h] = R.match(g) ? R.replace(f, d) : d + " " + R; - b.selector = m.join(","); + k.cssText = r; + k.g = k.g || k.selector; + n = "." + e; + x = Ha(k.g); + r = 0; + for (var Gb = x.length, U = void 0; r < Gb && (U = x[r]); r++) x[r] = U.match(g) ? U.replace(f, n) : n + " " + U; + k.selector = x.join(","); } }, h ); } - function nb(a, b) { + function ob(a, b) { a = a.b; var c = {}; - if (!u && a) + if (!t && a) for (var e = 0, d = a[e]; e < a.length; d = a[++e]) { var f = d, g = b; @@ -644,24 +669,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN f.a = f.keyframesName + "-" + g; f.g = f.g || f.selector; f.selector = f.g.replace(f.keyframesName, f.a); - c[d.keyframesName] = ob(d); + c[d.keyframesName] = pb(d); } return c; } - function ob(a) { + function pb(a) { return function(b) { return b.replace(a.h, a.a); }; } - function pb(a, b) { - var c = T, + function qb(a, b) { + var c = S, e = C(a); - a.textContent = A(e, function(a) { - var d = (a.cssText = a.parsedCssText); - a.f && a.f.cssText && ((d = d.replace(oa, "").replace(pa, "")), (a.cssText = ib(c, d, b))); + a.textContent = A(e, function(d) { + var f = (d.cssText = d.parsedCssText); + d.f && d.f.cssText && ((f = f.replace(qa, "").replace(ra, "")), (d.cssText = jb(c, f, b))); }); } - aa.Object.defineProperties(gb.prototype, { + aa.Object.defineProperties(hb.prototype, { a: { configurable: !0, enumerable: !0, @@ -670,35 +695,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } } }); - var T = new gb(); - var U = {}, + var S = new hb(); + var T = {}, V = window.customElements; - if (V && !u && !w) { - var qb = V.define; + if (V && !t && !v) { + var rb = V.define; V.define = function(a, b, c) { - U[a] || (U[a] = Ea(a)); - qb.call(V, a, b, c); + T[a] || (T[a] = Ea(a)); + rb.call(V, a, b, c); }; } - function rb() { + function sb() { this.cache = {}; } - rb.prototype.store = function(a, b, c, e) { + sb.prototype.store = function(a, b, c, e) { var d = this.cache[a] || []; - d.push({l: b, styleElement: c, j: e}); + d.push({m: b, styleElement: c, j: e}); 100 < d.length && d.shift(); this.cache[a] = d; }; - function sb() {} - var tb = new RegExp(K.a + "\\s*([^\\s]*)"); - function ub(a) { - return (a = (a.classList && a.classList.value ? a.classList.value : a.getAttribute("class") || "").match(tb)) ? a[1] : ""; - } + function tb() {} + var ub = new RegExp(K.a + "\\s*([^\\s]*)"); function vb(a) { + return (a = (a.classList && a.classList.value ? a.classList.value : a.getAttribute("class") || "").match(ub)) ? a[1] : ""; + } + function wb(a) { var b = F(a).getRootNode(); return b === a || b === a.ownerDocument ? "" : (a = b.host) ? G(a).is : ""; } - function wb(a) { + function xb(a) { for (var b = 0; b < a.length; b++) { var c = a[b]; if (c.target !== document.documentElement && c.target !== document.head) @@ -706,45 +731,48 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN var d = c.addedNodes[e]; if (d.nodeType === Node.ELEMENT_NODE) { var f = d.getRootNode(), - g = ub(d); + g = vb(d); if (g && f === d.ownerDocument && (("style" !== d.localName && "template" !== d.localName) || "" === H(d))) La(d, g); else if (f instanceof ShadowRoot) - for (f = vb(d), f !== g && Ka(d, g, f), d = window.ShadyDOM.nativeMethods.querySelectorAll.call(d, ":not(." + K.a + ")"), g = 0; g < d.length; g++) { + for ( + f = wb(d), f !== g && Ka(d, g, f), d = window.ShadyDOM.nativeMethods.querySelectorAll.call(d, ":not(." + K.a + ")"), g = 0; + g < d.length; + g++ + ) { f = d[g]; - var h = vb(f); + var h = wb(f); h && L(f, h); } } } } } - if (!(u || (window.ShadyDOM && window.ShadyDOM.handlesDynamicScoping))) { - var xb = new MutationObserver(wb), - yb = function(a) { - xb.observe(a, {childList: !0, subtree: !0}); + if (!(t || (window.ShadyDOM && window.ShadyDOM.handlesDynamicScoping))) { + var yb = new MutationObserver(xb), + zb = function(a) { + yb.observe(a, {childList: !0, subtree: !0}); }; - if (window.customElements && !window.customElements.polyfillWrapFlushCallback) yb(document); + if (window.customElements && !window.customElements.polyfillWrapFlushCallback) zb(document); else { - var zb = function() { - yb(document.body); + var Ab = function() { + zb(document.body); }; window.HTMLImports - ? window.HTMLImports.whenReady(zb) + ? window.HTMLImports.whenReady(Ab) : requestAnimationFrame(function() { if ("loading" === document.readyState) { var a = function() { - zb(); + Ab(); document.removeEventListener("readystatechange", a); }; document.addEventListener("readystatechange", a); - } else zb(); + } else Ab(); }); } - sb = function() { - wb(xb.takeRecords()); + tb = function() { + xb(yb.takeRecords()); }; } - var Ab = sb; var W = {}; var Bb = Promise.resolve(); function Cb(a) { @@ -765,34 +793,34 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN a._validating = !1; })); } - var Gb = {}, - Hb = new rb(); + var Fb = {}, + Hb = new sb(); function X() { this.C = {}; this.c = document.documentElement; - var a = new p(); + var a = new q(); a.rules = []; this.h = db(this.c, new N(a)); - this.w = !1; - this.b = this.a = null; + this.v = !1; + this.a = this.b = null; } - l = X.prototype; - l.flush = function() { - Ab(); + m = X.prototype; + m.flush = function() { + tb(); }; - l.J = function(a) { + m.J = function(a) { return C(a); }; - l.S = function(a) { + m.S = function(a) { return A(a); }; - l.prepareTemplate = function(a, b, c) { + m.prepareTemplate = function(a, b, c) { this.prepareTemplateDom(a, b); this.prepareTemplateStyles(a, b, c); }; - l.prepareTemplateStyles = function(a, b, c) { - if (!a._prepared && !w) { - u || U[b] || (U[b] = Ea(b)); + m.prepareTemplateStyles = function(a, b, c) { + if (!a._prepared && !v) { + t || T[b] || (T[b] = Ea(b)); a._prepared = !0; a.name = b; a.extends = c; @@ -801,43 +829,54 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN d = Ia(e); c = {is: b, extends: c}; for (var f = [], g = a.content.querySelectorAll("style"), h = 0; h < g.length; h++) { - var k = g[h]; - if (k.hasAttribute("shady-unscoped")) { - if (!u) { - var m = k.textContent; - Aa.has(m) || (Aa.add(m), (m = k.cloneNode(!0)), document.head.appendChild(m)); - k.parentNode.removeChild(k); + var l = g[h]; + if (l.hasAttribute("shady-unscoped")) { + if (!t) { + var k = l.textContent; + if (!Aa.has(k)) { + Aa.add(k); + var n = document.createElement("style"); + n.setAttribute("shady-unscoped", ""); + n.textContent = k; + document.head.appendChild(n); + } + l.parentNode.removeChild(l); } - } else f.push(k.textContent), k.parentNode.removeChild(k); + } else f.push(l.textContent), l.parentNode.removeChild(l); } - f = f.join("").trim() + (Gb[b] || ""); + f = f.join("").trim() + (Fb[b] || ""); Y(this); if (!d) { if ((g = !e)) (g = z.test(f) || y.test(f)), (z.lastIndex = 0), (y.lastIndex = 0); - h = r(f); - g && x && this.a && this.a.transformRules(h, b); + h = da(f); + g && w && this.b && this.b.transformRules(h, b); a._styleAst = h; } g = []; - x || (g = hb(a._styleAst)); - if (!g.length || x) (h = u ? a.content : null), (b = U[b] || null), (e = M(c, a._styleAst, null, e, d ? f : "")), (e = e.length ? Ca(e, c.is, h, b) : null), (a._style = e); + w || (g = ib(a._styleAst)); + if (!g.length || w) + (h = t ? a.content : null), + (b = T[b] || null), + (e = M(c, a._styleAst, null, e, d ? f : "")), + (e = e.length ? Ca(e, c.is, h, b) : null), + (a._style = e); a.a = g; } }; - l.M = function(a, b) { - Gb[b] = a.join(" "); + m.M = function(a, b) { + Fb[b] = a.join(" "); }; - l.prepareTemplateDom = function(a, b) { - if (!w) { + m.prepareTemplateDom = function(a, b) { + if (!v) { var c = H(a); - u || "shady" === c || a._domPrepared || ((a._domPrepared = !0), Ja(a.content, b)); + t || "shady" === c || a._domPrepared || ((a._domPrepared = !0), Ja(a.content, b)); } }; function Ib(a) { var b = G(a), c = b.is; b = b.u; - var e = U[c] || null, + var e = T[c] || null, d = W[c]; if (d) { c = d._styleAst; @@ -849,59 +888,84 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } } function Jb(a) { - !a.b && + !a.a && window.ShadyCSS && window.ShadyCSS.CustomStyleInterface && - ((a.b = window.ShadyCSS.CustomStyleInterface), - (a.b.transformCallback = function(b) { + ((a.a = window.ShadyCSS.CustomStyleInterface), + (a.a.transformCallback = function(b) { a.F(b); }), - (a.b.validateCallback = function() { + (a.a.validateCallback = function() { requestAnimationFrame(function() { - (a.b.enqueued || a.w) && a.flushCustomStyles(); + (a.a.enqueued || a.v) && a.flushCustomStyles(); }); })); } function Y(a) { - !a.a && window.ShadyCSS && window.ShadyCSS.ApplyShim && ((a.a = window.ShadyCSS.ApplyShim), (a.a.invalidCallback = Cb)); + if (!a.b && window.ShadyCSS && window.ShadyCSS.ApplyShim) { + a.b = window.ShadyCSS.ApplyShim; + a.b.invalidCallback = Cb; + var b = !0; + } else b = !1; Jb(a); + return b; } - l.flushCustomStyles = function() { - if (!w && (Y(this), this.b)) { - var a = this.b.processStyles(); - if (this.b.enqueued && !Ia(this.h.cssBuild)) { - if (x) { - if (!this.h.cssBuild) - for (var b = 0; b < a.length; b++) { - var c = this.b.getStyleForCustomStyle(a[b]); - if (c && x && this.a) { - var e = C(c); - Y(this); - this.a.transformRules(e); - c.textContent = A(e); + m.flushCustomStyles = function() { + if (!v) { + var a = Y(this); + if (this.a) { + var b = this.a.processStyles(); + if ((a || this.a.enqueued) && !Ia(this.h.cssBuild)) { + if (w) { + if (!this.h.cssBuild) + for (a = 0; a < b.length; a++) { + var c = this.a.getStyleForCustomStyle(b[a]); + if (c && w && this.b) { + var e = C(c); + Y(this); + this.b.transformRules(e); + c.textContent = A(e); + } } - } - } else { - Kb(this, this.c, this.h); - for (b = 0; b < a.length; b++) (c = this.b.getStyleForCustomStyle(a[b])) && pb(c, this.h.m); - this.w && this.styleDocument(); + } else { + Kb(this, b); + Lb(this, this.c, this.h); + for (a = 0; a < b.length; a++) (c = this.a.getStyleForCustomStyle(b[a])) && qb(c, this.h.o); + this.v && this.styleDocument(); + } + this.a.enqueued = !1; } - this.b.enqueued = !1; } } }; - l.styleElement = function(a, b) { - if (w) { + function Kb(a, b) { + b = b + .map(function(c) { + return a.a.getStyleForCustomStyle(c); + }) + .filter(function(c) { + return !!c; + }); + b.sort(function(c, e) { + c = e.compareDocumentPosition(c); + return c & Node.DOCUMENT_POSITION_FOLLOWING ? 1 : c & Node.DOCUMENT_POSITION_PRECEDING ? -1 : 0; + }); + a.h.l.rules = b.map(function(c) { + return C(c); + }); + } + m.styleElement = function(a, b) { + if (v) { if (b) { O(a) || db(a, new N(null)); var c = O(a); c.i = c.i || {}; Object.assign(c.i, b); - Lb(this, a, c); + Mb(this, a, c); } } else if ((c = O(a) || Ib(a))) - if ((a !== this.c && (this.w = !0), b && ((c.i = c.i || {}), Object.assign(c.i, b)), x)) Lb(this, a, c); - else if ((this.flush(), Kb(this, a, c), c.A && c.A.length)) { + if ((a !== this.c && (this.v = !0), b && ((c.i = c.i || {}), Object.assign(c.i, b)), w)) Mb(this, a, c); + else if ((this.flush(), Lb(this, a, c), c.A && c.A.length)) { b = G(a).is; var e; a: { @@ -911,8 +975,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN b: { var g = c.A; for (var h = 0; h < g.length; h++) { - var k = g[h]; - if (f.l[k] !== c.m[k]) { + var l = g[h]; + if (f.m[l] !== c.o[l]) { g = !1; break b; } @@ -931,26 +995,30 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN (f = e && e.j) || ((f = this.C[b] = (this.C[b] || 0) + 1), (f = b + "-" + f)); c.j = f; f = c.j; - h = T; - h = g ? g.textContent || "" : mb(h, a, c.m, f); - k = O(a); - var m = k.a; - m && !u && m !== g && (m._useCount--, 0 >= m._useCount && m.parentNode && m.parentNode.removeChild(m)); - u - ? k.a - ? ((k.a.textContent = h), (g = k.a)) - : h && (g = Ca(h, f, a.shadowRoot, k.b)) + h = S; + h = g ? g.textContent || "" : nb(h, a, c.o, f); + l = O(a); + var k = l.a; + k && !t && k !== g && (k._useCount--, 0 >= k._useCount && k.parentNode && k.parentNode.removeChild(k)); + t + ? l.a + ? ((l.a.textContent = h), (g = l.a)) + : h && (g = Ca(h, f, a.shadowRoot, l.b)) : g - ? g.parentNode || (fb && -1 < h.indexOf("@media") && (g.textContent = h), Da(g, null, k.b)) - : h && (g = Ca(h, f, null, k.b)); - g && ((g._useCount = g._useCount || 0), k.a != g && g._useCount++, (k.a = g)); + ? g.parentNode || (gb && -1 < h.indexOf("@media") && (g.textContent = h), Da(g, null, l.b)) + : h && (g = Ca(h, f, null, l.b)); + g && ((g._useCount = g._useCount || 0), l.a != g && g._useCount++, (l.a = g)); f = g; - u || - ((g = c.j), (k = h = a.getAttribute("class") || ""), d && (k = h.replace(new RegExp("\\s*x-scope\\s*" + d + "\\s*", "g"), " ")), (k += (k ? " " : "") + "x-scope " + g), h !== k && E(a, k)); - e || Hb.store(b, c.m, f, c.j); + t || + ((g = c.j), + (l = h = a.getAttribute("class") || ""), + d && (l = h.replace(new RegExp("\\s*x-scope\\s*" + d + "\\s*", "g"), " ")), + (l += (l ? " " : "") + "x-scope " + g), + h !== l && E(a, l)); + e || Hb.store(b, c.o, f, c.j); } }; - function Lb(a, b, c) { + function Mb(a, b, c) { var e = G(b).is; if (c.i) { var d = c.i, @@ -959,97 +1027,105 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN } d = W[e]; if (!((!d && b !== a.c) || (d && "" !== H(d))) && d && d._style && !Db(d)) { - if (Db(d) || d._applyShimValidatingVersion !== d._applyShimNextVersion) Y(a), a.a && a.a.transformRules(d._styleAst, e), (d._style.textContent = M(b, c.o)), Eb(d); - u && (a = b.shadowRoot) && (a = a.querySelector("style")) && (a.textContent = M(b, c.o)); - c.o = d._styleAst; + if (Db(d) || d._applyShimValidatingVersion !== d._applyShimNextVersion) + Y(a), a.b && a.b.transformRules(d._styleAst, e), (d._style.textContent = M(b, c.l)), Eb(d); + t && (a = b.shadowRoot) && (a = a.querySelector("style")) && (a.textContent = M(b, c.l)); + c.l = d._styleAst; } } - function Mb(a, b) { - return (b = F(b).getRootNode().host) ? (O(b) || Ib(b) ? b : Mb(a, b)) : a.c; + function Nb(a, b) { + return (b = F(b).getRootNode().host) ? (O(b) || Ib(b) ? b : Nb(a, b)) : a.c; } - function Kb(a, b, c) { - var e = Mb(a, b), + function Lb(a, b, c) { + var e = Nb(a, b), d = O(e), - f = d.m; - e === a.c || f || (Kb(a, e, d), (f = d.m)); + f = d.o; + e === a.c || f || (Lb(a, e, d), (f = d.o)); a = Object.create(f || null); - e = lb(b, c.o, c.cssBuild); - b = jb(d.o, b).l; + e = mb(b, c.l, c.cssBuild); + b = kb(d.l, b).m; Object.assign(a, e.K, b, e.N); b = c.i; for (var g in b) if ((d = b[g]) || 0 === d) a[g] = d; - g = T; + g = S; b = Object.getOwnPropertyNames(a); - for (d = 0; d < b.length; d++) (e = b[d]), (a[e] = S(g, a[e], a)); - c.m = a; + for (d = 0; d < b.length; d++) (e = b[d]), (a[e] = R(g, a[e], a)); + c.o = a; } - l.styleDocument = function(a) { + m.styleDocument = function(a) { this.styleSubtree(this.c, a); }; - l.styleSubtree = function(a, b) { + m.styleSubtree = function(a, b) { var c = F(a), - e = c.shadowRoot; - (e || a === this.c) && this.styleElement(a, b); - if ((a = e && (e.children || e.childNodes))) for (c = 0; c < a.length; c++) this.styleSubtree(a[c]); - else if ((c = c.children || c.childNodes)) for (a = 0; a < c.length; a++) this.styleSubtree(c[a]); + e = c.shadowRoot, + d = a === this.c; + (e || d) && this.styleElement(a, b); + if ((a = d ? c : e)) + for ( + a = Array.from(a.querySelectorAll("*")).filter(function(f) { + return F(f).shadowRoot; + }), + b = 0; + b < a.length; + b++ + ) + this.styleSubtree(a[b]); }; - l.F = function(a) { + m.F = function(a) { var b = this, c = H(a); c !== this.h.cssBuild && (this.h.cssBuild = c); if (!Ia(c)) { var e = C(a); - B(e, function(a) { - if (u) cb(a); + B(e, function(d) { + if (t) cb(d); else { - var d = K; - a.selector = a.parsedSelector; - cb(a); - a.selector = a.g = Oa(d, a, d.c, void 0, void 0); + var f = K; + d.selector = d.parsedSelector; + cb(d); + d.selector = d.g = Oa(f, d, f.c, void 0, void 0); } - x && "" === c && (Y(b), b.a && b.a.transformRule(a)); + w && "" === c && (Y(b), b.b && b.b.transformRule(d)); }); - x ? (a.textContent = A(e)) : this.h.o.rules.push(e); + w ? (a.textContent = A(e)) : this.h.l.rules.push(e); } }; - l.getComputedStyleValue = function(a, b) { + m.getComputedStyleValue = function(a, b) { var c; - x || (c = (O(a) || O(Mb(this, a))).m[b]); + w || (c = (O(a) || O(Nb(this, a))).o[b]); return (c = c || window.getComputedStyle(a).getPropertyValue(b)) ? c.trim() : ""; }; - l.R = function(a, b) { - var c = F(a).getRootNode(); - b = b ? b.split(/\s/) : []; - c = c.host && c.host.localName; - if (!c) { - var e = a.getAttribute("class"); - if (e) { - e = e.split(/\s/); - for (var d = 0; d < e.length; d++) - if (e[d] === K.a) { - c = e[d + 1]; - break; - } - } + m.R = function(a, b) { + var c = F(a).getRootNode(), + e; + b ? (e = ("string" === typeof b ? b : String(b)).split(/\s/)) : (e = []); + b = c.host && c.host.localName; + if (!b && (c = a.getAttribute("class"))) { + c = c.split(/\s/); + for (var d = 0; d < c.length; d++) + if (c[d] === K.a) { + b = c[d + 1]; + break; + } } - c && b.push(K.a, c); - x || ((c = O(a)) && c.j && b.push(T.a, c.j)); - E(a, b.join(" ")); + b && e.push(K.a, b); + w || ((b = O(a)) && b.j && e.push(S.a, b.j)); + E(a, e.join(" ")); }; - l.G = function(a) { + m.G = function(a) { return O(a); }; - l.P = function(a, b) { + m.P = function(a, b) { L(a, b); }; - l.T = function(a, b) { + m.T = function(a, b) { L(a, b, !0); }; - l.O = function(a) { - return vb(a); + m.O = function(a) { + return wb(a); }; - l.I = function(a) { - return ub(a); + m.I = function(a) { + return vb(a); }; X.prototype.flush = X.prototype.flush; X.prototype.prepareTemplate = X.prototype.prepareTemplate; @@ -1071,19 +1147,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN Object.defineProperties(X.prototype, { nativeShadow: { get: function() { - return u; + return t; } }, nativeCss: { get: function() { - return x; + return w; } } }); var Z = new X(), - Nb, - Ob; - window.ShadyCSS && ((Nb = window.ShadyCSS.ApplyShim), (Ob = window.ShadyCSS.CustomStyleInterface)); + Ob, + Pb; + window.ShadyCSS && ((Ob = window.ShadyCSS.ApplyShim), (Pb = window.ShadyCSS.CustomStyleInterface)); window.ShadyCSS = { ScopingShim: Z, prepareTemplate: function(a, b, c) { @@ -1115,13 +1191,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN getComputedStyleValue: function(a, b) { return Z.getComputedStyleValue(a, b); }, - nativeCss: x, - nativeShadow: u, - cssBuild: va, - disableRuntime: w + nativeCss: w, + nativeShadow: t, + cssBuild: u, + disableRuntime: v }; - Nb && (window.ShadyCSS.ApplyShim = Nb); - Ob && (window.ShadyCSS.CustomStyleInterface = Ob); + Ob && (window.ShadyCSS.ApplyShim = Ob); + Pb && (window.ShadyCSS.CustomStyleInterface = Pb); }.call(this)); //# sourceMappingURL=scoping-shim.min.js.map