@vanelsas/baredom 2.3.0 → 2.3.1

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.
Files changed (92) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +163 -158
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -14
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +15 -15
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +28 -28
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +24 -24
  21. package/dist/x-command-palette.js +24 -24
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -20
  24. package/dist/x-copy.js +21 -21
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +7 -7
  37. package/dist/x-image.js +18 -18
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +39 -39
  42. package/dist/x-liquid-glass.js +39 -39
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +27 -27
  46. package/dist/x-modal.js +11 -11
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +13 -13
  49. package/dist/x-neural-glow.js +30 -30
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +24 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +33 -33
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +13 -13
  70. package/dist/x-skeleton.js +1 -1
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -15
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +24 -24
  86. package/dist/x-timeline-item.js +21 -21
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +22 -22
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +12 -12
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +1 -1
package/dist/x-form.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var YO=function(a,b){return a.setAttribute("autocomplete",b)},bP=function(a){a=new $APP.Q(null,3,[$APP.im,a.getAttribute("loading"),ZO,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.ji,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.im);a=$APP.D(b,ZO);b=$APP.D(b,$APP.ji);c=c!=null&&$APP.N(c,"false");b=$APP.I($O,b)?b:"on";return new $APP.Q(null,3,[$APP.ui,c,aP,a!=null,$APP.Gl,b],null)},cP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=bP(a);YO(b,
3
- $APP.Gl.g(a));if($APP.n($APP.ui.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},dP=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.C.i(l,"checkbox")||$APP.C.i(l,"radio")||$APP.C.i(h,"x-checkbox")?
4
- $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},eP=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},fP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=bP(a);if($APP.n($APP.ui.g(g)))g=null;else{g=aP.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
- for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=dP(a),g=eP(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return eP(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
- g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.C.i(g,"submit")||$APP.C.i(g,"")?h.requestSubmit():$APP.C.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},gP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
- "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},hP=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},iP=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
- b:""},set:function(b){return b!=null&&$APP.N(b)?YO(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},kP=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return jP}});hP(b,"loading","loading");hP(b,"novalidate","novalidate");iP(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
- d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}gP(this);fP(this);return cP(this)};b.disconnectedCallback=function(){return gP(this)};b.attributeChangedCallback=function(){return cP(this)};b.submit=function(){var c=
2
+ var uP=function(a,b){return a.setAttribute("autocomplete",b)},yP=function(a){a=new $APP.Q(null,3,[$APP.pm,a.getAttribute("loading"),vP,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.mi,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.pm);a=$APP.D(b,vP);b=$APP.D(b,$APP.mi);c=c!=null&&$APP.N(c,"false");b=$APP.I(wP,b)?b:"on";return new $APP.Q(null,3,[$APP.yi,c,xP,a!=null,$APP.Nl,b],null)},zP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=yP(a);uP(b,
3
+ $APP.Nl.g(a));if($APP.n($APP.yi.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},AP=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.C.i(l,"checkbox")||$APP.C.i(l,"radio")||$APP.C.i(h,"x-checkbox")?
4
+ $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},BP=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},CP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=yP(a);if($APP.n($APP.yi.g(g)))g=null;else{g=xP.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
+ for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=AP(a),g=BP(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return BP(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
+ g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.C.i(g,"submit")||$APP.C.i(g,"")?h.requestSubmit():$APP.C.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},DP=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
+ "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},EP=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},FP=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
+ b:""},set:function(b){return b!=null&&$APP.N(b)?uP(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},HP=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return GP}});EP(b,"loading","loading");EP(b,"novalidate","novalidate");FP(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
+ d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}DP(this);CP(this);return zP(this)};b.disconnectedCallback=function(){return DP(this)};b.attributeChangedCallback=function(){return zP(this)};b.submit=function(){var c=
10
10
  $APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.C.i(d,"")||$APP.C.i(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
11
- e+=1;else return null};return a},lP=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",kP())},ZO=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),aP=new $APP.K(null,"novalidate?","novalidate?",491529885);var jP=["loading","novalidate","autocomplete"],$O=new $APP.S(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ha("baredom.exports.x_form.init",lP);export const init=lP;
11
+ e+=1;else return null};return a},IP=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",HP())},vP=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),xP=new $APP.K(null,"novalidate?","novalidate?",491529885);var GP=["loading","novalidate","autocomplete"],wP=new $APP.R(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.ha("baredom.exports.x_form.init",IP);export const init=IP;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var xU=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.fe,$APP.ae.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.nh.i(b,1));return new $APP.Q(null,7,[$APP.Ej,$APP.pc(a,$APP.fd(e,d)),$APP.rl,h+l,$APP.ql,g+m,$APP.Hh,c*p,uU,$APP.fd(e,4),vU,q,wU,v],null)}),$APP.dg(0,b))},yU=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
2
+ var UU=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.fe,$APP.ae.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.qh.i(b,1));return new $APP.Q(null,7,[$APP.Jj,$APP.pc(a,$APP.fd(e,d)),$APP.xl,h+l,$APP.wl,g+m,$APP.Kh,c*p,RU,$APP.fd(e,4),SU,q,TU,v],null)}),$APP.dg(0,b))},VU=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot");c.textContent=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;box-sizing:border-box;color-scheme:light dark;--x-gaussian-blur-bg:transparent;--x-gaussian-blur-z-index:0;--x-gaussian-blur-border-radius:0;}:host{border-radius:var(--x-gaussian-blur-border-radius);}[part\x3dbackdrop]{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:var(--x-gaussian-blur-z-index);background:var(--x-gaussian-blur-bg);}[part\x3dcontent]{position:relative;z-index:1;width:100%;height:100%;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;}@keyframes x-gb-float-0{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(12%,-18%);}50%{transform:translate(-50%,-50%) translate(-10%,15%);}75%{transform:translate(-50%,-50%) translate(15%,6%);}}@keyframes x-gb-float-1{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-15%,10%);}50%{transform:translate(-50%,-50%) translate(18%,-12%);}75%{transform:translate(-50%,-50%) translate(-8%,-16%);}}@keyframes x-gb-float-2{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(10%,16%);}50%{transform:translate(-50%,-50%) translate(-18%,-8%);}75%{transform:translate(-50%,-50%) translate(14%,-12%);}}@keyframes x-gb-float-3{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-12%,-10%);}50%{transform:translate(-50%,-50%) translate(16%,18%);}75%{transform:translate(-50%,-50%) translate(-10%,14%);}}@keyframes x-gb-pulse-0{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.2) translate(10%,-14%);}66%{transform:translate(-50%,-50%) scale(0.85) translate(-10%,10%);}}@keyframes x-gb-pulse-1{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.85) translate(-14%,10%);}66%{transform:translate(-50%,-50%) scale(1.2) translate(12%,-8%);}}@keyframes x-gb-pulse-2{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.18) translate(8%,16%);}66%{transform:translate(-50%,-50%) scale(0.82) translate(-16%,-10%);}}@keyframes x-gb-pulse-3{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.88) translate(-10%,-14%);}66%{transform:translate(-50%,-50%) scale(1.15) translate(10%,16%);}}:host([data-paused]) .blob{animation-play-state:paused;}@media (prefers-reduced-motion:reduce){.blob{animation:none!important;}}";
4
- d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},zU=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},JU=function(a){var b=
5
- $APP.zf([AU,$APP.Rg,$APP.wj,$APP.Xl,$APP.Hh,$APP.fi,$APP.li,$APP.Mh,BU],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,BU);var d=$APP.D(c,AU),e=$APP.D(c,$APP.Rg),g=$APP.D(c,$APP.wj);var h=$APP.D(c,$APP.Xl);var l=$APP.D(c,$APP.Hh),m=$APP.D(c,$APP.fi),p=$APP.D(c,$APP.li);c=$APP.D(c,$APP.Mh);h=CU(h);
6
- typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.oh.i(12,$APP.nh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D(DU,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.oh.i(100,$APP.nh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(EU,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.I(FU,e)?
7
- e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=xU(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.oh.i(1,$APP.nh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(GU,b)?b:"normal";h=$APP.zf([AU,$APP.Rg,$APP.Xl,HU,$APP.fi,$APP.um,$APP.li,$APP.Mh,BU,IU],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.fi);c=$APP.D(b,$APP.li);m=$APP.D(b,BU);l=$APP.D(b,$APP.Rg);
8
- d=$APP.D(b,AU);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.um);p=$APP.D(m,$APP.Rg);c=$APP.D(m,HU);$APP.D(m,$APP.fi);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
- e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.pc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.Ej),A=$APP.D(x,$APP.rl),B=$APP.D(x,$APP.ql),E=$APP.D(x,$APP.Hh),H=$APP.D(x,uU);q=$APP.D(x,vU);x=$APP.D(x,wU);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(B)+"%");v.setProperty("width",
10
- E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}zU(a,b)},KU=function(a){function b(){return zU(a,
11
- c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||yU(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);JU(a)},LU=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
- ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,B,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
13
- "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),q=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,B,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,B,E,H){return function(G){return typeof G===
14
- "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},NU=function(){var a=class extends HTMLElement{};a.observedAttributes=MU;a.prototype.connectedCallback=function(){KU(this);return null};
15
- a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&JU(this);return null};LU(a.prototype);return a},OU=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",NU());return null},HU=new $APP.K(null,"speed-s",
16
- "speed-s",-1018350546),BU=new $APP.K(null,"blend","blend",249565561),AU=new $APP.K(null,"paused","paused",-1710376127),IU=new $APP.K(null,"size-pct","size-pct",-741809955),uU=new $APP.K(null,"anim-index","anim-index",-1563021855),wU=new $APP.K(null,"delay-factor","delay-factor",-751650178),vU=new $APP.K(null,"duration-factor","duration-factor",-409465019);var MU="colors blur speed count size opacity animation blend paused".split(" ");
17
- $APP.zf([AU,$APP.Rg,$APP.wj,$APP.Xl,$APP.Hh,$APP.fi,$APP.li,$APP.Mh,BU],[new $APP.Q(null,2,[$APP.Z,$APP.Sj,$APP.vk,"paused"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"colors"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"blur"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
18
- $APP.vk,"count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.vk,"blend"],null)]);
19
- var FU=new $APP.S(null,new $APP.Q(null,3,["float",null,"none",null,"pulse",null],null),null),GU=new $APP.S(null,new $APP.Q(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),EU=new $APP.Q(null,3,["slow",18,"medium",10,"fast",5],null),DU=new $APP.Q(null,3,["small",30,"medium",50,"large",70],null),CU=function CU(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.fe,$APP.ph.i($APP.ae.g(function(c){return c.trim()}),
20
- $APP.ce(function(c){return $APP.N("",c)})),a)):CU.g?CU.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):CU.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",OU);export const init=OU;
4
+ d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},WU=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},fV=function(a){var b=
5
+ $APP.zf([XU,$APP.Ug,$APP.Bj,$APP.km,$APP.Kh,$APP.ii,$APP.oi,$APP.Ph,YU],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,YU);var d=$APP.D(c,XU),e=$APP.D(c,$APP.Ug),g=$APP.D(c,$APP.Bj);var h=$APP.D(c,$APP.km);var l=$APP.D(c,$APP.Kh),m=$APP.D(c,$APP.ii),p=$APP.D(c,$APP.oi);c=$APP.D(c,$APP.Ph);h=ZU(h);
6
+ typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.rh.i(12,$APP.qh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D($U,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.rh.i(100,$APP.qh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(aV,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.I(bV,e)?
7
+ e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=UU(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.rh.i(1,$APP.qh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(cV,b)?b:"normal";h=$APP.zf([XU,$APP.Ug,$APP.km,dV,$APP.ii,$APP.Bm,$APP.oi,$APP.Ph,YU,eV],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.ii);c=$APP.D(b,$APP.oi);m=$APP.D(b,YU);l=$APP.D(b,$APP.Ug);
8
+ d=$APP.D(b,XU);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.Bm);p=$APP.D(m,$APP.Ug);c=$APP.D(m,dV);$APP.D(m,$APP.ii);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
+ e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.pc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.Jj),A=$APP.D(x,$APP.xl),B=$APP.D(x,$APP.wl),E=$APP.D(x,$APP.Kh),G=$APP.D(x,RU);q=$APP.D(x,SU);x=$APP.D(x,TU);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(B)+"%");v.setProperty("width",
10
+ E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=G,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}WU(a,b)},gV=function(a){function b(){return WU(a,
11
+ c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||VU(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);fV(a)},hV=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
+ ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,B,E,G,H){return function(){var J=this.getAttribute(G);return $APP.n(J)?J:H}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,B,E,G){return function(H){return typeof H===
13
+ "string"&&$APP.N("",H)?this.setAttribute(G,H):this.removeAttribute(G)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),q=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,B,E,G,H){return function(){var J=this.getAttribute(G);return $APP.n(J)?J:H}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,B,E,G){return function(H){return typeof H===
14
+ "string"&&$APP.N("",H)?this.setAttribute(G,H):this.removeAttribute(G)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},jV=function(){var a=class extends HTMLElement{};a.observedAttributes=iV;a.prototype.connectedCallback=function(){gV(this);return null};
15
+ a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&fV(this);return null};hV(a.prototype);return a},kV=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",jV());return null},dV=new $APP.K(null,"speed-s",
16
+ "speed-s",-1018350546),YU=new $APP.K(null,"blend","blend",249565561),XU=new $APP.K(null,"paused","paused",-1710376127),eV=new $APP.K(null,"size-pct","size-pct",-741809955),RU=new $APP.K(null,"anim-index","anim-index",-1563021855),TU=new $APP.K(null,"delay-factor","delay-factor",-751650178),SU=new $APP.K(null,"duration-factor","duration-factor",-409465019);var iV="colors blur speed count size opacity animation blend paused".split(" ");
17
+ $APP.zf([XU,$APP.Ug,$APP.Bj,$APP.km,$APP.Kh,$APP.ii,$APP.oi,$APP.Ph,YU],[new $APP.Q(null,2,[$APP.Z,$APP.Xj,$APP.Bk,"paused"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"colors"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"blur"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
18
+ $APP.Bk,"count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Bk,"blend"],null)]);
19
+ var bV=new $APP.R(null,new $APP.Q(null,3,["float",null,"none",null,"pulse",null],null),null),cV=new $APP.R(null,new $APP.Q(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),aV=new $APP.Q(null,3,["slow",18,"medium",10,"fast",5],null),$U=new $APP.Q(null,3,["small",30,"medium",50,"large",70],null),ZU=function ZU(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.fe,$APP.sh.i($APP.ae.g(function(c){return c.trim()}),
20
+ $APP.ce(function(c){return $APP.N("",c)})),a)):ZU.g?ZU.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):ZU.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",kV);export const init=kV;
package/dist/x-grid.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var WM=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},XM=function(a,b,c){return $APP.I(b,a)?a:c},YM=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},ZM=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},$M=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},kN=function(a){var b=$APP.M(a);
3
- a=$APP.D(b,aN);var c=$APP.D(b,bN),d=$APP.D(b,$APP.Vl),e=$APP.D(b,cN),g=$APP.D(b,dN),h=$APP.D(b,$APP.zk),l=$APP.D(b,eN),m=$APP.D(b,$APP.gj);b=$APP.D(b,$APP.Rj);h=ZM(h);l=$M(l);var p=XM(b,fN,"md");b=function(){var v=$APP.I(fN,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.I(fN,m)?m:null;return $APP.n(v)?v:p}();g=XM(g,gN,"stretch");c=XM(c,gN,"stretch");e=YM(XM(e,hN,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.zf([cN,dN,$APP.zk,$APP.gj,$APP.Rj,iN,aN,
4
- jN,$APP.Vl,bN],[e,g,h,WM(q),p,b,$APP.F(a),q,WM(b),c])},lN=function(a){var b=$APP.zf([cN,dN,$APP.zk,eN,$APP.gj,$APP.Rj,aN,$APP.Vl,bN],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=kN(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Rj.g(b));c.setProperty("--x-grid-columns",
5
- $APP.zk.g(b));c.setProperty("--x-grid-row-gap",$APP.Vl.g(b));c.setProperty("--x-grid-column-gap",$APP.gj.g(b));c.setProperty("--x-grid-align-items",dN.g(b));c.setProperty("--x-grid-justify-items",bN.g(b));b=c.setProperty("--x-grid-auto-flow",cN.g(b))}else b=null;return b},mN=function(a){if(!$APP.Dg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}lN(a);return a},oN=function(){var a=class extends HTMLElement{};a.observedAttributes=nN;a.prototype.connectedCallback=function(){return mN(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_grid_initialized")?lN(this):mN(this)};return a},pN=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
- oN())},eN=new $APP.K(null,"min-column-size","min-column-size",-1066019378),aN=new $APP.K(null,"inline","inline",1399884222),jN=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),dN=new $APP.K(null,"align-items","align-items",-267946462),iN=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),cN=new $APP.K(null,"auto-flow","auto-flow",-1524521728),bN=new $APP.K(null,"justify-items","justify-items",1638310783);var nN="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),fN=new $APP.S(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),gN=new $APP.S(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),hN=new $APP.S(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",pN);export const init=pN;
2
+ var sN=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},tN=function(a,b,c){return $APP.I(b,a)?a:c},uN=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},vN=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},wN=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},HN=function(a){var b=$APP.M(a);
3
+ a=$APP.D(b,xN);var c=$APP.D(b,yN),d=$APP.D(b,$APP.im),e=$APP.D(b,zN),g=$APP.D(b,AN),h=$APP.D(b,$APP.Fk),l=$APP.D(b,BN),m=$APP.D(b,$APP.lj);b=$APP.D(b,$APP.Wj);h=vN(h);l=wN(l);var p=tN(b,CN,"md");b=function(){var v=$APP.I(CN,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.I(CN,m)?m:null;return $APP.n(v)?v:p}();g=tN(g,DN,"stretch");c=tN(c,DN,"stretch");e=uN(tN(e,EN,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.zf([zN,AN,$APP.Fk,$APP.lj,$APP.Wj,FN,xN,
4
+ GN,$APP.im,yN],[e,g,h,sN(q),p,b,$APP.F(a),q,sN(b),c])},IN=function(a){var b=$APP.zf([zN,AN,$APP.Fk,BN,$APP.lj,$APP.Wj,xN,$APP.im,yN],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=HN(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Wj.g(b));c.setProperty("--x-grid-columns",
5
+ $APP.Fk.g(b));c.setProperty("--x-grid-row-gap",$APP.im.g(b));c.setProperty("--x-grid-column-gap",$APP.lj.g(b));c.setProperty("--x-grid-align-items",AN.g(b));c.setProperty("--x-grid-justify-items",yN.g(b));b=c.setProperty("--x-grid-auto-flow",zN.g(b))}else b=null;return b},JN=function(a){if(!$APP.Dg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}IN(a);return a},LN=function(){var a=class extends HTMLElement{};a.observedAttributes=KN;a.prototype.connectedCallback=function(){return JN(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_grid_initialized")?IN(this):JN(this)};return a},MN=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
+ LN())},BN=new $APP.K(null,"min-column-size","min-column-size",-1066019378),xN=new $APP.K(null,"inline","inline",1399884222),GN=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),AN=new $APP.K(null,"align-items","align-items",-267946462),FN=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),zN=new $APP.K(null,"auto-flow","auto-flow",-1524521728),yN=new $APP.K(null,"justify-items","justify-items",1638310783);var KN="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),CN=new $APP.R(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),DN=new $APP.R(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),EN=new $APP.R(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",MN);export const init=MN;
package/dist/x-icon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var EM=function(){return new $APP.Q(null,3,[$APP.Lh,""+$APP.T.g(CM)+"px",DM,"md",$APP.Rk,CM],null)},GM=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.C.i("",a))return EM();if($APP.I(FM,b))return a=$APP.D(FM,b),new $APP.Q(null,3,[$APP.Lh,""+$APP.T.g(a)+"px",DM,b,$APP.Rk,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.C.i(""+$APP.T.g(b),a)?new $APP.Q(null,3,[$APP.Lh,""+$APP.T.g(b)+"px",DM,null,$APP.Rk,b],null):EM()}return EM()},IM=function(a){if(!$APP.n($APP.k(a,
2
+ var aN=function(){return new $APP.Q(null,3,[$APP.Oh,""+$APP.T.g(ZM)+"px",$M,"md",$APP.Xk,ZM],null)},cN=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.C.i("",a))return aN();if($APP.I(bN,b))return a=$APP.D(bN,b),new $APP.Q(null,3,[$APP.Oh,""+$APP.T.g(a)+"px",$M,b,$APP.Xk,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.C.i(""+$APP.T.g(b),a)?new $APP.Q(null,3,[$APP.Oh,""+$APP.T.g(b)+"px",$M,null,$APP.Xk,b],null):aN()}return aN()},eN=function(a){if(!$APP.n($APP.k(a,
3
3
  "__xIconRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("slot");c.textContent=':host{display:inline-flex;align-items:center;justify-content:center;line-height:0;vertical-align:middle;color:var(--x-icon-color,currentColor);--x-icon-size:20px;}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-icon-size);height:var(--x-icon-size);}::slotted(svg){display:block;width:100%;height:100%;}::slotted(svg[fill\x3d"currentColor"]),::slotted(svg[stroke\x3d"currentColor"]){color:inherit;}';
4
- d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.Q(null,2,[$APP.yi,b,HM,d],null)}},QM=function(a){var b=new $APP.Q(null,4,[$APP.Cl,a.getAttribute("size"),$APP.Lm,a.getAttribute("color"),$APP.ki,a.getAttribute("label"),JM,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Cl),d=$APP.D(b,$APP.Lm),e=$APP.D(b,$APP.ki);b=$APP.D(b,JM);c=GM(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(KM,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
- typeof e==="string":b)?e:"";c=$APP.Lh.g(c);var g=d;$APP.C.i(g,"inherit")?d="inherit":(d=$APP.D(LM,g),g=$APP.D(MM,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.Q(null,4,[NM,c,OM,d,$APP.U,e,PM,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,NM);c=$APP.D(b,OM);d=$APP.D(b,$APP.U);g=$APP.D(b,PM);IM(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
- d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},RM=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},SM=function(a){RM(a,"size","size");RM(a,"color","color");RM(a,"label","label")},UM=function(){var a=
7
- class extends HTMLElement{};a.observedAttributes=TM;a.prototype.connectedCallback=function(){IM(this);QM(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&QM(this);return null};SM(a.prototype);return a},VM=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",UM());return null},DM=new $APP.K(null,"token","token",-1211463215),OM=new $APP.K(null,"color-css","color-css",-1998870384),
8
- HM=new $APP.K(null,"box","box",1530920394),NM=new $APP.K(null,"size-css","size-css",-1292915783),JM=new $APP.K(null,"label-present?","label-present?",-367749525),PM=new $APP.K(null,"labelled?","labelled?",-1907816908);var TM=["size","color","label"],FM=new $APP.Q(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),KM=new $APP.S(null,new $APP.Q(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),MM=new $APP.Q(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),LM=new $APP.Q(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
- null),CM=$APP.D(FM,"md");$APP.ha("baredom.exports.x_icon.init",VM);export const init=VM;
4
+ d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.Q(null,2,[$APP.Ci,b,dN,d],null)}},mN=function(a){var b=new $APP.Q(null,4,[$APP.Il,a.getAttribute("size"),$APP.Sm,a.getAttribute("color"),$APP.ni,a.getAttribute("label"),fN,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Il),d=$APP.D(b,$APP.Sm),e=$APP.D(b,$APP.ni);b=$APP.D(b,fN);c=cN(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(gN,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
+ typeof e==="string":b)?e:"";c=$APP.Oh.g(c);var g=d;$APP.C.i(g,"inherit")?d="inherit":(d=$APP.D(hN,g),g=$APP.D(iN,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.Q(null,4,[jN,c,kN,d,$APP.U,e,lN,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,jN);c=$APP.D(b,kN);d=$APP.D(b,$APP.U);g=$APP.D(b,lN);eN(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
+ d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},nN=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},oN=function(a){nN(a,"size","size");nN(a,"color","color");nN(a,"label","label")},qN=function(){var a=
7
+ class extends HTMLElement{};a.observedAttributes=pN;a.prototype.connectedCallback=function(){eN(this);mN(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&mN(this);return null};oN(a.prototype);return a},rN=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",qN());return null},$M=new $APP.K(null,"token","token",-1211463215),kN=new $APP.K(null,"color-css","color-css",-1998870384),
8
+ dN=new $APP.K(null,"box","box",1530920394),jN=new $APP.K(null,"size-css","size-css",-1292915783),fN=new $APP.K(null,"label-present?","label-present?",-367749525),lN=new $APP.K(null,"labelled?","labelled?",-1907816908);var pN=["size","color","label"],bN=new $APP.Q(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),gN=new $APP.R(null,new $APP.Q(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),iN=new $APP.Q(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),hN=new $APP.Q(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
+ null),ZM=$APP.D(bN,"md");$APP.ha("baredom.exports.x_icon.init",rN);export const init=rN;
package/dist/x-image.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var QJ=function(a){if(a==null)return new $APP.Q(null,2,[$APP.Lh,null,$APP.Oh,!0],null);if(typeof a!=="string")return new $APP.Q(null,2,[$APP.Lh,null,$APP.Oh,!1],null);a=a.trim().toLowerCase();if($APP.C.i(a,"")||$APP.C.i(a,"auto"))return new $APP.Q(null,2,[$APP.Lh,null,$APP.Oh,!0],null);var b=$APP.eg(PJ,a);return $APP.n(b)?(a=parseFloat($APP.pc(b,1)),b=parseFloat($APP.pc(b,2)),a>0&&b>0?new $APP.Q(null,2,[$APP.Lh,""+$APP.T.g(a)+" / "+$APP.T.g(b),$APP.Oh,!0],null):new $APP.Q(null,2,[$APP.Lh,null,$APP.Oh,
3
- !1],null)):new $APP.Q(null,2,[$APP.Lh,null,$APP.Oh,!1],null)},VJ=function(a){var b=$APP.k(a,"__xImageRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("img"),h=document.createElement("div"),l=document.createElement("slot"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span");c.textContent=":host{display:block;max-width:100%;box-sizing:border-box;color-scheme:light dark;--x-image-radius:var(--x-radius-md,8px);--x-image-bg:var(--x-color-surface,#f3f4f6);--x-image-border:0;--x-image-shimmer-color:var(--x-color-border,rgba(0,0,0,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.65);--x-image-shimmer-duration:1.5s;--x-image-fade-duration:var(--x-transition-duration,200ms);--x-image-fade-easing:var(--x-transition-easing,ease);--x-image-text:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-image-error-gap:var(--x-space-xs,6px);--x-image-font-family:var(--x-font-family,system-ui,sans-serif);--x-image-font-size:var(--x-font-size-sm,0.875rem);}@media (prefers-color-scheme:dark){:host{--x-image-bg:var(--x-color-surface,#1f2937);--x-image-shimmer-color:var(--x-color-border,rgba(255,255,255,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.10);--x-image-text:var(--x-color-text-muted,rgba(255,255,255,0.65));}}[part\x3dframe]{position:relative;width:100%;height:100%;min-height:1em;background:var(--x-image-bg);border-radius:var(--x-image-radius);border:var(--x-image-border);overflow:hidden;}[part\x3dimage]{display:block;width:100%;height:100%;opacity:0;transition:opacity var(--x-image-fade-duration) var(--x-image-fade-easing);}:host([data-state\x3dloaded]) [part\x3dimage]{opacity:1;}[part\x3dshimmer]{position:absolute;inset:0;background-color:var(--x-image-shimmer-color);background-image:linear-gradient(90deg,transparent 0%,var(--x-image-shimmer-highlight) 50%,transparent 100%);background-size:200% 100%;background-repeat:no-repeat;background-position:-100% 0;animation:x-image-shimmer var(--x-image-shimmer-duration) linear infinite;}@keyframes x-image-shimmer{0%{background-position:-100% 0;}100%{background-position:100% 0;}}:host([data-state\x3dloaded]) [part\x3dshimmer],:host([data-state\x3derror]) [part\x3dshimmer]{display:none;}[part\x3derror]{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--x-image-error-gap);padding:8px;text-align:center;color:var(--x-image-text);font-family:var(--x-image-font-family);font-size:var(--x-image-font-size);}:host([data-state\x3derror]) [part\x3derror]{display:flex;}:host([data-state\x3derror]) [part\x3dimage]{visibility:hidden;}[part\x3derror-glyph]{font-size:1.5em;line-height:1;}[part\x3derror-text]{line-height:1.25;}@media (prefers-reduced-motion:reduce){[part\x3dshimmer]{animation:none;}[part\x3dimage]{transition:none;}}";
2
+ var mK=function(a){if(a==null)return new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!0],null);if(typeof a!=="string")return new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!1],null);a=a.trim().toLowerCase();if($APP.C.i(a,"")||$APP.C.i(a,"auto"))return new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!0],null);var b=$APP.eg(lK,a);return $APP.n(b)?(a=parseFloat($APP.pc(b,1)),b=parseFloat($APP.pc(b,2)),a>0&&b>0?new $APP.Q(null,2,[$APP.Oh,""+$APP.T.g(a)+" / "+$APP.T.g(b),$APP.Rh,!0],null):new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,
3
+ !1],null)):new $APP.Q(null,2,[$APP.Oh,null,$APP.Rh,!1],null)},rK=function(a){var b=$APP.k(a,"__xImageRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("img"),h=document.createElement("div"),l=document.createElement("slot"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span");c.textContent=":host{display:block;max-width:100%;box-sizing:border-box;color-scheme:light dark;--x-image-radius:var(--x-radius-md,8px);--x-image-bg:var(--x-color-surface,#f3f4f6);--x-image-border:0;--x-image-shimmer-color:var(--x-color-border,rgba(0,0,0,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.65);--x-image-shimmer-duration:1.5s;--x-image-fade-duration:var(--x-transition-duration,200ms);--x-image-fade-easing:var(--x-transition-easing,ease);--x-image-text:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-image-error-gap:var(--x-space-xs,6px);--x-image-font-family:var(--x-font-family,system-ui,sans-serif);--x-image-font-size:var(--x-font-size-sm,0.875rem);}@media (prefers-color-scheme:dark){:host{--x-image-bg:var(--x-color-surface,#1f2937);--x-image-shimmer-color:var(--x-color-border,rgba(255,255,255,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.10);--x-image-text:var(--x-color-text-muted,rgba(255,255,255,0.65));}}[part\x3dframe]{position:relative;width:100%;height:100%;min-height:1em;background:var(--x-image-bg);border-radius:var(--x-image-radius);border:var(--x-image-border);overflow:hidden;}[part\x3dimage]{display:block;width:100%;height:100%;opacity:0;transition:opacity var(--x-image-fade-duration) var(--x-image-fade-easing);}:host([data-state\x3dloaded]) [part\x3dimage]{opacity:1;}[part\x3dshimmer]{position:absolute;inset:0;background-color:var(--x-image-shimmer-color);background-image:linear-gradient(90deg,transparent 0%,var(--x-image-shimmer-highlight) 50%,transparent 100%);background-size:200% 100%;background-repeat:no-repeat;background-position:-100% 0;animation:x-image-shimmer var(--x-image-shimmer-duration) linear infinite;}@keyframes x-image-shimmer{0%{background-position:-100% 0;}100%{background-position:100% 0;}}:host([data-state\x3dloaded]) [part\x3dshimmer],:host([data-state\x3derror]) [part\x3dshimmer]{display:none;}[part\x3derror]{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--x-image-error-gap);padding:8px;text-align:center;color:var(--x-image-text);font-family:var(--x-image-font-family);font-size:var(--x-image-font-size);}:host([data-state\x3derror]) [part\x3derror]{display:flex;}:host([data-state\x3derror]) [part\x3dimage]{visibility:hidden;}[part\x3derror-glyph]{font-size:1.5em;line-height:1;}[part\x3derror-text]{line-height:1.25;}@media (prefers-reduced-motion:reduce){[part\x3dshimmer]{animation:none;}[part\x3dimage]{transition:none;}}";
4
4
  d.setAttribute("part","frame");e.setAttribute("part","shimmer");e.setAttribute("aria-hidden","true");g.setAttribute("part","image");g.alt="";g.decoding="async";g.loading="lazy";h.setAttribute("part","error");h.setAttribute("role","img");h.setAttribute("aria-label","Image failed to load");l.setAttribute("name","error");m.setAttribute("part","error-default");p.setAttribute("part","error-glyph");p.setAttribute("aria-hidden","true");p.textContent="⚠";q.setAttribute("part","error-text");q.textContent=
5
- "Image unavailable";m.appendChild(p);m.appendChild(q);l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xImageRefs=new $APP.Q(null,6,[$APP.yi,b,RJ,d,SJ,e,$APP.oj,g,TJ,h,UJ,l],null);return $APP.k(a,"__xImageRefs")},WJ=function(a,b){a.__xImageState=b;a.setAttribute("data-state",b)},hK=function(a){var b=new $APP.Q(null,8,[$APP.Ml,a.getAttribute("src"),$APP.pm,a.getAttribute("alt"),XJ,a.hasAttribute("alt"),YJ,a.hasAttribute("decorative"),
6
- ZJ,a.getAttribute("ratio"),$J,a.getAttribute("fit"),$APP.Qj,a.getAttribute("position"),$APP.im,a.getAttribute("loading")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Ml),e=$APP.D(c,$APP.pm),g=$APP.D(c,XJ),h=$APP.D(c,YJ),l=$APP.D(c,ZJ),m=$APP.D(c,$J);b=$APP.D(c,$APP.Qj);var p=$APP.D(c,$APP.im);h=$APP.F(h);l=QJ(l);c=$APP.M(l);l=$APP.D(c,$APP.Lh);c=$APP.D(c,$APP.Oh);var q=!h&&$APP.r(g);e=h?"":$APP.n(g)?$APP.n(e)?e:"":"";typeof m==="string"?(m=m.trim().toLowerCase(),m=$APP.I(aK,m)?m:"cover"):m="cover";typeof d===
7
- "string"?(d=$APP.Mg(d),d=typeof d==="string"&&$APP.N("",d)?d:null):d=null;typeof p==="string"?(p=p.trim().toLowerCase(),p=$APP.I(bK,p)?p:"lazy"):p="lazy";typeof b==="string"?(b=b.trim(),b=$APP.C.i(b,"")?"center":b):b="center";b=$APP.zf([$APP.di,cK,$APP.ok,dK,$APP.el,eK,fK,$APP.Hm,gK],[e,m,d,h,p,c,q,b,l]);$APP.N($APP.k(a,"__xImageModel"),b)&&(h=VJ(a),c=$APP.M(h),h=$APP.D(c,RJ),l=$APP.D(c,$APP.oj),c=$APP.D(c,TJ),q=$APP.k(a,"__xImageModel"),p=$APP.n(q)?$APP.ok.g(q):null,q=q==null||$APP.N(p,$APP.ok.g(b)),
8
- $APP.n(gK.g(b))?h.style.aspectRatio=gK.g(b):h.style.aspectRatio="",$APP.n(eK.g(b))||$APP.n($APP.k(a,"__xImageWarnedRatio"))||(a.__xImageWarnedRatio=!0,console.warn('[x-image] Invalid ratio attribute; expected "W:H" (e.g. "16:9").')),l.style.objectFit=cK.g(b),l.style.objectPosition=$APP.Hm.g(b),l.loading=$APP.el.g(b),l.decoding="async",$APP.n(dK.g(b))?(l.alt="",a.setAttribute("aria-hidden","true"),a.removeAttribute("role")):(l.alt=$APP.di.g(b),a.removeAttribute("aria-hidden"),a.setAttribute("role",
9
- "img"),$APP.n(fK.g(b))&&!$APP.n($APP.k(a,"__xImageWarnedAlt"))&&(a.__xImageWarnedAlt=!0,console.warn('[x-image] Missing alt attribute. Set alt\x3d"…" or add the `decorative` attribute.'))),c.setAttribute("aria-label",$APP.r(dK.g(b))&&$APP.N("",$APP.di.g(b))?$APP.di.g(b):"Image failed to load"),q&&(h=$APP.ok.g(b),l=$APP.M($APP.k(a,"__xImageRefs")),l=$APP.D(l,$APP.oj),$APP.N($APP.k(a,"__xImageCurrentSrc"),h)&&(a.__xImageCurrentSrc=h,typeof h==="string"&&$APP.N("",h)?(WJ(a,"loading"),l.setAttribute("src",
10
- h)):(l.removeAttribute("src"),WJ(a,"loading")))),a.__xImageModel=b)},lK=function(a){function b(){var e=$APP.M($APP.k(a,"__xImageRefs")),g=$APP.D(e,$APP.oj);e=$APP.k(a,"__xImageCurrentSrc");$APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)&&(g=g.getAttribute("src"),$APP.C.i(g,e)&&(WJ(a,"error"),e=$APP.Dh(new $APP.Q(null,1,[$APP.ok,$APP.n(e)?e:""],null)),e=new CustomEvent("x-image-error",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e)));return null}function c(){var e=$APP.M($APP.k(a,
11
- "__xImageRefs")),g=$APP.D(e,$APP.oj);e=$APP.k(a,"__xImageCurrentSrc");if($APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)){var h=g.getAttribute("src");$APP.C.i(h,e)&&(WJ(a,"loaded"),h=g.naturalWidth,g=g.naturalHeight,e=$APP.Dh(new $APP.Q(null,3,[$APP.ok,$APP.n(e)?e:"",iK,$APP.n(h)?h:0,jK,$APP.n(g)?g:0],null)),e=new CustomEvent("x-image-load",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e))}return null}var d=VJ(a);d=$APP.M(d);d=$APP.D(d,$APP.oj);d.addEventListener("load",c);
12
- d.addEventListener("error",b);$APP.Cg(a,"__xImageHandlers",new $APP.Q(null,2,[kK,c,$APP.vi,b],null))},mK=function(a){var b=$APP.k(a,"__xImageHandlers"),c=$APP.k(a,"__xImageRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.oj.g(c);var d=kK.g(b);b=$APP.vi.g(b);$APP.n(d)&&c.removeEventListener("load",d);$APP.n(b)&&c.removeEventListener("error",b)}a.__xImageHandlers=null},nK=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||
13
- $APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},oK=function(a){nK(a,"src","src");nK(a,"alt","alt");nK(a,"ratio","ratio");nK(a,"fit","fit");nK(a,"position","position");nK(a,"loading","loading");Object.defineProperty(a,"decorative",{get:function(){return this.hasAttribute("decorative")},set:function(b){return $APP.n(b)?this.setAttribute("decorative",""):this.removeAttribute("decorative")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
- "naturalWidth",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.oj.g(b).naturalWidth:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"naturalHeight",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.oj.g(b).naturalHeight:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"state",{get:function(){var b=$APP.k(this,"__xImageState");return $APP.n(b)?b:"loading"},enumerable:!0,configurable:!0})},qK=function(){var a=class extends HTMLElement{};
15
- a.observedAttributes=pK;a.prototype.connectedCallback=function(){VJ(this);mK(this);lK(this);$APP.k(this,"__xImageState")==null&&WJ(this,"loading");hK(this);return null};a.prototype.disconnectedCallback=function(){mK(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&hK(this);return null};oK(a.prototype);return a},rK=function(){$APP.n(customElements.get("x-image"))||customElements.define("x-image",qK());return null},RJ=new $APP.K(null,"frame","frame",-1711082588),
16
- $J=new $APP.K(null,"fit-raw","fit-raw",792829585),dK=new $APP.K(null,"decorative?","decorative?",131461581),TJ=new $APP.K(null,"error-box","error-box",1060106676),gK=new $APP.K(null,"ratio-css","ratio-css",1208951932),SJ=new $APP.K(null,"shimmer","shimmer",2123148747),UJ=new $APP.K(null,"error-slot","error-slot",493821239),ZJ=new $APP.K(null,"ratio-raw","ratio-raw",-1076891672),fK=new $APP.K(null,"warn-alt?","warn-alt?",-638898603),kK=new $APP.K(null,"load","load",-1318641184),YJ=new $APP.K(null,
17
- "decorative-present?","decorative-present?",2067744841),cK=new $APP.K(null,"fit","fit",869444807),XJ=new $APP.K(null,"alt-present?","alt-present?",-707038767),iK=new $APP.K(null,"naturalWidth","naturalWidth",-1890093257),jK=new $APP.K(null,"naturalHeight","naturalHeight",227028566),eK=new $APP.K(null,"ratio-valid?","ratio-valid?",-713026893);var pK="src alt decorative ratio fit position loading".split(" ");
18
- $APP.zf([$APP.di,cK,$APP.ok,new $APP.K(null,"state","state",-1988618099),new $APP.K(null,"decorative","decorative",-238973678),$APP.el,$APP.nj,jK,iK,$APP.Hm],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.rj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Sj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.rj,!0],null),
19
- new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.rj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Qd(["x-image-load",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ok,$APP.Y,iK,$APP.W,jK,$APP.W],null),$APP.Rl,!1],null),"x-image-error",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.ok,$APP.Y],null),$APP.Rl,!1],null)]);
20
- var aK=new $APP.S(null,new $APP.Q(null,5,["cover",null,"none",null,"fill",null,"scale-down",null,"contain",null],null),null),bK=new $APP.S(null,new $APP.Q(null,2,["eager",null,"lazy",null],null),null),PJ=/^\s*(\d+(?:\.\d+)?)\s*[:\/]\s*(\d+(?:\.\d+)?)\s*$/;$APP.ha("baredom.exports.x_image.init",rK);export const init=rK;
5
+ "Image unavailable";m.appendChild(p);m.appendChild(q);l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xImageRefs=new $APP.Q(null,6,[$APP.Ci,b,nK,d,oK,e,$APP.tj,g,pK,h,qK,l],null);return $APP.k(a,"__xImageRefs")},sK=function(a,b){a.__xImageState=b;a.setAttribute("data-state",b)},EK=function(a){var b=new $APP.Q(null,8,[$APP.Tl,a.getAttribute("src"),$APP.wm,a.getAttribute("alt"),tK,a.hasAttribute("alt"),uK,a.hasAttribute("decorative"),
6
+ vK,a.getAttribute("ratio"),wK,a.getAttribute("fit"),$APP.Vj,a.getAttribute("position"),$APP.pm,a.getAttribute("loading")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Tl),e=$APP.D(c,$APP.wm),g=$APP.D(c,tK),h=$APP.D(c,uK),l=$APP.D(c,vK),m=$APP.D(c,wK);b=$APP.D(c,$APP.Vj);var p=$APP.D(c,$APP.pm);h=$APP.F(h);l=mK(l);c=$APP.M(l);l=$APP.D(c,$APP.Oh);c=$APP.D(c,$APP.Rh);var q=!h&&$APP.r(g);e=h?"":$APP.n(g)?$APP.n(e)?e:"":"";typeof m==="string"?(m=m.trim().toLowerCase(),m=$APP.I(xK,m)?m:"cover"):m="cover";typeof d===
7
+ "string"?(d=$APP.Mg(d),d=typeof d==="string"&&$APP.N("",d)?d:null):d=null;typeof p==="string"?(p=p.trim().toLowerCase(),p=$APP.I(yK,p)?p:"lazy"):p="lazy";typeof b==="string"?(b=b.trim(),b=$APP.C.i(b,"")?"center":b):b="center";b=$APP.zf([$APP.gi,zK,$APP.tk,AK,$APP.kl,BK,CK,$APP.Om,DK],[e,m,d,h,p,c,q,b,l]);$APP.N($APP.k(a,"__xImageModel"),b)&&(h=rK(a),c=$APP.M(h),h=$APP.D(c,nK),l=$APP.D(c,$APP.tj),c=$APP.D(c,pK),q=$APP.k(a,"__xImageModel"),p=$APP.n(q)?$APP.tk.g(q):null,q=q==null||$APP.N(p,$APP.tk.g(b)),
8
+ $APP.n(DK.g(b))?h.style.aspectRatio=DK.g(b):h.style.aspectRatio="",$APP.n(BK.g(b))||$APP.n($APP.k(a,"__xImageWarnedRatio"))||(a.__xImageWarnedRatio=!0,console.warn('[x-image] Invalid ratio attribute; expected "W:H" (e.g. "16:9").')),l.style.objectFit=zK.g(b),l.style.objectPosition=$APP.Om.g(b),l.loading=$APP.kl.g(b),l.decoding="async",$APP.n(AK.g(b))?(l.alt="",a.setAttribute("aria-hidden","true"),a.removeAttribute("role")):(l.alt=$APP.gi.g(b),a.removeAttribute("aria-hidden"),a.setAttribute("role",
9
+ "img"),$APP.n(CK.g(b))&&!$APP.n($APP.k(a,"__xImageWarnedAlt"))&&(a.__xImageWarnedAlt=!0,console.warn('[x-image] Missing alt attribute. Set alt\x3d"…" or add the `decorative` attribute.'))),c.setAttribute("aria-label",$APP.r(AK.g(b))&&$APP.N("",$APP.gi.g(b))?$APP.gi.g(b):"Image failed to load"),q&&(h=$APP.tk.g(b),l=$APP.M($APP.k(a,"__xImageRefs")),l=$APP.D(l,$APP.tj),$APP.N($APP.k(a,"__xImageCurrentSrc"),h)&&(a.__xImageCurrentSrc=h,typeof h==="string"&&$APP.N("",h)?(sK(a,"loading"),l.setAttribute("src",
10
+ h)):(l.removeAttribute("src"),sK(a,"loading")))),a.__xImageModel=b)},IK=function(a){function b(){var e=$APP.M($APP.k(a,"__xImageRefs")),g=$APP.D(e,$APP.tj);e=$APP.k(a,"__xImageCurrentSrc");$APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)&&(g=g.getAttribute("src"),$APP.C.i(g,e)&&(sK(a,"error"),e=$APP.Gh(new $APP.Q(null,1,[$APP.tk,$APP.n(e)?e:""],null)),e=new CustomEvent("x-image-error",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e)));return null}function c(){var e=$APP.M($APP.k(a,
11
+ "__xImageRefs")),g=$APP.D(e,$APP.tj);e=$APP.k(a,"__xImageCurrentSrc");if($APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)){var h=g.getAttribute("src");$APP.C.i(h,e)&&(sK(a,"loaded"),h=g.naturalWidth,g=g.naturalHeight,e=$APP.Gh(new $APP.Q(null,3,[$APP.tk,$APP.n(e)?e:"",FK,$APP.n(h)?h:0,GK,$APP.n(g)?g:0],null)),e=new CustomEvent("x-image-load",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e))}return null}var d=rK(a);d=$APP.M(d);d=$APP.D(d,$APP.tj);d.addEventListener("load",c);
12
+ d.addEventListener("error",b);$APP.Cg(a,"__xImageHandlers",new $APP.Q(null,2,[HK,c,$APP.zi,b],null))},JK=function(a){var b=$APP.k(a,"__xImageHandlers"),c=$APP.k(a,"__xImageRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.tj.g(c);var d=HK.g(b);b=$APP.zi.g(b);$APP.n(d)&&c.removeEventListener("load",d);$APP.n(b)&&c.removeEventListener("error",b)}a.__xImageHandlers=null},KK=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||
13
+ $APP.C.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},LK=function(a){KK(a,"src","src");KK(a,"alt","alt");KK(a,"ratio","ratio");KK(a,"fit","fit");KK(a,"position","position");KK(a,"loading","loading");Object.defineProperty(a,"decorative",{get:function(){return this.hasAttribute("decorative")},set:function(b){return $APP.n(b)?this.setAttribute("decorative",""):this.removeAttribute("decorative")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
+ "naturalWidth",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.tj.g(b).naturalWidth:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"naturalHeight",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.tj.g(b).naturalHeight:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"state",{get:function(){var b=$APP.k(this,"__xImageState");return $APP.n(b)?b:"loading"},enumerable:!0,configurable:!0})},NK=function(){var a=class extends HTMLElement{};
15
+ a.observedAttributes=MK;a.prototype.connectedCallback=function(){rK(this);JK(this);IK(this);$APP.k(this,"__xImageState")==null&&sK(this,"loading");EK(this);return null};a.prototype.disconnectedCallback=function(){JK(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&EK(this);return null};LK(a.prototype);return a},OK=function(){$APP.n(customElements.get("x-image"))||customElements.define("x-image",NK());return null},nK=new $APP.K(null,"frame","frame",-1711082588),
16
+ wK=new $APP.K(null,"fit-raw","fit-raw",792829585),AK=new $APP.K(null,"decorative?","decorative?",131461581),pK=new $APP.K(null,"error-box","error-box",1060106676),DK=new $APP.K(null,"ratio-css","ratio-css",1208951932),oK=new $APP.K(null,"shimmer","shimmer",2123148747),qK=new $APP.K(null,"error-slot","error-slot",493821239),vK=new $APP.K(null,"ratio-raw","ratio-raw",-1076891672),CK=new $APP.K(null,"warn-alt?","warn-alt?",-638898603),HK=new $APP.K(null,"load","load",-1318641184),uK=new $APP.K(null,
17
+ "decorative-present?","decorative-present?",2067744841),zK=new $APP.K(null,"fit","fit",869444807),tK=new $APP.K(null,"alt-present?","alt-present?",-707038767),FK=new $APP.K(null,"naturalWidth","naturalWidth",-1890093257),GK=new $APP.K(null,"naturalHeight","naturalHeight",227028566),BK=new $APP.K(null,"ratio-valid?","ratio-valid?",-713026893);var MK="src alt decorative ratio fit position loading".split(" ");
18
+ $APP.zf([$APP.gi,zK,$APP.tk,new $APP.K(null,"state","state",-1988618099),new $APP.K(null,"decorative","decorative",-238973678),$APP.kl,$APP.sj,GK,FK,$APP.Om],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.wj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wj,!0],null),
19
+ new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.wj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Qd(["x-image-load",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.tk,$APP.Y,FK,$APP.W,GK,$APP.W],null),$APP.Yl,!1],null),"x-image-error",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.tk,$APP.Y],null),$APP.Yl,!1],null)]);
20
+ var xK=new $APP.R(null,new $APP.Q(null,5,["cover",null,"none",null,"fill",null,"scale-down",null,"contain",null],null),null),yK=new $APP.R(null,new $APP.Q(null,2,["eager",null,"lazy",null],null),null),lK=/^\s*(\d+(?:\.\d+)?)\s*[:\/]\s*(\d+(?:\.\d+)?)\s*$/;$APP.ha("baredom.exports.x_image.init",OK);export const init=OK;
@@ -1,30 +1,30 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var y_=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},A_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(z_,a)?a:"cursor"},D_=function(a){return typeof a==="string"?(a=$APP.We.m($APP.Tf,$APP.ce(function(b){return $APP.I(B_,b)}),a.trim().toLowerCase().split(/\s+/)),$APP.Hc(a)?C_:a):C_},E_=function(a){return typeof a==="string"?(a=a.trim(),$APP.C.i(a,"")?null:a):
3
- null},F_=function(a,b,c,d,e,g,h){b=c+(g*(b-a)-h*c)/e*d;return[a+b*d,b]},G_=function(a,b){if(a>=b)return 0;a=1-a/b;return a*a},H_=function(a,b,c,d,e,g,h,l,m,p,q){a*=c;d=$APP.I(b,"bulge")?d+a*(e-d):d;g=$APP.I(b,"stretch")?g+a*(h-g):g;l=$APP.I(b,"lean")?m+a*(l-m):m;b=$APP.I(b,"breathe")?p+a*(q-p):p;return[d,g,l,b]},I_=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},T_=function(a){a=$APP.zf([$APP.vj,$APP.tk,J_,K_,L_,$APP.Gh,$APP.dl,M_,$APP.yj,N_],[a.getAttribute("mass"),
4
- a.getAttribute("intensity"),a.getAttribute("trigger"),a.getAttribute("per-char"),a.getAttribute("font-family"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("friction"),a.getAttribute("radius"),a.getAttribute("tension")]);var b=$APP.M(a);a=$APP.D(b,$APP.yj);var c=$APP.D(b,N_),d=$APP.D(b,$APP.vj),e=$APP.D(b,$APP.tk),g=$APP.D(b,K_),h=$APP.D(b,J_),l=$APP.D(b,L_),m=$APP.D(b,$APP.Gh),p=$APP.D(b,$APP.dl);b=$APP.D(b,M_);return $APP.zf([$APP.Zl,O_,P_,$APP.xm,$APP.lk,Q_,$APP.Xj,R_,S_,$APP.il],
5
- [y_(d,1,.1,10),y_(c,170,10,500),D_(p),y_(a,200,20,1E3),y_(e,.5,0,1),g!=null,y_(b,26,1,100),A_(h),E_(l),typeof m==="string"?m:""])},U_=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:a}return b},V_=function(a,b,c){a=a.style;var d=a.setProperty;b="'wght' "+$APP.T.g(b[0].toFixed(1))+", 'wdth' "+$APP.T.g(b[1].toFixed(1))+", 'slnt' "+$APP.T.g(b[2].toFixed(1))+", 'opsz' "+$APP.T.g(b[3].toFixed(1));d.call(a,"font-variation-settings",b);
6
- c===0?a.removeProperty("transform"):a.setProperty("transform","skewX("+$APP.T.g(c.toFixed(1))+"deg)")},X_=function(a){$APP.n($APP.k(a,"__xKineticFontRaf"))||($APP.n($APP.k(a,"__xKineticFontAct"))||(a.__xKineticFontAct=!0,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-activate",{bubbles:!0,composed:!0,detail:{}}))),$APP.ja(a,"__xKineticFontLF",performance.now()),$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return W_(a)})))},Y_=function(a){var b=window.scrollY,c=b-function(){var d=
7
- $APP.k(a,"__xKineticFontLSY");return $APP.n(d)?d:b}();a.__xKineticFontLSY=b;$APP.ja(a,"__xKineticFontSD",function(){var d=$APP.k(a,"__xKineticFontSD");return $APP.n(d)?d:0}()+Math.abs(c));I_()||X_(a);return null},Z_=function(a){var b=R_.g($APP.k(a,"__xKineticFontModel")),c={};if($APP.C.i(b,"cursor")||$APP.C.i(b,"both")){var d=function(e){a.__xKineticFontMX=e.clientX;a.__xKineticFontMY=e.clientY;I_()||X_(a);return null};c.move=d;document.addEventListener("pointermove",d,{passive:!0})}if($APP.C.i(b,
8
- "scroll")||$APP.C.i(b,"both"))b=function(){return Y_(a)},c.scroll=b,a.__xKineticFontLSY=window.scrollY,window.addEventListener("scroll",b,{passive:!0});a.__xKineticFontHdl=c},$_=function(a){var b=$APP.k(a,"__xKineticFontHdl");if($APP.n(b)){var c=$APP.k(b,"move");$APP.n(c)&&document.removeEventListener("pointermove",c);b=$APP.k(b,"scroll");$APP.n(b)&&window.removeEventListener("scroll",b);a.__xKineticFontHdl=null}},k0=function(a,b){var c=$APP.k(a,"__xKineticFontModel");a.__xKineticFontModel=b;if($APP.N($APP.il.g(b),
9
- $APP.il.g(c))||$APP.N(Q_.g(b),Q_.g(c)))if($APP.n(Q_.g(b))){var d=$APP.il.g(b),e=$APP.M($APP.k(a,"__xKineticFontRefs"));e=$APP.D(e,$APP.xj);d=$APP.xe(d);var g=$APP.z(d),h=Array(g),l=Array(g);e.textContent="";for(var m=0;;)if(m<g){var p=$APP.pc(d,m),q=document.createElement("span");q.setAttribute("part","char");$APP.C.i(p," ")?(q.setAttribute("data-ws",""),q.innerHTML="\x26nbsp;"):q.textContent=p;e.appendChild(q);h[m]=q;l[m]=[0,0];m+=1}else break;a.__xKineticFontCS=h;a.__xKineticFontSpr=l}else e=$APP.il.g(b),
10
- d=$APP.M($APP.k(a,"__xKineticFontRefs")),$APP.D(d,$APP.xj).textContent=e,a.__xKineticFontCS=null,a.__xKineticFontSpr=[[0,0]];$APP.N(R_.g(b),R_.g(c))&&($_(a),Z_(a));c=$APP.M($APP.k(a,"__xKineticFontRefs"));c=$APP.D(c,$APP.xj);e=S_.g(b);$APP.n(e)?c.style.setProperty("font-family",e):c.style.removeProperty("font-family");c=getComputedStyle(a);c=$APP.zf([a0,b0,c0,d0,e0,f0,g0,h0,i0],[U_(c.getPropertyValue("--x-kinetic-font-slant-max"),0),U_(c.getPropertyValue("--x-kinetic-font-slant-min"),-12),U_(c.getPropertyValue("--x-kinetic-font-opsz-max"),
11
- 144),U_(c.getPropertyValue("--x-kinetic-font-opsz-min"),8),U_(c.getPropertyValue("--x-kinetic-font-weight-min"),100),U_(c.getPropertyValue("--x-kinetic-font-skew-max"),-15),U_(c.getPropertyValue("--x-kinetic-font-width-max"),125),U_(c.getPropertyValue("--x-kinetic-font-width-min"),75),U_(c.getPropertyValue("--x-kinetic-font-weight-max"),900)]);a.__xKineticFontCV=c;c=$APP.il.g(b);e=$APP.M($APP.k(a,"__xKineticFontRefs"));$APP.D(e,j0).textContent=c;$APP.C.i(c,"")?(a.setAttribute("aria-hidden","true"),
12
- a.removeAttribute("role")):(a.removeAttribute("aria-hidden"),a.setAttribute("role","text"),a.setAttribute("aria-label",c));if(!I_())if(c=$APP.k(a,"__xKineticFontCV"),c=H_(0,P_.g(b),$APP.lk.g(b),e0.g(c),i0.g(c),h0.g(c),g0.g(c),b0.g(c),a0.g(c),d0.g(c),c0.g(c)),$APP.n(Q_.g(b))){if(a=$APP.k(a,"__xKineticFontCS"),$APP.n(a))for(b=a.length,e=0;;)if(e<b)V_(a[e],c,0),e+=1;else break}else a=$APP.M($APP.k(a,"__xKineticFontRefs")),a=$APP.D(a,$APP.xj),V_(a,c,0)},l0=function(a){Object.defineProperty(a,"text",{get:function(){var b=
13
- this.getAttribute("text");return $APP.n(b)?b:""},set:function(b){return b==null?this.removeAttribute("text"):this.setAttribute("text",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"trigger",{get:function(){return A_(this.getAttribute("trigger"))},set:function(b){return b==null?this.removeAttribute("trigger"):this.setAttribute("trigger",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?
14
- b:"bulge"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"perChar",{get:function(){return this.hasAttribute("per-char")},set:function(b){return $APP.n(b)?this.setAttribute("per-char",""):this.removeAttribute("per-char")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mass",{get:function(){var b=this.getAttribute("mass");return y_(b,1,.1,10)},set:function(b){return b==null?this.removeAttribute("mass"):
15
- this.setAttribute("mass",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"tension",{get:function(){var b=this.getAttribute("tension");return y_(b,170,10,500)},set:function(b){return b==null?this.removeAttribute("tension"):this.setAttribute("tension",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"friction",{get:function(){var b=this.getAttribute("friction");return y_(b,26,1,100)},set:function(b){return b==null?this.removeAttribute("friction"):this.setAttribute("friction",
16
- ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return y_(b,.5,0,1)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return y_(b,200,20,1E3)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+
17
- $APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"fontFamily",{get:function(){return E_(this.getAttribute("font-family"))},set:function(b){return b==null?this.removeAttribute("font-family"):this.setAttribute("font-family",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},o0=function(){var a=class extends HTMLElement{};a.observedAttributes=m0;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticFontRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),
18
- d=document.createElement("div"),e=document.createElement("span");c.textContent=n0;d.setAttribute("part","container");e.setAttribute("class","sr-only");e.setAttribute("part","sr-only");b.appendChild(c);b.appendChild(d);b.appendChild(e);this.__xKineticFontRefs=new $APP.Q(null,3,[$APP.yi,b,$APP.xj,d,j0,e],null)}b=T_(this);this.__xKineticFontModel=null;this.__xKineticFontSD=this.__xKineticFontMY=this.__xKineticFontMX=0;this.__xKineticFontAct=!1;k0(this,b);return null};a.prototype.disconnectedCallback=
19
- function(){var b=$APP.k(this,"__xKineticFontRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xKineticFontRaf=null);$_(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticFontRefs"))&&(b=T_(this),$APP.N(b,$APP.k(this,"__xKineticFontModel"))&&k0(this,b));return null};l0(a.prototype);return a},p0=function(){$APP.n(customElements.get("x-kinetic-font"))||customElements.define("x-kinetic-font",o0());return null},K_=new $APP.K(null,"per-char-attr",
20
- "per-char-attr",-403667422),J_=new $APP.K(null,"trigger-raw","trigger-raw",-1649744606),b0=new $APP.K(null,"slnt-min","slnt-min",71363427),g0=new $APP.K(null,"wdth-max","wdth-max",-522030121),f0=new $APP.K(null,"skew-max","skew-max",1543858453),h0=new $APP.K(null,"wdth-min","wdth-min",-986627045),L_=new $APP.K(null,"font-family-raw","font-family-raw",1729457924),Q_=new $APP.K(null,"per-char?","per-char?",-1016397834),R_=new $APP.K(null,"trigger","trigger",103466139),d0=new $APP.K(null,"opsz-min",
21
- "opsz-min",-829837010),j0=new $APP.K(null,"sr-only","sr-only",-173275148),a0=new $APP.K(null,"slnt-max","slnt-max",1716167520),M_=new $APP.K(null,"friction-raw","friction-raw",-1078184200),c0=new $APP.K(null,"opsz-max","opsz-max",454458088),e0=new $APP.K(null,"wght-min","wght-min",529224020),P_=new $APP.K(null,"modes","modes",-1377787092),i0=new $APP.K(null,"wght-max","wght-max",-514604421),N_=new $APP.K(null,"tension-raw","tension-raw",961657279),S_=new $APP.K(null,"font-family","font-family",-667419874),
22
- O_=new $APP.K(null,"tension","tension",58343589);var m0="text trigger mode per-char mass tension friction intensity radius font-family".split(" ");
23
- $APP.zf([$APP.Zl,O_,$APP.mj,new $APP.K(null,"perChar","perChar",2082880685),$APP.xm,$APP.lk,new $APP.K(null,"fontFamily","fontFamily",1493518353),$APP.Xj,R_,$APP.il],[new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Sj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
24
- 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Qd(["x-kinetic-font-spring-activate",new $APP.Q(null,2,[$APP.V,$APP.Rd,$APP.Rl,!1],null),"x-kinetic-font-spring-settle",new $APP.Q(null,2,[$APP.V,$APP.Rd,$APP.Rl,!1],null)]);
25
- var z_=new $APP.S(null,new $APP.Q(null,3,["scroll",null,"both",null,"cursor",null],null),null),B_=new $APP.S(null,new $APP.Q(null,4,["breathe",null,"lean",null,"bulge",null,"stretch",null],null),null),C_=new $APP.S(null,new $APP.Q(null,1,["bulge",null],null),null);var n0=":host{display:inline-block;box-sizing:border-box;color-scheme:light dark;"+$APP.T.g("--x-kinetic-font-color")+":var(--x-color-text,currentColor);"+$APP.T.g("--x-kinetic-font-family")+":system-ui,sans-serif;"+$APP.T.g("--x-kinetic-font-size")+":2rem;"+$APP.T.g("--x-kinetic-font-weight-min")+":100;"+$APP.T.g("--x-kinetic-font-weight-max")+":900;"+$APP.T.g("--x-kinetic-font-width-min")+":75;"+$APP.T.g("--x-kinetic-font-width-max")+":125;"+$APP.T.g("--x-kinetic-font-slant-min")+":-12;"+$APP.T.g("--x-kinetic-font-slant-max")+
2
+ var V_=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},X_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(W_,a)?a:"cursor"},$_=function(a){return typeof a==="string"?(a=$APP.We.m($APP.Tf,$APP.ce(function(b){return $APP.I(Y_,b)}),a.trim().toLowerCase().split(/\s+/)),$APP.Hc(a)?Z_:a):Z_},a0=function(a){return typeof a==="string"?(a=a.trim(),$APP.C.i(a,"")?null:a):
3
+ null},b0=function(a,b,c,d,e,g,h){b=c+(g*(b-a)-h*c)/e*d;return[a+b*d,b]},c0=function(a,b){if(a>=b)return 0;a=1-a/b;return a*a},d0=function(a,b,c,d,e,g,h,l,m,p,q){a*=c;d=$APP.I(b,"bulge")?d+a*(e-d):d;g=$APP.I(b,"stretch")?g+a*(h-g):g;l=$APP.I(b,"lean")?m+a*(l-m):m;b=$APP.I(b,"breathe")?p+a*(q-p):p;return[d,g,l,b]},e0=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},p0=function(a){a=$APP.zf([$APP.Aj,$APP.zk,f0,g0,h0,$APP.Jh,$APP.jl,i0,$APP.Dj,j0],[a.getAttribute("mass"),
4
+ a.getAttribute("intensity"),a.getAttribute("trigger"),a.getAttribute("per-char"),a.getAttribute("font-family"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("friction"),a.getAttribute("radius"),a.getAttribute("tension")]);var b=$APP.M(a);a=$APP.D(b,$APP.Dj);var c=$APP.D(b,j0),d=$APP.D(b,$APP.Aj),e=$APP.D(b,$APP.zk),g=$APP.D(b,g0),h=$APP.D(b,f0),l=$APP.D(b,h0),m=$APP.D(b,$APP.Jh),p=$APP.D(b,$APP.jl);b=$APP.D(b,i0);return $APP.zf([$APP.mm,k0,l0,$APP.Em,$APP.qk,m0,$APP.ck,n0,o0,$APP.ol],
5
+ [V_(d,1,.1,10),V_(c,170,10,500),$_(p),V_(a,200,20,1E3),V_(e,.5,0,1),g!=null,V_(b,26,1,100),X_(h),a0(l),typeof m==="string"?m:""])},q0=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.C.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:a}return b},r0=function(a,b,c){a=a.style;var d=a.setProperty;b="'wght' "+$APP.T.g(b[0].toFixed(1))+", 'wdth' "+$APP.T.g(b[1].toFixed(1))+", 'slnt' "+$APP.T.g(b[2].toFixed(1))+", 'opsz' "+$APP.T.g(b[3].toFixed(1));d.call(a,"font-variation-settings",b);
6
+ c===0?a.removeProperty("transform"):a.setProperty("transform","skewX("+$APP.T.g(c.toFixed(1))+"deg)")},t0=function(a){$APP.n($APP.k(a,"__xKineticFontRaf"))||($APP.n($APP.k(a,"__xKineticFontAct"))||(a.__xKineticFontAct=!0,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-activate",{bubbles:!0,composed:!0,detail:{}}))),$APP.ja(a,"__xKineticFontLF",performance.now()),$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return s0(a)})))},u0=function(a){var b=window.scrollY,c=b-function(){var d=
7
+ $APP.k(a,"__xKineticFontLSY");return $APP.n(d)?d:b}();a.__xKineticFontLSY=b;$APP.ja(a,"__xKineticFontSD",function(){var d=$APP.k(a,"__xKineticFontSD");return $APP.n(d)?d:0}()+Math.abs(c));e0()||t0(a);return null},v0=function(a){var b=n0.g($APP.k(a,"__xKineticFontModel")),c={};if($APP.C.i(b,"cursor")||$APP.C.i(b,"both")){var d=function(e){a.__xKineticFontMX=e.clientX;a.__xKineticFontMY=e.clientY;e0()||t0(a);return null};c.move=d;document.addEventListener("pointermove",d,{passive:!0})}if($APP.C.i(b,
8
+ "scroll")||$APP.C.i(b,"both"))b=function(){return u0(a)},c.scroll=b,a.__xKineticFontLSY=window.scrollY,window.addEventListener("scroll",b,{passive:!0});a.__xKineticFontHdl=c},w0=function(a){var b=$APP.k(a,"__xKineticFontHdl");if($APP.n(b)){var c=$APP.k(b,"move");$APP.n(c)&&document.removeEventListener("pointermove",c);b=$APP.k(b,"scroll");$APP.n(b)&&window.removeEventListener("scroll",b);a.__xKineticFontHdl=null}},H0=function(a,b){var c=$APP.k(a,"__xKineticFontModel");a.__xKineticFontModel=b;if($APP.N($APP.ol.g(b),
9
+ $APP.ol.g(c))||$APP.N(m0.g(b),m0.g(c)))if($APP.n(m0.g(b))){var d=$APP.ol.g(b),e=$APP.M($APP.k(a,"__xKineticFontRefs"));e=$APP.D(e,$APP.Cj);d=$APP.xe(d);var g=$APP.z(d),h=Array(g),l=Array(g);e.textContent="";for(var m=0;;)if(m<g){var p=$APP.pc(d,m),q=document.createElement("span");q.setAttribute("part","char");$APP.C.i(p," ")?(q.setAttribute("data-ws",""),q.innerHTML="\x26nbsp;"):q.textContent=p;e.appendChild(q);h[m]=q;l[m]=[0,0];m+=1}else break;a.__xKineticFontCS=h;a.__xKineticFontSpr=l}else e=$APP.ol.g(b),
10
+ d=$APP.M($APP.k(a,"__xKineticFontRefs")),$APP.D(d,$APP.Cj).textContent=e,a.__xKineticFontCS=null,a.__xKineticFontSpr=[[0,0]];$APP.N(n0.g(b),n0.g(c))&&(w0(a),v0(a));c=$APP.M($APP.k(a,"__xKineticFontRefs"));c=$APP.D(c,$APP.Cj);e=o0.g(b);$APP.n(e)?c.style.setProperty("font-family",e):c.style.removeProperty("font-family");c=getComputedStyle(a);c=$APP.zf([x0,y0,z0,A0,B0,C0,D0,E0,F0],[q0(c.getPropertyValue("--x-kinetic-font-slant-max"),0),q0(c.getPropertyValue("--x-kinetic-font-slant-min"),-12),q0(c.getPropertyValue("--x-kinetic-font-opsz-max"),
11
+ 144),q0(c.getPropertyValue("--x-kinetic-font-opsz-min"),8),q0(c.getPropertyValue("--x-kinetic-font-weight-min"),100),q0(c.getPropertyValue("--x-kinetic-font-skew-max"),-15),q0(c.getPropertyValue("--x-kinetic-font-width-max"),125),q0(c.getPropertyValue("--x-kinetic-font-width-min"),75),q0(c.getPropertyValue("--x-kinetic-font-weight-max"),900)]);a.__xKineticFontCV=c;c=$APP.ol.g(b);e=$APP.M($APP.k(a,"__xKineticFontRefs"));$APP.D(e,G0).textContent=c;$APP.C.i(c,"")?(a.setAttribute("aria-hidden","true"),
12
+ a.removeAttribute("role")):(a.removeAttribute("aria-hidden"),a.setAttribute("role","text"),a.setAttribute("aria-label",c));if(!e0())if(c=$APP.k(a,"__xKineticFontCV"),c=d0(0,l0.g(b),$APP.qk.g(b),B0.g(c),F0.g(c),E0.g(c),D0.g(c),y0.g(c),x0.g(c),A0.g(c),z0.g(c)),$APP.n(m0.g(b))){if(a=$APP.k(a,"__xKineticFontCS"),$APP.n(a))for(b=a.length,e=0;;)if(e<b)r0(a[e],c,0),e+=1;else break}else a=$APP.M($APP.k(a,"__xKineticFontRefs")),a=$APP.D(a,$APP.Cj),r0(a,c,0)},I0=function(a){Object.defineProperty(a,"text",{get:function(){var b=
13
+ this.getAttribute("text");return $APP.n(b)?b:""},set:function(b){return b==null?this.removeAttribute("text"):this.setAttribute("text",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"trigger",{get:function(){return X_(this.getAttribute("trigger"))},set:function(b){return b==null?this.removeAttribute("trigger"):this.setAttribute("trigger",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.n(b)?
14
+ b:"bulge"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"perChar",{get:function(){return this.hasAttribute("per-char")},set:function(b){return $APP.n(b)?this.setAttribute("per-char",""):this.removeAttribute("per-char")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mass",{get:function(){var b=this.getAttribute("mass");return V_(b,1,.1,10)},set:function(b){return b==null?this.removeAttribute("mass"):
15
+ this.setAttribute("mass",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"tension",{get:function(){var b=this.getAttribute("tension");return V_(b,170,10,500)},set:function(b){return b==null?this.removeAttribute("tension"):this.setAttribute("tension",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"friction",{get:function(){var b=this.getAttribute("friction");return V_(b,26,1,100)},set:function(b){return b==null?this.removeAttribute("friction"):this.setAttribute("friction",
16
+ ""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"intensity",{get:function(){var b=this.getAttribute("intensity");return V_(b,.5,0,1)},set:function(b){return b==null?this.removeAttribute("intensity"):this.setAttribute("intensity",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"radius",{get:function(){var b=this.getAttribute("radius");return V_(b,200,20,1E3)},set:function(b){return b==null?this.removeAttribute("radius"):this.setAttribute("radius",""+
17
+ $APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"fontFamily",{get:function(){return a0(this.getAttribute("font-family"))},set:function(b){return b==null?this.removeAttribute("font-family"):this.setAttribute("font-family",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},L0=function(){var a=class extends HTMLElement{};a.observedAttributes=J0;a.prototype.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xKineticFontRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),
18
+ d=document.createElement("div"),e=document.createElement("span");c.textContent=K0;d.setAttribute("part","container");e.setAttribute("class","sr-only");e.setAttribute("part","sr-only");b.appendChild(c);b.appendChild(d);b.appendChild(e);this.__xKineticFontRefs=new $APP.Q(null,3,[$APP.Ci,b,$APP.Cj,d,G0,e],null)}b=p0(this);this.__xKineticFontModel=null;this.__xKineticFontSD=this.__xKineticFontMY=this.__xKineticFontMX=0;this.__xKineticFontAct=!1;H0(this,b);return null};a.prototype.disconnectedCallback=
19
+ function(){var b=$APP.k(this,"__xKineticFontRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xKineticFontRaf=null);w0(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xKineticFontRefs"))&&(b=p0(this),$APP.N(b,$APP.k(this,"__xKineticFontModel"))&&H0(this,b));return null};I0(a.prototype);return a},M0=function(){$APP.n(customElements.get("x-kinetic-font"))||customElements.define("x-kinetic-font",L0());return null},g0=new $APP.K(null,"per-char-attr",
20
+ "per-char-attr",-403667422),f0=new $APP.K(null,"trigger-raw","trigger-raw",-1649744606),y0=new $APP.K(null,"slnt-min","slnt-min",71363427),D0=new $APP.K(null,"wdth-max","wdth-max",-522030121),C0=new $APP.K(null,"skew-max","skew-max",1543858453),E0=new $APP.K(null,"wdth-min","wdth-min",-986627045),h0=new $APP.K(null,"font-family-raw","font-family-raw",1729457924),m0=new $APP.K(null,"per-char?","per-char?",-1016397834),n0=new $APP.K(null,"trigger","trigger",103466139),A0=new $APP.K(null,"opsz-min",
21
+ "opsz-min",-829837010),G0=new $APP.K(null,"sr-only","sr-only",-173275148),x0=new $APP.K(null,"slnt-max","slnt-max",1716167520),i0=new $APP.K(null,"friction-raw","friction-raw",-1078184200),z0=new $APP.K(null,"opsz-max","opsz-max",454458088),B0=new $APP.K(null,"wght-min","wght-min",529224020),l0=new $APP.K(null,"modes","modes",-1377787092),F0=new $APP.K(null,"wght-max","wght-max",-514604421),j0=new $APP.K(null,"tension-raw","tension-raw",961657279),o0=new $APP.K(null,"font-family","font-family",-667419874),
22
+ k0=new $APP.K(null,"tension","tension",58343589);var J0="text trigger mode per-char mass tension friction intensity radius font-family".split(" ");
23
+ $APP.zf([$APP.mm,k0,$APP.rj,new $APP.K(null,"perChar","perChar",2082880685),$APP.Em,$APP.qk,new $APP.K(null,"fontFamily","fontFamily",1493518353),$APP.ck,n0,$APP.ol],[new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Xj],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,
24
+ 1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Qd(["x-kinetic-font-spring-activate",new $APP.Q(null,2,[$APP.V,$APP.Rd,$APP.Yl,!1],null),"x-kinetic-font-spring-settle",new $APP.Q(null,2,[$APP.V,$APP.Rd,$APP.Yl,!1],null)]);
25
+ var W_=new $APP.R(null,new $APP.Q(null,3,["scroll",null,"both",null,"cursor",null],null),null),Y_=new $APP.R(null,new $APP.Q(null,4,["breathe",null,"lean",null,"bulge",null,"stretch",null],null),null),Z_=new $APP.R(null,new $APP.Q(null,1,["bulge",null],null),null);var K0=":host{display:inline-block;box-sizing:border-box;color-scheme:light dark;"+$APP.T.g("--x-kinetic-font-color")+":var(--x-color-text,currentColor);"+$APP.T.g("--x-kinetic-font-family")+":system-ui,sans-serif;"+$APP.T.g("--x-kinetic-font-size")+":2rem;"+$APP.T.g("--x-kinetic-font-weight-min")+":100;"+$APP.T.g("--x-kinetic-font-weight-max")+":900;"+$APP.T.g("--x-kinetic-font-width-min")+":75;"+$APP.T.g("--x-kinetic-font-width-max")+":125;"+$APP.T.g("--x-kinetic-font-slant-min")+":-12;"+$APP.T.g("--x-kinetic-font-slant-max")+
26
26
  ":0;"+$APP.T.g("--x-kinetic-font-opsz-min")+":8;"+$APP.T.g("--x-kinetic-font-opsz-max")+":144;"+$APP.T.g("--x-kinetic-font-skew-max")+":-15;}[part\x3dcontainer]{color:var("+$APP.T.g("--x-kinetic-font-color")+",currentColor);font-family:var("+$APP.T.g("--x-kinetic-font-family")+",system-ui,sans-serif);font-size:var("+$APP.T.g("--x-kinetic-font-size")+",2rem);line-height:1.2;will-change:font-variation-settings,transform;}[part\x3dchar]{display:inline-block;will-change:font-variation-settings,transform;}[part\x3dchar][data-ws]{white-space:pre;}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}@media(prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3dchar]{font-variation-settings:normal!important;will-change:auto;}}",
27
- W_=function W_(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xKineticFontModel"),d=$APP.k(a,"__xKineticFontCV"),e=performance.now(),g=Math.min(e-$APP.k(a,"__xKineticFontLF"),100)/1E3,h=$APP.Zl.g(c),l=O_.g(c),m=$APP.Xj.g(c),p=$APP.lk.g(c),q=$APP.xm.g(c),v=R_.g(c);c=P_.g(c);var x=e0.g(d),y=i0.g(d),A=h0.g(d),B=g0.g(d),E=b0.g(d),H=a0.g(d),G=d0.g(d),J=c0.g(d);d=f0.g(d);var R=$APP.I(c,"lean"),aa=$APP.k(a,"__xKineticFontMX"),oa=$APP.k(a,"__xKineticFontMY"),Aa=function(){var Eb=$APP.k(a,"__xKineticFontSD");
28
- return $APP.n(Eb)?Eb:0}(),La=Math.min(1,Math.abs(Aa)/100),bb=$APP.k(a,"__xKineticFontSpr"),cb=$APP.k(a,"__xKineticFontCS"),mb=cb!=null,Lb=bb.length;a.__xKineticFontLF=e;a.__xKineticFontSD=Aa*.85;for(var db=[!0],da=0;;)if(da<Lb){Aa=mb&&($APP.C.i(v,"cursor")||$APP.C.i(v,"both"))?function(){var Eb=cb[da].getBoundingClientRect(),Kd=aa-(Eb.left+.5*Eb.width);Eb=oa-(Eb.top+.5*Eb.height);return Math.max(G_(Math.sqrt(Kd*Kd+Eb*Eb),q),La)}():mb&&$APP.C.i(v,"scroll")?La:mb||!$APP.C.i(v,"cursor")&&!$APP.C.i(v,
29
- "both")?$APP.C.i(v,"scroll")?La:0:function(){var Eb=$APP.M($APP.k(a,"__xKineticFontRefs")),Kd=$APP.D(Eb,$APP.xj).getBoundingClientRect();Eb=aa-(Kd.left+.5*Kd.width);Kd=oa-(Kd.top+.5*Kd.height);return Math.max(G_(Math.sqrt(Eb*Eb+Kd*Kd),q),La)}();var qa=bb[da],Ma=F_(qa[0],Aa,qa[1],g,h,l,m);e=Ma[0];Ma=Ma[1];qa[0]=e;qa[1]=Ma;Math.abs(e-Aa)<.001&&Math.abs(Ma)<.01||(db[0]=!1);Aa=H_(e,c,p,x,y,A,B,E,H,G,J);e=R?e*p*d:0;mb?V_(cb[da],Aa,e):(qa=$APP.M($APP.k(a,"__xKineticFontRefs")),qa=$APP.D(qa,$APP.xj),V_(qa,
30
- Aa,e));da+=1}else break;var Wb=function(){var Eb=$APP.k(a,"__xKineticFontSD");return $APP.n(Eb)?Eb:0}()>.5;$APP.n(function(){var Eb=db[0];return $APP.n(Eb)?!Wb:Eb}())?(a.__xKineticFontRaf=null,a.__xKineticFontSD=0,$APP.n($APP.k(a,"__xKineticFontAct"))&&(a.__xKineticFontAct=!1,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-settle",{bubbles:!0,composed:!0,detail:{}})))):$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return W_.g?W_.g(a):W_.call(null,a)}))}return null};$APP.ha("baredom.exports.x_kinetic_font.init",p0);export const init=p0;
27
+ s0=function s0(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xKineticFontModel"),d=$APP.k(a,"__xKineticFontCV"),e=performance.now(),g=Math.min(e-$APP.k(a,"__xKineticFontLF"),100)/1E3,h=$APP.mm.g(c),l=k0.g(c),m=$APP.ck.g(c),p=$APP.qk.g(c),q=$APP.Em.g(c),v=n0.g(c);c=l0.g(c);var x=B0.g(d),y=F0.g(d),A=E0.g(d),B=D0.g(d),E=y0.g(d),G=x0.g(d),H=A0.g(d),J=z0.g(d);d=C0.g(d);var S=$APP.I(c,"lean"),aa=$APP.k(a,"__xKineticFontMX"),oa=$APP.k(a,"__xKineticFontMY"),Aa=function(){var Eb=$APP.k(a,"__xKineticFontSD");
28
+ return $APP.n(Eb)?Eb:0}(),Na=Math.min(1,Math.abs(Aa)/100),cb=$APP.k(a,"__xKineticFontSpr"),db=$APP.k(a,"__xKineticFontCS"),mb=db!=null,Lb=cb.length;a.__xKineticFontLF=e;a.__xKineticFontSD=Aa*.85;for(var eb=[!0],da=0;;)if(da<Lb){Aa=mb&&($APP.C.i(v,"cursor")||$APP.C.i(v,"both"))?function(){var Eb=db[da].getBoundingClientRect(),Nd=aa-(Eb.left+.5*Eb.width);Eb=oa-(Eb.top+.5*Eb.height);return Math.max(c0(Math.sqrt(Nd*Nd+Eb*Eb),q),Na)}():mb&&$APP.C.i(v,"scroll")?Na:mb||!$APP.C.i(v,"cursor")&&!$APP.C.i(v,
29
+ "both")?$APP.C.i(v,"scroll")?Na:0:function(){var Eb=$APP.M($APP.k(a,"__xKineticFontRefs")),Nd=$APP.D(Eb,$APP.Cj).getBoundingClientRect();Eb=aa-(Nd.left+.5*Nd.width);Nd=oa-(Nd.top+.5*Nd.height);return Math.max(c0(Math.sqrt(Eb*Eb+Nd*Nd),q),Na)}();var ra=cb[da],Pa=b0(ra[0],Aa,ra[1],g,h,l,m);e=Pa[0];Pa=Pa[1];ra[0]=e;ra[1]=Pa;Math.abs(e-Aa)<.001&&Math.abs(Pa)<.01||(eb[0]=!1);Aa=d0(e,c,p,x,y,A,B,E,G,H,J);e=S?e*p*d:0;mb?r0(db[da],Aa,e):(ra=$APP.M($APP.k(a,"__xKineticFontRefs")),ra=$APP.D(ra,$APP.Cj),r0(ra,
30
+ Aa,e));da+=1}else break;var Xb=function(){var Eb=$APP.k(a,"__xKineticFontSD");return $APP.n(Eb)?Eb:0}()>.5;$APP.n(function(){var Eb=eb[0];return $APP.n(Eb)?!Xb:Eb}())?(a.__xKineticFontRaf=null,a.__xKineticFontSD=0,$APP.n($APP.k(a,"__xKineticFontAct"))&&(a.__xKineticFontAct=!1,a.dispatchEvent(new CustomEvent("x-kinetic-font-spring-settle",{bubbles:!0,composed:!0,detail:{}})))):$APP.ja(a,"__xKineticFontRaf",requestAnimationFrame(function(){return s0.g?s0.g(a):s0.call(null,a)}))}return null};$APP.ha("baredom.exports.x_kinetic_font.init",M0);export const init=M0;