text: function e(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),s.push.apply(s,n)}return s}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var n,r=function(e){for(var t,s,n=arguments,r=this,o=1,i="",c="",a=[0],l=e=>{1===o&&(e||(i=i.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?a.push(e?n[e]:i):3===o&&(e||i)?(a[1]=e?n[e]:i,o=2):2===o&&"..."===i&&e?a[2]=Object.assign(a[2]||{},n[e]):2===o&&i&&!e?(a[2]=a[2]||{})[i]=!0:o>=5&&(5===o?((a[2]=a[2]||{})[s]=e?i?i+n[e]:n[e]:i,o=6):(e||i)&&(a[2][s]+=e?i+n[e]:i)),i=""},h=0;h<e.length;h++){h&&(1===o&&l(),l(h));for(var d=0;d<e[h].length;d++)t=e[h][d],1===o?"<"===t?(l(),a=[a,"",null],o=3):i+=t:4===o?"--"===i&&">"===t?(o=1,i=""):i=t+i[0]:c?t===c?c="":i+=t:'"'===t||"'"===t?c=t:">"===t?(l(),o=1):o&&("="===t?(o=5,s=i,i=""):"/"===t&&(o<5||">"===e[h][d+1])?(l(),3===o&&(a=a[0]),o=a,(a=a[0]).push(r.apply(null,o.slice(1))),o=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(l(),o=2):i+=t),3===o&&"!--"===i&&(o=4,a=a[0])}return l(),a.length>2?a.slice(1):a[1]}.bind((function(e,t){var s=null,n=!1;for(var r in["svg","use","symbol","path","g","defs","title"].indexOf(e)>-1?(s=document.createElementNS("http://www.w3.org/2000/svg",e),n=!0):s=document.createElement(e),t)if("on"===r.slice(0,2)){var o=r.slice(2),i=t[r];if(null==i)continue;s.addEventListener(o,i)}else if(["disabled","selected","checked"].indexOf(r)>-1)t[r]&&s.setAttribute(r,r);else if("xlinkHref"===r&&n)t[r]&&s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t[r]);else if("href"===r&&n)t[r]&&s.setAttributeNS("http://www.w3.org/1999/xlink","href",t[r]);else{if(null==t[r])continue;s.setAttribute(r,t[r])}for(var c=arguments.length,a=new Array(c>2?c-2:0),l=2;l<c;l++)a[l-2]=arguments[l];return 0===a.length?s:(a.flat(1).forEach((e=>{e instanceof Node?s.appendChild(e):s.appendChild(document.createTextNode(e))})),null==e?s.children:s)}));function o(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function i(e,t){for(;t.firstChild;)t.removeChild(t.firstChild);var s;if("string"==typeof e)(s=document.createElement("div")).innerHTML=e;else{if(!e.nodeName)throw new Error("Unable to render ".concat(e,". Have you included a renderer function?"));s=e}s&&t.appendChild(s)}!function(e,s){!function(e,t){var s=function(e){if(!e)return[];var t=[];return Object.keys(e).forEach((s=>{(null==e[s].observed||e[s].observed)&&t.push(o(s))})),t}(t.props);globalThis.customElements.get(e)||globalThis.customElements.define(e,class extends globalThis.HTMLElement{static get observedAttributes(){return s}get componentTagName(){return e}connectedCallback(){null==this.connectedCallbackCount&&(this.connectedCallbackCount=0),this.connectedCallbackCount=this.connectedCallbackCount+1,this._checkInit(),this._preprocess()}disconnectedCallback(){"function"==typeof this.removed&&(this.removed(),this.isRemovedCalled=!0)}attributeChangedCallback(){null!=this.connectedCallbackCount&&(this._checkInit(),this._preprocess())}get initialised(){return this._props&&this._computed&&this.templateRenderer}_checkInit(){this.initialised||this._init(t)}_init(e){this._props=e.props||{},this._computed=e.computed||{},this.computedCache={},this.status="render",this.connectedCallbackCount=0,this.props=this._processProps(),this.root=this._processRoot(e.root),this.slots=this._processSlots(),this.render=e.render||null,this.templateRenderer=e.renderer||i,this.template=null,this.created=e.created||null,this.mounted=e.mounted||null,this.updated=e.updated||null,this.removed=e.removed||null,this.isCreatedCalled=!1,this.isMountedCalled=!1,this.isRemovedCalled=!1,this.emit=(e,t)=>{!function(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Object.assign({},{bubbles:!0,cancelable:!0,composed:!1},s),r=globalThis.document.createEvent("CustomEvent");r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),Object.defineProperty(r,"composed",{value:n.composed}),e.dispatchEvent(r)}(this,e,{detail:t})},this._processMethodsAndComputedProps(e),this._processInstanceProps(this._props),"function"!=typeof this.created||this.isCreatedCalled||(this.created(),this.isCreatedCalled=!0)}_processProps(){var e={};return Object.keys(this._props).forEach((t=>{var s={},n=this._props[t],r=this._getAttribute(t),o=null;if(null!=n.default&&(o=n.default),n.required&&null==r)null!=o?(console.info("No biggie, the required prop '".concat(t,"' has no value set, so the default has been set")),s[t]=o):(s[t]=null,console.error("The required prop '".concat(t,"' has no value set")));else switch(n.type){case String:default:s[t]=r||o;break;case Number:s[t]=null!=r?parseFloat(r):null!=o?o:0;break;case Boolean:s[t]=null!=r?"true"===r.toString():null!=o&&o;break;case Object:try{s[t]=null!=r?JSON.parse(r):null!=o?o:void 0}catch(e){s[t]=null!=o?o:void 0,console.error("An object prop parse issue occurred with prop ".concat(t," and value ").concat(r))}}e[t]=s[t],this._instanceProps&&this._instanceProps[t]&&(e[t]=this._instanceProps[t])})),e}_processMethodsAndComputedProps(e){var t=this,s=Object.keys(e);s.length&&s.forEach((s=>{t[s]||"function"!=typeof e[s]||(t[s]=e[s].bind(t)),"computed"===s&&this._processComputed(e[s])}))}_processRoot(e){switch(e){case"standard":default:return this;case"shadow":return this.attachShadow({mode:"open"});case"shadow:closed":return this.attachShadow({mode:"closed"})}}_processComputed(e){var t=this,s=Object.keys(e);s.length&&s.forEach((s=>{t[s]?console.warn("Computed property '".concat(s,"' already exists on the component instance")):Object.defineProperty(t,s,{get:()=>(t.computedCache[s]||(t.computedCache[s]=e[s].bind(t)()),t.computedCache[s])})}))}_processRender(){var e=this.render?this.render():void 0;e&&(this.template=e,this._updateRender())}_processSlots(){var e=this.childNodes,t={default:[]};return e.length>0&&[...e].forEach((e=>{var s=e.getAttribute?e.getAttribute("slot"):null;s?t[s]=e:t.default.push(e)})),t}_getAttribute(e){try{return this.getAttribute(o(e))}catch(e){return console.error("A get prop error occurred",e),""}}_processInstanceProps(e){var t=this,s=Object.keys(e);e&&s.forEach((e=>{var s;t[e]&&(s=t[e],delete t[e]),Object.defineProperty(t,e,{get(){return this._instanceProps&&this._instanceProps[e]?this._instanceProps[e]:this.getAttribute(o(e))},set(t){return this._instanceProps||(this._instanceProps={}),this._instanceProps[e]=t,this.setAttribute(o(e),"object"==typeof t?JSON.stringify(t):t.toString()),!0},enumerable:!0}),s&&(t[e]=s)}))}_preprocess(){this.computedCache={},this.props=this._processProps(),this._processRender()}_updateRender(){var e;this.template&&("object"!=typeof(e=this.template)&&"function"!=typeof e||"function"!=typeof e.then?(this.templateRenderer(this.template,this.root),this._callLifecycleMethods()):this.template.then((e=>{this.templateRenderer(e,this.root),this._callLifecycleMethods()})).catch((e=>console.error("A component render error occurred",e))))}_callLifecycleMethods(){"function"!=typeof this.mounted||this.isMountedCalled||this.mounted(),this.isMountedCalled=!0,"function"==typeof this.updated&&this.isMountedCalled&&this.updated()}})}(e,function(e){return t(t({},e),{},{created(){if(e.state&&"function"!=typeof e.state)throw new Error("State must be a function!");this._state=e.state||{},"function"==typeof this._state&&(this._state=this._state.bind(this)()),this.state=this._monitorState(this._state),this.setState=(e,t)=>{var s,n=e=>{if(e&&"object"==typeof e){var s=this.updated;for(var n in t&&(this.updated=()=>{t(),this.updated=s||void 0}),this.status="transaction",e)this.state[n]&&this.state[n]===e[n]||(this.state[n]=e[n]);this.status="render",this._processRender()}},r=e(this.state);"object"!=typeof(s=r)&&"function"!=typeof s||"function"!=typeof s.then?n(r):r.then(n)},e.created&&e.created.call(this)},_monitorState(e){var t=this;return new Proxy(e,{set:(e,s,n)=>(e[s]===n||(e[s]=n,t.computedCache={},"render"===t.status&&t._processRender()),!0)})}})}(s))}("my-counter",{renderer:function(e,t){for(;t.firstChild;)t.removeChild(t.firstChild);Array.isArray(e)?e.forEach((e=>t.appendChild(e))):t.appendChild(e)},state:()=>({count:0}),dec(){this.state.count=this.state.count-1},inc(){this.state.count=this.state.count+1},render(){return r(n||(e=['\n          <style>\n              span {\n                width: 4rem;\n                display: inline-block;\n                text-align: center;\n                font-size: 200%;\n              }\n        \n              button {\n                width: 64px;\n                height: 64px;\n                border: none;\n                border-radius: 10px;\n                background-color: seagreen;\n                color: white;\n                font-size: 200%;\n              }\n          </style>\n          <button onClick="','">-</button>\n          <span>','</span>\n          <button onClick="','">+</button>\n        '],t||(t=e.slice(0)),n=Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))),this.dec,this.state.count,this.inc);var e,t}});
  