class TokenList{constructor(e){this.sift(e).map(this.tokenize,this)}tokenize(e){(e.text=e.textContent).match(/[^{\}]+(?=})/g).map((e=>t=>(this[t]=this[t]||[]).push(e))(e))}sift(e){const t=[],n=/{(\w+|#)}/,s=e=>n.test(e.textContent)&&t.push(e),o=e=>[].slice.call(e).map(e=>n.test(e.value)&&t.push(e)),r=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,e=>e.nodeType===Node.TEXT_NODE?s(e):o(e.attributes)&&NodeFilter.FILTER_REJECT,null);for(;r.nextNode(););return t}bind(e){Object.keys(this).map(e=>this[e].map(e=>e.textContent=e.text)&&[e,this[e]]).map(([t,n])=>n.map(n=>n.textContent=n.textContent.replace(...["{"+t+"}",e[t]])))}}const HTMLElement=(e=>{const t=function(){};return t.prototype=e.prototype,t})(window.HTMLElement);(e=>{function t(e,t,n){for(n of this.querySelectorAll("[slot]"))(slot=(e.content||e).querySelector("slot[name="+n.getAttribute("slot")+"]")).parentNode.replaceChild(n,slot);this.innerHTML=e.innerHTML}const n=new XMLHttpRequest;for(let s of document.querySelectorAll('link[id*="-"]'))n.open("GET",s.href),n.responseType="document",n.onload=function(){const e=this.response.querySelectorAll.bind(this.response),n=this.link,s=n.nextSibling;for(let o of document.querySelectorAll(n.id))t.call(o,e("template")[0].cloneNode(!0));for(let t of e("style,link,script")){let e=t.getAttribute("as"),o=document.createElement(t.localName);["src","href","textContent","rel"].map(((e,t)=>n=>t[n]&&(e[n]=t[n]))(o,t)),"style"==e&&(o.rel="stylesheet"),n.parentNode.insertBefore(o,s),"script"==e&&(n.parentNode.insertBefore(document.createElement("script"),s).src=t.href)}},n.link=s,n.send()})(window.HTMLLinkElement);const Template=function(e){return e="string"==typeof e?document.querySelector("template[name="+e+"]"):e,e=this===HTMLTemplateElement?e.cloneNode(!0):e,e.name=e.getAttribute("name"),e.comment=document.createComment(e.name),e.parentNode.replaceChild(e.comment,e),Object.defineProperty(e,"bind",{value:function(e){let t="",n=this.innerHTML,s=[].concat(...[e]);const o="object"==typeof s[0]?Object.keys(s[0]):[].concat(["#","self"]),r=o.map(e=>"{"+e+"}"),l=document.createElement("template");(this.dependents||[]).map(e=>e.parentNode.removeChild(e));for(let i=0;i<s.length;i++)t+=((e,t)=>{let s=n;(e="object"==typeof e?e:{self:e})["#"]=t;for(let n=0;n<r.length;n++)s=s.split(r[n]).join(e[o[n]]);return s})(s[i],i);l.innerHTML=t,this.dependents=[].slice.call((l.content||l).childNodes),this.comment.after&&this.comment.after(...this.dependents),!this.comment.after&&this.dependents.reverse().map(e=>this.comment.parentNode.insertBefore(e,this.comment.nextSibling))}})};!window.customElements&&(window.customElements={}),new class{constructor({define:e,get:t,whenDefined:n}=customElements){window.customElements.define=this._define(void 0).bind(this)}_define(e=(e=>{})){return(t,n)=>e.apply(window.customElements,this.register(t,n))}register(e,t){return(this[e]=t).localName=e,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",this.queue(...arguments)):this.queue(...arguments)(),arguments}queue(e,t){return n=>[].slice.call(document.getElementsByTagName(e)).map(this.upgrade(t))}upgrade(e){return t=>Object.setPrototypeOf(t,e.prototype).connectedCallback&&t.connectedCallback()}swizzle(e,...t){}};const ParentNode=e=>class extends e{select(){return this.selectAll(...arguments)[0]}selectAll(e,...t){return e=[].concat(...[e]),[].slice.call(this.querySelectorAll(t.reduce((t,n)=>t+n+e.shift(),e.shift())))}},EventTarget=e=>class extends e{on(e,t){this.addEventListener(e,this.renderable(t))}renderable(e){return(t,n=!0)=>(t.prevent=(e=>!(n=!1)&&t.preventDefault()))&&!1!==e.call(this,t)&&n&&this.render()}},GlobalEventHandlers=e=>class extends e{onconnect(e,t){return this.templates=this.selectAll("template[name]").map(e=>new Template(e)),this.tokens=new TokenList(this),super.onconnect&&super.onconnect(),this}reflect(e){/^on/.test(e)&&e in HTMLElement.prototype&&this.on(e.substr(2),this[e])}register(e){[].slice.call(e.attributes).map(e=>e.name).map((t,n)=>/^on/.test(t)&&(n=(/{\s*(\w+)\s*}/.exec(e[t])||[])[1])&&(n=this[n])&&(e[t]=this.renderable(n)))}},Custom=e=>class extends(ParentNode(EventTarget(GlobalEventHandlers(e)))){connectedCallback(){this.context={},super.initialize&&super.initialize(),Object.getOwnPropertyNames(e.prototype).map(this.reflect,this),this.onconnect().render()}render(){this.tokens.bind(this),this.templates.map(e=>e.bind(this[e.name])),[this,...this.selectAll("*")].map(this.register,this),super.onidle&&super.onidle()}},Element=(e=>{const t=(e,t)=>n=>window.customElements.define(...[].concat(...[e]),Custom(n),{constructor:t});return t.prototype=e.prototype,t})(window.Element);
@@ -1679,17 +1679,17 @@
 )%7Breturn
- 
+(
 e=%22strin
@@ -1752,12 +1752,8 @@
 %5D%22):
-e,e=
 this
@@ -1796,39 +1796,34 @@
 0):e
-,e.name=e.getAttribute(%22name%22),
+).parentNode.replaceChild(
 e.co
@@ -1861,45 +1861,32 @@
 name
-),e.parentNode.replaceChild(e.comment
+=e.getAttribute(%22name%22))
 ,e),
@@ -2408,89 +2408,22 @@
 des)
-,this.comment.after&&this.comment.after(...this.dependents),!this.comment.after&&
+;for(let i of 
 this
@@ -2443,24 +2443,17 @@
 everse()
-.map(e=%3E
+)
 this.com
@@ -2481,17 +2481,17 @@
 tBefore(
-e
+i
 ,this.co
@@ -2508,17 +2508,16 @@
 Sibling)
-)
 %7D%7D)%7D;!wi

bump ??? distribution dist/snuggsi.min.es.js