Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webcomponents/webcomponentsjs

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webcomponents/webcomponentsjs - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

tests/ce-import-upgrade-async.html

5

externs/webcomponents.js

@@ -22,2 +22,5 @@ /**

var ShadyDOM;
var WebComponents;
var WebComponents;
/** @type !Function */
Promise.cast;

24

gulpfile.js

@@ -18,3 +18,2 @@ /**

const sourcemaps = require('gulp-sourcemaps');
const buffer = require('vinyl-buffer');
const rename = require('gulp-rename');

@@ -61,2 +60,5 @@ const rollup = require('rollup-stream');

rewrite_polyfills: false,
module_resolution: 'NODE',
entry_point: `entrypoints/${sourceName}-index.js`,
dependency_mode: 'STRICT',
externs: [

@@ -71,14 +73,10 @@ 'externs/webcomponents.js',

const rollupOptions = {
entry: `entrypoints/${sourceName}-index.js`,
format: 'iife',
moduleName: 'webcomponents',
sourceMap: true,
context: 'window'
};
return rollup(rollupOptions)
.pipe(source(`${sourceName}-index.js`, 'entrypoints'))
.pipe(buffer())
.pipe(sourcemaps.init({loadMaps: true}))
return gulp.src([
'entrypoints/*.js',
'src/*.js',
'node_modules/es6-promise/lib/es6-promise/**/*.js',
'node_modules/@webcomponents/**/*.js',
'!node_modules/@webcomponents/*/externs/*.js'
], {base: './'})
.pipe(sourcemaps.init())
.pipe(closure(closureOptions))

@@ -85,0 +83,0 @@ .pipe(sourcemaps.write('.'))

{
"name": "@webcomponents/webcomponentsjs",
"version": "1.0.17",
"version": "1.0.18",
"description": "Web Components Polyfills",

@@ -34,3 +34,3 @@ "main": "webcomponents-lite.js",

"@webcomponents/shadydom": "^1.0.6",
"@webcomponents/template": "^1.1.0",
"@webcomponents/template": "^1.2.0",
"@webcomponents/webcomponents-platform": "^1.0.0",

@@ -40,5 +40,7 @@ "babel-preset-minify": "^0.2.0",

"es6-promise": "^4.1.1",
"eslint": "^4.9.0",
"google-closure-compiler": "^20170910.0.0",
"eslint": "^4.10.0",
"google-closure-compiler": "^20171023.0.1",
"gulp": "^3.8.8",
"gulp-add-src": "^0.2.0",
"gulp-header": "^1.8.9",
"gulp-rename": "^1.2.2",

@@ -51,3 +53,3 @@ "gulp-sourcemaps": "^2.4.1",

"vinyl-source-stream": "^1.1.0",
"web-component-tester": "^6.3.0"
"web-component-tester": "^6.4.0"
},

