Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: packages/web_components/lib/webcomponents-lite.min.js

Issue 2312183003: Removed Polymer from Observatory deps (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /**
2 * @license
3 * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 * This code may only be used under the BSD style license found at http://polyme r.github.io/LICENSE.txt
5 * The complete set of authors may be found at http://polymer.github.io/AUTHORS. txt
6 * The complete set of contributors may be found at http://polymer.github.io/CON TRIBUTORS.txt
7 * Code distributed by Google as part of the polymer project is also
8 * subject to an additional IP rights grant found at http://polymer.github.io/PA TENTS.txt
9 */
10 // @version 0.7.21
11 !function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomp onents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOp ts){if(location.search.slice(1).split("&").forEach(function(e){var t,o=e.split(" =");o[0]&&(t=o[0].match(/wc-(.+)/))&&(n[t[1]]=o[1]||!0)}),t)for(var o,r=0;o=t.at tributes[r];r++)"src"!==o.name&&(n[o.name]=o.value||!0);if(n.log&&n.log.split){v ar i=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}else n.log={} }n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.Cus tomElements.flags.register=n.register),WebComponents.flags=n}(),function(e){"use strict";function t(e){return void 0!==h[e]}function n(){s.call(this),this._isIn valid=!0}function o(e){return""==e&&n.call(this),e.toLowerCase()}function r(e){v ar t=e.charCodeAt(0);return t>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:en codeURIComponent(e)}function i(e){var t=e.charCodeAt(0);return t>32&&127>t&&-1== [34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function a(e,a,s){function c (e){g.push(e)}var d=a||"scheme start",u=0,l="",w=!1,_=!1,g=[];e:for(;(e[u-1]!=p| |0==u)&&!this._isInvalid;){var b=e[u];switch(d){case"scheme start":if(!b||!m.tes t(b)){if(a){c("Invalid scheme.");break e}l="",d="no scheme";continue}l+=b.toLowe rCase(),d="scheme";break;case"scheme":if(b&&v.test(b))l+=b.toLowerCase();else{if (":"!=b){if(a){if(p==b)break e;c("Code point not allowed in scheme: "+b);break e }l="",u=0,d="no scheme";continue}if(this._scheme=l,l="",a)break e;t(this._scheme )&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRelative&&s&& s._scheme==this._scheme?"relative or authority":this._isRelative?"authority firs t slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",d="query" ):"#"==b?(this._fragment="#",d="fragment"):p!=b&&" "!=b&&"\n"!=b&&"\r"!=b&& (this._schemeData+=r(b));break;case"no scheme":if(s&&t(s._scheme)){d="relative"; continue}c("Missing scheme."),n.call(this);break;case"relative or authority":if( "/"!=b||"/"!=e[u+1]){c("Expected /, got: "+b),d="relative";continue}d="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._schem e&&(this._scheme=s._scheme),p==b){this._host=s._host,this._port=s._port,this._pa th=s._path.slice(),this._query=s._query,this._username=s._username,this._passwor d=s._password;break e}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point ."),d="relative slash";else if("?"==b)this._host=s._host,this._port=s._port,this ._path=s._path.slice(),this._query="?",this._username=s._username,this._password =s._password,d="query";else{if("#"!=b){var y=e[u+1],E=e[u+2];("file"!=this._sche me||!m.test(b)||":"!=y&&"|"!=y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._h ost=s._host,this._port=s._port,this._username=s._username,this._password=s._pass word,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}thi s._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._que ry,this._fragment="#",this._username=s._username,this._password=s._password,d="f ragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(t his._host=s._host,this._port=s._port,this._username=s._username,this._password=s ._password),d="relative path";continue}"\\"==b&&c("\\ is an invalid code point." ),d="file"==this._scheme?"file host":"authority ignore slashes";break;case"autho rity first slash":if("/"!=b){c("Expected '/', got: "+b),d="authority ignore slas hes";continue}d="authority second slash";break;case"authority second slash":if(d ="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;ca se"authority ignore slashes":if("/"!=b&&"\\"!=b){d="authority";continue}c("Expec ted authority, got: "+b);break;case"authority":if("@"==b){w&&(c("@ already seen. "),l+="%40"),w=!0;for(var L=0;L<l.length;L++){var N=l[L];if(" "!=N&&"\n"!=N&&" \r"!=N)if(":"!=N||null!==this._password){var M=r(N);null!==this._password?this._ password+=M:this._username+=M}else this._password="";else c("Invalid whitespace in authority.")}l=""}else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){u-=l.length, l="",d="host";continue}l+=b}break;case"file host":if(p==b||"/"==b||"\\"==b||"?"= =b||"#"==b){2!=l.length||!m.test(l[0])||":"!=l[1]&&"|"!=l[1]?0==l.length?d="rela tive path start":(this._host=o.call(this,l),l="",d="relative path start"):d="rel ative path";continue}" "==b||"\n"==b||"\r"==b?c("Invalid whitespace in file hos t."):l+=b;break;case"host":case"hostname":if(":"!=b||_){if(p==b||"/"==b||"\\"==b ||"?"==b||"#"==b){if(this._host=o.call(this,l),l="",d="relative path start",a)br eak e;continue}" "!=b&&"\n"!=b&&"\r"!=b?("["==b?_=!0:"]"==b&&(_=!1),l+=b) :c("Invalid code point in host/hostname: "+b)}else if(this._host=o.call(this,l), l="",d="port","hostname"==a)break e;break;case"port":if(/[0-9]/.test(b))l+=b;els e{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||a){if(""!=l){var T=parseInt(l,10);T! =h[this._scheme]&&(this._port=T+""),l=""}if(a)break e;d="relative path start";co ntinue}" "==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):n.cal l(this)}break;case"relative path start":if("\\"==b&&c("'\\' not allowed in path. "),d="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":if(p!=b& &"/"!=b&&"\\"!=b&&(a||"?"!=b&&"#"!=b))" "!=b&&"\n"!=b&&"\r"!=b&&(l+=r(b));else{" \\"==b&&c("\\ not allowed in relative path.");var O;(O=f[l.toLowerCase()])&&(l=O ),".."==l?(this._path.pop(),"/"!=b&&"\\"!=b&&this._path.push("")):"."==l&&"/"!=b &&"\\"!=b?this._path.push(""):"."!=l&&("file"==this._scheme&&0==this._path.lengt h&&2==l.length&&m.test(l[0])&&"|"==l[1]&&(l=l[0]+":"),this._path.push(l)),l=""," ?"==b?(this._query="?",d="query"):"#"==b&&(this._fragment="#",d="fragment")}brea k;case"query":a||"#"!=b?p!=b&&" "!=b&&"\n"!=b&&"\r"!=b&&(this._query+=i(b)):(thi s._fragment="#",d="fragment");break;case"fragment":p!=b&&" "!=b&&"\n"!=b&&" \r"!=b&&(this._fragment+=b)}u++}}function s(){this._scheme="",this._schemeData=" ",this._username="",this._password=null,this._host="",this._port="",this._path=[ ],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}functi on c(e,t){void 0===t||t instanceof c||(t=new c(String(t))),this._url=e,s.call(th is);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");a.call(this,n,null,t)}var d=!1;if(!e.forceJURL)try{var u=new URL("b","http://a");u.pathname="c%20d",d="ht tp://a/c%20d"===u.href}catch(l){}if(!d){var h=Object.create(null);h.ftp=21,h.fil e=0,h.gopher=70,h.http=80,h.https=443,h.ws=80,h.wss=443;var f=Object.create(null );f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";var p=void 0,m=/[a -zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){return this.href} ,get href(){if(this._isInvalid)return this._url;var e="";return(""!=this._userna me||null!=this._password)&&(e=this._username+(null!=this._password?":"+this._pas sword:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathnam e+this._query+this._fragment},set href(e){s.call(this),a.call(this,e)},get proto col(){return this._scheme+":"},set protocol(e){this._isInvalid||a.call(this,e+": ","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+": "+this._port:this._host},set host(e){!this._isInvalid&&this._isRelative&&a.call( this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInval id&&this._isRelative&&a.call(this,e,"hostname")},get port(){return this._port},s et port(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"port")},get pathna me(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._s chemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],a. call(this,e,"relative path start"))},get search(){return this._isInvalid||!this. _query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._i sRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},g et hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._ fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice (1)),a.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._s cheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case" mailto":return"null"}return e=this.host,e?this._scheme+"://"+e:""}};var w=e.URL; w&&(c.createObjectURL=function(e){return w.createObjectURL.apply(w,arguments)},c .revokeObjectURL=function(e){w.revokeObjectURL(e)}),e.URL=c}}(self),"undefined"= =typeof WeakMap&&!function(){var e=Object.defineProperty,t=Date.now()%1e9,n=func tion(){this.name="__st"+(1e9*Math.random()>>>0)+(t++ +"__")};n.prototype={set:fu nction(t,n){var o=t[this.name];return o&&o[0]===t?o[1]=n:e(t,this.name,{value:[t ,n],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t [1]:void 0},"delete":function(e){var t=e[this.name];return t&&t[0]===e?(t[0]=t[1 ]=void 0,!0):!1},has:function(e){var t=e[this.name];return t?t[0]===e:!1}},windo w.WeakMap=n}(),function(e){function t(e){b.push(e),g||(g=!0,m(o))}function n(e){ return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}fun ction o(){g=!1;var e=b;b=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1 ;e.forEach(function(e){var n=e.takeRecords();r(e),n.length&&(e.callback_(n,e),t= !0)}),t&&o()}function r(e){e.nodes_.forEach(function(t){var n=v.get(t);n&&n.forE ach(function(t){t.observer===e&&t.removeTransientObservers()})})}function i(e,t) {for(var n=e;n;n=n.parentNode){var o=v.get(n);if(o)for(var r=0;r<o.length;r++){v ar i=o[r],a=i.options;if(n===e||a.subtree){var s=t(a);s&&i.enqueue(s)}}}}functio n a(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}function s (e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.pre viousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNa mespace=null,this.oldValue=null}function c(e){var t=new s(e.type,e.target);retur n t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.prev iousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attr ibuteName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}func tion d(e,t){return E=new s(e,t)}function u(e){return L?L:(L=c(E),L.oldValue=e,L) }function l(){E=L=void 0}function h(e){return e===L||e===E}function f(e,t){retur n e===t?e:L&&h(e)?L:null}function p(e,t,n){this.observer=e,this.target=t,this.op tions=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){var m,v=new Wea kMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;else if(window.set Immediate)m=window.setImmediate;else{var w=[],_=String(Math.random());window.add EventListener("message",function(e){if(e.data===_){var t=w;w=[],t.forEach(functi on(e){e()})}}),m=function(e){w.push(e),window.postMessage(_,"*")}}var g=!1,b=[], y=0;a.prototype={observe:function(e,t){if(e=n(e),!t.childList&&!t.attributes&&!t .characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attribu teFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var o=v.get(e);o||v.set(e,o=[]);for(var r,i=0;i<o.length;i++)if( o[i].observer===this){r=o[i],r.removeListeners(),r.options=t;break}r||(r=new p(t his,e,t),o.push(r),this.nodes_.push(e)),r.addListeners()},disconnect:function(){ this.nodes_.forEach(function(e){for(var t=v.get(e),n=0;n<t.length;n++){var o=t[n ];if(o.observer===this){o.removeListeners(),t.splice(n,1);break}}},this),this.re cords_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e} };var E,L;p.prototype={enqueue:function(e){var n=this.observer.records_,o=n.leng th;if(n.length>0){var r=n[o-1],i=f(r,e);if(i)return void(n[o-1]=i)}else t(this.o bserver);n[o]=e},addListeners:function(){this.addListeners_(this.target)},addLis teners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttr Modified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified ",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childLi st||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:fu nction(){this.removeListeners_(this.target)},removeListeners_:function(e){var t= this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.ch aracterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childLi st&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e .removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e) {if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);v ar t=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObservers:function( ){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(fun ction(e){this.removeListeners_(e);for(var t=v.get(e),n=0;n<t.length;n++)if(t[n]= ==this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmedi atePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode. namespaceURI,o=e.target,r=new d("attributes",o);r.attributeName=t,r.attributeNam espace=n;var a=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(o,functi on(e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.a ttributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void 0:e.attributeO ldValue?u(a):r});break;case"DOMCharacterDataModified":var o=e.target,r=d("charac terData",o),a=e.prevValue;i(o,function(e){return e.characterData?e.characterData OldValue?u(a):r:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(e. target);case"DOMNodeInserted":var s,c,h=e.target;"DOMNodeInserted"===e.type?(s=[ h],c=[]):(s=[],c=[h]);var f=h.previousSibling,p=h.nextSibling,r=d("childList",e. target.parentNode);r.addedNodes=s,r.removedNodes=c,r.previousSibling=f,r.nextSib ling=p,i(e.relatedNode,function(e){return e.childList?r:void 0})}l()}},e.JsMutat ionObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(se lf),function(){function e(e){switch(e){case"&":return"&amp;";case"<":return"&lt; ";case">":return"&gt;";case" ":return"&nbsp;"}}function t(t){return t.replace(l, e)}var n="undefined"==typeof HTMLTemplateElement,o=function(){if(!n){var e=docum ent.createDocumentFragment(),t=document.createElement("template");e.appendChild( t),t.content.appendChild(document.createElement("div"));var o=e.cloneNode(!0);re turn 0===o.firstChild.content.childNodes.length}}(),r="template",i=function(){}; if(n){var a=document.implementation.createHTMLDocument("template"),s=!0,c=docume nt.createElement("style");c.textContent=r+"{display:none;}";var d=document.head; d.insertBefore(c,d.firstElementChild),i.prototype=Object.create(HTMLElement.prot otype),i.decorate=function(e){if(!e.content){e.content=a.createDocumentFragment( );for(var n;n=e.firstChild;)e.content.appendChild(n);if(s)try{Object.definePrope rty(e,"innerHTML",{get:function(){for(var e="",n=this.content.firstChild;n;n=n.n extSibling)e+=n.outerHTML||t(n.data);return e},set:function(e){for(a.body.innerH TML=e,i.bootstrap(a);this.content.firstChild;)this.content.removeChild(this.cont ent.firstChild);for(;a.body.firstChild;)this.content.appendChild(a.body.firstChi ld)},configurable:!0}),e.cloneNode=function(e){return i.cloneNode(this,e)}}catch (o){s=!1}i.bootstrap(e.content)}},i.bootstrap=function(e){for(var t,n=e.querySel ectorAll(r),o=0,a=n.length;a>o&&(t=n[o]);o++)i.decorate(t)},document.addEventLis tener("DOMContentLoaded",function(){i.bootstrap(document)});var u=document.creat eElement;document.createElement=function(){"use strict";var e=u.apply(document,a rguments);return"template"==e.localName&&i.decorate(e),e};var l=/[&\u00A0<>]/g}i f(n||o){var h=Node.prototype.cloneNode;i.cloneNode=function(e,t){var n=h.call(e) ;return this.decorate&&this.decorate(n),t&&(n.content.appendChild(h.call(e.conte nt,!0)),this.fixClonedDom(n.content,e.content)),n},i.fixClonedDom=function(e,t){ for(var n,o,i=t.querySelectorAll(r),a=e.querySelectorAll(r),s=0,c=a.length;c>s;s ++)o=i[s],n=a[s],this.decorate&&this.decorate(o),n.parentNode.replaceChild(o.clo neNode(!0),n)};var f=document.importNode;Node.prototype.cloneNode=function(e){va r t=h.call(this,e);return e&&i.fixClonedDom(t,this),t},document.importNode=funct ion(e,t){if(e.localName===r)return i.cloneNode(e,t);var n=f.call(document,e,t);r eturn t&&i.fixClonedDom(n,e),n},o&&(HTMLTemplateElement.prototype.cloneNode=func tion(e){return i.cloneNode(this,e)})}n&&(HTMLTemplateElement=i)}(),function(e){" use strict";if(!window.performance){var t=Date.now();window.performance={now:fun ction(){return Date.now()-t}}}window.requestAnimationFrame||(window.requestAnima tionFrame=function(){var e=window.webkitRequestAnimationFrame||window.mozRequest AnimationFrame;return e?function(t){return e(function(){t(performance.now())})}: function(e){return window.setTimeout(e,1e3/60)}}()),window.cancelAnimationFrame| |(window.cancelAnimationFrame=function(){return window.webkitCancelAnimationFram e||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}}());var n=functi on(){var e=document.createEvent("Event");return e.initEvent("foo",!0,!0),e.preve ntDefault(),e.defaultPrevented}();if(!n){var o=Event.prototype.preventDefault;Ev ent.prototype.preventDefault=function(){this.cancelable&&(o.call(this),Object.de fineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}) )}}var r=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||r&&"functi on"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n =document.createEvent("CustomEvent");return n.initCustomEvent(e,Boolean(t.bubble s),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event. prototype),!window.Event||r&&"function"!=typeof window.Event){var i=window.Event ;window.Event=function(e,t){t=t||{};var n=document.createEvent("Event");return n .initEvent(e,Boolean(t.bubbles),Boolean(t.cancelable)),n},window.Event.prototype =i.prototype}}(window.WebComponents),window.HTMLImports=window.HTMLImports||{fla gs:{}},function(e){function t(e,t){t=t||p,o(function(){i(e,t)},t)}function n(e){ return"complete"===e.readyState||e.readyState===w}function o(e,t){if(n(t))e&&e() ;else{var r=function(){("complete"===t.readyState||t.readyState===w)&&(t.removeE ventListener(_,r),o(e,t))};t.addEventListener(_,r)}}function r(e){e.target.__loa ded=!0}function i(e,t){function n(){c==d&&e&&e({allImports:s,loadedImports:u,err orImports:l})}function o(e){r(e),u.push(this),c++,n()}function i(e){l.push(this) ,c++,n()}var s=t.querySelectorAll("link[rel=import]"),c=0,d=s.length,u=[],l=[];i f(d)for(var h,f=0;d>f&&(h=s[f]);f++)a(h)?(u.push(this),c++,n()):(h.addEventListe ner("load",o),h.addEventListener("error",i));else n()}function a(e){return l?e._ _loaded||e["import"]&&"loading"!==e["import"].readyState:e.__importParsed}functi on s(e){for(var t,n=0,o=e.length;o>n&&(t=e[n]);n++)c(t)&&d(t)}function c(e){retu rn"link"===e.localName&&"import"===e.rel}function d(e){var t=e["import"];t?r({ta rget:e}):(e.addEventListener("load",r),e.addEventListener("error",r))}var u="imp ort",l=Boolean(u in document.createElement("link")),h=Boolean(window.ShadowDOMPo lyfill),f=function(e){return h?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},p=f(d ocument),m={get:function(){var e=window.HTMLImports.currentScript||document.curr entScript||("complete"!==document.readyState?document.scripts[document.scripts.l ength-1]:null);return f(e)},configurable:!0};Object.defineProperty(document,"_cu rrentScript",m),Object.defineProperty(p,"_currentScript",m);var v=/Trident/.test (navigator.userAgent),w=v?"complete":"interactive",_="readystatechange";l&&(new MutationObserver(function(e){for(var t,n=0,o=e.length;o>n&&(t=e[n]);n++)t.addedN odes&&s(t.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loa ding"===document.readyState)for(var e,t=document.querySelectorAll("link[rel=impo rt]"),n=0,o=t.length;o>n&&(e=t[n]);n++)d(e)}()),t(function(e){window.HTMLImports .ready=!0,window.HTMLImports.readyTime=(new Date).getTime();var t=p.createEvent( "CustomEvent");t.initCustomEvent("HTMLImportsLoaded",!0,!0,e),p.dispatchEvent(t) }),e.IMPORT_LINK_TYPE=u,e.useNative=l,e.rootDocument=p,e.whenReady=t,e.isIE=v}(w indow.HTMLImports),function(e){var t=[],n=function(e){t.push(e)},o=function(){t. forEach(function(t){t(e)})};e.addModule=n,e.initializeModules=o}(window.HTMLImpo rts),window.HTMLImports.addModule(function(e){var t=/(url\()([^)]*)(\))/g,n=/(@i mport[\s]+(?!url\())([^;]*)(;)/g,o={resolveUrlsInStyle:function(e,t){var n=e.own erDocument,o=n.createElement("a");return e.textContent=this.resolveUrlsInCssText (e.textContent,t,o),e},resolveUrlsInCssText:function(e,o,r){var i=this.replaceUr ls(e,r,o,t);return i=this.replaceUrls(i,r,o,n)},replaceUrls:function(e,t,n,o){re turn e.replace(o,function(e,o,r,i){var a=r.replace(/["']/g,"");return n&&(a=new URL(a,n).href),t.href=a,a=t.href,o+"'"+a+"'"+i})}};e.path=o}),window.HTMLImports .addModule(function(e){var t={async:!0,ok:function(e){return e.status>=200&&e.st atus<300||304===e.status||0===e.status},load:function(n,o,r){var i=new XMLHttpRe quest;return(e.flags.debug||e.flags.bust)&&(n+="?"+Math.random()),i.open("GET",n ,t.async),i.addEventListener("readystatechange",function(e){if(4===i.readyState) {var n=null;try{var a=i.getResponseHeader("Location");a&&(n="/"===a.substr(0,1)? location.origin+a:a)}catch(e){console.error(e.message)}o.call(r,!t.ok(i)&&i,i.re sponse||i.responseText,n)}}),i.send(),i},loadDocument:function(e,t,n){this.load( e,t,n).responseType="document"}};e.xhr=t}),window.HTMLImports.addModule(function (e){var t=e.xhr,n=e.flags,o=function(e,t){this.cache={},this.onload=e,this.oncom plete=t,this.inflight=0,this.pending={}};o.prototype={addNodes:function(e){this. inflight+=e.length;for(var t,n=0,o=e.length;o>n&&(t=e[n]);n++)this.require(t);th is.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkDo ne()},require:function(e){var t=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||th is.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])return this.pending[e].pu sh(t),!0;return this.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(t his.pending[e]=[t],!1)},fetch:function(e,o){if(n.load&&console.log("fetch",e,o), e)if(e.match(/^data:/)){var r=e.split(","),i=r[0],a=r[1];a=i.indexOf(";base64")> -1?atob(a):decodeURIComponent(a),setTimeout(function(){this.receive(e,o,null,a)} .bind(this),0)}else{var s=function(t,n,r){this.receive(e,o,t,n,r)}.bind(this);t. load(e,s)}else setTimeout(function(){this.receive(e,o,{error:"href must be speci fied"},null)}.bind(this),0)},receive:function(e,t,n,o,r){this.cache[e]=o;for(var i,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onload(e,i,o,n,r),thi s.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()} ,checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=o}),window.HTM LImports.addModule(function(e){var t=function(e){this.addCallback=e,this.mo=new MutationObserver(this.handler.bind(this))};t.prototype={handler:function(e){for( var t,n=0,o=e.length;o>n&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length &&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.a ddCallback(e);for(var t,n=0,o=e.length;o>n&&(t=e[n]);n++)t.children&&t.children. length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{chil dList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e){ function t(e){return"link"===e.localName&&e.rel===u}function n(e){var t=o(e);ret urn"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}function o(e){ret urn e.textContent+r(e)}function r(e){var t=e.ownerDocument;t.__importedScripts=t .__importedScripts||0;var n=e.ownerDocument.baseURI,o=t.__importedScripts?"-"+t. __importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+n+o+".js\n" }function i(e){var t=e.ownerDocument.createElement("style");return t.textContent =e.textContent,a.resolveUrlsInStyle(t),t}var a=e.path,s=e.rootDocument,c=e.flags ,d=e.isIE,u=e.IMPORT_LINK_TYPE,l="link[rel="+u+"]",h={documentSelectors:l,import sSelectors:[l,"link[rel=stylesheet]:not([type])","style:not([type])","script:not ([type])",'script[type="application/javascript"]','script[type="text/javascript" ]'].join(","),map:{link:"parseLink",script:"parseScript",style:"parseStyle"},dyn amicElements:[],parseNext:function(){var e=this.nextToParse();e&&this.parse(e)}, parse:function(e){if(this.isParsed(e))return void(c.parse&&console.log("[%s] is already parsed",e.localName));var t=this[this.map[e.localName]];t&&(this.markPar sing(e),t.call(this,e))},parseDynamic:function(e,t){this.dynamicElements.push(e) ,t||this.parseNext()},markParsing:function(e){c.parse&&console.log("parsing",e), this.parsingElement=e},markParsingComplete:function(e){e.__importParsed=!0,this. markDynamicParsingComplete(e),e.__importElement&&(e.__importElement.__importPars ed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=nu ll,c.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e){v ar t=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},par seImport:function(e){if(e["import"]=e.__doc,window.HTMLImports.__importsParsingH ook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__impo rtParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEven t(new CustomEvent("load",{bubbles:!1})):e.dispatchEvent(new CustomEvent("error", {bubbles:!1})),e.__pending)for(var t;e.__pending.length;)t=e.__pending.shift(),t &&t({target:e});this.parseNext()},parseLink:function(e){t(e)?this.parseImport(e) :(e.href=e.href,this.parseGeneric(e))},parseStyle:function(e){var t=e;e=i(e),t._ _appliedElement=e,e.__importElement=t,this.parseGeneric(e)},parseGeneric:functio n(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:fun ction(e){for(var t=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLin k;return t},addElementToDocument:function(e){var t=this.rootImportForElement(e._ _importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){va r n=this,o=function(r){e.removeEventListener("load",o),e.removeEventListener("er ror",o),t&&t(r),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("l oad",o),e.addEventListener("error",o),d&&"style"===e.localName){var r=!1;if(-1== e.textContent.indexOf("@import"))r=!0;else if(e.sheet){r=!0;for(var i,a=e.sheet. cssRules,s=a?a.length:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRule.IMPORT_RULE&&(r=r &&Boolean(i.styleSheet))}r&&setTimeout(function(){e.dispatchEvent(new CustomEven t("load",{bubbles:!1}))})}},parseScript:function(t){var o=document.createElement ("script");o.__importElement=t,o.src=t.src?t.src:n(t),e.currentScript=t,this.tra ckElement(o,function(t){o.parentNode&&o.parentNode.removeChild(o),e.currentScrip t=null}),this.addElementToDocument(o)},nextToParse:function(){return this._mayPa rse=[],!this.parsingElement&&(this.nextToParseInDoc(s)||this.nextToParseDynamic( ))},nextToParseInDoc:function(e,n){if(e&&this._mayParse.indexOf(e)<0){this._mayP arse.push(e);for(var o,r=e.querySelectorAll(this.parseSelectorsForNode(e)),i=0,a =r.length;a>i&&(o=r[i]);i++)if(!this.isParsed(o))return this.hasResource(o)?t(o) ?this.nextToParseInDoc(o.__doc,o):o:void 0}return n},nextToParseDynamic:function (){return this.dynamicElements[0]},parseSelectorsForNode:function(e){var t=e.own erDocument||e;return t===s?this.documentSelectors:this.importsSelectors},isParse d:function(e){return e.__importParsed},needsDynamicParsing:function(e){return th is.dynamicElements.indexOf(e)>=0},hasResource:function(e){return t(e)&&void 0=== e.__doc?!1:!0}};e.parser=h,e.IMPORT_SELECTOR=l}),window.HTMLImports.addModule(fu nction(e){function t(e){return n(e,a)}function n(e,t){return"link"===e.localName &&e.getAttribute("rel")===t}function o(e){return!!Object.getOwnPropertyDescripto r(e,"baseURI")}function r(e,t){var n=document.implementation.createHTMLDocument( a);n._URL=t;var r=n.createElement("base");r.setAttribute("href",t),n.baseURI||o( n)||Object.defineProperty(n,"baseURI",{value:t});var i=n.createElement("meta");r eturn i.setAttribute("charset","utf-8"),n.head.appendChild(i),n.head.appendChild (r),n.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap &&HTMLTemplateElement.bootstrap(n),n}var i=e.flags,a=e.IMPORT_LINK_TYPE,s=e.IMPO RT_SELECTOR,c=e.rootDocument,d=e.Loader,u=e.Observer,l=e.parser,h={documents:{}, documentPreloadSelectors:s,importsPreloadSelectors:[s].join(","),loadNode:functi on(e){f.addNode(e)},loadSubtree:function(e){var t=this.marshalNodes(e);f.addNode s(t)},marshalNodes:function(e){return e.querySelectorAll(this.loadSelectorsForNo de(e))},loadSelectorsForNode:function(e){var t=e.ownerDocument||e;return t===c?t his.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,n,o ,a,s){if(i.load&&console.log("loaded",e,n),n.__resource=o,n.__error=a,t(n)){var c=this.documents[e];void 0===c&&(c=a?null:r(o,s||e),c&&(c.__importLink=n,this.bo otDocument(c)),this.documents[e]=c),n.__doc=c}l.parseNext()},bootDocument:functi on(e){this.loadSubtree(e),this.observer.observe(e),l.parseNext()},loadedAll:func tion(){l.parseNext()}},f=new d(h.loaded.bind(h),h.loadedAll.bind(h));if(h.observ er=new u,!document.baseURI){var p={get:function(){var e=document.querySelector(" base");return e?e.href:window.location.href},configurable:!0};Object.definePrope rty(document,"baseURI",p),Object.defineProperty(c,"baseURI",p)}e.importer=h,e.im portLoader=f}),window.HTMLImports.addModule(function(e){var t=e.parser,n=e.impor ter,o={added:function(e){for(var o,r,i,a,s=0,c=e.length;c>s&&(a=e[s]);s++)o||(o= a.ownerDocument,r=t.isParsed(o)),i=this.shouldLoadNode(a),i&&n.loadNode(a),this. shouldParseNode(a)&&r&&t.parseDynamic(a,i)},shouldLoadNode:function(e){return 1= ==e.nodeType&&r.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){r eturn 1===e.nodeType&&r.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallb ack=o.added.bind(o);var r=HTMLElement.prototype.matches||HTMLElement.prototype.m atchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototy pe.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){fun ction t(){window.HTMLImports.importer.bootDocument(o)}var n=e.initializeModules; e.isIE;if(!e.useNative){n();var o=e.rootDocument;"complete"===document.readyStat e||"interactive"===document.readyState&&!window.attachEvent?t():document.addEven tListener("DOMContentLoaded",t)}}(window.HTMLImports),window.CustomElements=wind ow.CustomElements||{flags:{}},function(e){var t=e.flags,n=[],o=function(e){n.pus h(e)},r=function(){n.forEach(function(t){t(e)})};e.addModule=o,e.initializeModul es=r,e.hasNative=Boolean(document.registerElement),e.isIE=/Trident/.test(navigat or.userAgent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&( !window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),windo w.CustomElements.addModule(function(e){function t(e,t){n(e,function(e){return t( e)?!0:void o(e,t)}),o(e,t)}function n(e,t,o){var r=e.firstElementChild;if(!r)for (r=e.firstChild;r&&r.nodeType!==Node.ELEMENT_NODE;)r=r.nextSibling;for(;r;)t(r,o )!==!0&&n(r,t,o),r=r.nextElementSibling;return null}function o(e,n){for(var o=e. shadowRoot;o;)t(o,n),o=o.olderShadowRoot}function r(e,t){i(e,t,[])}function i(e, t,n){if(e=window.wrap(e),!(n.indexOf(e)>=0)){n.push(e);for(var o,r=e.querySelect orAll("link[rel="+a+"]"),s=0,c=r.length;c>s&&(o=r[s]);s++)o["import"]&&i(o["impo rt"],t,n);t(e)}}var a=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"no ne";e.forDocumentTree=r,e.forSubtree=t}),window.CustomElements.addModule(functio n(e){function t(e,t){return n(e,t)||o(e,t)}function n(t,n){return e.upgrade(t,n) ?!0:void(n&&a(t))}function o(e,t){g(e,function(e){return n(e,t)?!0:void 0})}func tion r(e){L.push(e),E||(E=!0,setTimeout(i))}function i(){E=!1;for(var e,t=L,n=0, o=t.length;o>n&&(e=t[n]);n++)e();L=[]}function a(e){y?r(function(){s(e)}):s(e)}f unction s(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback& &e.attachedCallback())}function c(e){d(e),g(e,function(e){d(e)})}function d(e){y ?r(function(){u(e)}):u(e)}function u(e){e.__upgraded__&&e.__attached&&(e.__attac hed=!1,e.detachedCallback&&e.detachedCallback())}function l(e){for(var t=e,n=win dow.wrap(document);t;){if(t==n)return!0;
12 t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function h(e){ if(e.shadowRoot&&!e.shadowRoot.__watched){_.dom&&console.log("watching shadow-ro ot for: ",e.localName);for(var t=e.shadowRoot;t;)m(t),t=t.olderShadowRoot}}funct ion f(e,n){if(_.dom){var o=n[0];if(o&&"childList"===o.type&&o.addedNodes&&o.adde dNodes){for(var r=o.addedNodes[0];r&&r!==document&&!r.host;)r=r.parentNode;var i =r&&(r.URL||r._URL||r.host&&r.host.localName)||"";i=i.split("/?").shift().split( "/").pop()}console.group("mutations (%d) [%s]",n.length,i||"")}var a=l(e);n.forE ach(function(e){"childList"===e.type&&(N(e.addedNodes,function(e){e.localName&&t (e,a)}),N(e.removedNodes,function(e){e.localName&&c(e)}))}),_.dom&&console.group End()}function p(e){for(e=window.wrap(e),e||(e=window.wrap(document));e.parentNo de;)e=e.parentNode;var t=e.__observer;t&&(f(e,t.takeRecords()),i())}function m(e ){if(!e.__observer){var t=new MutationObserver(f.bind(this,e));t.observe(e,{chil dList:!0,subtree:!0}),e.__observer=t}}function v(e){e=window.wrap(e),_.dom&&cons ole.group("upgradeDocument: ",e.baseURI.split("/").pop());var n=e===window.wrap( document);t(e,n),m(e),_.dom&&console.groupEnd()}function w(e){b(e,v)}var _=e.fla gs,g=e.forSubtree,b=e.forDocumentTree,y=window.MutationObserver._isPolyfilled&&_ ["throttle-attached"];e.hasPolyfillMutations=y,e.hasThrottledAttached=y;var E=!1 ,L=[],N=Array.prototype.forEach.call.bind(Array.prototype.forEach),M=Element.pro totype.createShadowRoot;M&&(Element.prototype.createShadowRoot=function(){var e= M.call(this);return window.CustomElements.watchShadow(this),e}),e.watchShadow=h, e.upgradeDocumentTree=w,e.upgradeDocument=v,e.upgradeSubtree=o,e.upgradeAll=t,e. attached=a,e.takeRecords=p}),window.CustomElements.addModule(function(e){functio n t(t,o){if("template"===t.localName&&window.HTMLTemplateElement&&HTMLTemplateEl ement.decorate&&HTMLTemplateElement.decorate(t),!t.__upgraded__&&t.nodeType===No de.ELEMENT_NODE){var r=t.getAttribute("is"),i=e.getRegisteredDefinition(t.localN ame)||e.getRegisteredDefinition(r);if(i&&(r&&i.tag==t.localName||!r&&!i["extends "]))return n(t,i,o)}}function n(t,n,r){return a.upgrade&&console.group("upgrade: ",t.localName),n.is&&t.setAttribute("is",n.is),o(t,n),t.__upgraded__=!0,i(t),r&& e.attached(t),e.upgradeSubtree(t,r),a.upgrade&&console.groupEnd(),t}function o(e ,t){Object.__proto__?e.__proto__=t.prototype:(r(e,t.prototype,t["native"]),e.__p roto__=t.prototype)}function r(e,t,n){for(var o={},r=t;r!==n&&r!==HTMLElement.pr ototype;){for(var i,a=Object.getOwnPropertyNames(r),s=0;i=a[s];s++)o[i]||(Object .defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i)),o[i]=1);r=Object.getPr ototypeOf(r)}}function i(e){e.createdCallback&&e.createdCallback()}var a=e.flags ;e.upgrade=t,e.upgradeWithDefinition=n,e.implementPrototype=o}),window.CustomEle ments.addModule(function(e){function t(t,o){var c=o||{};if(!t)throw new Error("d ocument.registerElement: first argument `name` must not be empty");if(t.indexOf( "-")<0)throw new Error("document.registerElement: first argument ('name') must c ontain a dash ('-'). Argument provided was '"+String(t)+"'.");if(r(t))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed fo r type '"+String(t)+"'. The type name is invalid.");if(d(t))throw new Error("Dup licateDefinitionError: a type with name '"+String(t)+"' is already registered"); return c.prototype||(c.prototype=Object.create(HTMLElement.prototype)),c.__name= t.toLowerCase(),c.lifecycle=c.lifecycle||{},c.ancestry=i(c["extends"]),a(c),s(c) ,n(c.prototype),u(c.__name,c),c.ctor=l(c),c.ctor.prototype=c.prototype,c.prototy pe.constructor=c.ctor,e.ready&&w(document),c.ctor}function n(e){if(!e.setAttribu te._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,n){o.call(this,e, n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){o.call(this,e,null,n )},e.setAttribute._polyfilled=!0}}function o(e,t,n){e=e.toLowerCase();var o=this .getAttribute(e);n.apply(this,arguments);var r=this.getAttribute(e);this.attribu teChangedCallback&&r!==o&&this.attributeChangedCallback(e,o,r)}function r(e){for (var t=0;t<E.length;t++)if(e===E[t])return!0}function i(e){var t=d(e);return t?i (t["extends"]).concat([t]):[]}function a(e){for(var t,n=e["extends"],o=0;t=e.anc estry[o];o++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}function s(e){if (!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.createEl ement(e.tag);t=Object.getPrototypeOf(n)}for(var o,r=e.prototype,i=!1;r;)r==t&&(i =!0),o=Object.getPrototypeOf(r),o&&(r.__proto__=o),r=o;i||console.warn(e.tag+" p rototype not found in prototype chain for "+e.is),e["native"]=t}}function c(e){r eturn g(M(e.tag),e)}function d(e){return e?L[e.toLowerCase()]:void 0}function u( e,t){L[e]=t}function l(e){return function(){return c(e)}}function h(e,t,n){retur n e===N?f(t,n):T(e,t)}function f(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase ());var n=d(t||e);if(n){if(e==n.tag&&t==n.is)return new n.ctor;if(!t&&!n.is)retu rn new n.ctor}var o;return t?(o=f(e),o.setAttribute("is",t),o):(o=M(e),e.indexOf ("-")>=0&&b(o,HTMLElement),o)}function p(e,t){var n=e[t];e[t]=function(){var e=n .apply(this,arguments);return _(e),e}}var m,v=e.isIE,w=e.upgradeDocumentTree,_=e .upgradeAll,g=e.upgradeWithDefinition,b=e.implementPrototype,y=e.useNative,E=["a nnotation-xml","color-profile","font-face","font-face-src","font-face-uri","font -face-format","font-face-name","missing-glyph"],L={},N="http://www.w3.org/1999/x html",M=document.createElement.bind(document),T=document.createElementNS.bind(do cument);m=Object.__proto__||y?function(e,t){return e instanceof t}:function(e,t) {if(e instanceof t)return!0;for(var n=e;n;){if(n===t.prototype)return!0;n=n.__pr oto__}return!1},p(Node.prototype,"cloneNode"),p(document,"importNode"),v&&!funct ion(){var e=document.importNode;document.importNode=function(){var t=e.apply(doc ument,arguments);if(t.nodeType==t.DOCUMENT_FRAGMENT_NODE){var n=document.createD ocumentFragment();return n.appendChild(t),n}return t}}(),document.registerElemen t=t,document.createElement=f,document.createElementNS=h,e.registry=L,e["instance of"]=m,e.reservedTagList=E,e.getRegisteredDefinition=d,document.register=documen t.registerElement}),function(e){function t(){i(window.wrap(document)),window.Cus tomElements.ready=!0;var e=window.requestAnimationFrame||function(e){setTimeout( e,16)};e(function(){setTimeout(function(){window.CustomElements.readyTime=Date.n ow(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.re adyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("We bComponentsReady",{bubbles:!0}))})})}var n=e.useNative,o=e.initializeModules;e.i sIE;if(n){var r=function(){};e.watchShadow=r,e.upgrade=r,e.upgradeAll=r,e.upgrad eDocumentTree=r,e.upgradeSubtree=r,e.takeRecords=r,e["instanceof"]=function(e,t) {return e instanceof t}}else o();var i=e.upgradeDocumentTree,a=e.upgradeDocument ;if(window.wrap||(window.ShadowDOMPolyfill?(window.wrap=window.ShadowDOMPolyfill .wrapIfNeeded,window.unwrap=window.ShadowDOMPolyfill.unwrapIfNeeded):window.wrap =window.unwrap=function(e){return e}),window.HTMLImports&&(window.HTMLImports.__ importsParsingHook=function(e){e["import"]&&a(wrap(e["import"]))}),"complete"=== document.readyState||e.flags.eager)t();else if("interactive"!==document.readySta te||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var s=win dow.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded ";window.addEventListener(s,t)}else t()}(window.CustomElements),function(e){var t=document.createElement("style");t.textContent="body {transition: opacity ease- in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; pos ition: relative; } \n";var n=document.querySelector("head");n.insertBefore(t,n.f irstChild)}(window.WebComponents);
OLDNEW
« no previous file with comments | « packages/web_components/lib/webcomponents-lite.js ('k') | packages/web_components/lib/webcomponents.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698