var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]0){c.o=l}{c.l=a}{c.v=f}return c}));var F=function(r,e){var n={p:0,h:r,i:e,$:null,o:null};{n.u=null}{n.l=null}{n.v=null}return n};var M=r("H",{});var P=function(r){return r&&r.h===M};var U={forEach:function(r,e){return r.map(E).forEach(e)},map:function(r,e){return r.map(E).map(e).map(N)}};var E=function(r){return{vattrs:r.u,vchildren:r.o,vkey:r.l,vname:r.v,vtag:r.h,vtext:r.i}};var N=function(r){if(typeof r.vtag==="function"){var e=Object.assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return D.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=F(r.vtag,r.vtext);n.u=r.vattrs;n.o=r.vchildren;n.l=r.vkey;n.v=r.vname;return n};var W=function(r,e,n,t){var i=h("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=a?[]:null;var l=t.m=F(e,null);if(!oe.S){B(ue.body,oe.S=new Map)}r[g]=n;r.removeAttribute(g);I(l,f,u,o,r,r,n);f.map((function(r){var n=r._+"."+r.k;var t=oe.S.get(n);var i=r.$;if(t&&ve&&t["s-en"]===""){t.parentNode.insertBefore(i,t.nextSibling)}if(!a){i["s-hn"]=e;if(t){i["s-ol"]=t;i["s-ol"]["s-nr"]=i}}oe.S.delete(n)}));if(a){o.map((function(r){if(r){a.appendChild(r)}}))}i()};var I=function(r,e,n,t,i,a,f){var u;var o;var l;var v;if(a.nodeType===1){u=a.getAttribute(_);if(u){o=u.split(".");if(o[0]===f||o[0]==="0"){l={p:0,_:o[0],k:o[1],j:o[2],C:o[3],h:a.tagName.toLowerCase(),$:a,u:null,o:null,l:null,v:null,i:null};e.push(l);a.removeAttribute(_);if(!r.o){r.o=[]}r.o[l.C]=l;r=l;if(t&&l.j==="0"){t[l.C]=l.$}}}for(v=a.childNodes.length-1;v>=0;v--){I(r,e,n,t,i,a.childNodes[v],f)}if(a.shadowRoot){for(v=a.shadowRoot.childNodes.length-1;v>=0;v--){I(r,e,n,t,i,a.shadowRoot.childNodes[v],f)}}}else if(a.nodeType===8){o=a.nodeValue.split(".");if(o[1]===f||o[1]==="0"){u=o[0];l={p:0,_:o[1],k:o[2],j:o[3],C:o[4],$:a,u:null,o:null,l:null,v:null,h:null,i:null};if(u===w){l.$=a.nextSibling;if(l.$&&l.$.nodeType===3){l.i=l.$.textContent;e.push(l);a.remove();if(!r.o){r.o=[]}r.o[l.C]=l;if(t&&l.j==="0"){t[l.C]=l.$}}}else if(l._===f){if(u===b){l.h="slot";if(o[5]){a["s-sn"]=l.v=o[5]}else{a["s-sn"]=""}a["s-sr"]=true;if(t){l.$=ue.createElement(l.h);if(l.v){l.$.setAttribute("name",l.v)}a.parentNode.insertBefore(l.$,a);a.remove();if(l.j==="0"){t[l.C]=l.$}}n.push(l);if(!r.o){r.o=[]}r.o[l.C]=l}else if(u===$){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.h==="style"){var s=F(null,a.textContent);s.$=a;s.C="0";r.o=[s]}};var B=function(r,e){if(r.nodeType===1){var n=0;for(;n=0;a--){var f=n[a];if(f["s-hn"]!==u&&f["s-ol"]){hr(f).insertBefore(f,pr(f));f["s-ol"].remove();f["s-ol"]=undefined;f["s-sh"]=undefined;v=true}if(e){lr(f,e)}}oe.p&=~1};var vr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var o;if(f.shadowRoot&&f.tagName===u){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){o=or(null,n,i,r);if(o){t[i].$=o;f.insertBefore(o,pr(e))}}}};var sr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.$;gr(i);if(a){{l=true;if(a["s-ol"]){a["s-ol"].remove()}else{lr(a,true)}}a.remove()}}}};var cr=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var p=t[c];var h;var y;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(p==null){p=t[--c]}else if(dr(v,d,i)){yr(v,d,i);v=e[++a];d=t[++f]}else if(dr(s,p,i)){yr(s,p,i);s=e[--l];p=t[--c]}else if(dr(v,p,i)){if(v.h==="slot"||p.h==="slot"){lr(v.$.parentNode,false)}yr(v,p,i);r.insertBefore(v.$,s.$.nextSibling);v=e[++a];p=t[--c]}else if(dr(s,d,i)){if(v.h==="slot"||p.h==="slot"){lr(s.$.parentNode,false)}yr(s,d,i);r.insertBefore(s.$,v.$);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].l!==null&&e[o].l===d.l){u=o;break}}}if(u>=0){y=e[u];if(y.h!==d.h){h=or(e&&e[f],n,u,r)}else{yr(y,d,i);e[u]=undefined;h=y.$}d=t[++f]}else{h=or(e&&e[f],n,f,r);d=t[++f]}if(h){{hr(v.$).insertBefore(h,pr(v.$))}}}}if(a>l){vr(r,t[c+1]==null?null:t[c+1].$,n,t,f,c)}else if(f>c){sr(e,a,l)}};var dr=function(r,e,n){if(n===void 0){n=false}if(r.h===e.h){if(r.h==="slot"){return r.v===e.v}if(!n){return r.l===e.l}return true}return false};var pr=function(r){return r&&r["s-ol"]||r};var hr=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var yr=function(r,e,n){if(n===void 0){n=false}var t=e.$=r.$;var i=r.o;var a=e.o;var f=e.h;var u=e.i;var l;if(u===null){{s=f==="svg"?true:f==="foreignObject"?false:s}{if(f==="slot"&&!o);else{ur(r,e,s)}}if(i!==null&&a!==null){cr(t,i,e,a,n)}else if(a!==null){if(r.i!==null){t.textContent=""}vr(t,null,e,a,0,a.length-1)}else if(i!==null){sr(i,0,i.length-1)}if(s&&f==="svg"){s=false}}else if(l=t["s-cr"]){l.parentNode.textContent=u}else if(r.i!==u){t.data=u}};var $r=function(r){var e=r.childNodes;for(var n=0,t=e;n=0;t--){v()}}if(u.nodeType===1){br(u)}}};var wr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var gr=function(r){{r.u&&r.u.ref&&r.u.ref(null);r.o&&r.o.map(gr)}};var Sr=function(r,e,n){if(n===void 0){n=false}var t,i,s,c;var d=r.$hostElement$;var p=r.T;var h=r.m||F(null,null);var y=P(e)?e:D(null,null,e);u=d.tagName;if(p.F){y.u=y.u||{};p.F.map((function(r){var e=r[0],n=r[1];return y.u[n]=d[e]}))}if(n&&y.u){for(var $=0,m=Object.keys(y.u);$0){if(y){l.textContent+=x}{l.textContent+=i+k}if(l.innerHTML.length){l.setAttribute("data-styles","");var $=(n=oe.A)!==null&&n!==void 0?n:R(ue);if($!=null){l.setAttribute("nonce",$)}u.insertBefore(l,o?o.nextSibling:u.firstChild)}}d=false;if(v.length){v.map((function(r){return r.connectedCallback()}))}else{{oe.jmp((function(){return c=setTimeout(Rr,30)}))}}t()}));var Qr=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Gr(r,t);var u=qr(e,a);var o=Kr(t);oe.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return oe.rel(f,i,u,o)}))}))}};var qr=function(r,e){return function(n){try{{if(r.p&256){r.U[e](n)}else{(r.N=r.N||[]).push([e,n])}}}catch(r){ee(r)}}};var Gr=function(r,e){if(e&4)return ue;if(e&8)return fe;if(e&16)return ue.body;return r};var Kr=function(r){return se?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Vr=r("s",(function(r){return oe.A=r}));var Xr=new WeakMap;var Jr=function(r){return Xr.get(r)};var Yr=r("r",(function(r,e){return Xr.set(e.U=r,e)}));var Zr=function(r,e){var n={p:0,$hostElement$:r,T:e,B:new Map};{n.G=new Promise((function(r){return n.I=r}))}{n.X=new Promise((function(r){return n.W=r}));r["s-p"]=[];r["s-rc"]=[]}Qr(r,n,e.V);return Xr.set(r,n)};var re=function(r,e){return e in r};var ee=function(r,e){return(0,console.error)(r,e)};var ne=new Map;var te=function(r,n,t){var i=r.L.replace(/-/g,"_");var a=r.K;var f=ne.get(a);if(f){return f[i]} /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{ne.set(a,r)}return r[i]}),ee)};var ie=new Map;var ae=[];var fe=typeof window!=="undefined"?window:{};var ue=fe.document||{head:{}};var oe={p:0,t:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var le=r("a",(function(r){Object.assign(oe,r)}));var ve=true;var se=function(){var r=false;try{ue.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var ce=r("p",(function(r){return Promise.resolve(r)}));var de=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var pe=[];var he=[];var ye=function(r,e){return function(n){r.push(n);if(!c){c=true;if(e&&oe.p&4){be(me)}else{oe.raf(me)}}}};var $e=function(r){for(var e=0;e0){oe.raf(me)}}};var be=function(r){return ce().then(r)};var we=r("e",ye(pe,false));var ge=r("w",ye(he,true))}}}));