UNPKG

@revolist/revogrid-column-select

Version:

Select column type for RevoGrid system based on revo-dropdown

2 lines 84 kB
/*! For license information please see revo-common-select.mjs.LICENSE.txt */ var e={162(e){function t(e){return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=162,e.exports=t},860(e,t,o){o.d(t,{A:()=>l});var n=o(601),s=o.n(n),r=o(314),i=o.n(r)()(s());i.push([e.id,"revogr-edit revo-dropdown {\n display: flex;\n width: 100%;\n height: 100%;\n font: inherit;\n}\n\nrevogr-edit revo-dropdown .rv-dr-root {\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 0 32px 0 10px;\n border-radius: 0;\n cursor: pointer;\n}\n\nrevogr-edit revo-dropdown input.filter-box {\n min-width: 0;\n height: 100%;\n padding: 0;\n font: inherit;\n line-height: normal;\n opacity: 1;\n -webkit-text-fill-color: currentColor;\n}\n\nrevogr-edit revo-dropdown label,\nrevogr-edit revo-dropdown fieldset {\n display: none;\n}\n\nrevogr-edit revo-dropdown .actions {\n top: 50%;\n right: 10px;\n transform: translateY(-50%);\n}\n",""]);const l=i},314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,n,s,r){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(n)for(var l=0;l<this.length;l++){var a=this[l][0];null!=a&&(i[a]=!0)}for(var d=0;d<e.length;d++){var c=[].concat(e[d]);n&&i[c[0]]||(void 0!==r&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=r),o&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=o):c[2]=o),s&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=s):c[4]="".concat(s)),t.push(c))}},t}},601(e){e.exports=function(e){return e[1]}},72(e){var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var r={},i=[],l=0;l<e.length;l++){var a=e[l],d=n.base?a[0]+n.base:a[0],c=r[d]||0,u="".concat(d," ").concat(c);r[d]=c+1;var h=o(u),p={css:a[1],media:a[2],sourceMap:a[3],supports:a[4],layer:a[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var $=s(p,n);n.byIndex=l,t.splice(l,0,{identifier:u,updater:$,references:1})}i.push(u)}return i}function s(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,s){var r=n(e=e||[],s=s||{});return function(e){e=e||[];for(var i=0;i<r.length;i++){var l=o(r[i]);t[l].references--}for(var a=n(e,s),d=0;d<r.length;d++){var c=o(r[d]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}r=a}}},659(e){var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56(e,t,o){e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},825(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,s&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var r=o.sourceMap;r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var r=t[n]={id:n,exports:{}};return e[n](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nc=void 0;var n=o(72),s=o.n(n),r=o(825),i=o.n(r),l=o(659),a=o.n(l),d=o(56),c=o.n(d),u=o(540),h=o.n(u),p=o(113),$=o.n(p),f=o(860),m={};function g(e,t){return Object.assign(Object.assign({},e),{additionalData:t})}function v(e,t){const o=null==e?void 0:e.source;return o?"function"==typeof o?o(t):o:[]}function b(e,t){return t.valueKey&&"object"==typeof e?e[t.valueKey]:e}function y(e,t){return t.labelKey&&"object"==typeof e?e[t.labelKey]:e}function w(e,t,o){return e.find(e=>b(e,o)==t)}function x(e,t,o){var n,s,r;const i=w(t,e,o);return i?y(i,o):!t.length&&o.labelKey&&null!==(r=null===(s=null===(n=o.sourceLookup)||void 0===n?void 0:n[e])||void 0===s?void 0:s[o.labelKey])&&void 0!==r?r:e}m.styleTagTransform=$(),m.setAttributes=c(),m.insert=a().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=h(),s()(f.A,m),f.A&&f.A.locals&&f.A.locals;const S={width:"0",height:"0",borderStyle:"solid",borderWidth:"5px 4px 0 4px",borderColor:"transparent",borderTopColor:"initial",display:"inline-block",verticalAlign:"middle",opacity:".4"},N=(e,t,o)=>{const{model:n,prop:s,column:r}=t;let i=n[s];return i=x(i,v(r,g(t,o)),r),[e("div",{class:{"cell-value-wrapper":!0}},[i]),e("span",{class:{"arrow-down":!0},onClick:e=>{var t;null===(t=e.target)||void 0===t||t.dispatchEvent(new MouseEvent("dblclick",{bubbles:!0,cancelable:!0,view:window}))}},[e("span",{style:S})])]};class C{constructor(e,t){this.data=e,this.saveCallback=t,this.opened=!1}componentDidRender(){var e,t;!this.opened&&this.element&&(this.opened=!0,null===(t=(e=this.element).doOpen)||void 0===t||t.call(e))}getValue(){var e;return null===(e=this.element)||void 0===e?void 0:e.value}render(e,t){var o,n,s;let r="";this.editCell&&(r=null!==(n=(this.editCell.model||{})[null===(o=this.editCell)||void 0===o?void 0:o.prop])&&void 0!==n?n:"");const i=null===(s=this.data)||void 0===s?void 0:s.column,l=v(i,g(this.editCell||this.data,t));return e("revo-dropdown",Object.assign(Object.assign({},i),{source:l,ref:e=>this.element=e,dataId:null==i?void 0:i.valueKey,dataLabel:null==i?void 0:i.labelKey,autocomplete:!1,autoFocus:!0,maxHeight:"300",value:r,onChanged:({detail:e})=>{var t;const o="Tab"==(null===(t=e.originalEvent)||void 0===t?void 0:t.code);"object"==typeof e.val?this.saveCallback(e.val.value,o):this.saveCallback(e.val,o)}}))}}var _={allRenderFn:!1,element:!0,event:!0,hasRenderFn:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,propChangeCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,devTools:!1,shadowDelegatesFocus:!0,shadowSlotAssignmentManual:!1,initializeNextTick:!1,asyncLoading:!0,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},L="app",R=(e=>(e.Undefined="undefined",e.Null="null",e.String="string",e.Number="number",e.SpecialNumber="number",e.Boolean="boolean",e.BigInt="bigint",e))(R||{}),k=(e=>(e.Array="array",e.Date="date",e.Map="map",e.Object="object",e.RegularExpression="regexp",e.Set="set",e.Channel="channel",e.Symbol="symbol",e))(k||{}),E="type",T="value",I="serialized:";function z(e,t,o){const n="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;e&&e!==n;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var A,O=(e,t)=>{var o;const n=t.$cmpMeta$;Object.entries(null!=(o=n.$members$)?o:{}).map(([o,[n]])=>{if((_.state||_.prop)&&(31&n||32&n)){const n=e[o],s=z(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);s&&Object.defineProperty(e,o,{get(){return s.get.call(this)},set(e){s.set.call(this,e)},configurable:!0,enumerable:!0}),t.$instanceValues$.has(o)?e[o]=t.$instanceValues$.get(o):void 0!==n&&(e[o]=n)}})},D=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},j=(e,t)=>t in e,V=(e,t)=>(0,console.error)(e,t),M=_.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],P=(...e)=>console.error(...M,...e),F=(...e)=>console.warn(...M,...e),H=new Map,B=new Map,W=[],K="s-id",U="sty-id",q="c-id",Y="http://www.w3.org/1999/xlink",X=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],Q="undefined"!=typeof window?window:{},J=Q.HTMLElement||class{},G={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,n)=>e.addEventListener(t,o,n),rel:(e,t,o,n)=>e.removeEventListener(t,o,n),ce:(e,t)=>new CustomEvent(e,t)},Z=_.shadowDom,ee=(()=>{var e;let t=!1;try{null==(e=Q.document)||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(e){}return t})(),te=!!_.constructableCSS&&(()=>{try{return!!Q.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(e){}return!1})(),oe=!!te&&(()=>!!Q.document&&Object.getOwnPropertyDescriptor(Q.document.adoptedStyleSheets,"length").writable)(),ne=0,se=!1,re=[],ie=[],le=[],ae=(e,t)=>o=>{e.push(o),se||(se=!0,t&&4&G.$flags$?he(ue):G.raf(ue))},de=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){V(e)}e.length=0},ce=(e,t)=>{let o=0,n=0;for(;o<e.length&&(n=performance.now())<t;)try{e[o++](n)}catch(e){V(e)}o===e.length?e.length=0:0!==o&&e.splice(0,o)},ue=()=>{if(_.asyncQueue&&ne++,de(re),_.asyncQueue){const e=2==(6&G.$flags$)?performance.now()+14*Math.ceil(.1*ne):1/0;ce(ie,e),ce(le,e),ie.length>0&&(le.push(...ie),ie.length=0),(se=re.length+ie.length+le.length>0)?G.raf(ue):ne=0}else de(ie),(se=re.length>0)&&G.raf(ue)},he=e=>Promise.resolve(void 0).then(e),pe=ae(ie,!0);function $e(e){const t={mode:"open"};_.shadowDelegatesFocus&&(t.delegatesFocus=!!(16&e.$flags$)),_.shadowSlotAssignmentManual&&1024&e.$flags$&&(t.slotAssignment="manual");const o=this.attachShadow(t);void 0===A&&(A=null!=void 0?void 0:null),A&&(oe?o.adoptedStyleSheets.push(A):o.adoptedStyleSheets=[...o.adoptedStyleSheets,A])}var fe=e=>{const t=Ke(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&"SLOT-FB"!==e.tagName&&ge(t,e.tagName).forEach(e=>{1===e.nodeType&&"SLOT-FB"===e.tagName&&(ve(e,we(e),!1).length?e.hidden=!0:e.hidden=!1)});let o=0;for(o=0;o<t.length;o++){const e=t[o];1===e.nodeType&&Ke(e,"childNodes").length&&fe(e)}},me=e=>{const t=[];for(let o=0;o<e.length;o++){const n=e[o]["s-nr"]||void 0;n&&n.isConnected&&t.push(n)}return t};function ge(e,t,o){let n,s=0,r=[];for(;s<e.length;s++){if(n=e[s],n["s-sr"]&&(!t||n["s-hn"]===t)&&(void 0===o||we(n)===o)&&(r.push(n),void 0!==o))return r;r=[...r,...ge(n.childNodes,t,o)]}return r}var ve=(e,t,o=!0)=>{const n=[];(o&&e["s-sr"]||!e["s-sr"])&&n.push(e);let s=e;for(;s=s.nextSibling;)we(s)!==t||!o&&s["s-sr"]||n.push(s);return n},be=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,ye=(e,t,o,n)=>{if(e["s-ol"]&&e["s-ol"].isConnected)return;const s=document.createTextNode("");if(s["s-nr"]=e,!t["s-cr"]||!t["s-cr"].parentNode)return;const r=t["s-cr"].parentNode,i=Ke(r,o?"prepend":"appendChild");if(_.hydrateClientSide&&void 0!==n){s["s-oo"]=n;const e=Ke(r,"childNodes"),t=[s];e.forEach(e=>{e["s-nr"]&&t.push(e)}),t.sort((e,t)=>!e["s-oo"]||e["s-oo"]<(t["s-oo"]||0)?-1:!t["s-oo"]||t["s-oo"]<e["s-oo"]?1:0),t.forEach(e=>i.call(r,e))}else i.call(r,s);e["s-ol"]=s,e["s-sh"]=t["s-hn"]},we=e=>"string"==typeof e["s-sn"]?e["s-sn"]:1===e.nodeType&&e.getAttribute("slot")||void 0;function xe(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;const t=t=>function(e){const o=[],n=this["s-sn"];(null==e?void 0:e.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:me(s.childNodes)).forEach(e=>{n===we(e)&&o.push(e)}),t?o.filter(e=>1===e.nodeType):o}.bind(e);e.assignedElements=t(!0),e.assignedNodes=t(!1)}function Se(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function Ne(e,t){var o;if(!(t=t||(null==(o=e["s-ol"])?void 0:o.parentElement)))return{slotNode:null,slotName:""};const n=e["s-sn"]=we(e)||"";return{slotNode:ge(Ke(t,"childNodes"),t.tagName,n)[0],slotName:n}}var Ce=e=>{if(e.__cloneNode)return;const t=e.__cloneNode=e.cloneNode;e.cloneNode=function(e){const o=!!_.shadowDom&&this.shadowRoot&&Z,n=t.call(this,!!o&&e);if(_.slot&&!o&&e){let e,t,o=0;const s=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],r=this.__childNodes||this.childNodes;for(;o<r.length;o++)e=r[o]["s-nr"],t=s.every(e=>!r[o][e]),e&&(_.appendChildSlotFix&&n.__appendChild?n.__appendChild(e.cloneNode(!0)):n.appendChild(e.cloneNode(!0))),t&&n.appendChild(r[o].cloneNode(!0))}return n}},_e=e=>{e.__appendChild||(e.__appendChild=e.appendChild,e.appendChild=function(e){const{slotName:t,slotNode:o}=Ne(e,this);if(o){ye(e,o);const n=ve(o,t),s=n[n.length-1],r=Ke(s,"parentNode"),i=Ke(r,"insertBefore")(e,s.nextSibling);return Se(o),fe(this),i}return this.__appendChild(e)})},Le=e=>{e.__removeChild||(e.__removeChild=e.removeChild,e.removeChild=function(e){return e&&void 0!==e["s-sn"]&&ge(this.__childNodes||this.childNodes,this.tagName,e["s-sn"])&&e.isConnected?(e.remove(),void fe(this)):this.__removeChild(e)})},Re=e=>{e.__prepend||(e.__prepend=e.prepend,e.prepend=function(...t){t.forEach(t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t));const o=(t["s-sn"]=we(t))||"",n=ge(Ke(this,"childNodes"),this.tagName,o)[0];if(n){ye(t,n,!0);const e=ve(n,o)[0],s=Ke(e,"parentNode"),r=Ke(s,"insertBefore")(t,Ke(e,"nextSibling"));return Se(n),r}return 1===t.nodeType&&t.getAttribute("slot")&&(t.hidden=!0),e.__prepend(t)})})},ke=e=>{e.__append||(e.__append=e.append,e.append=function(...e){e.forEach(e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e)),this.appendChild(e)})})},Ee=e=>{if(e.__insertAdjacentHTML)return;const t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,o){if("afterbegin"!==e&&"beforeend"!==e)return t.call(this,e,o);const n=this.ownerDocument.createElement("_");let s;if(n.innerHTML=o,"afterbegin"===e)for(;s=n.firstChild;)this.prepend(s);else if("beforeend"===e)for(;s=n.firstChild;)this.append(s)}},Te=e=>{e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}},Ie=e=>{if(e.__insertBefore)return;const t=e;t.__insertBefore||(t.__insertBefore=e.insertBefore,e.insertBefore=function(e,t){const{slotName:o,slotNode:n}=Ne(e,this),s=this.__childNodes?this.childNodes:me(this.childNodes);if(n){let r=!1;if(s.forEach(s=>{if(s!==t&&null!==t);else{if(r=!0,null===t||o!==t["s-sn"])return void this.appendChild(e);if(o===t["s-sn"]){ye(e,n);const o=Ke(t,"parentNode");Ke(o,"insertBefore")(e,t),Se(n)}}}),r)return e}const r=null==t?void 0:t.__parentNode;return r&&!this.isSameNode(r)?this.appendChild(e):this.__insertBefore(e,t)})},ze=e=>{if(e.__insertAdjacentElement)return;const t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,o){return"afterbegin"!==e&&"beforeend"!==e?t.call(this,e,o):"afterbegin"===e?(this.prepend(o),o):"beforeend"===e?(this.append(o),o):o}},Ae=e=>{We("textContent",e),Object.defineProperty(e,"textContent",{get:function(){let e="";return(this.__childNodes?this.childNodes:me(this.childNodes)).forEach(t=>e+=t.textContent||""),e},set:function(e){(this.__childNodes?this.childNodes:me(this.childNodes)).forEach(e=>{e["s-ol"]&&e["s-ol"].remove(),e.remove()}),this.insertAdjacentHTML("beforeend",e)}})},Oe=e=>{class t extends Array{item(e){return this[e]}}We("children",e),Object.defineProperty(e,"children",{get(){return this.childNodes.filter(e=>1===e.nodeType)}}),Object.defineProperty(e,"childElementCount",{get(){return this.children.length}}),We("firstChild",e),Object.defineProperty(e,"firstChild",{get(){return this.childNodes[0]}}),We("lastChild",e),Object.defineProperty(e,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),We("childNodes",e),Object.defineProperty(e,"childNodes",{get(){const e=new t;return e.push(...me(this.__childNodes)),e}})},De=e=>{e&&void 0===e.__nextSibling&&globalThis.Node&&(je(e),Me(e),Fe(e),e.nodeType===Node.ELEMENT_NODE&&(Ve(e),Pe(e)))},je=e=>{e&&!e.__nextSibling&&(We("nextSibling",e),Object.defineProperty(e,"nextSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.childNodes,o=null==t?void 0:t.indexOf(this);return t&&o>-1?t[o+1]:this.__nextSibling}}))},Ve=e=>{e&&!e.__nextElementSibling&&(We("nextElementSibling",e),Object.defineProperty(e,"nextElementSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.children,o=null==t?void 0:t.indexOf(this);return t&&o>-1?t[o+1]:this.__nextElementSibling}}))},Me=e=>{e&&!e.__previousSibling&&(We("previousSibling",e),Object.defineProperty(e,"previousSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.childNodes,o=null==t?void 0:t.indexOf(this);return t&&o>-1?t[o-1]:this.__previousSibling}}))},Pe=e=>{e&&!e.__previousElementSibling&&(We("previousElementSibling",e),Object.defineProperty(e,"previousElementSibling",{get:function(){var e;const t=null==(e=this["s-ol"])?void 0:e.parentNode.children,o=null==t?void 0:t.indexOf(this);return t&&o>-1?t[o-1]:this.__previousElementSibling}}))},Fe=e=>{e&&!e.__parentNode&&(We("parentNode",e),Object.defineProperty(e,"parentNode",{get:function(){var e;return(null==(e=this["s-ol"])?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}}))},He=["children","nextElementSibling","previousElementSibling"],Be=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function We(e,t){if(!globalThis.Node||!globalThis.Element)return;let o;He.includes(e)?o=Object.getOwnPropertyDescriptor(Element.prototype,e):Be.includes(e)&&(o=Object.getOwnPropertyDescriptor(Node.prototype,e)),o||(o=Object.getOwnPropertyDescriptor(t,e)),o&&Object.defineProperty(t,"__"+e,o)}function Ke(e,t){if("__"+t in e){const o=e["__"+t];return"function"!=typeof o?o:o.bind(e)}return"function"!=typeof e[t]?e[t]:e[t].bind(e)}var Ue=0,qe=(e,t="")=>{if(_.profile&&performance.mark){const o=`st:${e}:${t}:${Ue++}`;return performance.mark(o),()=>performance.measure(`[Stencil] ${e}() <${t}>`,o)}return()=>{}};var Ye=new WeakMap,Xe=(e,t,o)=>{let n=B.get(e);te&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=t:n.replaceSync(t)):n=t,B.set(e,n)},Qe=(e,t,o)=>{var n,s,r;const i=Je(t,o),l=B.get(i);if(!_.attachStyles||!Q.document)return i;if(e=11===e.nodeType?e:Q.document,l)if("string"==typeof l){e=e.head||e;let o,r=Ye.get(e);r||Ye.set(e,r=new Set);const a=(_.hydrateClientSide||_.hotModuleReplacement)&&e.querySelector(`[${U}="${i}"]`);if(a)a.textContent=l;else if(!r.has(i)){o=Q.document.createElement("style"),o.textContent=l;const a=null!=(n=G.$nonce$)?n:function(e){var t,o,n;return null!=(n=null==(o=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:o.getAttribute("content"))?n:void 0}(Q.document);if(null!=a&&o.setAttribute("nonce",a),(_.hydrateServerSide||_.hotModuleReplacement)&&(2&t.$flags$||128&t.$flags$||1&t.$flags$)&&o.setAttribute(U,i),!(1&t.$flags$))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(o,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(te){const t=new(null!=(s=e.defaultView)?s:e.ownerDocument.defaultView).CSSStyleSheet;t.replaceSync(l),oe?e.adoptedStyleSheets.unshift(t):e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t&&!_.hotModuleReplacement?t.textContent=l+t.textContent:e.prepend(o)}else e.append(o);1&t.$flags$&&e.insertBefore(o,null),4&t.$flags$&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else if(_.constructableCSS){let t=Ye.get(e);if(t||Ye.set(e,t=new Set),!t.has(i)){const o=null!=(r=e.defaultView)?r:e.ownerDocument.defaultView;let n;if(l.constructor===o.CSSStyleSheet)n=l;else{n=new o.CSSStyleSheet;for(let e=0;e<l.cssRules.length;e++)n.insertRule(l.cssRules[e].cssText,e)}if(oe?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n],t.add(i),_.hydrateClientSide&&"host"in e){const t=e.querySelector(`[${U}="${i}"]`);t&&pe(()=>t.remove())}}}return i},Je=(e,t)=>"sc-"+(_.mode&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ge=e=>e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ze=e=>"object"==(e=typeof e)||"function"===e,et=(e,t,...o)=>{"string"==typeof e&&(e=en(e));let n=null,s=null,r=null,i=!1,l=!1;const a=[],d=t=>{for(let o=0;o<t.length;o++)n=t[o],Array.isArray(n)?d(n):null!=n&&"boolean"!=typeof n&&((i="function"!=typeof e&&!Ze(n))?n=String(n):_.isDev&&"function"!=typeof e&&void 0===n.$flags$&&P("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),i&&l?a[a.length-1].$text$+=n:a.push(i?tt(null,n):n),l=i)};if(d(o),t&&(_.isDev&&"input"===e&&lt(t),_.vdomKey&&t.key&&(s=t.key),_.slotRelocation&&t.name&&(r=t.name),_.vdomClass)){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}if(_.isDev&&a.some(nt)&&P("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),_.vdomFunctional&&"function"==typeof e)return e(null===t?{}:t,a,st);const c=tt(e,null);return c.$attrs$=t,a.length>0&&(c.$children$=a),_.vdomKey&&(c.$key$=s),_.slotRelocation&&(c.$name$=r),c},tt=(e,t)=>{const o={$flags$:0,$tag$:e,$text$:null!=t?t:null,$elm$:null,$children$:null};return _.vdomAttribute&&(o.$attrs$=null),_.vdomKey&&(o.$key$=null),_.slotRelocation&&(o.$name$=null),o},ot={},nt=e=>e&&e.$tag$===ot,st={forEach:(e,t)=>e.map(rt).forEach(t),map:(e,t)=>e.map(rt).map(t).map(it)},rt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),it=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),et(e.vtag,t,...e.vchildren||[])}const t=tt(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},lt=e=>{const t=Object.keys(e),o=t.indexOf("value");if(-1===o)return;const n=t.indexOf("type"),s=t.indexOf("min"),r=t.indexOf("max"),i=t.indexOf("step");(o<n||o<s||o<r||o<i)&&F('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},at=(e,t,o,n,s,r,i,l=[])=>{let a,d,c,u;const h=s["s-sc"];if(1===r.nodeType){if(a=r.getAttribute(q),a&&(d=a.split("."),d[0]===i||"0"===d[0])){c=ct({$flags$:0,$hostId$:d[0],$nodeId$:d[1],$depth$:d[2],$index$:d[3],$tag$:r.tagName.toLowerCase(),$elm$:r,$attrs$:{class:r.className||""}}),t.push(c),r.removeAttribute(q),e.$children$||(e.$children$=[]),_.scoped&&h&&d[0]===i&&(r["s-si"]=h,c.$attrs$.class+=" "+h);const s=c.$elm$.getAttribute("s-sn");"string"==typeof s&&("slot-fb"===c.$tag$&&(ut(s,d[2],c,r,e,t,o,n,l),_.scoped&&h&&r.classList.add(h)),c.$elm$["s-sn"]=s,c.$elm$.removeAttribute("s-sn")),void 0!==c.$index$&&(e.$children$[c.$index$]=c),e=c,n&&"0"===c.$depth$&&(n[c.$index$]=c.$elm$)}if(r.shadowRoot)for(u=r.shadowRoot.childNodes.length-1;u>=0;u--)at(e,t,o,n,s,r.shadowRoot.childNodes[u],i,l);const p=r.__childNodes||r.childNodes;for(u=p.length-1;u>=0;u--)at(e,t,o,n,s,p[u],i,l)}else if(8===r.nodeType)d=r.nodeValue.split("."),(d[1]===i||"0"===d[1])&&(a=d[0],c=ct({$hostId$:d[1],$nodeId$:d[2],$depth$:d[3],$index$:d[4]||"0",$elm$:r,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null}),"t"===a?(c.$elm$=pt(r,3),c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),r.remove(),i===c.$hostId$&&(e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c),n&&"0"===c.$depth$&&(n[c.$index$]=c.$elm$))):"c"===a?(c.$elm$=pt(r,8),c.$elm$&&8===c.$elm$.nodeType&&(t.push(c),r.remove())):c.$hostId$===i&&("s"===a?ut(r["s-sn"]=d[5]||"",d[2],c,r,e,t,o,n,l):"r"===a&&(_.shadowDom&&n?r.remove():_.slotRelocation&&(s["s-cr"]=r,r["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=tt(null,r.textContent);t.$elm$=r,t.$index$="0",e.$children$=[t]}return e},dt=(e,t)=>{if(1===e.nodeType){const o=e[K]||e.getAttribute(K);o&&t.set(o,e);let n=0;if(e.shadowRoot)for(;n<e.shadowRoot.childNodes.length;n++)dt(e.shadowRoot.childNodes[n],t);const s=e.__childNodes||e.childNodes;for(n=0;n<s.length;n++)dt(s[n],t)}else if(8===e.nodeType){const o=e.nodeValue.split(".");"o"===o[0]&&(t.set(o[1]+"."+o[2],e),e.nodeValue="",e["s-en"]=o[3])}},ct=e=>({$flags$:0,$hostId$:null,$nodeId$:null,$depth$:null,$index$:"0",$elm$:null,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null,...e});function ut(e,t,o,n,s,r,i,l,a){n["s-sr"]=!0,o.$name$=e||null,o.$tag$="slot";const d=(null==s?void 0:s.$elm$)?s.$elm$["s-id"]||s.$elm$.getAttribute("s-id"):"";if(_.shadowDom&&l&&Q.document){const r=o.$elm$=Q.document.createElement(o.$tag$);o.$name$&&o.$elm$.setAttribute("name",e),s.$elm$.shadowRoot&&d&&d!==o.$hostId$?Ke(s.$elm$,"insertBefore")(r,Ke(s.$elm$,"children")[0]):Ke(Ke(n,"parentNode"),"insertBefore")(r,n),ht(a,t,e,n,o.$hostId$),n.remove(),"0"===o.$depth$&&(l[o.$index$]=o.$elm$)}else{const r=o.$elm$,i=d&&d!==o.$hostId$&&s.$elm$.shadowRoot;ht(a,t,e,n,i?d:o.$hostId$),xe(n),i&&s.$elm$.insertBefore(r,s.$elm$.children[0])}r.push(o),i.push(o),s.$children$||(s.$children$=[]),s.$children$[o.$index$]=o}var ht=(e,t,o,n,s)=>{var r,i;let l=n.nextSibling;if(e[t]=e[t]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==o&&(""!==o||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=o,e[t].push({slot:n,node:l,hostId:s})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))},pt=(e,t)=>{let o=e;do{o=o.nextSibling}while(o&&(o.nodeType!==t||!o.nodeValue));return o},$t=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),ft="-shadowcsshost",mt="-shadowcssslotted",gt="-shadowcsscontext",vt=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",bt=new RegExp("("+ft+vt,"gim"),yt=new RegExp("("+gt+vt,"gim"),wt=new RegExp("("+mt+vt,"gim"),xt=ft+"-no-combinator",St=/-shadowcsshost-no-combinator([^\s]*)/,Nt=[/::shadow/g,/::content/g],Ct=/__part-(\d+)__/g,_t=/-shadowcsshost/gim,Lt=e=>{const t=$t(e);return new RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${t}))(${t}\\b)`,"g")},Rt=/\/\*\s*[\s\S]*?\*\//g,kt=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Et=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Tt=/([{}])/g,It=/(^.*?[^\\])??((:+)(.*)|$)/,zt="%BLOCK%",At=(e,t)=>{const o=Ot(e);let n=0;return o.escapedString.replace(Et,(...e)=>{const s=e[2];let r="",i=e[4],l="";i&&i.startsWith("{"+zt)&&(r=o.blocks[n++],i=i.substring(8),l="{");const a=t({selector:s,content:r});return`${e[1]}${a.selector}${e[3]}${l}${a.content}${i}`})},Ot=e=>{const t=e.split(Tt),o=[],n=[];let s=0,r=[];for(let e=0;e<t.length;e++){const i=t[e];"}"===i&&s--,s>0?r.push(i):(r.length>0&&(n.push(r.join("")),o.push(zt),r=[]),o.push(i)),"{"===i&&s++}return r.length>0&&(n.push(r.join("")),o.push(zt)),{escapedString:o.join(""),blocks:n}},Dt=(e,t,o)=>e.replace(t,(...e)=>{if(e[2]){const t=e[2].split(","),n=[];for(let s=0;s<t.length;s++){const r=t[s].trim();if(!r)break;n.push(o(xt,r,e[3]))}return n.join(",")}return xt+e[3]}),jt=(e,t,o)=>e+t.replace(ft,"")+o,Vt=(e,t,o)=>t.indexOf(ft)>-1?jt(e,t,o):e+t+o+", "+t+" "+e+o,Mt=(e,t)=>e.replace(It,(e,o="",n,s="",r="")=>o+t+s+r),Pt=(e,t,o,n,s)=>At(e,e=>{let r=e.selector,i=e.content;return"@"!==e.selector[0]?r=((e,t,o,n)=>e.split(",").map(e=>n&&e.indexOf("."+n)>-1?e.trim():((e,t)=>!(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t).test(e))(e,t)?((e,t,o)=>{const n="."+(t=t.replace(/\[is=([^\]]*)\]/g,(e,...t)=>t[0])),s=e=>{let s=e.trim();if(!s)return"";if(e.indexOf(xt)>-1)s=((e,t,o)=>{if(_t.lastIndex=0,_t.test(e)){const t=`.${o}`;return e.replace(St,(e,o)=>Mt(o,t)).replace(_t,t+" ")}return t+" "+e})(e,t,o);else{const t=e.replace(_t,"");t.length>0&&(s=Mt(t,n))}return s},r=(e=>{const t=[];let o=0;return{content:(e=(e=e.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g,(e,n)=>{const s=`__part-${o}__`;return t.push(n),o++,s})).replace(/(\[[^\]]*\])/g,(e,n)=>{const s=`__ph-${o}__`;return t.push(n),o++,s})).replace(/(:nth-[-\w]+)(\([^)]+\))/g,(e,n,s)=>{const r=`__ph-${o}__`;return t.push(s),o++,n+r}),placeholders:t}})(e);let i,l="",a=0;const d=/( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;let c=!((e=r.content).indexOf(xt)>-1);for(;null!==(i=d.exec(e));){const t=i[1],o=e.slice(a,i.index).trim();c=c||o.indexOf(xt)>-1,l+=`${c?s(o):o} ${t} `,a=d.lastIndex}const u=e.substring(a);return c=!u.match(Ct)&&(c||u.indexOf(xt)>-1),l+=c?s(u):u,h=r.placeholders,l.replace(/__part-(\d+)__/g,(e,t)=>h[+t]).replace(/__ph-(\d+)__/g,(e,t)=>h[+t]);var h})(e,t,o).trim():e.trim()).join(", "))(e.selector,t,o,n):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=Pt(e.content,t,o,n,s)),{selector:r.replace(/\s{2,}/g," ").trim(),content:i}}),Ft=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),Ht=(e,t,o)=>{const n=t+"-h",s=t+"-s",r=e.match(kt)||[];e=e.replace(Rt,"");const i=[];if(o){const t=e=>{const t=`/*!@___${i.length}___*/`,o=`/*!@${e.selector}*/`;return i.push({placeholder:t,comment:o}),e.selector=t+e.selector,e};e=At(e,e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=At(e.content,t),e):e)}const l=((e,t,o,n,s)=>{const r=((e,t)=>{const o="."+t+" > ",n=[];return e=e.replace(wt,(...e)=>{if(e[2]){const t=e[2].trim(),s=e[3],r=o+t+s;let i="";for(let t=e[4]-1;t>=0;t--){const o=e[5][t];if("}"===o||","===o)break;i=o+i}const l=(i+r).trim(),a=`${i.trimEnd()}${r.trim()}`.trim();if(l!==a){const e=`${a}, ${l}`;n.push({orgSelector:l,updatedSelector:e})}return r}return xt+e[3]}),{selectors:n,cssText:e}})(e=(e=>Dt(e,yt,Vt))(e=(e=>Dt(e,bt,jt))(e=(e=>{const t=[];e=e.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g,(e,o)=>{const n=`__supports_${t.length}__`;return t.push(o),`@supports selector(${n})`});const o=Lt("::slotted"),n=Lt(":host"),s=Lt(":host-context");return e=e.replace(s,`$1${gt}`).replace(n,`$1${ft}`).replace(o,`$1${mt}`),t.forEach((t,o)=>{e=e.replace(`__supports_${o}__`,t)}),e})(e))),n);return e=(e=>Nt.reduce((e,t)=>e.replace(t," "),e))(e=r.cssText),t&&(e=Pt(e,t,o,n,s)),{cssText:(e=(e=Ft(e,o)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:r.selectors.map(e=>({orgSelector:Ft(e.orgSelector,o),updatedSelector:Ft(e.updatedSelector,o)}))}})(e,t,n,s,o);return e=[l.cssText,...r].join("\n"),o&&i.forEach(({placeholder:t,comment:o})=>{e=e.replace(t,o)}),l.slottedSelectors.forEach(t=>{const o=new RegExp($t(t.orgSelector)+"(?=\\s*[,{]|$)","g");e=e.replace(o,t.updatedSelector)}),e=(e=>{const t=/([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;return At(e,e=>{if("@"===e.selector[0])return e;const o=e.selector.split(",").map(o=>{const n=[o.trim()];let s;for(;null!==(s=t.exec(o));){const t=s[1].trimEnd(),r=s[2].trim().split(/\s+/),i=s[3]||"",l=r.flatMap(t=>e.selector.includes(`[part~="${t}"]`)?[]:[`[part~="${t}"]`]).join(""),a=`${t} ${l}${i}`;l&&a!==o.trim()&&n.push(a)}return n.join(", ")});return e.selector=o.join(", "),e})})(e)},Bt=e=>{if(!e)return;const t=Object.keys(e);if(0===t.length)return;let o=!1;for(const n of t){if(o)break;for(const t of e[n])if("string"==typeof t){o=!0;break}}if(!o)return e;const n={};for(const o of t)n[o]=e[o].map(e=>"string"==typeof e?{[e]:0}:e);return n},Wt=class e{static fromLocalValue(t){const o=t[E],n=T in t?t[T]:void 0;switch(o){case"string":case"boolean":return n;case"bigint":return BigInt(n);case"undefined":return;case"null":return null;case"number":return"NaN"===n?NaN:"-0"===n?-0:"Infinity"===n?1/0:"-Infinity"===n?-1/0:n;case"array":return n.map(t=>e.fromLocalValue(t));case"date":return new Date(n);case"map":const t=new Map;for(const[o,s]of n){const n="object"==typeof o&&null!==o?e.fromLocalValue(o):o,r=e.fromLocalValue(s);t.set(n,r)}return t;case"object":const s={};for(const[t,o]of n)s[t]=e.fromLocalValue(o);return s;case"regexp":const{pattern:r,flags:i}=n;return new RegExp(r,i);case"set":const l=new Set;for(const t of n)l.add(e.fromLocalValue(t));return l;case"symbol":return Symbol(n);default:throw new Error(`Unsupported type: ${o}`)}}static fromLocalValueArray(t){return t.map(t=>e.fromLocalValue(t))}static isLocalValueObject(e){if("object"!=typeof e||null===e)return!1;if(!e.hasOwnProperty(E))return!1;const t=e[E];return!!Object.values({...R,...k}).includes(t)&&("null"===t||"undefined"===t||e.hasOwnProperty(T))}};var Kt,Ut,qt,Yt=(e,t,o)=>{return(_.hydrateClientSide||_.hydrateServerSide)&&"string"==typeof e&&e.startsWith(I)?e="string"==typeof(n=e)&&n.startsWith(I)?Wt.fromLocalValue(JSON.parse(function(e){const t=atob(e),o=new Uint8Array(t.length);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return(new TextDecoder).decode(o)}(n.slice(11)))):n:null==e||Ze(e)?e:_.propBoolean&&4&t?(_.formAssociated&&o&&"string"==typeof e||"false"!==e)&&(""===e||!!e):_.propNumber&&2&t?"string"==typeof e?parseFloat(e):"number"==typeof e?e:NaN:_.propString&&1&t?String(e):e;var n},Xt=(e,t,o)=>{const n=(e=>{var t;return _.lazyLoad?null==(t=D(e))?void 0:t.$hostElement$:e})(e);return{emit:e=>(_.isDev&&!n.isConnected&&F(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Qt(n,t,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:e}))}},Qt=(e,t,o)=>{const n=G.ce(t,o);return e.dispatchEvent(n),n},Jt=(e,t,o,n,s,r,i)=>{if(o===n)return;let l=j(e,t),a=t.toLowerCase();if(_.vdomClass&&"class"===t){const t=e.classList,s=Zt(o);let r=Zt(n);if(_.hydrateClientSide&&(e["s-si"]||e["s-sc"])&&i){const o=e["s-sc"]||e["s-si"];r.push(o),s.forEach(e=>{e.startsWith(o)&&r.push(e)}),r=[...new Set(r)].filter(e=>e),t.add(...r)}else t.remove(...s.filter(e=>e&&!r.includes(e))),t.add(...r.filter(e=>e&&!s.includes(e)))}else if(_.vdomStyle&&"style"===t){if(_.updatable)for(const t in o)n&&null!=n[t]||(!_.hydrateServerSide&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in n)o&&n[t]===o[t]||(!_.hydrateServerSide&&t.includes("-")?e.style.setProperty(t,n[t]):e.style[t]=n[t])}else if(_.vdomKey&&"key"===t);else if(_.vdomRef&&"ref"===t)n&&xo(n,e);else if(!_.vdomListener||(_.lazyLoad?l:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(_.vdomPropOrAttr&&"a"===t[0]&&t.startsWith("attr:")){const o=t.slice(5);let s;if(_.member){const t=D(e);if(t&&t.$cmpMeta$&&t.$cmpMeta$.$members$){const e=t.$cmpMeta$.$members$[o];e&&e[1]&&(s=e[1])}}return s||(s=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==n||!1===n?!1===n&&""!==e.getAttribute(s)||e.removeAttribute(s):e.setAttribute(s,!0===n?"":n))}if(_.vdomPropOrAttr&&"p"===t[0]&&t.startsWith("prop:")){const o=t.slice(5);try{e[o]=n}catch(e){}return}if(_.vdomPropOrAttr){const i=Ze(n);if((l||i&&null!==n)&&!s)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const s=null==n?"":n;"list"===t?l=!1:null!=o&&e[t]===s||("function"==typeof e.__lookupSetter__(t)?e[t]=s:e.setAttribute(t,s))}}catch(e){}let d=!1;_.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),null==n||!1===n?!1===n&&""!==e.getAttribute(t)||(_.vdomXlink&&d?e.removeAttributeNS(Y,t):e.removeAttribute(t)):(!l||4&r||s)&&!i&&1===e.nodeType&&(n=!0===n?"":n,_.vdomXlink&&d?e.setAttributeNS(Y,t,n):e.setAttribute(t,n))}}else if(t="-"===t[2]?t.slice(3):j(Q,a)?a.slice(2):a[2]+t.slice(3),o||n){const s=t.endsWith(eo);t=t.replace(to,""),o&&G.rel(e,t,o,s),n&&G.ael(e,t,n,s)}},Gt=/\s/,Zt=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(Gt):[]),eo="Capture",to=new RegExp(eo+"$"),oo=(e,t,o,n)=>{const s=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||{},i=t.$attrs$||{};if(_.updatable)for(const e of no(Object.keys(r)))e in i||Jt(s,e,r[e],void 0,o,t.$flags$,n);for(const e of no(Object.keys(i)))Jt(s,e,r[e],i[e],o,t.$flags$,n)};function no(e){return e.includes("ref")?[...e.filter(e=>"ref"!==e),"ref"]:e}var so=!1,ro=!1,io=!1,lo=!1,ao=[],co=[],uo=(e,t,o)=>{var n;const s=t.$children$[o];let r,i,l,a=0;if(_.slotRelocation&&!so&&(io=!0,"slot"===s.$tag$&&(s.$flags$|=s.$children$?2:1)),_.isDev&&s.$elm$&&P(`The JSX ${null!==s.$text$?`"${s.$text$}" text`:`"${s.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),_.vdomText&&null!=s.$text$)r=s.$elm$=Q.document.createTextNode(s.$text$);else if(_.slotRelocation&&1&s.$flags$)r=s.$elm$=_.isDebug||_.hydrateServerSide?_o(s):Q.document.createTextNode(""),_.vdomAttribute&&oo(null,s,lo);else{if(_.svg&&!lo&&(lo="svg"===s.$tag$),!Q.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=s.$elm$=_.svg?Q.document.createElementNS(lo?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!so&&_.slotRelocation&&2&s.$flags$?"slot-fb":s.$tag$):Q.document.createElement(!so&&_.slotRelocation&&2&s.$flags$?"slot-fb":s.$tag$),_.svg&&lo&&"foreignObject"===s.$tag$&&(lo=!1),_.vdomAttribute&&oo(null,s,lo),(_.scoped||_.hydrateServerSide)&&null!=(d=Kt)&&void 0!==d&&r["s-si"]!==Kt&&r.classList.add(r["s-si"]=Kt),s.$children$){const t="template"===s.$tag$?r.content:r;for(a=0;a<s.$children$.length;++a)i=uo(e,s,a),i&&t.appendChild(i)}_.svg&&("svg"===s.$tag$?lo=!1:"foreignObject"===r.tagName&&(lo=!0))}var d;return r["s-hn"]=qt,_.slotRelocation&&3&s.$flags$&&(r["s-sr"]=!0,r["s-cr"]=Ut,r["s-sn"]=s.$name$||"",r["s-rf"]=null==(n=s.$attrs$)?void 0:n.ref,xe(r),l=e&&e.$children$&&e.$children$[o],l&&l.$tag$===s.$tag$&&e.$elm$&&ho(e.$elm$),(_.scoped||_.hydrateServerSide)&&No(Ut,r,t.$elm$,null==e?void 0:e.$elm$)),r},ho=e=>{G.$flags$|=1;const t=e.closest(qt.toLowerCase());if(null!=t){const o=Array.from(t.__childNodes||t.childNodes).find(e=>e["s-cr"]),n=Array.from(e.__childNodes||e.childNodes);for(const e of o?n.reverse():n)null!=e["s-sh"]&&(So(t,e,null!=o?o:null),e["s-sh"]=void 0,io=!0)}G.$flags$&=-2},po=(e,t)=>{G.$flags$|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let t=e;for(;t=t.nextSibling;)t&&t["s-sn"]===e["s-sn"]&&t["s-sh"]===qt&&o.push(t)}for(let e=o.length-1;e>=0;e--){const n=o[e];n["s-hn"]!==qt&&n["s-ol"]&&(So(go(n).parentNode,n,go(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,io=!0),t&&po(n,t)}G.$flags$&=-2},$o=(e,t,o,n,s,r)=>{let i,l=_.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e;for(_.shadowDom&&l.shadowRoot&&l.tagName===qt&&(l=l.shadowRoot),"template"===o.$tag$&&(l=l.content);s<=r;++s)n[s]&&(i=uo(null,o,s),i&&(n[s].$elm$=i,So(l,i,_.slotRelocation?go(t):t)))},fo=(e,t,o)=>{for(let n=t;n<=o;++n){const t=e[n];if(t){const e=t.$elm$;wo(t),e&&(_.slotRelocation&&(ro=!0,e["s-ol"]?e["s-ol"].remove():po(e,!0)),e.remove())}}},mo=(e,t,o=!1)=>e.$tag$===t.$tag$&&(_.slotRelocation&&"slot"===e.$tag$?e.$name$===t.$name$:_.vdomKey&&!o?e.$key$===t.$key$:(o&&!e.$key$&&t.$key$&&(e.$key$=t.$key$),!0)),go=e=>e&&e["s-ol"]||e,vo=(e,t,o=!1)=>{const n=t.$elm$=e.$elm$,s=e.$children$,r=t.$children$,i=t.$tag$,l=t.$text$;let a;_.vdomText&&null!=l?_.vdomText&&_.slotRelocation&&(a=n["s-cr"])?a.parentNode.textContent=l:_.vdomText&&e.$text$!==l&&(n.data=l):(_.svg&&(lo="svg"===i||"foreignObject"!==i&&lo),(_.vdomAttribute||_.reflect)&&(_.slot&&"slot"===i&&!so&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",ho(t.$elm$.parentElement)),oo(e,t,lo,o)),_.updatable&&null!==s&&null!==r?((e,t,o,n,s=!1)=>{let r,i,l=0,a=0,d=0,c=0,u=t.length-1,h=t[0],p=t[u],$=n.length-1,f=n[0],m=n[$];const g="template"===o.$tag$?e.content:e;for(;l<=u&&a<=$;)if(null==h)h=t[++l];else if(null==p)p=t[--u];else if(null==f)f=n[++a];else if(null==m)m=n[--$];else if(mo(h,f,s))vo(h,f,s),h=t[++l],f=n[++a];else if(mo(p,m,s))vo(p,m,s),p=t[--u],m=n[--$];else if(mo(h,m,s))!_.slotRelocation||"slot"!==h.$tag$&&"slot"!==m.$tag$||po(h.$elm$.parentNode,!1),vo(h,m,s),So(g,h.$elm$,p.$elm$.nextSibling),h=t[++l],m=n[--$];else if(mo(p,f,s))!_.slotRelocation||"slot"!==h.$tag$&&"slot"!==m.$tag$||po(p.$elm$.parentNode,!1),vo(p,f,s),So(g,p.$elm$,h.$elm$),p=t[--u],f=n[++a];else{if(d=-1,_.vdomKey)for(c=l;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){d=c;break}_.vdomKey&&d>=0?(i=t[d],i.$tag$!==f.$tag$?r=uo(t&&t[a],o,d):(vo(i,f,s),t[d]=void 0,r=i.$elm$),f=n[++a]):(r=uo(t&&t[a],o,a),f=n[++a]),r&&(_.slotRelocation?So(go(h.$elm$).parentNode,r,go(h.$elm$)):So(h.$elm$.parentNode,r,h.$elm$))}l>u?$o(e,null==n[$+1]?null:n[$+1].$elm$,o,n,a,$):_.updatable&&a>$&&fo(t,l,u)})(n,s,t,r,o):null!==r?(_.updatable&&_.vdomText&&null!==e.$text$&&(n.textContent=""),$o(n,null,t,r,0,r.length-1)):!o&&_.updatable&&null!==s?fo(s,0,s.length-1):_.hydrateClientSide&&o&&_.updatable&&null!==s&&null===r&&(t.$children$=s),_.svg&&lo&&"svg"===i&&(lo=!1))},bo=[],yo=e=>{let t,o,n;const s=e.__childNodes||e.childNodes;for(const e of s){if(e["s-sr"]&&(t=e["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const s=e["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===e["s-hn"]||t["s-sh"]&&t["s-sh"]===e["s-hn"]))if(be(t,s)){let o=bo.find(e=>e.$nodeToRelocate$===t);ro=!0,t["s-sn"]=t["s-sn"]||s,o?(o.$nodeToRelocate$["s-sh"]=e["s-hn"],o.$slotRefNode$=e):(t["s-sh"]=e["s-hn"],bo.push({$slotRefNode$:e,$nodeToRelocate$:t})),t["s-sr"]&&bo.map(e=>{be(e.$nodeToRelocate$,t["s-sn"])&&(o=bo.find(e=>e.$nodeToRelocate$===t),o&&!e.$slotRefNode$&&(e.$slotRefNode$=o.$slotRefNode$))})}else bo.some(e=>e.$nodeToRelocate$===t)||bo.push({$nodeToRelocate$:t})}1===e.nodeType&&yo(e)}},wo=e=>{_.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&ao.push(()=>e.$attrs$.ref(null)),e.$children$&&e.$children$.map(wo))},xo=(e,t)=>{_.vdomRef&&co.push(()=>e(t))},So=(e,t,o,n)=>{if(_.slotRelocation)if(_.scoped&&"string"==typeof t["s-sn"]&&t["s-sr"]&&t["s-cr"])No(t["s-cr"],t,e,t.parentElement);else if("string"==typeof t["s-sn"]){_.experimentalSlotFixes&&11!==e.getRootNode().nodeType&&Fe(t),e.insertBefore(t,o);const{slotNode:s}=Ne(t);return s&&!n&&Se(s),t}return e.__insertBefore?e.__insertBefore(t,o):null==e?void 0:e.insertBefore(t,o)};function No(e,t,o,n){var s,r;let i;if(e&&"string"==typeof t["s-sn"]&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(i=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"],l=t["s-hn"];if(null==(s=o.classList)||s.add(i+"-s"),n&&(null==(r=n.classList)?void 0:r.contains(i+"-s"))){let t=(n.__childNodes||n.childNodes)[0],o=!1;for(;t;){if(t["s-sn"]!==e&&t["s-hn"]===l&&t["s-sr"]){o=!0;break}t=t.nextSibling}o||n.classList.remove(i+"-s")}}}var Co=(e,t,o=!1)=>{var n,s,r,i,l;const a=e.$hostElement$,d=e.$cmpMeta$,c=e.$vnode$||tt(null,null),u=nt(t)?t:et(null,null,t);if(qt=a.tagName,_.isDev&&Array.isArray(t)&&t.some(nt))throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${qt.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(_.reflect&&d.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},d.$attrsToReflect$.forEach(([t,o])=>{_.serializer&&e.$serializerValues$.has(t)?u.$attrs$[o]=e.$serializerValues$.get(t):u.$attrs$[o]=a[t]})),o&&u.$attrs$)for(const e of Object.keys(u.$attrs$))a.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.$attrs$[e]=a[e]);if(u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=c.$elm$=_.shadowDom&&a.shadowRoot||a,(_.scoped||_.shadowDom)&&(Kt=a["s-sc"]),so=Z&&!!(1&d.$flags$)&&!(128&d.$flags$),_.slotRelocation&&(Ut=a["s-cr"],ro=!1),vo(c,u,o),_.slotRelocation){if(G.$flags$|=1,io){yo(u.$elm$);for(const e of bo){const t=e.$nodeToRelocate$;if(!t["s-ol"]&&Q.document){const e=_.isDebug||_.hydrateServerSide?Lo(t):Q.document.createTextNode("");e["s-nr"]=t,So(t.parentNode,t["s-ol"]=e,t,o)}}for(const e of bo){const t=e.$nodeToRelocate$,l=e.$slotRefNode$;if(1===t.nodeType&&o&&(t["s-ih"]=null!=(n=t.hidden)&&n),l){const e=l.parentNode;let n=l.nextSibling;if(!_.hydrateServerSide&&n&&1===n.nodeType){let o=null==(s=t["s-ol"])?void 0:s.previousSibling;for(;o;){let s=null!=(r=o["s-nr"])?r:null;if(s&&s["s-sn"]===t["s-sn"]&&e===(s.__parentNode||s.parentNode)){for(s=s.nextSibling;s===t||(null==s?void 0:s["s-sr"]);)s=null==s?void 0:s.nextSibling;if(!s||!s["s-nr"]){n=s;break}}o=o.previousSibling}}const a=t.__parentNode||t.parentNode,d=t.__nextSibling||t.nextSibling;if((!n&&e!==a||d!==n)&&t!==n){if(So(e,t,n,o),8===t.nodeType&&t.nodeValue.startsWith("s-nt-")){const e=Q.document.createTextNode(t.nodeValue.replace(/^s-nt-/,""));e["s-hn"]=t["s-hn"],e["s-sn"]=t["s-sn"],e["s-sh"]=t["s-sh"],e["s-sr"]=t["s-sr"],e["s-ol"]=t["s-ol"],e["s-ol"]["s-nr"]=e,So(t.parentNode,e,t,o),t.parentNode.removeChild(t)}1===t.nodeType&&"SLOT-FB"!==t.tagName&&(t.hidden=null!=(i=t["s-ih"])&&i)}t&&"function"==typeof l["s-rf"]&&l["s-rf"](l)}else 1===t.nodeType&&(t.hidden=!0)}}ro&&fe(u.$elm$),G.$flags$&=-2,bo.length=0}if(_.slotRelocation&&!so&&!(1&d.$flags$)&&a["s-cr"]){const e=u.$elm$.__childNodes||u.$elm$.childNodes;for(const t of e)if(t["s-hn"]!==qt&&!t["s-sh"])if(o&&null==t["s-ih"]&&(t["s-ih"]=null!=(l=t.hidden)&&l),1===t.nodeType)t.hidden=!0;else if(3===t.nodeType&&t.nodeValue.trim()){const e=Q.document.createComment("s-nt-"+t.nodeValue);e["s-sn"]=t["s-sn"],So(t.parentNode,e,t,o),t.parentNode.removeChild(t)}}Ut=void 0,_.vdomRef&&(ao.forEach(e=>e()),ao.length=0,co.forEach(e=>e()),co.length=0)},_o=e=>{var t;return null==(t=Q.document)?void 0:t.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${qt.toLowerCase()})`)},Lo=e=>{var t;return null==(t=Q.document)?void 0:t.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`))},Ro=(e,t)=>{if(_.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]){const o=t["s-p"].push(new Promise(n=>e.$onRenderResolve$=()=>{t["s-p"].splice(o-1,1),n()}))}},ko=(e,t)=>{if(_.taskQueue&&_.updatable&&(e.$flags$|=16),_.asyncLoading&&4&e.$flags$)return void(e.$flags$|=512);Ro(e,e.$ancestorComponent$);const o=()=>Eo(e,t);if(!t)return _.taskQueue?pe(o):o();queueMicrotask(()=>{o()})},Eo=(e,t)=>{const o=e.$hostElement$,n=qe("scheduleUpdate",e.$cmpMeta$.$tagName$),s=_.lazyLoad?e.$lazyInstance$:o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let r;return t?(_.lazyLoad&&(_.slotRelocation&&e.$deferredConnectedCallback$&&(e.$deferredConnectedCallback$=!1,jo(s,"connectedCallback",void 0,o)),_.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>jo(s,e,t,o)),e.$queuedListeners$=void 0)),e.$fetchedCbList$.length&&e.$fetchedCbList$.forEach(e=>e(o))),Vo(o,"componentWillLoad"),r=jo(s,"componentWillLoad",void 0,o)):(Vo(o,"componentWillUpdate"),r=jo(s,"componentWillUpdate",void 0,o)),Vo(o,"componentWillRender"),r=To(r,()=>jo(s,"componentWillRender",void 0,o)),n(),To(r,()=>zo(e,s,t))},To=(e,t)=>Io(e)?e.then(t).catch(e=>{console.error(e),t()}):t(),Io=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,zo=async(e,t,o)=>{var n;const s=e.$hostElement$,r=qe("update",e.$cmpMeta$.$tagName$),i=s["s-rc"];_.style&&o&&(e=>{const t=e.$cmpMeta$,o=e.$hostElement$,n=t.$flags$,s=qe("attachStyles",t.$tagName$),r=Qe(_.shadowDom&&Z&&o.shadowRoot?o.shadowRoot:o.getRootNode(),t,e.$modeName$);(_.shadowDom||_.scoped)&&_.cssAnnotations&&10&n&&(o["s-sc"]=r,o.classList.add(r+"-h")),s()})(e);const l=qe("render",e.$cmpMeta$.$tagName$);if(_.isDev&&(e.$flags$|=1024),_.hydrateServerSide?await Ao(e,t,s,o):Ao(e,t,s,o),_.isDev&&(e.$renderCount$=void 0===e.$renderCount$?1:e.$renderCount$+1,e.$flags$&=-1025),_.hydrateServerSide)try{Po(s),o&&(1&e.$cmpMeta$.$flags$?s["s-en"]="":2&e.$cmpMeta$.$flags$&&(s["s-en"]="c"))}catch(e){V(e,s)}if(_.asyncLoading&&i&&(i.map(e=>e()),s["s-rc"]=void 0),l(),r(),_.asyncLoading){const t=null!=(n=s["s-p"])?n:[],o=()=>Oo(e);0===t.length?o():(Promise.all(