From 7abd431c4d8ce36d164570f47be9771db107ebd5 Mon Sep 17 00:00:00 2001 From: Viktor Lukashov Date: Fri, 20 Jul 2018 17:03:35 +0300 Subject: [PATCH] prepare 1.0.0-rc.1 (#237) * v1.0.0-rc.1 * update /docs --- analysis.json | 4 +- docs/vaadin-router/analysis.json | 4 +- docs/vaadin-router/demo/demo-shell.html | 12 +- docs/vaadin-router/demo/iframe.html | 2 +- docs/vaadin-router/demo/index.html | 2 +- docs/vaadin-router/index.html | 2 +- .../custom-elements-es5-adapter.js | 13 +- docs/webcomponentsjs/gulpfile.js | 22 +- .../webcomponentsjs/webcomponents-hi-sd-ce.js | 218 +++++++++--------- .../webcomponents-hi-sd-ce.js.map | 2 +- docs/webcomponentsjs/webcomponents-hi-sd.js | 158 ++++++------- .../webcomponents-hi-sd.js.map | 2 +- docs/webcomponentsjs/webcomponents-lite.js | 124 +++++----- .../webcomponentsjs/webcomponents-lite.js.map | 2 +- docs/webcomponentsjs/webcomponents-sd-ce.js | 148 ++++++------ .../webcomponents-sd-ce.js.map | 2 +- docs/webcomponentsjs/webcomponents-sd.js | 92 ++++---- docs/webcomponentsjs/webcomponents-sd.js.map | 2 +- package.json | 2 +- src/router-meta.js | 2 +- 20 files changed, 406 insertions(+), 409 deletions(-) diff --git a/analysis.json b/analysis.json index 046a1669..142d604f 100644 --- a/analysis.json +++ b/analysis.json @@ -1125,11 +1125,11 @@ "metadata": {}, "sourceRange": { "start": { - "line": 1809, + "line": 2351, "column": 32 }, "end": { - "line": 1817, + "line": 2359, "column": 1 } }, diff --git a/docs/vaadin-router/analysis.json b/docs/vaadin-router/analysis.json index 046a1669..142d604f 100644 --- a/docs/vaadin-router/analysis.json +++ b/docs/vaadin-router/analysis.json @@ -1125,11 +1125,11 @@ "metadata": {}, "sourceRange": { "start": { - "line": 1809, + "line": 2351, "column": 32 }, "end": { - "line": 1817, + "line": 2359, "column": 1 } }, diff --git a/docs/vaadin-router/demo/demo-shell.html b/docs/vaadin-router/demo/demo-shell.html index 75f15925..82a296b8 100644 --- a/docs/vaadin-router/demo/demo-shell.html +++ b/docs/vaadin-router/demo/demo-shell.html @@ -1,7 +1,7 @@ - \ No newline at end of file diff --git a/docs/vaadin-router/demo/iframe.html b/docs/vaadin-router/demo/iframe.html index bcab27ab..b894cabc 100644 --- a/docs/vaadin-router/demo/iframe.html +++ b/docs/vaadin-router/demo/iframe.html @@ -1 +1 @@ -Vaadin.Router DemoWaiting for a 'set-template' message... \ No newline at end of file +Vaadin.Router DemoWaiting for a 'set-template' message... \ No newline at end of file diff --git a/docs/vaadin-router/demo/index.html b/docs/vaadin-router/demo/index.html index a8517991..b32f85ea 100644 --- a/docs/vaadin-router/demo/index.html +++ b/docs/vaadin-router/demo/index.html @@ -1 +1 @@ -Vaadin.Router Demos \ No newline at end of file +Vaadin.Router Demos \ No newline at end of file diff --git a/docs/vaadin-router/index.html b/docs/vaadin-router/index.html index 2e21a97c..b83af2ba 100644 --- a/docs/vaadin-router/index.html +++ b/docs/vaadin-router/index.html @@ -1 +1 @@ -Vaadin.Router \ No newline at end of file +Vaadin.Router \ No newline at end of file diff --git a/docs/webcomponentsjs/custom-elements-es5-adapter.js b/docs/webcomponentsjs/custom-elements-es5-adapter.js index 4bcb525b..820e6d91 100644 --- a/docs/webcomponentsjs/custom-elements-es5-adapter.js +++ b/docs/webcomponentsjs/custom-elements-es5-adapter.js @@ -1,16 +1,15 @@ -(function () { -'use strict'; - -(()=>{'use strict';if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const a=d.get(this.constructor),b=c.call(window.customElements,a);g=!0;const e=new b;return e}f=!1;},window.HTMLElement.prototype=a.prototype;Object.defineProperty(window,'customElements',{value:window.customElements,configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'define',{value:(c,h)=>{const i=h.prototype,j=class extends a{constructor(){super(),Object.setPrototypeOf(this,i),g||(f=!0,h.call(this)),g=!1;}},k=j.prototype;j.observedAttributes=h.observedAttributes,k.connectedCallback=i.connectedCallback,k.disconnectedCallback=i.disconnectedCallback,k.attributeChangedCallback=i.attributeChangedCallback,k.adoptedCallback=i.adoptedCallback,d.set(h,c),e.set(c,h),b.call(window.customElements,c,j);},configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'get',{value:(a)=>e.get(a),configurable:!0,writable:!0});})(); - /** -@license -Copyright (c) 2017 The Polymer Project Authors. All rights reserved. +@license @nocompile +Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ +(function () { +'use strict'; + +(()=>{'use strict';if(!window.customElements)return;const a=window.HTMLElement,b=window.customElements.define,c=window.customElements.get,d=new Map,e=new Map;let f=!1,g=!1;window.HTMLElement=function(){if(!f){const a=d.get(this.constructor),b=c.call(window.customElements,a);g=!0;const e=new b;return e}f=!1;},window.HTMLElement.prototype=a.prototype;Object.defineProperty(window,'customElements',{value:window.customElements,configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'define',{value:(c,h)=>{const i=h.prototype,j=class extends a{constructor(){super(),Object.setPrototypeOf(this,i),g||(f=!0,h.call(this)),g=!1;}},k=j.prototype;j.observedAttributes=h.observedAttributes,k.connectedCallback=i.connectedCallback,k.disconnectedCallback=i.disconnectedCallback,k.attributeChangedCallback=i.attributeChangedCallback,k.adoptedCallback=i.adoptedCallback,d.set(h,c),e.set(c,h),b.call(window.customElements,c,j);},configurable:!0,writable:!0}),Object.defineProperty(window.customElements,'get',{value:(a)=>e.get(a),configurable:!0,writable:!0});})(); }()); diff --git a/docs/webcomponentsjs/gulpfile.js b/docs/webcomponentsjs/gulpfile.js index e7a51bf1..3e0ba5af 100644 --- a/docs/webcomponentsjs/gulpfile.js +++ b/docs/webcomponentsjs/gulpfile.js @@ -22,6 +22,7 @@ const del = require('del'); const runseq = require('run-sequence'); const closure = require('google-closure-compiler').gulp(); const babel = require('rollup-plugin-babel'); +const license = require('rollup-plugin-license'); function debugify(sourceName, fileName, extraRollupOptions) { if (!fileName) @@ -150,23 +151,20 @@ gulp.task('closurify-sd', () => { return closurify('webcomponents-sd') }) -function singleLicenseComment() { - let hasLicense = false; - return (comment) => { - if (hasLicense) { - return false; - } - return hasLicense = /@license/.test(comment); - } -} - const babelOptions = { presets: 'minify', - shouldPrintComment: singleLicenseComment() }; gulp.task('debugify-ce-es5-adapter', () => { - return debugify('custom-elements-es5-adapter', '', {plugins: [babel(babelOptions)]}); + return debugify('custom-elements-es5-adapter', '', { + plugins: [ + babel(babelOptions), + license({ + banner: { + file: './license-header.txt' + } + }) + ]}); }); gulp.task('default', ['closure']); diff --git a/docs/webcomponentsjs/webcomponents-hi-sd-ce.js b/docs/webcomponentsjs/webcomponents-hi-sd-ce.js index 2188851a..c5a11772 100644 --- a/docs/webcomponentsjs/webcomponents-hi-sd-ce.js +++ b/docs/webcomponentsjs/webcomponents-hi-sd-ce.js @@ -19,22 +19,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN 'use strict';var p,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},q="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ba(){ba=function(){};q.Symbol||(q.Symbol=ca)}var ca=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function ea(){ba();var a=q.Symbol.iterator;a||(a=q.Symbol.iterator=q.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return b]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,I={Ha:function(a,b){a.href&&a.setAttribute("href",I.V(a.getAttribute("href"),b));a.src&&a.setAttribute("src",I.V(a.getAttribute("src"),b));if("style"===a.localName){var c=I.ra(a.textContent,b,te);a.textContent=I.ra(c,b,ue)}},ra:function(a,b,c){return a.replace(c, -function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=I.V(a,b));return c+"'"+a+"'"+e})},V:function(a,b){if(void 0===I.aa){I.aa=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";I.aa="http://a/c%20d"===c.href}catch(og){}}if(I.aa)return(new URL(a,b)).href;c=I.za;c||(c=document.implementation.createHTMLDocument("temp"),I.za=c,c.ka=c.createElement("base"),c.head.appendChild(c.ka),c.ja=c.createElement("a"));c.ka.href=b;c.ja.href=a;return c.ja.href||a}},ac={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a= -a.split(",");var d=a[1];d=-1e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},Va=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent); -k.prototype.loadImports=function(a){var b=this;a=m(a,"link[rel=import]");n(a,function(a){return b.l(a)})};k.prototype.l=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",ac.load(c,function(a,d){a=b.Oa(a,d||c);b.a[c]=a;b.b--;b.loadImports(a);b.D()},function(){b.a[c]=null;b.b--;b.D()})};k.prototype.Oa=function(a,b){if(!a)return document.createDocumentFragment();Va&&(a=a.replace(ve,function(a,b,c){return-1=== +(function(a){function b(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 c(a){if(E)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(;!g(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=m(document,"link[rel=import]:not([import-dependency])"), +c=b.length;c?n(b,function(b){return h(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 d(function(){return a&&a()})})}function h(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);Xa&&"style"===a.localName||a.addEventListener("error",c)}}function g(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.a={};this.b=0;this.c=new MutationObserver(function(b){return a.Na(b)});this.c.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function l(a){n(m(a,"template"),function(a){n(m(a.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'), +function(a){var b=document.createElement("script");n(a.attributes,function(a){return b.setAttribute(a.name,a.value)});b.textContent=a.textContent;a.parentNode.replaceChild(b,a)});l(a.content)})}function m(a,b){return a.childNodes.length?a.querySelectorAll(b):da}function n(a,b,c){var d=a?a.length:0,e=c?-1:1;for(c=c?d-1:0;c]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,I={Ha:function(a,b){a.href&&a.setAttribute("href",I.V(a.getAttribute("href"),b));a.src&&a.setAttribute("src",I.V(a.getAttribute("src"),b));if("style"===a.localName){var c=I.ra(a.textContent,b,se);a.textContent=I.ra(c,b,te)}},ra:function(a,b,c){return a.replace(c, +function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=I.V(a,b));return c+"'"+a+"'"+e})},V:function(a,b){if(void 0===I.aa){I.aa=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";I.aa="http://a/c%20d"===c.href}catch(qg){}}if(I.aa)return(new URL(a,b)).href;c=I.za;c||(c=document.implementation.createHTMLDocument("temp"),I.za=c,c.ka=c.createElement("base"),c.head.appendChild(c.ka),c.ja=c.createElement("a"));c.ka.href=b;c.ja.href=a;return c.ja.href||a}},bc={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a= +a.split(",");var d=a[1];d=-1e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},Xa=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent); +k.prototype.loadImports=function(a){var b=this;a=m(a,"link[rel=import]");n(a,function(a){return b.l(a)})};k.prototype.l=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",bc.load(c,function(a,d){a=b.Oa(a,d||c);b.a[c]=a;b.b--;b.loadImports(a);b.D()},function(){b.a[c]=null;b.b--;b.D()})};k.prototype.Oa=function(a,b){if(!a)return document.createDocumentFragment();Xa&&(a=a.replace(ue,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,l(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=I.V(c.getAttribute("href"),b),c.removeAttribute("href");c=m(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'); -var d=0;n(c,function(a){g(a);I.Ha(a,b);a.setAttribute("import-dependency","");if("script"===a.localName&&!a.src&&a.textContent){if("module"===a.type)throw Error("Inline module scripts are not supported in HTML Imports.");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.D=function(){var a=this;if(!this.b){this.c.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&& -b&&(a.loadImports(document),a.b||(a.c.observe(document.head,{childList:!0,subtree:!0}),a.La()))};this.Qa(function(){c=!0;d()});this.Pa(function(){b=!0;d()})}};k.prototype.flatten=function(a){var b=this;a=m(a,"link[rel=import]");n(a,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.Pa=function(a){function b(e){if(e]/g;function kb(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function lb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&nb[k.localName]?h:h.replace(jb,kb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h), -Error("not implemented");}}c+=h}return c};var y={},A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function pb(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}y.parentNode=function(a){A.currentNode=a;return A.parentNode()};y.firstChild=function(a){A.currentNode=a;return A.firstChild()};y.lastChild=function(a){A.currentNode=a;return A.lastChild()};y.previousSibling=function(a){A.currentNode=a;return A.previousSibling()}; +function ob(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,h;e";break a;case Node.TEXT_NODE:g=g.data;g=k&&nb[k.localName]?g:g.replace(jb,kb);break a;case Node.COMMENT_NODE:g="\x3c!--"+g.data+"--\x3e";break a;default:throw window.console.error(g), +Error("not implemented");}}c+=g}return c};var y={},A=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),B=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function pb(a){var b=[];A.currentNode=a;for(a=A.firstChild();a;)b.push(a),a=A.nextSibling();return b}y.parentNode=function(a){A.currentNode=a;return A.parentNode()};y.firstChild=function(a){A.currentNode=a;return A.firstChild()};y.lastChild=function(a){A.currentNode=a;return A.lastChild()};y.previousSibling=function(a){A.currentNode=a;return A.previousSibling()}; y.nextSibling=function(a){A.currentNode=a;return A.nextSibling()};y.childNodes=pb;y.parentElement=function(a){B.currentNode=a;return B.parentNode()};y.firstElementChild=function(a){B.currentNode=a;return B.firstChild()};y.lastElementChild=function(a){B.currentNode=a;return B.lastChild()};y.previousElementSibling=function(a){B.currentNode=a;return B.previousSibling()};y.nextElementSibling=function(a){B.currentNode=a;return B.nextSibling()}; y.children=function(a){var b=[];B.currentNode=a;for(a=B.firstChild();a;)b.push(a),a=B.nextSibling();return Ba(b)};y.innerHTML=function(a){return ob(a,function(a){return pb(a)})};y.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var C={},qb=u.u,rb=[Node.prototype,Element.prototype,HTMLElement.prototype];function D(a){var b;a:{for(b=0;be.assignedNodes.length&&(e.S=!0)}e.S&&(e.S=!1,Kc(this,c))}b=this.f;c=[];for(e=0;ec.indexOf(d))||c.push(d);for(b=0;be.assignedNodes.length&&(e.S=!0)}e.S&&(e.S=!1,Kc(this,c))}b=this.f;c=[];for(e=0;ec.indexOf(d))||c.push(d);for(b=0;b "+b}))}a=a.replace(lf,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ga:b,stop:f}}function jf(a,b){a=a.split(mf);a[0]+=b;return a.join(mf)} -function hf(a,b){var c=a.match(nf);return(c=c&&c[2].trim()||"")?c[0].match(of)?a.replace(nf,function(a,c,f){return b+f}):c.split(of)[0]===b?c:pf:a.replace(df,b)}function qf(a){a.selector===rf&&(a.selector="html")}Qe.prototype.c=function(a){return a.match(gf)?this.b(a,sf):jf(a.trim(),sf)};q.Object.defineProperties(Qe.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); -var bf=/:(nth[-\w]+)\(([^)]+)\)/,sf=":not(.style-scope)",$e=",",ef=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,of=/[[.:#*]/,df=":host",rf=":root",gf="::slotted",cf=new RegExp("^("+gf+")"),nf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,kf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,lf=/(.*):dir\((?:(ltr|rtl))\)/,Ye=".",mf=":",Ue="class",pf="should_not_match",W=new Qe;function tf(a,b,c,d){this.w=a||null;this.b=b||null;this.ha=c||[];this.G=null;this.J=d||"";this.a=this.s=this.B=null}function X(a){return a?a.__styleInfo:null}function uf(a,b){return a.__styleInfo=b}tf.prototype.c=function(){return this.w};tf.prototype._getStyleRules=tf.prototype.c;function vf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var wf=navigator.userAgent.match("Trident");function xf(){}function yf(a){var b={},c=[],d=0;He(a,function(a){zf(a);a.index=d++;a=a.j.cssText;for(var c;c=Be.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} -function zf(a){if(!a.j){var b={},c={};Af(a,c)&&(b.v=c,a.rules=null);b.cssText=a.parsedCssText.replace(Ee,"").replace(ze,"");a.j=b}}function Af(a,b){var c=a.j;if(c){if(c.v)return Object.assign(b,c.v),!0}else{c=a.parsedCssText;for(var d;a=ze.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} -function Bf(a,b,c){b&&(b=0<=b.indexOf(";")?Cf(a,b,c):Ne(b,function(b,e,f,g){if(!e)return b+g;(e=Bf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Bf(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} -function Cf(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c=e,h&&(b.m||(b.m=Ze(W,b,W.b,a?Ye+a:"",e)),c=b.m||e),d({Ta:c,Ma:h,mb:g})}} -function Ff(a,b){var c={},d={},e=b&&b.__cssBuild;He(b,function(b){Ef(a,b,e,function(e){vf.call(a.cb||a,e.Ta)&&(e.Ma?Af(b,c):Af(b,d))})},null,!0);return{Sa:d,Ka:c}} -function Gf(a,b,c,d){var e=Pe(b),f=Xe(e.is,e.J),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=X(b).w;var h=Hf(e,d);return Ve(b,e,function(b){var e="";b.j||zf(b);b.j.cssText&&(e=Cf(a,b.j.cssText,c));b.cssText=e;if(!U&&!Je(b)&&b.cssText){var k=e=b.cssText;null==b.oa&&(b.oa=Ce.test(e));if(b.oa)if(null==b.T){b.T=[];for(var n in h)k=h[n],k=k(e),e!==k&&(e=k,b.T.push(n))}else{for(n=0;n=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));U?f.a?(f.a.textContent=e,d=f.a):e&&(d=Ke(e,h,a.shadowRoot,f.b)):d?d.parentNode|| -(wf&&-1 "+b}))}a=a.replace(nf,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,Ga:b,stop:f}}function lf(a,b){a=a.split(of);a[0]+=b;return a.join(of)} +function kf(a,b){var c=a.match(pf);return(c=c&&c[2].trim()||"")?c[0].match(qf)?a.replace(pf,function(a,c,f){return b+f}):c.split(qf)[0]===b?c:rf:a.replace(ff,b)}function sf(a){a.selector===tf&&(a.selector="html")}Qe.prototype.c=function(a){return a.match(jf)?this.b(a,uf):lf(a.trim(),uf)};q.Object.defineProperties(Qe.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}}); +var df=/:(nth[-\w]+)\(([^)]+)\)/,uf=":not(.style-scope)",bf=",",gf=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,qf=/[[.:#*]/,ff=":host",tf=":root",jf="::slotted",ef=new RegExp("^("+jf+")"),pf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,mf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,nf=/(.*):dir\((?:(ltr|rtl))\)/,$e=".",of=":",Ue="class",rf="should_not_match",W=new Qe;function vf(a,b,c,d){this.w=a||null;this.b=b||null;this.ha=c||[];this.G=null;this.J=d||"";this.a=this.s=this.B=null}function X(a){return a?a.__styleInfo:null}function wf(a,b){return a.__styleInfo=b}vf.prototype.c=function(){return this.w};vf.prototype._getStyleRules=vf.prototype.c;function xf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var yf=navigator.userAgent.match("Trident");function zf(){}function Af(a){var b={},c=[],d=0;Ie(a,function(a){Bf(a);a.index=d++;a=a.j.cssText;for(var c;c=Ce.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} +function Bf(a){if(!a.j){var b={},c={};Cf(a,c)&&(b.v=c,a.rules=null);b.cssText=a.parsedCssText.replace(Fe,"").replace(Ae,"");a.j=b}}function Cf(a,b){var c=a.j;if(c){if(c.v)return Object.assign(b,c.v),!0}else{c=a.parsedCssText;for(var d;a=Ae.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} +function Df(a,b,c){b&&(b=0<=b.indexOf(";")?Ef(a,b,c):Oe(b,function(b,e,f,h){if(!e)return b+h;(e=Df(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Df(a,c[f]||f,c)||f;return b+(e||"")+h}));return b&&b.trim()||""} +function Ef(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===f||"html"===f,g=0===f.indexOf(":host")&&!h;"shady"===c&&(h=f===e+" > *."+e||-1!==f.indexOf("html"),g=!h&&0===f.indexOf(e));"shadow"===c&&(h=":host > *"===f||"html"===f,g=g&&!h);if(h||g)c=e,g&&(b.m||(b.m=af(W,b,W.b,a?$e+a:"",e)),c=b.m||e),d({Ta:c,Ma:g,mb:h})}} +function Hf(a,b){var c={},d={},e=b&&b.__cssBuild;Ie(b,function(b){Gf(a,b,e,function(e){xf.call(a.cb||a,e.Ta)&&(e.Ma?Cf(b,c):Cf(b,d))})},null,!0);return{Sa:d,Ka:c}} +function If(a,b,c,d){var e=V(b),f=Ze(e.is,e.J),h=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])");e=X(b).w;var g=Jf(e,d);return Xe(b,e,function(b){var e="";b.j||Bf(b);b.j.cssText&&(e=Ef(a,b.j.cssText,c));b.cssText=e;if(!T&&!Ke(b)&&b.cssText){var k=e=b.cssText;null==b.oa&&(b.oa=De.test(e));if(b.oa)if(null==b.T){b.T=[];for(var n in g)k=g[n],k=k(e),e!==k&&(e=k,b.T.push(n))}else{for(n=0;n=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));T?f.a?(f.a.textContent=e,d=f.a):e&&(d=Le(e,g,a.shadowRoot,f.b)):d?d.parentNode|| +(yf&&-1 {\n\n /********************* base setup *********************/\n const link = document.createElement('link');\n const useNative = Boolean('import' in link);\n const emptyNodeList = link.querySelectorAll('*');\n\n // Polyfill `currentScript` for browsers without it.\n let currentScript = null;\n if ('currentScript' in document === false) {\n Object.defineProperty(document, 'currentScript', {\n get() {\n return currentScript ||\n // NOTE: only works when called in synchronously executing code.\n // readyState should check if `loading` but IE10 is\n // interactive when scripts run so we cheat. This is not needed by\n // html-imports polyfill but helps generally polyfill `currentScript`.\n (document.readyState !== 'complete' ?\n document.scripts[document.scripts.length - 1] : null);\n },\n configurable: true\n });\n }\n\n /**\n * @param {Array|NodeList|NamedNodeMap} list\n * @param {!Function} callback\n * @param {boolean=} inverseOrder\n */\n const forEach = (list, callback, inverseOrder) => {\n const length = list ? list.length : 0;\n const increment = inverseOrder ? -1 : 1;\n let i = inverseOrder ? length - 1 : 0;\n for (; i < length && i >= 0; i = i + increment) {\n callback(list[i], i);\n }\n };\n\n /**\n * @param {!Node} node\n * @param {!string} selector\n * @return {!NodeList}\n */\n const QSA = (node, selector) => {\n // IE 11 throws a SyntaxError if a node with no children is queried with\n // a selector containing the `:not([type])` syntax.\n if (!node.childNodes.length) {\n return emptyNodeList;\n }\n return node.querySelectorAll(selector);\n };\n\n /**\n * @param {!DocumentFragment} fragment\n */\n const replaceScripts = (fragment) => {\n forEach(QSA(fragment, 'template'), template => {\n forEach(QSA(template.content, scriptsSelector), script => {\n const clone = /** @type {!HTMLScriptElement} */\n (document.createElement('script'));\n forEach(script.attributes, attr => clone.setAttribute(attr.name, attr.value));\n clone.textContent = script.textContent;\n script.parentNode.replaceChild(clone, script);\n });\n replaceScripts(template.content);\n });\n };\n\n /********************* path fixup *********************/\n const CSS_URL_REGEXP = /(url\\()([^)]*)(\\))/g;\n const CSS_IMPORT_REGEXP = /(@import[\\s]+(?!url\\())([^;]*)(;)/g;\n const STYLESHEET_REGEXP = /(]*)(rel=['|\"]?stylesheet['|\"]?[^>]*>)/g;\n\n // path fixup: style elements in imports must be made relative to the main\n // document. We fixup url's in url() and @import.\n const Path = {\n\n fixUrls(element, base) {\n if (element.href) {\n element.setAttribute('href',\n Path.resolveUrl(element.getAttribute('href'), base));\n }\n if (element.src) {\n element.setAttribute('src',\n Path.resolveUrl(element.getAttribute('src'), base));\n }\n if (element.localName === 'style') {\n const r = Path.replaceUrls(element.textContent, base, CSS_URL_REGEXP);\n element.textContent = Path.replaceUrls(r, base, CSS_IMPORT_REGEXP);\n }\n },\n\n replaceUrls(text, linkUrl, regexp) {\n return text.replace(regexp, (m, pre, url, post) => {\n let urlPath = url.replace(/[\"']/g, '');\n if (linkUrl) {\n urlPath = Path.resolveUrl(urlPath, linkUrl);\n }\n return pre + '\\'' + urlPath + '\\'' + post;\n });\n },\n\n resolveUrl(url, base) {\n // Lazy feature detection.\n if (Path.__workingURL === undefined) {\n Path.__workingURL = false;\n try {\n const u = new URL('b', 'http://a');\n u.pathname = 'c%20d';\n Path.__workingURL = (u.href === 'http://a/c%20d');\n } catch (e) {}\n }\n\n if (Path.__workingURL) {\n return (new URL(url, base)).href;\n }\n\n // Fallback to creating an anchor into a disconnected document.\n let doc = Path.__tempDoc;\n if (!doc) {\n doc = document.implementation.createHTMLDocument('temp');\n Path.__tempDoc = doc;\n doc.__base = doc.createElement('base');\n doc.head.appendChild(doc.__base);\n doc.__anchor = doc.createElement('a');\n }\n doc.__base.href = base;\n doc.__anchor.href = url;\n return doc.__anchor.href || url;\n }\n };\n\n /********************* Xhr processor *********************/\n const Xhr = {\n\n async: true,\n\n /**\n * @param {!string} url\n * @param {!function(!string, string=)} success\n * @param {!function(!string)} fail\n */\n load(url, success, fail) {\n if (!url) {\n fail('error: href must be specified');\n } else if (url.match(/^data:/)) {\n // Handle Data URI Scheme\n const pieces = url.split(',');\n const header = pieces[0];\n let resource = pieces[1];\n if (header.indexOf(';base64') > -1) {\n resource = atob(resource);\n } else {\n resource = decodeURIComponent(resource);\n }\n success(resource);\n } else {\n const request = new XMLHttpRequest();\n request.open('GET', url, Xhr.async);\n request.onload = () => {\n // Servers redirecting an import can add a Location header to help us\n // polyfill correctly. Handle relative and full paths.\n // Prefer responseURL which already resolves redirects\n // https://xhr.spec.whatwg.org/#the-responseurl-attribute\n let redirectedUrl = request.responseURL || request.getResponseHeader('Location');\n if (redirectedUrl && redirectedUrl.indexOf('/') === 0) {\n // In IE location.origin might not work\n // https://connect.microsoft.com/IE/feedback/details/1763802/location-origin-is-undefined-in-ie-11-on-windows-10-but-works-on-windows-7\n const origin = (location.origin || location.protocol + '//' + location.host);\n redirectedUrl = origin + redirectedUrl;\n }\n const resource = /** @type {string} */ (request.response || request.responseText);\n if (request.status === 304 || request.status === 0 ||\n request.status >= 200 && request.status < 300) {\n success(resource, redirectedUrl);\n } else {\n fail(resource);\n }\n };\n request.send();\n }\n }\n };\n\n /********************* importer *********************/\n\n const isIE = /Trident/.test(navigator.userAgent) ||\n /Edge\\/\\d./i.test(navigator.userAgent);\n\n const importSelector = 'link[rel=import]';\n\n // Used to disable loading of resources.\n const importDisableType = 'import-disable';\n\n const disabledLinkSelector = `link[rel=stylesheet][href][type=${importDisableType}]`;\n\n const scriptsSelector = `script:not([type]),script[type=\"application/javascript\"],` +\n `script[type=\"text/javascript\"],script[type=\"module\"]`;\n\n const importDependenciesSelector = `${importSelector},${disabledLinkSelector},` +\n `style:not([type]),link[rel=stylesheet][href]:not([type]),` + scriptsSelector;\n\n const importDependencyAttr = 'import-dependency';\n\n const rootImportSelector = `${importSelector}:not([${importDependencyAttr}])`;\n\n const pendingScriptsSelector = `script[${importDependencyAttr}]`;\n\n const pendingStylesSelector = `style[${importDependencyAttr}],` +\n `link[rel=stylesheet][${importDependencyAttr}]`;\n\n /**\n * Importer will:\n * - load any linked import documents (with deduping)\n * - whenever an import is loaded, prompt the parser to try to parse\n * - observe imported documents for new elements (these are handled via the\n * dynamic importer)\n */\n class Importer {\n constructor() {\n this.documents = {};\n // Used to keep track of pending loads, so that flattening and firing of\n // events can be done when all resources are ready.\n this.inflight = 0;\n this.dynamicImportsMO = new MutationObserver(m => this.handleMutations(m));\n // Observe changes on .\n this.dynamicImportsMO.observe(document.head, {\n childList: true,\n subtree: true\n });\n // 1. Load imports contents\n // 2. Assign them to first import links on the document\n // 3. Wait for import styles & scripts to be done loading/running\n // 4. Fire load/error events\n this.loadImports(document);\n }\n\n /**\n * @param {!(HTMLDocument|DocumentFragment|Element)} doc\n */\n loadImports(doc) {\n const links = /** @type {!NodeList} */\n (QSA(doc, importSelector));\n forEach(links, link => this.loadImport(link));\n }\n\n /**\n * @param {!HTMLLinkElement} link\n */\n loadImport(link) {\n const url = link.href;\n // This resource is already being handled by another import.\n if (this.documents[url] !== undefined) {\n // If import is already loaded, we can safely associate it to the link\n // and fire the load/error event.\n const imp = this.documents[url];\n if (imp && imp['__loaded']) {\n link['__import'] = imp;\n this.fireEventIfNeeded(link);\n }\n return;\n }\n this.inflight++;\n // Mark it as pending to notify others this url is being loaded.\n this.documents[url] = 'pending';\n Xhr.load(url, (resource, redirectedUrl) => {\n const doc = this.makeDocument(resource, redirectedUrl || url);\n this.documents[url] = doc;\n this.inflight--;\n // Load subtree.\n this.loadImports(doc);\n this.processImportsIfLoadingDone();\n }, () => {\n // If load fails, handle error.\n this.documents[url] = null;\n this.inflight--;\n this.processImportsIfLoadingDone();\n });\n }\n\n /**\n * Creates a new document containing resource and normalizes urls accordingly.\n * @param {string=} resource\n * @param {string=} url\n * @return {!DocumentFragment}\n */\n makeDocument(resource, url) {\n if (!resource) {\n return document.createDocumentFragment();\n }\n\n if (isIE) {\n // should be appended to . Not doing so\n // in IE/Edge breaks the cascading order. We disable the loading by\n // setting the type before setting innerHTML to avoid loading\n // resources twice.\n resource = resource.replace(STYLESHEET_REGEXP, (match, p1, p2) => {\n if (match.indexOf('type=') === -1) {\n return `${p1} type=${importDisableType} ${p2}`;\n }\n return match;\n });\n }\n\n let content;\n const template = /** @type {!HTMLTemplateElement} */\n (document.createElement('template'));\n template.innerHTML = resource;\n if (template.content) {\n content = template.content;\n // Clone scripts inside templates since they won't execute when the\n // hosting template is cloned.\n replaceScripts(content);\n } else {\n //