text: !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"set",function(){return me}),n.d(r,"resolve",function(){return we});var o=new Map;function c(e){var t=o.get(e);return void 0===t&&(t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.set(e,t)),t}function a(e,t){var n=window.ShadyCSS;return n&&!n.nativeShadow?e(n):t}function i(e){var t=String(e.tagName).toLowerCase();return"<".concat(t,">")}var u="ActiveXObject"in window;Promise.resolve();function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=function(e){return e},s=function(e){if("object"!==f(e))throw TypeError("Assigned value must be an object: ".concat("undefined"==typeof v?"undefined":f(v)));return e&&Object.freeze(e)};function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!=typeof e)throw TypeError("The first argument must be a function: ".concat(p(e)));var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){d(e,t,n[t])})}return e}({shadowRoot:!0},t),r={mode:"open"};return"object"===p(n.shadowRoot)&&Object.assign(r,n.shadowRoot),{get:function(t){var r=e(t);return function(){r(t,n.shadowRoot?t.shadowRoot:t)}},connect:function(e){n.shadowRoot&&!e.shadowRoot&&e.attachShadow(r)},observe:function(e,t){t()}}}var b=new WeakMap;function h(e){var t=b.get(e);return t||(t=new Set,b.set(e,t)),t}var m=new Set,g=function(e){return e()};function w(){try{m.forEach(function(e){try{h(e).forEach(g),m.delete(e)}catch(t){throw m.delete(e),t}})}catch(e){throw m.size&&w(),e}}function S(e){m.size||requestAnimationFrame(w),m.add(e)}var N=new WeakMap;function E(e,t){var n=N.get(e);n||(n=new Map,N.set(e,n));var r=n.get(t);return r||(r={target:e,key:t,value:void 0,contexts:void 0,deps:void 0,state:1,checksum:0,observed:!1},n.set(t,r)),r}function x(e){var t=e.state;return e.deps&&e.deps.forEach(function(e){e.target[e.key],t+=e.state}),t}function O(e){e.observed&&S(e),e.contexts&&e.contexts.forEach(O)}var j=null;function T(e,t,n){var r=E(e,t);return r.observed=!0,function(e,t){var n=h(e);return n.add(t),S(e),function(){return n.delete(t)}}(r,n)}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){var t="function"==typeof Map?new Map:void 0;return(C=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return M(e,arguments,P(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)})(e)}function M(e,t,n){return(M=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_(o,n.prototype),o}).apply(null,arguments)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var W=function(e,t){return t};function D(e,t){e.hybrids=t,e.callbacks=[],Object.keys(t).forEach(function(n){var r,o=t[n],a=R(o);r="function"===a?"render"===n?y(o):{get:o}:"object"!==a||null===o||Array.isArray(o)?function(e,t){var n=f(e),r=l;switch(n){case"string":r=String;break;case"number":r=Number;break;case"boolean":r=Boolean;break;case"function":e=(r=e)();break;case"object":e&&Object.freeze(e),r=s}return{get:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return n},set:function(e,t,n){return r(t,n)},connect:"object"!==n&&"undefined"!==n?function(n,r,o){if(n[r]===e){var a=c(r);if(n.hasAttribute(a)){var i=n.getAttribute(a);n[r]=""===i||i}}return t&&t(n,r,o)}:t}}(o):{get:o.get||W,set:o.set||!o.get&&W||void 0,connect:o.connect,observe:o.observe},Object.defineProperty(e.prototype,n,{get:function(){return function(e,t,n){var r=E(e,t);if(j===r)throw j=null,Error("Circular '".concat(t,"' get invocation in '").concat(i(e),"'"));j&&(j.deps=j.deps||new Set,j.deps.add(r)),j&&(j.observed||j.contexts&&j.contexts.size)&&(r.contexts=r.contexts||new Set,r.contexts.add(j));var o=j;if(j=r,r.checksum&&r.checksum===x(r))return j=o,r.value;r.deps&&r.deps.size&&(r.deps.forEach(function(e){e.contexts&&e.contexts.delete(r)}),r.deps=void 0);try{var c=n(e,r.value);c!==r.value&&(r.state+=1,r.value=c,O(r)),r.checksum=x(r),j=o}catch(e){throw j=null,e}return r.value}(this,n,r.get)},set:r.set&&function(e){!function(e,t,n,r){if(j)throw j=null,Error("Try to set '".concat(t,"' of '").concat(i(e),"' in get call"));var o=E(e,t),c=n(e,r,o.value);c!==o.value&&(o.state+=1,o.value=c,O(o))}(this,n,r.set,e)},enumerable:!0,configurable:!1}),r.connect&&e.callbacks.push(function(e){return r.connect(e,n,function(){!function(e,t,n){if(j)throw j=null,Error("Try to invalidate '".concat(t,"' in '").concat(i(e),"' get call"));var r=E(e,t);r.checksum=0,O(r),n&&(r.value=void 0)}(e,n)})}),r.observe&&e.callbacks.push(function(e){var t;return T(e,n,function(){var o=e[n];o!==t&&(r.observe(e,o,t),t=o)})})})}var L=new WeakMap;function B(e,t){var n=R(t);if("object"!==n&&"function"!==n)throw TypeError("Second argument must be an object or a function: ".concat(n));var r=window.customElements.get(e);if("function"===n)return r!==t?window.customElements.define(e,t):r;if(r){if(r.hybrids===t)return r;throw Error("Element '".concat(e,"' already defined"))}var o=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),A(this,P(n).apply(this,arguments))}var r,o,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(n,C(HTMLElement)),r=n,c=[{key:"name",get:function(){return e}}],(o=[{key:"connectedCallback",value:function(){for(var e=this.constructor.callbacks,t=[],n=0;n<e.length;n+=1){var r=e[n](this);r&&t.push(r)}L.set(this,t)}},{key:"disconnectedCallback",value:function(){for(var e=L.get(this),t=0;t<e.length;t+=1)e[t]()}}])&&k(r.prototype,o),c&&k(r,c),n}();return D(o,t),customElements.define(e,o),o}function z(e){return Object.keys(e).reduce(function(t,n){var r=c(n.replace(/((?!([A-Z]{2}|^))[A-Z])/g,"-$1"));return t[n]=B(r,e[n]),t},{})}function F(){return"object"===R(arguments.length<=0?void 0:arguments[0])?z(arguments.length<=0?void 0:arguments[0]):B.apply(void 0,arguments)}var X=new WeakMap,$={get:function(e,t){var n=X.get(e);return n||(t&&X.set(e,t),t)},set:function(e,t){return X.set(e,t),t}};function H(e){for(var t;e&&(t=$.get(e))&&t.endNode;)e=t.endNode;return e}function q(e){if(e.nodeType!==Node.TEXT_NODE)for(var t=e.childNodes[0];t;)e.removeChild(t),t=e.childNodes[0];else{var n=$.get(e);if(n.startNode)for(var r=H(n.endNode),o=n.startNode,c=r.nextSibling;o;){var a=o.nextSibling;o.parentNode.removeChild(o),o=a!==c&&a}}}var Z=new WeakMap;function I(e,t){var n=$.get(e),r=n.startNode,o=H(n.endNode);t.parentNode.insertBefore(e,t.nextSibling);for(var c=e,a=r;a;){var i=a.nextSibling;c.parentNode.insertBefore(a,c.nextSibling),c=a,a=i!==o.nextSibling&&i}}function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t,n){var r=Array.isArray(n)?"array":G(n),o=$.get(t,{});switch(o.type!==r&&(q(t),"array"===r&&Z.delete(t),o=$.set(t,{type:r}),""!==t.textContent&&(t.textContent="")),r){case"function":n(e,t);break;case"array":!function(e,t,n){var r=Z.get(t),o=n.map(function(e,t){return{id:Object.prototype.hasOwnProperty.call(e,"id")?e.id:t,value:e,placeholder:null,available:!0}});if(Z.set(t,o),r){var c=new Set;o.forEach(function(e){return c.add(e.id)}),r=r.filter(function(e){return!!c.has(e.id)||(q(e.placeholder),e.placeholder.parentNode.removeChild(e.placeholder),!1)})}for(var a=t,i=n.length-1,u=$.get(t),f=0;f<o.length;f+=1){var l=o[f],s=void 0;if(r)for(var d=0;d<r.length;d+=1)if(r[d].available&&r[d].id===l.id){s=r[d];break}var p=void 0;s?(s.available=!1,(p=s.placeholder).previousSibling!==a&&I(p,a),s.value!==l.value&&U(e,p,l.value)):(p=document.createTextNode(""),a.parentNode.insertBefore(p,a.nextSibling),U(e,p,l.value)),a=H($.get(p).endNode||p),0===f&&(u.startNode=p),f===i&&(u.endNode=a),l.placeholder=p}r&&r.forEach(function(e){e.available&&(q(e.placeholder),e.placeholder.parentNode.removeChild(e.placeholder))})}(e,t,n);break;default:t.textContent="number"===r||n?n:""}}function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var J=new WeakMap;function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Q=new WeakMap;function Y(e,t,n){var r=Q.get(t)||new Set,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return Array.isArray(e)?e.forEach(function(e){return t.add(e)}):null!==e&&"object"===K(e)?Object.keys(e).forEach(function(n){return e[n]&&t.add(n)}):t.add(e),t}(n);Q.set(t,o),o.forEach(function(e){t.classList.add(e),r.delete(e)}),r.forEach(function(e){t.classList.remove(e)})}function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var te=new WeakMap;function ne(e,t,n){if(null===n||"object"!==ee(n))throw TypeError("Style value must be an object in ".concat(i(t),":"),n);var r=te.get(t)||new Map,o=Object.keys(n).reduce(function(e,o){var a=c(o),i=n[o];return i||0===i?t.style.setProperty(a,i):t.style.removeProperty(a),e.set(a,i),r.delete(a),e},new Map);r.forEach(function(e,n){t.style[n]=""}),te.set(t,o)}function re(e,t,n){if("on"===t.substr(0,2))return function(e){return function(t,n,r,o){if(o&&n.removeEventListener(e,J.get(o),void 0!==o.options&&o.options),r){if("function"!=typeof r)throw Error("Event listener must be a function: ".concat(V(r)));J.set(r,r.bind(null,t)),n.addEventListener(e,J.get(r),void 0!==r.options&&r.options)}}}(t.substr(2));switch(e){case"class":return Y;case"style":return ne;default:return function(r,o,c){if(n||o instanceof SVGElement||!(t in o))if(!1===c||null==c)o.removeAttribute(e);else{var a=!0===c?"":String(c);o.setAttribute(e,a)}else o[t]!==c&&(o[t]=c)}}}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,c=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw c}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var ae=Date.now(),ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"{{h-".concat(ae,"-").concat(e,"}}")},ue=ie("(\\d+)"),fe=new RegExp("^".concat(ue,"$")),le=new RegExp(ue,"g"),se="--".concat(ae,"--"),de=new RegExp(se,"g"),pe=new WeakMap;var ye="object"===ce(window.ShadyDOM)&&window.ShadyDOM.inUse?function(e){var t;return{get currentNode(){return t},nextNode:function(){return!!(t=void 0===t?e.childNodes[0]:t.childNodes.length?t.childNodes[0]:t.nextSibling?t.nextSibling:t.parentNode.nextSibling)}}}:function(e){return document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1)},ve=document.createElement("div");function be(e,t,n){var r=document.createElement("template"),o=[],c=function(e,t){var n=e.reduce(function(t,n,r){return 0===r?n:e.slice(r).join("").match(/^\s*<\/\s*(table|tr|thead|tbody|tfoot|colgroup)>/)?"".concat(t,"\x3c!--").concat(ie(r-1),"--\x3e").concat(n):t+ie(r-1)+n},"");return t&&(n+="<style>\n".concat(t.join("\n/*------*/\n"),"\n</style>")),u?n.replace(/style\s*=\s*(["][^"]+["]|['][^']+[']|[^\s"'<>\/]+)/g,function(e){return"".concat(se).concat(e)}):n}(e,n);if(t&&(c="<svg>".concat(c,"</svg>")),u?r.innerHTML=c:(ve.innerHTML="<template>".concat(c,"</template>"),r.content.appendChild(ve.children[0].content)),t){var i=r.content.firstChild;r.content.removeChild(i),Array.from(i.childNodes).forEach(function(e){return r.content.appendChild(e)})}!function(e){for(var t,n=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,null,!1);t=n.nextNode();)fe.test(t.textContent)&&(t.parentNode.insertBefore(document.createTextNode(t.textContent),t),t.parentNode.removeChild(t))}(r.content);for(var f=ye(r.content),l=0,s=function(){var n=f.currentNode;if(n.nodeType===Node.TEXT_NODE){var r=n.textContent;if(!r.match(fe)){var c=r.match(le);if(c){var a=n;c.reduce(function(e,t){var n=oe(e.pop().split(t),2),r=n[0],o=n[1];return r&&e.push(r),e.push(t),o&&e.push(o),e},[r]).forEach(function(e,t){0===t?a.textContent=e:a=a.parentNode.insertBefore(document.createTextNode(e),a.nextSibling)})}}var i=n.textContent.match(fe);i&&(u||(n.textContent=""),o[i[1]]=[l,U])}else n.nodeType===Node.ELEMENT_NODE&&Array.from(n.attributes).forEach(function(r){var c=r.value.trim(),a=u?r.name.replace(se,""):r.name,i=c.match(fe);if(i){var f=e[i[1]].replace(/\s*=\s*['"]*$/g,"").split(" ").pop();o[i[1]]=[l,re(a,f,t)],n.removeAttribute(r.name)}else{var s=c.match(le);if(s){var d="attr__".concat(a);s.forEach(function(e,t){var n=oe(e.match(fe),2)[1];o[n]=[l,function(n,r,o){var i=$.get(r,{});i[d]=(i[d]||c).replace(e,null==o?"":o),1!==s.length&&t+1!==s.length||(r.setAttribute(a,i[d]),i[d]=void 0)}]}),r.value="",u&&a!==r.name&&(n.removeAttribute(r.name),n.setAttribute(a,""))}}});l+=1};f.nextNode();)s();return function(e,t,n){var c=$.get(t,{type:"function"});if(r!==c.template){(c.template||t.nodeType===Node.ELEMENT_NODE)&&q(t),c.lastArgs=null;var i=document.importNode(function(e,t){return t?a(function(n){var r=pe.get(e);r||(r=new Map,pe.set(e,r));var o=r.get(t);if(!o){(o=document.createElement("template")).content.appendChild(e.content.cloneNode(!0)),r.set(t,o);var c=o.content.querySelectorAll("style");Array.from(c).forEach(function(e){for(var t=e.childNodes.length+1,n=0;n<t;n+=1)e.parentNode.insertBefore(document.createTextNode(ie()),e)}),n.prepareTemplate(o,t.toLowerCase())}return o},e):e}(r,e.tagName).content,!0),f=ye(i),l=o.slice(0),s=0,d=l.shift(),p=[];for(c.template=r,c.markers=p;f.nextNode();){var y=f.currentNode;for(y.nodeType===Node.TEXT_NODE&&(fe.test(y.textContent)?y.textContent="":u&&(y.textContent=y.textContent.replace(de,"")));d&&d[0]===s;)p.push([y,d[1]]),d=l.shift();s+=1}if(t.nodeType===Node.TEXT_NODE){c.startNode=i.childNodes[0],c.endNode=i.childNodes[i.childNodes.length-1];for(var v=t,b=i.childNodes[0];b;)t.parentNode.insertBefore(b,v.nextSibling),v=b,b=i.childNodes[0]}else t.appendChild(i)}for(var h=0;h<c.markers.length;h+=1){var m=oe(c.markers[h],2),g=m[0],w=m[1];c.lastArgs&&c.lastArgs[h]===n[h]||w(e,g,n[h],c.lastArgs?c.lastArgs[h]:void 0)}t.nodeType!==Node.TEXT_NODE&&a(function(t){e.shadowRoot&&(c.lastArgs?t.styleSubtree(e):t.styleElement(e))}),c.lastArgs=n}}var he=new Map;function me(e,t){if(!e)throw Error("Target property name missing: ".concat(e));if(2===arguments.length)return function(n){n[e]=t};var n=he.get(e);return n||(n=function(t,n){var r=n.target;t[e]=r.value},he.set(e,n)),n}var ge=new WeakMap;function we(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200;return function(r,o){var c;t&&(c=setTimeout(function(){c=void 0,requestAnimationFrame(function(){t(r,o)})},n)),ge.set(o,e),e.then(function(t){c&&clearTimeout(c),ge.get(o)===e&&(t(r,o),ge.set(o,null))})}}var Se=ie(),Ne=ie("svg"),Ee=new Map,xe=new WeakMap,Oe={define:function(e){return F(e),this},key:function(e){return this.id=e,this},style:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xe.set(this,t),this}};function je(e,t,n){return Object.assign(function r(o){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,a=xe.get(r),i=e.join(Se);a&&(i+=a.join(Se)),n&&(i+=Ne);var u=Ee.get(i);u||(u=be(e,n,a),Ee.set(i,u)),u(o,c,t)},Oe)}function Te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return je(e,n)}function ke(e){e.count+=1}Object.assign(Te,r),Object.assign(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return je(e,n,!0)},r),n.d(t,"increaseCount",function(){return ke}),n.d(t,"SimpleCounter",function(){return Ae});const Ae={count:0,render:({count:e})=>Te`
      <button onclick="${ke}">
        Count: ${e}
      </button>
    `};F("simple-counter",Ae)}]);