UNPKG

@liascript/exporter

Version:
10 lines 128 kB
var _typeof=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}; /** @license @nocompile Copyright (c) 2018 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(function(){"use strict";var t,e,n=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},r=function(t,e){if(e)t:{var n=Nn;t=t.split(".");for(var r=0;r<t.length-1;r++){var o=t[r];if(!(o in n))break t;n=n[o]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&wn(n,t,{configurable:!0,writable:!0,value:e})}},o=function(t){return(t={next:t})[Symbol.iterator]=function(){return this},t},i=function(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:n(t)}},a=function(t){if(!(t instanceof Array)){t=i(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t},s=function(){this.u=!1,this.h=null,this.Oa=void 0,this.g=1,this.ea=0,this.i=null},l=function(t){if(t.u)throw new TypeError("Generator is already running");t.u=!0},c=function(t,e){t.i={ab:e,fb:!0},t.g=t.ea},u=function(t,e){return t.g=3,{value:e}},h=function(t){this.g=new s,this.h=t},d=function(t,e,n,r){try{var o=e.call(t.g.h,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return t.g.u=!1,o;var i=o.value}catch(e){return t.g.h=null,c(t.g,e),f(t)}return t.g.h=null,r.call(t.g,i),f(t)},f=function(t){for(;t.g.g;)try{var e=t.h(t.g);if(e)return t.g.u=!1,{value:e.value,done:!1}}catch(e){t.g.Oa=void 0,c(t.g,e)}if(t.g.u=!1,t.g.i){if(e=t.g.i,t.g.i=null,e.fb)throw e.ab;return{value:e.return,done:!0}}return{value:void 0,done:!0}},p=function(t){this.next=function(e){return l(t.g),t.g.h?e=d(t,t.g.h.next,e,t.g.O):(t.g.O(e),e=f(t)),e},this.throw=function(e){return l(t.g),t.g.h?e=d(t,t.g.h.throw,e,t.g.O):(c(t.g,e),e=f(t)),e},this.return=function(e){return function(t,e){l(t.g);var n=t.g.h;return n?d(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.g.return):(t.g.return(e),f(t))}(t,e)},this[Symbol.iterator]=function(){return this}},_=function(t,e){return e=new p(new h(e)),Tn&&t.prototype&&Tn(e,t.prototype),e},m=function(){},v=function(t,e){for(;3===t.N;)t=t.I;0===t.N?t.ba.push(e):(t.Ha=!0,kn((function(){var n=1===t.N?e.hb:e.ib;if(null===n)(1===t.N?y:g)(e.promise,t.I);else{try{var r=n(t.I)}catch(t){return void g(e.promise,t)}y(e.promise,r)}})))},y=function(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof Dn)return t.N=3,t.I=e,void b(t);if("function"==typeof n)return void w(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t.N=1,t.I=e,b(t)}catch(e){g(t,e)}},g=function(t,e){t.N=2,t.I=e,b(t)},b=function(t){2===t.N&&0===t.ba.length&&kn((function(){t.Ha||"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t.I)}));for(var e=0,n=t.ba.length;e<n;e++)v(t,t.ba[e]);t.ba=null},E=function(t,e,n){this.hb="function"==typeof t?t:null,this.ib="function"==typeof e?e:null,this.promise=n},w=function(t,e){var n=!1;try{t((function(t){n||(n=!0,y(e,t))}),(function(t){n||(n=!0,g(e,t))}))}catch(t){n||(n=!0,g(e,t))}},N=function(t){return t&&"object"==typeof t&&t.constructor===Dn?t:new Dn((function(e){e(t)}))},C=function(t){(t=t.prototype).hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(n=(e=i(e)).next();!n.done;n=e.next())n=n.value,cr.call(this,"string"==typeof n?document.createTextNode(n):n)}})},S=function(t){(t=t.prototype).hasOwnProperty("prepend")||Object.defineProperty(t,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];n=fr.call(this);for(var r=(e=i(e)).next();!r.done;r=e.next())r=r.value,dr.call(this,"string"==typeof r?document.createTextNode(r):r,n)}})},T=function(t){(t=t.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(t,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];for(;null!==(n=yr.call(this));)vr.call(this,n);for(n=(e=i(e)).next();!n.done;n=e.next())n=n.value,mr.call(this,"string"==typeof n?document.createTextNode(n):n)}})},O=function(t){(t=t.prototype).hasOwnProperty("after")||Object.defineProperty(t,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Cr.call(this)))for(var r=Sr.call(this),o=(e=i(e)).next();!o.done;o=e.next())o=o.value,Nr.call(n,"string"==typeof o?document.createTextNode(o):o,r)}})},D=function(t){(t=t.prototype).hasOwnProperty("before")||Object.defineProperty(t,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=xr.call(this)))for(var r=(e=i(e)).next();!r.done;r=e.next())r=r.value,Dr.call(n,"string"==typeof r?document.createTextNode(r):r,this)}})},x=function(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Lr.call(this);t&&Ar.call(t,this)}})},P=function(t){(t=t.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(t,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(null!==(n=Ir.call(this))){for(var r=(e=i(e)).next();!r.done;r=e.next())r=r.value,Rr.call(n,"string"==typeof r?document.createTextNode(r):r,this);Fr.call(n,this)}}})},M=function(){},A=function(t){return t.__shady||(t.__shady=new M),t.__shady},L=function(t){return t&&t.__shady},j=function(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"},k=function(t){return(t=L(t))&&void 0!==t.firstChild},R=function(t){return t instanceof ShadowRoot},F=function(t){return(t=(t=L(t))&&t.root)&&Yt(t)},I=function(t){fo.push(t),uo.textContent=ho++},H=function(t,e){for(;e;){if(e==t)return!0;e=e.__shady_parentNode}return!1},U=function(t){for(var e=t.length-1;0<=e;e--){var n=t[e],r=n.getAttribute("id")||n.getAttribute("name");r&&"length"!==r&&isNaN(r)&&(t[r]=n)}return t.item=function(e){return t[e]},t.namedItem=function(e){if("length"!==e&&isNaN(e)&&t[e])return t[e];for(var n=i(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t},B=function(t){var e=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)e.push(t);return e},q=function(t){var e=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e.push(t);return e},W=function(t,e,n){if(n.configurable=!0,n.value)t[e]=n.value;else try{Object.defineProperty(t,e,n)}catch(t){}},G=function(t,e,n,r){for(var o in n=void 0===n?"":n,e)r&&0<=r.indexOf(o)||W(t,n+o,e[o])},V=function(t,e){for(var n in e)n in t&&W(t,n,e[n])},z=function(t){var e={};return Object.getOwnPropertyNames(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e},X=function(t,e){for(var n,r=Object.getOwnPropertyNames(e),o=0;o<r.length;o++)t[n=r[o]]=e[n]},K=function(t){return t instanceof Node?t:document.createTextNode(""+t)},J=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(1===e.length)return K(e[0]);n=document.createDocumentFragment();for(var r=(e=i(e)).next();!r.done;r=e.next())n.appendChild(K(r.value));return n},$=function(t){var e;for(e=void 0===e?1:e;0<e;e--)t=t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,a(e)):t.push(e),t}),[]);return t},Y=function(t){po||(po=!0,I(Z)),mo.push(t)},Z=function(){po=!1;for(var t=!!mo.length;mo.length;)mo.shift()();return t},Q=function(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.qa=new Set},tt=function(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}},et=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e},nt=function(t){Co[t]=function(e){return e["__shady_native_"+t]}},rt=function(t,e){for(var n in G(t,e,"__shady_native_"),e)nt(n)},ot=function(t,e){e=void 0===e?[]:e;for(var n=0;n<e.length;n++){var r=e[n],o=Object.getOwnPropertyDescriptor(t,r);o&&(Object.defineProperty(t,"__shady_native_"+r,o),o.value?No[r]||(No[r]=o.value):nt(r))}},it=function(t){for(var e;e=t.__shady_native_firstChild;)t.__shady_native_removeChild(e)},at=function(t){for(var e in t){var n=t[e];n&&(n.enumerable=!1)}},st=function(t){if(null===t||"object"!=typeof t&&"function"!=typeof t)var e=!!t,n=!1;else{e=!!t.capture,n=!!t.once;var r=t.U}return{Pa:r,capture:e,once:n,Na:Ho?t:e}},lt=function(t){return t instanceof Node?t.__shady_getRootNode():t},ct=function(t,e){var n=[],r=t;for(t=lt(t);r;)n.push(r),r=r.__shady_assignedSlot?r.__shady_assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(e||r!==t)?r.host:r.__shady_parentNode;return n[n.length-1]===document&&n.push(window),n},ut=function(t,e){if(!R)return t;t=ct(t,!0);for(var n,r,o=0,i=void 0,a=void 0;o<e.length;o++)if(n=e[o],(r=lt(n))!==i&&(a=t.indexOf(r),i=r),!R(r)||-1<a)return n},ht=function(t){function e(e,n){return(e=new t(e,n)).__composed=n&&!!n.composed,e}return e.__proto__=t,e.prototype=t.prototype,e},dt=function(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget},ft=function(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!dt(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.__immediatePropagationStopped);o++);},pt=function(t){var e=(t=Vo?Object.create(t):t).composedPath(),n=e.map((function(t){return ut(t,e)})),r=t.bubbles,o=Object.getOwnPropertyDescriptor(t,"currentTarget");Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return l}});var i=Event.CAPTURING_PHASE,a=Object.getOwnPropertyDescriptor(t,"eventPhase");Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i}});try{for(var s=e.length-1;0<=s;s--){var l=e[s];if(i=l===n[s]?Event.AT_TARGET:Event.CAPTURING_PHASE,ft(t,l,"capture"),t.ua)return}for(s=0;s<e.length;s++){var c=(l=e[s])===n[s];if((c||r)&&(i=c?Event.AT_TARGET:Event.BUBBLING_PHASE,ft(t,l,"bubble"),t.ua))break}}finally{Vo||(o?Object.defineProperty(t,"currentTarget",o):delete t.currentTarget,a?Object.defineProperty(t,"eventPhase",a):delete t.eventPhase)}},_t=function(t,e,n,r){for(var o=0;o<t.length;o++){var i=t[o],a=i.type,s=i.capture;if(e===i.node&&n===a&&r===s)return o}return-1},mt=function(t){return Z(),!oo.ha&&this instanceof Node&&!_o(document,this)?(t.__target||gt(t,this),pt(t)):this.__shady_native_dispatchEvent(t)},vt=function(t,e,n){var r=this,o=st(n),i=o.capture,a=o.once,s=o.Pa;if(o=o.Na,e){var l=void 0===e?"undefined":_typeof(e);if(("function"===l||"object"===l)&&("object"!==l||e.handleEvent&&"function"==typeof e.handleEvent)){if(Bo[t])return this.__shady_native_addEventListener(t,e,o);var c=s||this;if(s=e[Fo]){if(-1<_t(s,c,t,i))return}else e[Fo]=[];s=function(o){if(a&&r.__shady_removeEventListener(t,e,n),o.__target||gt(o),c!==r){var s=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return c},configurable:!0});var u=Object.getOwnPropertyDescriptor(o,"eventPhase");Object.defineProperty(o,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(o.__previousCurrentTarget=o.currentTarget,(!R(c)&&"slot"!==c.localName||-1!=o.composedPath().indexOf(c))&&(o.composed||-1<o.composedPath().indexOf(c)))if(dt(o)&&o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===c||c instanceof Window){var h="function"===l?e.call(c,o):e.handleEvent&&e.handleEvent(o);return c!==r&&(s?(Object.defineProperty(o,"currentTarget",s),s=null):delete o.currentTarget,u?(Object.defineProperty(o,"eventPhase",u),u=null):delete o.eventPhase),h}},e[Fo].push({node:c,type:t,capture:i,ub:s}),this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][i?"capture":"bubble"].push(s),Go[t]||this.__shady_native_addEventListener(t,s,o)}}},yt=function(t,e,n){if(e){var r=st(n);n=r.capture;var o=r.Pa;if(r=r.Na,Bo[t])return this.__shady_native_removeEventListener(t,e,r);var i=o||this;o=void 0;var a=null;try{a=e[Fo]}catch(t){}a&&-1<(i=_t(a,i,t,n))&&(o=a.splice(i,1)[0].ub,a.length||(e[Fo]=void 0)),this.__shady_native_removeEventListener(t,o||e,r),o&&this.__handlers&&this.__handlers[t]&&-1<(e=(t=this.__handlers[t][n?"capture":"bubble"]).indexOf(o))&&t.splice(e,1)}},gt=function(t,e){if(e=void 0===e?t.target:e,t.__target=e,t.__relatedTarget=t.relatedTarget,oo.D){if(!(e=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(e);n.__shady_sourceProto=e,G(n,zo),e.__shady_patchedProto=n}t.__proto__=e.__shady_patchedProto}else G(t,zo)},bt=function(t){return{set:function(e){var n=A(this),r=t.substring(2);n.T||(n.T={}),n.T[t]&&this.removeEventListener(r,n.T[t]),this.__shady_addEventListener(r,e),n.T[t]=e},get:function(){var e=L(this);return e&&e.T&&e.T[t]},configurable:!0}},Et=function(t,e){return{index:t,ia:[],pa:e}},wt=function(t,e,n,r){var o=0,i=0,a=0,s=0,l=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(a=0;a<l;a++)if(t[a]!==n[a])break t;a=l}if(e==t.length&&r==n.length){s=t.length;for(var c=n.length,u=0;u<l-a&&Nt(t[--s],n[--c]);)u++;s=u}if(i+=a,r-=s,0==(e-=s)-(o+=a)&&0==r-i)return[];if(o==e){for(e=Et(o,0);i<r;)e.ia.push(n[i++]);return[e]}if(i==r)return[Et(o,e-o)];for(r=r-(a=i)+1,s=e-(l=o)+1,e=Array(r),c=0;c<r;c++)e[c]=Array(s),e[c][0]=c;for(c=0;c<s;c++)e[0][c]=c;for(c=1;c<r;c++)for(u=1;u<s;u++)if(t[l+u-1]===n[a+c-1])e[c][u]=e[c-1][u-1];else{var h=e[c-1][u]+1,d=e[c][u-1]+1;e[c][u]=h<d?h:d}for(l=e.length-1,a=e[0].length-1,r=e[l][a],t=[];0<l||0<a;)0==l?(t.push(2),a--):0==a?(t.push(3),l--):(s=e[l-1][a-1],(h=(c=e[l-1][a])<(u=e[l][a-1])?c<s?c:s:u<s?u:s)==s?(s==r?t.push(0):(t.push(1),r=s),l--,a--):h==c?(t.push(3),l--,r=c):(t.push(2),a--,r=u));for(t.reverse(),e=void 0,l=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(l.push(e),e=void 0),o++,i++;break;case 1:e||(e=Et(o,0)),e.pa++,o++,e.ia.push(n[i]),i++;break;case 2:e||(e=Et(o,0)),e.pa++,o++;break;case 3:e||(e=Et(o,0)),e.ia.push(n[i]),i++}return e&&l.push(e),l},Nt=function(t,e){return t===e},Ct=function(){return Qo||(Qo=window.ShadyCSS&&window.ShadyCSS.ScopingShim),Qo||null},St=function(t,e,n){var r=Ct();return!(!r||"class"!==e||(r.setElementClass(t,n),0))},Tt=function(t,e){var n=Ct();n&&n.unscopeNode(t,e)},Ot=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=Ct();return e?e.currentScopeForNode(t):""},Dt=function(t){for(var e;e=t.__shady_firstChild;)t.__shady_removeChild(e)},xt=function(t,e,n){if(t=(t=L(t))&&t.ga){if(e)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var r=0,o=e.childNodes.length;r<o;r++)t.addedNodes.push(e.childNodes[r]);else t.addedNodes.push(e);n&&t.removedNodes.push(n),function(t){t.g||(t.g=!0,I((function(){t.flush()})))}(t)}},Pt=function(t,e,n){var r=[];return di(t,e,n,r),r},Mt=function(t,e){function n(e,n){return(e===t||-1===n.indexOf(":scope"))&&co.call(e,n)}var r=function(t){function e(){if(0<r.length){for(;" "===r[r.length-1];)r.pop();n.push({La:r.filter((function(t,e){return 0==e%2})),Za:r.filter((function(t,e){return 1==e%2}))}),r.length=0}}for(var n=[],r=[],o=0;o<t.length;){var i=r[r.length-1],a=hi(t,o,[","," ",">","+","~"]),s=a===o?t[o]:t.substring(o,a);","===s?e():-1!==[void 0," ",">","+","~"].indexOf(i)&&" "===s||(" "===i&&-1!==[">","+","~"].indexOf(s)?r[r.length-1]=s:r.push(s)),o=a+(a===o?1:0)}return e(),n}(e);if(1>r.length)return[];for(e=$(Pt(t,(function(){return!0})).map((function(t){return $(r.map((function(e){var r=e.La,o=r.length-1;return n(t,r[o])?{target:t,da:e,fa:t,index:o}:[]})))})));e.some((function(t){return 0<t.index}));)e=$(e.map((function(t){if(0>=t.index)return t;var e=t.target,r=t.fa,o=t.da;t=t.index-1;var i=o.Za[t],a=o.La[t];if(" "===i){for(i=[],r=r.__shady_parentElement;r;r=r.__shady_parentElement)n(r,a)&&i.push({target:e,da:o,fa:r,index:t});return i}if(">"===i)return n(r=r.__shady_parentElement,a)?{target:e,da:o,fa:r,index:t}:[];if("+"===i)return(r=r.__shady_previousElementSibling)&&n(r,a)?{target:e,da:o,fa:r,index:t}:[];if("~"===i){for(i=[],r=r.__shady_previousElementSibling;r;r=r.__shady_previousElementSibling)n(r,a)&&i.push({target:e,da:o,fa:r,index:t});return i}throw Error("Unrecognized combinator: '"+i+"'.")})));return function(t){for(var e=[],n=new Set,r=(t=i(t)).next();!r.done;r=t.next())r=r.value,n.has(r)||(e.push(r),n.add(r));return e}(e.map((function(t){return t.target})))},At=function(t,e){if("slot"===e)t=t.__shady_parentNode,F(t)&&Gt(L(t).root);else if("slot"===t.localName&&"name"===e&&(e=Zt(t))){if(e.g){Kt(e);var n=t.Ua,r=Jt(t);if(r!==n){var o=(n=e.h[n]).indexOf(t);0<=o&&n.splice(o,1),(n=e.h[r]||(e.h[r]=[])).push(t),1<n.length&&(e.h[r]=$t(n))}}Gt(e)}},Lt=function(t,e){for(var n;e&&!t.has(n=e.__shady_getRootNode());)e=n.host;return e},jt=function(t,e,n,r){e.forEach((function(e){return t&&e&&G(t,e,n,r)}))},kt=function(t){var e,n=t?null:ji;for(e in Li)jt(window[e]&&window[e].prototype,Li[e],t,n)},Rt=function(t){return t.__shady_protoIsPatched=!0,jt(t,Li.EventTarget),jt(t,Li.Node),jt(t,Li.Element),jt(t,Li.HTMLElement),jt(t,Li.HTMLSlotElement),t},Ft=function(t,e){if(Ri&&!t.__shady_protoIsPatched&&!R(t)){var n=Object.getPrototypeOf(t),r=n.hasOwnProperty("__shady_patchedProto")&&n.__shady_patchedProto;r||(r=Object.create(n),Rt(r),n.__shady_patchedProto=r),Object.setPrototypeOf(t,r)}Fi||(1===e?ko(t):2===e&&Ro(t))},It=function(t,e,n,r){Ft(t,1),r=r||null;var o=A(t),i=r?A(r):null;o.previousSibling=r?i.previousSibling:e.__shady_lastChild,(i=L(o.previousSibling))&&(i.nextSibling=t),(i=L(o.nextSibling=r))&&(i.previousSibling=t),o.parentNode=e,r?r===n.firstChild&&(n.firstChild=t):(n.lastChild=t,n.firstChild||(n.firstChild=t)),n.childNodes=null},Ht=function(t,e){var n=A(t);if(e||void 0===n.firstChild){n.childNodes=null;var r=n.firstChild=t.__shady_native_firstChild;for(n.lastChild=t.__shady_native_lastChild,Ft(t,2),n=r,r=void 0;n;n=n.__shady_native_nextSibling){var o=A(n);o.parentNode=e||t,o.nextSibling=n.__shady_native_nextSibling,o.previousSibling=r||null,r=n,Ft(n,1)}}},Ut=function(t,e){G(t,Ii,e),G(t,Di,e),G(t,Ni,e),G(t,pi,e),oo.J&&!e?(G(t,li,e),G(t,Ti,e)):oo.D||(G(t,Ao),G(t,Po),G(t,Mo))},Bt=function(t){var e=[];do{e.unshift(t)}while(t=t.__shady_parentNode);return e},qt=function(t,e,n){if(t!==Hi)throw new TypeError("Illegal constructor");this.g=null,Wt(this,e,n)},Wt=function(t,e,n){if(t.host=e,t.mode=n&&n.mode,Ht(t.host),(e=A(t.host)).root=t,e.lb="closed"!==t.mode?t:null,(e=A(t)).firstChild=e.lastChild=e.parentNode=e.nextSibling=e.previousSibling=null,oo.preferPerformance)for(;e=t.host.__shady_native_firstChild;)t.host.__shady_native_removeChild(e);else Gt(t)},Gt=function(t){t.Y||(t.Y=!0,Y((function(){return Vt(t)})))},Vt=function(t){var e;if(e=t.Y){for(var n;t;)t.Y&&(n=t),t=(e=t).host.__shady_getRootNode(),R(t)&&(e=L(e.host))&&0<e.ka||(t=void 0);e=n}(n=e)&&n._renderSelf()},zt=function(t,e,n){var r=A(e),o=r.xa;r.xa=null,n||(n=(t=t.h[e.__shady_slot||"__catchall"])&&t[0]),n?(A(n).assignedNodes.push(e),r.assignedSlot=n):r.assignedSlot=void 0,o!==r.assignedSlot&&r.assignedSlot&&(A(r.assignedSlot).Aa=!0)},Xt=function(t){t.i=t.i||[],t.g=t.g||[],t.h=t.h||{}},Kt=function(t){if(t.i&&t.i.length){for(var e,n=t.i,r=0;r<n.length;r++){var o=n[r];Ht(o);var i=o.__shady_parentNode;Ht(i),(i=L(i)).ka=(i.ka||0)+1,i=Jt(o),t.h[i]?((e=e||{})[i]=!0,t.h[i].push(o)):t.h[i]=[o],t.g.push(o)}if(e)for(var a in e)t.h[a]=$t(t.h[a]);t.i=[]}},Jt=function(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.Ua=e},$t=function(t){return t.sort((function(t,e){t=Bt(t);for(var n=Bt(e),r=0;r<t.length;r++){e=t[r];var o=n[r];if(e!==o)return(t=q(e.__shady_parentNode)).indexOf(e)-t.indexOf(o)}}))},Yt=function(t){return Kt(t),!(!t.g||!t.g.length)},Zt=function(t){if(t=t.__shady_getRootNode(),R(t))return t},Qt=function(t){this.node=t},te=function(t){Object.defineProperty(Qt.prototype,t,{get:function(){return this.node["__shady_"+t]},set:function(e){this.node["__shady_"+t]=e},configurable:!0})},ee=function(t){if(R(t)||t instanceof Qt)return t;var e=zi.get(t);return e||(e=new Qt(t),zi.set(t,e)),e},ne=function(t){var e=xa.has(t);return t=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(t),!e&&t},re=function(t){var e=t.isConnected;if(void 0!==e)return e;if(Pa(t))return!0;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))},oe=function(t){var e=t.children;if(e)return Array.prototype.slice.call(e);for(e=[],t=t.firstChild;t;t=t.nextSibling)t.nodeType===Node.ELEMENT_NODE&&e.push(t);return e},ie=function(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null},ae=function(){var t=!(null==ja||!ja.noDocumentConstructionObserver),e=!(null==ja||!ja.shadyDomFastWalk);this.ca=[],this.g=[],this.W=!1,this.shadyDomFastWalk=e,this.sb=!t},se=function(t,e,n,r){var o=window.ShadyDOM;if(t.shadyDomFastWalk&&o&&o.inUse){if(e.nodeType===Node.ELEMENT_NODE&&n(e),e.querySelectorAll)for(t=o.nativeMethods.querySelectorAll.call(e,"*"),e=0;e<t.length;e++)n(t[e])}else Ma(e,n,r)},le=function(t,e){t.W&&se(t,e,(function(e){return ce(t,e)}))},ce=function(t,e){if(t.W&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.ca.length;n++)t.ca[n](e);for(n=0;n<t.g.length;n++)t.g[n](e)}},ue=function(t,e){var n=[];for(se(t,e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state?t.connectedCallback(r):de(t,r)}},he=function(t,e){var n=[];for(se(t,e,(function(t){return n.push(t)})),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state&&t.disconnectedCallback(r)}},de=function(t,e){try{var n=e.ownerDocument,r=n.__CE_registry,o=r&&(n.defaultView||n.__CE_isImportDocument)?we(r,e.localName):void 0;if(o&&void 0===e.__CE_state){o.constructionStack.push(e);try{try{if(new o.constructorFunction!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=o,o.attributeChangedCallback&&e.hasAttributes()){var i=o.observedAttributes;for(o=0;o<i.length;o++){var a=i[o],s=e.getAttribute(a);null!==s&&t.attributeChangedCallback(e,a,null,s,null)}}re(e)&&t.connectedCallback(e)}}catch(t){pe(t)}},fe=function(t,e,n,r){var o=e.__CE_registry;if(o&&(null===r||"http://www.w3.org/1999/xhtml"===r)&&(o=we(o,n)))try{var i=new o.constructorFunction;if(void 0===i.__CE_state||void 0===i.__CE_definition)throw Error("Failed to construct '"+n+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==i.namespaceURI)throw Error("Failed to construct '"+n+"': The constructed element's namespace must be the HTML namespace.");if(i.hasAttributes())throw Error("Failed to construct '"+n+"': The constructed element must not have any attributes.");if(null!==i.firstChild)throw Error("Failed to construct '"+n+"': The constructed element must not have any children.");if(null!==i.parentNode)throw Error("Failed to construct '"+n+"': The constructed element must not have a parent node.");if(i.ownerDocument!==e)throw Error("Failed to construct '"+n+"': The constructed element's owner document is incorrect.");if(i.localName!==n)throw Error("Failed to construct '"+n+"': The constructed element's local name is incorrect.");return i}catch(o){return pe(o),e=null===r?Ji.call(e,n):$i.call(e,r,n),Object.setPrototypeOf(e,HTMLUnknownElement.prototype),e.__CE_state=2,e.__CE_definition=void 0,ce(t,e),e}return e=null===r?Ji.call(e,n):$i.call(e,r,n),ce(t,e),e},pe=function(t){var e="",n="",r=0,o=0;t instanceof Error?(e=t.message,n=t.sourceURL||t.fileName||"",r=t.line||t.lineNumber||0,o=t.column||t.columnNumber||0):e="Uncaught "+String(t);var i=void 0;void 0===ErrorEvent.prototype.initErrorEvent?i=new ErrorEvent("error",{cancelable:!0,message:e,filename:n,lineno:r,colno:o,error:t}):((i=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,e,n,r),i.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===i.error&&Object.defineProperty(i,"error",{configurable:!0,enumerable:!0,get:function(){return t}}),window.dispatchEvent(i),i.defaultPrevented||console.error(t)},_e=function(){var t=this;this.I=void 0,this.Ka=new Promise((function(e){t.g=e}))},me=function(t){var e=document;this.X=void 0,this.S=t,this.g=e,Aa(this.S,this.g),"loading"===this.g.readyState&&(this.X=new MutationObserver(this.h.bind(this)),this.X.observe(this.g,{childList:!0,subtree:!0}))},ve=function(t){t.X&&t.X.disconnect()},ye=function(t){this.ma=new Map,this.na=new Map,this.Fa=new Map,this.wa=!1,this.za=new Map,this.la=function(t){return t()},this.V=!1,this.oa=[],this.S=t,this.Ga=t.sb?new me(t):void 0},ge=function(t,e){if(!ne(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(we(t,e))throw Error("A custom element with name '"+e+"' has already been defined.");if(t.wa)throw Error("A custom element is already being defined.")},be=function(t,e,n){var r;t.wa=!0;try{var o=n.prototype;if(!(o instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=function(t){var e=o[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},a=i("connectedCallback"),s=i("disconnectedCallback"),l=i("adoptedCallback"),c=(r=i("attributeChangedCallback"))&&n.observedAttributes||[]}catch(t){throw t}finally{t.wa=!1}return n={localName:e,constructorFunction:n,connectedCallback:a,disconnectedCallback:s,adoptedCallback:l,attributeChangedCallback:r,observedAttributes:c,constructionStack:[]},t.na.set(e,n),t.Fa.set(n.constructorFunction,n),n},Ee=function(t){if(!1!==t.V){t.V=!1;for(var e=[],n=t.oa,r=new Map,o=0;o<n.length;o++)r.set(n[o],[]);for(Aa(t.S,document,{upgrade:function(n){if(void 0===n.__CE_state){var o=n.localName,i=r.get(o);i?i.push(n):t.na.has(o)&&e.push(n)}}}),o=0;o<e.length;o++)de(t.S,e[o]);for(o=0;o<n.length;o++){for(var i=n[o],a=r.get(i),s=0;s<a.length;s++)de(t.S,a[s]);(i=t.za.get(i))&&i.resolve(void 0)}n.length=0}},we=function(t,e){var n=t.na.get(e);if(n)return n;if(n=t.ma.get(e)){t.ma.delete(e);try{return be(t,e,n())}catch(t){pe(t)}}},Ne=function(t,e,n){function r(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var s=r[a];if(s instanceof Element&&re(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(e.apply(this,r),r=0;r<i.length;r++)he(t,i[r]);if(re(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&ue(t,i)}}void 0!==n.prepend&&(e.prepend=r(n.prepend)),void 0!==n.append&&(e.append=r(n.append))},Ce=function(){var t,e=new ae;!function(t){function e(){var e=this.constructor,n=document.__CE_registry.Fa.get(e);if(!n)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var r=n.constructionStack;if(0===r.length)return r=Ji.call(document,n.localName),Object.setPrototypeOf(r,e.prototype),r.__CE_state=1,r.__CE_definition=n,ce(t,r),r;var o=r.length-1,i=r[o];if(i===La)throw Error("Failed to construct '"+n.localName+"': This element was already constructed.");return r[o]=La,Object.setPrototypeOf(i,e.prototype),ce(t,i),i}e.prototype=Sa.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),window.HTMLElement=e}(e),t=e,Document.prototype.createElement=function(e){return fe(t,this,e,null)},Document.prototype.importNode=function(e,n){return e=Yi.call(this,e,!!n),this.__CE_registry?Aa(t,e):le(t,e),e},Document.prototype.createElementNS=function(e,n){return fe(t,this,n,e)},Ne(t,Document.prototype,{prepend:Zi,append:Qi}),Ne(e,DocumentFragment.prototype,{prepend:ta,append:ea}),function(t){function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var r=void 0;if(this.firstChild){var o=this.childNodes,i=o.length;if(0<i&&re(this)){r=Array(i);for(var a=0;a<i;a++)r[a]=o[a]}}if(n.set.call(this,e),r)for(e=0;e<r.length;e++)he(t,r[e])}}})}Node.prototype.insertBefore=function(e,n){if(e instanceof DocumentFragment){var r=oe(e);if(e=oa.call(this,e,n),re(this))for(n=0;n<r.length;n++)ue(t,r[n]);return e}return r=e instanceof Element&&re(e),n=oa.call(this,e,n),r&&he(t,e),re(this)&&ue(t,e),n},Node.prototype.appendChild=function(e){if(e instanceof DocumentFragment){var n=oe(e);if(e=ra.call(this,e),re(this))for(var r=0;r<n.length;r++)ue(t,n[r]);return e}return n=e instanceof Element&&re(e),r=ra.call(this,e),n&&he(t,e),re(this)&&ue(t,e),r},Node.prototype.cloneNode=function(e){return e=na.call(this,!!e),this.ownerDocument.__CE_registry?Aa(t,e):le(t,e),e},Node.prototype.removeChild=function(e){var n=e instanceof Element&&re(e),r=ia.call(this,e);return n&&he(t,e),r},Node.prototype.replaceChild=function(e,n){if(e instanceof DocumentFragment){var r=oe(e);if(e=aa.call(this,e,n),re(this))for(he(t,n),n=0;n<r.length;n++)ue(t,r[n]);return e}r=e instanceof Element&&re(e);var o=aa.call(this,e,n),i=re(this);return i&&he(t,n),r&&he(t,e),i&&ue(t,e),o},sa&&sa.get?e(Node.prototype,sa):function(t,e){t.W=!0,t.ca.push(e)}(t,(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==Node.COMMENT_NODE&&t.push(e.textContent);return t.join("")},set:function(t){for(;this.firstChild;)ia.call(this,this.firstChild);null!=t&&""!==t&&ra.call(this,document.createTextNode(t))}})}))}(e),function(t){function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var r=this,o=void 0;if(re(this)&&(o=[],se(t,this,(function(t){t!==r&&o.push(t)}))),n.set.call(this,e),o)for(var i=0;i<o.length;i++){var a=o[i];1===a.__CE_state&&t.disconnectedCallback(a)}return this.ownerDocument.__CE_registry?Aa(t,this):le(t,this),e}})}function n(e,n){e.insertAdjacentElement=function(e,r){var o=re(r);return e=n.call(this,e,r),o&&he(t,r),re(e)&&ue(t,r),e}}function r(e,n){function r(e,n){for(var r=[];e!==n;e=e.nextSibling)r.push(e);for(n=0;n<r.length;n++)Aa(t,r[n])}e.insertAdjacentHTML=function(t,e){if("beforebegin"===(t=t.toLowerCase())){var o=this.previousSibling;n.call(this,t,e),r(o||this.parentNode.firstChild,this)}else if("afterbegin"===t)o=this.firstChild,n.call(this,t,e),r(this.firstChild,o);else if("beforeend"===t)o=this.lastChild,n.call(this,t,e),r(o||this.firstChild,null);else{if("afterend"!==t)throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");o=this.nextSibling,n.call(this,t,e),r(this.nextSibling,o)}}}la&&(Element.prototype.attachShadow=function(e){if(e=la.call(this,e),t.W&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.ca.length;n++)t.ca[n](e)}return this.__CE_shadowRoot=e}),ca&&ca.get?e(Element.prototype,ca):Ta&&Ta.get?e(HTMLElement.prototype,Ta):function(t,e){t.W=!0,t.g.push(e)}(t,(function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return na.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,r=$i.call(document,this.namespaceURI,this.localName);for(r.innerHTML=t;0<n.childNodes.length;)ia.call(n,n.childNodes[0]);for(t=e?r.content:r;0<t.childNodes.length;)ra.call(n,t.childNodes[0])}})})),Element.prototype.setAttribute=function(e,n){if(1!==this.__CE_state)return ha.call(this,e,n);var r=ua.call(this,e);ha.call(this,e,n),n=ua.call(this,e),t.attributeChangedCallback(this,e,r,n,null)},Element.prototype.setAttributeNS=function(e,n,r){if(1!==this.__CE_state)return _a.call(this,e,n,r);var o=pa.call(this,e,n);_a.call(this,e,n,r),r=pa.call(this,e,n),t.attributeChangedCallback(this,n,o,r,e)},Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return da.call(this,e);var n=ua.call(this,e);da.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)},fa&&(Element.prototype.toggleAttribute=function(e,n){if(1!==this.__CE_state)return fa.call(this,e,n);var r=ua.call(this,e);return null!==r!==(n=fa.call(this,e,n))&&t.attributeChangedCallback(this,e,r,n?"":null,null),n}),Element.prototype.removeAttributeNS=function(e,n){if(1!==this.__CE_state)return ma.call(this,e,n);var r=pa.call(this,e,n);ma.call(this,e,n);var o=pa.call(this,e,n);r!==o&&t.attributeChangedCallback(this,n,r,o,e)},Oa?n(HTMLElement.prototype,Oa):va&&n(Element.prototype,va),Da?r(HTMLElement.prototype,Da):ya&&r(Element.prototype,ya),Ne(t,Element.prototype,{prepend:ga,append:ba}),function(t){function e(e){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o]=arguments[o];o=[];for(var i=[],a=0;a<r.length;a++){var s=r[a];if(s instanceof Element&&re(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)o.push(s);else o.push(s)}for(e.apply(this,r),r=0;r<i.length;r++)he(t,i[r]);if(re(this))for(r=0;r<o.length;r++)(i=o[r])instanceof Element&&ue(t,i)}}var n=Element.prototype;void 0!==Ea&&(n.before=e(Ea)),void 0!==wa&&(n.after=e(wa)),void 0!==Na&&(n.replaceWith=function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=[];for(var o=[],i=0;i<n.length;i++){var a=n[i];if(a instanceof Element&&re(a)&&o.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(i=re(this),Na.apply(this,n),n=0;n<o.length;n++)he(t,o[n]);if(i)for(he(t,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&ue(t,o)}),void 0!==Ca&&(n.remove=function(){var e=re(this);Ca.call(this),e&&he(t,this)})}(t)}(e),window.CustomElementRegistry=ye,e=new ye(e),document.__CE_registry=e,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:e})},Se=function(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""},Te=function(t){var e=t=t.replace(Wa,"").replace(Ga,""),n=new Se;n.start=0,n.end=e.length;for(var r=n,o=0,i=e.length;o<i;o++)if("{"===e[o]){r.rules||(r.rules=[]);var a=r,s=a.rules[a.rules.length-1]||null;(r=new Se).start=o+1,r.parent=a,r.previous=s,a.rules.push(r)}else"}"===e[o]&&(r.end=o+1,r=r.parent||n);return ka(n,t)},Oe=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,(function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t}))},De=function(t){Fa=(!t||!t.shimcssproperties)&&(Ya||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))},xe=function(t,e){return t?("string"==typeof t&&(t=Te(t)),e&&ss(t,e),Ra(t,Qa)):""},Pe=function(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Te(t.textContent)),t.__cssRules||null},Me=function(t){return!!t.parent&&t.parent.type===Ua},Ae=function(t,e,n,r){var o=document.createElement("style");return e&&o.setAttribute("scope",e),o.textContent=t,je(o,n,r),o},Le=function(t){t=document.createComment(" Shady DOM styles for "+t+" ");var e=document.head;return e.insertBefore(t,(ls?ls.nextSibling:null)||e.firstChild),ls=t},je=function(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),ls?t.compareDocumentPosition(ls)===Node.DOCUMENT_POSITION_PRECEDING&&(ls=t):ls=t},ke=function(t,e){for(var n=0,r=t.length;e<r;e++)if("("===t[e])n++;else if(")"===t[e]&&0==--n)return e;return-1},Re=function(t,e){Ya?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)},Fe=function(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,ja:n}},Ie=function(t){for(var e=[],n="",r=0;0<=r&&r<t.length;r++)if("("===t[r]){var o=ke(t,r);n+=t.slice(r,o+1),r=o}else","===t[r]?(e.push(n),n=""):n+=t[r];return n&&e.push(n),e},He=function(t){if(void 0!==Ia)return Ia;if(void 0===t.__cssBuild){var e=t.getAttribute("css-build");if(e)t.__cssBuild=e;else{if(""!==(e=(e="template"===t.localName?t.content.firstChild:t.firstChild)instanceof Comment&&"css-build"===(e=e.textContent.trim().split(":"))[0]?e[1]:"")){var n="template"===t.localName?t.content.firstChild:t.firstChild;n.parentNode.removeChild(n)}t.__cssBuild=e}}return t.__cssBuild||""},Ue=function(t){return!(""===(t=void 0===t?"":t)||!Qa)&&(Ya?"shadow"===t:"shady"===t)},Be=function(){},qe=function(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var r=t.getAttribute("class");n?r&&(e=r.replace("style-scope","").replace(e,""),Re(t,e)):Re(t,(r?r+" ":"")+"style-scope "+e)}},We=function(t,e,n){hs(bs,t,(function(t){qe(t,e,!0),qe(t,n)}))},Ge=function(t,e){hs(bs,t,(function(t){qe(t,e||"",!0)}))},Ve=function(t,e,n,r,o){var i=bs;return""===(o=void 0===o?"":o)&&(Ya||"shady"===(void 0===r?"":r)?o=xe(e,n):(t=Fe(t),o=ze(i,e,t.is,t.ja,n)+"\n\n")),o.trim()},ze=function(t,e,n,r,o){var i=Xe(n,r);return n=n?"."+n:"",xe(e,(function(e){e.i||(e.selector=e.G=Ke(t,e,t.h,n,i),e.i=!0),o&&o(e,n,i)}))},Xe=function(t,e){return e?"[is="+t+"]":t},Ke=function(t,e,n,r,o){var i=Ie(e.selector);if(!Me(e)){e=0;for(var a=i.length,s=void 0;e<a&&(s=i[e]);e++)i[e]=n.call(t,s,r,o)}return i.filter((function(t){return!!t})).join(",")},Je=function(t){return t.replace(ds,(function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"}))},$e=function(t,e){t=t.split(/(\[.+?\])/);for(var n=[],r=0;r<t.length;r++)if(1==r%2)n.push(t[r]);else{var o=t[r];""===o&&r===t.length-1||((o=o.split(":"))[0]+=e,n.push(o.join(":")))}return n.join("")},Ye=function(t){":root"===t.selector&&(t.selector="html")},Ze=function(t,e,n,r,o){this.M=t||null,this.h=e||null,this.Ca=n||[],this.K=null,this.cssBuild=o||"",this.ja=r||"",this.g=this.L=this.R=null},Qe=function(t){return t?t.__styleInfo:null},tn=function(t,e){return t.__styleInfo=e},en=function(t){var e=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return e&&e.call(this,t)},nn=function(){},rn=function(t){if(!t.F){var e={},n={};on(t,n)&&(e.P=n,t.rules=null),e.cssText=t.parsedCssText.replace(is,"").replace(ts,""),t.F=e}},on=function(t,e){var n=t.F;if(!n){n=t.parsedCssText;for(var r;t=ts.exec(n);)"inherit"===(r=(t[2]||t[3]).trim())&&"unset"===r||(e[t[1].trim()]=r),r=!0;return r}if(n.P)return Object.assign(e,n.P),!0},an=function(t,e,n){e=e.split(";");for(var r,o,i=0;i<e.length;i++)if(r=e[i]){if(es.lastIndex=0,o=es.exec(r))r=Ns(t,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var a=r.substring(o);a=Ns(t,a=a.trim(),n)||a,r=r.substring(0,o)+a}e[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return e.join(";")},sn=function(t,e,n){var r={},o={};return ss(e,(function(e){!function(t,e,n,r){if(e.F||rn(e),e.F.P){var o=Fe(t);t=o.is,o=o.ja,o=t?Xe(t,o):"html";var i=e.parsedSelector,a=!!i.match(Es)||"html"===o&&-1<i.indexOf("html"),s=0===i.indexOf(":host")&&!a;"shady"===n&&(s=!(a=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),(a||s)&&(n=o,s&&(e.G||(e.G=Ke(bs,e,bs.h,t?"."+t:"",o)),n=e.G||o),a&&"html"===o&&(n=e.G||e.O),r({Ea:n,gb:s,vb:a}))}}(t,e,n,(function(n){en.call(t._element||t,n.Ea)&&(n.gb?on(e,r):on(e,o))}))}),null,!0),{mb:o,eb:r}},ln=function(t){return function(e){return e.replace(t.u,t.g)}},cn=function(t,e){var n=Cs,r=Pe(t);t.textContent=xe(r,(function(t){var r=t.cssText=t.parsedCssText;t.F&&t.F.cssText&&(r=r.replace(Va,"").replace(za,""),t.cssText=an(n,r,e))}))},un=function(){this.cache={}},hn=function(){},dn=function(t){return(t=(t.classList&&t.classList.value?t.classList.value:t.getAttribute("class")||"").match(Ds))?t[1]:""},fn=function(t){var e=us(t).getRootNode();return e===t||e===t.ownerDocument?"":(t=e.host)?Fe(t).is:""},pn=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),a=dn(o);if(a&&i===o.ownerDocument&&("style"!==o.localName&&"template"!==o.localName||""===He(o)))Ge(o,a);else if(i instanceof ShadowRoot)for((i=fn(o))!==a&&We(o,a,i),o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+bs.g+")"),a=0;a<o.length;a++){i=o[a];var s=fn(i);s&&qe(i,s)}}}}},_n=function(t){(t=As[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)},mn=function(t){return t._applyShimCurrentVersion===t._applyShimNextVersion},vn=function(){this.ea={},this.i=document.documentElement;var t=new Se;t.rules=[],this.u=tn(this.i,new Ze(t)),this.O=!1,this.g=this.h=null},yn=function(t){var e=Fe(t),n=e.is;e=e.ja;var r=Ss[n]||null,o=As[n];if(o){n=o._styleAst;var i=o.g;return o=He(o),e=new Ze(n,r,i,e,o),tn(t,e),e}},gn=function(t){if(!t.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){t.h=window.ShadyCSS.ApplyShim,t.h.invalidCallback=_n;var e=!0}else e=!1;return function(t){!t.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.g=window.ShadyCSS.CustomStyleInterface,t.g.transformCallback=function(e){t.Qa(e)},t.g.validateCallback=function(){requestAnimationFrame((function(){(t.g.enqueued||t.O)&&t.flushCustomStyles()}))})}(t),e},bn=function(t,e,n){var r=Fe(e).is;if(n.K){var o,i=n.K;for(o in i)null===o?e.style.removeProperty(o):e.style.setProperty(o,i[o])}!(i=As[r])&&e!==t.i||i&&""!==He(i)||!i||!i._style||mn(i)||((mn(i)||i._applyShimValidatingVersion!==i._applyShimNextVersion)&&(gn(t),t.h&&t.h.transformRules(i._styleAst,r),i._style.textContent=Ve(e,n.M),function(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t._validating||(t._validating=!0,Ls.then((function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t._validating=!1})))}(i)),Ya&&(t=e.shadowRoot)&&(t=t.querySelector("style"))&&(t.textContent=Ve(e,n.M)),n.M=i._styleAst)},En=function(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document),Ws&&Ws(),qs=!0,window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))},wn="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t},Nn=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var n=t[e];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);if(r("Symbol",(function(t){var e=function(t,e){this.g=t,wn(this,"description",{configurable:!0,writable:!0,value:e})};if(t)return t;e.prototype.toString=function(){return this.g};var n=0;return function t(r){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new e("jscomp_symbol_"+(r||"")+"_"+n++,r)}})),r("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),r=0;r<e.length;r++){var i=Nn[e[r]];"function"==typeof i&&"function"!=typeof i.prototype[t]&&wn(i.prototype,t,{configurable:!0,writable:!0,value:function(){return o(n(this))}})}return t})),"function"==typeof Object.setPrototypeOf)e=Object.setPrototypeOf;else{var Cn;t:{var Sn={};try{Sn.__proto__={a:!0},Cn=Sn.a;break t}catch(xn){}Cn=!1}e=Cn?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var Tn=e;s.prototype.O=function(t){this.Oa=t},s.prototype.return=function(t){this.i={return:t},this.g=this.ea},Array.from||(Array.from=function(t){return[].slice.call(t)}),Object.assign||(Object.assign=function(t){for(var e,n=[].slice.call(arguments,1),r=0;r<n.length;r++)if(e=n[r])for(var o=t,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a];o[s]=e[s]}return t});var On=setTimeout;function Dn(t){if(!(this instanceof Dn))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this.N=0,this.Ha=!1,this.I=void 0,this.ba=[],w(t,this)}Dn.prototype.catch=function(t){return this.then(null,t)},Dn.prototype.then=function(t,e){var n=new this.constructor(m);return v(this,new E(t,e,n)),n},Dn.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))};var xn,Pn,Mn,An,Ln,jn,kn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){On(t,0)};if(!window.Promise){window.Promise=Dn,Dn.prototype.then=Dn.prototype.then,Dn.all=function(t){return new Dn((function(e,n){function r(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){r(t,e)}),n)}o[t]=a,0==--i&&e(o)}catch(t){n(t)}}if(!t||void 0===t.length)return n(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return e([]);for(var i=o.length,a=0;a<o.length;a++)r(a,o[a])}))},Dn.race=function(t){return new Dn((function(e,n){if(!t||void 0===t.length)return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)N(t[r]).then(e,n)}))},Dn.resolve=N,Dn.reject=function(t){return new Dn((function(e,n){n(t)}))};var Rn=document.createTextNode(""),Fn=[];new MutationObserver((function(){for(var t=Fn.length,e=0;e<t;e++)Fn[e]();Fn.splice(0,t)})).observe(Rn,{characterData:!0}),kn=function(t){Fn.push(t),Rn.textContent=0<Rn.textContent.length?"":"a"}}!function(t,e){if(!(e in t)){var n=("undefined"==typeof global?"undefined":_typeof(global))===(void 0===n?"undefined":_typeof(n))?window:global,r=0,o=String(Math.random()),i="__symbol@@"+o,a=t.getOwnPropertyNames,s=t.getOwnPropertyDescriptor,l=t.create,c=t.keys,u=t.freeze||t,h=t.defineProperty,d=t.defineProperties,f=s(t,"getOwnPropertyNames"),p=t.prototype,_=p.hasOwnProperty,m=p.propertyIsEnumerable,v=p.toString,y=function(t,e,n){_.call(t,i)||h(t,i,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[i]["@@"+e]=n},g=function(){},b=function(t){return t!=i&&!_.call(S,t)},E=function(t){return t!=i&&_.call(S,t)},w=function(t){var e=String(t);return E(e)?_.call(this,e)&&!!this[i]&&this[i]["@@"+e]:m.call(this,t)},N=function(e){return h(p,e,{enumerable:!1,configurable:!0,get:g,set:function(t){P(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),y(this,e,!0)}}),S[e]=h(t(e),"constructor",T),u(S[e])},C=function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return N("__symbol:".concat(e||"",o,++r))},S=l(null),T={value:C},O=function(t){return S[t]},D=function(t,e,n){var r=String(e);if(E(r)){if(e=P,n.enumerable){var o=l(n);o.enumerable=!1}else o=n;e(t,r,o),y(t,r,!!n.enumerable)}else h(t,e,n);return t},x=function(t){return a(t).filter(E).map(O)};f.value=D,h(t,"defineProperty",f),f.value=x,h(t,e,f),f.value=function(t){return a(t).filter(b)},h(t,"getOwnPropertyNames",f),f.value=function(t,e){var n=x(e);return n.length?c(e).concat(n).forEach((function(n){w.call(e,n)&&D(t,n,e[n])})):d(t,e),t},h(t,"defineProperties",f),f.value=w,h(p,"propertyIsEnumerable",f),f.value=C,h(n,"Symbol",f),f.value=function(t){return(t="__symbol:".concat("__symbol:",t,o))in p?S[t]:N(t)},h(C,"for",f),f.value=function(t){if(b(t))throw new TypeError(t+" is not a symbol");if(_.call(S,t)&&"__symbol:"===(t=t.slice(10)).slice(0,10)&&(t=t.slice(10))!==o)return 0<(t=t.slice(0,t.length-o.length)).length?t:void 0},h(C,"keyFor",f),f.value=function(t,e){var n=s(t,e);return n&&E(e)&&(n.enumerable=w.call(t,e)),n},h(t,"getOwnPropertyDescriptor",f),f.value=function(t,e){return 1===arguments.length||void 0===e?l(t):function(t,e){var n=l(t);return a(e).forEach((function(t){w.call(e,t)&&D(n,t,e[t])})),n}(t,e)},h(t,"create",f),f.value=function(){var t=v.call(this);return"[object String]"===t&&E(this)?"[object Symbol]":t},h(p,"toString",f);try{if(!0!==l(h({},"__symbol:",{get:function(){return h(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var P=h}catch(t){P=function(t,e,n){var r=s(p,e);delete p[e],h(t,e,n),h(p,e,r)}}}}(Object,"getOwnPropertySymbols"),xn=Object,Pn=Symbol,An=xn.defineProperty,Ln=xn.prototype,jn=Ln.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(t){t in Pn||(An(Pn,t,{value:Pn(t)}),"toStringTag"===t&&((Mn=xn.getOwnPropertyDescriptor(Ln,"toString")).value=function(){var t=jn.call(this),e=null==this?this:this[Pn.toStringTag];return null==e?t:"[object "+e+"]"},An(Ln,"toString",Mn)))})),function(t,e,n){var r=function(){return this};e[t]||(e[t]=function(){var e=0,n=this,o={next:function(){var t=n.length<=e;return t?{done:t}:{done:t,value:n[e++]}}};return o[t]=r,o}),n[t]||(n[t]=function(){var e=String.fromCodePoint,n=this,o=0,i=n.length,a={next:function(){var t=i<=o,r=t?"":e(n.codePointAt(o));return o+=r.length,t?{done:t}:{done:t,value:r}}};return a[t]=r,a})}(Symbol.iterator,Array.prototype,String.prototype);var In=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":In.call