smartdown
Version:
A library for translating, rendering and interacting with Smartdown documents. Smartdown is an extension of Markdown that provides richer media support and reactive programming capability.
2 lines • 127 kB
JavaScript
/*! For license information please see webcomponents-sd-ce-pf.js.LICENSE.txt */
(function(){"use strict";var t;function e(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var n,r="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t},o=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 i(t,e){if(e)t:{var n=o;t=t.split(".");for(var i=0;i<t.length-1;i++){var a=t[i];if(!(a in n))break t;n=n[a]}(e=e(i=n[t=t[t.length-1]]))!=i&&null!=e&&r(n,t,{configurable:!0,writable:!0,value:e})}}function a(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function s(t){var n="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return n?n.call(t):{next:e(t)}}function l(t){if(!(t instanceof Array)){t=s(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}if(i("Symbol",(function(t){function e(t,e){this.g=t,r(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)}})),i("Symbol.iterator",(function(t){if(t)return t;t=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<n.length;i++){var s=o[n[i]];"function"==typeof s&&"function"!=typeof s.prototype[t]&&r(s.prototype,t,{configurable:!0,writable:!0,value:function(){return a(e(this))}})}return t})),"function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{var c;t:{var u={};try{u.__proto__={a:!0},c=u.a;break t}catch(M){}c=!1}n=c?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var h=n;function d(){this.u=!1,this.h=null,this.Oa=void 0,this.g=1,this.ea=0,this.i=null}function f(t){if(t.u)throw new TypeError("Generator is already running");t.u=!0}function p(t,e){t.i={ab:e,fb:!0},t.g=t.ea}function _(t,e){return t.g=3,{value:e}}function v(t){this.g=new d,this.h=t}function m(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,p(t.g,e),y(t)}return t.g.h=null,r.call(t.g,i),y(t)}function y(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,p(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}}function g(t){this.next=function(e){return f(t.g),t.g.h?e=m(t,t.g.h.next,e,t.g.O):(t.g.O(e),e=y(t)),e},this.throw=function(e){return f(t.g),t.g.h?e=m(t,t.g.h.throw,e,t.g.O):(p(t.g,e),e=y(t)),e},this.return=function(e){return function(t,e){f(t.g);var n=t.g.h;return n?m(t,"return"in n?n.return:function(t){return{value:t,done:!0}},e,t.g.return):(t.g.return(e),y(t))}(t,e)},this[Symbol.iterator]=function(){return this}}function b(t,e){return e=new g(new v(e)),h&&t.prototype&&h(e,t.prototype),e}d.prototype.O=function(t){this.Oa=t},d.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 E=setTimeout;function w(){}function N(t){if(!(this instanceof N))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=[],x(t,this)}function C(t,e){for(;3===t.N;)t=t.I;0===t.N?t.ba.push(e):(t.Ha=!0,F((function(){var n=1===t.N?e.hb:e.ib;if(null===n)(1===t.N?S:O)(e.promise,t.I);else{try{var r=n(t.I)}catch(t){return void O(e.promise,t)}S(e.promise,r)}})))}function S(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 N)return t.N=3,t.I=e,void T(t);if("function"==typeof n)return void x(function(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t.N=1,t.I=e,T(t)}catch(e){O(t,e)}}function O(t,e){t.N=2,t.I=e,T(t)}function T(t){2===t.N&&0===t.ba.length&&F((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++)C(t,t.ba[e]);t.ba=null}function D(t,e,n){this.hb="function"==typeof t?t:null,this.ib="function"==typeof e?e:null,this.promise=n}function x(t,e){var n=!1;try{t((function(t){n||(n=!0,S(e,t))}),(function(t){n||(n=!0,O(e,t))}))}catch(t){n||(n=!0,O(e,t))}}function P(t){return t&&"object"==typeof t&&t.constructor===N?t:new N((function(e){e(t)}))}N.prototype.catch=function(t){return this.then(null,t)},N.prototype.then=function(t,e){var n=new this.constructor(w);return C(this,new D(t,e,n)),n},N.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 M,A,L,j,k,R,F="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){E(t,0)};if(!window.Promise){window.Promise=N,N.prototype.then=N.prototype.then,N.all=function(t){return new N((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])}))},N.race=function(t){return new N((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++)P(t[r]).then(e,n)}))},N.resolve=P,N.reject=function(t){return new N((function(e,n){n(t)}))};var I=document.createTextNode(""),H=[];new MutationObserver((function(){for(var t=H.length,e=0;e<t;e++)H[e]();H.splice(0,t)})).observe(I,{characterData:!0}),F=function(t){H.push(t),I.textContent=0<I.textContent.length?"":"a"}}!function(t,e){if(!(e in t)){var n=typeof global==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,v=p.propertyIsEnumerable,m=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]:v.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",O),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),O={value:C},T=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(T)};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=m.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"),M=Object,A=Symbol,j=M.defineProperty,k=M.prototype,R=k.toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach((function(t){t in A||(j(A,t,{value:A(t)}),"toStringTag"===t&&((L=M.getOwnPropertyDescriptor(k,"toString")).value=function(){var t=R.call(this),e=null==this?this:this[A.toStringTag];return null==e?t:"[object "+e+"]"},j(k,"toString",L)))})),function(t,e,n){function r(){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 U=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":U.call(this)},Object.keys=function(t){return Object.getOwnPropertyNames(t).filter((function(e){return(e=Object.getOwnPropertyDescriptor(t,e))&&e.enumerable}))},String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function t(){var e,n=this;return b(t,(function(t){if(1==t.g&&(e=0),3!=t.g)return e<n.length?t=_(t,n[e]):(t.g=0,t=void 0),t;e++,t.g=2}))}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function t(){var e,n,r=this;return b(t,(function(t){if(1==t.g&&(e=[],r.forEach((function(t){e.push(t)})),n=0),3!=t.g)return n<e.length?t=_(t,e[n]):(t.g=0,t=void 0),t;n++,t.g=2}))}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function t(){var e,n,r=this;return b(t,(function(t){if(1==t.g&&(e=[],r.forEach((function(t,n){e.push([n,t])})),n=0),3!=t.g)return n<e.length?t=_(t,e[n]):(t.g=0,t=void 0),t;n++,t.g=2}))});var B=document.createEvent("Event");if(B.initEvent("foo",!0,!0),B.preventDefault(),!B.defaultPrevented){var q=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(q.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var W=/Trident/.test(navigator.userAgent);if(!window.Event||W&&"function"!=typeof window.Event){var G=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},G){for(var V in G)window.Event[V]=G[V];window.Event.prototype=G.prototype}}if((!window.CustomEvent||W&&"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||W&&"function"!=typeof window.MouseEvent){var z=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},z)for(var X in z)window.MouseEvent[X]=z[X];window.MouseEvent.prototype=z.prototype}var K,J=function(){function t(){o++}var e=!1,n=!1,r={get capture(){return e=!0},get once(){return n=!0}},o=0,i=document.createElement("div");i.addEventListener("click",t,r);var a=e&&n;return a&&(i.dispatchEvent(new Event("click")),i.dispatchEvent(new Event("click")),a=1==o),i.removeEventListener("click",t,r),a}(),$=null!==(K=window.EventTarget)&&void 0!==K?K:window.Node;if(!J&&"addEventListener"in $.prototype){var Y=function(t){if(!t||"object"!=typeof t&&"function"!=typeof t){var e=!!t;t=!1}else e=!!t.capture,t=!!t.once;return{capture:e,once:t}},Z=$.prototype.addEventListener,Q=$.prototype.removeEventListener,tt=new WeakMap,et=new WeakMap,nt=function(t,e,n){var r=n?tt:et;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};$.prototype.addEventListener=function(t,e,n){var r=this;if(null!=e){var o=(n=Y(n)).capture;n=n.once;var i=nt(this,t,o);if(!i.has(e)){var a=n?function(n){return i.delete(e),Q.call(r,t,a,o),"function"==typeof e?e.call(r,n):"function"==typeof(null==e?void 0:e.handleEvent)?e.handleEvent(n):void 0}:null;i.set(e,a),Z.call(this,t,null!=a?a:e,o)}}},$.prototype.removeEventListener=function(t,e,n){if(null!=e){n=Y(n).capture;var r=nt(this,t,n),o=r.get(e);void 0!==o&&(r.delete(e),Q.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 rt,ot,it=Element.prototype,at=null!==(rt=Object.getOwnPropertyDescriptor(it,"attributes"))&&void 0!==rt?rt:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),st=null!==(ot=null==at?void 0:at.get)&&void 0!==ot?ot:function(){return this.attributes},lt=Array.prototype.map;it.hasOwnProperty("getAttributeNames")||(it.getAttributeNames=function(){return lt.call(st.call(this),(function(t){return t.name}))});var ct,ut=Element.prototype;ut.hasOwnProperty("matches")||(ut.matches=null!==(ct=ut.webkitMatchesSelector)&&void 0!==ct?ct:ut.msMatchesSelector);var ht=Node.prototype.appendChild;function dt(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=s(e)).next();!n.done;n=e.next())n=n.value,ht.call(this,"string"==typeof n?document.createTextNode(n):n)}})}dt(Document),dt(DocumentFragment),dt(Element);var ft,pt,_t=Node.prototype.insertBefore,vt=null!==(pt=null===(ft=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ft?void 0:ft.get)&&void 0!==pt?pt:function(){return this.firstChild};function mt(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=vt.call(this);for(var r=(e=s(e)).next();!r.done;r=e.next())r=r.value,_t.call(this,"string"==typeof r?document.createTextNode(r):r,n)}})}mt(Document),mt(DocumentFragment),mt(Element);var yt,gt,bt=Node.prototype.appendChild,Et=Node.prototype.removeChild,wt=null!==(gt=null===(yt=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===yt?void 0:yt.get)&&void 0!==gt?gt:function(){return this.firstChild};function Nt(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=wt.call(this));)Et.call(this,n);for(n=(e=s(e)).next();!n.done;n=e.next())n=n.value,bt.call(this,"string"==typeof n?document.createTextNode(n):n)}})}Nt(Document),Nt(DocumentFragment),Nt(Element);var Ct,St,Ot,Tt,Dt=Node.prototype.insertBefore,xt=null!==(St=null===(Ct=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Ct?void 0:Ct.get)&&void 0!==St?St:function(){return this.parentNode},Pt=null!==(Tt=null===(Ot=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===Ot?void 0:Ot.get)&&void 0!==Tt?Tt:function(){return this.nextSibling};function Mt(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=xt.call(this)))for(var r=Pt.call(this),o=(e=s(e)).next();!o.done;o=e.next())o=o.value,Dt.call(n,"string"==typeof o?document.createTextNode(o):o,r)}})}Mt(CharacterData),Mt(Element);var At,Lt,jt=Node.prototype.insertBefore,kt=null!==(Lt=null===(At=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===At?void 0:At.get)&&void 0!==Lt?Lt:function(){return this.parentNode};function Rt(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=kt.call(this)))for(var r=(e=s(e)).next();!r.done;r=e.next())r=r.value,jt.call(n,"string"==typeof r?document.createTextNode(r):r,this)}})}Rt(CharacterData),Rt(Element);var Ft,It,Ht=Node.prototype.removeChild,Ut=null!==(It=null===(Ft=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Ft?void 0:Ft.get)&&void 0!==It?It:function(){return this.parentNode};function Bt(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Ut.call(this);t&&Ht.call(t,this)}})}Bt(CharacterData),Bt(Element);var qt,Wt,Gt=Node.prototype.insertBefore,Vt=Node.prototype.removeChild,zt=null!==(Wt=null===(qt=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===qt?void 0:qt.get)&&void 0!==Wt?Wt:function(){return this.parentNode};function Xt(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=zt.call(this))){for(var r=(e=s(e)).next();!r.done;r=e.next())r=r.value,Gt.call(n,"string"==typeof r?document.createTextNode(r):r,this);Vt.call(n,this)}}})}Xt(CharacterData),Xt(Element);var Kt=window.Element.prototype,Jt=window.HTMLElement.prototype,$t=window.SVGElement.prototype;!Jt.hasOwnProperty("classList")||Kt.hasOwnProperty("classList")||$t.hasOwnProperty("classList")||Object.defineProperty(Kt,"classList",Object.getOwnPropertyDescriptor(Jt,"classList"));var Yt=Element.prototype,Zt=Element.prototype.hasAttribute,Qt=Element.prototype.setAttribute,te=Element.prototype.removeAttribute;Yt.hasOwnProperty("toggleAttribute")||(Yt.toggleAttribute=function(t,e){return void 0===e?Zt.call(this,t)?(te.call(this,t),!1):(Qt.call(this,t,""),!0):e?(Zt.call(this,t)||Qt.call(this,t,""),!0):(te.call(this,t),!1)});var ee=document.createElement("style");ee.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var ne=document.querySelector("head");ne.insertBefore(ee,ne.firstChild);var re=window;re.WebComponents=re.WebComponents||{flags:{}};var oe=document.querySelector('script[src*="webcomponents-bundle"]'),ie=/wc-(.+)/,ae={};if(!ae.noOpts){if(location.search.slice(1).split("&").forEach((function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(ie))&&(ae[e[1]]=t[1]||!0)})),oe)for(var se=0,le=void 0;le=oe.attributes[se];se++)"src"!==le.name&&(ae[le.name]=le.value||!0);var ce={};ae.log&&ae.log.split&&ae.log.split(",").forEach((function(t){ce[t]=!0})),ae.log=ce}re.WebComponents.flags=ae;var ue=ae.shadydom;if(ue){re.ShadyDOM=re.ShadyDOM||{},re.ShadyDOM.force=ue;var he=ae.noPatch;re.ShadyDOM.noPatch="true"===he||he}var de=ae.register||ae.ce;function fe(){}function pe(t){return t.__shady||(t.__shady=new fe),t.__shady}function _e(t){return t&&t.__shady}de&&window.customElements&&(re.customElements.forcePolyfill=de),function(){function t(){}function e(t,e){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return _.call(t,e);case Node.DOCUMENT_FRAGMENT_NODE:return v.call(t,e);default:return p.call(t,e)}}var n="undefined"==typeof HTMLTemplateElement,r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function t(t,e){if(t instanceof DocumentFragment)for(var r;r=t.firstChild;)n.call(this,r,e);else n.call(this,t,e);return t}o=!0;var e=Node.prototype.cloneNode;Node.prototype.cloneNode=function(t){return t=e.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}});var n=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var r=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return e instanceof DocumentFragment?t.call(this,e,null):r.call(this,e),e};var i=Node.prototype.removeChild,a=Node.prototype.replaceChild;Node.prototype.replaceChild=function(e,n){return e instanceof DocumentFragment?(t.call(this,e,n),i.call(this,n)):a.call(this,e,n),n},Document.prototype.createDocumentFragment=function(){var t=this.createElement("df");return t.__proto__=DocumentFragment.prototype,t};var s=Document.prototype.importNode;Document.prototype.importNode=function(t,e){return e=s.call(this,t,e||!1),t instanceof DocumentFragment&&(e.__proto__=DocumentFragment.prototype),e}}();var i=Node.prototype.cloneNode,a=Document.prototype.createElement,s=Document.prototype.importNode,l=Node.prototype.removeChild,c=Node.prototype.appendChild,u=Node.prototype.replaceChild,h=DOMParser.prototype.parseFromString,d=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},f=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},p=Element.prototype.querySelectorAll,_=Document.prototype.querySelectorAll,v=DocumentFragment.prototype.querySelectorAll,m=function(){if(!n){var t=document.createElement("template"),e=document.createElement("template");return e.content.appendChild(document.createElement("div")),t.content.appendChild(e),0===(t=t.cloneNode(!0)).content.childNodes.length||0===t.content.firstChild.content.childNodes.length||r}}();if(n){var y=document.implementation.createHTMLDocument("template"),g=!0,b=document.createElement("style");b.textContent="template{display:none;}";var E=document.head;E.insertBefore(b,E.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var w=!document.createElement("div").hasOwnProperty("innerHTML");t.Z=function(e){if(!e.content&&e.namespaceURI===document.documentElement.namespaceURI){e.content=y.createDocumentFragment();for(var n;n=e.firstChild;)c.call(e.content,n);if(w)e.__proto__=t.prototype;else if(e.cloneNode=function(e){return t.va(this,e)},g)try{C(e),S(e)}catch(t){g=!1}t.bootstrap(e.content)}};var N={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},C=function(e){Object.defineProperty(e,"innerHTML",{get:function(){return M(this)},set:function(e){var n=N[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(e)||["",""])[1].toLowerCase()];if(n)for(var r=0;r<n.length;r++)e="<"+n[r]+">"+e+"</"+n[r]+">";for(y.body.innerHTML=e,t.bootstrap(y);this.content.firstChild;)l.call(this.content,this.content.firstChild);if(e=y.body,n)for(r=0;r<n.length;r++)e=e.lastChild;for(;e.firstChild;)c.call(this.content,e.firstChild)},configurable:!0})},S=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(y.body.innerHTML=t,t=this.ownerDocument.createDocumentFragment();y.body.firstChild;)c.call(t,y.body.firstChild);u.call(this.parentNode,t,this)},configurable:!0})};C(t.prototype),S(t.prototype),t.bootstrap=function(n){for(var r,o=0,i=(n=e(n,"template")).length;o<i&&(r=n[o]);o++)t.Z(r)},document.addEventListener("DOMContentLoaded",(function(){t.bootstrap(document)})),Document.prototype.createElement=function(){var e=a.apply(this,arguments);return"template"===e.localName&&t.Z(e),e},DOMParser.prototype.parseFromString=function(){var e=h.apply(this,arguments);return t.bootstrap(e),e},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return M(this)},set:function(e){d.set.call(this,e),t.bootstrap(this)},configurable:!0,enumerable:!0});var O=/[&\u00A0"]/g,T=/[&\u00A0<>]/g,D=function(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}},x=(b=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(" ")),P=b("style script xmp iframe noembed noframes plaintext noscript".split(" ")),M=function(t,e){"template"===t.localName&&(t=t.content);for(var n,r="",o=e?e(t):f.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,p=0;l=d[p];p++)h+=" "+l.name+'="'+l.value.replace(O,D)+'"';h+=">",s=x[u]?h:h+M(s,c)+"</"+u+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&P[l.localName]?s:s.replace(T,D);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}}if(n||m){t.va=function(t,e){var n=i.call(t,!1);return this.Z&&this.Z(n),e&&(c.call(n.content,i.call(t.content,!0)),A(n.content,t.content)),n};var A=function(n,r){if(r.querySelectorAll&&0!==(r=e(r,"template")).length)for(var o,i,a=0,s=(n=e(n,"template")).length;a<s;a++)i=r[a],o=n[a],t&&t.Z&&t.Z(i),u.call(o.parentNode,L.call(i,!0),o)},L=Node.prototype.cloneNode=function(e){if(!o&&r&&this instanceof DocumentFragment){if(!e)return this.ownerDocument.createDocumentFragment();var n=j.call(this.ownerDocument,this,!0)}else n=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.va(this,e):i.call(this,e);return e&&A(n,this),n},j=Document.prototype.importNode=function(n,r){if(r=r||!1,"template"===n.localName)return t.va(n,r);var o=s.call(this,n,r);if(r){A(o,n),n=e(o,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var i,l=0;l<n.length;l++){i=n[l],(r=a.call(document,"script")).textContent=i.textContent;for(var c,h=i.attributes,d=0;d<h.length;d++)c=h[d],r.setAttribute(c.name,c.value);u.call(i.parentNode,r,i)}}return o}}n&&(window.HTMLTemplateElement=t)}(),fe.prototype.toJSON=function(){return{}};var ve=window.ShadyDOM||{};ve.cb=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var me,ye=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");ve.D=!!(ye&&ye.configurable&&ye.get),ve.Ba=ve.force||!ve.cb,ve.J=ve.noPatch||!1,ve.ha=ve.preferPerformance,ve.Da="on-demand"===ve.J;var ge=ve.querySelectorImplementation;function be(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function Ee(t){return(t=_e(t))&&void 0!==t.firstChild}function we(t){return t instanceof ShadowRoot}function Ne(t){return(t=(t=_e(t))&&t.root)&&yo(t)}me=-1<["native","selectorEngine"].indexOf(ge)?ge:void 0,ve.wb=me,ve.Ra=navigator.userAgent.match("Trident");var Ce=Element.prototype,Se=Ce.matches||Ce.matchesSelector||Ce.mozMatchesSelector||Ce.msMatchesSelector||Ce.oMatchesSelector||Ce.webkitMatchesSelector,Oe=document.createTextNode(""),Te=0,De=[];function xe(t){De.push(t),Oe.textContent=Te++}new MutationObserver((function(){for(;De.length;)try{De.shift()()}catch(t){throw Oe.textContent=Te++,t}})).observe(Oe,{characterData:!0});var Pe=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 Me(t,e){for(;e;){if(e==t)return!0;e=e.__shady_parentNode}return!1}function Ae(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=s(t),r=n.next();!r.done;r=n.next())if(((r=r.value).getAttribute("id")||r.getAttribute("name"))==e)return r;return null},t}function Le(t){var e=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)e.push(t);return e}function je(t){var e=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e.push(t);return e}function ke(t,e,n){if(n.configurable=!0,n.value)t[e]=n.value;else try{Object.defineProperty(t,e,n)}catch(t){}}function Re(t,e,n,r){for(var o in n=void 0===n?"":n,e)r&&0<=r.indexOf(o)||ke(t,n+o,e[o])}function Fe(t,e){for(var n in e)n in t&&ke(t,n,e[n])}function Ie(t){var e={};return Object.getOwnPropertyNames(t).forEach((function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)})),e}function He(t,e){for(var n,r=Object.getOwnPropertyNames(e),o=0;o<r.length;o++)t[n=r[o]]=e[n]}function Ue(t){return t instanceof Node?t:document.createTextNode(""+t)}function Be(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(1===e.length)return Ue(e[0]);n=document.createDocumentFragment();for(var r=(e=s(e)).next();!r.done;r=e.next())n.appendChild(Ue(r.value));return n}function qe(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,l(e)):t.push(e),t}),[]);return t}var We,Ge=[];function Ve(t){We||(We=!0,xe(ze)),Ge.push(t)}function ze(){We=!1;for(var t=!!Ge.length;Ge.length;)Ge.shift()();return t}function Xe(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.qa=new Set}ze.list=Ge,Xe.prototype.flush=function(){if(this.g){this.g=!1;var t=this.takeRecords();t.length&&this.qa.forEach((function(e){e(t)}))}},Xe.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var Ke=/[&\u00A0"]/g,Je=/[&\u00A0<>]/g;function $e(t){switch(t){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";case" ":return" "}}function Ye(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var Ze=Ye("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Qe=Ye("style script xmp iframe noembed noframes plaintext noscript".split(" "));function tn(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(Ke,$e)+'"';h+=">",s=Ze[l]?h:h+tn(s,c)+"</"+l+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&Qe[l.localName]?s:s.replace(Je,$e);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 en=ve.D,nn={querySelector:function(t){return this.__shady_native_querySelector(t)},querySelectorAll:function(t){return this.__shady_native_querySelectorAll(t)}},rn={};function on(t){rn[t]=function(e){return e["__shady_native_"+t]}}function an(t,e){for(var n in Re(t,e,"__shady_native_"),e)on(n)}function sn(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?nn[r]||(nn[r]=o.value):on(r))}}var ln=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),cn=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),un=document.implementation.createHTMLDocument("inert");function hn(t){for(var e;e=t.__shady_native_firstChild;)t.__shady_native_removeChild(e)}var dn=["firstElementChild","lastElementChild","children","childElementCount"],fn=["querySelector","querySelectorAll","append","prepend","replaceChildren"],pn=Ie({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}}),_n=Ie({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}}),vn=Ie({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 mn(t){for(var e in t){var n=t[e];n&&(n.enumerable=!1)}}mn(pn),mn(_n),mn(vn);var yn=ve.D||!0===ve.J,gn=yn?function(){}:function(t){var e=pe(t);e.Ta||(e.Ta=!0,Fe(t,vn))},bn=yn?function(){}:function(t){var e=pe(t);e.Sa||(e.Sa=!0,Fe(t,pn),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!ve.J||Fe(t,_n))},En="__eventWrappers"+Date.now(),wn=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),Nn=function(){function t(){}var e=!1,n={get capture(){return e=!0,!1}};return window.addEventListener("test",t,n),window.removeEventListener("test",t,n),e}();function Cn(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:Nn?t:e}}var Sn={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},On={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Tn(t){return t instanceof Node?t.__shady_getRootNode():t}function Dn(t,e){var n=[],r=t;for(t=Tn(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}function xn(t,e){if(!we)return t;t=Dn(t,!0);for(var n,r,o=0,i=void 0,a=void 0;o<e.length;o++)if((r=Tn(n=e[o]))!==i&&(a=t.indexOf(r),i=r),!we(r)||-1<a)return n}var Pn={get composed(){return void 0===this.__composed&&(wn?this.__composed="focusin"===this.type||"focusout"===this.type||wn(this):!1!==this.isTrusted&&(this.__composed=Sn[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=Dn(this.__target,this.composed)),this.__composedPath},get target(){return xn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=Dn(this.__relatedTarget,!0)),xn(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}},Mn=ve.D&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function An(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}Mn&&(Object.defineProperty(Pn,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty(Pn,"__shady_native_eventPhase",Mn));var Ln={focus:!0,blur:!0};function jn(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget}function kn(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var r,o=0;(r=n[o])&&(!jn(t)||t.target!==t.relatedTarget)&&(r.call(e,t),!t.__immediatePropagationStopped);o++);}var Rn=new Event("e").hasOwnProperty("currentTarget");function Fn(t){var e=(t=Rn?Object.create(t):t).composedPath(),n=e.map((function(t){return xn(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,kn(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,kn(t,l,"bubble"),t.ua))break}}finally{Rn||(o?Object.defineProperty(t,"currentTarget",o):delete t.currentTarget,a?Object.defineProperty(t,"eventPhase",a):delete t.eventPhase)}}function In(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 Hn(t){return ze(),!ve.ha&&this instanceof Node&&!Pe(document,this)?(t.__target||Wn(t,this),Fn(t)):this.__shady_native_dispatchEvent(t)}function Un(t,e,n){var r=this,o=Cn(n),i=o.capture,a=o.once,s=o.Pa;if(o=o.Na,e){var l=typeof e;if(("function"===l||"object"===l)&&("object"!==l||e.handleEvent&&"function"==typeof e.handleEvent)){if(On[t])return this.__shady_native_addEventListener(t,e,o);var c=s||this;if(s=e[En]){if(-1<In(s,c,t,i))return}else e[En]=[];s=function(o){if(a&&r.__shady_removeEventListener(t,e,n),o.__target||Wn(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,(!we(c)&&"slot"!==c.localName||-1!=o.composedPath().indexOf(c))&&(o.composed||-1<o.composedPath().indexOf(c)))if(jn(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[En].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),Ln[t]||this.__shady_native_addEventListener(t,s,o)}}}function Bn(t,e,n){if(e){var r=Cn(n);n=r.capture;var o=r.Pa;if(r=r.Na,On[t])return this.__shady_native_removeEventListener(t,e,r);var i=o||this;o=void 0;var a=null;try{a=e[En]}catch(t){}a&&-1<(i=In(a,i,t,n))&&(o=a.splice(i,1)[0].ub,a.length||(e[En]=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)}}var qn=Ie(Pn);function Wn(t,e){if(e=void 0===e?t.target:e,t.__target=e,t.__relatedTarget=t.relatedTarget,ve.D){if(!(e=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(e);n.__shady_sourceProto=e,Re(n,qn),e.__shady_patchedProto=n}t.__proto__=e.__shady_patchedProto}else Re(t,qn)}var Gn=An(Event),Vn=An(CustomEvent),zn=An(MouseEvent),Xn=Object.getOwnPropertyNames(Element.prototype).filter((function(t){return"on"===t.substring(0,2)})),Kn=Object.getOwnPropertyNames(HTMLElement.prototype).filter((function(t){return"on"===t.substring(0,2)}));function Jn(t){return{set:function(e){var n=pe(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=_e(this);return e&&e.T&&e.T[t]},configurable:!0}}function $n(t,e){return{index:t,ia:[],pa:e}}function Yn(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&&Zn(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=$n(o,0);i<r;)e.ia.push(n[i++]);return[e]}if(i==r)return[$n(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=$n(o,0)),e.pa++,o++,e.ia.push(n[i]),i++;break;case 2:e||(e=$n(o,0)),e.pa++,o++;break;case 3:e||(e=$n(o,0)),e.ia.push(n[i]),i++}return e&&l.push(e),l}function Zn(t,e){return t===e}var Qn=Ie({dispatchEvent:Hn,addEventListener:Un,removeEventListener:Bn}),tr=null;function er(){return tr||(tr=window.ShadyCSS&&window.ShadyCSS.ScopingShim),tr||null}function nr(t,e,n){var r=er();return!(!r||"class"!==e||(r.setElementClass(t,n),0))}function rr(t,e){var n=er();n&&n.unscopeNode(t,e)}function or(t,e){var n=er();if(!n)return!0;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(n=!0,t=t.__shady_firstChild;t;t=t.__shady_nextSibling)n=n&&or(t,e);return n}return t.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(t)===e}function ir(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=er();return e?e.currentScopeForNode(t):""}function ar(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&&ar(t,e)}var sr=window.document,lr=ve.ha,cr=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),ur=cr&&cr.get;function hr(t){for(var e;e=t.__shady_firstChild;)t.__shady_removeChild(e)}function dr(t){var e=_e(t);if(e&&void 0!==e.ta)for(e=t.__shady_firstChild;e;e=e.__shady_nextSibling)dr(e);(t=_e(t))&&(t.ta=void 0)}function fr(t){var e=t;if(t&&"slot"===t.localName){var n=_e(t);(n=n&&n.aa)&&(e=n.length?n[0]:fr(t.__shady_nextSibling))}return e}function pr(t,e,n){if(t=(t=_e(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,xe((function(){t.flush()})))}(t)}}var _r=Ie({get parentNode(){var t=_e(this);return void 0!==(t=t&&t.parentNode)?t:this.__shady_native_parentNode},get firstChild(){var t=_e(this);return void 0!==(t=t&&t.firstChild)?t:this.__shady_native_firstChild},get lastChild(){var t=_e(this);return void 0!==(t=t&&t.lastChild)?t:this.__shady_native_lastChild},get nextSibling(){var t=_e(this);return void 0!==(t=t&&t.nextSibling)?t:this.__shady_native_nextSibling},get previousSibling(){var t=_e(this);return void 0!==(t=t&&t.previousSibling)?t:this.__shady_native_previousSibling},get childNodes(){if(Ee(this)){var t=_e(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=_e(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:this.__shady_native_parentElement},get isConnected(){if(ur&&ur.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(null===t||Pe(t,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.__shady_parentNode||(we(t)?t.host:void 0);return!!(t&&t instanceof Document)},get textContent(){if(Ee(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:if(!Ee(this)&&ve.D){var e=this.__shady_firstChild;(e!=this.__shady_lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&hr(this),this.__shady_native_textContent=t}else hr(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!==sr&&t.ownerDocument!==sr)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=_e(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;pr(this,t);var r=[],o=(n=wo(this))?n.host.localName:ir(this),i=t.__shady_parentNode;if(i){var a=ir(t),s=!!n||!wo(t)||lr&&void 0!==this.__noInsertionPoint;i.__shady_removeChild(t,s)}i=!0;var c=(!lr||void 0===t.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!or(t,o),u=n&&!t.__noInsertionPoint&&(!lr||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(u||c)&&(c&&(a=a||ir(t)),ar(t,(function(t){if(u&&"slot"===t.localName&&r.push(t),c){var e=a;er()&&(e&&rr(t,e),(e=er())&&e.scopeNode(t,o))}}))),r.length&&(po(n),n.i.push.apply(n.i,l(r)),lo(n)),Ee(this)&&(function(t,e,n){Yr(e,2);var r=pe(e);if(void 0!==r.firstChild&&(r.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)Zr(t,e,r,n);else Zr(t,e,r,n)}(t,this,e),(s=_e(this)).root?(i=!1,Ne(this)&&lo(s.root)):n&&"slot"===this.localName&&(i=!1,lo(n))),i?(n=we(this)?this.host:this,e?(e=fr(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||!we(t))return this.__shady_insertBefore(t)},removeChild:function(t,e){if(e=void 0!==e&&e,this.ownerDocument!==sr)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);pr(this,null,t);var n=wo(t),r=n&&function(t,e){if(t.g){_o(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(Me(e,a)){o.splice(i,1);var s=t.g.indexOf(a);if(0<=s&&(t.g.splice(s,1),(s=_e(a.__shady_parentNode))&&s.ka&&s.ka--),i--,s=(a=_e(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}}(n,t),o=_e(this);if(Ee(this)&&(function(t,e){var n=pe(t);t===(e=pe(e)).firstChild&&(e.firstChild=n.nextSibling),t===e.lastChild&&(e.lastChild=n.previousSibling),t=n.previousSibling;var r=n.nextSibling;t&&(pe(t).nextSibling=r),r&&(pe(r).previousSibling=t),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==e.childNodes&&(e.childNodes=null)}(t,this),Ne(this))){lo(o.root);var i=!0}if(er()&&!e&&n&&t.nodeType!==Node.TEXT_NODE){var a=ir(t);ar(t,(function(t){rr(t,a)}))}return dr(t),n&&((e="slot"===this.localName)&&(i=!0),(r||e)&&lo(n)),i||(i=we(this)?this.host:this,(!o.root&&"slot"!==t.localName||i===t.__shady_native_parentNode)&&i.__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=this.__shady_native_cloneNode(!1);if(t&&e.nodeType!==Node.ATTRIBUTE_NODE){t=this.__shady_firstChild;for(var n;t;t=t.__shady_nextSibling)n=t.__shady_cloneNode(!0),e.__shady_appendChild(n)}return e},getRootNode:function(t){if(this&&this.nodeType){var e=pe(this),n=e.ta;return void 0===n&&(we(this)?(n=this,e.ta=n):(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(t):this,document.documentElement.__shady_native_contains(this)&&(e.ta=n))),n}},contains:function(t){return Me(this,t)}}),vr=Ie({get assignedSlot(){var t=this.__shady_parentNode;return(t=t&&t.__shady_shadowRoot)&&co(t),(t=_e(this))&&t.assignedSlot||null}}),mr=new Map;function yr(t,e,n,r){for(r=void 0===r||r;e<t.length;e++)if("\\"===t[e]&&e<t.length-1&&"\n"!==t[e+1])e++