vite-plugin-browserext-hmr
Version:
基于 Vite 构建的浏览器扩展开发环境,提供热更新功能,让扩展开发更加高效。
1 lines • 125 kB
JavaScript
!function(){"use strict";function R(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var F="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t};var I,H=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);function U(t,e){if(e)t:{var n=H;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&&F(n,t,{configurable:!0,writable:!0,value:e})}}function l(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:R(t)}}function p(t){if(!(t instanceof Array)){t=l(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}if(U("Symbol",function(t){function n(t,e){this.g=t,F(this,"description",{configurable:!0,writable:!0,value:e})}if(t)return t;n.prototype.toString=function(){return this.g};var r=0;return function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(e||"")+"_"+r++,e)}}),U("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(" "),n=0;n<e.length;n++){var r=H[e[n]];"function"==typeof r&&"function"!=typeof r.prototype[t]&&F(r.prototype,t,{configurable:!0,writable:!0,value:function(){return(t={next:t=R(this)})[Symbol.iterator]=function(){return this},t;var t}})}return t}),"function"==typeof Object.setPrototypeOf)vt=Object.setPrototypeOf;else{t:{var B={};try{B.__proto__={a:!0},I=B.a;break t}catch(t){}I=!1}vt=I?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var q=vt;function W(){this.u=!1,this.h=null,this.Oa=void 0,this.g=1,this.ea=0,this.i=null}function G(t){if(t.u)throw new TypeError("Generator is already running");t.u=!0}function V(t,e){t.i={ab:e,fb:!0},t.g=t.ea}function z(t,e){return t.g=3,{value:e}}function X(t){this.g=new W,this.h=t}function K(e,t,n,r){try{var o=t.call(e.g.h,n);if(!(o instanceof Object))throw new TypeError("Iterator result "+o+" is not an object");if(!o.done)return e.g.u=!1,o;var i=o.value}catch(t){return e.g.h=null,V(e.g,t),J(e)}return e.g.h=null,r.call(e.g,i),J(e)}function J(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.u=!1,{value:t.value,done:!1}}catch(t){e.g.Oa=void 0,V(e.g,t)}if(e.g.u=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.fb)throw t.ab;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function $(r){this.next=function(t){return G(r.g),t=r.g.h?K(r,r.g.h.next,t,r.g.O):(r.g.O(t),J(r))},this.throw=function(t){return G(r.g),t=r.g.h?K(r,r.g.h.throw,t,r.g.O):(V(r.g,t),J(r))},this.return=function(t){return t=t,G((e=r).g),(n=e.g.h)?K(e,"return"in n?n.return:function(t){return{value:t,done:!0}},t,e.g.return):(e.g.return(t),J(e));var e,n},this[Symbol.iterator]=function(){return this}}function Y(t,e){return e=new $(new X(e)),q&&t.prototype&&q(e,t.prototype),e}W.prototype.O=function(t){this.Oa=t},W.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 Z=setTimeout;function Q(){}function i(t){if(!(this instanceof i))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=[],it(t,this)}function tt(n,r){for(;3===n.N;)n=n.I;0===n.N?n.ba.push(r):(n.Ha=!0,yt(function(){var t=1===n.N?r.hb:r.ib;if(null===t)(1===n.N?et:nt)(r.promise,n.I);else{try{var e=t(n.I)}catch(t){return void nt(r.promise,t)}et(r.promise,e)}}))}function et(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e.N=3,e.I=t,void rt(e);if("function"==typeof n)return void it((r=n,o=t,function(){r.apply(o,arguments)}),e)}e.N=1,e.I=t,rt(e)}catch(t){nt(e,t)}var r,o}function nt(t,e){t.N=2,t.I=e,rt(t)}function rt(t){2===t.N&&0===t.ba.length&&yt(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++)tt(t,t.ba[e]);t.ba=null}function ot(t,e,n){this.hb="function"==typeof t?t:null,this.ib="function"==typeof e?e:null,this.promise=n}function it(t,e){var n=!1;try{t(function(t){n||(n=!0,et(e,t))},function(t){n||(n=!0,nt(e,t))})}catch(t){n||(n=!0,nt(e,t))}}function at(e){return new i(function(o,i){if(!e||void 0===e.length)return i(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(e);if(0===a.length)return o([]);for(var s=a.length,t=0;t<a.length;t++)!function e(n,t){try{if(t&&("object"==typeof t||"function"==typeof t)){var r=t.then;if("function"==typeof r)return void r.call(t,function(t){e(n,t)},i)}a[n]=t,0==--s&&o(a)}catch(t){i(t)}}(t,a[t])})}function st(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})}i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var n=new this.constructor(Q);return tt(this,new ot(t,e,n)),n},i.prototype.finally=function(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})};var lt,ct,ut,ht,dt,ft,pt,_t,mt,yt="function"==typeof setImmediate?function(t){setImmediate(t)}:function(t){Z(t,0)},t=(window.Promise||((window.Promise=i).all=at,i.race=function(o){return new i(function(t,e){if(!o||void 0===o.length)return e(new TypeError("Promise.race accepts an array"));for(var n=0,r=o.length;n<r;n++)st(o[n]).then(t,e)})},i.resolve=st,i.reject=function(n){return new i(function(t,e){e(n)})},lt=document.createTextNode(""),ct=[],new MutationObserver(function(){for(var t=ct.length,e=0;e<t;e++)ct[e]();ct.splice(0,t)}).observe(lt,{characterData:!0}),yt=function(t){ct.push(t),lt.textContent=0<lt.textContent.length?"":"a"}),Object),vt="getOwnPropertySymbols";if(!(vt in t)){var e=typeof global==typeof e?window:global,gt=0,bt=String(Math.random()),Et="__symbol@@"+bt,wt=t.getOwnPropertyNames,Nt=t.getOwnPropertyDescriptor,Ct=t.create,St=t.keys,Tt=t.freeze||t,a=t.defineProperty,Ot=t.defineProperties,n=Nt(t,"getOwnPropertyNames"),o=t.prototype,Dt=o.hasOwnProperty,xt=o.propertyIsEnumerable,Pt=o.toString,Mt=function(t,e,n){Dt.call(t,Et)||a(t,Et,{enumerable:!1,configurable:!1,writable:!1,value:{}}),t[Et]["@@"+e]=n},At=function(){},Lt=function(t){return t!=Et&&!Dt.call(It,t)},jt=function(t){return t!=Et&&Dt.call(It,t)},kt=function(t){var e=String(t);return jt(e)?Dt.call(this,e)&&!!this[Et]&&this[Et]["@@"+e]:xt.call(this,t)},Rt=function(e){return a(o,e,{enumerable:!1,configurable:!0,get:At,set:function(t){Wt(this,e,{enumerable:!1,configurable:!0,writable:!0,value:t}),Mt(this,e,!0)}}),It[e]=a(t(e),"constructor",Ht),Tt(It[e])},Ft=function t(e){if(this instanceof t)throw new TypeError("Symbol is not a constructor");return Rt("__symbol:".concat(e||"",bt,++gt))},It=Ct(null),Ht={value:Ft},Ut=function(t){return It[t]},Bt=function(t,e,n){var r,o=String(e);return jt(o)?(e=Wt,n.enumerable?(r=Ct(n)).enumerable=!1:r=n,e(t,o,r),Mt(t,o,!!n.enumerable)):a(t,e,n),t},qt=function(t){return wt(t).filter(jt).map(Ut)};n.value=Bt,a(t,"defineProperty",n),n.value=qt,a(t,vt,n),n.value=function(t){return wt(t).filter(Lt)},a(t,"getOwnPropertyNames",n),n.value=function(e,n){var t=qt(n);return t.length?St(n).concat(t).forEach(function(t){kt.call(n,t)&&Bt(e,t,n[t])}):Ot(e,n),e},a(t,"defineProperties",n),n.value=kt,a(o,"propertyIsEnumerable",n),n.value=Ft,a(e,"Symbol",n),n.value=function(t){return(t="__symbol:".concat("__symbol:",t,bt))in o?It[t]:Rt(t)},a(Ft,"for",n),n.value=function(t){if(Lt(t))throw new TypeError(t+" is not a symbol");if(Dt.call(It,t)&&("__symbol:"===(t=t.slice(10)).slice(0,10)&&(t=t.slice(10))!==bt))return 0<(t=t.slice(0,t.length-bt.length)).length?t:void 0},a(Ft,"keyFor",n),n.value=function(t,e){var n=Nt(t,e);return n&&jt(e)&&(n.enumerable=kt.call(t,e)),n},a(t,"getOwnPropertyDescriptor",n),n.value=function(t,e){return 1===arguments.length||void 0===e?Ct(t):(n=e,r=Ct(t),wt(n).forEach(function(t){kt.call(n,t)&&Bt(r,t,n[t])}),r);var n,r},a(t,"create",n),n.value=function(){var t=Pt.call(this);return"[object String]"===t&&jt(this)?"[object Symbol]":t},a(o,"toString",n);try{if(!0!==Ct(a({},"__symbol:",{get:function(){return a(this,"__symbol:",{value:!0})["__symbol:"]}}))["__symbol:"])throw"IE11";var Wt=a}catch(t){Wt=function(t,e,n){var r=Nt(o,e);delete o[e],a(t,e,n),a(o,e,r)}}}function Gt(){return this}ut=Object,ht=Symbol,ft=ut.defineProperty,pt=ut.prototype,_t=pt.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(t){t in ht||(ft(ht,t,{value:ht(t)}),"toStringTag"===t&&((dt=ut.getOwnPropertyDescriptor(pt,"toString")).value=function(){var t=_t.call(this),e=null==this?this:this[ht.toStringTag];return null==e?t:"[object "+e+"]"},ft(pt,"toString",dt)))}),mt=Symbol.iterator,e=Array.prototype,Ft=String.prototype,e[mt]||(e[mt]=function(){var e=0,n=this,t={next:function(){var t=n.length<=e;return t?{done:t}:{done:t,value:n[e++]}}};return t[mt]=Gt,t}),Ft[mt]||(Ft[mt]=function(){var n=String.fromCodePoint,r=this,o=0,i=r.length,t={next:function(){var t=i<=o,e=t?"":n(r.codePointAt(o));return o+=e.length,t?{done:t}:{done:t,value:e}}};return t[mt]=Gt,t});var Vt,zt=Object.prototype.toString,n=(Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":zt.call(this)},Object.keys=function(e){return Object.getOwnPropertyNames(e).filter(function(t){return(t=Object.getOwnPropertyDescriptor(e,t))&&t.enumerable})},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function t(){var e,n=this;return Y(t,function(t){if(1==t.g&&(e=0),3!=t.g)return t=e<n.length?z(t,n[e]):void(t.g=0);e++,t.g=2})}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function t(){var e,n,r=this;return Y(t,function(t){if(1==t.g&&(e=[],r.forEach(function(t){e.push(t)}),n=0),3!=t.g)return t=n<e.length?z(t,e[n]):void(t.g=0);n++,t.g=2})}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function t(){var n,e,r=this;return Y(t,function(t){if(1==t.g&&(n=[],r.forEach(function(t,e){n.push([e,t])}),e=0),3!=t.g)return t=e<n.length?z(t,n[e]):void(t.g=0);e++,t.g=2})}),document.createEvent("Event")),e=(n.initEvent("foo",!0,!0),n.preventDefault(),n.defaultPrevented||(Vt=Event.prototype.preventDefault,Event.prototype.preventDefault=function(){this.cancelable&&(Vt.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}),/Trident/.test(navigator.userAgent));if(!window.Event||e&&"function"!=typeof window.Event){var Xt=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},Xt){for(var Kt in Xt)window.Event[Kt]=Xt[Kt];window.Event.prototype=Xt.prototype}}if((!window.CustomEvent||e&&"function"!=typeof window.CustomEvent)&&(window.CustomEvent=function(t,e){e=e||{};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n},window.CustomEvent.prototype=window.Event.prototype),!window.MouseEvent||e&&"function"!=typeof window.MouseEvent){var Jt=window.MouseEvent;if(window.MouseEvent=function(t,e){e=e||{};var n=document.createEvent("MouseEvent");return n.initMouseEvent(t,!!e.bubbles,!!e.cancelable,e.view||window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),n},Jt)for(var $t in Jt)window.MouseEvent[$t]=Jt[$t];window.MouseEvent.prototype=Jt.prototype}Zt=Yt=!1,e={get capture(){return Yt=!0},get once(){return Zt=!0}},Qt=0,(r=document.createElement("div")).addEventListener("click",ae,e),(s=Yt&&Zt)&&(r.dispatchEvent(new Event("click")),r.dispatchEvent(new Event("click")),s=1==Qt),r.removeEventListener("click",ae,e);var Yt,Zt,Qt,te,ee,ne,re,oe,ie,r=s,s=null!=(e=window.EventTarget)?e:window.Node;function ae(){Qt++}!r&&"addEventListener"in s.prototype&&(te=function(t){var e;return t=!t||"object"!=typeof t&&"function"!=typeof t?(e=!!t,!1):(e=!!t.capture,!!t.once),{capture:e,once:t}},ee=s.prototype.addEventListener,ne=s.prototype.removeEventListener,re=new WeakMap,oe=new WeakMap,ie=function(t,e,n){var r=n?re:oe;return void 0===(n=r.get(t))&&r.set(t,n=new Map),void 0===(t=n.get(e))&&n.set(e,t=new WeakMap),t},s.prototype.addEventListener=function(e,n,t){var r,o,i,a=this;null!=n&&(r=(t=te(t)).capture,t=t.once,(o=ie(this,e,r)).has(n)||(i=t?function(t){return o.delete(n),ne.call(a,e,i,r),"function"==typeof n?n.call(a,t):"function"==typeof(null==n?void 0:n.handleEvent)?n.handleEvent(t):void 0}:null,o.set(n,i),ee.call(this,e,null!=i?i:n,r)))},s.prototype.removeEventListener=function(t,e,n){var r,o;null!=e&&(n=te(n).capture,void 0!==(o=(r=ie(this,t,n)).get(e))&&(r.delete(e),ne.call(this,t,null!=o?o:e,n)))}),Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var t=(this.ownerDocument||this).querySelector("base[href]");return t&&t.href||window.location.href},configurable:!0,enumerable:!0});var e=Element.prototype,s=null!=(r=Object.getOwnPropertyDescriptor(e,"attributes"))?r:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),se=null!=(r=null==s?void 0:s.get)?r:function(){return this.attributes},le=Array.prototype.map;e.hasOwnProperty("getAttributeNames")||(e.getAttributeNames=function(){return le.call(se.call(this),function(t){return t.name})});var s=Element.prototype,ce=(s.hasOwnProperty("matches")||(s.matches=null!=(r=s.webkitMatchesSelector)?r:s.msMatchesSelector),Node.prototype.appendChild);function ue(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=l(e)).next();!n.done;n=e.next())n=n.value,ce.call(this,"string"==typeof n?document.createTextNode(n):n)}})}ue(Document),ue(DocumentFragment),ue(Element);var he=Node.prototype.insertBefore,de=null!=(r=null==(e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))?void 0:e.get)?r:function(){return this.firstChild};function fe(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];for(var n=de.call(this),r=(e=l(e)).next();!r.done;r=e.next())r=r.value,he.call(this,"string"==typeof r?document.createTextNode(r):r,n)}})}fe(Document),fe(DocumentFragment),fe(Element);var pe=Node.prototype.appendChild,_e=Node.prototype.removeChild,me=null!=(e=null==(s=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))?void 0:s.get)?e:function(){return this.firstChild};function ye(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=me.call(this));)_e.call(this,n);for(n=(e=l(e)).next();!n.done;n=e.next())n=n.value,pe.call(this,"string"==typeof n?document.createTextNode(n):n)}})}ye(Document),ye(DocumentFragment),ye(Element);var ve=Node.prototype.insertBefore,ge=null!=(s=null==(r=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))?void 0:r.get)?s:function(){return this.parentNode},be=null!=(r=null==(e=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))?void 0:e.get)?r:function(){return this.nextSibling};function Ee(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=ge.call(this)))for(var r=be.call(this),o=(e=l(e)).next();!o.done;o=e.next())o=o.value,ve.call(n,"string"==typeof o?document.createTextNode(o):o,r)}})}Ee(CharacterData),Ee(Element);var we=Node.prototype.insertBefore,Ne=null!=(e=null==(s=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))?void 0:s.get)?e:function(){return this.parentNode};function Ce(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=Ne.call(this)))for(var r=(e=l(e)).next();!r.done;r=e.next())r=r.value,we.call(n,"string"==typeof r?document.createTextNode(r):r,this)}})}Ce(CharacterData),Ce(Element);var Se=Node.prototype.removeChild,Te=null!=(s=null==(r=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))?void 0:r.get)?s:function(){return this.parentNode};function Oe(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Te.call(this);t&&Se.call(t,this)}})}Oe(CharacterData),Oe(Element);var De=Node.prototype.insertBefore,xe=Node.prototype.removeChild,Pe=null!=(r=null==(e=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))?void 0:e.get)?r:function(){return this.parentNode};function Me(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=Pe.call(this))){for(var r=(e=l(e)).next();!r.done;r=e.next())r=r.value,De.call(n,"string"==typeof r?document.createTextNode(r):r,this);xe.call(n,this)}}})}Me(CharacterData),Me(Element);var s=window.Element.prototype,e=window.HTMLElement.prototype,r=window.SVGElement.prototype,r=(!e.hasOwnProperty("classList")||s.hasOwnProperty("classList")||r.hasOwnProperty("classList")||Object.defineProperty(s,"classList",Object.getOwnPropertyDescriptor(e,"classList")),Element.prototype),Ae=Element.prototype.hasAttribute,Le=Element.prototype.setAttribute,je=Element.prototype.removeAttribute,s=(r.hasOwnProperty("toggleAttribute")||(r.toggleAttribute=function(t,e){return void 0===e?Ae.call(this,t)?(je.call(this,t),!1):(Le.call(this,t,""),!0):e?(Ae.call(this,t)||Le.call(this,t,""),!0):(je.call(this,t),!1)}),document.createElement("style")),e=(s.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n",document.querySelector("head")),r=(e.insertBefore(s,e.firstChild),window),ke=(r.WebComponents=r.WebComponents||{flags:{}},document.querySelector('script[src*="webcomponents-bundle"]')),Re=/wc-(.+)/,c={};if(!c.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(Re))&&(c[e[1]]=t[1]||!0)}),ke)for(var Fe,Ie=0;Fe=ke.attributes[Ie];Ie++)"src"!==Fe.name&&(c[Fe.name]=Fe.value||!0);var He={};c.log&&c.log.split&&c.log.split(",").forEach(function(t){He[t]=!0}),c.log=He}var Ue,Be,qe,We,Ge,Ve,ze,Xe,Ke,Je,$e,Ye,Ze,Qe,tn,en,nn,rn,on,an,sn,ln,cn,un,hn,dn,fn,pn,_n,mn,yn,vn,gn,bn,En,wn,s=(r.WebComponents.flags=c).shadydom,s=(s&&(r.ShadyDOM=r.ShadyDOM||{},r.ShadyDOM.force=s,e=c.noPatch,r.ShadyDOM.noPatch="true"===e||e),c.register||c.ce);function u(){}function Nn(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return En.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return wn.call(t,e);default:return bn.call(t,e)}}function Cn(t,e){if(t instanceof DocumentFragment)for(var n;n=t.firstChild;)Be.call(this,n,e);else Be.call(this,t,e);return t}function Sn(){}function _(t){return t.__shady||(t.__shady=new Sn),t.__shady}function m(t){return t&&t.__shady}s&&window.customElements&&(r.customElements.forcePolyfill=s),ze="undefined"==typeof HTMLTemplateElement,Xe=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),Ke=!1,/Trident/.test(navigator.userAgent)&&(Ke=!0,Ue=Node.prototype.cloneNode,Node.prototype.cloneNode=function(t){return t=Ue.call(this,t),this instanceof DocumentFragment&&(t.__proto__=DocumentFragment.prototype),t},DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll,DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector,Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}}),Be=Node.prototype.insertBefore,Node.prototype.insertBefore=Cn,qe=Node.prototype.appendChild,Node.prototype.appendChild=function(t){return t instanceof DocumentFragment?Cn.call(this,t,null):qe.call(this,t),t},We=Node.prototype.removeChild,Ge=Node.prototype.replaceChild,Node.prototype.replaceChild=function(t,e){return t instanceof DocumentFragment?(Cn.call(this,t,e),We.call(this,e)):Ge.call(this,t,e),e},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t},Ve=Document.prototype.importNode,Document.prototype.importNode=function(t,e){return e=Ve.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}),hn=Node.prototype.cloneNode,dn=Document.prototype.createElement,fn=Document.prototype.importNode,pn=Node.prototype.removeChild,_n=Node.prototype.appendChild,mn=Node.prototype.replaceChild,yn=DOMParser.prototype.parseFromString,vn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},gn=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},bn=Element.prototype.querySelectorAll,En=Document.prototype.querySelectorAll,wn=DocumentFragment.prototype.querySelectorAll,e=function(){var t,e;if(!ze)return t=document.createElement("template"),(e=document.createElement("template")).content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||Xe}(),ze&&(Je=document.implementation.createHTMLDocument("template"),$e=!0,(r=document.createElement("style")).textContent="template{display:none;}",(s=document.head).insertBefore(r,s.firstElementChild),u.prototype=Object.create(HTMLElement.prototype),Ye=!document.createElement("div").hasOwnProperty("innerHTML"),u.Z=function(t){if(!t.content&&t.namespaceURI===document.documentElement.namespaceURI){t.content=Je.createDocumentFragment();for(var e;e=t.firstChild;)_n.call(t.content,e);if(Ye)t.__proto__=u.prototype;else if(t.cloneNode=function(t){return u.va(this,t)},$e)try{Qe(t),tn(t)}catch(t){$e=!1}u.bootstrap(t.content)}},Ze={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},tn=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(t){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(Je.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();Je.body.firstChild;)_n.call(t,Je.body.firstChild);mn.call(this.parentNode,t,this)},configurable:!0})},(Qe=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return sn(this)},set:function(t){var e=Ze[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(t)||["",""])[1].toLowerCase()];if(e)for(var n=0;n<e.length;n++)t="<"+e[n]+">"+t+"</"+e[n]+">";for(Je.body.innerHTML=t,u.bootstrap(Je);this.content.firstChild;)pn.call(this.content,this.content.firstChild);if(t=Je.body,e)for(n=0;n<e.length;n++)t=t.lastChild;for(;t.firstChild;)_n.call(this.content,t.firstChild)},configurable:!0})})(u.prototype),tn(u.prototype),u.bootstrap=function(t){for(var e,n=0,r=(t=Nn(t,"template")).length;n<r&&(e=t[n]);n++)u.Z(e)},document.addEventListener("DOMContentLoaded",function(){u.bootstrap(document)}),Document.prototype.createElement=function(){var t=dn.apply(this,arguments);return"template"===t.localName&&u.Z(t),t},DOMParser.prototype.parseFromString=function(){var t=yn.apply(this,arguments);return u.bootstrap(t),t},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return sn(this)},set:function(t){vn.set.call(this,t),u.bootstrap(this)},configurable:!0,enumerable:!0}),en=/[&\u00A0"]/g,nn=/[&\u00A0<>]/g,rn=function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}},on=(r=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),an=r("style script xmp iframe noembed noframes plaintext noscript".split(" ")),sn=function(t,e){"template"===t.localName&&(t=t.content);for(var n,r="",o=e?e(t):gn.get.call(t),i=0,a=o.length;i<a&&(n=o[i]);i++){t:{var s=n,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u=s.localName,h="<"+u,d=s.attributes,f=0;l=d[f];f++)h+=" "+l.name+'="'+l.value.replace(en,rn)+'"';h+=">",s=on[u]?h:h+sn(s,c)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&an[l.localName]?s:s.replace(nn,rn);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}r+=s}return r}),(ze||e)&&(u.va=function(t,e){var n=hn.call(t,!1);return this.Z&&this.Z(n),e&&(_n.call(n.content,hn.call(t.content,!0)),ln(n.content,t.content)),n},ln=function(t,e){if(e.querySelectorAll&&0!==(e=Nn(e,"template")).length)for(var n,r,o=0,i=(t=Nn(t,"template")).length;o<i;o++)r=e[o],n=t[o],u.Z&&u.Z(r),mn.call(n.parentNode,cn.call(r,!0),n)},cn=Node.prototype.cloneNode=function(t){if(!Ke&&Xe&&this instanceof DocumentFragment){if(!t)return this.ownerDocument.createDocumentFragment();var e=un.call(this.ownerDocument,this,!0)}else e=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?u.va(this,t):hn.call(this,t);return t&&ln(e,this),e},un=Document.prototype.importNode=function(t,e){if(e=e||!1,"template"===t.localName)return u.va(t,e);var n=fn.call(this,t,e);if(e){ln(n,t),t=Nn(n,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var r,o=0;o<t.length;o++){r=t[o],(e=dn.call(document,"script")).textContent=r.textContent;for(var i,a=r.attributes,s=0;s<a.length;s++)i=a[s],e.setAttribute(i.name,i.value);mn.call(r.parentNode,e,r)}}return n}),ze&&(window.HTMLTemplateElement=u),Sn.prototype.toJSON=function(){return{}};var d=window.ShadyDOM||{},s=(d.cb=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode),Object.getOwnPropertyDescriptor(Node.prototype,"firstChild")),r=(d.D=!!(s&&s.configurable&&s.get),d.Ba=d.force||!d.cb,d.J=d.noPatch||!1,d.ha=d.preferPerformance,d.Da="on-demand"===d.J,d.querySelectorImplementation);function Tn(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function On(t){return(t=m(t))&&void 0!==t.firstChild}function y(t){return t instanceof ShadowRoot}function Dn(t){return(t=(t=m(t))&&t.root)&&ti(t)}e=-1<["native","selectorEngine"].indexOf(r)?r:void 0,d.wb=e,d.Ra=navigator.userAgent.match("Trident");var s=Element.prototype,xn=s.matches||s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector,Pn=document.createTextNode(""),Mn=0,An=[];function Ln(t){An.push(t),Pn.textContent=Mn++}new MutationObserver(function(){for(;An.length;)try{An.shift()()}catch(t){throw Pn.textContent=Mn++,t}}).observe(Pn,{characterData:!0});var jn=document.contains?function(t,e){return t.__shady_native_contains(e)}:function(t,e){return t===e||t.documentElement&&t.documentElement.__shady_native_contains(e)};function kn(t,e){for(;e;){if(e==t)return!0;e=e.__shady_parentNode}return!1}function Rn(r){for(var t=r.length-1;0<=t;t--){var e=r[t],n=e.getAttribute("id")||e.getAttribute("name");n&&"length"!==n&&isNaN(n)&&(r[n]=e)}return r.item=function(t){return r[t]},r.namedItem=function(t){if("length"!==t&&isNaN(t)&&r[t])return r[t];for(var e=l(r),n=e.next();!n.done;n=e.next())if(((n=n.value).getAttribute("id")||n.getAttribute("name"))==t)return n;return null},r}function Fn(t){var e=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)e.push(t);return e}function In(t){var e=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e.push(t);return e}function Hn(t,e,n){if(n.configurable=!0,n.value)t[e]=n.value;else try{Object.defineProperty(t,e,n)}catch(t){}}function h(t,e,n,r){for(var o in n=void 0===n?"":n,e)r&&0<=r.indexOf(o)||Hn(t,n+o,e[o])}function Un(t,e){for(var n in e)n in t&&Hn(t,n,e[n])}function f(e){var n={};return Object.getOwnPropertyNames(e).forEach(function(t){n[t]=Object.getOwnPropertyDescriptor(e,t)}),n}function Bn(t,e){for(var n,r=Object.getOwnPropertyNames(e),o=0;o<r.length;o++)t[n=r[o]]=e[n]}function qn(t){return t instanceof Node?t:document.createTextNode(""+t)}function Wn(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(1===e.length)return qn(e[0]);for(var n=document.createDocumentFragment(),r=(e=l(e)).next();!r.done;r=e.next())n.appendChild(qn(r.value));return n}function Gn(t){for(var e=void 0===e?1:e;0<e;e--)t=t.reduce(function(t,e){return Array.isArray(e)?t.push.apply(t,p(e)):t.push(e),t},[]);return t}var Vn,zn=[];function Xn(t){Vn||(Vn=!0,Ln(Kn)),zn.push(t)}function Kn(){Vn=!1;for(var t=!!zn.length;zn.length;)zn.shift()();return t}function Jn(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.qa=new Set}Kn.list=zn,Jn.prototype.flush=function(){var e;this.g&&(this.g=!1,(e=this.takeRecords()).length&&this.qa.forEach(function(t){t(e)}))},Jn.prototype.takeRecords=function(){var t;return this.addedNodes.length||this.removedNodes.length?(t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}],this.addedNodes=[],this.removedNodes=[],t):[]};var $n=/[&\u00A0"]/g,Yn=/[&\u00A0<>]/g;function Zn(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Qn(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var tr=Qn("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),er=Qn("style script xmp iframe noembed noframes plaintext noscript".split(" "));function nr(t,e){"template"===t.localName&&(t=t.content);for(var n="",r=e?e(t):t.childNodes,o=0,i=r.length,a=void 0;o<i&&(a=r[o]);o++){t:{var s=a,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var u,h="<"+(l=s.localName),d=s.attributes,f=0;u=d[f];f++)h+=" "+u.name+'="'+u.value.replace($n,Zn)+'"';h+=">",s=tr[l]?h:h+nr(s,c)+"</"+l+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&er[l.localName]?s:s.replace(Yn,Zn);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}n+=s}return n}var r=d.D,rr={querySelector:function(t){return this.__shady_native_querySelector(t)},querySelectorAll:function(t){return this.__shady_native_querySelectorAll(t)}},or={};function ir(e){or[e]=function(t){return t["__shady_native_"+e]}}function ar(t,e){for(var n in h(t,e,"__shady_native_"),e)ir(n)}function v(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?rr[r]||(rr[r]=o.value):ir(r))}}var g=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),b=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),sr=document.implementation.createHTMLDocument("inert");function lr(t){for(var e;e=t.__shady_native_firstChild;)t.__shady_native_removeChild(e)}e=["firstElementChild","lastElementChild","children","childElementCount"],s=["querySelector","querySelectorAll","append","prepend","replaceChildren"];var cr=f({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),ur=f({get textContent(){return this.__shady_textContent},set textContent(t){this.__shady_textContent=t},get innerHTML(){return this.__shady_innerHTML},set innerHTML(t){this.__shady_innerHTML=t}}),hr=f({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(t){this.__shady_className=t}});function dr(t){for(var e in t){e=t[e];e&&(e.enumerable=!1)}}dr(cr),dr(ur),dr(hr);var fr,pr,_r=d.D||!0===d.J,mr=_r?function(){}:function(t){var e=_(t);e.Ta||(e.Ta=!0,Un(t,hr))},yr=_r?function(){}:function(t){var e=_(t);e.Sa||(e.Sa=!0,Un(t,cr),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!d.J||Un(t,ur))},vr="__eventWrappers"+Date.now(),gr=(pr=Object.getOwnPropertyDescriptor(Event.prototype,"composed"))?function(t){return pr.get.call(t)}:null,br=(fr=!1,_r={get capture(){return!(fr=!0)}},window.addEventListener("test",Er,_r),window.removeEventListener("test",Er,_r),fr);function Er(){}function wr(t){var e,n,r;return null===t||"object"!=typeof t&&"function"!=typeof t?(e=!!t,n=!1):(e=!!t.capture,n=!!t.once,r=t.U),{Pa:r,capture:e,once:n,Na:br?t:e}}var Nr={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Cr={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Sr(t){return t instanceof Node?t.__shady_getRootNode():t}function Tr(t,e){var n=[],r=t;for(t=Sr(t);r;)n.push(r),r=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}function Or(t,e){t=Tr(t,!0);for(var n,r,o=0,i=void 0,a=void 0;o<e.length;o++)if((r=Sr(n=e[o]))!==i&&(a=t.indexOf(r),i=r),!y(r)||-1<a)return n}var _r={get composed(){return void 0===this.__composed&&(gr?this.__composed="focusin"===this.type||"focusout"===this.type||gr(this):!1!==this.isTrusted&&(this.__composed=Nr[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=Tr(this.__target,this.composed)),this.__composedPath},get target(){return Or(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Tr(this.__relatedTarget,!0)),Or(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.ua=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.ua=this.__immediatePropagationStopped=!0}},Dr=d.D&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function xr(n){function t(t,e){return(t=new n(t,e)).__composed=e&&!!e.composed,t}return t.__proto__=n,t.prototype=n.prototype,t}Dr&&(Object.defineProperty(_r,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(_r,"__shady_native_eventPhase",Dr));var Pr={focus:!0,blur:!0};function Mr(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget}function Ar(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!Mr(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.__immediatePropagationStopped);o++);}var Lr=new Event("e").hasOwnProperty("currentTarget");function jr(t){var e=(t=Lr?Object.create(t):t).composedPath(),n=e.map(function(t){return Or(t,e)}),r=t.bubbles,o=Object.getOwnPropertyDescriptor(t,"currentTarget"),i=(Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return l}}),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],i=l===n[s]?Event.AT_TARGET:Event.CAPTURING_PHASE;if(Ar(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,Ar(t,l,"bubble"),t.ua))break}}finally{Lr||(o?Object.defineProperty(t,"currentTarget",o):delete t.currentTarget,a?Object.defineProperty(t,"eventPhase",a):delete t.eventPhase)}}function kr(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}function Rr(t){return Kn(),!d.ha&&this instanceof Node&&!jn(document,this)?(t.__target||Ur(t,this),jr(t)):this.__shady_native_dispatchEvent(t)}function Fr(o,i,a){var s=this,l=(e=wr(a)).capture,c=e.once,t=e.Pa,e=e.Na;if(i){var u=typeof i;if(("function"===u||"object"===u)&&("object"!==u||i.handleEvent&&"function"==typeof i.handleEvent)){if(Cr[o])return this.__shady_native_addEventListener(o,i,e);var h=t||this;if(t=i[vr]){if(-1<kr(t,h,o,l))return}else i[vr]=[];i[vr].push({node:h,type:o,capture:l,ub:t=function(t){var e,n,r;if(c&&s.__shady_removeEventListener(o,i,a),t.__target||Ur(t),h!==s&&(e=Object.getOwnPropertyDescriptor(t,"currentTarget"),Object.defineProperty(t,"currentTarget",{get:function(){return h},configurable:!0}),n=Object.getOwnPropertyDescriptor(t,"eventPhase"),Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return l?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})),t.__previousCurrentTarget=t.currentTarget,(!y(h)&&"slot"!==h.localName||-1!=t.composedPath().indexOf(h))&&(t.composed||-1<t.composedPath().indexOf(h)))if(Mr(t)&&t.target===t.relatedTarget)t.eventPhase===Event.BUBBLING_PHASE&&t.stopImmediatePropagation();else if(t.eventPhase===Event.CAPTURING_PHASE||t.bubbles||t.target===h||h instanceof Window)return r="function"===u?i.call(h,t):i.handleEvent&&i.handleEvent(t),h!==s&&(e?(Object.defineProperty(t,"currentTarget",e),e=null):delete t.currentTarget,n?(Object.defineProperty(t,"eventPhase",n),n=null):delete t.eventPhase),r}}),this.__handlers=this.__handlers||{},this.__handlers[o]=this.__handlers[o]||{capture:[],bubble:[]},this.__handlers[o][l?"capture":"bubble"].push(t),Pr[o]||this.__shady_native_addEventListener(o,t,e)}}}function Ir(t,e,n){if(e){n=(o=wr(n)).capture;var r=o.Pa,o=o.Na;if(Cr[t])return this.__shady_native_removeEventListener(t,e,o);var i=r||this,r=void 0,a=null;try{a=e[vr]}catch(t){}a&&(-1<(i=kr(a,i,t,n))&&(r=a.splice(i,1)[0].ub,a.length||(e[vr]=void 0))),this.__shady_native_removeEventListener(t,r||e,o),r&&this.__handlers&&this.__handlers[t]&&(-1<(e=(t=this.__handlers[t][n?"capture":"bubble"]).indexOf(r))&&t.splice(e,1))}}var Hr=f(_r);function Ur(t,e){var n;e=void 0===e?t.target:e,t.__target=e,t.__relatedTarget=t.relatedTarget,d.D?((e=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")||((n=Object.create(e)).__shady_sourceProto=e,h(n,Hr),e.__shady_patchedProto=n),t.__proto__=e.__shady_patchedProto):h(t,Hr)}var Dr=xr(Event),_r=xr(CustomEvent),Br=xr(MouseEvent);var qr=Object.getOwnPropertyNames(Element.prototype).filter(function(t){return"on"===t.substring(0,2)}),Wr=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(t){return"on"===t.substring(0,2)});function Gr(r){return{set:function(t){var e=_(this),n=r.substring(2);e.T||(e.T={}),e.T[r]&&this.removeEventListener(n,e.T[r]),this.__shady_addEventListener(n,t),e.T[r]=t},get:function(){var t=m(this);return t&&t.T&&t.T[r]},configurable:!0}}function Vr(t,e){return{index:t,ia:[],pa:e}}var zr=f({dispatchEvent:Rr,addEventListener:Fr,removeEventListener:Ir}),Xr=null;function Kr(){return(Xr=Xr||window.ShadyCSS&&window.ShadyCSS.ScopingShim)||null}function Jr(t,e,n){var r=Kr();return r&&"class"===e&&(r.setElementClass(t,n),1)}function $r(t,e){var n=Kr();n&&n.unscopeNode(t,e)}function Yr(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=Kr();return e?e.currentScopeForNode(t):""}function Zr(t,e){if(t)for(t.nodeType===Node.ELEMENT_NODE&&e(t),t=t.__shady_firstChild;t;t=t.__shady_nextSibling)t.nodeType===Node.ELEMENT_NODE&&Zr(t,e)}var Qr=window.document,to=d.ha,E=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),eo=E&&E.get;function no(t){for(var e;e=t.__shady_firstChild;)t.__shady_removeChild(e)}function ro(t,e,n){if(t=(t=m(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),(i=t).g||(i.g=!0,Ln(function(){i.flush()}))}var i}var oo=f({get parentNode(){var t=m(this);return void 0!==(t=t&&t.parentNode)?t:this.__shady_native_parentNode},get firstChild(){var t=m(this);return void 0!==(t=t&&t.firstChild)?t:this.__shady_native_firstChild},get lastChild(){var t=m(this);return void 0!==(t=t&&t.lastChild)?t:this.__shady_native_lastChild},get nextSibling(){var t=m(this);return void 0!==(t=t&&t.nextSibling)?t:this.__shady_native_nextSibling},get previousSibling(){var t=m(this);return void 0!==(t=t&&t.previousSibling)?t:this.__shady_native_previousSibling},get childNodes(){if(On(this)){var t=m(this);if(!t.childNodes){t.childNodes=[];for(var e=this.__shady_firstChild;e;e=e.__shady_nextSibling)t.childNodes.push(e)}var n=t.childNodes}else n=this.__shady_native_childNodes;return n.item=function(t){return n[t]},n},get parentElement(){var t=m(this);return void 0!==(t=(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE?null:t)?t:this.__shady_native_parentElement},get isConnected(){if(eo&&eo.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(null===t||jn(t,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.__shady_parentNode||(y(t)?t.host:void 0);return!!(t&&t instanceof Document)},get textContent(){if(On(this)){for(var t=[],e=this.__shady_firstChild;e;e=e.__shady_nextSibling)e.nodeType!==Node.COMMENT_NODE&&t.push(e.__shady_textContent);return t.join("")}return this.__shady_native_textContent},set textContent(t){switch(null==t&&(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:var e;!On(this)&&d.D?(((e=this.__shady_firstChild)!=this.__shady_lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&no(this),this.__shady_native_textContent=t):(no(this),(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(t)));break;default:this.nodeValue=t}},insertBefore:function(t,e){if(this.ownerDocument!==Qr&&t.ownerDocument!==Qr)return this.__shady_native_insertBefore(t,e),t;if(t===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(e){var n=m(e);if(void 0!==(n=n&&n.parentNode)&&n!==this||void 0===n&&e.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(e===t)return t;ro(this,t);var r,o,i=[],a=(n=ei(this))?n.host.localName:Yr(this),s=t.__shady_parentNode,l=(s&&(r=Yr(t),o=!!n||!ei(t)||to&&void 0!==this.__noInsertionPoint,s.__shady_removeChild(t,o)),s=!0,(!to||void 0===t.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!function t(e,n){var r=Kr();if(!r)return!0;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE)return e.nodeType!==Node.ELEMENT_NODE||r.currentScopeForNode(e)===n;for(r=!0,e=e.__shady_firstChild;e;e=e.__shady_nextSibling)r=r&&t(e,n);return r}(t,a)),c=n&&!t.__noInsertionPoint&&(!to||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if((c||l)&&(l&&(r=r||Yr(t)),Zr(t,function(t){var e;c&&"slot"===t.localName&&i.push(t),l&&(e=r,Kr()&&(e&&$r(t,e),(e=Kr())&&e.scopeNode(t,a)))})),i.length&&($o(n),n.i.push.apply(n.i,p(i)),Xo(n)),On(this)){var u=t,h=this,d=e,f=(Ao(h,2),_(h));if(void 0!==f.firstChild&&(f.childNodes=null),u.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(u=u.__shady_native_firstChild;u;u=u.__shady_native_nextSibling)Lo(u,h,f,d);else Lo(u,h,f,d);(o=m(this)).root?(s=!1,Dn(this)&&Xo(o.root)):n&&"slot"===this.localName&&(s=!1,Xo(n))}return s?(n=y(this)?this.host:this,e?(e=function t(e){var n,r=e;return r=e&&"slot"===e.localName&&(n=(n=m(e))&&n.aa)?n.length?n[0]:t(e.__shady_nextSibling):r}(e),n.__shady_native_insertBefore(t,e)):n.__shady_native_appendChild(t)):t.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(t),t},appendChild:function(t){if(this!=t||!y(t))return this.__shady_insertBefore(t)},removeChild:function(t,e){if(e=void 0!==e&&e,this.ownerDocument!==Qr)return this.__shady_native_removeChild(t);if(t.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+t);ro(this,null,t);var n,r,o,i,a,s,l=ei(t),c=l&&function(t,e){if(t.g){Yo(t);var n,r=t.h;for(n in r)for(var o=r[n],i=0;i<o.length;i++){var a=o[i];if(kn(e,a)){o.splice(i,1);var s=t.g.indexOf(a);if(0<=s&&(t.g.splice(s,1),(s=m(a.__shady_parentNode))&&s.ka&&s.ka--),i--,a=m(a),s=a.aa)for(var l=0;l<s.length;l++){var c=s[l],u=c.__shady_native_parentNode;u&&u.__shady_native_removeChild(c)}a.aa=[],a.assignedNodes=[],s=!0}}return s}}(l,t),u=m(this);return On(this)&&(o=this,i=_(r=t),o=_(o),r===o.firstChild&&(o.firstChild=i.nextSibling),r===o.lastChild&&(o.lastChild=i.previousSibling),r=i.previousSibling,a=i.nextSibling,r&&(_(r).nextSibling=a),a&&(_(a).previousSibling=r),(i.parentNode=i.previousSibling=i.nextSibling=void 0)!==o.childNodes&&(o.childNodes=null),Dn(this))&&(Xo(u.root),n=!0),Kr()&&!e&&l&&t.nodeType!==Node.TEXT_NODE&&(s=Yr(t),Zr(t,function(t){$r(t,s)})),function t(e){var n=m(e);if(n&&void 0!==n.ta)for(n=e.__shady_firstChild;n;n=n.__shady_nextSibling)t(n);(e=m(e))&&(e.ta=void 0)}(t),l&&((e="slot"===this.localName)&&(n=!0),(c||e)&&Xo(l)),n||(n=y(this)?this.host:this,(u.root||"slot"===t.localName)&&n!==t.__shady_native_parentNode||n.__shady_native_removeChild(t)),t},replaceChild:function(t,e){return this.__shady_insertBefore(t,e),this.__shady_removeChild(e),t},cloneNode:function(t){if("template"==this.localName)return this.__shady_native_cloneNode(t);var e,n=this.__shady_native_cloneNode(!1);if(t&&n.nodeType!==Node.ATTRIBUTE_NODE){t=this.__shady_firstChild;for(;t;t=t.__shady_nextSibling)e=t.__shady_cloneNode(!0),n.__shady_appendChild(e)}return n},getRootNode:function(t){var e,n;if(this&&this.nodeType)return void 0===(n=(e=_(this)).ta)&&(y(this)?e.ta=n=this:(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(t):this,document.documentElement.__shady_native_contains(this)&&(e.ta=n))),n},contains:function(t){return kn(this,t)}}),E=f({get assignedSlot(){var t=this.__shady_parentNode;return(t=t&&t.__shady_shadowRoot)&&Ko(t),(t=m(this))&&t.assignedSlot||null}}),io=new Map;function ao(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=function t(e,n,r,o){for(o=void 0===o||o;n<e.length;n++)if("\\"===e[n]&&n<e.length-1&&"\n"!==e[n+1])n++;else{if(-1!==r.indexOf(e[n]))return n;var i;o&&io.has(e[n])&&(n=t(e,n+1,[(i=io.get(e[n])).end],i.sa))}return e.length}(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}function so(t,e,n){var r=[];return function t(e,n,r,o){for(e=e.__shady_firstChild;e;e=e.__shady_nextSibling){var i,a,s,l,c;if((i=e.nodeType===Node.ELEMENT_NODE)&&(s=r,l=o,(c=(a=n)(i=e))&&l.push(i),i=s&&s(c)?c:void t(i,a,s,l)),i)break}}(t,e,n,r),r}[["(",{end:")",sa:!0}],["[",{end:"]",sa:!0}],['"',{end:'"',sa:!1}],["'",{end:"'",sa:!1}]].forEach(function(t){var e=l(t);t=e.next().value,e=e.next().value,io.set(t,e)});var w={get firstElementChild(){var t=m(this);if(t&&void 0!==t.firstChild){for(t=this.__shady_firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_nextSibling;return t}return this.__shady_native_firstElementChild},get lastElementChild(){var t=m(this);if(t&&void 0!==t.lastChild){for(t=this.__shady_lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.__shady_previousSibling;return t}return this.__shady_native_lastElementChild},get children(){return On(this)?Rn(Array.prototype.filter.call(In(this),function(t){return t.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var t=this.__shady_children;return t?t.length:0}},lo=f((w.append=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];this.__shady_insertBefore(Wn.apply(null,p(e)),null)},w.prepend=function(t){for(var e=[],n=0;n<argumen