@@ -54,0 +56,0 @@ "publishConfig": {

@@ -19,4 +19,9 @@ /**

window.Promise = ES6Promise;
// save catch function with a string name to prevent renaming and dead code eliminiation with closure
// save Promise API
ES6Promise.prototype['catch'] = ES6Promise.prototype.catch;
ES6Promise.prototype['then'] = ES6Promise.prototype.then;
ES6Promise['all'] = ES6Promise.all;
ES6Promise['race'] = ES6Promise.race;
ES6Promise['resolve'] = ES6Promise.resolve;
ES6Promise['reject'] = ES6Promise.reject;
}

@@ -9,2 +9,40 @@ (function(){/*

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';(function(b){function a(b,a){if("function"===typeof window.CustomEvent)return new CustomEvent(b,a);var c=document.createEvent("CustomEvent");c.initCustomEvent(b,!!a.bubbles,!!a.cancelable,a.detail);return c}function c(b){if(n)return b.ownerDocument!==document?b.ownerDocument:null;var a=b.__importDoc;if(!a&&b.parentNode){a=b.parentNode;if("function"===typeof a.closest)a=a.closest("link[rel=import]");else for(;!l(a)&&(a=a.parentNode););b.__importDoc=a}return a}function d(b){var a=document.querySelectorAll("link[rel=import]:not([import-dependency])"),
c=a.length;c?h(a,function(a){return k(a,function(){0===--c&&b()})}):b()}function e(b){function a(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",a),b())}document.addEventListener("readystatechange",a);a()}function f(b){e(function(){return d(function(){return b&&b()})})}function k(b,a){if(b.__loaded)a&&a();else if("script"===b.localName&&!b.src||"style"===b.localName&&!b.firstChild)b.__loaded=!0,a&&a();else{var c=function(e){b.removeEventListener(e.type,
c);b.__loaded=!0;a&&a()};b.addEventListener("load",c);H&&"style"===b.localName||b.addEventListener("error",c)}}function l(b){return b.nodeType===Node.ELEMENT_NODE&&"link"===b.localName&&"import"===b.rel}function g(){var b=this;this.a={};this.b=0;this.g=new MutationObserver(function(a){return b.L(a)});this.g.observe(document.head,{childList:!0,subtree:!0});this.c(document)}function h(b,a,c){var e=b?b.length:0,d=c?-1:1;for(c=c?e-1:0;c<e&&0<=c;c+=d)a(b[c],c)}var n="import"in document.createElement("link"),
I=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return I||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var ua=/(url\()([^)]*)(\))/g,va=/(@import[\s]+(?!url\())([^;]*)(;)/g,wa=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,r={J:function(b,a){b.href&&b.setAttribute("href",r.j(b.getAttribute("href"),a));b.src&&b.setAttribute("src",r.j(b.getAttribute("src"),a));if("style"===b.localName){var c=
r.D(b.textContent,a,ua);b.textContent=r.D(c,a,va)}},D:function(b,a,c){return b.replace(c,function(b,c,e,d){b=e.replace(/["']/g,"");a&&(b=r.j(b,a));return c+"'"+b+"'"+d})},j:function(b,a){if(void 0===r.l){r.l=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";r.l="http://a/c%20d"===c.href}catch(Qa){}}if(r.l)return(new URL(b,a)).href;c=r.G;c||(c=document.implementation.createHTMLDocument("temp"),r.G=c,c.w=c.createElement("base"),c.head.appendChild(c.w),c.v=c.createElement("a"));c.w.href=a;c.v.href=
b;return c.v.href||b}},U={async:!0,load:function(b,a,c){if(b)if(b.match(/^data:/)){b=b.split(",");var e=b[1];e=-1<b[0].indexOf(";base64")?atob(e):decodeURIComponent(e);a(e)}else{var d=new XMLHttpRequest;d.open("GET",b,U.async);d.onload=function(){var b=d.responseURL||d.getResponseHeader("Location");b&&0===b.indexOf("/")&&(b=(location.origin||location.protocol+"//"+location.host)+b);var e=d.response||d.responseText;304===d.status||0===d.status||200<=d.status&&300>d.status?a(e,b):c(e)};d.send()}else c("error: href must be specified")}},
H=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);g.prototype.c=function(b){var a=this;h(b.querySelectorAll("link[rel=import]"),function(b){return a.B(b)})};g.prototype.B=function(b){var a=this,c=b.href;if(void 0!==this.a[c]){var e=this.a[c];e&&e.__loaded&&(b.import=e,this.A(b))}else this.b++,this.a[c]="pending",U.load(c,function(b,e){b=a.M(b,e||c);a.a[c]=b;a.b--;a.c(b);a.C()},function(){a.a[c]=null;a.b--;a.C()})};g.prototype.M=function(b,a){if(!b)return document.createDocumentFragment();
H&&(b=b.replace(wa,function(b,a,c){return-1===b.indexOf("type=")?a+" type=import-disable "+c:b}));var c=document.createElement("template");c.innerHTML=b;if(c.content)b=c.content;else for(b=document.createDocumentFragment();c.firstChild;)b.appendChild(c.firstChild);if(c=b.querySelector("base"))a=r.j(c.getAttribute("href"),a),c.removeAttribute("href");var e=0;h(b.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),
function(b){k(b);r.J(b,a);b.setAttribute("import-dependency","");"script"===b.localName&&!b.src&&b.textContent&&(b.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(b.textContent+("\n//# sourceURL="+a+(e?"-"+e:"")+".js\n"))),b.textContent="",e++)});return b};g.prototype.C=function(){var b=this;if(!this.b){this.g.disconnect();this.flatten(document);var a=!1,c=!1,e=function(){c&&a&&(b.c(document),b.b||(b.g.observe(document.head,{childList:!0,subtree:!0}),b.K()))};this.P(function(){c=
!0;e()});this.N(function(){a=!0;e()})}};g.prototype.flatten=function(b){var a=this;h(b.querySelectorAll("link[rel=import]"),function(b){var c=a.a[b.href];(b.import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(a.a[b.href]=b,b.readyState="loading",b.import=b,a.flatten(c),b.appendChild(c))})};g.prototype.N=function(b){function a(d){if(d<e){var f=c[d],g=document.createElement("script");f.removeAttribute("import-dependency");h(f.attributes,function(b){return g.setAttribute(b.name,b.value)});I=g;f.parentNode.replaceChild(g,
f);k(g,function(){I=null;a(d+1)})}else b()}var c=document.querySelectorAll("script[import-dependency]"),e=c.length;a(0)};g.prototype.P=function(b){var a=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),e=a.length;if(e){var d=H&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");h(a,function(a){k(a,function(){a.removeAttribute("import-dependency");0===--e&&b()});if(d&&a.parentNode!==document.head){var f=document.createElement(a.localName);
f.__appliedElement=a;f.setAttribute("type","import-placeholder");a.parentNode.insertBefore(f,a.nextSibling);for(f=c(a);f&&c(f);)f=c(f);f.parentNode!==document.head&&(f=null);document.head.insertBefore(a,f);a.removeAttribute("type")}})}else b()};g.prototype.K=function(){var b=this;h(document.querySelectorAll("link[rel=import]"),function(a){return b.A(a)},!0)};g.prototype.A=function(b){b.__loaded||(b.__loaded=!0,b.import&&(b.import.readyState="complete"),b.dispatchEvent(a(b.import?"load":"error",{bubbles:!1,
cancelable:!1,detail:void 0})))};g.prototype.L=function(b){var a=this;h(b,function(b){return h(b.addedNodes,function(b){b&&b.nodeType===Node.ELEMENT_NODE&&(l(b)?a.B(b):a.c(b))})})};if(n){h(document.querySelectorAll("link[rel=import]"),function(b){b.import&&"loading"===b.import.readyState||(b.__loaded=!0)});var V=function(b){b=b.target;l(b)&&(b.__loaded=!0)};document.addEventListener("load",V,!0);document.addEventListener("error",V,!0)}else{var z=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");
Object.defineProperty((!z||z.configurable?Node:Element).prototype,"baseURI",{get:function(){var b=l(this)?this:c(this);return b?b.href:z&&z.get?z.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});e(function(){return new g})}f(function(){return document.dispatchEvent(a("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});b.useNative=n;b.whenReady=f;b.importForElement=c})(window.HTMLImports=window.HTMLImports||{});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 m(b){var a=aa.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function p(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&&b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))}
function q(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null}
function t(b,a,c){c=void 0===c?new Set:c;for(var d=b;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;a(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)t(d,a,c);d=q(b,e);continue}else if("template"===f){d=q(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)t(e,a,c)}d=d.firstChild?d.firstChild:q(b,d)}}function u(b,a,c){b[a]=c};function v(){this.a=new Map;this.g=new Map;this.c=[];this.b=!1}function ba(b,a,c){b.a.set(a,c);b.g.set(c.constructor,c)}function w(b,a){b.b=!0;b.c.push(a)}function x(b,a){b.b&&t(a,function(a){return y(b,a)})}function y(b,a){if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var c=0;c<b.c.length;c++)b.c[c](a)}}function A(b,a){var c=[];t(a,function(b){return c.push(b)});for(a=0;a<c.length;a++){var d=c[a];1===d.__CE_state?b.connectedCallback(d):B(b,d)}}
function C(b,a){var c=[];t(a,function(b){return c.push(b)});for(a=0;a<c.length;a++){var d=c[a];1===d.__CE_state&&b.disconnectedCallback(d)}}
function D(b,a,c){c=void 0===c?{}:c;var d=c.R||new Set,e=c.F||function(a){return B(b,a)},f=[];t(a,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var c=a.import;c instanceof Node&&"complete"===c.readyState?(c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0):a.addEventListener("load",function(){var c=a.import;if(!c.__CE_documentLoadHandled){c.__CE_documentLoadHandled=!0;c.__CE_isImportDocument=!0;c.__CE_hasRegistry=!0;var f=new Set(d);f.delete(c);D(b,c,{R:f,F:e})}})}else f.push(a)},
d);if(b.b)for(a=0;a<f.length;a++)y(b,f[a]);for(a=0;a<f.length;a++)e(f[a])}
function B(b,a){if(void 0===a.__CE_state){var c=b.a.get(a.localName);if(c){c.constructionStack.push(a);var d=c.constructor;try{try{if(new d!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{c.constructionStack.pop()}}catch(k){throw a.__CE_state=2,k;}a.__CE_state=1;a.__CE_definition=c;if(c.attributeChangedCallback)for(c=c.observedAttributes,d=0;d<c.length;d++){var e=c[d],f=a.getAttribute(e);null!==f&&b.attributeChangedCallback(a,e,null,f,null)}p(a)&&
b.connectedCallback(a)}}}v.prototype.connectedCallback=function(b){var a=b.__CE_definition;a.connectedCallback&&a.connectedCallback.call(b)};v.prototype.disconnectedCallback=function(b){var a=b.__CE_definition;a.disconnectedCallback&&a.disconnectedCallback.call(b)};v.prototype.attributeChangedCallback=function(b,a,c,d,e){var f=b.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(a)&&f.attributeChangedCallback.call(b,a,c,d,e)};function E(b,a){this.f=b;this.a=a;this.b=void 0;D(this.f,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.c.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function F(b){b.b&&b.b.disconnect()}E.prototype.c=function(b){var a=this.a.readyState;"interactive"!==a&&"complete"!==a||F(this);for(a=0;a<b.length;a++)for(var c=b[a].addedNodes,d=0;d<c.length;d++)D(this.f,c[d])};function ca(){var b=this;this.b=this.a=void 0;this.c=new Promise(function(a){b.b=a;b.a&&a(b.a)})}function da(b){if(b.a)throw Error("Already resolved.");b.a=void 0;b.b&&b.b(void 0)};function G(b){this.m=!1;this.f=b;this.u=new Map;this.o=function(b){return b()};this.h=!1;this.s=[];this.H=new E(b,document)}
G.prototype.define=function(b,a){var c=this;if(!(a instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!m(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(this.f.a.get(b))throw Error("A custom element with name '"+b+"' has already been defined.");if(this.m)throw Error("A custom element is already being defined.");this.m=!0;try{var d=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
return a},e=a.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=d("connectedCallback");var k=d("disconnectedCallback");var l=d("adoptedCallback");var g=d("attributeChangedCallback");var h=a.observedAttributes||[]}catch(n){return}finally{this.m=!1}a={localName:b,constructor:a,connectedCallback:f,disconnectedCallback:k,adoptedCallback:l,attributeChangedCallback:g,observedAttributes:h,constructionStack:[]};ba(this.f,b,a);this.s.push(a);
this.h||(this.h=!0,this.o(function(){return ea(c)}))};function ea(b){if(!1!==b.h){b.h=!1;for(var a=b.s,c=[],d=new Map,e=0;e<a.length;e++)d.set(a[e].localName,[]);D(b.f,document,{F:function(a){if(void 0===a.__CE_state){var e=a.localName,f=d.get(e);f?f.push(a):b.f.a.get(e)&&c.push(a)}}});for(e=0;e<c.length;e++)B(b.f,c[e]);for(;0<a.length;){var f=a.shift();e=f.localName;f=d.get(f.localName);for(var k=0;k<f.length;k++)B(b.f,f[k]);(e=b.u.get(e))&&da(e)}}}G.prototype.get=function(b){if(b=this.f.a.get(b))return b.constructor};
G.prototype.whenDefined=function(b){if(!m(b))return Promise.reject(new SyntaxError("'"+b+"' is not a valid custom element name."));var a=this.u.get(b);if(a)return a.c;a=new ca;this.u.set(b,a);this.f.a.get(b)&&!this.s.some(function(a){return a.localName===b})&&da(a);return a.c};G.prototype.O=function(b){F(this.H);var a=this.o;this.o=function(c){return b(function(){return a(c)})}};window.CustomElementRegistry=G;G.prototype.define=G.prototype.define;G.prototype.get=G.prototype.get;
G.prototype.whenDefined=G.prototype.whenDefined;G.prototype.polyfillWrapFlushCallback=G.prototype.O;var J=window.Document.prototype.createElement,fa=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,ma=window.Node.prototype.cloneNode,K=window.Node.prototype.appendChild,na=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,oa=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),pa=window.Element.prototype.attachShadow,N=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),O=window.Element.prototype.getAttribute,qa=window.Element.prototype.setAttribute,ra=window.Element.prototype.removeAttribute,P=window.Element.prototype.getAttributeNS,sa=window.Element.prototype.setAttributeNS,ta=window.Element.prototype.removeAttributeNS,xa=window.Element.prototype.insertAdjacentElement,ya=window.Element.prototype.prepend,za=window.Element.prototype.append,
Q=window.Element.prototype.before,Aa=window.Element.prototype.after,Ba=window.Element.prototype.replaceWith,Ca=window.Element.prototype.remove,Da=window.HTMLElement,R=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Ea=window.HTMLElement.prototype.insertAdjacentElement;var Fa=new function(){};function Ga(){var b=S;window.HTMLElement=function(){function a(){var a=this.constructor,d=b.g.get(a);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=J.call(document,d.localName),Object.setPrototypeOf(e,a.prototype),e.__CE_state=1,e.__CE_definition=d,y(b,e),e;d=e.length-1;var f=e[d];if(f===Fa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=Fa;Object.setPrototypeOf(f,a.prototype);y(b,f);return f}a.prototype=Da.prototype;return a}()};function T(b,a,c){function d(a){return function(c){for(var e=[],d=0;d<arguments.length;++d)e[d-0]=arguments[d];d=[];for(var f=[],h=0;h<e.length;h++){var n=e[h];n instanceof Element&&p(n)&&f.push(n);if(n instanceof DocumentFragment)for(n=n.firstChild;n;n=n.nextSibling)d.push(n);else d.push(n)}a.apply(this,e);for(e=0;e<f.length;e++)C(b,f[e]);if(p(this))for(e=0;e<d.length;e++)f=d[e],f instanceof Element&&A(b,f)}}void 0!==c.i&&(a.prepend=d(c.i));void 0!==c.append&&(a.append=d(c.append))};function Ha(){var b=S;u(Document.prototype,"createElement",function(a){if(this.__CE_hasRegistry){var c=b.a.get(a);if(c)return new c.constructor}a=J.call(this,a);y(b,a);return a});u(Document.prototype,"importNode",function(a,c){a=ha.call(this,a,c);this.__CE_hasRegistry?D(b,a):x(b,a);return a});u(Document.prototype,"createElementNS",function(a,c){if(this.__CE_hasRegistry&&(null===a||"http://www.w3.org/1999/xhtml"===a)){var d=b.a.get(c);if(d)return new d.constructor}a=fa.call(this,a,c);y(b,a);return a});
T(b,Document.prototype,{i:ia,append:ja})};function Ia(){var b=S;function a(a,d){Object.defineProperty(a,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,a);else{var c=void 0;if(this.firstChild){var e=this.childNodes,l=e.length;if(0<l&&p(this)){c=Array(l);for(var g=0;g<l;g++)c[g]=e[g]}}d.set.call(this,a);if(c)for(a=0;a<c.length;a++)C(b,c[a])}}})}u(Node.prototype,"insertBefore",function(a,d){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);
a=na.call(this,a,d);if(p(this))for(d=0;d<c.length;d++)A(b,c[d]);return a}c=p(a);d=na.call(this,a,d);c&&C(b,a);p(this)&&A(b,a);return d});u(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=K.call(this,a);if(p(this))for(var e=0;e<c.length;e++)A(b,c[e]);return a}c=p(a);e=K.call(this,a);c&&C(b,a);p(this)&&A(b,a);return e});u(Node.prototype,"cloneNode",function(a){a=ma.call(this,a);this.ownerDocument.__CE_hasRegistry?D(b,a):x(b,
a);return a});u(Node.prototype,"removeChild",function(a){var c=p(a),e=L.call(this,a);c&&C(b,a);return e});u(Node.prototype,"replaceChild",function(a,d){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=oa.call(this,a,d);if(p(this))for(C(b,d),d=0;d<c.length;d++)A(b,c[d]);return a}c=p(a);var f=oa.call(this,a,d),k=p(this);k&&C(b,d);c&&C(b,a);k&&A(b,a);return f});M&&M.get?a(Node.prototype,M):w(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var b=
[],a=0;a<this.childNodes.length;a++)b.push(this.childNodes[a].textContent);return b.join("")},set:function(b){for(;this.firstChild;)L.call(this,this.firstChild);K.call(this,document.createTextNode(b))}})})};function Ja(b){var a=Element.prototype;function c(a){return function(c){for(var e=[],d=0;d<arguments.length;++d)e[d-0]=arguments[d];d=[];for(var l=[],g=0;g<e.length;g++){var h=e[g];h instanceof Element&&p(h)&&l.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)d.push(h);else d.push(h)}a.apply(this,e);for(e=0;e<l.length;e++)C(b,l[e]);if(p(this))for(e=0;e<d.length;e++)l=d[e],l instanceof Element&&A(b,l)}}void 0!==Q&&(a.before=c(Q));void 0!==Q&&(a.after=c(Aa));void 0!==Ba&&
u(a,"replaceWith",function(a){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=[];for(var k=[],l=0;l<c.length;l++){var g=c[l];g instanceof Element&&p(g)&&k.push(g);if(g instanceof DocumentFragment)for(g=g.firstChild;g;g=g.nextSibling)d.push(g);else d.push(g)}l=p(this);Ba.apply(this,c);for(c=0;c<k.length;c++)C(b,k[c]);if(l)for(C(b,this),c=0;c<d.length;c++)k=d[c],k instanceof Element&&A(b,k)});void 0!==Ca&&u(a,"remove",function(){var a=p(this);Ca.call(this);a&&C(b,this)})};function Ka(){var b=S;function a(a,c){Object.defineProperty(a,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){var e=this,d=void 0;p(this)&&(d=[],t(this,function(b){b!==e&&d.push(b)}));c.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var k=d[f];1===k.__CE_state&&b.disconnectedCallback(k)}this.ownerDocument.__CE_hasRegistry?D(b,this):x(b,this);return a}})}function c(a,c){u(a,"insertAdjacentElement",function(a,e){var d=p(e);a=c.call(this,a,e);d&&C(b,e);p(a)&&A(b,e);
return a})}pa&&u(Element.prototype,"attachShadow",function(b){return this.__CE_shadowRoot=b=pa.call(this,b)});if(N&&N.get)a(Element.prototype,N);else if(R&&R.get)a(HTMLElement.prototype,R);else{var d=J.call(document,"div");w(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return ma.call(this,!0).innerHTML},set:function(b){var a="template"===this.localName?this.content:this;for(d.innerHTML=b;0<a.childNodes.length;)L.call(a,a.childNodes[0]);for(;0<d.childNodes.length;)K.call(a,d.childNodes[0])}})})}u(Element.prototype,
"setAttribute",function(a,c){if(1!==this.__CE_state)return qa.call(this,a,c);var d=O.call(this,a);qa.call(this,a,c);c=O.call(this,a);b.attributeChangedCallback(this,a,d,c,null)});u(Element.prototype,"setAttributeNS",function(a,c,d){if(1!==this.__CE_state)return sa.call(this,a,c,d);var e=P.call(this,a,c);sa.call(this,a,c,d);d=P.call(this,a,c);b.attributeChangedCallback(this,c,e,d,a)});u(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return ra.call(this,a);var c=O.call(this,
a);ra.call(this,a);null!==c&&b.attributeChangedCallback(this,a,c,null,null)});u(Element.prototype,"removeAttributeNS",function(a,c){if(1!==this.__CE_state)return ta.call(this,a,c);var d=P.call(this,a,c);ta.call(this,a,c);var e=P.call(this,a,c);d!==e&&b.attributeChangedCallback(this,c,d,e,a)});Ea?c(HTMLElement.prototype,Ea):xa?c(Element.prototype,xa):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");T(b,Element.prototype,{i:ya,append:za});Ja(b)};var W=window.customElements;if(!W||W.forcePolyfill||"function"!=typeof W.define||"function"!=typeof W.get){var S=new v;Ga();Ha();T(S,DocumentFragment.prototype,{i:ka,append:la});Ia();Ka();document.__CE_hasRegistry=!0;var customElements=new G(S);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements})};/*

@@ -17,2 +55,5 @@ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var X=window.customElements,Y=window.HTMLImports,La=window.HTMLTemplateElement;window.WebComponents=window.WebComponents||{};if(X&&X.polyfillWrapFlushCallback){var Z,Ma=function(){if(Z){La.I&&La.I(window.document);var b=Z;Z=null;b();return!0}},Na=Y.whenReady;X.polyfillWrapFlushCallback(function(b){Z=b;Na(Ma)});Y.whenReady=function(b){Na(function(){Ma()?Y.whenReady(b):b()})}}
Y.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var Oa=document.createElement("style");Oa.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Pa=document.querySelector("head");Pa.insertBefore(Oa,Pa.firstChild);/*

@@ -26,47 +67,4 @@ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.

*/
'use strict';(function(){function ca(b){function a(a,d){Object.defineProperty(a,"innerHTML",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(a){var e=this,c=void 0;g(this)&&(c=[],w(this,function(b){b!==e&&c.push(b)}));d.set.call(this,a);if(c)for(var v=0;v<c.length;v++){var f=c[v];1===f.__CE_state&&b.disconnectedCallback(f)}this.ownerDocument.__CE_hasRegistry?b.f(this):b.l(this);return a}})}function d(a,d){m(a,"insertAdjacentElement",function(a,e){var c=g(e);a=d.call(this,a,e);c&&b.a(e);
g(a)&&b.b(e);return a})}M&&m(Element.prototype,"attachShadow",function(b){return this.__CE_shadowRoot=b=M.call(this,b)});if(D&&D.get)a(Element.prototype,D);else if(E&&E.get)a(HTMLElement.prototype,E);else{var c=F.call(document,"div");b.v(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return N.call(this,!0).innerHTML},set:function(b){var a="template"===this.localName?this.content:this;for(c.innerHTML=b;0<a.childNodes.length;)G.call(a,a.childNodes[0]);for(;0<c.childNodes.length;)y.call(a,
c.childNodes[0])}})})}m(Element.prototype,"setAttribute",function(a,d){if(1!==this.__CE_state)return O.call(this,a,d);var e=H.call(this,a);O.call(this,a,d);d=H.call(this,a);b.attributeChangedCallback(this,a,e,d,null)});m(Element.prototype,"setAttributeNS",function(a,d,c){if(1!==this.__CE_state)return P.call(this,a,d,c);var e=z.call(this,a,d);P.call(this,a,d,c);c=z.call(this,a,d);b.attributeChangedCallback(this,d,e,c,a)});m(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return Q.call(this,
a);var d=H.call(this,a);Q.call(this,a);null!==d&&b.attributeChangedCallback(this,a,d,null,null)});m(Element.prototype,"removeAttributeNS",function(a,d){if(1!==this.__CE_state)return R.call(this,a,d);var c=z.call(this,a,d);R.call(this,a,d);var e=z.call(this,a,d);c!==e&&b.attributeChangedCallback(this,d,c,e,a)});S?d(HTMLElement.prototype,S):T?d(Element.prototype,T):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");I(b,Element.prototype,{s:da,append:ea});fa(b,{A:ha,H:ia,
replaceWith:ja,remove:ka})}function fa(b,a){var d=Element.prototype;function c(a){return function(d){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=[];for(var f=[],h=0;h<c.length;h++){var l=c[h];l instanceof Element&&g(l)&&f.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l);else e.push(l)}a.apply(this,c);for(c=0;c<f.length;c++)b.a(f[c]);if(g(this))for(c=0;c<e.length;c++)f=e[c],f instanceof Element&&b.b(f)}}void 0!==a.A&&(d.before=c(a.A));void 0!==
a.A&&(d.after=c(a.H));void 0!==a.replaceWith&&m(d,"replaceWith",function(d){for(var c=[],e=0;e<arguments.length;++e)c[e-0]=arguments[e];e=[];for(var n=[],k=0;k<c.length;k++){var h=c[k];h instanceof Element&&g(h)&&n.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)e.push(h);else e.push(h)}k=g(this);a.replaceWith.apply(this,c);for(c=0;c<n.length;c++)b.a(n[c]);if(k)for(b.a(this),c=0;c<e.length;c++)n=e[c],n instanceof Element&&b.b(n)});void 0!==a.remove&&m(d,"remove",function(){var d=
g(this);a.remove.call(this);d&&b.a(this)})}function la(b){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else{var d=void 0;if(this.firstChild){var e=this.childNodes,n=e.length;if(0<n&&g(this)){d=Array(n);for(var k=0;k<n;k++)d[k]=e[k]}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)b.a(d[a])}}})}m(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var d=
Array.prototype.slice.apply(a.childNodes);a=U.call(this,a,c);if(g(this))for(c=0;c<d.length;c++)b.b(d[c]);return a}d=g(a);c=U.call(this,a,c);d&&b.a(a);g(this)&&b.b(a);return c});m(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=y.call(this,a);if(g(this))for(var d=0;d<c.length;d++)b.b(c[d]);return a}c=g(a);d=y.call(this,a);c&&b.a(a);g(this)&&b.b(a);return d});m(Node.prototype,"cloneNode",function(a){a=N.call(this,a);this.ownerDocument.__CE_hasRegistry?
b.f(a):b.l(a);return a});m(Node.prototype,"removeChild",function(a){var c=g(a),d=G.call(this,a);c&&b.a(a);return d});m(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var d=Array.prototype.slice.apply(a.childNodes);a=V.call(this,a,c);if(g(this))for(b.a(c),c=0;c<d.length;c++)b.b(d[c]);return a}d=g(a);var f=V.call(this,a,c),v=g(this);v&&b.a(c);d&&b.a(a);v&&b.b(a);return f});J&&J.get?a(Node.prototype,J):b.v(function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=
[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)G.call(this,this.firstChild);y.call(this,document.createTextNode(a))}})})}function ma(b){m(Document.prototype,"createElement",function(a){if(this.__CE_hasRegistry){var d=b.c(a);if(d)return new d.constructor}a=F.call(this,a);b.g(a);return a});m(Document.prototype,"importNode",function(a,d){a=na.call(this,a,d);this.__CE_hasRegistry?b.f(a):b.l(a);return a});m(Document.prototype,
"createElementNS",function(a,d){if(this.__CE_hasRegistry&&(null===a||"http://www.w3.org/1999/xhtml"===a)){var c=b.c(d);if(c)return new c.constructor}a=oa.call(this,a,d);b.g(a);return a});I(b,Document.prototype,{s:pa,append:qa})}function I(b,a,d){function c(a){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];e=[];for(var f=[],h=0;h<d.length;h++){var l=d[h];l instanceof Element&&g(l)&&f.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)e.push(l);
else e.push(l)}a.apply(this,d);for(d=0;d<f.length;d++)b.a(f[d]);if(g(this))for(d=0;d<e.length;d++)f=e[d],f instanceof Element&&b.b(f)}}void 0!==d.s&&(a.prepend=c(d.s));void 0!==d.append&&(a.append=c(d.append))}function ra(b){window.HTMLElement=function(){function a(){var a=this.constructor,c=b.K(a);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,
a.prototype),e.__CE_state=1,e.__CE_definition=c,b.g(e),e;c=e.length-1;var f=e[c];if(f===W)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");e[c]=W;Object.setPrototypeOf(f,a.prototype);b.g(f);return f}a.prototype=sa.prototype;return a}()}function p(b){this.c=!1;this.a=b;this.h=new Map;this.f=function(a){return a()};this.b=!1;this.g=[];this.i=new K(b,document)}function X(){var b=this;this.b=this.a=void 0;this.f=new Promise(function(a){b.b=
a;b.a&&a(b.a)})}function K(b,a){this.c=b;this.a=a;this.b=void 0;this.c.f(this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.g.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function q(){this.o=new Map;this.m=new Map;this.j=[];this.h=!1}function Y(b){var a=ta.has(b);b=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(b);return!a&&b}function g(b){var a=b.isConnected;if(void 0!==a)return a;for(;b&&!(b.__CE_isImportDocument||b instanceof Document);)b=b.parentNode||(window.ShadowRoot&&
b instanceof ShadowRoot?b.host:void 0);return!(!b||!(b.__CE_isImportDocument||b instanceof Document))}function L(b,a){for(;a&&a!==b&&!a.nextSibling;)a=a.parentNode;return a&&a!==b?a.nextSibling:null}function w(b,a,d){d=d?d:new Set;for(var c=b;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;a(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)w(c,a,d);c=L(b,e);continue}else if("template"===f){c=
L(b,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)w(e,a,d)}c=c.firstChild?c.firstChild:L(b,c)}}function m(b,a,d){b[a]=d}(function(b){function a(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function d(a){if(l)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=
b.closest("link[rel=import]");else for(;!n(b)&&(b=b.parentNode););a.__importDoc=b}return b}function c(a){var b=document.querySelectorAll("link[rel=import]:not([import-dependency])"),c=b.length;c?h(b,function(b){return v(b,function(){0===--c&&a()})}):a()}function e(a){function b(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",b),a())}document.addEventListener("readystatechange",b);b()}function f(a){e(function(){return c(function(){return a&&a()})})}
function v(a,b){if(a.__loaded)b&&b();else if("script"===a.localName&&!a.src||"style"===a.localName&&!a.firstChild)a.__loaded=!0,b&&b();else{var c=function(d){a.removeEventListener(d.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);r&&"style"===a.localName||a.addEventListener("error",c)}}function n(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.a={};this.b=0;this.f=new MutationObserver(function(b){return a.l(b)});this.f.observe(document.head,
{childList:!0,subtree:!0});this.c(document)}function h(a,b,c){var d=a?a.length:0,e=c?-1:1;for(c=c?d-1:0;c<d&&0<=c;c+=e)b(a[c],c)}var l="import"in document.createElement("link"),g=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return g||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var m=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,q=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,
u={J:function(a,b){a.href&&a.setAttribute("href",u.u(a.getAttribute("href"),b));a.src&&a.setAttribute("src",u.u(a.getAttribute("src"),b));if("style"===a.localName){var c=u.D(a.textContent,b,m);a.textContent=u.D(c,b,p)}},D:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=u.u(a,b));return c+"'"+a+"'"+e})},u:function(a,b){if(void 0===u.w){u.w=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";u.w="http://a/c%20d"===c.href}catch(ua){}}if(u.w)return(new URL(a,b)).href;
c=u.G;c||(c=document.implementation.createHTMLDocument("temp"),u.G=c,c.C=c.createElement("base"),c.head.appendChild(c.C),c.B=c.createElement("a"));c.C.href=b;c.B.href=a;return c.B.href||a}},t={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,t.async);e.onload=function(){var a=e.responseURL||e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||
location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},r=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);k.prototype.c=function(a){var b=this;h(a.querySelectorAll("link[rel=import]"),function(a){return b.h(a)})};k.prototype.h=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.import=d,this.g(a))}else this.b++,
this.a[c]="pending",t.load(c,function(a,d){a=b.m(a,d||c);b.a[c]=a;b.b--;b.c(a);b.i()},function(){b.a[c]=null;b.b--;b.i()})};k.prototype.m=function(a,b){if(!a)return document.createDocumentFragment();r&&(a=a.replace(q,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=u.u(c.getAttribute("href"),
b),c.removeAttribute("href");var d=0;h(a.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(a){v(a);u.J(a,b);a.setAttribute("import-dependency","");"script"===a.localName&&!a.src&&a.textContent&&(a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+
b+(d?"-"+d:"")+".js\n"))),a.textContent="",d++)});return a};k.prototype.i=function(){var a=this;if(!this.b){this.f.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.c(document),a.b||(a.f.observe(document.head,{childList:!0,subtree:!0}),a.j()))};this.v(function(){c=!0;d()});this.o(function(){b=!0;d()})}};k.prototype.flatten=function(a){var b=this;h(a.querySelectorAll("link[rel=import]"),function(a){var c=b.a[a.href];(a.import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=
a,a.readyState="loading",a.import=a,b.flatten(c),a.appendChild(c))})};k.prototype.o=function(a){function b(e){if(e<d){var f=c[e],k=document.createElement("script");f.removeAttribute("import-dependency");h(f.attributes,function(a){return k.setAttribute(a.name,a.value)});g=k;f.parentNode.replaceChild(k,f);v(k,function(){g=null;b(e+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};k.prototype.v=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),
c=b.length;if(c){var e=r&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");h(b,function(b){v(b,function(){b.removeAttribute("import-dependency");0===--c&&a()});if(e&&b.parentNode!==document.head){var f=document.createElement(b.localName);f.__appliedElement=b;f.setAttribute("type","import-placeholder");b.parentNode.insertBefore(f,b.nextSibling);for(f=d(b);f&&d(f);)f=d(f);f.parentNode!==document.head&&(f=null);document.head.insertBefore(b,f);b.removeAttribute("type")}})}else a()};
k.prototype.j=function(){var a=this;h(document.querySelectorAll("link[rel=import]"),function(b){return a.g(b)},!0)};k.prototype.g=function(b){b.__loaded||(b.__loaded=!0,b.import&&(b.import.readyState="complete"),b.dispatchEvent(a(b.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.l=function(a){var b=this;h(a,function(a){return h(a.addedNodes,function(a){a&&a.nodeType===Node.ELEMENT_NODE&&(n(a)?b.h(a):b.c(a))})})};if(l){h(document.querySelectorAll("link[rel=import]"),
function(a){a.import&&"loading"===a.import.readyState||(a.__loaded=!0)});var w=function(a){a=a.target;n(a)&&(a.__loaded=!0)};document.addEventListener("load",w,!0);document.addEventListener("error",w,!0)}else{var x=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!x||x.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=n(this)?this:d(this);return a?a.href:x&&x.get?x.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,
enumerable:!0});e(function(){return new k})}f(function(){return document.dispatchEvent(a("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});b.useNative=l;b.whenReady=f;b.importForElement=d})(window.HTMLImports=window.HTMLImports||{});var ta=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));q.prototype.L=function(b,a){this.o.set(b,a);this.m.set(a.constructor,a)};q.prototype.c=function(b){return this.o.get(b)};
q.prototype.K=function(b){return this.m.get(b)};q.prototype.v=function(b){this.h=!0;this.j.push(b)};q.prototype.l=function(b){var a=this;this.h&&w(b,function(b){return a.g(b)})};q.prototype.g=function(b){if(this.h&&!b.__CE_patched){b.__CE_patched=!0;for(var a=0;a<this.j.length;a++)this.j[a](b)}};q.prototype.b=function(b){var a=[];w(b,function(b){return a.push(b)});for(b=0;b<a.length;b++){var d=a[b];1===d.__CE_state?this.connectedCallback(d):this.i(d)}};q.prototype.a=function(b){var a=[];w(b,function(b){return a.push(b)});
for(b=0;b<a.length;b++){var d=a[b];1===d.__CE_state&&this.disconnectedCallback(d)}};q.prototype.f=function(b,a){var d=this;a=a?a:{};var c=a.M||new Set,e=a.F||function(a){return d.i(a)},f=[];w(b,function(a){if("link"===a.localName&&"import"===a.getAttribute("rel")){var b=a.import;b instanceof Node&&"complete"===b.readyState?(b.__CE_isImportDocument=!0,b.__CE_hasRegistry=!0):a.addEventListener("load",function(){var b=a.import;if(!b.__CE_documentLoadHandled){b.__CE_documentLoadHandled=!0;b.__CE_isImportDocument=
!0;b.__CE_hasRegistry=!0;var f=new Set(c);f.delete(b);d.f(b,{M:f,F:e})}})}else f.push(a)},c);if(this.h)for(b=0;b<f.length;b++)this.g(f[b]);for(b=0;b<f.length;b++)e(f[b])};q.prototype.i=function(b){if(void 0===b.__CE_state){var a=this.c(b.localName);if(a){a.constructionStack.push(b);var d=a.constructor;try{try{if(new d!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{a.constructionStack.pop()}}catch(f){throw b.__CE_state=2,f;}b.__CE_state=1;b.__CE_definition=
a;if(a.attributeChangedCallback)for(a=a.observedAttributes,d=0;d<a.length;d++){var c=a[d],e=b.getAttribute(c);null!==e&&this.attributeChangedCallback(b,c,null,e,null)}g(b)&&this.connectedCallback(b)}}};q.prototype.connectedCallback=function(b){var a=b.__CE_definition;a.connectedCallback&&a.connectedCallback.call(b)};q.prototype.disconnectedCallback=function(b){var a=b.__CE_definition;a.disconnectedCallback&&a.disconnectedCallback.call(b)};q.prototype.attributeChangedCallback=function(b,a,d,c,e){var f=
b.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(a)&&f.attributeChangedCallback.call(b,a,d,c,e)};K.prototype.f=function(){this.b&&this.b.disconnect()};K.prototype.g=function(b){var a=this.a.readyState;"interactive"!==a&&"complete"!==a||this.f();for(a=0;a<b.length;a++)for(var d=b[a].addedNodes,c=0;c<d.length;c++)this.c.f(d[c])};X.prototype.c=function(){if(this.a)throw Error("Already resolved.");this.a=void 0;this.b&&this.b(void 0)};p.prototype.define=function(b,a){var d=
this;if(!(a instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!Y(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(this.a.c(b))throw Error("A custom element with name '"+b+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var c=function(a){var b=e[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");return b},e=a.prototype;if(!(e instanceof
Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var g=c("disconnectedCallback");var n=c("adoptedCallback");var k=c("attributeChangedCallback");var h=a.observedAttributes||[]}catch(l){return}finally{this.c=!1}a={localName:b,constructor:a,connectedCallback:f,disconnectedCallback:g,adoptedCallback:n,attributeChangedCallback:k,observedAttributes:h,constructionStack:[]};this.a.L(b,a);this.g.push(a);this.b||(this.b=!0,this.f(function(){return d.j()}))};
p.prototype.j=function(){var b=this;if(!1!==this.b){this.b=!1;for(var a=this.g,d=[],c=new Map,e=0;e<a.length;e++)c.set(a[e].localName,[]);this.a.f(document,{F:function(a){if(void 0===a.__CE_state){var e=a.localName,f=c.get(e);f?f.push(a):b.a.c(e)&&d.push(a)}}});for(e=0;e<d.length;e++)this.a.i(d[e]);for(;0<a.length;){var f=a.shift();e=f.localName;f=c.get(f.localName);for(var g=0;g<f.length;g++)this.a.i(f[g]);(e=this.h.get(e))&&e.c()}}};p.prototype.get=function(b){if(b=this.a.c(b))return b.constructor};
p.prototype.whenDefined=function(b){if(!Y(b))return Promise.reject(new SyntaxError("'"+b+"' is not a valid custom element name."));var a=this.h.get(b);if(a)return a.f;a=new X;this.h.set(b,a);this.a.c(b)&&!this.g.some(function(a){return a.localName===b})&&a.c();return a.f};p.prototype.l=function(b){this.i.f();var a=this.f;this.f=function(d){return b(function(){return a(d)})}};window.CustomElementRegistry=p;p.prototype.define=p.prototype.define;p.prototype.get=p.prototype.get;p.prototype.whenDefined=
p.prototype.whenDefined;p.prototype.polyfillWrapFlushCallback=p.prototype.l;var F=window.Document.prototype.createElement,oa=window.Document.prototype.createElementNS,na=window.Document.prototype.importNode,pa=window.Document.prototype.prepend,qa=window.Document.prototype.append,r=window.DocumentFragment.prototype.prepend,A=window.DocumentFragment.prototype.append,N=window.Node.prototype.cloneNode,y=window.Node.prototype.appendChild,U=window.Node.prototype.insertBefore,G=window.Node.prototype.removeChild,
V=window.Node.prototype.replaceChild,J=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),M=window.Element.prototype.attachShadow,D=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),H=window.Element.prototype.getAttribute,O=window.Element.prototype.setAttribute,Q=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,P=window.Element.prototype.setAttributeNS,R=window.Element.prototype.removeAttributeNS,T=window.Element.prototype.insertAdjacentElement,
da=window.Element.prototype.prepend,ea=window.Element.prototype.append,ha=window.Element.prototype.before,ia=window.Element.prototype.after,ja=window.Element.prototype.replaceWith,ka=window.Element.prototype.remove,sa=window.HTMLElement,E=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),S=window.HTMLElement.prototype.insertAdjacentElement,W=new function(){},t=window.customElements;if(!t||t.forcePolyfill||"function"!=typeof t.define||"function"!=typeof t.get)t=new q,ra(t),
ma(t),I(t,DocumentFragment.prototype,{s:r,append:A}),la(t),ca(t),document.__CE_hasRegistry=!0,r=new p(t),Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:r});r=window.customElements;var B=window.HTMLImports,Z=window.HTMLTemplateElement;window.WebComponents=window.WebComponents||{};if(r&&r.polyfillWrapFlushCallback){var C,aa=function(){if(C){Z.I&&Z.I(window.document);var b=C;C=null;b();return!0}},ba=B.whenReady;r.polyfillWrapFlushCallback(function(b){C=b;ba(aa)});
B.whenReady=function(b){ba(function(){aa()?B.whenReady(b):b()})}}B.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});r=document.createElement("style");r.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";A=document.querySelector("head");A.insertBefore(r,A.firstChild)})();}).call(this);
}).call(this);
//# sourceMappingURL=webcomponents-hi-ce.js.map

@@ -9,2 +9,17 @@ (function(){/*

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
'use strict';(function(h){function y(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function m(a){if(u)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!p(b)&&(b=b.parentNode););a.__importDoc=b}return b}function I(a){var b=document.querySelectorAll("link[rel=import]:not([import-dependency])"),
c=b.length;c?k(b,function(b){return q(b,function(){0===--c&&a()})}):a()}function z(a){function b(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",b),a())}document.addEventListener("readystatechange",b);b()}function A(a){z(function(){return I(function(){return a&&a()})})}function q(a,b){if(a.__loaded)b&&b();else if("script"===a.localName&&!a.src||"style"===a.localName&&!a.firstChild)a.__loaded=!0,b&&b();else{var c=function(d){a.removeEventListener(d.type,
c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);v&&"style"===a.localName||a.addEventListener("error",c)}}function p(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function e(){var a=this;this.a={};this.b=0;this.h=new MutationObserver(function(b){return a.B(b)});this.h.observe(document.head,{childList:!0,subtree:!0});this.c(document)}function k(a,b,c){var d=a?a.length:0,f=c?-1:1;for(c=c?d-1:0;c<d&&0<=c;c+=f)b(a[c],c)}var u="import"in document.createElement("link"),
w=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return w||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var J=/(url\()([^)]*)(\))/g,K=/(@import[\s]+(?!url\())([^;]*)(;)/g,L=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,g={w:function(a,b){a.href&&a.setAttribute("href",g.f(a.getAttribute("href"),b));a.src&&a.setAttribute("src",g.f(a.getAttribute("src"),b));if("style"===a.localName){var c=
g.s(a.textContent,b,J);a.textContent=g.s(c,b,K)}},s:function(a,b,c){return a.replace(c,function(a,c,l,e){a=l.replace(/["']/g,"");b&&(a=g.f(a,b));return c+"'"+a+"'"+e})},f:function(a,b){if(void 0===g.g){g.g=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";g.g="http://a/c%20d"===c.href}catch(d){}}if(g.g)return(new URL(a,b)).href;c=g.u;c||(c=document.implementation.createHTMLDocument("temp"),g.u=c,c.j=c.createElement("base"),c.head.appendChild(c.j),c.i=c.createElement("a"));c.j.href=b;c.i.href=
a;return c.i.href||a}},B={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var f=new XMLHttpRequest;f.open("GET",a,B.async);f.onload=function(){var a=f.responseURL||f.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=f.response||f.responseText;304===f.status||0===f.status||200<=f.status&&300>f.status?b(d,a):c(d)};f.send()}else c("error: href must be specified")}},
v=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);e.prototype.c=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){return b.m(a)})};e.prototype.m=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.import=d,this.l(a))}else this.b++,this.a[c]="pending",B.load(c,function(a,d){a=b.C(a,d||c);b.a[c]=a;b.b--;b.c(a);b.o()},function(){b.a[c]=null;b.b--;b.o()})};e.prototype.C=function(a,b){if(!a)return document.createDocumentFragment();
v&&(a=a.replace(L,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=g.f(c.getAttribute("href"),b),c.removeAttribute("href");var d=0;k(a.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),
function(a){q(a);g.w(a,b);a.setAttribute("import-dependency","");"script"===a.localName&&!a.src&&a.textContent&&(a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),a.textContent="",d++)});return a};e.prototype.o=function(){var a=this;if(!this.b){this.h.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.c(document),a.b||(a.h.observe(document.head,{childList:!0,subtree:!0}),a.A()))};this.F(function(){c=
!0;d()});this.D(function(){b=!0;d()})}};e.prototype.flatten=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){var c=b.a[a.href];(a.import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=a,a.readyState="loading",a.import=a,b.flatten(c),a.appendChild(c))})};e.prototype.D=function(a){function b(f){if(f<d){var l=c[f],e=document.createElement("script");l.removeAttribute("import-dependency");k(l.attributes,function(a){return e.setAttribute(a.name,a.value)});w=e;l.parentNode.replaceChild(e,
l);q(e,function(){w=null;b(f+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};e.prototype.F=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),c=b.length;if(c){var d=v&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");k(b,function(b){q(b,function(){b.removeAttribute("import-dependency");0===--c&&a()});if(d&&b.parentNode!==document.head){var e=document.createElement(b.localName);
e.__appliedElement=b;e.setAttribute("type","import-placeholder");b.parentNode.insertBefore(e,b.nextSibling);for(e=m(b);e&&m(e);)e=m(e);e.parentNode!==document.head&&(e=null);document.head.insertBefore(b,e);b.removeAttribute("type")}})}else a()};e.prototype.A=function(){var a=this;k(document.querySelectorAll("link[rel=import]"),function(b){return a.l(b)},!0)};e.prototype.l=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(y(a.import?"load":"error",{bubbles:!1,
cancelable:!1,detail:void 0})))};e.prototype.B=function(a){var b=this;k(a,function(a){return k(a.addedNodes,function(a){a&&a.nodeType===Node.ELEMENT_NODE&&(p(a)?b.m(a):b.c(a))})})};if(u){k(document.querySelectorAll("link[rel=import]"),function(a){a.import&&"loading"===a.import.readyState||(a.__loaded=!0)});var C=function(a){a=a.target;p(a)&&(a.__loaded=!0)};document.addEventListener("load",C,!0);document.addEventListener("error",C,!0)}else{var n=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");
Object.defineProperty((!n||n.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=p(this)?this:m(this);return a?a.href:n&&n.get?n.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});z(function(){return new e})}A(function(){return document.dispatchEvent(y("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});h.useNative=u;h.whenReady=A;h.importForElement=m})(window.HTMLImports=window.HTMLImports||{});/*

@@ -17,2 +32,5 @@ Copyright (c) 2014 The Polymer Project Authors. All rights reserved.

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var r=window.customElements,t=window.HTMLImports,x=window.HTMLTemplateElement;window.WebComponents=window.WebComponents||{};if(r&&r.polyfillWrapFlushCallback){var D,E=function(){if(D){x.v&&x.v(window.document);var h=D;D=null;h();return!0}},F=t.whenReady;r.polyfillWrapFlushCallback(function(h){D=h;F(E)});t.whenReady=function(h){F(function(){E()?t.whenReady(h):h()})}}
t.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var G=document.createElement("style");G.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var H=document.querySelector("head");H.insertBefore(G,H.firstChild);/*

@@ -26,19 +44,4 @@ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.

*/
'use strict';(function(){(function(h){function l(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function q(a){if(z)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!u(b)&&(b=b.parentNode););a.__importDoc=b}return b}function p(a){var b=
document.querySelectorAll("link[rel=import]:not([import-dependency])"),c=b.length;c?k(b,function(b){return v(b,function(){0===--c&&a()})}):a()}function m(a){function b(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",b),a())}document.addEventListener("readystatechange",b);b()}function t(a){m(function(){return p(function(){return a&&a()})})}function v(a,b){if(a.__loaded)b&&b();else if("script"===a.localName&&!a.src||"style"===a.localName&&!a.firstChild)a.__loaded=
!0,b&&b();else{var c=function(d){a.removeEventListener(d.type,c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);A&&"style"===a.localName||a.addEventListener("error",c)}}function u(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function e(){var a=this;this.a={};this.b=0;this.h=new MutationObserver(function(b){return a.B(b)});this.h.observe(document.head,{childList:!0,subtree:!0});this.c(document)}function k(a,b,c){var d=a?a.length:0,f=c?-1:1;for(c=c?d-1:0;c<d&&
0<=c;c+=f)b(a[c],c)}var z="import"in document.createElement("link"),B=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return B||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var w=/(url\()([^)]*)(\))/g,x=/(@import[\s]+(?!url\())([^;]*)(;)/g,y=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,g={w:function(a,b){a.href&&a.setAttribute("href",g.f(a.getAttribute("href"),b));a.src&&a.setAttribute("src",
g.f(a.getAttribute("src"),b));if("style"===a.localName){var c=g.s(a.textContent,b,w);a.textContent=g.s(c,b,x)}},s:function(a,b,c){return a.replace(c,function(a,c,n,e){a=n.replace(/["']/g,"");b&&(a=g.f(a,b));return c+"'"+a+"'"+e})},f:function(a,b){if(void 0===g.g){g.g=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";g.g="http://a/c%20d"===c.href}catch(d){}}if(g.g)return(new URL(a,b)).href;c=g.u;c||(c=document.implementation.createHTMLDocument("temp"),g.u=c,c.j=c.createElement("base"),c.head.appendChild(c.j),
c.i=c.createElement("a"));c.j.href=b;c.i.href=a;return c.i.href||a}},C={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var f=new XMLHttpRequest;f.open("GET",a,C.async);f.onload=function(){var a=f.responseURL||f.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=f.response||f.responseText;304===f.status||0===f.status||200<=f.status&&
300>f.status?b(d,a):c(d)};f.send()}else c("error: href must be specified")}},A=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);e.prototype.c=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){return b.m(a)})};e.prototype.m=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.import=d,this.l(a))}else this.b++,this.a[c]="pending",C.load(c,function(a,d){a=b.C(a,d||c);b.a[c]=a;b.b--;b.c(a);b.o()},function(){b.a[c]=
null;b.b--;b.o()})};e.prototype.C=function(a,b){if(!a)return document.createDocumentFragment();A&&(a=a.replace(y,function(a,b,c){return-1===a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content;else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=g.f(c.getAttribute("href"),b),c.removeAttribute("href");var d=0;k(a.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),
function(a){v(a);g.w(a,b);a.setAttribute("import-dependency","");"script"===a.localName&&!a.src&&a.textContent&&(a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n"))),a.textContent="",d++)});return a};e.prototype.o=function(){var a=this;if(!this.b){this.h.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&&b&&(a.c(document),a.b||(a.h.observe(document.head,{childList:!0,subtree:!0}),a.A()))};this.F(function(){c=
!0;d()});this.D(function(){b=!0;d()})}};e.prototype.flatten=function(a){var b=this;k(a.querySelectorAll("link[rel=import]"),function(a){var c=b.a[a.href];(a.import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=a,a.readyState="loading",a.import=a,b.flatten(c),a.appendChild(c))})};e.prototype.D=function(a){function b(f){if(f<d){var n=c[f],e=document.createElement("script");n.removeAttribute("import-dependency");k(n.attributes,function(a){return e.setAttribute(a.name,a.value)});B=e;n.parentNode.replaceChild(e,
n);v(e,function(){B=null;b(f+1)})}else a()}var c=document.querySelectorAll("script[import-dependency]"),d=c.length;b(0)};e.prototype.F=function(a){var b=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),c=b.length;if(c){var d=A&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");k(b,function(b){v(b,function(){b.removeAttribute("import-dependency");0===--c&&a()});if(d&&b.parentNode!==document.head){var e=document.createElement(b.localName);
e.__appliedElement=b;e.setAttribute("type","import-placeholder");b.parentNode.insertBefore(e,b.nextSibling);for(e=q(b);e&&q(e);)e=q(e);e.parentNode!==document.head&&(e=null);document.head.insertBefore(b,e);b.removeAttribute("type")}})}else a()};e.prototype.A=function(){var a=this;k(document.querySelectorAll("link[rel=import]"),function(b){return a.l(b)},!0)};e.prototype.l=function(a){a.__loaded||(a.__loaded=!0,a.import&&(a.import.readyState="complete"),a.dispatchEvent(l(a.import?"load":"error",{bubbles:!1,
cancelable:!1,detail:void 0})))};e.prototype.B=function(a){var b=this;k(a,function(a){return k(a.addedNodes,function(a){a&&a.nodeType===Node.ELEMENT_NODE&&(u(a)?b.m(a):b.c(a))})})};if(z){k(document.querySelectorAll("link[rel=import]"),function(a){a.import&&"loading"===a.import.readyState||(a.__loaded=!0)});var D=function(a){a=a.target;u(a)&&(a.__loaded=!0)};document.addEventListener("load",D,!0);document.addEventListener("error",D,!0)}else{var r=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");
Object.defineProperty((!r||r.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=u(this)?this:q(this);return a?a.href:r&&r.get?r.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});m(function(){return new e})}t(function(){return document.dispatchEvent(l("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});h.useNative=z;h.whenReady=t;h.importForElement=q})(window.HTMLImports=window.HTMLImports||{});var l=window.customElements,
p=window.HTMLImports,t=window.HTMLTemplateElement;window.WebComponents=window.WebComponents||{};if(l&&l.polyfillWrapFlushCallback){var m,w=function(){if(m){t.v&&t.v(window.document);var h=m;m=null;h();return!0}},x=p.whenReady;l.polyfillWrapFlushCallback(function(h){m=h;x(w)});p.whenReady=function(h){x(function(){w()?p.whenReady(h):h()})}}p.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});
l=document.createElement("style");l.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var y=document.querySelector("head");y.insertBefore(l,y.firstChild)})();}).call(this);
}).call(this);
//# sourceMappingURL=webcomponents-hi.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc