Files
pgsql-jellyfin/publish_test2/wwwroot/node_modules.webcomponents.js.bundle.js

2 lines
39 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see node_modules.webcomponents.js.bundle.js.LICENSE.txt */
(self.webpackChunk=self.webpackChunk||[]).push([[17060],{69177:function(){var e,t;!function(){window.WebComponents=window.WebComponents||{flags:{}};var e=document.querySelector('script[src*="webcomponents-lite.js"]'),t={};if(!t.noOpts){if(location.search.slice(1).split("&").forEach((function(e){var n,r=e.split("=");r[0]&&(n=r[0].match(/wc-(.+)/))&&(t[n[1]]=r[1]||!0)})),e)for(var n,r=0;n=e.attributes[r];r++)"src"!==n.name&&(t[n.name]=n.value||!0);if(t.log&&t.log.split){var o=t.log.split(",");t.log={},o.forEach((function(e){t.log[e]=!0}))}else t.log={}}t.register&&(window.CustomElements=window.CustomElements||{flags:{}},window.CustomElements.flags.register=t.register),WebComponents.flags=t}(),function(e){"use strict";var t=!1;if(!e.forceJURL)try{var n=new URL("b","http://a");n.pathname="c%20d",t="http://a/c%20d"===n.href}catch(e){}if(!t){var r=Object.create(null);r.ftp=21,r.file=0,r.gopher=70,r.http=80,r.https=443,r.ws=80,r.wss=443;var o=Object.create(null);o["%2e"]=".",o[".%2e"]="..",o["%2e."]="..",o["%2e%2e"]="..";var i=void 0,a=/[a-zA-Z]/,s=/[a-zA-Z0-9\+\-\.]/;v.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var e="";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},set href(e){m.call(this),f.call(this,e)},get protocol(){return this._scheme+":"},set protocol(e){this._isInvalid||f.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&&f.call(this,e,"host")},get hostname(){return this._host},set hostname(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"hostname")},get port(){return this._port},set port(e){!this._isInvalid&&this._isRelative&&f.call(this,e,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(e){!this._isInvalid&&this._isRelative&&(this._path=[],f.call(this,e,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(e){!this._isInvalid&&this._isRelative&&(this._query="?","?"==e[0]&&(e=e.slice(1)),f.call(this,e,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(e){this._isInvalid||(this._fragment="#","#"==e[0]&&(e=e.slice(1)),f.call(this,e,"fragment"))},get origin(){var e;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return(e=this.host)?this._scheme+"://"+e:""}};var c=e.URL;c&&(v.createObjectURL=function(e){return c.createObjectURL.apply(c,arguments)},v.revokeObjectURL=function(e){c.revokeObjectURL(e)}),e.URL=v}function d(e){return void 0!==r[e]}function l(){m.call(this),this._isInvalid=!0}function u(e){return""==e&&l.call(this),e.toLowerCase()}function h(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1==[34,35,60,62,63,96].indexOf(t)?e:encodeURIComponent(e)}function p(e){var t=e.charCodeAt(0);return t>32&&t<127&&-1==[34,35,60,62,96].indexOf(t)?e:encodeURIComponent(e)}function f(e,t,n){function c(e){g.push(e)}var f=t||"scheme start",m=0,v="",w=!1,_=!1,g=[];e:for(;(e[m-1]!=i||0==m)&&!this._isInvalid;){var b=e[m];switch(f){case"scheme start":if(!b||!a.test(b)){if(t){c("Invalid scheme.");break e}v="",f="no scheme";continue}v+=b.toLowerCase(),f="scheme";break;case"scheme":if(b&&s.test(b))v+=b.toLowerCase();else{if(":"!=b){if(t){if(i==b)break e;c("Code point not allowed in scheme: "+b);break e}v="",m=0,f="no scheme";continue}if(this._scheme=v,v="",t)break e;d(this._scheme)&&(this._isRelative=!0),f="file"==this._scheme?"relative":this._isRelative&&n&&n._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==b?(this._query="?",f="query"):"#"==b?(this._fragment="#",f="fragment"):i!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._schemeData+=h(b));break;case"no scheme":if(n&&d(n._scheme)){f="relative";continue}c("Missing scheme."),l.call(this);break;case"relative or authority":if("/"!=b||"/"!=e[m+1]){c("Expected /, got: "+b),f="relative";continue}f="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=n._scheme),i==b){this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query=n._query,this._username=n._username,this._password=n._password;break e}if("/"==b||"\\"==b)"\\"==b&&c("\\ is an invalid code point."),f="relative slash";else if("?"==b)this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query="?",this._username=n._username,this._password=n._password,f="query";else{if("#"!=b){var y=e[m+1],E=e[m+2];("file"!=this._scheme||!a.test(b)||":"!=y&&"|"!=y||i!=E&&"/"!=E&&"\\"!=E&&"?"!=E&&"#"!=E)&&(this._host=n._host,this._port=n._port,this._username=n._username,this._password=n._password,this._path=n._path.slice(),this._path.pop()),f="relative path";continue}this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query=n._query,this._fragment="#",this._username=n._username,this._password=n._password,f="fragment"}break;case"relative slash":if("/"!=b&&"\\"!=b){"file"!=this._scheme&&(this._host=n._host,this._port=n._port,this._username=n._username,this._password=n._password),f="relative path";continue}"\\"==b&&c("\\ is an invalid code point."),f="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=b){c("Expected '/', got: "+b),f="authority ignore slashes";continue}f="authority second slash";break;case"authority second slash":if(f="authority ignore slashes","/"!=b){c("Expected '/', got: "+b);continue}break;case"authority ignore slashes":if("/"!=b&&"\\"!=b){f="authority";continue}c("Expected authority, got: "+b);break;case"authority":if("@"==b){w&&(c("@ already seen."),v+="%40"),w=!0;for(var L=0;L<v.length;L++){var N=v[L];if("\t"!=N&&"\n"!=N&&"\r"!=N)if(":"!=N||null!==this._password){var M=h(N);null!==this._password?this._password+=M:this._username+=M}else this._password="";else c("Invalid whitespace in authority.")}v=""}else{if(i==b||"/"==b||"\\"==b||"?"==b||"#"==b){m-=v.length,v="",f="host";continue}v+=b}break;case"file host":if(i==b||"/"==b||"\\"==b||"?"==b||"#"==b){2!=v.length||!a.test(v[0])||":"!=v[1]&&"|"!=v[1]?(0==v.length||(this._host=u.call(this,v),v=""),f="relative path start"):f="relative path";continue}"\t"==b||"\n"==b||"\r"==b?c("Invalid whitespace in file host."):v+=b;break;case"host":case"hostname":if(":"!=b||_){if(i==b||"/"==b||"\\"==b||"?"==b||"#"==b){if(this._host=u.call(this,v),v="",f="relative path start",t)break e;continue}"\t"!=b&&"\n"!=b&&"\r"!=b?("["==b?_=!0:"]"==b&&(_=!1),v+=b):c("Invalid code point in host/hostname: "+b)}else if(this._host=u.call(this,v),v="",f="port","hostname"==t)break e;break;case"port":if(/[0-9]/.test(b))v+=b;else{if(i==b||"/"==b||"\\"==b||"?"==b||"#"==b||t){if(""!=v){var T=parseInt(v,10);T!=r[this._scheme]&&(this._port=T+""),v=""}if(t)break e;f="relative path start";continue}"\t"==b||"\n"==b||"\r"==b?c("Invalid code point in port: "+b):l.call(this)}break;case"relative path start":if("\\"==b&&c("'\\' not allowed in path."),f="relative path","/"!=b&&"\\"!=b)continue;break;case"relative path":var C;i!=b&&"/"!=b&&"\\"!=b&&(t||"?"!=b&&"#"!=b)?"\t"!=b&&"\n"!=b&&"\r"!=b&&(v+=h(b)):("\\"==b&&c("\\ not allowed in relative path."),(C=o[v.toLowerCase()])&&(v=C),".."==v?(this._path.pop(),"/"!=b&&"\\"!=b&&this._path.push("")):"."==v&&"/"!=b&&"\\"!=b?this._path.push(""):"."!=v&&("file"==this._scheme&&0==this._path.length&&2==v.length&&a.test(v[0])&&"|"==v[1]&&(v=v[0]+":"),this._path.push(v)),v="","?"==b?(this._query="?",f="query"):"#"==b&&(this._fragment="#",f="fragment"));break;case"query":t||"#"!=b?i!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._query+=p(b)):(this._fragment="#",f="fragment");break;case"fragment":i!=b&&"\t"!=b&&"\n"!=b&&"\r"!=b&&(this._fragment+=b)}m++}}function m(){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}function v(e,t){void 0===t||t instanceof v||(t=new v(String(t))),this._url=e,m.call(this);var n=e.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");f.call(this,n,null,t)}}(self),"undefined"==typeof WeakMap&&function(){var e=Object.defineProperty,t=Date.now()%1e9,n=function(){this.name="__st"+(1e9*Math.random()>>>0)+t+++"__"};n.prototype={set:function(t,n){var r=t[this.name];return r&&r[0]===t?r[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))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=n}(),function(e){if(!e.JsMutationObserver){var t,n=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var r=[],o=String(Math.random());window.addEventListener("message",(function(e){if(e.data===o){var t=r;r=[],t.forEach((function(e){e()}))}})),t=function(e){r.push(e),window.postMessage(o,"*")}}var i,a,s=!1,c=[],d=0;h.prototype={observe:function(e,t){var r;if(r=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(r)||r,!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var o,i=n.get(e);i||n.set(e,i=[]);for(var a=0;a<i.length;a++)if(i[a].observer===this){(o=i[a]).removeListeners(),o.options=t;break}o||(o=new v(this,e,t),i.push(o),this.nodes_.push(e)),o.addListeners()},disconnect:function(){this.nodes_.forEach((function(e){for(var t=n.get(e),r=0;r<t.length;r++){var o=t[r];if(o.observer===this){o.removeListeners(),t.splice(r,1);break}}}),this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},v.prototype={enqueue:function(e){var n,r=this.observer.records_,o=r.length;if(r.length>0){var d=function(e,t){return e===t?e:!a||(n=e)!==a&&n!==i?null:a;var n}(r[o-1],e);if(d)return void(r[o-1]=d)}else n=this.observer,c.push(n),s||(s=!0,t(l));r[o]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=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){var t=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);var t=n.get(e);t||n.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach((function(e){this.removeListeners_(e);for(var t=n.get(e),r=0;r<t.length;r++)if(t[r]===this){t.splice(r,1);break}}),this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,n=e.relatedNode.namespaceURI,r=e.target;(s=new f("attributes",r)).attributeName=t,s.attributeNamespace=n;var o=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;u(r,(function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(n)))return e.attributeOldValue?m(o):s}));break;case"DOMCharacterDataModified":var s=f("characterData",r=e.target);o=e.prevValue,u(r,(function(e){if(e.characterData)return e.characterDataOldValue?m(o):s}));break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var c,d,l=e.target;"DOMNodeInserted"===e.type?(c=[l],d=[]):(c=[],d=[l]);var h=l.previousSibling,p=l.nextSibling;(s=f("childList",e.target.parentNode)).addedNodes=c,s.removedNodes=d,s.previousSibling=h,s.nextSibling=p,u(e.relatedNode,(function(e){if(e.childList)return s}))}i=a=void 0}},e.JsMutationObserver=h,e.MutationObserver||(e.MutationObserver=h,h._isPolyfilled=!0)}function l(){s=!1;var e=c;c=[],e.sort((function(e,t){return e.uid_-t.uid_}));var t=!1;e.forEach((function(e){var r=e.takeRecords();!function(e){e.nodes_.forEach((function(t){var r=n.get(t);r&&r.forEach((function(t){t.observer===e&&t.removeTransientObservers()}))}))}(e),r.length&&(e.callback_(r,e),t=!0)})),t&&l()}function u(e,t){for(var r=e;r;r=r.parentNode){var o=n.get(r);if(o)for(var i=0;i<o.length;i++){var a=o[i],s=a.options;if(r===e||s.subtree){var c=t(s);c&&a.enqueue(c)}}}}function h(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++d}function p(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}function f(e,t){return i=new p(e,t)}function m(e){return a||((n=new p((t=i).type,t.target)).addedNodes=t.addedNodes.slice(),n.removedNodes=t.removedNodes.slice(),n.previousSibling=t.previousSibling,n.nextSibling=t.nextSibling,n.attributeName=t.attributeName,n.attributeNamespace=t.attributeNamespace,n.oldValue=t.oldValue,(a=n).oldValue=e,a);var t,n}function v(e,t,n){this.observer=e,this.target=t,this.options=n,this.transientObservedNodes=[]}}(self),function(){var e,t="undefined"==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&(e=document.importNode,document.importNode=function(){var t=e.apply(document,arguments);if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var n=document.createDocumentFragment();return n.appendChild(t),n}return t});var n=function(){if(!t){var e=document.createElement("template"),n=document.createElement("template");n.content.appendChild(document.createElement("div")),e.content.appendChild(n);var r=e.cloneNode(!0);return 0===r.content.childNodes.length||0===r.content.firstChild.content.childNodes.length}}(),r="template",o=function(){};if(t){var i=document.implementation.createHTMLDocument("template"),a=!0,s=document.createElement("style");s.textContent=r+"{display:none;}";var c=document.head;c.insertBefore(s,c.firstElementChild),o.prototype=Object.create(HTMLElement.prototype),o.decorate=function(e){if(!e.content){var t;for(e.content=i.createDocumentFragment();t=e.firstChild;)e.content.appendChild(t);if(e.cloneNode=function(e){return o.cloneNode(this,e)},a)try{Object.defineProperty(e,"innerHTML",{get:function(){for(var e="",t=this.content.firstChild;t;t=t.nextSibling)e+=t.outerHTML||t.data.replace(l,u);return e},set:function(e){for(i.body.innerHTML=e,o.bootstrap(i);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;i.body.firstChild;)this.content.appendChild(i.body.firstChild)},configurable:!0})}catch(e){a=!1}o.bootstrap(e.content)}},o.bootstrap=function(e){for(var t,n=e.querySelectorAll(r),i=0,a=n.length;i<a&&(t=n[i]);i++)o.decorate(t)},document.addEventListener("DOMContentLoaded",(function(){o.bootstrap(document)}));var d=document.createElement;document.createElement=function(){"use strict";var e=d.apply(document,arguments);return"template"===e.localName&&o.decorate(e),e};var l=/[&\u00A0<>]/g;function u(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case" ":return"&nbsp;"}}}if(t||n){var h=Node.prototype.cloneNode;o.cloneNode=function(e,t){var n=h.call(e,!1);return this.decorate&&this.decorate(n),t&&(n.content.appendChild(h.call(e.content,!0)),this.fixClonedDom(n.content,e.content)),n},o.fixClonedDom=function(e,t){if(t.querySelectorAll)for(var n,o,i=t.querySelectorAll(r),a=e.querySelectorAll(r),s=0,c=a.length;s<c;s++)o=i[s],n=a[s],this.decorate&&this.decorate(o),n.parentNode.replaceChild(o.cloneNode(!0),n)};var p=document.importNode;Node.prototype.cloneNode=function(e){var t=h.call(this,e);return e&&o.fixClonedDom(t,this),t},document.importNode=function(e,t){if(e.localName===r)return o.cloneNode(e,t);var n=p.call(document,e,t);return t&&o.fixClonedDom(n,e),n},n&&(HTMLTemplateElement.prototype.cloneNode=function(e){return o.cloneNode(this,e)})}t&&(window.HTMLTemplateElement=o)}(),function(){"use strict";if(!window.performance||!window.performance.now){var e=Date.now();window.performance={now:function(){return Date.now()-e}}}var t,n;if(window.requestAnimationFrame||(window.requestAnimationFrame=(t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)?function(e){return t((function(){e(performance.now())}))}:function(e){return window.setTimeout(e,1e3/60)}),window.cancelAnimationFrame||(window.cancelAnimationFrame=window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}),(n=document.createEvent("Event")).initEvent("foo",!0,!0),n.preventDefault(),!n.defaultPrevented){var r=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(r.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var o=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||o&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(e,t){t=t||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,Boolean(t.bubbles),Boolean(t.cancelable),t.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.Event||o&&"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||{flags:{}},function(e){var t="import",n=Boolean(t in document.createElement("link")),r=Boolean(window.ShadowDOMPolyfill),o=function(e){return r?window.ShadowDOMPolyfill.wrapIfNeeded(e):e},i=o(document),a={get:function(){var e=window.HTMLImports.currentScript||document.currentScript||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null);return o(e)},configurable:!0};Object.defineProperty(document,"_currentScript",a),Object.defineProperty(i,"_currentScript",a);var s=/Trident/.test(navigator.userAgent);function c(e,t){u((function(){!function(e,t){var r,o=t.querySelectorAll("link[rel=import]"),i=0,a=o.length,s=[],c=[];function d(){i==a&&e&&e({allImports:o,loadedImports:s,errorImports:c})}function l(e){h(e),s.push(this),i++,d()}function u(e){c.push(this),i++,d()}if(a)for(var p,f=0;f<a&&(p=o[f]);f++)r=p,(n?r.__loaded||r.import&&"loading"!==r.import.readyState:r.__importParsed)?(s.push(this),i++,d()):(p.addEventListener("load",l),p.addEventListener("error",u));else d()}(e,t)}),t=t||i)}var d=s?"complete":"interactive",l="readystatechange";function u(e,t){if(function(e){return"complete"===e.readyState||e.readyState===d}(t))e&&e();else{var n=function(){"complete"!==t.readyState&&t.readyState!==d||(t.removeEventListener(l,n),u(e,t))};t.addEventListener(l,n)}}function h(e){e.target.__loaded=!0}if(n){function p(e){for(var t,n=0,r=e.length;n<r&&(t=e[n]);n++)"link"===(o=t).localName&&"import"===o.rel&&f(t);var o}function f(e){e.import?h({target:e}):(e.addEventListener("load",h),e.addEventListener("error",h))}new MutationObserver((function(e){for(var t,n=0,r=e.length;n<r&&(t=e[n]);n++)t.addedNodes&&p(t.addedNodes)})).observe(document.head,{childList:!0}),function(){if("loading"===document.readyState)for(var e,t=document.querySelectorAll("link[rel=import]"),n=0,r=t.length;n<r&&(e=t[n]);n++)f(e)}()}c((function(e){window.HTMLImports.ready=!0,window.HTMLImports.readyTime=(new Date).getTime();var t=i.createEvent("CustomEvent");t.initCustomEvent("HTMLImportsLoaded",!0,!0,e),i.dispatchEvent(t)})),e.IMPORT_LINK_TYPE=t,e.useNative=n,e.rootDocument=i,e.whenReady=c,e.isIE=s}(window.HTMLImports),e=window.HTMLImports,t=[],e.addModule=function(e){t.push(e)},e.initializeModules=function(){t.forEach((function(t){t(e)}))},window.HTMLImports.addModule((function(e){var t=/(url\()([^)]*)(\))/g,n=/(@import[\s]+(?!url\())([^;]*)(;)/g,r={resolveUrlsInStyle:function(e,t){var n=e.ownerDocument.createElement("a");return e.textContent=this.resolveUrlsInCssText(e.textContent,t,n),e},resolveUrlsInCssText:function(e,r,o){var i=this.replaceUrls(e,o,r,t);return this.replaceUrls(i,o,r,n)},replaceUrls:function(e,t,n,r){return e.replace(r,(function(e,r,o,i){var a=o.replace(/["']/g,"");return n&&(a=new URL(a,n).href),t.href=a,r+"'"+(a=t.href)+"'"+i}))}};e.path=r})),window.HTMLImports.addModule((function(e){var t={async:!0,ok:function(e){return e.status>=200&&e.status<300||304===e.status||0===e.status},load:function(n,r,o){var i=new XMLHttpRequest;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)}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){var t=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(var t,n=0,r=e.length;n<r&&(t=e[n]);n++)this.require(t);this.checkDone()},addNode:function(e){this.inflight++,this.require(e),this.checkDone()},require:function(e){var t=e.src||e.href;e.__nodeUrl=t,this.dedupe(t,e)||this.fetch(t,e)},dedupe:function(e,t){return this.pending[e]?(this.pending[e].push(t),!0):this.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:/)){var o=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{var s=function(t,n,o){this.receive(e,r,t,n,o)}.bind(this);t.load(e,s)}else setTimeout(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(var i,a=this.pending[e],s=0,c=a.length;s<c&&(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){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,r=e.length;n<r&&(t=e[n]);n++)"childList"===t.type&&t.addedNodes.length&&this.addedNodes(t.addedNodes)},addedNodes:function(e){this.addCallback&&this.addCallback(e);for(var t,n=0,r=e.length;n<r&&(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){var t=e.path,n=e.rootDocument,r=e.flags,o=e.isIE,i=e.IMPORT_LINK_TYPE,a="link[rel="+i+"]",s={documentSelectors:a,importsSelectors:[a,"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(){var e=this.nextToParse();e&&this.parse(e)},parse:function(e){if(this.isParsed(e))r.parse&&console.log("[%s] is already parsed",e.localName);else{var t=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){r.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,r.parse&&console.log("completed",e)},markDynamicParsingComplete:function(e){var t=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(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({target:e});this.parseNext()},parseLink:function(e){c(e)?this.parseImport(e):(e.href=e.href,this.parseGeneric(e))},parseStyle:function(e){var n,r,o=e;(r=(n=e).ownerDocument.createElement("style")).textContent=n.textContent,t.resolveUrlsInStyle(r),e=r,o.__appliedElement=e,e.__importElement=o,this.parseGeneric(e)},parseGeneric:function(e){this.trackElement(e),this.addElementToDocument(e)},rootImportForElement:function(e){for(var t=e;t.ownerDocument.__importLink;)t=t.ownerDocument.__importLink;return t},addElementToDocument:function(e){var t=this.rootImportForElement(e.__importElement||e);t.parentNode.insertBefore(e,t)},trackElement:function(e,t){var n=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),o&&"style"===e.localName){var i=!1;if(-1==e.textContent.indexOf("@import"))i=!0;else if(e.sheet){i=!0;for(var a,s=e.sheet.cssRules,c=s?s.length:0,d=0;d<c&&(a=s[d]);d++)a.type===CSSRule.IMPORT_RULE&&(i=i&&Boolean(a.styleSheet))}i&&setTimeout((function(){e.dispatchEvent(new CustomEvent("load",{bubbles:!1}))}))}},parseScript:function(t){var n=document.createElement("script");n.__importElement=t,n.src=t.src?t.src:function(e){var t=function(e){return e.textContent+function(e){var t=e.ownerDocument;t.__importedScripts=t.__importedScripts||0;var n=e.ownerDocument.baseURI,r=t.__importedScripts?"-"+t.__importedScripts:"";return t.__importedScripts++,"\n//# sourceURL="+n+r+".js\n"}(e)}(e);return"data:text/javascript;charset=utf-8,"+encodeURIComponent(t)}(t),e.currentScript=t,this.trackElement(n,(function(t){n.parentNode&&n.parentNode.removeChild(n),e.currentScript=null})),this.addElementToDocument(n)},nextToParse:function(){return this._mayParse=[],!this.parsingElement&&(this.nextToParseInDoc(n)||this.nextToParseDynamic())},nextToParseInDoc:function(e,t){if(e&&this._mayParse.indexOf(e)<0){this._mayParse.push(e);for(var n,r=e.querySelectorAll(this.parseSelectorsForNode(e)),o=0,i=r.length;o<i&&(n=r[o]);o++)if(!this.isParsed(n))return this.hasResource(n)?c(n)?this.nextToParseInDoc(n.__doc,n):n:void 0}return t},nextToParseDynamic:function(){return this.dynamicElements[0]},parseSelectorsForNode:function(e){return(e.ownerDocument||e)===n?this.documentSelectors:this.importsSelectors},isParsed:function(e){return e.__importParsed},needsDynamicParsing:function(e){return this.dynamicElements.indexOf(e)>=0},hasResource:function(e){return!c(e)||void 0!==e.__doc}};function c(e){return"link"===e.localName&&e.rel===i}e.parser=s,e.IMPORT_SELECTOR=a})),window.HTMLImports.addModule((function(e){var t=e.flags,n=e.IMPORT_LINK_TYPE,r=e.IMPORT_SELECTOR,o=e.rootDocument,i=e.Loader,a=e.Observer,s=e.parser,c={documents:{},documentPreloadSelectors:r,importsPreloadSelectors:[r].join(","),loadNode:function(e){d.addNode(e)},loadSubtree:function(e){var t=this.marshalNodes(e);d.addNodes(t)},marshalNodes:function(e){return e.querySelectorAll(this.loadSelectorsForNode(e))},loadSelectorsForNode:function(e){return(e.ownerDocument||e)===o?this.documentPreloadSelectors:this.importsPreloadSelectors},loaded:function(e,r,o,i,a){if(t.load&&console.log("loaded",e,r),r.__resource=o,r.__error=i,function(e){return function(e,t){return"link"===e.localName&&e.getAttribute("rel")===t}(e,n)}(r)){var c=this.documents[e];void 0===c&&(c=i?null:function(e,t){var r=document.implementation.createHTMLDocument(n);r._URL=t;var o=r.createElement("base");o.setAttribute("href",t),r.baseURI||function(e){return!!Object.getOwnPropertyDescriptor(e,"baseURI")}(r)||Object.defineProperty(r,"baseURI",{value:t});var i=r.createElement("meta");return i.setAttribute("charset","utf-8"),r.head.appendChild(i),r.head.appendChild(o),r.body.innerHTML=e,window.HTMLTemplateElement&&HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(r),r}(o,a||e),c&&(c.__importLink=r,this.bootDocument(c)),this.documents[e]=c),r.__doc=c}s.parseNext()},bootDocument:function(e){this.loadSubtree(e),this.observer.observe(e),s.parseNext()},loadedAll:function(){s.parseNext()}},d=new i(c.loaded.bind(c),c.loadedAll.bind(c));if(c.observer=new a,!document.baseURI){var l={get:function(){var e=document.querySelector("base");return e?e.href:window.location.href},configurable:!0};Object.defineProperty(document,"baseURI",l),Object.defineProperty(o,"baseURI",l)}e.importer=c,e.importLoader=d})),window.HTMLImports.addModule((function(e){var t=e.parser,n=e.importer,r={added:function(e){for(var r,o,i,a,s=0,c=e.length;s<c&&(a=e[s]);s++)r||(r=a.ownerDocument,o=t.isParsed(r)),(i=this.shouldLoadNode(a))&&n.loadNode(a),this.shouldParseNode(a)&&o&&t.parseDynamic(a,i)},shouldLoadNode:function(e){return 1===e.nodeType&&o.call(e,n.loadSelectorsForNode(e))},shouldParseNode:function(e){return 1===e.nodeType&&o.call(e,t.parseSelectorsForNode(e))}};n.observer.addCallback=r.added.bind(r);var o=HTMLElement.prototype.matches||HTMLElement.prototype.matchesSelector||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector})),function(e){var t=e.initializeModules;if(e.isIE,!e.useNative){t();var n=e.rootDocument;"complete"===document.readyState||"interactive"===document.readyState&&!window.attachEvent?r():document.addEventListener("DOMContentLoaded",r)}function r(){window.HTMLImports.importer.bootDocument(n)}}(window.HTMLImports),window.CustomElements=window.CustomElements||{flags:{}},function(e){var t=e.flags,n=[];e.addModule=function(e){n.push(e)},e.initializeModules=function(){n.forEach((function(t){t(e)}))},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){var t=window.HTMLImports?window.HTMLImports.IMPORT_LINK_TYPE:"none";function n(e,t){r(e,(function(e){if(t(e))return!0;o(e,t)})),o(e,t)}function r(e,t,n){var o=e.firstElementChild;if(!o)for(o=e.firstChild;o&&o.nodeType!==Node.ELEMENT_NODE;)o=o.nextSibling;for(;o;)!0!==t(o,n)&&r(o,t,n),o=o.nextElementSibling;return null}function o(e,t){for(var r=e.shadowRoot;r;)n(r,t),r=r.olderShadowRoot}function i(e,n,r){if(e=window.wrap(e),!(r.indexOf(e)>=0)){r.push(e);for(var o,a=e.querySelectorAll("link[rel="+t+"]"),s=0,c=a.length;s<c&&(o=a[s]);s++)o.import&&i(o.import,n,r);n(e)}}e.forDocumentTree=function(e,t){i(e,t,[])},e.forSubtree=n})),window.CustomElements.addModule((function(e){var t=e.flags,n=e.forSubtree,r=e.forDocumentTree;function o(e,t){return i(e,t)||a(e,t)}function i(t,n){if(e.upgrade(t,n))return!0;n&&h(t)}function a(e,t){n(e,(function(e){if(i(e,t))return!0}))}var s=window.MutationObserver._isPolyfilled&&t["throttle-attached"];e.hasPolyfillMutations=s,e.hasThrottledAttached=s;var c=!1,d=[];function l(e){d.push(e),c||(c=!0,setTimeout(u))}function u(){c=!1;for(var e,t=d,n=0,r=t.length;n<r&&(e=t[n]);n++)e();d=[]}function h(e){s?l((function(){p(e)})):p(e)}function p(e){e.__upgraded__&&!e.__attached&&(e.__attached=!0,e.attachedCallback&&e.attachedCallback())}function f(e){s?l((function(){m(e)})):m(e)}function m(e){e.__upgraded__&&e.__attached&&(e.__attached=!1,e.detachedCallback&&e.detachedCallback())}function v(e,r){if(t.dom){var i=r[0];if(i&&"childList"===i.type&&i.addedNodes&&i.addedNodes){for(var a=i.addedNodes[0];a&&a!==document&&!a.host;)a=a.parentNode;var s=a&&(a.URL||a._URL||a.host&&a.host.localName)||"";s=s.split("/?").shift().split("/").pop()}console.group("mutations (%d) [%s]",r.length,s||"")}var c=function(e){for(var t=e,n=window.wrap(document);t;){if(t==n)return!0;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}(e);r.forEach((function(e){"childList"===e.type&&(w(e.addedNodes,(function(e){e.localName&&o(e,c)})),w(e.removedNodes,(function(e){var t;e.localName&&(f(t=e),n(t,(function(e){f(e)})))})))})),t.dom&&console.groupEnd()}var w=Array.prototype.forEach.call.bind(Array.prototype.forEach);function _(e){if(!e.__observer){var t=new MutationObserver(v.bind(this,e));t.observe(e,{childList:!0,subtree:!0}),e.__observer=t}}function g(e){e=window.wrap(e),t.dom&&console.group("upgradeDocument: ",e.baseURI.split("/").pop()),o(e,e===window.wrap(document)),_(e),t.dom&&console.groupEnd()}var b=Element.prototype.createShadowRoot;b&&(Element.prototype.createShadowRoot=function(){var e=b.call(this);return window.CustomElements.watchShadow(this),e}),e.watchShadow=function(e){if(e.shadowRoot&&!e.shadowRoot.__watched){t.dom&&console.log("watching shadow-root for: ",e.localName);for(var n=e.shadowRoot;n;)_(n),n=n.olderShadowRoot}},e.upgradeDocumentTree=function(e){r(e,g)},e.upgradeDocument=g,e.upgradeSubtree=a,e.upgradeAll=o,e.attached=h,e.takeRecords=function(e){for((e=window.wrap(e))||(e=window.wrap(document));e.parentNode;)e=e.parentNode;var t=e.__observer;t&&(v(e,t.takeRecords()),u())}})),window.CustomElements.addModule((function(e){var t=e.flags;function n(n,o,i){return t.upgrade&&console.group("upgrade:",n.localName),o.is&&n.setAttribute("is",o.is),r(n,o),n.__upgraded__=!0,function(e){e.createdCallback&&e.createdCallback()}(n),i&&e.attached(n),e.upgradeSubtree(n,i),t.upgrade&&console.groupEnd(),n}function r(e,t){Object.__proto__||function(e,t,n){for(var r={},o=t;o!==n&&o!==HTMLElement.prototype;){for(var i,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)}}(e,t.prototype,t.native),e.__proto__=t.prototype}e.upgrade=function(t,r){if("template"===t.localName&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t),!t.__upgraded__&&t.nodeType===Node.ELEMENT_NODE){var o=t.getAttribute("is"),i=e.getRegisteredDefinition(t.localName)||e.getRegisteredDefinition(o);if(i&&(o&&i.tag==t.localName||!o&&!i.extends))return n(t,i,r)}},e.upgradeWithDefinition=n,e.implementPrototype=r})),window.CustomElements.addModule((function(e){e.isIE;var t=e.upgradeDocumentTree,n=e.upgradeAll,r=e.upgradeWithDefinition,o=e.implementPrototype,i=e.useNative;function a(e,t,n){e=e.toLowerCase();var r=this.getAttribute(e);n.apply(this,arguments);var o=this.getAttribute(e);this.attributeChangedCallback&&o!==r&&this.attributeChangedCallback(e,r,o)}var s=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"];function c(e){var t=l(e);return t?c(t.extends).concat([t]):[]}var d={};function l(e){if(e)return d[e.toLowerCase()]}function u(e,t){e&&(e=e.toLowerCase()),t&&(t=t.toLowerCase());var n,r=l(t||e);if(r){if(e==r.tag&&t==r.is)return new r.ctor;if(!t&&!r.is)return new r.ctor}return t?((n=u(e)).setAttribute("is",t),n):(n=p(e),e.indexOf("-")>=0&&o(n,HTMLElement),n)}var h,p=document.createElement.bind(document),f=document.createElementNS.bind(document);function m(e,t){var r=e[t];e[t]=function(){var e=r.apply(this,arguments);return n(e),e}}h=Object.__proto__||i?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.__proto__}return!1},m(Node.prototype,"cloneNode"),m(document,"importNode"),document.registerElement=function(n,o){var i=o||{};if(!n)throw new Error("document.registerElement: first argument `name` must not be empty");if(n.indexOf("-")<0)throw new Error("document.registerElement: first argument ('name') must contain a dash ('-'). Argument provided was '"+String(n)+"'.");if(function(e){for(var t=0;t<s.length;t++)if(e===s[t])return!0}(n))throw new Error("Failed to execute 'registerElement' on 'Document': Registration failed for type '"+String(n)+"'. The type name is invalid.");if(l(n))throw new Error("DuplicateDefinitionError: a type with name '"+String(n)+"' is already registered");return i.prototype||(i.prototype=Object.create(HTMLElement.prototype)),i.__name=n.toLowerCase(),i.extends&&(i.extends=i.extends.toLowerCase()),i.lifecycle=i.lifecycle||{},i.ancestry=c(i.extends),function(e){for(var t,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)}(i),function(e){if(!Object.__proto__){var t=HTMLElement.prototype;if(e.is){var n=document.createElement(e.tag);t=Object.getPrototypeOf(n)}for(var r,o=e.prototype,i=!1;o;)o==t&&(i=!0),(r=Object.getPrototypeOf(o))&&(o.__proto__=r),o=r;i||console.warn(e.tag+" prototype not found in prototype chain for "+e.is),e.native=t}}(i),function(e){if(!e.setAttribute._polyfilled){var t=e.setAttribute;e.setAttribute=function(e,n){a.call(this,e,n,t)};var n=e.removeAttribute;e.removeAttribute=function(e){a.call(this,e,null,n)},e.setAttribute._polyfilled=!0}}(i.prototype),function(e,t){d[e]=t}(i.__name,i),i.ctor=function(e){return function(){return function(e){return r(p(e.tag),e)}(e)}}(i),i.ctor.prototype=i.prototype,i.prototype.constructor=i.ctor,e.ready&&t(document),i.ctor},document.createElement=u,document.createElementNS=function(e,t,n){return"http://www.w3.org/1999/xhtml"===e?u(t,n):f(e,t)},e.registry=d,e.instanceof=h,e.reservedTagList=s,e.getRegisteredDefinition=l,document.register=document.registerElement})),function(e){var t=e.useNative,n=e.initializeModules;if(e.isIE,t){var r=function(){};e.watchShadow=r,e.upgrade=r,e.upgradeAll=r,e.upgradeDocumentTree=r,e.upgradeSubtree=r,e.takeRecords=r,e.instanceof=function(e,t){return e instanceof t}}else n();var o=e.upgradeDocumentTree,i=e.upgradeDocument;function a(){o(window.wrap(document)),window.CustomElements.ready=!0,(window.requestAnimationFrame||function(e){setTimeout(e,16)})((function(){setTimeout((function(){window.CustomElements.readyTime=Date.now(),window.HTMLImports&&(window.CustomElements.elapsed=window.CustomElements.readyTime-window.HTMLImports.readyTime),document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}))}))}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&&i(wrap(e.import))}),"complete"===document.readyState||e.flags.eager)a();else if("interactive"!==document.readyState||window.attachEvent||window.HTMLImports&&!window.HTMLImports.ready){var s=window.HTMLImports&&!window.HTMLImports.ready?"HTMLImportsLoaded":"DOMContentLoaded";window.addEventListener(s,a)}else a()}(window.CustomElements),function(){var e=document.createElement("style");e.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var t=document.querySelector("head");t.insertBefore(e,t.firstChild)}(window.WebComponents)}}]);