UNPKG

ablera-assistant-webchat

Version:

Ablera Assistant Webchat is a customizable and easy-to-integrate virtual assistant for your web applications.

2 lines 1.63 MB
!function(){"use strict";!function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()}(); (function(){"use strict";var m;function Xr(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}var We,Be="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){return t==Array.prototype||t==Object.prototype||(t[e]=n.value),t},It=function Ys(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 Yr(t,e){if(e)t:{var n=It;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&&Be(n,t,{configurable:!0,writable:!0,value:e})}}function Zs(t){return(t={next:t})[Symbol.iterator]=function(){return this},t}function z(t){var e=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:Xr(t)}}function G(t){if(!(t instanceof Array)){t=z(t);for(var e,n=[];!(e=t.next()).done;)n.push(e.value);t=n}return t}if(Yr("Symbol",function(t){function n(o,i){this.g=o,Be(this,"description",{configurable:!0,writable:!0,value:i})}if(t)return t;n.prototype.toString=function(){return this.g};var r=0;return function e(o){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(o||"")+"_"+r++,o)}}),Yr("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=It[e[n]];"function"==typeof r&&"function"!=typeof r.prototype[t]&&Be(r.prototype,t,{configurable:!0,writable:!0,value:function(){return Zs(Xr(this))}})}return t}),"function"==typeof Object.setPrototypeOf)We=Object.setPrototypeOf;else{var Ve;t:{var Zr={};try{Zr.__proto__={a:!0},Ve=Zr.a;break t}catch{}Ve=!1}We=Ve?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var $r=We;function Ge(){this.u=!1,this.h=null,this.Oa=void 0,this.g=1,this.ea=0,this.i=null}function Xe(t){if(t.u)throw new TypeError("Generator is already running");t.u=!0}function Ye(t,e){t.i={ab:e,fb:!0},t.g=t.ea}function Ze(t,e){return t.g=3,{value:e}}function qs(t){this.g=new Ge,this.h=t}function $e(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(s){return t.g.h=null,Ye(t.g,s),Ht(t)}return t.g.h=null,r.call(t.g,i),Ht(t)}function Ht(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(n){t.g.Oa=void 0,Ye(t.g,n)}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 Qs(t){this.next=function(e){return Xe(t.g),t.g.h?e=$e(t,t.g.h.next,e,t.g.O):(t.g.O(e),e=Ht(t)),e},this.throw=function(e){return Xe(t.g),t.g.h?e=$e(t,t.g.h.throw,e,t.g.O):(Ye(t.g,e),e=Ht(t)),e},this.return=function(e){return function Ks(t,e){Xe(t.g);var n=t.g.h;return n?$e(t,"return"in n?n.return:function(r){return{value:r,done:!0}},e,t.g.return):(t.g.return(e),Ht(t))}(t,e)},this[Symbol.iterator]=function(){return this}}function qe(t,e){return e=new Qs(new qs(e)),$r&&t.prototype&&$r(e,t.prototype),e}Ge.prototype.O=function(t){this.Oa=t},Ge.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 r,e=[].slice.call(arguments,1),n=0;n<e.length;n++)if(r=e[n])for(var o=t,i=Object.keys(r),s=0;s<i.length;s++){var l=i[s];o[l]=r[l]}return t});var zs=setTimeout;function Js(){}function B(t){if(!(this instanceof B))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=[],Kr(t,this)}function qr(t,e){for(;3===t.N;)t=t.I;0===t.N?t.ba.push(e):(t.Ha=!0,ze(function(){var n=1===t.N?e.hb:e.ib;if(null===n)(1===t.N?Ke:kt)(e.promise,t.I);else{try{var r=n(t.I)}catch(o){return void kt(e.promise,o)}Ke(e.promise,r)}}))}function Ke(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 B)return t.N=3,t.I=e,void Qe(t);if("function"==typeof n)return void Kr(function tl(t,e){return function(){t.apply(e,arguments)}}(n,e),t)}t.N=1,t.I=e,Qe(t)}catch(r){kt(t,r)}}function kt(t,e){t.N=2,t.I=e,Qe(t)}function Qe(t){2===t.N&&0===t.ba.length&&ze(function(){t.Ha||typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",t.I)});for(var e=0,n=t.ba.length;e<n;e++)qr(t,t.ba[e]);t.ba=null}function el(t,e,n){this.hb="function"==typeof t?t:null,this.ib="function"==typeof e?e:null,this.promise=n}function Kr(t,e){var n=!1;try{t(function(r){n||(n=!0,Ke(e,r))},function(r){n||(n=!0,kt(e,r))})}catch(r){n||(n=!0,kt(e,r))}}function Qr(t){return t&&"object"==typeof t&&t.constructor===B?t:new B(function(e){e(t)})}B.prototype.catch=function(t){return this.then(null,t)},B.prototype.then=function(t,e){var n=new this.constructor(Js);return qr(this,new el(t,e,n)),n},B.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 t,e,i,n,r,o,ze="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){zs(t,0)};if(!window.Promise){window.Promise=B,B.prototype.then=B.prototype.then,B.all=function nl(t){return new B(function(e,n){function r(l,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,function(h){r(l,h)},n)}o[l]=a,0==--i&&e(o)}catch(h){n(h)}}if(!t||typeof t.length>"u")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,s=0;s<o.length;s++)r(s,o[s])})},B.race=function ol(t){return new B(function(e,n){if(!t||typeof t.length>"u")return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)Qr(t[r]).then(e,n)})},B.resolve=Qr,B.reject=function rl(t){return new B(function(e,n){n(t)})};var Je=document.createTextNode(""),Jt=[];new MutationObserver(function(){for(var t=Jt.length,e=0;e<t;e++)Jt[e]();Jt.splice(0,t)}).observe(Je,{characterData:!0}),ze=function(t){Jt.push(t),Je.textContent=0<Je.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="__\x01symbol@@"+o,s=t.getOwnPropertyNames,l=t.getOwnPropertyDescriptor,a=t.create,u=t.keys,h=t.freeze||t,f=t.defineProperty,x=t.defineProperties,S=l(t,"getOwnPropertyNames"),_=t.prototype,D=_.hasOwnProperty,O=_.propertyIsEnumerable,I=_.toString,E=function(p,T,M){D.call(p,i)||f(p,i,{enumerable:!1,configurable:!1,writable:!1,value:{}}),p[i]["@@"+T]=M},Z=function(p,T){var M=a(p);return s(T).forEach(function(d){pt.call(T,d)&&zt(M,d,T[d])}),M},g=function(){},ft=function(p){return p!=i&&!D.call(ot,p)},rt=function(p){return p!=i&&D.call(ot,p)},pt=function(p){var T=String(p);return rt(T)?D.call(this,T)&&!!this[i]&&this[i]["@@"+T]:O.call(this,p)},c=function(p){return f(_,p,{enumerable:!1,configurable:!0,get:g,set:function(T){Nt(this,p,{enumerable:!1,configurable:!0,writable:!0,value:T}),E(this,p,!0)}}),ot[p]=f(t(p),"constructor",Vr),h(ot[p])},P=function p(T){if(this instanceof p)throw new TypeError("Symbol is not a constructor");return c("__\x01symbol:".concat(T||"",o,++r))},ot=a(null),Vr={value:P},Ie=function(p){return ot[p]},zt=function(p,T,M){var d=String(T);if(rt(d)){if(T=Nt,M.enumerable){var v=a(M);v.enumerable=!1}else v=M;T(p,d,v),E(p,d,!!M.enumerable)}else f(p,T,M);return p},He=function(p){return s(p).filter(rt).map(Ie)};S.value=zt,f(t,"defineProperty",S),S.value=He,f(t,e,S),S.value=function(p){return s(p).filter(ft)},f(t,"getOwnPropertyNames",S),S.value=function(p,T){var M=He(T);return M.length?u(T).concat(M).forEach(function(d){pt.call(T,d)&&zt(p,d,T[d])}):x(p,T),p},f(t,"defineProperties",S),S.value=pt,f(_,"propertyIsEnumerable",S),S.value=P,f(n,"Symbol",S),S.value=function(p){return(p="__\x01symbol:".concat("__\x01symbol:",p,o))in _?ot[p]:c(p)},f(P,"for",S),S.value=function(p){if(ft(p))throw new TypeError(p+" is not a symbol");if(D.call(ot,p)&&"__\x01symbol:"===(p=p.slice(10)).slice(0,10)&&(p=p.slice(10))!==o)return 0<(p=p.slice(0,p.length-o.length)).length?p:void 0},f(P,"keyFor",S),S.value=function(p,T){var M=l(p,T);return M&&rt(T)&&(M.enumerable=pt.call(p,T)),M},f(t,"getOwnPropertyDescriptor",S),S.value=function(p,T){return 1===arguments.length||typeof T>"u"?a(p):Z(p,T)},f(t,"create",S),S.value=function(){var p=I.call(this);return"[object String]"===p&&rt(this)?"[object Symbol]":p},f(_,"toString",S);try{if(!0!==a(f({},"__\x01symbol:",{get:function(){return f(this,"__\x01symbol:",{value:!0})["__\x01symbol:"]}}))["__\x01symbol:"])throw"IE11";var Nt=f}catch{Nt=function(T,M,d){var v=l(_,M);delete _[M],f(T,M,d),f(_,M,v)}}}})(Object,"getOwnPropertySymbols"),t=Object,e=Symbol,n=t.defineProperty,o=(r=t.prototype).toString,"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(s){s in e||(n(e,s,{value:e(s)}),"toStringTag"===s&&((i=t.getOwnPropertyDescriptor(r,"toString")).value=function(){var l=o.call(this),a=null==this?this:this[e.toStringTag];return null==a?l:"[object "+a+"]"},n(r,"toString",i)))}),function(t,e,n){function r(){return this}e[t]||(e[t]=function(){var o=0,i=this,s={next:function(){var l=i.length<=o;return l?{done:l}:{done:l,value:i[o++]}}};return s[t]=r,s}),n[t]||(n[t]=function(){var o=String.fromCodePoint,i=this,s=0,l=i.length,a={next:function(){var u=l<=s,h=u?"":o(i.codePointAt(s));return s+=h.length,u?{done:u}:{done:u,value:h}}};return a[t]=r,a})}(Symbol.iterator,Array.prototype,String.prototype);var il=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":il.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 qe(t,function(r){if(1==r.g&&(e=0),3!=r.g)return e<n.length?r=Ze(r,n[e]):(r.g=0,r=void 0),r;e++,r.g=2})}),Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function t(){var e,r,n=this;return qe(t,function(o){if(1==o.g&&(e=[],n.forEach(function(i){e.push(i)}),r=0),3!=o.g)return r<e.length?o=Ze(o,e[r]):(o.g=0,o=void 0),o;r++,o.g=2})}),Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function t(){var e,r,n=this;return qe(t,function(o){if(1==o.g&&(e=[],n.forEach(function(i,s){e.push([s,i])}),r=0),3!=o.g)return r<e.length?o=Ze(o,e[r]):(o.g=0,o=void 0),o;r++,o.g=2})});var tn=document.createEvent("Event");if(tn.initEvent("foo",!0,!0),tn.preventDefault(),!tn.defaultPrevented){var sl=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(sl.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var en=/Trident/.test(navigator.userAgent);if(!window.Event||en&&"function"!=typeof window.Event){var te=window.Event;if(window.Event=function(t,e){e=e||{};var n=document.createEvent("Event");return n.initEvent(t,!!e.bubbles,!!e.cancelable),n},te){for(var zr in te)window.Event[zr]=te[zr];window.Event.prototype=te.prototype}}if((!window.CustomEvent||en&&"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||en&&"function"!=typeof window.MouseEvent){var ee=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},ee)for(var Jr in ee)window.MouseEvent[Jr]=ee[Jr];window.MouseEvent.prototype=ee.prototype}var nn,ll=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 s=e&&n;return s&&(i.dispatchEvent(new Event("click")),i.dispatchEvent(new Event("click")),s=1==o),i.removeEventListener("click",t,r),s}(),Ut=null!==(nn=window.EventTarget)&&void 0!==nn?nn:window.Node;if(!ll&&"addEventListener"in Ut.prototype){var to=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}},al=Ut.prototype.addEventListener,eo=Ut.prototype.removeEventListener,ul=new WeakMap,hl=new WeakMap,no=function(t,e,n){var r=n?ul:hl;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};Ut.prototype.addEventListener=function(t,e,n){var r=this;if(null!=e){var o=(n=to(n)).capture;n=n.once;var i=no(this,t,o);if(!i.has(e)){var s=n?function(l){return i.delete(e),eo.call(r,t,s,o),"function"==typeof e?e.call(r,l):"function"==typeof e?.handleEvent?e.handleEvent(l):void 0}:null;i.set(e,s),al.call(this,t,s??e,o)}}},Ut.prototype.removeEventListener=function(t,e,n){if(null!=e){n=to(n).capture;var r=no(this,t,n),o=r.get(e);void 0!==o&&(r.delete(e),eo.call(this,t,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 rn,on,sn=Element.prototype,cl=null!==(on=(null!==(rn=Object.getOwnPropertyDescriptor(sn,"attributes"))&&void 0!==rn?rn:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"))?.get)&&void 0!==on?on:function(){return this.attributes},dl=Array.prototype.map;sn.hasOwnProperty("getAttributeNames")||(sn.getAttributeNames=function(){return dl.call(cl.call(this),function(t){return t.name})});var an,ne=Element.prototype;ne.hasOwnProperty("matches")||(ne.matches=null!==(an=ne.webkitMatchesSelector)&&void 0!==an?an:ne.msMatchesSelector);var fl=Node.prototype.appendChild;function un(t){(t=t.prototype).hasOwnProperty("append")||Object.defineProperty(t,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];for(r=(n=z(n)).next();!r.done;r=n.next())fl.call(this,"string"==typeof(r=r.value)?document.createTextNode(r):r)}})}un(Document),un(DocumentFragment),un(Element);var hn,cn,pl=Node.prototype.insertBefore,_l=null!==(cn=null===(hn=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===hn?void 0:hn.get)&&void 0!==cn?cn:function(){return this.firstChild};function dn(t){(t=t.prototype).hasOwnProperty("prepend")||Object.defineProperty(t,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];r=_l.call(this);for(var o=(n=z(n)).next();!o.done;o=n.next())pl.call(this,"string"==typeof(o=o.value)?document.createTextNode(o):o,r)}})}dn(Document),dn(DocumentFragment),dn(Element);var fn,pn,vl=Node.prototype.appendChild,ml=Node.prototype.removeChild,yl=null!==(pn=null===(fn=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===fn?void 0:fn.get)&&void 0!==pn?pn:function(){return this.firstChild};function _n(t){(t=t.prototype).hasOwnProperty("replaceChildren")||Object.defineProperty(t,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];for(;null!==(r=yl.call(this));)ml.call(this,r);for(r=(n=z(n)).next();!r.done;r=n.next())vl.call(this,"string"==typeof(r=r.value)?document.createTextNode(r):r)}})}_n(Document),_n(DocumentFragment),_n(Element);var vn,mn,yn,gn,gl=Node.prototype.insertBefore,El=null!==(mn=null===(vn=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===vn?void 0:vn.get)&&void 0!==mn?mn:function(){return this.parentNode},wl=null!==(gn=null===(yn=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===yn?void 0:yn.get)&&void 0!==gn?gn:function(){return this.nextSibling};function ro(t){(t=t.prototype).hasOwnProperty("after")||Object.defineProperty(t,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];if(null!==(r=El.call(this)))for(var o=wl.call(this),i=(n=z(n)).next();!i.done;i=n.next())gl.call(r,"string"==typeof(i=i.value)?document.createTextNode(i):i,o)}})}ro(CharacterData),ro(Element);var En,wn,Nl=Node.prototype.insertBefore,Cl=null!==(wn=null===(En=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===En?void 0:En.get)&&void 0!==wn?wn:function(){return this.parentNode};function oo(t){(t=t.prototype).hasOwnProperty("before")||Object.defineProperty(t,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];if(null!==(r=Cl.call(this)))for(var o=(n=z(n)).next();!o.done;o=n.next())Nl.call(r,"string"==typeof(o=o.value)?document.createTextNode(o):o,this)}})}oo(CharacterData),oo(Element);var Nn,Cn,Sl=Node.prototype.removeChild,Ol=null!==(Cn=null===(Nn=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Nn?void 0:Nn.get)&&void 0!==Cn?Cn:function(){return this.parentNode};function io(t){(t=t.prototype).hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Ol.call(this);e&&Sl.call(e,this)}})}io(CharacterData),io(Element);var Sn,On,Tl=Node.prototype.insertBefore,bl=Node.prototype.removeChild,Dl=null!==(On=null===(Sn=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Sn?void 0:Sn.get)&&void 0!==On?On:function(){return this.parentNode};function so(t){(t=t.prototype).hasOwnProperty("replaceWith")||Object.defineProperty(t,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(e){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];if(null!==(r=Dl.call(this))){for(var o=(n=z(n)).next();!o.done;o=n.next())Tl.call(r,"string"==typeof(o=o.value)?document.createTextNode(o):o,this);bl.call(r,this)}}})}so(CharacterData),so(Element);var lo=window.Element.prototype,ao=window.HTMLElement.prototype,xl=window.SVGElement.prototype;!ao.hasOwnProperty("classList")||lo.hasOwnProperty("classList")||xl.hasOwnProperty("classList")||Object.defineProperty(lo,"classList",Object.getOwnPropertyDescriptor(ao,"classList"));var uo=Element.prototype,ho=Element.prototype.hasAttribute,co=Element.prototype.setAttribute,fo=Element.prototype.removeAttribute;uo.hasOwnProperty("toggleAttribute")||(uo.toggleAttribute=function(t,e){return void 0===e?ho.call(this,t)?(fo.call(this,t),!1):(co.call(this,t,""),!0):e?(ho.call(this,t)||co.call(this,t,""),!0):(fo.call(this,t),!1)});var po=document.createElement("style");po.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var _o=document.querySelector("head");_o.insertBefore(po,_o.firstChild);var ct=window;ct.WebComponents=ct.WebComponents||{flags:{}};var vo=document.querySelector('script[src*="webcomponents-bundle"]'),Pl=/wc-(.+)/,J={};if(!J.noOpts){if(location.search.slice(1).split("&").forEach(function(t){var e;(t=t.split("="))[0]&&(e=t[0].match(Pl))&&(J[e[1]]=t[1]||!0)}),vo)for(var mo=0,re=void 0;re=vo.attributes[mo];mo++)"src"!==re.name&&(J[re.name]=re.value||!0);var yo={};J.log&&J.log.split&&J.log.split(",").forEach(function(t){yo[t]=!0}),J.log=yo}ct.WebComponents.flags=J;var go=J.shadydom;if(go){ct.ShadyDOM=ct.ShadyDOM||{},ct.ShadyDOM.force=go;var Eo=J.noPatch;ct.ShadyDOM.noPatch="true"===Eo||Eo}var wo=J.register||J.ce;function No(){}function R(t){return t.__shady||(t.__shady=new No),t.__shady}function N(t){return t&&t.__shady}wo&&window.customElements&&(ct.customElements.forcePolyfill=wo),function(){function t(){}function e(d,v){if(!d.childNodes.length)return[];switch(d.nodeType){case Node.DOCUMENT_NODE:return D.call(d,v);case Node.DOCUMENT_FRAGMENT_NODE:return O.call(d,v);default:return _.call(d,v)}}var n=typeof HTMLTemplateElement>"u",r=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),o=!1;/Trident/.test(navigator.userAgent)&&function(){function d(w,U){if(w instanceof DocumentFragment)for(var ke;ke=w.firstChild;)b.call(this,ke,U);else b.call(this,w,U);return w}o=!0;var v=Node.prototype.cloneNode;Node.prototype.cloneNode=function(w){return w=v.call(this,w),this instanceof DocumentFragment&&(w.__proto__=DocumentFragment.prototype),w},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 b=Node.prototype.insertBefore;Node.prototype.insertBefore=d;var A=Node.prototype.appendChild;Node.prototype.appendChild=function(w){return w instanceof DocumentFragment?d.call(this,w,null):A.call(this,w),w};var Q=Node.prototype.removeChild,lt=Node.prototype.replaceChild;Node.prototype.replaceChild=function(w,U){return w instanceof DocumentFragment?(d.call(this,w,U),Q.call(this,U)):lt.call(this,w,U),U},Document.prototype.createDocumentFragment=function(){var w=this.createElement("df");return w.__proto__=DocumentFragment.prototype,w};var _t=Document.prototype.importNode;Document.prototype.importNode=function(w,U){return U=_t.call(this,w,U||!1),w instanceof DocumentFragment&&(U.__proto__=DocumentFragment.prototype),U}}();var i=Node.prototype.cloneNode,s=Document.prototype.createElement,l=Document.prototype.importNode,a=Node.prototype.removeChild,u=Node.prototype.appendChild,h=Node.prototype.replaceChild,f=DOMParser.prototype.parseFromString,x=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(d){this.innerHTML=d}},S=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},_=Element.prototype.querySelectorAll,D=Document.prototype.querySelectorAll,O=DocumentFragment.prototype.querySelectorAll,I=function(){if(!n){var d=document.createElement("template"),v=document.createElement("template");return v.content.appendChild(document.createElement("div")),d.content.appendChild(v),0===(d=d.cloneNode(!0)).content.childNodes.length||0===d.content.firstChild.content.childNodes.length||r}}();if(n){var E=document.implementation.createHTMLDocument("template"),Z=!0,g=document.createElement("style");g.textContent="template{display:none;}";var ft=document.head;ft.insertBefore(g,ft.firstElementChild),t.prototype=Object.create(HTMLElement.prototype);var rt=!document.createElement("div").hasOwnProperty("innerHTML");t.Z=function(d){if(!d.content&&d.namespaceURI===document.documentElement.namespaceURI){d.content=E.createDocumentFragment();for(var v;v=d.firstChild;)u.call(d.content,v);if(rt)d.__proto__=t.prototype;else if(d.cloneNode=function(b){return t.va(this,b)},Z)try{c(d),P(d)}catch{Z=!1}t.bootstrap(d.content)}};var pt={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},c=function(d){Object.defineProperty(d,"innerHTML",{get:function(){return Nt(this)},set:function(v){var b=pt[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(v)||["",""])[1].toLowerCase()];if(b)for(var A=0;A<b.length;A++)v="<"+b[A]+">"+v+"</"+b[A]+">";for(E.body.innerHTML=v,t.bootstrap(E);this.content.firstChild;)a.call(this.content,this.content.firstChild);if(v=E.body,b)for(A=0;A<b.length;A++)v=v.lastChild;for(;v.firstChild;)u.call(this.content,v.firstChild)},configurable:!0})},P=function(d){Object.defineProperty(d,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(v){if(!this.parentNode)throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");for(E.body.innerHTML=v,v=this.ownerDocument.createDocumentFragment();E.body.firstChild;)u.call(v,E.body.firstChild);h.call(this.parentNode,v,this)},configurable:!0})};c(t.prototype),P(t.prototype),t.bootstrap=function(d){for(var A,v=0,b=(d=e(d,"template")).length;v<b&&(A=d[v]);v++)t.Z(A)},document.addEventListener("DOMContentLoaded",function(){t.bootstrap(document)}),Document.prototype.createElement=function(){var d=s.apply(this,arguments);return"template"===d.localName&&t.Z(d),d},DOMParser.prototype.parseFromString=function(){var d=f.apply(this,arguments);return t.bootstrap(d),d},Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return Nt(this)},set:function(d){x.set.call(this,d),t.bootstrap(this)},configurable:!0,enumerable:!0});var ot=/[&\u00A0"]/g,Vr=/[&\u00A0<>]/g,Ie=function(d){switch(d){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}},zt=(g=function(d){for(var v={},b=0;b<d.length;b++)v[d[b]]=!0;return v})("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),He=g("style script xmp iframe noembed noframes plaintext noscript".split(" ")),Nt=function(d,v){"template"===d.localName&&(d=d.content);for(var _t,b="",A=v?v(d):S.get.call(d),Q=0,lt=A.length;Q<lt&&(_t=A[Q]);Q++){t:{var w=_t,U=d,ke=v;switch(w.nodeType){case Node.ELEMENT_NODE:for(var Gr=w.localName,Ue="<"+Gr,_u=w.attributes,Xs=0;U=_u[Xs];Xs++)Ue+=" "+U.name+'="'+U.value.replace(ot,Ie)+'"';Ue+=">",w=zt[Gr]?Ue:Ue+Nt(w,ke)+"</"+Gr+">";break t;case Node.TEXT_NODE:w=w.data,w=U&&He[U.localName]?w:w.replace(Vr,Ie);break t;case Node.COMMENT_NODE:w="\x3c!--"+w.data+"--\x3e";break t;default:throw window.console.error(w),Error("not implemented")}}b+=w}return b}}if(n||I){t.va=function(d,v){var b=i.call(d,!1);return this.Z&&this.Z(b),v&&(u.call(b.content,i.call(d.content,!0)),p(b.content,d.content)),b};var p=function(d,v){if(v.querySelectorAll&&0!==(v=e(v,"template")).length)for(var Q,lt,b=0,A=(d=e(d,"template")).length;b<A;b++)lt=v[b],Q=d[b],t&&t.Z&&t.Z(lt),h.call(Q.parentNode,T.call(lt,!0),Q)},T=Node.prototype.cloneNode=function(d){if(!o&&r&&this instanceof DocumentFragment){if(!d)return this.ownerDocument.createDocumentFragment();var v=M.call(this.ownerDocument,this,!0)}else v=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?t.va(this,d):i.call(this,d);return d&&p(v,this),v},M=Document.prototype.importNode=function(d,v){if(v=v||!1,"template"===d.localName)return t.va(d,v);var b=l.call(this,d,v);if(v){p(b,d),d=e(b,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var A,Q=0;Q<d.length;Q++){A=d[Q],(v=s.call(document,"script")).textContent=A.textContent;for(var w,lt=A.attributes,_t=0;_t<lt.length;_t++)v.setAttribute((w=lt[_t]).name,w.value);h.call(A.parentNode,v,A)}}return b}}n&&(window.HTMLTemplateElement=t)}(),No.prototype.toJSON=function(){return{}};var y=window.ShadyDOM||{};y.cb=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Tn=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");y.D=!!(Tn&&Tn.configurable&&Tn.get),y.Ba=y.force||!y.cb,y.J=y.noPatch||!1,y.ha=y.preferPerformance,y.Da="on-demand"===y.J;var Co,So=y.querySelectorImplementation;function Oo(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function vt(t){return(t=N(t))&&void 0!==t.firstChild}function k(t){return t instanceof ShadowRoot}function bn(t){return(t=(t=N(t))&&t.root)&&Ai(t)}Co=-1<["native","selectorEngine"].indexOf(So)?So:void 0,y.wb=Co,y.Ra=navigator.userAgent.match("Trident");var Ct=Element.prototype,Dn=Ct.matches||Ct.matchesSelector||Ct.mozMatchesSelector||Ct.msMatchesSelector||Ct.oMatchesSelector||Ct.webkitMatchesSelector,xn=document.createTextNode(""),To=0,Pn=[];function bo(t){Pn.push(t),xn.textContent=To++}new MutationObserver(function(){for(;Pn.length;)try{Pn.shift()()}catch(t){throw xn.textContent=To++,t}}).observe(xn,{characterData:!0});var Do=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 xo(t,e){for(;e;){if(e==t)return!0;e=e.__shady_parentNode}return!1}function Bt(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(o){return t[o]},t.namedItem=function(o){if("length"!==o&&isNaN(o)&&t[o])return t[o];for(var i=z(t),s=i.next();!s.done;s=i.next())if(((s=s.value).getAttribute("id")||s.getAttribute("name"))==o)return s;return null},t}function Po(t){var e=[];for(t=t.__shady_native_firstChild;t;t=t.__shady_native_nextSibling)e.push(t);return e}function Mn(t){var e=[];for(t=t.__shady_firstChild;t;t=t.__shady_nextSibling)e.push(t);return e}function Mo(t,e,n){if(n.configurable=!0,n.value)t[e]=n.value;else try{Object.defineProperty(t,e,n)}catch{}}function W(t,e,n,r){for(var o in n=void 0===n?"":n,e)r&&0<=r.indexOf(o)||Mo(t,n+o,e[o])}function An(t,e){for(var n in e)n in t&&Mo(t,n,e[n])}function F(t){var e={};return Object.getOwnPropertyNames(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e}function jn(t,e){for(var o,n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++)t[o=n[r]]=e[o]}function Ao(t){return t instanceof Node?t:document.createTextNode(""+t)}function St(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(1===e.length)return Ao(e[0]);n=document.createDocumentFragment();for(var r=(e=z(e)).next();!r.done;r=e.next())n.appendChild(Ao(r.value));return n}function Ln(t){var e;for(e=void 0===e?1:e;0<e;e--)t=t.reduce(function(n,r){return Array.isArray(r)?n.push.apply(n,G(r)):n.push(r),n},[]);return t}var Rn,Wt=[];function jo(t){Rn||(Rn=!0,bo(oe)),Wt.push(t)}function oe(){Rn=!1;for(var t=!!Wt.length;Wt.length;)Wt.shift()();return t}function Fn(){this.g=!1,this.addedNodes=[],this.removedNodes=[],this.qa=new Set}oe.list=Wt,Fn.prototype.flush=function(){if(this.g){this.g=!1;var t=this.takeRecords();t.length&&this.qa.forEach(function(e){e(t)})}},Fn.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 Fl=/[&\u00A0"]/g,Il=/[&\u00A0<>]/g;function Lo(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case"\xa0":return"&nbsp;"}}function Ro(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var Hl=Ro("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),kl=Ro("style script xmp iframe noembed noframes plaintext noscript".split(" "));function In(t,e){"template"===t.localName&&(t=t.content);for(var n="",r=e?e(t):t.childNodes,o=0,i=r.length,s=void 0;o<i&&(s=r[o]);o++){t:{var l=s,a=t,u=e;switch(l.nodeType){case Node.ELEMENT_NODE:for(var S,h="<"+(a=l.localName),f=l.attributes,x=0;S=f[x];x++)h+=" "+S.name+'="'+S.value.replace(Fl,Lo)+'"';h+=">",l=Hl[a]?h:h+In(l,u)+"</"+a+">";break t;case Node.TEXT_NODE:l=l.data,l=a&&kl[a.localName]?l:l.replace(Il,Lo);break t;case Node.COMMENT_NODE:l="\x3c!--"+l.data+"--\x3e";break t;default:throw window.console.error(l),Error("not implemented")}}n+=l}return n}var ie=y.D,Hn={querySelector:function(t){return this.__shady_native_querySelector(t)},querySelectorAll:function(t){return this.__shady_native_querySelectorAll(t)}},Fo={};function Io(t){Fo[t]=function(e){return e["__shady_native_"+t]}}function Vt(t,e){for(var n in W(t,e,"__shady_native_"),e)Io(n)}function L(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?Hn[r]||(Hn[r]=o.value):Io(r))}}var $=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),q=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),kn=document.implementation.createHTMLDocument("inert");function Ho(t){for(var e;e=t.__shady_native_firstChild;)t.__shady_native_removeChild(e)}var Un=["firstElementChild","lastElementChild","children","childElementCount"],Bn=["querySelector","querySelectorAll","append","prepend","replaceChildren"],Wn=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}}),Vn=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}}),Gn=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 Xn(t){for(var e in t){var n=t[e];n&&(n.enumerable=!1)}}Xn(Wn),Xn(Vn),Xn(Gn);var ko=y.D||!0===y.J,Uo=ko?function(){}:function(t){var e=R(t);e.Ta||(e.Ta=!0,An(t,Gn))},Bo=ko?function(){}:function(t){var e=R(t);e.Sa||(e.Sa=!0,An(t,Wn),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!y.J||An(t,Vn))},Gt="__eventWrappers"+Date.now(),Yn=function(){var t=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return t?function(e){return t.get.call(e)}:null}(),Bl=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 Wo(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:Bl?t:e}}var Wl={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},Vo={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Go(t){return t instanceof Node?t.__shady_getRootNode():t}function se(t,e){var n=[],r=t;for(t=Go(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 Zn(t,e){if(!k)return t;t=se(t,!0);for(var r,i,n=0,o=void 0,s=void 0;n<e.length;n++)if((i=Go(r=e[n]))!==o&&(s=t.indexOf(i),o=i),!k(i)||-1<s)return r}var $n={get composed(){return void 0===this.__composed&&(Yn?this.__composed="focusin"===this.type||"focusout"===this.type||Yn(this):!1!==this.isTrusted&&(this.__composed=Wl[this.type])),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=se(this.__target,this.composed)),this.__composedPath},get target(){return Zn(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=se(this.__relatedTarget,!0)),Zn(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}},Xo=y.D&&Object.getOwnPropertyDescriptor(Event.prototype,"eventPhase");function qn(t){function e(n,r){return(n=new t(n,r)).__composed=r&&!!r.composed,n}return e.__proto__=t,e.prototype=t.prototype,e}Xo&&(Object.defineProperty($n,"eventPhase",{get:function(){return this.currentTarget===this.target?Event.AT_TARGET:this.__shady_native_eventPhase},enumerable:!0,configurable:!0}),Object.defineProperty($n,"__shady_native_eventPhase",Xo));var Yo={focus:!0,blur:!0};function Zo(t){return t.__target!==t.target||t.__relatedTarget!==t.relatedTarget}function $o(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&(!Zo(t)||t.target!==t.relatedTarget)&&(o.call(e,t),!t.__immediatePropagationStopped);r++);}var qo=new Event("e").hasOwnProperty("currentTarget");function Ko(t){var e=(t=qo?Object.create(t):t).composedPath(),n=e.map(function(h){return Zn(h,e)}),r=t.bubbles,o=Object.getOwnPropertyDescriptor(t,"currentTarget");Object.defineProperty(t,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return a}});var i=Event.CAPTURING_PHASE,s=Object.getOwnPropertyDescriptor(t,"eventPhase");Object.defineProperty(t,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i}});try{for(var l=e.length-1;0<=l;l--){var a=e[l];if(i=a===n[l]?Event.AT_TARGET:Event.CAPTURING_PHASE,$o(t,a,"capture"),t.ua)return}for(l=0;l<e.length;l++){var u=(a=e[l])===n[l];if((u||r)&&(i=u?Event.AT_TARGET:Event.BUBBLING_PHASE,$o(t,a,"bubble"),t.ua))break}}finally{qo||(o?Object.defineProperty(t,"currentTarget",o):delete t.currentTarget,s?Object.defineProperty(t,"eventPhase",s):delete t.eventPhase)}}function Qo(t,e,n,r){for(var o=0;o<t.length;o++){var i=t[o];if(e===i.node&&n===i.type&&r===i.capture)return o}return-1}function zo(t){return oe(),!y.ha&&this instanceof Node&&!Do(document,this)?(t.__target||zn(t,this),Ko(t)):this.__shady_native_dispatchEvent(t)}function Kn(t,e,n){var r=this,o=Wo(n),i=o.capture,s=o.once,l=o.Pa;if(o=o.Na,e){var a=typeof e;if(("function"===a||"object"===a)&&("object"!==a||e.handleEvent&&"function"==typeof e.handleEvent)){if(Vo[t])return this.__shady_native_addEventListener(t,e,o);var u=l||this;if(l=e[Gt]){if(-1<Qo(l,u,t,i))return}else e[Gt]=[];l=function(h){if(s&&r.__shady_removeEventListener(t,e,n),h.__target||zn(h),u!==r){var f=Object.getOwnPropertyDescriptor(h,"currentTarget");Object.defineProperty(h,"currentTarget",{get:function(){return u},configurable:!0});var x=Object.getOwnPropertyDescriptor(h,"eventPhase");Object.defineProperty(h,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return i?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}if(h.__previousCurrentTarget=h.currentTarget,(!k(u)&&"slot"!==u.localName||-1!=h.composedPath().indexOf(u))&&(h.composed||-1<h.composedPath().indexOf(u)))if(Zo(h)&&h.target===h.relatedTarget)h.eventPhase===Event.BUBBLING_PHASE&&h.stopImmediatePropagation();else if(h.eventPhase===Event.CAPTURING_PHASE||h.bubbles||h.target===u||u instanceof Window){var S="function"===a?e.call(u,h):e.handleEvent&&e.handleEvent(h);return u!==r&&(f?(Object.defineProperty(h,"currentTarget",f),f=null):delete h.currentTarget,x?(Object.defineProperty(h,"eventPhase",x),x=null):delete h.eventPhase),S}},e[Gt].push({node:u,type:t,capture:i,ub:l}),this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][i?"capture":"bubble"].push(l),Yo[t]||this.__shady_native_addEventListener(t,l,o)}}}function Qn(t,e,n){if(e){var r=Wo(n);n=r.capture;var o=r.Pa;if(r=r.Na,Vo[t])return this.__shady_native_removeEventListener(t,e,r);var i=o||this;o=void 0;var s=null;try{s=e[Gt]}catch{}s&&-1<(i=Qo(s,i,t,n))&&(o=s.splice(i,1)[0].ub,s.length||(e[Gt]=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 Jo=F($n);function zn(t,e){if(t.__target=e=void 0===e?t.target:e,t.__relatedTarget=t.relatedTarget,y.D){if(!(e=Object.getPrototypeOf(t)).hasOwnProperty("__shady_patchedProto")){var n=Object.create(e);n.__shady_sourceProto=e,W(n,Jo),e.__shady_patchedProto=n}t.__proto__=e.__shady_patchedProto}else W(t,Jo)}var Xl=qn(Event),Yl=qn(CustomEvent),Zl=qn(MouseEvent),ti=Object.getOwnPropertyNames(Element.prototype).filter(function(t){return"on"===t.substring(0,2)}),ei=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(t){return"on"===t.substring(0,2)});function ni(t){return{set:function(e){var n=R(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=N(this);return e&&e.T&&e.T[t]},configurable:!0}}function Xt(t,e){return{index:t,ia:[],pa:e}}function ql(t,e,n,r){var o=0,i=0,s=0,l=0,a=Math.min(e-o,r-i);if(0==o&&0==i)t:{for(s=0;s<a;s++)if(t[s]!==n[s])break t;s=a}if(e==t.length&&r==n.length){l=t.length;for(var u=n.length,h=0;h<a-s&&Kl(t[--l],n[--u]);)h++;l=h}if(i+=s,r-=l,(e-=l)-(o+=s)==0&&r-i==0)return[];if(o==e){for(e=Xt(o,0);i<r;)e.ia.push(n[i++]);return[e]}if(i==r)return[Xt(o,e-o)];for(r=r-(s=i)+1,l=e-(a=o)+1,e=Array(r),u=0;u<r;u++)e[u]=Array(l),e[u][0]=u;for(u=0;u<l;u++)e[0][u]=u;for(u=1;u<r;u++)for(h=1;h<l;h++)if(t[a+h-1]===n[s+u-1])e[u][h]=e[u-1][h-1];else{var f=e[u-1][h]+1,x=e[u][h-1]+1;e[u][h]=f<x?f:x}for(r=e[a=e.length-1][s=e[0].length-1],t=[];0<a||0<s;)0==a?(t.push(2),s--):0==s?(t.push(3),a--):(l=e[a-1][s-1],(f=(u=e[a-1][s])<(h=e[a][s-1])?u<l?u:l:h<l?h:l)==l?(l==r?t.push(0):(t.push(1),r=l),a--,s--):f==u?(t.push(3),a--,r=u):(t.push(2),s--,r=h));for(t.reverse(),e=void 0,a=[],s=0;s<t.length;s++)switch(t[s]){case 0:e&&(a.push(e),e=void 0),o++,i++;break;case 1:e||(e=Xt(o,0)),e.pa++,o++,e.ia.push(n[i]),i++;break;case 2:e||(e=Xt(o,0)),e.pa++,o++;break;case 3:e||(e=Xt(o,0)),e.ia.push(n[i]),i++}return e&&a.push(e),a}function Kl(t,e){return t===e}var Jn=F({dispatchEvent:zo,addEventListener:Kn,removeEventListener:Qn}),tr=null;function mt(){return tr||(tr=window.ShadyCSS&&window.ShadyCSS.ScopingShim),tr||null}function er(t,e,n){var r=mt();return!(!r||"class"!==e||(r.setElementClass(t,n),0))}function ri(t,e){var n=mt();n&&n.unscopeNode(t,e)}function oi(t,e){var n=mt();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&&oi(t,e);return n}return t.nodeType!==Node.ELEMENT_NODE||n.currentScopeForNode(t)===e}function le(t){if(t.nodeType!==Node.ELEMENT_NODE)return"";var e=mt();return e?e.currentScopeForNode(t):""}function nr(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&&nr(t,e)}var rr=window.document,or=y.ha,ii=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),si=ii&&ii.get;function ir(t){for(var e;e=t.__shady_firstChild;)t.__shady_removeChild(e)}function li(t){var e=N(t);if(e&&void 0!==e.ta)for(e=t.__shady_firstChild;e;e=e.__shady_nextSibling)li(e);(t=N(t))&&(t.ta=void 0)}function ai(t){var e=t;if(t&&"slot"===t.localName){var n=N(t);(n=n&&n.aa)&&(e=n.length?n[0]:ai(t.__shady_nextSibling))}return e}function ui(t,e,n){if(t=(t=N(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 Al(t){t.g||(t.g=!0,bo(function(){t.flush()}))}(t)}}var ae=F({get parentNode(){var t=N(this);return void 0!==(t=t&&t.parentNode)?t:this.__shady_native_parentNode},get firstChild(){var t=N(this);return void 0!==(t=t&&t.firstChild)?t:this.__shady_native_firstChild},get lastChild(){var t=N(this);return void 0!==(t=t&&t.lastChild)?t:this.__shady_native_lastChild},get nextSibling(){var t=N(this);return void 0!==(t=t&&t.nextSibling)?t:this.__shady_native_nextSibling},get previousSibling(){var t=N(this);return void 0!==(t=t&&t.previousSibling)?t:this.__shady_native_previousSibling},get childNodes(){if(vt(this)){var t=N(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(r){return n[r]},n},get parentElement(){var t=N(this);return(t=t&&t.parentNode)&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:this.__shady_native_parentElement},get isConnected(){if(si&&si.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;var t=this.ownerDocument;if(null===t||Do(t,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.__shady_parentNode||(k(t)?t.host:void 0);return!!(t&&t instanceof Document)},get textContent(){if(vt(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((typeof t>"u"||null===t)&&(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!vt(this)&&y.D){var e=this.__shady_firstChild;(e!=this.__shady_lastChild||e&&e.nodeType!=Node.TEXT_NODE)&&ir(this),this.__shady_native_textContent=t}else ir(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!==rr&&t.ownerDocument!==rr)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=N(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;ui(this,t);var r=[],o=(n=bt(this))?n.host.localName:le(this),i=t.__shady_parentNode;if(i){var s=le(t),l=!!n||!bt(t)||or&&void 0!==this.__noInsertionPoint;i.__shady_removeChild(t,l)}i=!0;var a=(!or||void 0===t.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!oi(t,o),u=n&&!t.__noInsertionPoint&&(!or||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE);return(u||a)&&(a&&(s=s||le(t)),nr(t,function(h){if(u&&"slot"===h.localName&&r.push(h),a){var f=s;mt()&&(f&&ri(h,f),(f=mt())&&f.scopeNode(h,o))}})),r.length&&(xi(n),n.i.push.apply(n.i,G(r)),ut(n)),vt(this)&&(function la(t,e,n){de(e,2);var r=R(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)wi(t,e,r,n);else wi(t,e,r,n)}(t,this,e),(l=N(this)).root?(i=!1,bn(this)&&ut(l.root)):n&&"slot"===this.localName&&(i=!1,ut(n))),i?(n=k(this)?this.host:this,e?(e=ai(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||!k(t))return this.__shady_insertBefore(t)},removeChild:function(t,e){if(e=void 0!==e&&e,this.ownerDocument!==rr)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);ui(this,null,t);var n=bt(t),r=n&&function ha(t,e){if(t.g){me(t);var r,n=t.h;for(r in n)for(var o=n[r],i=0;i<o.length;i++){var s=o[i];if(xo(e,s)){o.splice(i,1);var l=t.g.indexOf(s);if(0<=l&&(t.g.splice(l,1),(l=N(s.__shady_parentNode))&&l.ka&&l.ka--),i--,l=(s=N(s)).aa)for(var a=0;a<l.length;a++){var u=l[a],h=u.__shady_native_parentNode;h&&h.__shady_native_removeChild(u)}s.aa=[],s.assignedNodes=[],l=!0}}return l}}(n,t),o=N(this);if(vt(this)&&(function aa(t,e){var n=R(t);t===(e=R(e)).firstChild&&(e.firstChild=n.nextSibling),t===e.lastChild&&(e.lastChild=n.previousSibling);var r=n.nextSibling;(t=n.previousSibling)&&(R(t).nextSibling=r),r&&(R(r).previousSibling=t),n.parentNode=n.previousSibling=n.nextSibling=void 0,void 0!==e.childNodes&&(e.childNodes=null)}(t,this),bn(this))){ut(o.root);var i=!0}if(mt()&&!e&&n&&t.nodeType!==Node.TEXT_NODE){var s=le(t);nr(t,function(l){ri(l,s)})}return li(t),n&&((e="slot"===this.localName)&&(i=!0),(r||e)&&ut(n)),i||(i=k(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=R(this),n=e.ta;return void 0===n&&(k(this)?e.ta=n=this:(n=(n=this.__shady_parentNode)?n.__shady_getRootNode(t):this,documen