this._warn(this._logf('_prepTemplate','top-level Polymer template '+'must not be a type-extension, found',this._template,'Move inside simple <template>.'));
* 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
*/
// @version 0.7.17
!function(){window.WebComponents=window.WebComponents||{flags:{}};vare="webcomponents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){if(location.search.slice(1).split("&").forEach(function(e){vart,r=e.split("=");r[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(varr,o=0;r=t.attributes[o];o++)"src"!==r.name&&(n[r.name]=r.value||!0);if(n.log&&n.log.split){vari=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}elsen.log={}}n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=n.register),WebComponents.flags=n}(),function(e){"use strict";functiont(e){returnvoid0!==h[e]}functionn(){s.call(this),this._isInvalid=!0}functionr(e){return""==e&&n.call(this),e.toLowerCase()}functiono(e){vart=e.charCodeAt(0);returnt>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}functioni(e){vart=e.charCodeAt(0);returnt>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}functiona(e,a,s){functionc(e){g.push(e)}vard=a||"scheme start",u=0,l="",_=!1,w=!1,g=[];e:for(;(e[u-1]!=p||0==u)&&!this._isInvalid;){varb=e[u];switch(d){case"scheme start":if(!b||!m.test(b)){if(a){c("Invalid scheme.");breake}l="",d="no scheme";continue}l+=b.toLowerCase(),d="scheme";break;case"scheme":if(b&&v.test(b))l+=b.toLowerCase();else{if(":"!=b){if(a){if(p==b)breake;c("Code point not allowed in scheme: "+b);breake}l="",u=0,d="no scheme";continue}if(this._scheme=l,l="",a)breake;t(this._scheme)&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRelative&&s&&s._scheme==this._scheme?"relative or authority":this._isRelative?"authority first 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+=o(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._scheme&&(this._scheme=s._scheme),p==b){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;breake}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point."),d="relative slash";elseif("?"==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){vary=e[u+1],E=e[u+2];("file"!=this._scheme||!m.test(b)||":"!=y&&"|"!=y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,d="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(this._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"authority first slash":if("/"!=b){c("Expected '/', got: "+b),d="authority ignore slashes";continue}d="authority second slash";break;case"authority second slash":if(d="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){d="authority";continue}c("Expected authority, got: "+b);break;case"authority":if("@"==b){_&&(c("@ already seen."),l+="%40"),_=!0;for(varL=0;L<l.length;L++){varT=l[L];if(""!=T&&"\n"!=T&&"\r"!=T)if(":"!=T||null!==this._password){varM=o(T);null!==this._password?this._password+=M:this._username+=M}elsethis._password="";elsec("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="relative path start":(this._host=r.call(this,l),l="",d="relative path start"):d="relative path";continue}""==b||"\n"==b||"\r"==b?c("Invalid whitespace in file host."):l+=b;break;case"host":case"hostname":if(":"!=b||w){if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this._host=r.call(this,l),l="",d="relative path start",a)breake;continue}""!=b&&"\n"!=b&&"\r"!=b?("["==b?w=!0:"]"==b&&(w=!1),l+=b):c("Invalid code point in host/hostname: "+b)}elseif(this._host=r.call(this,l),l="",d="port","hostname"==a)breake;break;case"port":if(/[0-9]/.test(b))l+=b;else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||a){if(""!=l){varN=parseInt(l,10);N!=h[this._scheme]&&(this._port=N+""),l=""}if(a)breake;d="relative path start";continue}""==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):n.call(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+=o(b));else{"\\"==b&&c("\\ not allowed in relative path.");varO;(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.length&&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")}break;case"query":a||"#"!=b?p!=b&&""!=b&&"\n"!=b&&"\r"!=b&&(this._query+=i(b)):(this._fragment="#",d="fragment");break;case"fragment":p!=b&&""!=b&&"\n"!=b&&"\r"!=b&&(this._fragment+=b)}u++}}functions(){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}functionc(e,t){void0===t||tinstanceofc||(t=newc(String(t))),this._url=e,s.call(this);varn=e.replace(/^[\t\r\n\f]+|[\t\r\n\f]+$/g,"");a.call(this,n,null,t)}vard=!1;if(!e.forceJURL)try{varu=newURL("b","http://a");u.pathname="c%20d",d="http://a/c%20d"===u.href}catch(l){}if(!d){varh=Object.create(null);h.ftp=21,h.file=0,h.gopher=70,h.http=80,h.https=443,h.ws=80,h.wss=443;varf=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";varp=void0,m=/[a-zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){returnthis.href},gethref(){if(this._isInvalid)returnthis._url;vare="";return(""!=this._username||null!=this._password)&&(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},sethref(e){s.call(this),a.call(this,e)},getprotocol(){returnthis._scheme+":"},setprotocol(e){this._isInvalid||a.call(this,e+":","scheme start")},gethost(){returnthis._isInvalid?"":this._port?this._host+":"+this._port:this._host},sethost(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"host")},gethostname(){returnthis._host},sethostname(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"hostname")},getport(){returnthis._port},setport(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"port")},getpathname(){returnthis._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},setpathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],a.call(this,e,"relative path start"))},getsearch(){returnthis._isInvalid||!this._query||"?"==this._query?"":this._query},setsearch(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},gethash(){returnthis._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},sethash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))},getorigin(){vare;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}returne=this.host,e?this._scheme+"://"+e:""}};var_=e.URL;_&&(c.createObjectURL=function(e){return_.createObjectURL.apply(_,arguments)},c.revokeObjectURL=function(e){_.revokeObjectURL(e)}),e.URL=c}}(self),"undefined"==typeofWeakMap&&!function(){vare=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t+++"__")};n.prototype={set:function(t,n){varr=t[this.name];returnr&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){vart;return(t=e[this.name])&&t[0]===e?t[1]:void0},"delete":function(e){vart=e[this.name];returnt&&t[0]===e?(t[0]=t[1]=void0,!0):!1},has:function(e){vart=e[this.name];returnt?t[0]===e:!1}},window.WeakMap=n}(),function(e){functiont(e){b.push(e),g||(g=!0,m(r))}functionn(e){returnwindow.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}functionr(){g=!1;vare=b;b=[],e.sort(function(e,t){returne.uid_-t.uid_});vart=!1;e.forEach(function(e){varn=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}functiono(e){e.nodes_.forEach(function(t){varn=v.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}functioni(e,t){for(varn=e;n;n=n.parentNode){varr=v.get(n);if(r)for(varo=0;o<r.length;o++){vari=r[o],a=i.options;if(n===e||a.subtree){vars=t(a);s&&i.enqueue(s)}}}}functiona(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}functions(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}functionc(e){vart=news(e.type,e.target);returnt.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}functiond(e,t){returnE=news(e,t)}functionu(e){returnL?L:(L=c(E),L.oldValue=e,L)}functionl(){E=L=void0}functionh(e){returne===L||e===E}functionf(e,t){returne===t?e:L&&h(e)?L:null}functionp(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){varm,v=newWeakMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;elseif(window.setImmediate)m=window.setImmediate;else{var_=[],w=String(Math.random());window.addEventListener("message",function(e){if(e.data===w){vart=_;_=[],t.forEach(function(e){e()})}}),m=function(e){_.push(e),window.postMessage(w,"*")}}varg=!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.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)thrownewSyntaxError;varr=v.get(e);r||v.set(e,r=[]);for(varo,i=0;i<r.length;i++)if(r[i].observer===this){o=r[i],o.removeListeners(),o.options=t;break}o||(o=newp(this,e,t),r.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(vart=v.get(e),n=0;n<t.length;n++){varr=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){vare=this.records_;returnthis.records_=[],e}};varE,L;p.prototype={enqueue:function(e){varn=this.observer.records_,r=n.length;if(n.length>0){varo=n[r-1],i=f(o,e);if(i)returnvoid(n[r-1]=i)}elset(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){vart=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){vart=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&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);vart=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){vare=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(vart=v.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":vart=e.attrName,n=e.relatedNode.namespaceURI,r=e.target,o=newd("attributes",r);o.attributeName=t,o.attributeNamespace=n;vara=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void0:e.attributeOldValue?u(a):o});break;case"DOMCharacterDataModified":varr=e.target,o=d("characterData",r),a=e.prevValue;i(r,function(e){returne.characterData?e.characterDataOldValue?u(a):o:void0});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":vars,c,h=e.target;"DOMNodeInserted"===e.type?(s=[h],c=[]):(s=[],c=[h]);varf=h.previousSibling,p=h.nextSibling,o=d("childList",e.target.parentNode);o.addedNodes=s,o.removedNodes=c,o.previousSibling=f,o.nextSibling=p,i(e.relatedNode,function(e){returne.childList?o:void0})}l()}},e.JsMutationObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(self),"undefined"==typeofHTMLTemplateElement&&!function(){functione(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case"":return" "}}functiont(t){returnt.replace(a,e)}varn="template",r=document.implementation.createHTMLDocument("template"),o=!0;HTMLTemplateElement=function(){},HTMLTemplateElement.prototype=Object.create(HTMLElement.prototype),HTMLTemplateElement.decorate=function(e){e.content||(e.content=r.createDocumentFragment());for(varn;n=e.firstChild;)e.content.appendChild(n);if(o)try{Object.defineProperty(e,"innerHTML",{get:function(){for(vare="",n=this.content.firstChild;n;n=n.nextSibling)e+=n.outerHTML||t(n.data);returne},set:function(e){for(r.body.innerHTML=e,HTMLTemplateElement.bootstrap(r);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;r.body.firstChild;)this.content.appendChild(r.body.firstChild)},configurable:!0})}catch(i){o=!1}},HTMLTemplateElement.bootstrap=function(e){for(vart,r=e.querySelectorAll(n),o=0,i=r.length;i>o&&(t=r[o]);o++)HTMLTemplateElement.decorate(t)},document.addEventListener("DOMContentLoaded",function(){HTMLTemplateElement.bootstrap(document)});vari=document.createElement;document.createElement=function(){"use strict";vare=i.apply(document,arguments);return"template"==e.localName&&HTMLTemplateElement.decorate(e),e};vara=/[&\u00A0<>]/g}(),function(e){"use strict";if(!window.performance){vart=Date.now();window.performance={now:function(){returnDate.now()-t}}}window.requestAnimationFrame||(window.requestAnimationFrame=function(){vare=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;returne?function(t){returne(function(){t(performance.now())})}:function(e){returnwindow.setTimeout(e,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(){returnwindow.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}}());varn=function(){vare=document.createEvent("Event");returne.initEvent("foo",!0,!0),e.preventDefault(),e.defaultPrevented}();if(!n){varr=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(r.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}))}}varo=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||o&&"function"!=typeofwindow.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};varn=document.createEvent("CustomEvent");returnn.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||o&&"function"!=typeofwindow.Event){vari=window.Event;window.Event=function(e,t){t=t||{};varn=document.createEvent("Event");returnn.initEvent(e,Boolean(t.bubbles),Boolean(t.cancelable)),n},window.Event.prototype=i.prototype}}(window.WebComponents),window.HTMLImports=window.HTMLImports||{flags:{}},function(e){functiont(e,t){t=t||p,r(function(){i(e,t)},t)}functionn(e){return"complete"===e.readyState||e.readyState===_}functionr(e,t){if(n(t))e&&e();else{varo=function(){("complete"===t.readyState||t.readyState===_)&&(t.removeEventListener(w,o),r(e,t))};t.addEventListener(w,o)}}functiono(e){e.target.__loaded=!0}functioni(e,t){functionn(){c==d&&e&&e({allImports:s,loadedImports:u,errorImports:l})}functionr(e){o(e),u.push(this),c++,n()}functioni(e){l.push(this),c++,n()}vars=t.querySelectorAll("link[rel=import]"),c=0,d=s.length,u=[],l=[];if(d)for(varh,f=0;d>f&&(h=s[f]);f++)a(h)?(c++,n()):(h.addEventListener("load",r),h.addEventListener("error",i));elsen()}functiona(e){returnl?e.__loaded||e["import"]&&"loading"!==e["import"].readyState:e.__importParsed}functions(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)c(t)&&d(t)}functionc(e){return"link"===e.localName&&"import"===e.rel}functiond(e){vart=e["import"];t?o({target:e}):(e.addEventListener("load",o),e.addEventListener("error",o))}varu="import",l=Boolean(uindocument.createElement("link")),h=Boolean(window.ShadowDOMPolyfill),f=function(e){returnh?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},p=f(document),m={get:function(){vare=window.HTMLImports.currentScript||document.currentScript||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null);returnf(e)},configurable:!0};Object.defineProperty(document,"_currentScript",m),Object.defineProperty(p,"_currentScript",m);varv=/Trident/.test(navigator.userAgent),_=v?"complete":"interactive",w="readystatechange";l&&(newMutationObserver(function(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)t.addedNodes&&s(t.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===document.readyState)for(vare,t=document.querySelectorAll("link[rel=import]"),n=0,r=t.length;r>n&&(e=t[n]);n++)d(e)}()),t(function(e){window.HTMLImports.ready=!0,window.HTMLImports.readyTime=(newDate).getTime();vart=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}(window.HTMLImports),function(e){vart=[],n=function(e){t.push(e)},r=function(){t.forEach(function(t){t(e)})};e.addModule=n,e.initializeModules=r}(window.HTMLImports),window.HTMLImports.addModule(function(e){vart=/(url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInStyle:function(e,t){varn=e.ownerDocument,r=n.createElement("a");returne.textContent=this.resolveUrlsInCssText(e.textContent,t,r),e},resolveUrlsInCssText:function(e,r,o){vari=this.replaceUrls(e,o,r,t);returni=this.replaceUrls(i,o,r,n)},replaceUrls:function(e,t,n,r){returne.replace(r,function(e,r,o,i){vara=o.replace(/["']/g,"");returnn&&(a=newURL(a,n).href),t.href=a,a=t.href,r+"'"+a+"'"+i})}};e.path=r}),window.HTMLImports.addModule(function(e){vart={async:!0,ok:function(e){returne.status>=200&&e.status<300||304===e.status||0===e.status},load:function(n,r,o){vari=newXMLHttpRequest;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){varn=null;try{vara=i.getResponseHeader("Location");a&&(n="/"===a.substr(0,1)?location.origin+a:a)}catch(e){console.error(e.message)}r.call(o,!t.ok(i)&&i,i.response||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){vart=e.xhr,n=e.flags,r=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={addNodes:function(e){this.inflight+=e.length;for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkDone()},require:function(e){vart=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])returnthis.pending[e].push(t),!0;returnthis.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&console.log("fetch",e,r),e)if(e.match(/^data:/)){varo=e.split(","),i=o[0],a=o[1];a=i.indexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.receive(e,r,null,a)}.bind(this),0)}else{vars=function(t,n,o){this.receive(e,r,t,n,o)}.bind(this);t.load(e,s)}elsesetTimeout(function(){this.receive(e,r,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){this.cache[e]=r;for(vari,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onload(e,i,r,n,o),this.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=r}),window.HTMLImports.addModule(function(e){vart=function(e){this.addCallback=e,this.mo=newMutationObserver(this.handler.bind(this))};t.prototype={handler:function(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCallback(e);for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children&&t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{childList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e){functiont(e){return"link"===e.localName&&e.rel===u}functionn(e){vart=r(e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}functionr(e){returne.textContent+o(e)}functiono(e){vart=e.ownerDocument;t.__importedScripts=t.__importedScripts||0;varn=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t.__importedScripts:"";returnt.__importedScripts++,"\n//# sourceURL="+n+r+".js\n"}functioni(e){vart=e.ownerDocument.createElement("style");returnt.textContent=e.textContent,a.resolveUrlsInStyle(t),t}vara=e.path,s=e.rootDocument,c=e.flags,d=e.isIE,u=e.IMPORT_LINK_TYPE,l="link[rel="+u+"]",h={documentSelectors:l,importsSelectors:[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"},dynamicElements:[],parseNext:function(){vare=this.nextToParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))returnvoid(c.parse&&console.log("[%s] is already parsed",e.localName));vart=this[this.map[e.localName]];t&&(this.markParsing(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.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=null,c.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e){vart=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},parseImport:function(e){if(e["import"]=e.__doc,window.HTMLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEvent(newCustomEvent("load",{bubbles:!1})):e.dispatchEvent(newCustomEvent("error",{bubbles:!1})),e.__pending)for(vart;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){vart=e;e=i(e),t.__appliedElement=e,e.__importElement=t,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:function(e){for(vart=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLink;returnt},addElementToDocument:function(e){vart=this.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){varn=this,r=function(o){e.removeEventListener("load",r),e.removeEventListener("error",r),t&&t(o),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("load",r),e.addEventListener("error",r),d&&"style"===e.localName){varo=!1;if(-1==e.textContent.indexOf("@import"))o=!0;elseif(e.sheet){o=!0;for(vari,a=e.sheet.cssRules,s=a?a.length:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRule.IMPORT_RULE&&(o=o&&Boolean(i.styleSheet))}o&&setTimeout(function(){e.dispatchEvent(newCustomEvent("load",{bubbles:!1}))})}},parseScript:function(t){varr=document.createElement("script");r.__importElement=t,r.src=t.src?t.src:n(t),e.currentScript=t,this.trackElement(r,function(t){r.parentNode&&r.parentNode.removeChild(r),e.currentScript=null}),this.addElementToDocument(r)},nextToParse:function(){returnthis._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(s)||this.nextToParseDynamic())},nextToParseInDoc:function(e,n){if(e&&this._mayParse.indexOf(e)<0){this._mayParse.push(e);for(varr,o=e.querySelectorAll(this.parseSelectorsForNode(e)),i=0,a=o.length;a>i&&(r=o[i]);i++)if(!this.isParsed(r))returnthis.hasResource(r)?t(r)?this.nextToParseInDoc(r.__doc,r):r:void0}returnn},nextToParseDynamic:function(){returnthis.dynamicElements[0]},parseSelectorsForNode:function(e){vart=e.ownerDocument||e;returnt===s?this.documentSelectors:this.importsSelectors},isParsed:function(e){returne.__importParsed},needsDynamicParsing:function(e){returnthis.dynamicElements.indexOf(e)>=0},hasResource:function(e){returnt(e)&&void0===e.__doc?!1:!0}};e.parser=h,e.IMPORT_SELECTOR=l}),window.HTMLImports.addModule(function(e){functiont(e){returnn(e,a)}functionn(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}functionr(e){return!!Object.getOwnPropertyDescriptor(e,"baseURI")}functiono(e,t){varn=document.implementation.createHTMLDocument(a);n._URL=t;varo=n.createElement("base");o.setAttribute("href",t),n.baseURI||r(n)||Object.defineProperty(n,"baseURI",{value:t});vari=n.createElement("meta");returni.setAttribute("charset","utf-8"),n.head.appendChild(i),n.head.appendChild(o),n.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}vari=e.flags,a=e.IMPORT_LINK_TYPE,s=e.IMPORT_SELECTOR,c=e.rootDocument,d=e.Loader,u=e.Observer,l=e.parser,h={documents:{},documentPreloadSelectors:s,importsPreloadSelectors:[s].join(","),loadNode:function(e){f.addNode(e)},loadSubtree:function(e){vart=this.marshalNodes(e);f.addNodes(t)},marshalNodes:function(e){returne.querySelectorAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){vart=e.ownerDocument||e;returnt===c?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,n,r,a,s){if(i.load&&console.log("loaded",e,n),n.__resource=r,n.__error=a,t(n)){varc=this.documents[e];void0===c&&(c=a?null:o(r,s||e),c&&(c.__importLink=n,this.bootDocument(c)),this.documents[e]=c),n.__doc=c}l.parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),l.parseNext()},loadedAll:function(){l.parseNext()}},f=newd(h.loaded.bind(h),h.loadedAll.bind(h));if(h.observer=newu,!document.baseURI){varp={get:function(){vare=document.querySelector("base");returne?e.href:window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",p),Object.defineProperty(c,"baseURI",p)}e.importer=h,e.importLoader=f}),window.HTMLImports.addModule(function(e){vart=e.parser,n=e.importer,r={added:function(e){for(varr,o,i,a,s=0,c=e.length;c>s&&(a=e[s]);s++)r||(r=a.ownerDocument,o=t.isParsed(r)),i=this.shouldLoadNode(a),i&&n.loadNode(a),this.shouldParseNode(a)&&o&&t.parseDynamic(a,i)},shouldLoadNode:function(e){return1===e.nodeType&&o.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){return1===e.nodeType&&o.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallback=r.added.bind(r);varo=HTMLElement.prototype.matches||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){functiont(){window.HTMLImports.importer.bootDocument(r)}varn=e.initializeModules;e.isIE;if(!e.useNative){n();varr=e.rootDocument;"complete"===document.readyState||"interactive"===document.readyState&&!window.attachEvent?t():document.addEventListener("DOMContentLoaded",t)}}(window.HTMLImports),window.CustomElements=window.CustomElements||{flags:{}},function(e){vart=e.flags,n=[],r=function(e){n.push(e)},o=function(){n.forEach(function(t){t(e)})};e.addModule=r,e.initializeModules=o,e.hasNative=Boolean(document.registerElement),e.isIE=/Trident/.test(navigator.userAgent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.CustomElements.addModule(function(e){functiont(e,t){n(e,function(e){returnt(e)?!0:voidr(e,t)}),r(e,t)}functionn(e,t,r){varo=e.firstElementChild;if(!o)for(o=e.firstChild;o&&o.nodeType!==Node.ELEMENT_NODE;)o=o.nextSibling;for(;o;)t(o,r)!==!0&&n(o,t,r),o=o.nextElementSibling;returnnull}functionr(e,n){for(varr=e.shadowRoot;r;)t(r,n),r=r.olderShadowRoot}functiono(e,t){i(e,t,[])}functioni(e,t,n){if(e=window.wrap(e),!(n.indexOf(e)>=0)){n.push(e);for(varr,o=e.querySelectorAll("link[rel="+a+"]"),s=0,c=o.length;c>s&&(r=o[s]);s++)r["import"]&&i(r["import"],t,n);t(e)}}vara=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";e.forDocumentTree=o,e.forSubtree=t}),window.CustomElements.addModule(function(e){functiont(e,t){returnn(e,t)||r(e,t)}functionn(t,n){returne.upgrade(t,n)?!0:void(n&&a(t))}functionr(e,t){b(e,function(e){returnn(e,t)?!0:void0})}functiono(e){T.push(e),L||(L=!0,setTimeout(i))}functioni(){L=!1;for(vare,t=T,n=0,r=t.length;r>n&&(e=t[n]);n++)e();T=[]}functiona(e){E?o(function(){s(e)}):s(e)}functions(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCallback())}functionc(e){d(e),b(e,function(e){d(e)})}functiond(e){E?o(function(){u(e)}):u(e)}functionu(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.detachedCallback&&e.detachedCallback())}functionl(e){for(vart=e,n=window.wrap(document);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}functionh(e){if(e.shadowRoot&&!e.shadowRoot.__watched){g.dom&&console.log("watching shadow-root for: ",e.localName);for(vart=e.shadowRoot;t;)m(t),t=t.olderShadowRoot}}functionf(e,n){if(g.dom){varr=n[0];if(r&&"childList"===r.type&&r.addedNodes&&r.addedNodes){for(varo=r.addedNodes[0];o&&o!==document&&!o.host;)o=o.parentNode;vari=o&&(o.URL||o._URL||o.host&&o.host.localName)||"";i=i.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",n.length,i||"")}vara=l(e);n.forEach(function(e){"childList"===e.type&&(M(e.addedNodes,function(e){e.localName&&t(e,a)}),M(e.removedNodes,function(e){e.localName&&c(e)}))}),g.dom&&console.groupEnd()}functionp(e){for(e=window.wrap(e),e||(e=window.wrap(document));e.parentNode;)e=e.parentNode;vart=e.__observer;t&&(f(e,t.takeRecords()),i())}functionm(e){if(!e.__observer){vart=newMutationObserver(f.bind(this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}functionv(e){e=window.wrap(e),g.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").pop());varn=e===window.wrap(document);
t(e,n),m(e),g.dom&&console.groupEnd()}function_(e){y(e,v)}functionw(e){HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(e),t(e)}varg=e.flags,b=e.forSubtree,y=e.forDocumentTree,E=window.MutationObserver._isPolyfilled&&g["throttle-attached"];e.hasPolyfillMutations=E,e.hasThrottledAttached=E;varL=!1,T=[],M=Array.prototype.forEach.call.bind(Array.prototype.forEach),N=Element.prototype.createShadowRoot;N&&(Element.prototype.createShadowRoot=function(){vare=N.call(this);returnwindow.CustomElements.watchShadow(this),e}),e.watchShadow=h,e.upgradeDocumentTree=_,e.upgradeDocument=v,e.upgradeSubtree=r,e.upgradeAll=w,e.attached=a,e.takeRecords=p}),window.CustomElements.addModule(function(e){functiont(t,r){if(!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){varo=t.getAttribute("is"),i=e.getRegisteredDefinition(t.localName)||e.getRegisteredDefinition(o);if(i&&(o&&i.tag==t.localName||!o&&!i["extends"]))returnn(t,i,r)}}functionn(t,n,o){returna.upgrade&&console.group("upgrade:",t.localName),n.is&&t.setAttribute("is",n.is),r(t,n),t.__upgraded__=!0,i(t),o&&e.attached(t),e.upgradeSubtree(t,o),a.upgrade&&console.groupEnd(),t}functionr(e,t){Object.__proto__?e.__proto__=t.prototype:(o(e,t.prototype,t["native"]),e.__proto__=t.prototype)}functiono(e,t,n){for(varr={},o=t;o!==n&&o!==HTMLElement.prototype;){for(vari,a=Object.getOwnPropertyNames(o),s=0;i=a[s];s++)r[i]||(Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i)),r[i]=1);o=Object.getPrototypeOf(o)}}functioni(e){e.createdCallback&&e.createdCallback()}vara=e.flags;e.upgrade=t,e.upgradeWithDefinition=n,e.implementPrototype=r}),window.CustomElements.addModule(function(e){functiont(t,r){varc=r||{};if(!t)thrownewError("document.registerElement: first argument `name` must not be empty");if(t.indexOf("-")<0)thrownewError("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(t)+"'.");if(o(t))thrownewError("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(t)+"'. The type name is invalid.");if(d(t))thrownewError("DuplicateDefinitionError: a type with name '"+String(t)+"' is already registered");returnc.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.prototype.constructor=c.ctor,e.ready&&_(document),c.ctor}functionn(e){if(!e.setAttribute._polyfilled){vart=e.setAttribute;e.setAttribute=function(e,n){r.call(this,e,n,t)};varn=e.removeAttribute;e.removeAttribute=function(e){r.call(this,e,null,n)},e.setAttribute._polyfilled=!0}}functionr(e,t,n){e=e.toLowerCase();varr=this.getAttribute(e);n.apply(this,arguments);varo=this.getAttribute(e);this.attributeChangedCallback&&o!==r&&this.attributeChangedCallback(e,r,o)}functiono(e){for(vart=0;t<E.length;t++)if(e===E[t])return!0}functioni(e){vart=d(e);returnt?i(t["extends"]).concat([t]):[]}functiona(e){for(vart,n=e["extends"],r=0;t=e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}functions(e){if(!Object.__proto__){vart=HTMLElement.prototype;if(e.is){varn=document.createElement(e.tag);t=Object.getPrototypeOf(n)}for(varr,o=e.prototype,i=!1;o;)o==t&&(i=!0),r=Object.getPrototypeOf(o),r&&(o.__proto__=r),o=r;i||console.warn(e.tag+" prototype not found in prototype chain for "+e.is),e["native"]=t}}functionc(e){returng(M(e.tag),e)}functiond(e){returne?L[e.toLowerCase()]:void0}functionu(e,t){L[e]=t}functionl(e){returnfunction(){returnc(e)}}functionh(e,t,n){returne===T?f(t,n):N(e,t)}functionf(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase());varn=d(t||e);if(n){if(e==n.tag&&t==n.is)returnnewn.ctor;if(!t&&!n.is)returnnewn.ctor}varr;returnt?(r=f(e),r.setAttribute("is",t),r):(r=M(e),e.indexOf("-")>=0&&b(r,HTMLElement),r)}functionp(e,t){varn=e[t];e[t]=function(){vare=n.apply(this,arguments);returnw(e),e}}varm,v=e.isIE,_=e.upgradeDocumentTree,w=e.upgradeAll,g=e.upgradeWithDefinition,b=e.implementPrototype,y=e.useNative,E=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],L={},T="http://www.w3.org/1999/xhtml",M=document.createElement.bind(document),N=document.createElementNS.bind(document);m=Object.__proto__||y?function(e,t){returneinstanceoft}:function(e,t){if(einstanceoft)return!0;for(varn=e;n;){if(n===t.prototype)return!0;n=n.__proto__}return!1},p(Node.prototype,"cloneNode"),p(document,"importNode"),v&&!function(){vare=document.importNode;document.importNode=function(){vart=e.apply(document,arguments);if(t.nodeType==t.DOCUMENT_FRAGMENT_NODE){varn=document.createDocumentFragment();returnn.appendChild(t),n}returnt}}(),document.registerElement=t,document.createElement=f,document.createElementNS=h,e.registry=L,e["instanceof"]=m,e.reservedTagList=E,e.getRegisteredDefinition=d,document.register=document.registerElement}),function(e){functiont(){i(window.wrap(document)),window.CustomElements.ready=!0;vare=window.requestAnimationFrame||function(e){setTimeout(e,16)};e(function(){setTimeout(function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(newCustomEvent("WebComponentsReady",{bubbles:!0}))})})}varn=e.useNative,r=e.initializeModules;e.isIE;if(n){varo=function(){};e.watchShadow=o,e.upgrade=o,e.upgradeAll=o,e.upgradeDocumentTree=o,e.upgradeSubtree=o,e.takeRecords=o,e["instanceof"]=function(e,t){returneinstanceoft}}elser();vari=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){returne}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(e){e["import"]&&a(wrap(e["import"]))}),"complete"===document.readyState||e.flags.eager)t();elseif("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){vars=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(s,t)}elset()}(window.CustomElements),function(e){vart=document.createElement("style");t.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";varn=document.querySelector("head");n.insertBefore(t,n.firstChild)}(window.WebComponents);
\ No newline at end of file
// @version 0.7.18
!function(){window.WebComponents=window.WebComponents||{flags:{}};vare="webcomponents-lite.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){if(location.search.slice(1).split("&").forEach(function(e){vart,r=e.split("=");r[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(varr,o=0;r=t.attributes[o];o++)"src"!==r.name&&(n[r.name]=r.value||!0);if(n.log&&n.log.split){vari=n.log.split(",");n.log={},i.forEach(function(e){n.log[e]=!0})}elsen.log={}}n.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=n.register),WebComponents.flags=n}(),function(e){"use strict";functiont(e){returnvoid0!==h[e]}functionn(){s.call(this),this._isInvalid=!0}functionr(e){return""==e&&n.call(this),e.toLowerCase()}functiono(e){vart=e.charCodeAt(0);returnt>32&&127>t&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}functioni(e){vart=e.charCodeAt(0);returnt>32&&127>t&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}functiona(e,a,s){functionc(e){g.push(e)}vard=a||"scheme start",u=0,l="",w=!1,_=!1,g=[];e:for(;(e[u-1]!=p||0==u)&&!this._isInvalid;){varb=e[u];switch(d){case"scheme start":if(!b||!m.test(b)){if(a){c("Invalid scheme.");breake}l="",d="no scheme";continue}l+=b.toLowerCase(),d="scheme";break;case"scheme":if(b&&v.test(b))l+=b.toLowerCase();else{if(":"!=b){if(a){if(p==b)breake;c("Code point not allowed in scheme: "+b);breake}l="",u=0,d="no scheme";continue}if(this._scheme=l,l="",a)breake;t(this._scheme)&&(this._isRelative=!0),d="file"==this._scheme?"relative":this._isRelative&&s&&s._scheme==this._scheme?"relative or authority":this._isRelative?"authority first 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+=o(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._scheme&&(this._scheme=s._scheme),p==b){this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._username=s._username,this._password=s._password;breake}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point."),d="relative slash";elseif("?"==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){vary=e[u+1],E=e[u+2];("file"!=this._scheme||!m.test(b)||":"!=y&&"|"!=y||p!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._host=s._host,this._port=s._port,this._username=s._username,this._password=s._password,this._path=s._path.slice(),this._path.pop()),d="relative path";continue}this._host=s._host,this._port=s._port,this._path=s._path.slice(),this._query=s._query,this._fragment="#",this._username=s._username,this._password=s._password,d="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(this._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"authority first slash":if("/"!=b){c("Expected '/', got: "+b),d="authority ignore slashes";continue}d="authority second slash";break;case"authority second slash":if(d="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){d="authority";continue}c("Expected authority, got: "+b);break;case"authority":if("@"==b){w&&(c("@ already seen."),l+="%40"),w=!0;for(varL=0;L<l.length;L++){varT=l[L];if(""!=T&&"\n"!=T&&"\r"!=T)if(":"!=T||null!==this._password){varM=o(T);null!==this._password?this._password+=M:this._username+=M}elsethis._password="";elsec("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="relative path start":(this._host=r.call(this,l),l="",d="relative path start"):d="relative path";continue}""==b||"\n"==b||"\r"==b?c("Invalid whitespace in file host."):l+=b;break;case"host":case"hostname":if(":"!=b||_){if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this._host=r.call(this,l),l="",d="relative path start",a)breake;continue}""!=b&&"\n"!=b&&"\r"!=b?("["==b?_=!0:"]"==b&&(_=!1),l+=b):c("Invalid code point in host/hostname: "+b)}elseif(this._host=r.call(this,l),l="",d="port","hostname"==a)breake;break;case"port":if(/[0-9]/.test(b))l+=b;else{if(p==b||"/"==b||"\\"==b||"?"==b||"#"==b||a){if(""!=l){varN=parseInt(l,10);N!=h[this._scheme]&&(this._port=N+""),l=""}if(a)breake;d="relative path start";continue}""==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):n.call(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+=o(b));else{"\\"==b&&c("\\ not allowed in relative path.");varO;(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.length&&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")}break;case"query":a||"#"!=b?p!=b&&""!=b&&"\n"!=b&&"\r"!=b&&(this._query+=i(b)):(this._fragment="#",d="fragment");break;case"fragment":p!=b&&""!=b&&"\n"!=b&&"\r"!=b&&(this._fragment+=b)}u++}}functions(){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}functionc(e,t){void0===t||tinstanceofc||(t=newc(String(t))),this._url=e,s.call(this);varn=e.replace(/^[\t\r\n\f]+|[\t\r\n\f]+$/g,"");a.call(this,n,null,t)}vard=!1;if(!e.forceJURL)try{varu=newURL("b","http://a");u.pathname="c%20d",d="http://a/c%20d"===u.href}catch(l){}if(!d){varh=Object.create(null);h.ftp=21,h.file=0,h.gopher=70,h.http=80,h.https=443,h.ws=80,h.wss=443;varf=Object.create(null);f["%2e"]=".",f[".%2e"]="..",f["%2e."]="..",f["%2e%2e"]="..";varp=void0,m=/[a-zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;c.prototype={toString:function(){returnthis.href},gethref(){if(this._isInvalid)returnthis._url;vare="";return(""!=this._username||null!=this._password)&&(e=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+e+this.host:"")+this.pathname+this._query+this._fragment},sethref(e){s.call(this),a.call(this,e)},getprotocol(){returnthis._scheme+":"},setprotocol(e){this._isInvalid||a.call(this,e+":","scheme start")},gethost(){returnthis._isInvalid?"":this._port?this._host+":"+this._port:this._host},sethost(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"host")},gethostname(){returnthis._host},sethostname(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"hostname")},getport(){returnthis._port},setport(e){!this._isInvalid&&this._isRelative&&a.call(this,e,"port")},getpathname(){returnthis._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},setpathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],a.call(this,e,"relative path start"))},getsearch(){returnthis._isInvalid||!this._query||"?"==this._query?"":this._query},setsearch(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),a.call(this,e,"query"))},gethash(){returnthis._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},sethash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),a.call(this,e,"fragment"))},getorigin(){vare;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}returne=this.host,e?this._scheme+"://"+e:""}};varw=e.URL;w&&(c.createObjectURL=function(e){returnw.createObjectURL.apply(w,arguments)},c.revokeObjectURL=function(e){w.revokeObjectURL(e)}),e.URL=c}}(self),"undefined"==typeofWeakMap&&!function(){vare=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+(t+++"__")};n.prototype={set:function(t,n){varr=t[this.name];returnr&&r[0]===t?r[1]=n:e(t,this.name,{value:[t,n],writable:!0}),this},get:function(e){vart;return(t=e[this.name])&&t[0]===e?t[1]:void0},"delete":function(e){vart=e[this.name];returnt&&t[0]===e?(t[0]=t[1]=void0,!0):!1},has:function(e){vart=e[this.name];returnt?t[0]===e:!1}},window.WeakMap=n}(),function(e){functiont(e){b.push(e),g||(g=!0,m(r))}functionn(e){returnwindow.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}functionr(){g=!1;vare=b;b=[],e.sort(function(e,t){returne.uid_-t.uid_});vart=!1;e.forEach(function(e){varn=e.takeRecords();o(e),n.length&&(e.callback_(n,e),t=!0)}),t&&r()}functiono(e){e.nodes_.forEach(function(t){varn=v.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}functioni(e,t){for(varn=e;n;n=n.parentNode){varr=v.get(n);if(r)for(varo=0;o<r.length;o++){vari=r[o],a=i.options;if(n===e||a.subtree){vars=t(a);s&&i.enqueue(s)}}}}functiona(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++y}functions(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}functionc(e){vart=news(e.type,e.target);returnt.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}functiond(e,t){returnE=news(e,t)}functionu(e){returnL?L:(L=c(E),L.oldValue=e,L)}functionl(){E=L=void0}functionh(e){returne===L||e===E}functionf(e,t){returne===t?e:L&&h(e)?L:null}functionp(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}if(!e.JsMutationObserver){varm,v=newWeakMap;if(/Trident|Edge/.test(navigator.userAgent))m=setTimeout;elseif(window.setImmediate)m=window.setImmediate;else{varw=[],_=String(Math.random());window.addEventListener("message",function(e){if(e.data===_){vart=w;w=[],t.forEach(function(e){e()})}}),m=function(e){w.push(e),window.postMessage(_,"*")}}varg=!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.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)thrownewSyntaxError;varr=v.get(e);r||v.set(e,r=[]);for(varo,i=0;i<r.length;i++)if(r[i].observer===this){o=r[i],o.removeListeners(),o.options=t;break}o||(o=newp(this,e,t),r.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(vart=v.get(e),n=0;n<t.length;n++){varr=t[n];if(r.observer===this){r.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){vare=this.records_;returnthis.records_=[],e}};varE,L;p.prototype={enqueue:function(e){varn=this.observer.records_,r=n.length;if(n.length>0){varo=n[r-1],i=f(o,e);if(i)returnvoid(n[r-1]=i)}elset(this.observer);n[r]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){vart=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){vart=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&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);vart=v.get(e);t||v.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){vare=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(vart=v.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":vart=e.attrName,n=e.relatedNode.namespaceURI,r=e.target,o=newd("attributes",r);o.attributeName=t,o.attributeNamespace=n;vara=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;i(r,function(e){return!e.attributes||e.attributeFilter&&e.attributeFilter.length&&-1===e.attributeFilter.indexOf(t)&&-1===e.attributeFilter.indexOf(n)?void0:e.attributeOldValue?u(a):o});break;case"DOMCharacterDataModified":varr=e.target,o=d("characterData",r),a=e.prevValue;i(r,function(e){returne.characterData?e.characterDataOldValue?u(a):o:void0});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":vars,c,h=e.target;"DOMNodeInserted"===e.type?(s=[h],c=[]):(s=[],c=[h]);varf=h.previousSibling,p=h.nextSibling,o=d("childList",e.target.parentNode);o.addedNodes=s,o.removedNodes=c,o.previousSibling=f,o.nextSibling=p,i(e.relatedNode,function(e){returne.childList?o:void0})}l()}},e.JsMutationObserver=a,e.MutationObserver||(e.MutationObserver=a,a._isPolyfilled=!0)}}(self),"undefined"==typeofHTMLTemplateElement&&!function(){functione(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case"":return" "}}functiont(t){returnt.replace(a,e)}varn="template",r=document.implementation.createHTMLDocument("template"),o=!0;HTMLTemplateElement=function(){},HTMLTemplateElement.prototype=Object.create(HTMLElement.prototype),HTMLTemplateElement.decorate=function(e){if(!e.content){e.content=r.createDocumentFragment();for(varn;n=e.firstChild;)e.content.appendChild(n);if(o)try{Object.defineProperty(e,"innerHTML",{get:function(){for(vare="",n=this.content.firstChild;n;n=n.nextSibling)e+=n.outerHTML||t(n.data);returne},set:function(e){for(r.body.innerHTML=e,HTMLTemplateElement.bootstrap(r);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;r.body.firstChild;)this.content.appendChild(r.body.firstChild)},configurable:!0})}catch(i){o=!1}HTMLTemplateElement.bootstrap(e.content)}},HTMLTemplateElement.bootstrap=function(e){for(vart,r=e.querySelectorAll(n),o=0,i=r.length;i>o&&(t=r[o]);o++)HTMLTemplateElement.decorate(t)},document.addEventListener("DOMContentLoaded",function(){HTMLTemplateElement.bootstrap(document)});vari=document.createElement;document.createElement=function(){"use strict";vare=i.apply(document,arguments);return"template"==e.localName&&HTMLTemplateElement.decorate(e),e};vara=/[&\u00A0<>]/g}(),function(e){"use strict";if(!window.performance){vart=Date.now();window.performance={now:function(){returnDate.now()-t}}}window.requestAnimationFrame||(window.requestAnimationFrame=function(){vare=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;returne?function(t){returne(function(){t(performance.now())})}:function(e){returnwindow.setTimeout(e,1e3/60)}}()),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(){returnwindow.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}}());varn=function(){vare=document.createEvent("Event");returne.initEvent("foo",!0,!0),e.preventDefault(),e.defaultPrevented}();if(!n){varr=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(r.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}varo=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||o&&"function"!=typeofwindow.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};varn=document.createEvent("CustomEvent");returnn.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||o&&"function"!=typeofwindow.Event){vari=window.Event;window.Event=function(e,t){t=t||{};varn=document.createEvent("Event");returnn.initEvent(e,Boolean(t.bubbles),Boolean(t.cancelable)),n},window.Event.prototype=i.prototype}}(window.WebComponents),window.HTMLImports=window.HTMLImports||{flags:{}},function(e){functiont(e,t){t=t||p,r(function(){i(e,t)},t)}functionn(e){return"complete"===e.readyState||e.readyState===w}functionr(e,t){if(n(t))e&&e();else{varo=function(){("complete"===t.readyState||t.readyState===w)&&(t.removeEventListener(_,o),r(e,t))};t.addEventListener(_,o)}}functiono(e){e.target.__loaded=!0}functioni(e,t){functionn(){c==d&&e&&e({allImports:s,loadedImports:u,errorImports:l})}functionr(e){o(e),u.push(this),c++,n()}functioni(e){l.push(this),c++,n()}vars=t.querySelectorAll("link[rel=import]"),c=0,d=s.length,u=[],l=[];if(d)for(varh,f=0;d>f&&(h=s[f]);f++)a(h)?(c++,n()):(h.addEventListener("load",r),h.addEventListener("error",i));elsen()}functiona(e){returnl?e.__loaded||e["import"]&&"loading"!==e["import"].readyState:e.__importParsed}functions(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)c(t)&&d(t)}functionc(e){return"link"===e.localName&&"import"===e.rel}functiond(e){vart=e["import"];t?o({target:e}):(e.addEventListener("load",o),e.addEventListener("error",o))}varu="import",l=Boolean(uindocument.createElement("link")),h=Boolean(window.ShadowDOMPolyfill),f=function(e){returnh?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},p=f(document),m={get:function(){vare=window.HTMLImports.currentScript||document.currentScript||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null);returnf(e)},configurable:!0};Object.defineProperty(document,"_currentScript",m),Object.defineProperty(p,"_currentScript",m);varv=/Trident/.test(navigator.userAgent),w=v?"complete":"interactive",_="readystatechange";l&&(newMutationObserver(function(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)t.addedNodes&&s(t.addedNodes)}).observe(document.head,{childList:!0}),function(){if("loading"===document.readyState)for(vare,t=document.querySelectorAll("link[rel=import]"),n=0,r=t.length;r>n&&(e=t[n]);n++)d(e)}()),t(function(e){window.HTMLImports.ready=!0,window.HTMLImports.readyTime=(newDate).getTime();vart=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}(window.HTMLImports),function(e){vart=[],n=function(e){t.push(e)},r=function(){t.forEach(function(t){t(e)})};e.addModule=n,e.initializeModules=r}(window.HTMLImports),window.HTMLImports.addModule(function(e){vart=/(url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInStyle:function(e,t){varn=e.ownerDocument,r=n.createElement("a");returne.textContent=this.resolveUrlsInCssText(e.textContent,t,r),e},resolveUrlsInCssText:function(e,r,o){vari=this.replaceUrls(e,o,r,t);returni=this.replaceUrls(i,o,r,n)},replaceUrls:function(e,t,n,r){returne.replace(r,function(e,r,o,i){vara=o.replace(/["']/g,"");returnn&&(a=newURL(a,n).href),t.href=a,a=t.href,r+"'"+a+"'"+i})}};e.path=r}),window.HTMLImports.addModule(function(e){vart={async:!0,ok:function(e){returne.status>=200&&e.status<300||304===e.status||0===e.status},load:function(n,r,o){vari=newXMLHttpRequest;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){varn=null;try{vara=i.getResponseHeader("Location");a&&(n="/"===a.substr(0,1)?location.origin+a:a)}catch(e){console.error(e.message)}r.call(o,!t.ok(i)&&i,i.response||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){vart=e.xhr,n=e.flags,r=function(e,t){this.cache={},this.onload=e,this.oncomplete=t,this.inflight=0,this.pending={}};r.prototype={addNodes:function(e){this.inflight+=e.length;for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkDone()},require:function(e){vart=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){if(this.pending[e])returnthis.pending[e].push(t),!0;returnthis.cache[e]?(this.onload(e,t,this.cache[e]),this.tail(),!0):(this.pending[e]=[t],!1)},fetch:function(e,r){if(n.load&&console.log("fetch",e,r),e)if(e.match(/^data:/)){varo=e.split(","),i=o[0],a=o[1];a=i.indexOf(";base64")>-1?atob(a):decodeURIComponent(a),setTimeout(function(){this.receive(e,r,null,a)}.bind(this),0)}else{vars=function(t,n,o){this.receive(e,r,t,n,o)}.bind(this);t.load(e,s)}elsesetTimeout(function(){this.receive(e,r,{error:"href must be specified"},null)}.bind(this),0)},receive:function(e,t,n,r,o){this.cache[e]=r;for(vari,a=this.pending[e],s=0,c=a.length;c>s&&(i=a[s]);s++)this.onload(e,i,r,n,o),this.tail();this.pending[e]=null},tail:function(){--this.inflight,this.checkDone()},checkDone:function(){this.inflight||this.oncomplete()}},e.Loader=r}),window.HTMLImports.addModule(function(e){vart=function(e){this.addCallback=e,this.mo=newMutationObserver(this.handler.bind(this))};t.prototype={handler:function(e){for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCallback(e);for(vart,n=0,r=e.length;r>n&&(t=e[n]);n++)t.children&&t.children.length&&this.addedNodes(t.children)},observe:function(e){this.mo.observe(e,{childList:!0,subtree:!0})}},e.Observer=t}),window.HTMLImports.addModule(function(e){functiont(e){return"link"===e.localName&&e.rel===u}functionn(e){vart=r(e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}functionr(e){returne.textContent+o(e)}functiono(e){vart=e.ownerDocument;t.__importedScripts=t.__importedScripts||0;varn=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t.__importedScripts:"";returnt.__importedScripts++,"\n//# sourceURL="+n+r+".js\n"}functioni(e){vart=e.ownerDocument.createElement("style");returnt.textContent=e.textContent,a.resolveUrlsInStyle(t),t}vara=e.path,s=e.rootDocument,c=e.flags,d=e.isIE,u=e.IMPORT_LINK_TYPE,l="link[rel="+u+"]",h={documentSelectors:l,importsSelectors:[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"},dynamicElements:[],parseNext:function(){vare=this.nextToParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))returnvoid(c.parse&&console.log("[%s] is already parsed",e.localName));vart=this[this.map[e.localName]];t&&(this.markParsing(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.__importParsed=!0,this.markDynamicParsingComplete(e.__importElement)),this.parsingElement=null,c.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e){vart=this.dynamicElements.indexOf(e);t>=0&&this.dynamicElements.splice(t,1)},parseImport:function(e){if(e["import"]=e.__doc,window.HTMLImports.__importsParsingHook&&window.HTMLImports.__importsParsingHook(e),e["import"]&&(e["import"].__importParsed=!0),this.markParsingComplete(e),e.__resource&&!e.__error?e.dispatchEvent(newCustomEvent("load",{bubbles:!1})):e.dispatchEvent(newCustomEvent("error",{bubbles:!1})),e.__pending)for(vart;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){vart=e;e=i(e),t.__appliedElement=e,e.__importElement=t,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:function(e){for(vart=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLink;returnt},addElementToDocument:function(e){vart=this.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){varn=this,r=function(o){e.removeEventListener("load",r),e.removeEventListener("error",r),t&&t(o),n.markParsingComplete(e),n.parseNext()};if(e.addEventListener("load",r),e.addEventListener("error",r),d&&"style"===e.localName){varo=!1;if(-1==e.textContent.indexOf("@import"))o=!0;elseif(e.sheet){o=!0;for(vari,a=e.sheet.cssRules,s=a?a.length:0,c=0;s>c&&(i=a[c]);c++)i.type===CSSRule.IMPORT_RULE&&(o=o&&Boolean(i.styleSheet))}o&&setTimeout(function(){e.dispatchEvent(newCustomEvent("load",{bubbles:!1}))})}},parseScript:function(t){varr=document.createElement("script");r.__importElement=t,r.src=t.src?t.src:n(t),e.currentScript=t,this.trackElement(r,function(t){r.parentNode&&r.parentNode.removeChild(r),e.currentScript=null}),this.addElementToDocument(r)},nextToParse:function(){returnthis._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(s)||this.nextToParseDynamic())},nextToParseInDoc:function(e,n){if(e&&this._mayParse.indexOf(e)<0){this._mayParse.push(e);for(varr,o=e.querySelectorAll(this.parseSelectorsForNode(e)),i=0,a=o.length;a>i&&(r=o[i]);i++)if(!this.isParsed(r))returnthis.hasResource(r)?t(r)?this.nextToParseInDoc(r.__doc,r):r:void0}returnn},nextToParseDynamic:function(){returnthis.dynamicElements[0]},parseSelectorsForNode:function(e){vart=e.ownerDocument||e;returnt===s?this.documentSelectors:this.importsSelectors},isParsed:function(e){returne.__importParsed},needsDynamicParsing:function(e){returnthis.dynamicElements.indexOf(e)>=0},hasResource:function(e){returnt(e)&&void0===e.__doc?!1:!0}};e.parser=h,e.IMPORT_SELECTOR=l}),window.HTMLImports.addModule(function(e){functiont(e){returnn(e,a)}functionn(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}functionr(e){return!!Object.getOwnPropertyDescriptor(e,"baseURI")}functiono(e,t){varn=document.implementation.createHTMLDocument(a);n._URL=t;varo=n.createElement("base");o.setAttribute("href",t),n.baseURI||r(n)||Object.defineProperty(n,"baseURI",{value:t});vari=n.createElement("meta");returni.setAttribute("charset","utf-8"),n.head.appendChild(i),n.head.appendChild(o),n.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(n),n}vari=e.flags,a=e.IMPORT_LINK_TYPE,s=e.IMPORT_SELECTOR,c=e.rootDocument,d=e.Loader,u=e.Observer,l=e.parser,h={documents:{},documentPreloadSelectors:s,importsPreloadSelectors:[s].join(","),loadNode:function(e){f.addNode(e)},loadSubtree:function(e){vart=this.marshalNodes(e);f.addNodes(t)},marshalNodes:function(e){returne.querySelectorAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){vart=e.ownerDocument||e;returnt===c?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,n,r,a,s){if(i.load&&console.log("loaded",e,n),n.__resource=r,n.__error=a,t(n)){varc=this.documents[e];void0===c&&(c=a?null:o(r,s||e),c&&(c.__importLink=n,this.bootDocument(c)),this.documents[e]=c),n.__doc=c}l.parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),l.parseNext()},loadedAll:function(){l.parseNext()}},f=newd(h.loaded.bind(h),h.loadedAll.bind(h));if(h.observer=newu,!document.baseURI){varp={get:function(){vare=document.querySelector("base");returne?e.href:window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",p),Object.defineProperty(c,"baseURI",p)}e.importer=h,e.importLoader=f}),window.HTMLImports.addModule(function(e){vart=e.parser,n=e.importer,r={added:function(e){for(varr,o,i,a,s=0,c=e.length;c>s&&(a=e[s]);s++)r||(r=a.ownerDocument,o=t.isParsed(r)),i=this.shouldLoadNode(a),i&&n.loadNode(a),this.shouldParseNode(a)&&o&&t.parseDynamic(a,i)},shouldLoadNode:function(e){return1===e.nodeType&&o.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){return1===e.nodeType&&o.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallback=r.added.bind(r);varo=HTMLElement.prototype.matches||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector}),function(e){functiont(){window.HTMLImports.importer.bootDocument(r)}varn=e.initializeModules;e.isIE;if(!e.useNative){n();varr=e.rootDocument;"complete"===document.readyState||"interactive"===document.readyState&&!window.attachEvent?t():document.addEventListener("DOMContentLoaded",t)}}(window.HTMLImports),window.CustomElements=window.CustomElements||{flags:{}},function(e){vart=e.flags,n=[],r=function(e){n.push(e)},o=function(){n.forEach(function(t){t(e)})};e.addModule=r,e.initializeModules=o,e.hasNative=Boolean(document.registerElement),e.isIE=/Trident/.test(navigator.userAgent),e.useNative=!t.register&&e.hasNative&&!window.ShadowDOMPolyfill&&(!window.HTMLImports||window.HTMLImports.useNative)}(window.CustomElements),window.CustomElements.addModule(function(e){functiont(e,t){n(e,function(e){returnt(e)?!0:voidr(e,t)}),r(e,t)}functionn(e,t,r){varo=e.firstElementChild;if(!o)for(o=e.firstChild;o&&o.nodeType!==Node.ELEMENT_NODE;)o=o.nextSibling;for(;o;)t(o,r)!==!0&&n(o,t,r),o=o.nextElementSibling;returnnull}functionr(e,n){for(varr=e.shadowRoot;r;)t(r,n),r=r.olderShadowRoot}functiono(e,t){i(e,t,[])}functioni(e,t,n){if(e=window.wrap(e),!(n.indexOf(e)>=0)){n.push(e);for(varr,o=e.querySelectorAll("link[rel="+a+"]"),s=0,c=o.length;c>s&&(r=o[s]);s++)r["import"]&&i(r["import"],t,n);t(e)}}vara=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";e.forDocumentTree=o,e.forSubtree=t}),window.CustomElements.addModule(function(e){functiont(e,t){returnn(e,t)||r(e,t)}functionn(t,n){returne.upgrade(t,n)?!0:void(n&&a(t))}functionr(e,t){g(e,function(e){returnn(e,t)?!0:void0})}functiono(e){L.push(e),E||(E=!0,setTimeout(i))}functioni(){E=!1;for(vare,t=L,n=0,r=t.length;r>n&&(e=t[n]);n++)e();L=[]}functiona(e){y?o(function(){s(e)}):s(e)}functions(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCallback())}functionc(e){d(e),g(e,function(e){d(e)})}functiond(e){y?o(function(){u(e)}):u(e)}functionu(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.detachedCallback&&e.detachedCallback())}functionl(e){for(vart=e,n=window.wrap(document);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}functionh(e){if(e.shadowRoot&&!e.shadowRoot.__watched){_.dom&&console.log("watching shadow-root for: ",e.localName);for(vart=e.shadowRoot;t;)m(t),t=t.olderShadowRoot}}functionf(e,n){if(_.dom){varr=n[0];if(r&&"childList"===r.type&&r.addedNodes&&r.addedNodes){for(varo=r.addedNodes[0];o&&o!==document&&!o.host;)o=o.parentNode;vari=o&&(o.URL||o._URL||o.host&&o.host.localName)||"";i=i.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",n.length,i||"")}vara=l(e);n.forEach(function(e){"childList"===e.type&&(T(e.addedNodes,function(e){e.localName&&t(e,a)}),T(e.removedNodes,function(e){e.localName&&c(e)}))}),_.dom&&console.groupEnd()}functionp(e){for(e=window.wrap(e),e||(e=window.wrap(document));e.parentNode;)e=e.parentNode;vart=e.__observer;t&&(f(e,t.takeRecords()),i())}functionm(e){if(!e.__observer){vart=newMutationObserver(f.bind(this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}functionv(e){e=window.wrap(e),_.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").pop());
varn=e===window.wrap(document);t(e,n),m(e),_.dom&&console.groupEnd()}functionw(e){b(e,v)}var_=e.flags,g=e.forSubtree,b=e.forDocumentTree,y=window.MutationObserver._isPolyfilled&&_["throttle-attached"];e.hasPolyfillMutations=y,e.hasThrottledAttached=y;varE=!1,L=[],T=Array.prototype.forEach.call.bind(Array.prototype.forEach),M=Element.prototype.createShadowRoot;M&&(Element.prototype.createShadowRoot=function(){vare=M.call(this);returnwindow.CustomElements.watchShadow(this),e}),e.watchShadow=h,e.upgradeDocumentTree=w,e.upgradeDocument=v,e.upgradeSubtree=r,e.upgradeAll=t,e.attached=a,e.takeRecords=p}),window.CustomElements.addModule(function(e){functiont(t,r){if("template"===t.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t),!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){varo=t.getAttribute("is"),i=e.getRegisteredDefinition(t.localName)||e.getRegisteredDefinition(o);if(i&&(o&&i.tag==t.localName||!o&&!i["extends"]))returnn(t,i,r)}}functionn(t,n,o){returna.upgrade&&console.group("upgrade:",t.localName),n.is&&t.setAttribute("is",n.is),r(t,n),t.__upgraded__=!0,i(t),o&&e.attached(t),e.upgradeSubtree(t,o),a.upgrade&&console.groupEnd(),t}functionr(e,t){Object.__proto__?e.__proto__=t.prototype:(o(e,t.prototype,t["native"]),e.__proto__=t.prototype)}functiono(e,t,n){for(varr={},o=t;o!==n&&o!==HTMLElement.prototype;){for(vari,a=Object.getOwnPropertyNames(o),s=0;i=a[s];s++)r[i]||(Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i)),r[i]=1);o=Object.getPrototypeOf(o)}}functioni(e){e.createdCallback&&e.createdCallback()}vara=e.flags;e.upgrade=t,e.upgradeWithDefinition=n,e.implementPrototype=r}),window.CustomElements.addModule(function(e){functiont(t,r){varc=r||{};if(!t)thrownewError("document.registerElement: first argument `name` must not be empty");if(t.indexOf("-")<0)thrownewError("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(t)+"'.");if(o(t))thrownewError("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(t)+"'. The type name is invalid.");if(d(t))thrownewError("DuplicateDefinitionError: a type with name '"+String(t)+"' is already registered");returnc.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.prototype.constructor=c.ctor,e.ready&&w(document),c.ctor}functionn(e){if(!e.setAttribute._polyfilled){vart=e.setAttribute;e.setAttribute=function(e,n){r.call(this,e,n,t)};varn=e.removeAttribute;e.removeAttribute=function(e){r.call(this,e,null,n)},e.setAttribute._polyfilled=!0}}functionr(e,t,n){e=e.toLowerCase();varr=this.getAttribute(e);n.apply(this,arguments);varo=this.getAttribute(e);this.attributeChangedCallback&&o!==r&&this.attributeChangedCallback(e,r,o)}functiono(e){for(vart=0;t<E.length;t++)if(e===E[t])return!0}functioni(e){vart=d(e);returnt?i(t["extends"]).concat([t]):[]}functiona(e){for(vart,n=e["extends"],r=0;t=e.ancestry[r];r++)n=t.is&&t.tag;e.tag=n||e.__name,n&&(e.is=e.__name)}functions(e){if(!Object.__proto__){vart=HTMLElement.prototype;if(e.is){varn=document.createElement(e.tag);t=Object.getPrototypeOf(n)}for(varr,o=e.prototype,i=!1;o;)o==t&&(i=!0),r=Object.getPrototypeOf(o),r&&(o.__proto__=r),o=r;i||console.warn(e.tag+" prototype not found in prototype chain for "+e.is),e["native"]=t}}functionc(e){returng(M(e.tag),e)}functiond(e){returne?L[e.toLowerCase()]:void0}functionu(e,t){L[e]=t}functionl(e){returnfunction(){returnc(e)}}functionh(e,t,n){returne===T?f(t,n):N(e,t)}functionf(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase());varn=d(t||e);if(n){if(e==n.tag&&t==n.is)returnnewn.ctor;if(!t&&!n.is)returnnewn.ctor}varr;returnt?(r=f(e),r.setAttribute("is",t),r):(r=M(e),e.indexOf("-")>=0&&b(r,HTMLElement),r)}functionp(e,t){varn=e[t];e[t]=function(){vare=n.apply(this,arguments);return_(e),e}}varm,v=e.isIE,w=e.upgradeDocumentTree,_=e.upgradeAll,g=e.upgradeWithDefinition,b=e.implementPrototype,y=e.useNative,E=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],L={},T="http://www.w3.org/1999/xhtml",M=document.createElement.bind(document),N=document.createElementNS.bind(document);m=Object.__proto__||y?function(e,t){returneinstanceoft}:function(e,t){if(einstanceoft)return!0;for(varn=e;n;){if(n===t.prototype)return!0;n=n.__proto__}return!1},p(Node.prototype,"cloneNode"),p(document,"importNode"),v&&!function(){vare=document.importNode;document.importNode=function(){vart=e.apply(document,arguments);if(t.nodeType==t.DOCUMENT_FRAGMENT_NODE){varn=document.createDocumentFragment();returnn.appendChild(t),n}returnt}}(),document.registerElement=t,document.createElement=f,document.createElementNS=h,e.registry=L,e["instanceof"]=m,e.reservedTagList=E,e.getRegisteredDefinition=d,document.register=document.registerElement}),function(e){functiont(){i(window.wrap(document)),window.CustomElements.ready=!0;vare=window.requestAnimationFrame||function(e){setTimeout(e,16)};e(function(){setTimeout(function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(newCustomEvent("WebComponentsReady",{bubbles:!0}))})})}varn=e.useNative,r=e.initializeModules;e.isIE;if(n){varo=function(){};e.watchShadow=o,e.upgrade=o,e.upgradeAll=o,e.upgradeDocumentTree=o,e.upgradeSubtree=o,e.takeRecords=o,e["instanceof"]=function(e,t){returneinstanceoft}}elser();vari=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){returne}),window.HTMLImports&&(window.HTMLImports.__importsParsingHook=function(e){e["import"]&&a(wrap(e["import"]))}),"complete"===document.readyState||e.flags.eager)t();elseif("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){vars=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(s,t)}elset()}(window.CustomElements),function(e){vart=document.createElement("style");t.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";varn=document.querySelector("head");n.insertBefore(t,n.firstChild)}(window.WebComponents);