let e,t,n,l=!1,o=!1,s=!1,r=!1,i=!1;const c="undefined"!=typeof window?window:{},f=c.document||{head:{}},a={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},u=e=>Promise.resolve(e),$=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),d=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=m(e,n),r=h(t,o),i=p(n);a.ael(s,l,r,i),(t.o=t.o||[]).push((()=>a.rel(s,l,r,i)))}))},h=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){ue(e)}},m=(e,t)=>4&t?f:e,p=e=>0!=(2&e),y=new WeakMap,b=e=>"sc-"+e.$,w={},g=e=>"object"==(e=typeof e)||"function"===e,v=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1,i=[];const c=t=>{for(let n=0;ne[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,i,k);const f=j(e,null);return f.m=t,i.length>0&&(f.p=i),f.g=o,f},j=(e,t)=>({t:0,v:e,h:t,j:null,p:null,m:null,g:null}),S={},k={forEach:(e,t)=>e.map(O).forEach(t),map:(e,t)=>e.map(O).map(t).map(M)},O=e=>({vattrs:e.m,vchildren:e.p,vkey:e.S,vname:e.g,vtag:e.v,vtext:e.h}),M=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),v(e.vtag,t,...e.vchildren||[])}const t=j(e.vtag,e.vtext);return t.m=e.vattrs,t.p=e.vchildren,t.S=e.vkey,t.g=e.vname,t},C=(e,t,n,l,o,s)=>{if(n!==l){let r=ae(e,t),i=t.toLowerCase();if("class"===t){const t=e.classList,o=x(n),s=x(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const i=g(l);if((r||i&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||o)&&!i&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):ae(c,i)?i.slice(2):i[2]+t.slice(3),n&&a.rel(e,t,n,!1),l&&a.ael(e,t,l,!1)}},R=/\s/,x=e=>e?e.split(R):[],T=(e,t,n,l)=>{const o=11===t.j.nodeType&&t.j.host?t.j.host:t.j,s=e&&e.m||w,r=t.m||w;for(l in s)l in r||C(o,l,s[l],void 0,n,t.t);for(l in r)C(o,l,s[l],r[l],n,t.t)},E=(o,i,c,a)=>{let u,$,d,h=i.p[c],m=0;if(l||(s=!0,"slot"===h.v&&(e&&a.classList.add(e+"-s"),h.t|=h.p?2:1)),null!==h.h)u=h.j=f.createTextNode(h.h);else if(1&h.t)u=h.j=f.createTextNode("");else{if(r||(r="svg"===h.v),u=h.j=f.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&h.t?"slot-fb":h.v),r&&"foreignObject"===h.v&&(r=!1),T(null,h,r),null!=e&&u["s-si"]!==e&&u.classList.add(u["s-si"]=e),h.p)for(m=0;m{a.t|=1;const l=e.childNodes;for(let e=l.length-1;e>=0;e--){const o=l[e];o["s-hn"]!==n&&o["s-ol"]&&(A(o).insertBefore(o,W(o)),o["s-ol"].remove(),o["s-ol"]=void 0,s=!0),t&&L(o,t)}a.t&=-2},N=(e,t,l,o,s,r)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===n&&(c=c.shadowRoot);s<=r;++s)o[s]&&(i=E(null,l,s,e),i&&(o[s].j=i,c.insertBefore(i,W(t))))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,_(l),o=!0,s["s-ol"]?s["s-ol"].remove():L(s,!0),s.remove())},F=(e,t)=>e.v===t.v&&("slot"!==e.v||e.g===t.g),W=e=>e&&e["s-ol"]||e,A=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,D=(e,t)=>{const n=t.j=e.j,l=e.p,o=t.p,s=t.v,i=t.h;let c;null===i?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||T(e,t,r),null!==l&&null!==o?((e,t,n,l)=>{let o,s=0,r=0,i=t.length-1,c=t[0],f=t[i],a=l.length-1,u=l[0],$=l[a];for(;s<=i&&r<=a;)null==c?c=t[++s]:null==f?f=t[--i]:null==u?u=l[++r]:null==$?$=l[--a]:F(c,u)?(D(c,u),c=t[++s],u=l[++r]):F(f,$)?(D(f,$),f=t[--i],$=l[--a]):F(c,$)?("slot"!==c.v&&"slot"!==$.v||L(c.j.parentNode,!1),D(c,$),e.insertBefore(c.j,f.j.nextSibling),c=t[++s],$=l[--a]):F(f,u)?("slot"!==c.v&&"slot"!==$.v||L(f.j.parentNode,!1),D(f,u),e.insertBefore(f.j,c.j),f=t[--i],u=l[++r]):(o=E(t&&t[r],n,r,e),u=l[++r],o&&A(c.j).insertBefore(o,W(c.j)));s>i?N(e,null==l[a+1]?null:l[a+1].j,n,l,r,a):r>a&&P(t,s,i)})(n,l,t,o):null!==o?(null!==e.h&&(n.textContent=""),N(n,null,t,o,0,o.length-1)):null!==l&&P(l,0,l.length-1),r&&"svg"===s&&(r=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:e.h!==i&&(n.data=i)},H=e=>{let t,n,l,o,s,r,i=e.childNodes;for(n=0,l=i.length;n{let t,n,l,s,r,i,c=0,f=e.childNodes,a=f.length;for(;c=0;i--)n=l[i],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(V(n,s)?(r=U.find((e=>e.k===n)),o=!0,n["s-sn"]=n["s-sn"]||s,r?r.O=t:U.push({O:t,k:n}),n["s-sr"]&&U.map((e=>{V(e.k,n["s-sn"])&&(r=U.find((e=>e.k===n)),r&&!e.O&&(e.O=r.O))}))):U.some((e=>e.k===n))||U.push({k:n}));1===t.nodeType&&q(t)}},V=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_=e=>{e.m&&e.m.ref&&e.m.ref(null),e.p&&e.p.map(_)},z=e=>ie(e).M,B=(e,t,n)=>{const l=z(e);return{emit:e=>G(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const l=a.ce(t,n);return e.dispatchEvent(l),l},I=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},J=(e,t)=>{if(e.t|=16,!(4&e.t))return I(e,e.R),ve((()=>K(e,t)));e.t|=512},K=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>ee(n,e,t))),e.u=null),l=ee(n,"componentWillLoad")),te(l,(()=>Q(e,n,t)))},Q=async(e,t,n)=>{const l=e.M,o=l["s-rc"];n&&(e=>{const t=e.T,n=e.M,l=t.t,o=((e,t)=>{let n=b(t),l=he.get(n);if(e=11===e.nodeType?e:f,l)if("string"==typeof l){let t,o=y.get(e=e.head||e);o||y.set(e,o=new Set),o.has(n)||(t=f.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),o&&o.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);X(e,t),o&&(o.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>Y(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},X=(r,i)=>{try{i=i.render(),r.t&=-17,r.t|=2,((r,i)=>{const c=r.M,u=r.T,$=r.L||j(null,null),d=(e=>e&&e.v===S)(i)?i:v(null,null,i);if(n=c.tagName,u.N&&(d.m=d.m||{},u.N.map((([e,t])=>d.m[t]=c[e]))),d.v=null,d.t|=4,r.L=d,d.j=$.j=c.shadowRoot||c,e=c["s-sc"],t=c["s-cr"],l=0!=(1&u.t),o=!1,D($,d),a.t|=1,s){let e,t,n,l,o,s;q(d.j);let r=0;for(;r{const t=e.M,n=e.i,l=e.R;ee(n,"componentDidRender"),64&e.t||(e.t|=64,ne(t),ee(n,"componentDidLoad"),e.P(t),l||Z()),e.C&&(e.C(),e.C=void 0),512&e.t&&ge((()=>J(e,!1))),e.t&=-517},Z=()=>{ne(f.documentElement),ge((()=>G(c,"appload",{detail:{namespace:"tm-global-elements"}})))},ee=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ue(e)}},te=(e,t)=>e&&e.then?e.then(t):t(),ne=e=>e.classList.add("hydrated"),le=(e,t,n)=>{if(t.F){e.watchers&&(t.W=e.watchers);const l=Object.entries(t.F),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,e,{get(){return((e,t)=>ie(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=ie(e),s=o.M,r=o.A.get(t),i=o.t,c=o.i;if(n=((e,t)=>null==e||g(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.F[t][0]),(!(8&i)||void 0===r)&&n!==r&&(!Number.isNaN(r)||!Number.isNaN(n))&&(o.A.set(t,n),c)){if(l.W&&128&i){const e=l.W[t];e&&e.map((e=>{try{c[e](n,r,t)}catch(e){ue(e,s)}}))}2==(18&i)&&J(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;o.attributeChangedCallback=function(e,t,l){a.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(o.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const o=l[1]||e;return n.set(o,e),512&l[0]&&t.N.push([e,o]),o}))}}return e},oe=(e,t={})=>{const n=[],l=t.exclude||[],o=c.customElements,s=f.head,r=s.querySelector("meta[charset]"),i=f.createElement("style"),u=[];let h,m=!0;Object.assign(a,t),a.l=new URL(t.resourcesUrl||"./",f.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],$:t[1],F:t[2],D:t[3]};s.F=t[2],s.D=t[3],s.N=[],s.W={};const r=s.$,i=class extends HTMLElement{constructor(e){super(e),fe(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){h&&(clearTimeout(h),h=null),m?u.push(this):a.jmp((()=>(e=>{if(0==(1&a.t)){const t=ie(e),n=t.T,l=()=>{};if(1&t.t)d(e,t,n.D);else{t.t|=1,12&n.t&&(e=>{const t=e["s-cr"]=f.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.R=n);break}}n.F&&Object.entries(n.F).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.t)){{if(t.t|=32,(o=de(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.W=o.watchers,le(o,n,2),o.isProxied=!0);const e=()=>{};t.t|=8;try{new o(t)}catch(e){ue(e)}t.t&=-9,t.t|=128,e()}if(o.style){let e=o.style;const t=b(n);if(!he.has(t)){const l=()=>{};((e,t,n)=>{let l=he.get(e);$&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,he.set(e,l)})(t,e,!!(1&n.t)),l()}}}const s=t.R,r=()=>J(t,!0);s&&s["s-rc"]?s["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){a.jmp((()=>(()=>{if(0==(1&a.t)){const e=ie(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return ie(this).H}};s.U=e[0],l.includes(r)||o.get(r)||(n.push(r),o.define(r,le(i,s,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),s.insertBefore(i,r?r.nextSibling:s.firstChild),m=!1,u.length?u.map((e=>e.connectedCallback())):a.jmp((()=>h=setTimeout(Z,30)))},se=(e,t)=>t,re=new WeakMap,ie=e=>re.get(e),ce=(e,t)=>re.set(t.i=e,t),fe=(e,t)=>{const n={t:0,M:e,T:t,A:new Map};return n.H=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],d(e,n,t.D),re.set(e,n)},ae=(e,t)=>t in e,ue=(e,t)=>(0,console.error)(e,t),$e=new Map,de=e=>{const t=e.$.replace(/-/g,"_"),n=e.U,l=$e.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>($e.set(n,e),e[t])),ue)},he=new Map,me=[],pe=[],ye=(e,t)=>n=>{e.push(n),i||(i=!0,t&&4&a.t?ge(we):a.raf(we))},be=e=>{for(let t=0;t{be(me),be(pe),(i=me.length>0)&&a.raf(we)},ge=e=>u().then(e),ve=ye(pe,!0);export{se as F,S as H,oe as b,B as c,z as g,v as h,u as p,ce as r}