rettangoli-ui 0.0.9-rc1 → 0.0.9-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
- var rettangoli=(()=>{var{isArray:ht}=Array,{getPrototypeOf:Rt,getOwnPropertyDescriptor:Lt}=Object,$=[],ct=()=>document.createRange(),E=(e,t,o)=>(e.set(t,o),o),Ht=(e,t)=>t.reduceRight(Vt,e),Vt=(e,t)=>e.childNodes[t],{setPrototypeOf:Bt}=Object,_,dt=(e,t,o)=>(_||(_=ct()),o?_.setStartAfter(e):_.setStartBefore(e),_.setEndAfter(t),_.deleteContents(),e),J=({firstChild:e,lastChild:t},o)=>dt(e,t,o),pt=!1,F=(e,t)=>pt&&e.nodeType===11?1/t<0?t?J(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,nt=e=>document.createComment(e),K=class extends(t=>{function o(s){return Bt(s,new.target.prototype)}return o.prototype=t.prototype,o})(DocumentFragment){#e=nt("<>");#o=nt("</>");#t=$;constructor(t){super(t),this.replaceChildren(this.#e,...t.childNodes,this.#o),pt=!0}get firstChild(){return this.#e}get lastChild(){return this.#o}get parentNode(){return this.#e.parentNode}remove(){J(this,!1)}replaceWith(t){J(this,!0).replaceWith(t)}valueOf(){let{parentNode:t}=this;if(t===this)this.#t===$&&(this.#t=[...this.childNodes]);else{if(t){let{firstChild:o,lastChild:s}=this;for(this.#t=[o];o!==s;)this.#t.push(o=o.nextSibling)}this.replaceChildren(...this.#t)}return this}},gt=(e,t,o)=>e.setAttribute(t,o),V=(e,t)=>e.removeAttribute(t),R,Dt=(e,t,o)=>{o=o.slice(1),R||(R=new WeakMap);let s=R.get(e)||E(R,e,{}),r=s[o];return r&&r[0]&&e.removeEventListener(o,...r),r=ht(t)?t:[t,!1],s[o]=r,r[0]&&e.addEventListener(o,...r),t},N=(e,t)=>{let{t:o,n:s}=e,r=!1;switch(typeof t){case"object":if(t!==null){(s||o).replaceWith(e.n=t.valueOf());break}case"undefined":r=!0;default:o.data=r?"":t,s&&(e.n=null,s.replaceWith(o))}return t},B=(e,t,o)=>e[o]=t,Pt=(e,t,o)=>B(e,t,o.slice(1)),X=(e,t,o)=>t==null?(V(e,o),t):B(e,t,o),ut=(e,t)=>(typeof t=="function"?t(e):t.current=e,t),Q=(e,t,o)=>(t==null?V(e,o):gt(e,o,t),t),Ut=(e,t,o)=>(e.toggleAttribute(o.slice(1),t),t),H=(e,t,o)=>{let{length:s}=t;if(e.data=`[${s}]`,s)return((r,n,i,a,p)=>{let u=i.length,h=n.length,d=u,l=0,c=0,f=null;for(;l<h||c<d;)if(h===l){let v=d<u?c?a(i[c-1],-0).nextSibling:a(i[d],0):p;for(;c<d;)r.insertBefore(a(i[c++],1),v)}else if(d===c)for(;l<h;)f&&f.has(n[l])||r.removeChild(a(n[l],-1)),l++;else if(n[l]===i[c])l++,c++;else if(n[h-1]===i[d-1])h--,d--;else if(n[l]===i[d-1]&&i[c]===n[h-1]){let v=a(n[--h],-0).nextSibling;r.insertBefore(a(i[c++],1),a(n[l++],-0).nextSibling),r.insertBefore(a(i[--d],1),v),n[h]=i[d]}else{if(!f){f=new Map;let v=c;for(;v<d;)f.set(i[v],v++)}if(f.has(n[l])){let v=f.get(n[l]);if(c<v&&v<d){let x=l,k=1;for(;++x<h&&x<d&&f.get(n[x])===v+k;)k++;if(k>v-c){let I=a(n[l],0);for(;c<v;)r.insertBefore(a(i[c++],1),I)}else r.replaceChild(a(i[c++],1),a(n[l++],-1))}else l++}else r.removeChild(a(n[l++],-1))}return i})(e.parentNode,o,t,F,e);switch(o.length){case 1:o[0].remove();case 0:break;default:dt(F(o[0],0),F(o.at(-1),-0),!1)}return $},It=new Map([["aria",(e,t)=>{for(let o in t){let s=t[o],r=o==="role"?o:`aria-${o}`;s==null?V(e,r):gt(e,r,s)}return t}],["class",(e,t)=>X(e,t,t==null?"class":"className")],["data",(e,t)=>{let{dataset:o}=e;for(let s in t)t[s]==null?delete o[s]:o[s]=t[s];return t}],["ref",ut],["style",(e,t)=>t==null?X(e,t,"style"):B(e.style,t,"cssText")]]),Ft=(e,t,o)=>{switch(t[0]){case".":return Pt;case"?":return Ut;case"@":return Dt;default:return o||"ownerSVGElement"in e?t==="ref"?ut:Q:It.get(t)||(t in e?t.startsWith("on")?B:((s,r)=>{let n;do n=Lt(s,r);while(!n&&(s=Rt(s)));return n})(e,t)?.set?X:Q:Q)}},Qt=(e,t)=>(e.textContent=t??"",t),z=(e,t,o)=>({a:e,b:t,c:o}),j=()=>z(null,null,$),ft=e=>(t,o)=>{let{a:s,b:r,c:n}=e(t,o),i=document.importNode(s,!0),a=$;if(r!==$){a=[];for(let l,c,f=0;f<r.length;f++){let{a:v,b:x,c:k}=r[f],I=v===c?l:l=Ht(i,c=v);a[f]=(p=x,u=I,h=k,d=x===H?[]:x===N?j():null,{v:$,u:p,t:u,n:h,c:d})}}var p,u,h,d;return((l,c)=>({b:l,c}))(n?i.firstChild:new K(i),a)},Gt=/^(?:plaintext|script|style|textarea|title|xmp)$/i,Zt=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,qt=/<([a-zA-Z0-9]+[a-zA-Z0-9:._-]*)([^>]*?)(\/?)>/g,Jt=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,Kt=/[\x01\x02]/g,G,Z,L=document.createElement("template"),Xt=(e,t)=>{if(t)return G||(G=document.createElementNS("http://www.w3.org/2000/svg","svg"),Z=ct(),Z.selectNodeContents(G)),Z.createContextualFragment(e);L.innerHTML=e;let{content:o}=L;return L=L.cloneNode(!1),o},q=e=>{let t=[],o;for(;o=e.parentNode;)t.push(t.indexOf.call(o.childNodes,e)),e=o;return t},it=()=>document.createTextNode(""),Yt=(e,t,o)=>{let s=Xt(((p,u,h)=>{let d=0;return p.join("").trim().replace(qt,(l,c,f,v)=>`<${c}${f.replace(Jt,"=$2$1").trimEnd()}${v?h||Zt.test(c)?" /":`></${c}`:""}>`).replace(Kt,l=>l===""?`<!--${u+d++}-->`:u+d++)})(e,O,o),o),{length:r}=e,n=$;if(r>1){let p=[],u=document.createTreeWalker(s,129),h=0,d=`${O}${h++}`;for(n=[];h<r;){let l=u.nextNode();if(l.nodeType===8){if(l.data===d){let c=ht(t[h-1])?H:N;c===N&&p.push(l),n.push(z(q(l),c,null)),d=`${O}${h++}`}}else{let c;for(;l.hasAttribute(d);){c||(c=q(l));let f=l.getAttribute(d);n.push(z(c,Ft(l,f,o),f)),V(l,d),d=`${O}${h++}`}!o&&Gt.test(l.localName)&&l.textContent.trim()===`<!--${d}-->`&&(n.push(z(c||q(l),Qt,null)),d=`${O}${h++}`)}}for(h=0;h<p.length;h++)p[h].replaceWith(it())}let{childNodes:i}=s,{length:a}=i;return a<1?(a=1,s.appendChild(it())):a===1&&r!==1&&i[0].nodeType!==1&&(a=0),E(vt,e,z(s,n,a===1))},vt=new WeakMap,O="is\xB5",bt=e=>(t,o)=>vt.get(t)||Yt(t,o,e),te=ft(bt(!1)),ee=ft(bt(!0)),Y=(e,{s:t,t:o,v:s})=>{if(e.a!==o){let{b:r,c:n}=(t?ee:te)(o,s);e.a=o,e.b=r,e.c=n}for(let{c:r}=e,n=0;n<r.length;n++){let i=s[n],a=r[n];switch(a.u){case H:a.v=H(a.t,oe(a.c,i),a.v);break;case N:let p=i instanceof A?Y(a.c||(a.c=j()),i):(a.c=null,i);p!==a.v&&(a.v=N(a,p));break;default:i!==a.v&&(a.v=a.u(a.t,i,a.n,a.v))}}return e.b},oe=(e,t)=>{let o=0,{length:s}=t;for(s<e.length&&e.splice(s);o<s;o++){let r=t[o];r instanceof A?t[o]=Y(e[o]||(e[o]=j()),r):e[o]=null}return t},A=class{constructor(t,o,s){this.s=t,this.t=o,this.v=s}toDOM(t=j()){return Y(t,this)}};var mt=e=>(t,...o)=>new A(e,t,o),S=mt(!1),me=mt(!0),at=new WeakMap,y=(e,t)=>((o,s)=>{let r=at.get(o)||E(at,o,j()),{b:n}=r,i=typeof s=="function"?s():s,a=i instanceof A?i.toDOM(r):i;return n!==a&&o.replaceChildren((r.b=a).valueOf()),o})(e,t),lt=new WeakMap,yt=e=>(t,o)=>{let s=lt.get(t)||E(lt,t,new Map);return s.get(o)||E(s,o,function(r,...n){return new A(e,r,n).toDOM(this)}.bind(j()))},ye=yt(!1),we=yt(!0);function b(e,...t){let o="";return e.forEach((s,r)=>{o+=s+(t[r]||"")}),o}var wt={default:void 0,s:"@media only screen and (max-width: 640px)"},w=(e,t,o={})=>{let s="";for(let[r,n]of Object.entries(wt)){r!=="default"&&(s+=`${n} {`);for(let[i,a]of Object.entries(t)){let p=o[i]?` ${o[i]} `:" ";for(let[u,h]of Object.entries(a)){let d=e[i],l=h.startsWith("--")?`var(${h})`:h,c=r==="default"?i:`${r}-${i}`,f=r==="default"?`h-${i}`:`${r}-h-${i}`;if(d){let x=d.split(" ").map(k=>`${k}: ${l};`).join(" ");s+=`
2
- :host([${c}="${u}"])${p}{
3
- ${x}
1
+ var rettangoli=(()=>{var{isArray:nt}=Array,{getPrototypeOf:_t,getOwnPropertyDescriptor:jt}=Object,x=[],it=()=>document.createRange(),z=(e,t,o)=>(e.set(t,o),o),Mt=(e,t)=>t.reduceRight(Rt,e),Rt=(e,t)=>e.childNodes[t],{setPrototypeOf:Wt}=Object,k,at=(e,t,o)=>(k||(k=it()),o?k.setStartAfter(e):k.setStartBefore(e),k.setEndAfter(t),k.deleteContents(),e),K=({firstChild:e,lastChild:t},o)=>at(e,t,o),lt=!1,Q=(e,t)=>lt&&e.nodeType===11?1/t<0?t?K(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,et=e=>document.createComment(e),X=class extends(t=>{function o(n){return Wt(n,new.target.prototype)}return o.prototype=t.prototype,o})(DocumentFragment){#e=et("<>");#o=et("</>");#t=x;constructor(t){super(t),this.replaceChildren(this.#e,...t.childNodes,this.#o),lt=!0}get firstChild(){return this.#e}get lastChild(){return this.#o}get parentNode(){return this.#e.parentNode}remove(){K(this,!1)}replaceWith(t){K(this,!0).replaceWith(t)}valueOf(){let{parentNode:t}=this;if(t===this)this.#t===x&&(this.#t=[...this.childNodes]);else{if(t){let{firstChild:o,lastChild:n}=this;for(this.#t=[o];o!==n;)this.#t.push(o=o.nextSibling)}this.replaceChildren(...this.#t)}return this}},ht=(e,t,o)=>e.setAttribute(t,o),B=(e,t)=>e.removeAttribute(t),T,Ot=(e,t,o)=>{o=o.slice(1),T||(T=new WeakMap);let n=T.get(e)||z(T,e,{}),s=n[o];return s&&s[0]&&e.removeEventListener(o,...s),s=nt(t)?t:[t,!1],n[o]=s,s[0]&&e.addEventListener(o,...s),t},E=(e,t)=>{let{t:o,n}=e,s=!1;switch(typeof t){case"object":if(t!==null){(n||o).replaceWith(e.n=t.valueOf());break}case"undefined":s=!0;default:o.data=s?"":t,n&&(e.n=null,n.replaceWith(o))}return t},H=(e,t,o)=>e[o]=t,zt=(e,t,o)=>H(e,t,o.slice(1)),Y=(e,t,o)=>t==null?(B(e,o),t):H(e,t,o),ct=(e,t)=>(typeof t=="function"?t(e):t.current=e,t),G=(e,t,o)=>(t==null?B(e,o):ht(e,o,t),t),Et=(e,t,o)=>(e.toggleAttribute(o.slice(1),t),t),L=(e,t,o)=>{let{length:n}=t;if(e.data=`[${n}]`,n)return((s,i,a,r,g)=>{let p=a.length,h=i.length,c=p,l=0,d=0,f=null;for(;l<h||d<c;)if(h===l){let v=c<p?d?r(a[d-1],-0).nextSibling:r(a[c],0):g;for(;d<c;)s.insertBefore(r(a[d++],1),v)}else if(c===d)for(;l<h;)f&&f.has(i[l])||s.removeChild(r(i[l],-1)),l++;else if(i[l]===a[d])l++,d++;else if(i[h-1]===a[c-1])h--,c--;else if(i[l]===a[c-1]&&a[d]===i[h-1]){let v=r(i[--h],-0).nextSibling;s.insertBefore(r(a[d++],1),r(i[l++],-0).nextSibling),s.insertBefore(r(a[--c],1),v),i[h]=a[c]}else{if(!f){f=new Map;let v=d;for(;v<c;)f.set(a[v],v++)}if(f.has(i[l])){let v=f.get(i[l]);if(d<v&&v<c){let w=l,$=1;for(;++w<h&&w<c&&f.get(i[w])===v+$;)$++;if($>v-d){let F=r(i[l],0);for(;d<v;)s.insertBefore(r(a[d++],1),F)}else s.replaceChild(r(a[d++],1),r(i[l++],-1))}else l++}else s.removeChild(r(i[l++],-1))}return a})(e.parentNode,o,t,Q,e);switch(o.length){case 1:o[0].remove();case 0:break;default:at(Q(o[0],0),Q(o.at(-1),-0),!1)}return x},Nt=new Map([["aria",(e,t)=>{for(let o in t){let n=t[o],s=o==="role"?o:`aria-${o}`;n==null?B(e,s):ht(e,s,n)}return t}],["class",(e,t)=>Y(e,t,t==null?"class":"className")],["data",(e,t)=>{let{dataset:o}=e;for(let n in t)t[n]==null?delete o[n]:o[n]=t[n];return t}],["ref",ct],["style",(e,t)=>t==null?Y(e,t,"style"):H(e.style,t,"cssText")]]),Tt=(e,t,o)=>{switch(t[0]){case".":return zt;case"?":return Et;case"@":return Ot;default:return o||"ownerSVGElement"in e?t==="ref"?ct:G:Nt.get(t)||(t in e?t.startsWith("on")?H:((n,s)=>{let i;do i=jt(n,s);while(!i&&(n=_t(n)));return i})(e,t)?.set?Y:G:G)}},Vt=(e,t)=>(e.textContent=t??"",t),O=(e,t,o)=>({a:e,b:t,c:o}),A=()=>O(null,null,x),dt=e=>(t,o)=>{let{a:n,b:s,c:i}=e(t,o),a=document.importNode(n,!0),r=x;if(s!==x){r=[];for(let l,d,f=0;f<s.length;f++){let{a:v,b:w,c:$}=s[f],F=v===d?l:l=Mt(a,d=v);r[f]=(g=w,p=F,h=$,c=w===L?[]:w===E?A():null,{v:x,u:g,t:p,n:h,c})}}var g,p,h,c;return((l,d)=>({b:l,c:d}))(i?a.firstChild:new X(a),r)},Lt=/^(?:plaintext|script|style|textarea|title|xmp)$/i,Bt=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,Ht=/<([a-zA-Z0-9]+[a-zA-Z0-9:._-]*)([^>]*?)(\/?)>/g,Dt=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,It=/[\x01\x02]/g,Z,q,V=document.createElement("template"),Pt=(e,t)=>{if(t)return Z||(Z=document.createElementNS("http://www.w3.org/2000/svg","svg"),q=it(),q.selectNodeContents(Z)),q.createContextualFragment(e);V.innerHTML=e;let{content:o}=V;return V=V.cloneNode(!1),o},J=e=>{let t=[],o;for(;o=e.parentNode;)t.push(t.indexOf.call(o.childNodes,e)),e=o;return t},ot=()=>document.createTextNode(""),Ut=(e,t,o)=>{let n=Pt(((g,p,h)=>{let c=0;return g.join("").trim().replace(Ht,(l,d,f,v)=>`<${d}${f.replace(Dt,"=$2$1").trimEnd()}${v?h||Bt.test(d)?" /":`></${d}`:""}>`).replace(It,l=>l===""?`<!--${p+c++}-->`:p+c++)})(e,W,o),o),{length:s}=e,i=x;if(s>1){let g=[],p=document.createTreeWalker(n,129),h=0,c=`${W}${h++}`;for(i=[];h<s;){let l=p.nextNode();if(l.nodeType===8){if(l.data===c){let d=nt(t[h-1])?L:E;d===E&&g.push(l),i.push(O(J(l),d,null)),c=`${W}${h++}`}}else{let d;for(;l.hasAttribute(c);){d||(d=J(l));let f=l.getAttribute(c);i.push(O(d,Tt(l,f,o),f)),B(l,c),c=`${W}${h++}`}!o&&Lt.test(l.localName)&&l.textContent.trim()===`<!--${c}-->`&&(i.push(O(d||J(l),Vt,null)),c=`${W}${h++}`)}}for(h=0;h<g.length;h++)g[h].replaceWith(ot())}let{childNodes:a}=n,{length:r}=a;return r<1?(r=1,n.appendChild(ot())):r===1&&s!==1&&a[0].nodeType!==1&&(r=0),z(gt,e,O(n,i,r===1))},gt=new WeakMap,W="is\xB5",pt=e=>(t,o)=>gt.get(t)||Ut(t,o,e),Ft=dt(pt(!1)),Qt=dt(pt(!0)),tt=(e,{s:t,t:o,v:n})=>{if(e.a!==o){let{b:s,c:i}=(t?Qt:Ft)(o,n);e.a=o,e.b=s,e.c=i}for(let{c:s}=e,i=0;i<s.length;i++){let a=n[i],r=s[i];switch(r.u){case L:r.v=L(r.t,Gt(r.c,a),r.v);break;case E:let g=a instanceof C?tt(r.c||(r.c=A()),a):(r.c=null,a);g!==r.v&&(r.v=E(r,g));break;default:a!==r.v&&(r.v=r.u(r.t,a,r.n,r.v))}}return e.b},Gt=(e,t)=>{let o=0,{length:n}=t;for(n<e.length&&e.splice(n);o<n;o++){let s=t[o];s instanceof C?t[o]=tt(e[o]||(e[o]=A()),s):e[o]=null}return t},C=class{constructor(t,o,n){this.s=t,this.t=o,this.v=n}toDOM(t=A()){return tt(t,this)}};var ut=e=>(t,...o)=>new C(e,t,o),_=ut(!1),he=ut(!0),rt=new WeakMap,j=(e,t)=>((o,n)=>{let s=rt.get(o)||z(rt,o,A()),{b:i}=s,a=typeof n=="function"?n():n,r=a instanceof C?a.toDOM(s):a;return i!==r&&o.replaceChildren((s.b=r).valueOf()),o})(e,t),st=new WeakMap,ft=e=>(t,o)=>{let n=st.get(t)||z(st,t,new Map);return n.get(o)||z(n,o,function(s,...i){return new C(e,s,i).toDOM(this)}.bind(A()))},ce=ft(!1),de=ft(!0);function b(e,...t){let o="";return e.forEach((n,s)=>{o+=n+(t[s]||"")}),o}var vt={default:void 0,s:"@media only screen and (max-width: 640px)"},y=(e,t,o={})=>{let n="";for(let[s,i]of Object.entries(vt)){s!=="default"&&(n+=`${i} {`);for(let[a,r]of Object.entries(t)){let g=o[a]?` ${o[a]} `:" ";for(let[p,h]of Object.entries(r)){let c=e[a],l=h.startsWith("--")?`var(${h})`:h,d=s==="default"?a:`${s}-${a}`,f=s==="default"?`h-${a}`:`${s}-h-${a}`;if(c){let w=c.split(" ").map($=>`${$}: ${l};`).join(" ");n+=`
2
+ :host([${d}="${p}"])${g}{
3
+ ${w}
4
4
  }
5
- :host([${f}="${u}"]:hover)${p}{
6
- ${x}
5
+ :host([${f}="${p}"]:hover)${g}{
6
+ ${w}
7
7
  }
8
- `}else s+=`
9
- :host([${c}="${u}"])${p}{
8
+ `}else n+=`
9
+ :host([${d}="${p}"])${g}{
10
10
  ${h}
11
11
  }
12
- :host([${f}="${u}"]:hover)${p}{
12
+ :host([${f}="${p}"]:hover)${g}{
13
13
  ${h}
14
14
  }
15
- `}}r!=="default"&&(s+="}")}return s};function re(e){if(e===null||e.includes("/"))return!1;let t=String(e);return/[0-9]$/.test(t)}var se=e=>/%$/.test(e),m=e=>{if(e!==void 0)return se(e)?e:re(e)?`${e}px`:e},g={xs:"--spacing-xs",s:"--spacing-s",m:"--spacing-m",l:"--spacing-l",xl:"--spacing-xl"};function D(e){let t="";for(let[o,s]of Object.entries(wt)){o!=="default"&&(t+=`${s} {
16
- `);let r="";for(let[n,i]of Object.entries(e[o]))i!=null&&(r+=`${n}: ${i};
15
+ `}}s!=="default"&&(n+="}")}return n};function Zt(e){if(e===null||e.includes("/"))return!1;let t=String(e);return/[0-9]$/.test(t)}var qt=e=>/%$/.test(e),m=e=>{if(e!==void 0)return qt(e)?e:Zt(e)?`${e}px`:e},u={xs:"--spacing-xs",s:"--spacing-s",m:"--spacing-m",l:"--spacing-l",xl:"--spacing-xl"};function D(e){let t="";for(let[o,n]of Object.entries(vt)){o!=="default"&&(t+=`${n} {
16
+ `);let s="";for(let[i,a]of Object.entries(e[o]))a!=null&&(s+=`${i}: ${a};
17
17
  `);t+=`:host {
18
- ${r.trim()}
18
+ ${s.trim()}
19
19
  }
20
20
  `,o!=="default"&&(t+=`}
21
21
  `)}return t}var M=b`
@@ -58,164 +58,164 @@ var rettangoli=(()=>{var{isArray:ht}=Array,{getPrototypeOf:Rt,getOwnPropertyDesc
58
58
  :host([flex="12"]) {
59
59
  flex: 12;
60
60
  }
61
- `;var ne={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},ie={mt:g,mr:g,mb:g,ml:g,m:g,mh:g,mv:g},ae={mt:"button",mr:"button",mb:"button",ml:"button",m:"button",mh:"button",mv:"button"},xt=w(ne,ie,ae);var St=new CSSStyleSheet;St.replaceSync(b`
62
- :host {
63
- display: contents;
64
- }
65
- slot {
66
- display: contents;
67
- }
61
+ `;var Jt={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},Kt={mt:u,mr:u,mb:u,ml:u,m:u,mh:u,mv:u},Xt={mt:"button",mr:"button",mb:"button",ml:"button",m:"button",mh:"button",mv:"button"},bt=y(Jt,Kt,Xt);var mt=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(b`
62
+ :host {
63
+ display: contents;
64
+ }
65
+ slot {
66
+ display: contents;
67
+ }
68
68
 
69
- button {
70
- border-style: solid;
71
- padding: 0px;
72
- font-size: var(--typography-body-s-font-size);
73
- font-weight: var(--typography-body-s-font-weight);
74
- line-height: var(--typography-body-s-line-height);
75
- letter-spacing: var(--typography-body-s-letter-spacing);
76
- }
69
+ button {
70
+ border-style: solid;
71
+ padding: 0px;
72
+ font-size: var(--typography-body-s-font-size);
73
+ font-weight: var(--typography-body-s-font-weight);
74
+ line-height: var(--typography-body-s-line-height);
75
+ letter-spacing: var(--typography-body-s-letter-spacing);
76
+ }
77
77
 
78
- button:hover {
79
- cursor: pointer;
80
- }
78
+ button:hover {
79
+ cursor: pointer;
80
+ }
81
81
 
82
- :host([t="ps"]) button,
83
- :host([t="p"]) button,
84
- :host([t="pl"]) button {
85
- color: var(--color-on-primary);
86
- border-color: var(--color-primary);
87
- background-color: var(--color-primary);
88
- }
82
+ :host([t="ps"]) button,
83
+ :host([t="p"]) button,
84
+ :host([t="pl"]) button {
85
+ color: var(--color-on-primary);
86
+ border-color: var(--color-primary);
87
+ background-color: var(--color-primary);
88
+ }
89
89
 
90
- :host([t="ps"]) button:hover,
91
- :host([t="p"]) button:hover,
92
- :host([t="pl"]) button:hover {
93
- border-color: var(--color-primary-hover);
94
- background-color: var(--color-primary-hover);
95
- }
90
+ :host([t="ps"]) button:hover,
91
+ :host([t="p"]) button:hover,
92
+ :host([t="pl"]) button:hover {
93
+ border-color: var(--color-primary-hover);
94
+ background-color: var(--color-primary-hover);
95
+ }
96
96
 
97
- :host([t="ps"]) button:active,
98
- :host([t="p"]) button:active,
99
- :host([t="pl"]) button:active {
100
- border-color: var(--color-primary-active);
101
- background-color: var(--color-primary-active);
102
- }
97
+ :host([t="ps"]) button:active,
98
+ :host([t="p"]) button:active,
99
+ :host([t="pl"]) button:active {
100
+ border-color: var(--color-primary-active);
101
+ background-color: var(--color-primary-active);
102
+ }
103
103
 
104
- :host([t="ss"]) button,
105
- :host([t="s"]) button,
106
- :host([t="sl"]) button {
107
- color: var(--color-on-secondary);
108
- border-color: var(--color-secondary);
109
- background-color: var(--color-secondary);
110
- }
104
+ :host([t="ss"]) button,
105
+ :host([t="s"]) button,
106
+ :host([t="sl"]) button {
107
+ color: var(--color-on-secondary);
108
+ border-color: var(--color-secondary);
109
+ background-color: var(--color-secondary);
110
+ }
111
111
 
112
- :host([t="ss"]) button:hover,
113
- :host([t="s"]) button:hover,
114
- :host([t="sl"]) button:hover {
115
- background-color: var(--color-secondary-hover);
116
- border-color: var(--color-secondary-hover);
117
- }
112
+ :host([t="ss"]) button:hover,
113
+ :host([t="s"]) button:hover,
114
+ :host([t="sl"]) button:hover {
115
+ background-color: var(--color-secondary-hover);
116
+ border-color: var(--color-secondary-hover);
117
+ }
118
118
 
119
- :host([t="ss"]) button:active,
120
- :host([t="s"]) button:active,
121
- :host([t="sl"]) button:active {
122
- background-color: var(--color-secondary-active);
123
- border-color: var(--color-secondary-active);
124
- }
119
+ :host([t="ss"]) button:active,
120
+ :host([t="s"]) button:active,
121
+ :host([t="sl"]) button:active {
122
+ background-color: var(--color-secondary-active);
123
+ border-color: var(--color-secondary-active);
124
+ }
125
125
 
126
- :host([t="es"]) button,
127
- :host([t="e"]) button,
128
- :host([t="el"]) button {
129
- color: var(--color-on-error);
130
- border-color: var(--color-error);
131
- background-color: var(--color-error);
132
- }
126
+ :host([t="es"]) button,
127
+ :host([t="e"]) button,
128
+ :host([t="el"]) button {
129
+ color: var(--color-on-error);
130
+ border-color: var(--color-error);
131
+ background-color: var(--color-error);
132
+ }
133
133
 
134
- :host([t="es"]) button:hover,
135
- :host([t="e"]) button:hover,
136
- :host([t="el"]) button:hover {
137
- background-color: var(--color-error-hover);
138
- border-color: var(--color-error-hover);
139
- }
134
+ :host([t="es"]) button:hover,
135
+ :host([t="e"]) button:hover,
136
+ :host([t="el"]) button:hover {
137
+ background-color: var(--color-error-hover);
138
+ border-color: var(--color-error-hover);
139
+ }
140
140
 
141
- :host([t="es"]) button:active,
142
- :host([t="e"]) button:active,
143
- :host([t="el"]) button:active {
144
- background-color: var(--color-error-active);
145
- border-color: var(--color-error-active);
146
- }
141
+ :host([t="es"]) button:active,
142
+ :host([t="e"]) button:active,
143
+ :host([t="el"]) button:active {
144
+ background-color: var(--color-error-active);
145
+ border-color: var(--color-error-active);
146
+ }
147
147
 
148
- :host([t="ns"]) button,
149
- :host([t="n"]) button,
150
- :host([t="nl"]) button {
151
- color: var(--color-on-surface);
152
- border-color: var(--color-surface-container);
153
- background-color: var(--color-surface-container);
154
- }
148
+ :host([t="ns"]) button,
149
+ :host([t="n"]) button,
150
+ :host([t="nl"]) button {
151
+ color: var(--color-on-surface);
152
+ border-color: var(--color-surface-container);
153
+ background-color: var(--color-surface-container);
154
+ }
155
155
 
156
- :host([t="ns"]) button:hover,
157
- :host([t="n"]) button:hover,
158
- :host([t="nl"]) button:hover {
159
- background-color: var(--color-surface-container-high);
160
- border-color: var(--color-surface-container-high);
161
- }
156
+ :host([t="ns"]) button:hover,
157
+ :host([t="n"]) button:hover,
158
+ :host([t="nl"]) button:hover {
159
+ background-color: var(--color-surface-container-high);
160
+ border-color: var(--color-surface-container-high);
161
+ }
162
162
 
163
- :host([t="ns"]) button:active,
164
- :host([t="n"]) button:active,
165
- :host([t="nl"]) button:active {
166
- background-color: var(--color-surface-container-high);
167
- border-color: var(--color-surface-container-high);
168
- }
163
+ :host([t="ns"]) button:active,
164
+ :host([t="n"]) button:active,
165
+ :host([t="nl"]) button:active {
166
+ background-color: var(--color-surface-container-high);
167
+ border-color: var(--color-surface-container-high);
168
+ }
169
169
 
170
- :host([t="ps"]) button,
171
- :host([t="ss"]) button,
172
- :host([t="es"]) button,
173
- :host([t="ns"]) button {
174
- height: var(--button-height-s);
175
- padding-left: var(--button-padding-horizontal-s);
176
- padding-right: var(--button-padding-horizontal-s);
177
- border-radius: var(--button-border-radius-s);
178
- }
170
+ :host([t="ps"]) button,
171
+ :host([t="ss"]) button,
172
+ :host([t="es"]) button,
173
+ :host([t="ns"]) button {
174
+ height: var(--button-height-s);
175
+ padding-left: var(--button-padding-horizontal-s);
176
+ padding-right: var(--button-padding-horizontal-s);
177
+ border-radius: var(--button-border-radius-s);
178
+ }
179
179
 
180
- :host([t="p"]) button,
181
- :host([t="s"]) button,
182
- :host([t="e"]) button,
183
- :host([t="n"]) button {
184
- height: var(--button-height-m);
185
- padding-left: var(--button-padding-horizontal-m);
186
- padding-right: var(--button-padding-horizontal-m);
187
- border-radius: var(--button-border-radius-m);
188
- }
180
+ :host([t="p"]) button,
181
+ :host([t="s"]) button,
182
+ :host([t="e"]) button,
183
+ :host([t="n"]) button {
184
+ height: var(--button-height-m);
185
+ padding-left: var(--button-padding-horizontal-m);
186
+ padding-right: var(--button-padding-horizontal-m);
187
+ border-radius: var(--button-border-radius-m);
188
+ }
189
189
 
190
- :host([t="pl"]) button,
191
- :host([t="sl"]) button,
192
- :host([t="el"]) button,
193
- :host([t="nl"]) button {
194
- height: var(--button-height-l);
195
- padding-left: var(--button-padding-horizontal-l);
196
- padding-right: var(--button-padding-horizontal-l);
197
- border-radius: var(--button-border-radius-l);
198
- font-size: var(--typography-label-l-font-size);
199
- font-weight: var(--typography-label-l-font-weight);
200
- line-height: var(--typography-label-l-line-height);
201
- letter-spacing: var(--typography-label-l-letter-spacing);
202
- }
203
- ${xt}
204
- ${M}
205
- `);var tt=class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[St],y(this.shadow,this.render)}static get observedAttributes(){return["key","href","target","w","t"]}_buttonRef={};_assingRef=t=>{this._buttonRef.current=t;let o=m(this.getAttribute("w"));o==="f"?this._buttonRef.current.style.width="100%":o!=null&&(this._buttonRef.current.style.width=o)};attributeChangedCallback(t,o,s){if(!this._buttonRef.current)return;let r=m(this.getAttribute("w"));r==="f"?this._buttonRef.current.style.width="100%":r!=null&&(this._buttonRef.current.style.width=r,this._buttonRef.current.style.minWidth=r,this._buttonRef.current.style.maxWidth=r),y(this.shadow,this.render)}render=()=>this.getAttribute("href")?S`
206
- <a
207
- href=${this.getAttribute("href")}
208
- target=${this.getAttribute("target")}
209
- >
210
- <button>
211
- <slot></slot>
212
- </button>
213
- </a>
214
- `:S`
215
- <button ref=${this._assingRef}>
216
- <slot></slot>
217
- </button>
218
- `},$t=tt;var Ct=b`
190
+ :host([t="pl"]) button,
191
+ :host([t="sl"]) button,
192
+ :host([t="el"]) button,
193
+ :host([t="nl"]) button {
194
+ height: var(--button-height-l);
195
+ padding-left: var(--button-padding-horizontal-l);
196
+ padding-right: var(--button-padding-horizontal-l);
197
+ border-radius: var(--button-border-radius-l);
198
+ font-size: var(--typography-label-l-font-size);
199
+ font-weight: var(--typography-label-l-font-weight);
200
+ line-height: var(--typography-label-l-line-height);
201
+ letter-spacing: var(--typography-label-l-letter-spacing);
202
+ }
203
+ ${bt}
204
+ ${M}
205
+ `),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o],e(this.shadow,this.render)}static get observedAttributes(){return["key","href","target","w","t"]}_buttonRef={};_assingRef=s=>{this._buttonRef.current=s;let i=m(this.getAttribute("w"));i==="f"?this._buttonRef.current.style.width="100%":i!=null&&(this._buttonRef.current.style.width=i)};attributeChangedCallback(s,i,a){if(!this._buttonRef.current)return;let r=m(this.getAttribute("w"));r==="f"?this._buttonRef.current.style.width="100%":r!=null&&(this._buttonRef.current.style.width=r,this._buttonRef.current.style.minWidth=r,this._buttonRef.current.style.maxWidth=r),e(this.shadow,this.render)}render=()=>this.getAttribute("href")?t`
206
+ <a
207
+ href=${this.getAttribute("href")}
208
+ target=${this.getAttribute("target")}
209
+ >
210
+ <button>
211
+ <slot></slot>
212
+ </button>
213
+ </a>
214
+ `:t`
215
+ <button ref=${this._assingRef}>
216
+ <slot></slot>
217
+ </button>
218
+ `}};var yt=b`
219
219
 
220
220
  :host([d="h"]) {
221
221
  flex-direction: row;
@@ -279,7 +279,7 @@ var rettangoli=(()=>{var{isArray:ht}=Array,{getPrototypeOf:Rt,getOwnPropertyDesc
279
279
  justify-content: center;
280
280
  }
281
281
  }
282
- `;var le={cur:"cursor"},he={cur:{p:"pointer",m:"move",grab:"grab",grabbing:"grabbing"}},C=w(le,he);var kt=b`
282
+ `;var Yt={cur:"cursor"},te={cur:{p:"pointer",m:"move",grab:"grab",grabbing:"grabbing"}},S=y(Yt,te);var wt=b`
283
283
  :host([sh]:not([sv])) {
284
284
  overflow-x: scroll;
285
285
  flex-wrap: nowrap;
@@ -297,7 +297,7 @@ var rettangoli=(()=>{var{isArray:ht}=Array,{getPrototypeOf:Rt,getOwnPropertyDesc
297
297
  flex-wrap: nowrap;
298
298
  }
299
299
 
300
- `;var T={xs:"--border-width-xs",s:"--border-width-s",m:"--border-width-m",l:"--border-width-l",xl:"--border-width-xl"},ce={pos:"position",shadow:"box-shadow",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",p:"padding",ph:"padding-left padding-right",pv:"padding-top padding-bottom",g:"gap",gv:"row-gap",gh:"column-gap",bw:"border-width",bwt:"border-top-width",bwr:"border-right-width",bwb:"border-bottom-width",bwl:"border-left-width",bc:"border-color",br:"border-radius"},de={bgc:{p:`
300
+ `;var N={xs:"--border-width-xs",s:"--border-width-s",m:"--border-width-m",l:"--border-width-l",xl:"--border-width-xl"},ee={pos:"position",shadow:"box-shadow",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",p:"padding",ph:"padding-left padding-right",pv:"padding-top padding-bottom",g:"gap",gv:"row-gap",gh:"column-gap",bw:"border-width",bwt:"border-top-width",bwr:"border-right-width",bwb:"border-bottom-width",bwl:"border-left-width",bc:"border-color",br:"border-radius"},oe={bgc:{p:`
301
301
  background-color: var(--color-primary);
302
302
  color: var(--color-on-primary);
303
303
  `,pc:`
@@ -358,36 +358,37 @@ var rettangoli=(()=>{var{isArray:ht}=Array,{getPrototypeOf:Rt,getOwnPropertyDesc
358
358
  left: 0;
359
359
  top: 0;
360
360
  height: 100%;
361
- `},shadow:{s:"--shadow-s",m:"--shadow-m",l:"--shadow-l"},pt:g,pr:g,pb:g,pl:g,p:g,ph:g,pv:g,g,gv:g,gh:g,bw:T,bwt:T,bwr:T,bwb:T,bwl:T,bc:{p:"--color-primary",pc:"--color-primary-container",s:"--color-secondary",sc:"--color-secondary-container",e:"--color-error",ec:"--color-error-container",su:"--color-surface",sucl:"--color-surface-container-low",suc:"--color-surface-container",such:"--color-surface-container-high",isu:"--color-inverse-surface",o:"--color-outline",ov:"--color-outline-variant"},br:{xs:"--border-radius-xs",s:"--border-radius-s",m:"--border-radius-m",l:"--border-radius-l",xl:"--border-radius-xl",f:"50%"}},P=w(ce,de);var pe={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},ge={mt:g,mr:g,mb:g,ml:g,m:g,mh:g,mv:g},W=w(pe,ge);var At=new CSSStyleSheet;At.replaceSync(b`
362
- slot {
363
- display: contents;
364
- }
365
- :host([hidden]) {
366
- display: none;
367
- }
368
- :host {
369
- display: flex;
370
- align-self: auto;
371
- align-content: flex-start;
372
- flex-wrap: wrap;
373
- border-style: solid;
374
- border-width: 0;
375
- box-sizing: border-box;
376
- }
377
- :host([stretch]) {
378
- align-self: stretch;
379
- }
380
- ${M}
381
- ${kt}
382
- ${Ct}
383
- ${W}
384
- ${C}
385
- ${P}
386
- `);var et=class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[At],y(this.shadow,this.render)}static get observedAttributes(){return["key","wh","w","h","hidden","s-w","s-h","s-d"]}_styles={default:{},s:{}};attributeChangedCallback(t,o,s){["default","s"].forEach(r=>{let n=d=>`${r==="default"?"":`${r}-`}${d}`,i=this.getAttribute(n("wh")),a=m(i===null?this.getAttribute(n("w")):i),p=m(i===null?this.getAttribute(n("h")):i),u=this.getAttribute(n("o")),h=this.getAttribute(n("z"));h!==null&&(this._styles[r]["z-index"]=h),u!==null&&(this._styles[r].opacity=u),a==="f"?this._styles[r].width="100%":a!==void 0&&(this._styles[r].width=a,this._styles[r]["min-width"]=a,this._styles[r]["max-width"]=a),p==="f"?this._styles[r].height="100%":p!==void 0&&(this._styles[r].height=p,this._styles[r]["min-height"]=p,this._styles[r]["max-height"]=p),this.hasAttribute("hidden")&&(this._styles[r].display="none")}),y(this.shadow,this.render)}render=()=>S`
387
- <style>
388
- ${D(this._styles)}
389
- </style>
390
- <slot></slot> `},_t=et;var ue={at:"text-align"},fe={at:{c:"center",e:"right",j:"justify"},s:{dm:`
361
+ `},shadow:{s:"--shadow-s",m:"--shadow-m",l:"--shadow-l"},pt:u,pr:u,pb:u,pl:u,p:u,ph:u,pv:u,g:u,gv:u,gh:u,bw:N,bwt:N,bwr:N,bwb:N,bwl:N,bc:{p:"--color-primary",pc:"--color-primary-container",s:"--color-secondary",sc:"--color-secondary-container",e:"--color-error",ec:"--color-error-container",su:"--color-surface",sucl:"--color-surface-container-low",suc:"--color-surface-container",such:"--color-surface-container-high",isu:"--color-inverse-surface",o:"--color-outline",ov:"--color-outline-variant"},br:{xs:"--border-radius-xs",s:"--border-radius-s",m:"--border-radius-m",l:"--border-radius-l",xl:"--border-radius-xl",f:"50%"}},I=y(ee,oe);var re={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},se={mt:u,mr:u,mb:u,ml:u,m:u,mh:u,mv:u},R=y(re,se);var xt=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(b`
362
+ slot {
363
+ display: contents;
364
+ }
365
+ :host([hidden]) {
366
+ display: none;
367
+ }
368
+ :host {
369
+ display: flex;
370
+ align-self: auto;
371
+ align-content: flex-start;
372
+ flex-wrap: wrap;
373
+ border-style: solid;
374
+ border-width: 0;
375
+ box-sizing: border-box;
376
+ }
377
+ :host([stretch]) {
378
+ align-self: stretch;
379
+ }
380
+ ${M}
381
+ ${wt}
382
+ ${yt}
383
+ ${R}
384
+ ${S}
385
+ ${I}
386
+ `),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o],e(this.shadow,this.render)}static get observedAttributes(){return["key","wh","w","h","hidden","s-w","s-h","s-d"]}_styles={default:{},s:{}};attributeChangedCallback(s,i,a){["default","s"].forEach(r=>{let g=f=>`${r==="default"?"":`${r}-`}${f}`,p=this.getAttribute(g("wh")),h=m(p===null?this.getAttribute(g("w")):p),c=m(p===null?this.getAttribute(g("h")):p),l=this.getAttribute(g("o")),d=this.getAttribute(g("z"));d!==null&&(this._styles[r]["z-index"]=d),l!==null&&(this._styles[r].opacity=l),h==="f"?this._styles[r].width="100%":h!==void 0&&(this._styles[r].width=h,this._styles[r]["min-width"]=h,this._styles[r]["max-width"]=h),c==="f"?this._styles[r].height="100%":c!==void 0&&(this._styles[r].height=c,this._styles[r]["min-height"]=c,this._styles[r]["max-height"]=c),this.hasAttribute("hidden")&&(this._styles[r].display="none")}),e(this.shadow,this.render)}render=()=>t`
387
+ <style>
388
+ ${D(this._styles)}
389
+ </style>
390
+ <slot></slot>
391
+ `}};var ne={at:"text-align"},ie={at:{c:"center",e:"right",j:"justify"},s:{dm:`
391
392
  font-size: var(--typography-display-m-font-size);
392
393
  font-weight: var(--typography-display-m-font-weight);
393
394
  line-height: var(--typography-display-m-line-height);
@@ -437,63 +438,61 @@ var rettangoli=(()=>{var{isArray:ht}=Array,{getPrototypeOf:Rt,getOwnPropertyDesc
437
438
  font-weight: var(--typography-label-m-font-weight);
438
439
  line-height: var(--typography-label-m-line-height);
439
440
  letter-spacing: var(--typography-label-m-letter-spacing);
440
- `}},jt=w(ue,fe);var ve={c:"color"},be={c:{"on-p":"--color-on-primary","on-pc":"--color-on-primary-container","on-s":"--color-on-secondary","on-sc":"--color-on-secondary-container","on-su":"--color-on-surface","on-su-v":"--color-on-surface-variant","i-on-su":"--color-inverse-on-surface","on-e":"--color-on-error","on-ec":"--color-on-error-container"}},U=w(ve,be);var Mt=new CSSStyleSheet;Mt.replaceSync(b`
441
- :host {
442
- display: block;
443
- }
444
- slot {
445
- display: contents;
446
- }
447
- :host ::slotted(a) {
448
- text-decoration: var(--anchor-text-decoration);
449
- color: var(--anchor-color);
450
- }
451
- :host ::slotted(a:hover) {
452
- text-decoration: var(--anchor-text-decoration-hover);
453
- color: var(--anchor-color-hover);
454
- }
455
- ${jt}
456
- ${U}
457
- ${W}
458
- ${C}
459
- `);var ot=class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[Mt]}static get observedAttributes(){return["key","w","ellipsis"]}connectedCallback(){y(this.shadow,this.render)}attributeChangedCallback(t,o,s){let r=m(this.getAttribute("w"));this.hasAttribute("ellipsis")&&(this.style.overflow="hidden",this.style.textOverflow="ellipsis",this.style.whiteSpace="nowrap"),r==="f"?this.style.width="100%":r!==void 0&&(this.style.width=r),y(this.shadow,this.render)}render=()=>S`
460
- <slot></slot>
461
- `},Wt=ot;var Ot=new CSSStyleSheet;Ot.replaceSync(b`
462
- :host {
463
- border-style: solid;
464
- box-sizing: border-box;
465
- overflow: hidden;
466
- border-width: 0;
467
- }
468
- slot {
469
- display: contents;
470
- }
471
- :host([of="con"]) img {
472
- object-fit: contain;
473
- }
474
- :host([of="cov"]) img {
475
- object-fit: cover;
476
- }
477
- :host([of="none"]) img {
478
- object-fit: none;
479
- }
480
- img {
481
- height: 100%;
482
- width: 100%;
483
- }
484
- ${P}
485
- ${W}
486
- ${C}
487
- `);var rt=class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[Ot]}_styles={default:{},s:{}};static get observedAttributes(){return["key","src","wh","w","h","hidden","height","width","s-wh","s-w","s-h"]}connectedCallback(){y(this.shadow,this.render)}attributeChangedCallback(t,o,s){["default","s"].forEach(r=>{let n=d=>`${r==="default"?"":`${r}-`}${d}`,i=this.getAttribute(n("wh")),a=m(i===null?this.getAttribute(n("w")):i),p=m(i===null?this.getAttribute(n("h")):i),u=this.getAttribute(n("o")),h=this.getAttribute(n("z"));h!==null&&(this._styles[r].zIndex=h),u!==null&&(this._styles[r].opacity=u),a==="f"?this._styles[r].width="100%":a!==void 0&&(this._styles[r].width=a,this._styles[r]["min-width"]=a,this._styles[r]["max-width"]=a),p==="f"?this._styles[r].height="100%":p!==void 0&&(this._styles[r].height=p,this._styles[r]["min-height"]=p,this._styles[r]["max-height"]=p)}),y(this.shadow,this.render)}render=()=>S`
488
- <style>
489
- ${D(this._styles)}
490
- </style>
491
- <img
492
- src="${this.getAttribute("src")}"
493
- width="${this.getAttribute("width")}"
494
- height="${this.getAttribute("height")}"
495
- >
496
- `},zt=rt;var Et=b`
441
+ `}},St=y(ne,ie);var ae={c:"color"},le={c:{"on-p":"--color-on-primary","on-pc":"--color-on-primary-container","on-s":"--color-on-secondary","on-sc":"--color-on-secondary-container","on-su":"--color-on-surface","on-su-v":"--color-on-surface-variant","i-on-su":"--color-inverse-on-surface","on-e":"--color-on-error","on-ec":"--color-on-error-container"}},P=y(ae,le);var $t=({render:e,html:t})=>{let o=new CSSStyleSheet;o.replaceSync(b`
442
+ :host {
443
+ display: block;
444
+ }
445
+ slot {
446
+ display: contents;
447
+ }
448
+ :host ::slotted(a) {
449
+ text-decoration: var(--anchor-text-decoration);
450
+ color: var(--anchor-color);
451
+ }
452
+ :host ::slotted(a:hover) {
453
+ text-decoration: var(--anchor-text-decoration-hover);
454
+ color: var(--anchor-color-hover);
455
+ }
456
+ ${St}
457
+ ${P}
458
+ ${R}
459
+ ${S}
460
+ `);class n extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}static get observedAttributes(){return["key","w","ellipsis"]}connectedCallback(){e(this.shadow,this.render)}attributeChangedCallback(i,a,r){let g=m(this.getAttribute("w"));this.hasAttribute("ellipsis")&&(this.style.overflow="hidden",this.style.textOverflow="ellipsis",this.style.whiteSpace="nowrap"),g==="f"?this.style.width="100%":g!==void 0&&(this.style.width=g),e(this.shadow,this.render)}render=()=>t` <slot></slot> `}return n};var Ct=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(b`
461
+ :host {
462
+ border-style: solid;
463
+ box-sizing: border-box;
464
+ overflow: hidden;
465
+ border-width: 0;
466
+ }
467
+ slot {
468
+ display: contents;
469
+ }
470
+ :host([of="con"]) img {
471
+ object-fit: contain;
472
+ }
473
+ :host([of="cov"]) img {
474
+ object-fit: cover;
475
+ }
476
+ :host([of="none"]) img {
477
+ object-fit: none;
478
+ }
479
+ img {
480
+ height: 100%;
481
+ width: 100%;
482
+ }
483
+ ${I}
484
+ ${R}
485
+ ${S}
486
+ `),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}_styles={default:{},s:{}};static get observedAttributes(){return["key","src","wh","w","h","hidden","height","width","s-wh","s-w","s-h"]}connectedCallback(){e(this.shadow,this.render)}attributeChangedCallback(s,i,a){["default","s"].forEach(r=>{let g=f=>`${r==="default"?"":`${r}-`}${f}`,p=this.getAttribute(g("wh")),h=m(p===null?this.getAttribute(g("w")):p),c=m(p===null?this.getAttribute(g("h")):p),l=this.getAttribute(g("o")),d=this.getAttribute(g("z"));d!==null&&(this._styles[r].zIndex=d),l!==null&&(this._styles[r].opacity=l),h==="f"?this._styles[r].width="100%":h!==void 0&&(this._styles[r].width=h,this._styles[r]["min-width"]=h,this._styles[r]["max-width"]=h),c==="f"?this._styles[r].height="100%":c!==void 0&&(this._styles[r].height=c,this._styles[r]["min-height"]=c,this._styles[r]["max-height"]=c)}),e(this.shadow,this.render)}render=()=>t`
487
+ <style>
488
+ ${D(this._styles)}
489
+ </style>
490
+ <img
491
+ src="${this.getAttribute("src")}"
492
+ width="${this.getAttribute("width")}"
493
+ height="${this.getAttribute("height")}"
494
+ />
495
+ `}};var kt=b`
497
496
  :host([pt="xs"]) svg {
498
497
  padding-top: var(--spacing-xs);
499
498
  }
@@ -609,10 +608,10 @@ ${C}
609
608
  padding-top: var(--spacing-xl);
610
609
  padding-bottom: var(--spacing-xl);
611
610
  }
612
- `;var Nt=new CSSStyleSheet;Nt.replaceSync(b`
613
- ${U}
614
- ${Et}
611
+ `;var At=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(b`
612
+ ${P}
613
+ ${kt}
615
614
  ${M}
616
- ${C}
617
- `);var st=class e extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[Nt]}static _icons={};static get observedAttributes(){return["key","svg","w","h","wh"]}static get icons(){return e._icons}static addIcon(t,o){e._icons[t]=o}connectedCallback(){this.render()}attributeChangedCallback(t,o,s){let r=this.getAttribute("wh"),n=m(r===null?this.getAttribute("w"):r),i=m(r===null?this.getAttribute("h"):r);n&&(this.style.width=n),i&&(this.style.height=i),this.render()}render=()=>{try{let t=this.getAttribute("svg"),o=e._icons[t]||(window.rtglIcons||{})[t];if(o){this.shadow.innerHTML=o;return}}catch(t){console.log("error in rtgl-svg render",t)}this.shadow.innerHTML=""}},Tt=st;customElements.define("rtgl-button",$t);customElements.define("rtgl-view",_t);customElements.define("rtgl-text",Wt);customElements.define("rtgl-image",zt);customElements.define("rtgl-svg",Tt);})();
615
+ ${S}
616
+ `),class U extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}static _icons={};static get observedAttributes(){return["key","svg","w","h","wh"]}static get icons(){return U._icons}static addIcon(s,i){U._icons[s]=i}connectedCallback(){this.render()}attributeChangedCallback(s,i,a){let r=this.getAttribute("wh"),g=m(r===null?this.getAttribute("w"):r),p=m(r===null?this.getAttribute("h"):r);g&&(this.style.width=g),p&&(this.style.height=p),this.render()}render=()=>{try{let s=this.getAttribute("svg"),i=U._icons[s]||(window.rtglIcons||{})[s];if(i){this.shadow.innerHTML=i;return}}catch(s){console.log("error in rtgl-svg render",s)}this.shadow.innerHTML=""}}};customElements.define("rtgl-button",mt({render:j,html:_}));customElements.define("rtgl-view",xt({render:j,html:_}));customElements.define("rtgl-text",$t({render:j,html:_}));customElements.define("rtgl-image",Ct({render:j,html:_}));customElements.define("rtgl-svg",At({render:j,html:_}));})();
618
617
  /*! (c) Andrea Giammarchi - MIT */