@vanelsas/baredom 3.1.0 → 3.4.0

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 (122) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/README.md +79 -168
  3. package/custom-elements.json +3779 -3184
  4. package/dist/baredom.d.ts +91 -86
  5. package/dist/base.js +600 -547
  6. package/dist/integrity.json +108 -103
  7. package/dist/x-alert.js +17 -16
  8. package/dist/x-avatar-group.js +9 -9
  9. package/dist/x-avatar.js +14 -14
  10. package/dist/x-badge.js +9 -9
  11. package/dist/x-bento-grid.js +5 -5
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +13 -13
  14. package/dist/x-button.js +1 -1
  15. package/dist/x-calendar.d.ts +55 -0
  16. package/dist/x-calendar.js +40 -0
  17. package/dist/x-cancel-dialogue.js +14 -14
  18. package/dist/x-card.js +7 -7
  19. package/dist/x-carousel.js +34 -34
  20. package/dist/x-chart.js +47 -47
  21. package/dist/x-checkbox.js +1 -1
  22. package/dist/x-chip.js +1 -1
  23. package/dist/x-code.d.ts +48 -0
  24. package/dist/x-code.js +28 -0
  25. package/dist/x-collapse.js +10 -10
  26. package/dist/x-color-picker.js +46 -46
  27. package/dist/x-combobox.d.ts +1 -0
  28. package/dist/x-combobox.js +32 -30
  29. package/dist/x-command-palette.js +27 -27
  30. package/dist/x-confetti.js +24 -24
  31. package/dist/x-container.js +5 -5
  32. package/dist/x-context-menu.js +20 -21
  33. package/dist/x-copy.js +1 -21
  34. package/dist/x-currency-field.js +24 -24
  35. package/dist/x-date-picker.d.ts +6 -4
  36. package/dist/x-date-picker.js +42 -42
  37. package/dist/x-divider.js +10 -10
  38. package/dist/x-drawer.js +11 -11
  39. package/dist/x-dropdown.js +12 -12
  40. package/dist/x-fieldset.js +5 -5
  41. package/dist/x-file-download.js +6 -6
  42. package/dist/x-file-upload.js +23 -23
  43. package/dist/x-form-field.js +14 -14
  44. package/dist/x-form.js +11 -10
  45. package/dist/x-gaussian-blur.js +13 -13
  46. package/dist/x-grid.js +6 -6
  47. package/dist/x-i18n-provider.js +7 -7
  48. package/dist/x-i18n.js +4 -4
  49. package/dist/x-icon.js +7 -7
  50. package/dist/x-image.js +17 -17
  51. package/dist/x-kbd.js +15 -15
  52. package/dist/x-kinetic-canvas.js +25 -25
  53. package/dist/x-kinetic-font.js +23 -23
  54. package/dist/x-kinetic-typography.js +34 -34
  55. package/dist/x-liquid-dock.js +31 -31
  56. package/dist/x-liquid-fill.js +41 -41
  57. package/dist/x-liquid-glass.js +35 -35
  58. package/dist/x-menu-item.js +8 -8
  59. package/dist/x-menu.js +9 -9
  60. package/dist/x-metaball-cursor.js +23 -23
  61. package/dist/x-modal.js +12 -12
  62. package/dist/x-morph-stack.js +37 -37
  63. package/dist/x-multi-combobox.d.ts +6 -5
  64. package/dist/x-multi-combobox.js +39 -36
  65. package/dist/x-navbar.js +15 -15
  66. package/dist/x-neural-glow.js +29 -29
  67. package/dist/x-notification-center.js +9 -9
  68. package/dist/x-organic-divider.js +17 -17
  69. package/dist/x-organic-progress.js +32 -32
  70. package/dist/x-organic-shape.js +12 -12
  71. package/dist/x-otp-input.js +21 -21
  72. package/dist/x-pagination.js +14 -14
  73. package/dist/x-particle-button.js +49 -49
  74. package/dist/x-popover.js +27 -27
  75. package/dist/x-progress-circle.js +8 -8
  76. package/dist/x-progress.js +7 -7
  77. package/dist/x-proximity-list.js +20 -20
  78. package/dist/x-radio.js +11 -11
  79. package/dist/x-range-slider.d.ts +51 -0
  80. package/dist/x-range-slider.js +29 -0
  81. package/dist/x-rating.d.ts +49 -0
  82. package/dist/x-rating.js +24 -0
  83. package/dist/x-ripple-effect.js +9 -9
  84. package/dist/x-scroll-parallax.js +17 -17
  85. package/dist/x-scroll-stack.js +16 -16
  86. package/dist/x-scroll-story.js +33 -33
  87. package/dist/x-scroll-timeline.js +45 -45
  88. package/dist/x-scroll.js +37 -37
  89. package/dist/x-search-field.d.ts +1 -0
  90. package/dist/x-search-field.js +1 -1
  91. package/dist/x-select.d.ts +2 -0
  92. package/dist/x-select.js +1 -1
  93. package/dist/x-sidebar.js +16 -16
  94. package/dist/x-skeleton-group.js +12 -12
  95. package/dist/x-skeleton.js +1 -1
  96. package/dist/x-slider.js +16 -16
  97. package/dist/x-soft-body.js +18 -18
  98. package/dist/x-spacer.js +4 -4
  99. package/dist/x-spinner.js +4 -4
  100. package/dist/x-splash.js +12 -12
  101. package/dist/x-split-pane.d.ts +44 -0
  102. package/dist/x-split-pane.js +16 -0
  103. package/dist/x-spotlight-card.js +12 -12
  104. package/dist/x-stat.js +10 -10
  105. package/dist/x-stepper.js +13 -13
  106. package/dist/x-switch.js +10 -10
  107. package/dist/x-tab.js +6 -6
  108. package/dist/x-table-cell.js +19 -19
  109. package/dist/x-table-row.js +8 -8
  110. package/dist/x-table.js +13 -13
  111. package/dist/x-tabs.js +11 -11
  112. package/dist/x-text-area.js +18 -18
  113. package/dist/x-theme.js +25 -25
  114. package/dist/x-timeline-item.js +20 -20
  115. package/dist/x-timeline.js +8 -8
  116. package/dist/x-toast.js +22 -22
  117. package/dist/x-toaster.js +7 -7
  118. package/dist/x-tooltip.js +12 -12
  119. package/dist/x-trace-history.js +126 -119
  120. package/dist/x-typography.js +6 -6
  121. package/dist/x-welcome-tour.js +63 -63
  122. package/package.json +28 -1
package/dist/x-code.js ADDED
@@ -0,0 +1,28 @@
1
+ import { $APP, shadow$provide } from "./base.js";
2
+ var d2=function(a){return $APP.Jc(ooa,typeof a==="string"?a.trim().toLowerCase():null,"text")},e2=function(a){return $APP.z.j("",a.trim())},poa=function(a){return $APP.w($APP.yh(/^[\t ]*/,a))},qoa=function(a){var b=$APP.$e(a.split("\n")),c=$APP.De(e2,b),d=$APP.q(c)?$APP.nd($APP.yo,$APP.we.j(poa,c)):0;return d>0?$APP.Bi("\n",$APP.we.j(function(e){return $APP.w(e)>=d?e.substring(d):e},b)):a},roa=function(a){var b=$APP.$e(a.split("\n")),c=$APP.w(b),d=function(){for(var e=0;;)if(e<c&&e2($APP.xc(b,e)))e+=
3
+ 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&e2($APP.xc(b,e)))--e;else return e}();return d<=a?$APP.Bi("\n",$APP.ff(null,b,d|0,a+1|0,null)):""},f2=function(a){return typeof a==="string"?qoa(roa($APP.Ai(a,/\r\n?/,"\n"))):""},h2=function(a){return new $APP.M(null,2,[$APP.Ys,$APP.Bi("|",$APP.we.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.P.i(b.source)+")"},a)),g2,$APP.Fe($APP.u,a)],null)},j2=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.w(c),e=$APP.w(a),f=$APP.wb($APP.Ee),
4
+ h=0;;){var k=b.exec(a);if(k==null)return $APP.Qd(h<e?$APP.Rd(f,new $APP.J(null,2,5,$APP.K,[i2,a.substring(h)],null)):f);var m=k[0],r=k.index;a:{for(var t=1;;){if(t>d){k=1;break a}if(k[t]!=null){k=t;break a}t+=1}k=void 0}k=$APP.xc(c,k-1);h=r>h?new $APP.J(null,2,5,$APP.K,[i2,a.substring(h,r)],null):null;r+=m.length;m.length===0&&(b.lastIndex+=1);f=$APP.n(h)?$APP.xb(f,h):f;f=m=$APP.Rd(f,new $APP.J(null,2,5,$APP.K,[k,m],null));h=r}},soa=function(a){a=$APP.q(a);for(var b=$APP.Ee,c=$APP.Ee;;){if(a==null)return $APP.Ad.j(c,
5
+ b);var d=$APP.u(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.$e(f.split("\n")),k=$APP.w(h);if($APP.z.j(k,1))a=$APP.v(a),b=$APP.Ad.j(b,new $APP.J(null,2,5,$APP.K,[e,f],null));else{var m=$APP.v(a),r=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[e,$APP.Pc(h)],null)],null);c=$APP.If.j($APP.Ad.j(c,$APP.Ad.j(b,new $APP.J(null,2,5,$APP.K,[e,$APP.u(h)],null))),$APP.we.j(function(t,x,y,A,E){return function(H){return new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[E,H],null)],null)}}(a,
6
+ b,c,d,e,f,h,k),$APP.ff(null,h,1,k-1|0,null)));a=m;b=r}}},k2=function(a){var b=$APP.l(a,"__xCodeCodeValue");if(typeof b==="string")return b;a=$APP.n(a.hasAttribute("code"))?a.getAttribute("code"):a.textContent;return $APP.n(a)?a:""},l2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(i2,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.P.i($APP.ih(b));c.textContent=a;return c},m2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),
7
+ e=document.createElement("span");$APP.T(c,"part","line");$APP.T(d,"part","gutter");$APP.T(d,"aria-hidden","true");d.textContent=""+$APP.P.i(b+1);$APP.T(e,"part","line-content");a=$APP.q(a);b=null;for(var f=0,h=0;;)if(h<f){var k=b.C(null,h);$APP.I("",$APP.Fc(k))&&e.appendChild(l2(k));h+=1}else if(a=$APP.q(a))b=a,$APP.Yc(b)?(a=$APP.Db(b),h=$APP.Eb(b),b=a,f=$APP.w(a),a=h):(a=$APP.u(b),$APP.I("",$APP.Fc(a))&&e.appendChild(l2(a)),a=$APP.v(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);
8
+ return c},G2=function(a){if($APP.n($APP.l(a,"__xCodeRefs"))){var b=k2(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.n(d)?$APP.z.j(f2(b),n2.i(d))&&$APP.z.j(d2(c),o2.i(d)):d;b=$APP.Eg([$APP.Zp,p2,q2,r2,s2,t2,u2,v2,w2],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.n(e)?q2.i(d):null,a.hasAttribute("wrap"),a.getAttribute("max-lines"),b,a.hasAttribute("show-copy"),a.hasAttribute("line-numbers"),c]);e=$APP.G(b);var f=$APP.C(e,u2);b=$APP.C(e,v2);c=$APP.C(e,w2);var h=
9
+ $APP.C(e,$APP.Zp),k=$APP.C(e,p2),m=$APP.C(e,q2);d=$APP.C(e,r2);var r=$APP.C(e,s2);e=$APP.C(e,t2);c=d2(c);e=f2(e);h=typeof h==="string"?h.trim():null;h=$APP.n($APP.n(h)?$APP.I("",h):h)?h:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;$APP.n(m)||(m=""+$APP.P.i(e),m=$APP.z.j("",m)?$APP.Ee:$APP.z.j(c,"js")?j2(m,$APP.Ys.i(x2),g2.i(x2)):$APP.z.j(c,"json")?j2(m,$APP.Ys.i(y2),g2.i(y2)):$APP.z.j(c,"css")?j2(m,$APP.Ys.i(z2),g2.i(z2)):$APP.z.j(c,"html")?j2(m,$APP.Ys.i(A2),g2.i(A2)):
10
+ new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[i2,m],null)],null),m=soa(m));var t=$APP.w(m);f=$APP.D(f);k=$APP.D(k);var x=$APP.D(f||$APP.I("",h)),y=$APP.D(r>0&&t>r);d=$APP.D(d);b=$APP.D(b);var A=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.Eg([p2,q2,B2,C2,$APP.vt,r2,o2,n2,u2,v2,D2,E2,F2],[k,m,x,y,h,d,c,e,f,b,A,t,r]);if($APP.I(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.P.i(F2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.P.i($APP.Po.j(2,(""+$APP.P.i(E2.i(b))).length)));
11
+ h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.vt.i(b));f=!k&&$APP.I("",D2.i(b));$APP.Zi(a,"data-header",B2.i(b));c.textContent=$APP.vt.i(b);c.style.display=k?"block":"none";d.textContent=D2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.n(u2.i(b))?"inline-flex":"none";$APP.T(h,"text",n2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.I($APP.Zg(b,new $APP.J(null,2,5,$APP.K,[n2,o2],null)),$APP.Zg(c,new $APP.J(null,2,
12
+ 5,$APP.K,[n2,o2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.qe($APP.Vo,q2.i(b)));h=null;for(f=k=0;;)if(f<k)m=h.C(null,f),r=$APP.B(m,0,null),m=$APP.B(m,1,null),d.appendChild(m2(m,r)),f+=1;else if(e=$APP.q(e))$APP.Yc(e)?(k=$APP.Db(e),e=$APP.Eb(e),h=k,k=$APP.w(k)):(k=$APP.u(e),h=$APP.B(k,0,null),k=$APP.B(k,1,null),d.appendChild(m2(k,h)),e=$APP.v(e),h=null,k=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),
13
+ "expander");e=C2.i(b);d=$APP.n(e)?$APP.p(p2.i(b)):e;$APP.Zi(a,"data-collapsible",e);$APP.Zi(a,"data-collapsed",d);$APP.n(d)?(h=$APP.G(b),e=$APP.C(h,E2),h=$APP.C(h,F2),e=$APP.Po.j(0,e-h),e="Show "+$APP.P.i(e)+" more "+$APP.P.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.T(c,"aria-expanded",$APP.n(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.I("",$APP.vt.i(b))?$APP.vt.i(b):$APP.I("",D2.i(b))?""+$APP.P.i(D2.i(b))+" code":"Code";$APP.T(c,"aria-label",d);a=
14
+ $APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},uoa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(toa),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),m=$APP.B(h,1,null),r=$APP.B(h,2,null),t=$APP.l(b,k);t.addEventListener(m,function(A,E,H,N,S,R,Y,la,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,t,h,k,m,r,b));f+=1}else if(t=$APP.q(c)){h=t;if($APP.Yc(h))c=$APP.Db(h),f=$APP.Eb(h),d=c,e=$APP.w(c),c=f;else{var x=$APP.u(h);k=$APP.B(x,0,null);
15
+ m=$APP.B(x,1,null);r=$APP.B(x,2,null);var y=$APP.l(b,k);y.addEventListener(m,function(A,E,H,N,S,R,Y,la,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,y,x,k,m,r,h,t,b));c=$APP.v(h);d=null;e=0}f=0}else break},voa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.n(b))return b;b=new MutationObserver(function(){return G2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},woa=function(a){$APP.lj(a,"language",
16
+ "language","");$APP.lj(a,"filename","filename","");$APP.ij(a,"showCopy","show-copy");$APP.ij(a,"lineNumbers","line-numbers");$APP.ij(a,"wrap","wrap");$APP.ij(a,"expanded","expanded");$APP.nj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return k2(this)},set:function(b){typeof b==="string"?$APP.Q(this,"__xCodeCodeValue",b):$APP.Q(this,"__xCodeCodeValue");return G2(this)}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,
17
+ value:function(){return $APP.T(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded")}})},zoa=function(a){if(!$APP.n($APP.l(a,"__xCodeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");var e=document.createElement("div");var f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("x-copy");
18
+ $APP.T(e,"part","header");$APP.T(f,"part","filename");$APP.T(h,"part","language");$APP.T(k,"part","copy-wrap");$APP.T(m,"part","copy");$APP.T(m,"show-tooltip","false");m.appendChild(document.createTextNode("Copy"));k.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.M(null,5,[$APP.Qq,e,$APP.vt,f,H2,h,I2,k,$APP.su,m],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");m=document.createElement("code");var r=document.createElement("div");
19
+ $APP.T(f,"part","body");$APP.T(h,"part","scroll");$APP.T(h,"role","region");$APP.T(h,"tabindex","0");$APP.T(k,"part","pre");$APP.T(m,"part","code");$APP.T(r,"part","fade");$APP.T(r,"aria-hidden","true");k.appendChild(m);h.appendChild(k);f.appendChild(h);f.appendChild(r);f=new $APP.M(null,5,[$APP.Yq,f,$APP.$r,h,xoa,k,n2,m,yoa,r],null);h=document.createElement("button");$APP.T(h,"part","expander");$APP.T(h,"type","button");c.textContent=":host{display:block;color-scheme:light dark;--x-code-bg:var(--x-color-surface,#f6f8fa);--x-code-fg:var(--x-color-text,#1f2328);--x-code-border:var(--x-color-border,#d0d7de);--x-code-muted:var(--x-color-text-muted,#656d76);--x-code-radius:var(--x-radius-md,8px);--x-code-font:var(--x-font-family-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);--x-code-font-size:0.8125rem;--x-code-line-height:1.6;--x-code-tab-size:2;--x-code-accent:var(--x-color-primary,#0969da);--x-code-token-comment:#6a737d;--x-code-token-string:#0a7d33;--x-code-token-template:#0a7d33;--x-code-token-keyword:#cf222e;--x-code-token-number:#0550ae;--x-code-token-punct:#57606a;--x-code-token-key:#0550ae;--x-code-token-atrule:#cf222e;--x-code-token-property:#0550ae;--x-code-token-tag:#116329;--x-code-token-attr-value:#0a3069;--x-code-token-entity:#0550ae;}@media (prefers-color-scheme:dark){:host{--x-code-bg:var(--x-color-surface,#161b22);--x-code-fg:var(--x-color-text,#e6edf3);--x-code-border:var(--x-color-border,#30363d);--x-code-muted:var(--x-color-text-muted,#8b949e);--x-code-token-comment:#8b949e;--x-code-token-string:#a5d6ff;--x-code-token-template:#a5d6ff;--x-code-token-keyword:#ff7b72;--x-code-token-number:#79c0ff;--x-code-token-punct:#c9d1d9;--x-code-token-key:#79c0ff;--x-code-token-atrule:#ff7b72;--x-code-token-property:#79c0ff;--x-code-token-tag:#7ee787;--x-code-token-attr-value:#a5d6ff;--x-code-token-entity:#79c0ff;}}[part\x3dcontainer]{display:flex;flex-direction:column;max-inline-size:100%;box-sizing:border-box;border:1px solid var(--x-code-border);border-radius:var(--x-code-radius);overflow:hidden;background:var(--x-code-bg);color:var(--x-code-fg);font-family:var(--x-code-font);font-size:var(--x-code-font-size);}[part\x3dheader]{display:none;align-items:center;gap:0.5rem;box-sizing:border-box;padding:0.4rem 0.75rem;border-bottom:1px solid var(--x-code-border);font-size:0.75rem;}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}[part\x3dlanguage]{color:var(--x-code-muted);text-transform:uppercase;letter-spacing:0.06em;}[part\x3dcopy-wrap]{margin-inline-start:auto;}[part\x3dcopy]::part(trigger){font:inherit;font-size:0.7rem;padding:0.2rem 0.5rem;border-radius:var(--x-radius-sm,4px);border:1px solid var(--x-code-border);background:var(--x-code-bg);color:var(--x-code-muted);cursor:pointer;}[part\x3dcopy]::part(trigger):hover{color:var(--x-code-fg);}[part\x3dbody]{position:relative;}[part\x3dscroll]{overflow:auto;}[part\x3dscroll]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}[part\x3dpre]{margin:0;}[part\x3dcode]{display:inline-block;min-width:100%;box-sizing:border-box;padding-block:0.75rem;line-height:var(--x-code-line-height);tab-size:var(--x-code-tab-size);-moz-tab-size:var(--x-code-tab-size);}[part\x3dline]{display:flex;min-width:100%;width:max-content;min-height:calc(1em * var(--x-code-line-height));}[part\x3dgutter]{position:sticky;left:0;flex:0 0 auto;box-sizing:border-box;width:calc(var(--x-code-gutter-digits,2) * 1ch + 1.5em);padding:0 0.75em;text-align:right;color:var(--x-code-muted);background:var(--x-code-bg);user-select:none;-webkit-user-select:none;}:host(:not([line-numbers])) [part\x3dgutter]{display:none;}[part\x3dline-content]{flex:0 0 auto;white-space:pre;padding-right:0.75em;}:host(:not([line-numbers])) [part\x3dline-content]{padding-left:0.75em;}:host([wrap]) [part\x3dscroll]{overflow-x:hidden;}:host([wrap]) [part\x3dcode]{display:block;}:host([wrap]) [part\x3dline]{width:auto;}:host([wrap]) [part\x3dline-content]{flex:1 1 auto;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;}.tok-comment{color:var(--x-code-token-comment);font-style:italic;}.tok-string{color:var(--x-code-token-string);}.tok-template{color:var(--x-code-token-template);}.tok-keyword{color:var(--x-code-token-keyword);}.tok-number{color:var(--x-code-token-number);}.tok-punct{color:var(--x-code-token-punct);}.tok-key{color:var(--x-code-token-key);}.tok-atrule{color:var(--x-code-token-atrule);}.tok-property{color:var(--x-code-token-property);}.tok-tag{color:var(--x-code-token-tag);}.tok-attr-value{color:var(--x-code-token-attr-value);}.tok-entity{color:var(--x-code-token-entity);}:host([data-collapsed]) [part\x3dscroll]{max-height:calc(var(--x-code-font-size) * var(--x-code-line-height) * var(--x-code-max-lines,10) + 1.5rem);overflow-y:hidden;}[part\x3dfade]{display:none;position:absolute;left:0;right:0;bottom:0;height:3.5em;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--x-code-bg));}:host([data-collapsed]) [part\x3dfade]{display:block;}[part\x3dexpander]{display:none;width:100%;box-sizing:border-box;border:0;border-top:1px solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:0.75rem;cursor:pointer;text-align:center;transition:background 120ms ease;}:host([data-collapsible]) [part\x3dexpander]{display:block;}[part\x3dexpander]:hover{text-decoration:underline;}[part\x3dexpander]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}@media (prefers-reduced-motion:reduce){[part\x3dexpander]{transition:none;}}";
20
+ $APP.T(d,"part","container");d.appendChild($APP.Qq.i(e));d.appendChild($APP.Yq.i(f));d.appendChild(h);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.vt.i(e),lang:H2.i(e),cwrap:I2.i(e),copy:$APP.su.i(e),scroll:$APP.$r.i(f),code:n2.i(f),expander:h});uoa(a)}voa(a);return G2(a)},Aoa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.n(a)?a.disconnect():null},Boa=function(a,b,c,d){return $APP.I(c,d)?G2(a):null},J2=function(){$APP.Fm();return $APP.xi("x-code",new $APP.M(null,
21
+ 5,[$APP.hi,Coa,$APP.fi,zoa,$APP.ci,Aoa,$APP.bi,Boa,$APP.gi,woa],null))},i2=new $APP.F(null,"plain","plain",1368629269),K2=new $APP.F(null,"number","number",1570378438),Doa=new $APP.F(null,"entity","entity",-450970276),t2=new $APP.F(null,"code-raw","code-raw",1397705045),Eoa=new $APP.F(null,"attr-value","attr-value",2093232352),L2=new $APP.F(null,"punct","punct",1807261997),s2=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),r2=new $APP.F(null,"wrap?","wrap?",-1677427054),I2=new $APP.F(null,
22
+ "cwrap","cwrap",-648244090),H2=new $APP.F(null,"lang","lang",-1819677104),q2=new $APP.F(null,"lines","lines",-700165781),g2=new $APP.F(null,"types","types",590030639),Foa=new $APP.F(null,"property","property",-1114278232),B2=new $APP.F(null,"header?","header?",-106649173),Goa=new $APP.F(null,"expanded","expanded",-3020742),M2=new $APP.F(null,"comment","comment",532206069),N2=new $APP.F(null,"string","string",-1989541586),o2=new $APP.F(null,"language","language",-1591107564),Hoa=new $APP.F(null,"atrule",
23
+ "atrule",-521152778),u2=new $APP.F(null,"show-copy?","show-copy?",604953882),p2=new $APP.F(null,"expanded?","expanded?",2055832296),C2=new $APP.F(null,"collapsible?","collapsible?",-1508197779),O2=new $APP.F(null,"keyword","keyword",811389747),n2=new $APP.F(null,"code","code",1586293142),F2=new $APP.F(null,"max-lines","max-lines",-125998785),yoa=new $APP.F(null,"fade","fade",1167694157),D2=new $APP.F(null,"language-label","language-label",-733379621),w2=new $APP.F(null,"language-raw","language-raw",
24
+ -402825953),v2=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),E2=new $APP.F(null,"line-count","line-count",871713181),xoa=new $APP.F(null,"pre","pre",2118456869);var Coa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),ooa=$APP.Eg(" json js xml mjs css svg jsx htm text plain txt javascript html".split(" "),"text json js html js css html js html text text text js html".split(" "));$APP.he(["x-code-copy",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,1,[n2,$APP.X],null)],null),"x-code-toggle",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,1,[Goa,$APP.qj],null)],null)]);
25
+ var Ioa=new $APP.J(null,5,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[$APP.Jr,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\]|\\.)*"/],null),new $APP.J(null,2,5,$APP.K,[K2,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[O2,/\b(?:true|false|null)\b/],null),new $APP.J(null,2,5,$APP.K,[L2,/[{}\[\]:,]/],null)],null),Joa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\/\*[\s\S]*?\*\//],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
26
+ null),new $APP.J(null,2,5,$APP.K,[Hoa,/@[\w-]+/],null),new $APP.J(null,2,5,$APP.K,[Foa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[K2,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[{}();:,]/],null)],null),Koa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.J(null,2,5,$APP.K,[$APP.cr,/<![^>]*>/],null),new $APP.J(null,2,5,$APP.K,[$APP.cr,/<\/?[A-Za-z][\w-]*/],null),new $APP.J(null,2,5,$APP.K,[Eoa,
27
+ /"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[Doa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.J(null,2,5,$APP.K,[L2,/[<>\/=]/],null)],null),x2=h2(new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[M2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.J(null,2,5,$APP.K,[$APP.Mu,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.J(null,2,5,$APP.K,[N2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.J(null,2,5,$APP.K,[O2,/\b(?:const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|delete|typeof|instanceof|class|extends|super|this|import|export|from|as|default|try|catch|finally|throw|async|await|yield|void|null|undefined|true|false|NaN|Infinity)\b/],
28
+ null),new $APP.J(null,2,5,$APP.K,[K2,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[L2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),y2=h2(Ioa),z2=h2(Joa),A2=h2(Koa);var toa=new $APP.J(null,2,5,$APP.K,[new $APP.J(null,3,5,$APP.K,["expander","click",function(a){var b=$APP.p(p2.i($APP.l(a,"__xCodeModel")));b?$APP.T(a,"expanded",""):$APP.U(a,"expanded");return $APP.dj(a,"x-code-toggle",{expanded:b})}],null),new $APP.J(null,3,5,$APP.K,["copy","x-copy-success",function(a){return $APP.dj(a,"x-code-copy",{code:n2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.fa("baredom.exports.x_code.init",J2);export const init=J2;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var a$=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},c$=function(a){a=b$.i($APP.l(a,"__xCollapseModel"));return $APP.n(a)?a:300},d$=function(a){a.style.height="";return a.style.transition=""},e$=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.P.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return d$(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
- d$(a);return a.removeEventListener("transitionend",h)})},h$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.N(null,4,[$APP.Rn,a.hasAttribute("open"),$APP.Wi,a.hasAttribute("disabled"),f$,a.getAttribute("header"),g$,a.getAttribute("duration-ms")],null);var c=$APP.H(b);b=$APP.C(c,$APP.Rn);var d=$APP.C(c,$APP.Wi),e=$APP.C(c,f$);c=$APP.C(c,g$);b=$APP.E(b);d=$APP.E(d);e=$APP.n(e)?e:"";$APP.n(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.n(c)?$APP.Gm.j(0,$APP.Hm.j(2E3,
4
- c)):300;b=new $APP.N(null,4,[$APP.ls,b,$APP.cj,d,$APP.Ao,e,b$,c],null);$APP.I($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.n(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.H(b),c=$APP.C(c,$APP.Ao),e.textContent=c,c=$APP.H(b),e=$APP.C(c,$APP.ls),c=$APP.C(c,$APP.cj),$APP.T(d,"aria-expanded",$APP.n(e)?"true":"false"),$APP.n(c)?($APP.T(d,"disabled",""),$APP.T(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.R(a,"__xCollapseModel",b)):
5
- a=null):a=null;return a}return null},i$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.ri(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.T(a,"open",""):$APP.U(a,"open"),$APP.pi(a,"x-collapse-change",{open:c})):null},qoa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){b=$APP.l(b,"trigger");var c=function(){return i$(a,"pointer")},d=function(f){var h=f.key;$APP.y.j(h," ")||$APP.y.j(h,"Enter")||$APP.y.j(h,"Space")?(f.preventDefault(),
6
- f=i$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.R(a,"__xCollapseHandlers",e)}},j$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.R(a,"__xCollapseHandlers",null)}return null},roa=function(a){if(!$APP.n($APP.l(a,"__xCollapseRefs"))){var b=
7
- a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),q=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
8
- $APP.T(d,"part","container");$APP.T(e,"part","trigger");$APP.T(e,"type","button");$APP.T(e,"id","trigger");$APP.T(e,"aria-controls","panel");$APP.T(f,"part","header-text");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","content");$APP.T(k,"id","panel");$APP.T(k,"role","region");$APP.T(k,"aria-labelledby","trigger");$APP.T(m,"part","content-inner");$APP.T(q,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);m.appendChild(q);k.appendChild(m);d.appendChild(e);
9
- d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.R(a,"__xCollapseRefs",c)}j$(a);qoa(a);return h$(a)},soa=function(a){return j$(a)},toa=function(a,b,c,d){return $APP.I(c,d)&&(h$(a),$APP.y.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.n(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.n(b)?$APP.n(c)?$APP.n(a$())?a=d$(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.P.i(b.scrollHeight)+"px",a=e$(b,"0px",c,c$(a))):$APP.n(a$())?
10
- (b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=e$(b,c,"0px",c$(a))):a=null,a):null},voa=function(a){$APP.Ei(a,uoa);return Object.defineProperty(a,"toggle",{value:function(){return i$(this,"programmatic")},writable:!0,configurable:!0})},k$=function(){return $APP.Kh("x-collapse",new $APP.N(null,5,[$APP.Bh,woa,$APP.zh,roa,$APP.qh,soa,$APP.ph,toa,$APP.Ah,voa],null))},f$=new $APP.F(null,"header-raw","header-raw",41484),g$=new $APP.F(null,"duration-ms-raw","duration-ms-raw",
11
- -2138819526),b$=new $APP.F(null,"duration-ms","duration-ms",1993555055);var woa=["open","disabled","header","duration-ms"],uoa=new $APP.N(null,4,[$APP.Ir,new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"open"],null),$APP.Hk,new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"disabled"],null),$APP.Ao,new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.N(null,3,[$APP.O,$APP.Z,$APP.W,"duration-ms",$APP.Di,300],null)],null);
12
- $APP.be(["x-collapse-toggle",new $APP.N(null,2,[$APP.Mr,!0,$APP.V,new $APP.N(null,2,[$APP.Ir,$APP.Ci,$APP.Vq,$APP.Y],null)],null),"x-collapse-change",new $APP.N(null,2,[$APP.Mr,!1,$APP.V,new $APP.N(null,1,[$APP.Ir,$APP.Ci],null)],null)]);$APP.fa("baredom.exports.x_collapse.init",k$);export const init=k$;
3
+ d$(a);return a.removeEventListener("transitionend",h)})},h$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.M(null,4,[$APP.aq,a.hasAttribute("open"),$APP.Xj,a.hasAttribute("disabled"),f$,a.getAttribute("header"),g$,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.aq);var d=$APP.C(c,$APP.Xj),e=$APP.C(c,f$);c=$APP.C(c,g$);b=$APP.D(b);d=$APP.D(d);e=$APP.n(e)?e:"";$APP.n(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.n(c)?$APP.Po.j(0,$APP.yo.j(2E3,
4
+ c)):300;b=new $APP.M(null,4,[$APP.pu,b,$APP.fk,d,$APP.Qq,e,b$,c],null);$APP.I($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.n(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.Qq),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.pu),c=$APP.C(c,$APP.fk),$APP.T(d,"aria-expanded",$APP.n(e)?"true":"false"),$APP.n(c)?($APP.T(d,"disabled",""),$APP.T(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",b)):
5
+ a=null):a=null;return a}return null},i$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.fj(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.T(a,"open",""):$APP.U(a,"open"),$APP.dj(a,"x-collapse-change",{open:c})):null},Jta=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){b=$APP.l(b,"trigger");var c=function(){return i$(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
6
+ f=i$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.Q(a,"__xCollapseHandlers",e)}},j$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xCollapseHandlers",null)}return null},Kta=function(a){if(!$APP.n($APP.l(a,"__xCollapseRefs"))){var b=
7
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
8
+ $APP.T(d,"part","container");$APP.T(e,"part","trigger");$APP.T(e,"type","button");$APP.T(e,"id","trigger");$APP.T(e,"aria-controls","panel");$APP.T(f,"part","header-text");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","content");$APP.T(k,"id","panel");$APP.T(k,"role","region");$APP.T(k,"aria-labelledby","trigger");$APP.T(m,"part","content-inner");$APP.T(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);m.appendChild(r);k.appendChild(m);d.appendChild(e);
9
+ d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}j$(a);Jta(a);return h$(a)},Lta=function(a){return j$(a)},Mta=function(a,b,c,d){return $APP.I(c,d)&&(h$(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.n(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.n(b)?$APP.n(c)?$APP.n(a$())?a=d$(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.P.i(b.scrollHeight)+"px",a=e$(b,"0px",c,c$(a))):$APP.n(a$())?
10
+ (b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=e$(b,c,"0px",c$(a))):a=null,a):null},Ota=function(a){$APP.sj(a,Nta);return Object.defineProperty(a,"toggle",{value:function(){return i$(this,"programmatic")},writable:!0,configurable:!0})},k$=function(){return $APP.xi("x-collapse",new $APP.M(null,5,[$APP.hi,Pta,$APP.fi,Kta,$APP.ci,Lta,$APP.bi,Mta,$APP.gi,Ota],null))},f$=new $APP.F(null,"header-raw","header-raw",41484),g$=new $APP.F(null,"duration-ms-raw","duration-ms-raw",
11
+ -2138819526),b$=new $APP.F(null,"duration-ms","duration-ms",1993555055);var Pta=["open","disabled","header","duration-ms"],Nta=new $APP.M(null,4,[$APP.Lt,new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"open"],null),$APP.Jm,new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),$APP.Qq,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.M(null,3,[$APP.O,$APP.Z,$APP.W,"duration-ms",$APP.rj,300],null)],null);
12
+ $APP.he(["x-collapse-toggle",new $APP.M(null,2,[$APP.Pt,!0,$APP.V,new $APP.M(null,2,[$APP.Lt,$APP.qj,$APP.Ys,$APP.X],null)],null),"x-collapse-change",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,1,[$APP.Lt,$APP.qj],null)],null)]);$APP.fa("baredom.exports.x_collapse.init",k$);export const init=k$;
@@ -1,47 +1,47 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uI=function(a,b){return $APP.Hm.j($APP.Gm.j(a,0),b)},vI=function(a){return $APP.qd(a,360)},wI=function(a){return uI(a,100)},xI=function(a){return uI(a,1)},zI=function(a){var b=typeof a==="string";a=b?$APP.Lg(yI,a.trim()):b;return $APP.E(a)},DI=function(a){if(typeof a==="string")if(a=$APP.Lg(yI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.vc(a,0))+$APP.P.i($APP.vc(a,0)),16),c=parseInt(""+$APP.P.i($APP.vc(a,1))+$APP.P.i($APP.vc(a,
3
- 1)),16),d=parseInt(""+$APP.P.i($APP.vc(a,2))+$APP.P.i($APP.vc(a,2)),16);return new $APP.N(null,4,[AI,b,$APP.qr,c,BI,d,CI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.N(null,4,[AI,b,$APP.qr,c,BI,d,CI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.N(null,4,[AI,b,$APP.qr,c,BI,d,CI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},HI=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Gm.B(a,b,$APP.Ac([c])),e=$APP.Hm.B(a,b,$APP.Ac([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.N(null,3,[EI,0,FI,0,GI,f*100],null):new $APP.N(null,3,[EI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,FI,(f>.5?h/(2-d-e):h/(d+e))*100,GI,f*100],null)},II=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},JI=function(a,b,c){a=vI(a)/360;b=wI(b)/100;c=wI(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.N(null,3,[AI,a,$APP.qr,a,BI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.N(null,3,[AI,Math.round(II(c,b,a+1/3)*255),$APP.qr,Math.round(II(c,b,a)*255),BI,Math.round(II(c,b,a-1/3)*255)],null)},KI=function(a,b,c){function d(e){e=uI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},LI=function(a,b,c,d){function e(f){f=uI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
6
- return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(xI(d)*255))},NI=function(a,b,c){b=wI(b)/100;c=wI(c)/100;b=c+b*$APP.Hm.j(c,1-c);return new $APP.N(null,3,[EI,vI(a),FI,(b===0?0:2*(1-c/b))*100,MI,b*100],null)},OI=function(a,b,c){b=wI(b)/100;c=wI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Hm.j(b,1-b);return new $APP.N(null,3,[EI,vI(a),FI,c*100,GI,b*100],null)},PI=function(a,b,c){return 100*(uI(a-b,c)/c)},QI=function(a){return typeof a==="string"&&zI(a)?(a=DI(a),$APP.n(a)?KI(AI.i(a),
7
- $APP.qr.i(a),BI.i(a)):null):"#000000"},SI=function(a){return typeof a==="string"&&$APP.$c(RI,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},TI=function(a){return typeof a==="string"&&$APP.Wh(a)?$APP.tf.m($APP.we,$APP.Im.m($APP.oe.i($APP.Sh),$APP.te(zI),$APP.oe.i(function(b){b=DI(b);var c=$APP.H(b);b=$APP.C(c,AI);var d=$APP.C(c,$APP.qr);c=$APP.C(c,BI);return KI(b,d,c)})),$APP.Qh(a,/,/)):$APP.we},ZI=function(a){var b=$APP.H(a),c=$APP.C(b,$APP.Ir),d=$APP.C(b,$APP.Hk),e=$APP.C(b,$APP.ei);a=
8
- $APP.C(b,$APP.$i);var f=$APP.C(b,$APP.Bi),h=$APP.C(b,$APP.Jo),k=$APP.C(b,UI),m=$APP.C(b,$APP.bj),q=$APP.C(b,VI);b=QI(e);var u=function(){var S=DI(e);return $APP.n(S)?S:DI("#000000")}(),x=$APP.H(u);u=$APP.C(x,AI);var z=$APP.C(x,$APP.qr),A=$APP.C(x,BI);x=$APP.C(x,CI);var D=function(){var S=typeof e==="string";if(S){S=e.trim();var Q=$APP.Lg(yI,S);return $APP.n(Q)?8===$APP.w($APP.Dc($APP.Lg(yI,S))):Q}return S}();x=$APP.n(D)?x:1;D=HI(u,z,A);var G=$APP.H(D);D=$APP.C(G,EI);var J=$APP.C(G,FI);G=$APP.C(G,
9
- GI);d=$APP.Uh(d);f=$APP.Uh(f);q=q!=null;c=c!=null;h=SI(h);return $APP.Yf([$APP.mk,WI,$APP.$i,$APP.Jo,UI,FI,GI,XI,EI,$APP.bj,$APP.ls,YI,$APP.cj,CI],[f,q,$APP.Wh(a)?a:null,h,TI(k),J,G,b,D,$APP.Wh(m)?m:null,$APP.y.j(h,"popover")&&c,q&&x<1?LI(u,z,A,x):b,d,x])},$I=function(a){var b=$APP.H(a);a=$APP.C(b,$APP.cj);b=$APP.C(b,$APP.mk);return $APP.p(a)&&$APP.p(b)},aJ=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
10
- $APP.T(a,"aria-valuemax",d)},bJ=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},cJ=function(a){return ZI($APP.Yf([$APP.Ir,$APP.Hk,$APP.$i,$APP.ei,$APP.Bi,$APP.Jo,UI,$APP.bj,VI],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},dJ=function(a,b){var c=YI.i(b),d=EI.i(b),e=
11
- FI.i(b),f=GI.i(b);b=CI.i(b);return $APP.pi(a,"x-color-picker-input",$APP.Xm(new $APP.N(null,5,[$APP.ei,c,EI,d,FI,e,GI,f,CI,b],null)))},eJ=function(a,b){var c=YI.i(b),d=EI.i(b),e=FI.i(b),f=GI.i(b);b=CI.i(b);return $APP.ri(a,"x-color-picker-change",$APP.Xm(new $APP.N(null,5,[$APP.ei,c,EI,d,FI,e,GI,f,CI,b],null)))},fJ=function(a,b,c,d,e,f){b=JI(b,c,d);d=$APP.H(b);b=$APP.C(d,AI);c=$APP.C(d,$APP.qr);d=$APP.C(d,BI);e=$APP.n($APP.n(f)?e<1:f)?LI(b,c,d,e):KI(b,c,d);$APP.T(a,"value",e)},gJ=function(a,b,c,d){if($APP.I($APP.l(a,
12
- "__xColorPickerSwatchesCache"),c)){$APP.R(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.r(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.F(null,f),k=document.createElement("button");$APP.T(k,"part","swatch");$APP.T(k,"type","button");$APP.T(k,"role","option");$APP.T(k,"aria-label",h);$APP.T(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.r(a))$APP.Wc(a)?(e=$APP.Cb(a),a=$APP.Db(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),$APP.T(e,"part",
13
- "swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.y.j(m.getAttribute("data-color"),d)?"true":"false")})},hJ=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=cJ(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.n(c)){var d=
14
- $APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var q=$APP.H(b),u=$APP.C(q,EI);q=$APP.C(q,$APP.Jo);$APP.T(a,"data-mode",q);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));q=$APP.H(b);var x=$APP.C(q,EI),z=$APP.C(q,FI),A=$APP.C(q,GI);u=$APP.C(q,CI);q=$APP.C(q,$APP.bj);z=NI(x,z,A);var D=$APP.H(z);z=$APP.C(D,FI);D=$APP.C(D,MI);D=new $APP.N(null,2,[$APP.mr,wI(z),$APP.lr,
15
- 100-wI(D)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.mr.i(D).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.lr.i(D).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(z))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.T(d,"aria-valuetext",u);$APP.n(q)&&$APP.T(d,"aria-label",q);d=$APP.H(b);d=$APP.C(d,EI);e.style.setProperty("--_x-cp-hue-pos",""+$APP.P.i((vI(d)/
16
- 360*100).toFixed(2))+"%");$APP.T(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.H(b);e=$APP.C(x,EI);d=$APP.C(x,FI);u=$APP.C(x,GI);q=$APP.C(x,CI);x=$APP.C(x,WI);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(u))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((xI(q)*100).toFixed(2))+"%"),$APP.T(f,"aria-valuenow",""+$APP.P.i(Math.round(q*100)))):f.style.display="none";x=$APP.H(b);
17
- e=$APP.C(x,EI);d=$APP.C(x,FI);u=$APP.C(x,GI);f=$APP.C(x,CI);q=$APP.C(x,XI);x=$APP.C(x,WI);$APP.n(x)?(e=JI(e,d,u),u=$APP.H(e),e=$APP.C(u,AI),d=$APP.C(u,$APP.qr),u=$APP.C(u,BI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=q;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.H(b);h=$APP.C(f,YI);k=$APP.C(f,$APP.cj);f=$APP.C(f,$APP.mk);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;gJ(a,c,UI.i(b),XI.i(b));m=$APP.H(b);m=$APP.C(m,YI);
18
- c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.R(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},jJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=PI(b.clientX,c.left,c.width);a=PI(a,d,e);return new $APP.N(null,2,[iJ,wI(b),$APP.Wm,100-wI(a)],null)},kJ=function(a,b){a=a.getBoundingClientRect();b=PI(b.clientX,a.left,a.width);return wI(b)/100*360},lJ=function(a,b){a=a.getBoundingClientRect();b=PI(b.clientX,a.left,
19
- a.width);return wI(b)/100},nJ=function(a,b){var c=cJ(a);if($I(c)&&$APP.$c(mJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=NI(EI.i(c),FI.i(c),GI.i(c)),f=function(){switch(b.key){case "ArrowRight":return wI(FI.i(e)+d);case "ArrowLeft":return wI(FI.i(e)-d);default:return FI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return wI(MI.i(e)+d);case "ArrowDown":return wI(MI.i(e)-d);default:return MI.i(e)}}();f=OI(EI.i(c),f,h);var k=$APP.H(f);f=$APP.C(k,EI);h=$APP.C(k,FI);k=$APP.C(k,GI);
20
- fJ(a,f,h,k,CI.i(c),WI.i(c));dJ(a,cJ(a));return eJ(a,cJ(a))}return null},pJ=function(a,b){var c=cJ(a);if($I(c)&&$APP.$c(oJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return vI(EI.i(c)+d);case "ArrowLeft":return vI(EI.i(c)-d);case "Home":return 0;case "End":return 360;default:return EI.i(c)}}();fJ(a,e,FI.i(c),GI.i(c),CI.i(c),WI.i(c));dJ(a,cJ(a));return eJ(a,cJ(a))}return null},qJ=function(a,b){var c=cJ(a);if($APP.n(function(){var f=$I(c);return f?
21
- (f=WI.i(c),$APP.n(f)?$APP.$c(oJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return xI(CI.i(c)+d);case "ArrowLeft":return xI(CI.i(c)-d);case "Home":return 0;case "End":return 1;default:return CI.i(c)}}();fJ(a,EI.i(c),FI.i(c),GI.i(c),e,!0);dJ(a,cJ(a));return eJ(a,cJ(a))}return null},rJ=function(a){var b=cJ(a);return $I(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);return eJ(a,
22
- cJ(a))}).catch(function(){return null}):null},sJ=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},tJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},uJ=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
23
- a}))?null:tJ(a):null},vJ=function(a){return{"area-move":function(b){if($APP.y.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=cJ(a);b=jJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.H(b);b=$APP.C(d,iJ);d=$APP.C(d,$APP.Wm);b=OI(EI.i(c),b,d);var e=$APP.H(b);b=$APP.C(e,EI);d=$APP.C(e,FI);e=$APP.C(e,GI);fJ(a,b,d,e,CI.i(c),WI.i(c));c=dJ(a,cJ(a))}else c=null;return c},copy:function(){var b=cJ(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(YI.i(b)):null},"panel-key":function(b){$APP.y.j("Escape",
24
- b.key)&&$APP.y.j("popover",$APP.Jo.i(cJ(a)))?(b.preventDefault(),b.stopPropagation(),b=tJ(a)):b=null;return b},"alpha-up":function(){if($APP.y.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.R(a,"__xColorPickerDragging",null);var b=eJ(a,cJ(a))}else b=null;return b},"hue-up":function(){if($APP.y.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.R(a,"__xColorPickerDragging",null);var b=eJ(a,cJ(a))}else b=null;return b},"alpha-key":function(b){return qJ(a,b)},"alpha-move":function(b){if($APP.y.j("alpha",
25
- $APP.l(a,"__xColorPickerDragging"))){var c=cJ(a);b=lJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);fJ(a,EI.i(c),FI.i(c),GI.i(c),b,!0);c=dJ(a,cJ(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.y.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=cJ(a);if($I(d)){if(zI(c)){$APP.T(a,"value",c);b=eJ(a,cJ(a));break a}b=b.value=YI.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=cJ(a);if($I(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
26
- b.getAttribute("data-color");$APP.T(a,"value",b);b=eJ(a,cJ(a));break a}b=null}return b},"area-up":function(){if($APP.y.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.R(a,"__xColorPickerDragging",null);var b=eJ(a,cJ(a))}else b=null;return b},"alpha-down":function(b){var c=cJ(a);var d=(d=$I(c))?WI.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.R(a,"__xColorPickerDragging","alpha"),b=lJ(d,b),fJ(a,EI.i(c),FI.i(c),GI.i(c),
27
- b,!0),c=dJ(a,cJ(a))):c=null;return c},"area-key":function(b){return nJ(a,b)},"hue-down":function(b){var c=cJ(a);if($I(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.R(a,"__xColorPickerDragging","hue");b=kJ(d,b);fJ(a,b,FI.i(c),GI.i(c),CI.i(c),WI.i(c));c=dJ(a,cJ(a))}else c=null;return c},"hue-key":function(b){return pJ(a,b)},"hue-move":function(b){if($APP.y.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=cJ(a);b=kJ($APP.l($APP.l(a,
28
- "__xColorPickerRefs"),"hue-strip"),b);fJ(a,b,FI.i(c),GI.i(c),CI.i(c),WI.i(c));c=dJ(a,cJ(a))}else c=null;return c},eyedrop:function(){return rJ(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=cJ(a);return $APP.y.j("popover",$APP.Jo.i(b))&&$APP.p($APP.cj.i(b))?$APP.n($APP.ls.i(b))?tJ(a):sJ(a):null},"doc-click":function(b){return uJ(a,b)},"area-down":function(b){var c=cJ(a);if($I(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
- $APP.R(a,"__xColorPickerDragging","area");b=jJ(d,b);d=$APP.H(b);b=$APP.C(d,iJ);d=$APP.C(d,$APP.Wm);b=OI(EI.i(c),b,d);var e=$APP.H(b);b=$APP.C(e,EI);d=$APP.C(e,FI);e=$APP.C(e,GI);fJ(a,b,d,e,CI.i(c),WI.i(c));c=dJ(a,cJ(a))}else c=null;return c}}},xJ=function(a,b){return $APP.y.j(b,wJ)?document:$APP.l(a,b)},zJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.r(yJ),e=null,f=0,h=0;;)if(h<f){var k=e.F(null,h),m=$APP.B(k,0,null),
30
- q=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);xJ(b,m).removeEventListener(q,$APP.l(c,u),k);h+=1}else if(d=$APP.r(d))$APP.Wc(d)?(f=$APP.Cb(d),d=$APP.Db(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),xJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.R(a,"__xColorPickerHandlers",null)}return null},AJ=function(a,b){$APP.ki(a,"disabled",$APP.E(b));return hJ(a)},BJ=function(a){$APP.T(a,
31
- "value","#000000");return hJ(a)},PJ=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.N(null,2,[$APP.op,f,CJ,h],null);h=document.createElement("div");
32
- var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.N(null,2,[DJ,h,EJ,k],null);k=document.createElement("div");var m=document.createElement("div"),q=document.createElement("div"),u=document.createElement("div"),x=document.createElement("div"),z=document.createElement("div");$APP.T(k,"part","strips");aJ(m,"hue-strip","Hue","360");aJ(u,"alpha-strip","Opacity",
33
- "100");$APP.T(q,"part","hue-thumb");$APP.T(x,"part","alpha-gradient");$APP.T(z,"part","alpha-thumb");m.appendChild(q);u.appendChild(x);u.appendChild(z);k.appendChild(m);k.appendChild(u);k=new $APP.N(null,6,[FJ,k,GJ,m,HJ,q,IJ,u,JJ,x,KJ,z],null);m=document.createElement("div");q=document.createElement("div");u=document.createElement("span");x=document.createElement("input");z=document.createElement("button");var A=document.createElement("button");$APP.T(m,"part","controls");$APP.T(q,"part","preview");
34
- $APP.T(u,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");bJ(z,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
35
- bJ(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(z.style.display="none");q.appendChild(u);m.appendChild(q);m.appendChild(x);
36
- m.appendChild(z);m.appendChild(A);m=new $APP.N(null,6,[$APP.Zr,m,LJ,q,MJ,u,NJ,x,OJ,z,$APP.os,A],null);q=document.createElement("div");$APP.T(q,"part","swatches");$APP.T(q,"role","listbox");$APP.T(q,"aria-label","Preset colors");q=new $APP.N(null,1,[UI,q],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
- $APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(DJ.i(h));e.appendChild(FJ.i(k));e.appendChild($APP.Zr.i(m));e.appendChild(UI.i(q));d.appendChild($APP.op.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":KJ.i(k),copy:$APP.os.i(m),swatches:UI.i(q),"hue-strip":GJ.i(k),controls:$APP.Zr.i(m),"alpha-gradient":JJ.i(k),panel:e,preview:LJ.i(m),"area-thumb":EJ.i(h),"preview-color":MJ.i(m),container:d,area:DJ.i(h),"hue-thumb":HJ.i(k),"trigger-swatch":CJ.i(f),trigger:$APP.op.i(f),
38
- "alpha-strip":IJ.i(k),eyedropper:OJ.i(m),"hex-input":NJ.i(m)};$APP.R(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.R(a,"__xColorPickerInternals",a.attachInternals())}zJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=vJ(a);d=$APP.r(yJ);e=null;for(h=f=0;;)if(h<f)u=e.F(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),q=$APP.B(u,2,null),u=$APP.B(u,3,null),xJ(b,k).addEventListener(m,$APP.l(c,q),u),h+=1;else if(d=$APP.r(d))$APP.Wc(d)?(f=$APP.Cb(d),d=$APP.Db(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
39
- e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),xJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.R(a,"__xColorPickerHandlers",c)}return hJ(a)},QJ=function(a){return zJ(a)},RJ=function(a,b,c,d){return $APP.I(c,d)?hJ(a):null},TJ=function(a){return $APP.Ei(a,SJ)},VJ=function(){return $APP.Kh("x-color-picker",new $APP.N(null,8,[$APP.Bh,UJ,$APP.zh,PJ,$APP.qh,QJ,$APP.ph,RJ,$APP.rh,!0,$APP.oh,AJ,$APP.nh,BJ,$APP.Ah,TJ],null))},JJ=new $APP.F(null,
40
- "alpha-gradient","alpha-gradient",2099400176),KJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),DJ=new $APP.F(null,"area","area",472007256),VI=new $APP.F(null,"alpha","alpha",-1574982441),MJ=new $APP.F(null,"preview-color","preview-color",1405210195),IJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),YI=new $APP.F(null,"hex-full","hex-full",-1466644518),NJ=new $APP.F(null,"hex-input","hex-input",1497535517),LJ=new $APP.F(null,"preview","preview",451279890),GJ=new $APP.F(null,"hue-strip",
41
- "hue-strip",938856876),EJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),UI=new $APP.F(null,"swatches","swatches",2033601707),FJ=new $APP.F(null,"strips","strips",-1564791997),MI=new $APP.F(null,"v","v",21465059),FI=new $APP.F(null,"s","s",1705939918),AI=new $APP.F(null,"r","r",-471384190),WI=new $APP.F(null,"alpha?","alpha?",1329751525),GI=new $APP.F(null,"l","l",1395893423),EI=new $APP.F(null,"h","h",1109658740),BI=new $APP.F(null,"b","b",1482224470),iJ=new $APP.F(null,"sat","sat",1064662667),
42
- CI=new $APP.F(null,"a","a",-2123407586),CJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),wJ=new $APP.F(null,"document","document",-1329188687),XI=new $APP.F(null,"hex","hex",41691346),OJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),HJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var RI=new $APP.rg(null,new $APP.N(null,2,["inline",null,"popover",null],null),null),UJ="value alpha swatches disabled readonly name mode open label".split(" "),SJ=$APP.Yf([$APP.Ir,$APP.Hk,$APP.$i,$APP.ei,$APP.Jo,UI,$APP.Or,$APP.bj,VI],[new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"open"],null),new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"disabled"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"name"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"value"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"mode"],
43
- null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"swatches"],null),new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"readonly"],null),new $APP.N(null,2,[$APP.O,$APP.Y,$APP.W,"label"],null),new $APP.N(null,2,[$APP.O,$APP.Ci,$APP.W,"alpha"],null)]);
44
- $APP.be(["x-color-picker-input",new $APP.N(null,2,[$APP.V,new $APP.N(null,5,[$APP.ei,$APP.Y,EI,$APP.Z,FI,$APP.Z,GI,$APP.Z,CI,$APP.Z],null),$APP.Mr,!1],null),"x-color-picker-change",new $APP.N(null,2,[$APP.V,new $APP.N(null,5,[$APP.ei,$APP.Y,EI,$APP.Z,FI,$APP.Z,GI,$APP.Z,CI,$APP.Z],null),$APP.Mr,!0],null)]);var yI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var mJ=new $APP.rg(null,new $APP.N(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),oJ=new $APP.rg(null,new $APP.N(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),yJ=new $APP.K(null,20,5,$APP.M,[new $APP.K(null,4,5,$APP.M,["area","pointerdown","area-down",!1],null),new $APP.K(null,4,5,$APP.M,["area","pointermove","area-move",!1],null),new $APP.K(null,4,5,$APP.M,["area","pointerup","area-up",!1],null),new $APP.K(null,4,5,$APP.M,
45
- ["area","keydown","area-key",!1],null),new $APP.K(null,4,5,$APP.M,["hue-strip","pointerdown","hue-down",!1],null),new $APP.K(null,4,5,$APP.M,["hue-strip","pointermove","hue-move",!1],null),new $APP.K(null,4,5,$APP.M,["hue-strip","pointerup","hue-up",!1],null),new $APP.K(null,4,5,$APP.M,["hue-strip","keydown","hue-key",!1],null),new $APP.K(null,4,5,$APP.M,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.K(null,4,5,$APP.M,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.K(null,
46
- 4,5,$APP.M,["alpha-strip","pointerup","alpha-up",!1],null),new $APP.K(null,4,5,$APP.M,["alpha-strip","keydown","alpha-key",!1],null),new $APP.K(null,4,5,$APP.M,["hex-input","keydown","hex-key",!1],null),new $APP.K(null,4,5,$APP.M,["swatches","click","swatch",!1],null),new $APP.K(null,4,5,$APP.M,["eyedropper","click","eyedrop",!1],null),new $APP.K(null,4,5,$APP.M,["copy","click","copy",!1],null),new $APP.K(null,4,5,$APP.M,["trigger","click","trigger",!1],null),new $APP.K(null,4,5,$APP.M,["panel","keydown",
47
- "panel-key",!1],null),new $APP.K(null,4,5,$APP.M,["panel","pointerdown","panel-pd",!1],null),new $APP.K(null,4,5,$APP.M,[wJ,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",VJ);export const init=VJ;
2
+ var MI=function(a,b){return $APP.yo.j($APP.Po.j(a,0),b)},NI=function(a){return $APP.sd(a,360)},OI=function(a){return MI(a,100)},PI=function(a){return MI(a,1)},RI=function(a){var b=typeof a==="string";a=b?$APP.xh(QI,a.trim()):b;return $APP.D(a)},VI=function(a){if(typeof a==="string")if(a=$APP.xh(QI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.xc(a,0))+$APP.P.i($APP.xc(a,0)),16),c=parseInt(""+$APP.P.i($APP.xc(a,1))+$APP.P.i($APP.xc(a,
3
+ 1)),16),d=parseInt(""+$APP.P.i($APP.xc(a,2))+$APP.P.i($APP.xc(a,2)),16);return new $APP.M(null,4,[SI,b,$APP.rt,c,TI,d,UI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[SI,b,$APP.rt,c,TI,d,UI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[SI,b,$APP.rt,c,TI,d,UI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},Hba=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Po.B(a,b,$APP.Cc([c])),e=$APP.yo.B(a,b,$APP.Cc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[WI,0,XI,0,YI,f*100],null):new $APP.M(null,3,[WI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,XI,(f>.5?h/(2-d-e):h/(d+e))*100,YI,f*100],null)},ZI=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},$I=function(a,b,c){a=NI(a)/360;b=OI(b)/100;c=OI(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.M(null,3,[SI,a,$APP.rt,a,TI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[SI,Math.round(ZI(c,b,a+1/3)*255),$APP.rt,Math.round(ZI(c,b,a)*255),TI,Math.round(ZI(c,b,a-1/3)*255)],null)},aJ=function(a,b,c){function d(e){e=MI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},bJ=function(a,b,c,d){function e(f){f=MI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
6
+ return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(PI(d)*255))},dJ=function(a,b,c){b=OI(b)/100;c=OI(c)/100;b=c+b*$APP.yo.j(c,1-c);return new $APP.M(null,3,[WI,NI(a),XI,(b===0?0:2*(1-c/b))*100,cJ,b*100],null)},eJ=function(a,b,c){b=OI(b)/100;c=OI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.yo.j(b,1-b);return new $APP.M(null,3,[WI,NI(a),XI,c*100,YI,b*100],null)},fJ=function(a,b,c){return 100*(MI(a-b,c)/c)},Iba=function(a){return typeof a==="string"&&RI(a)?(a=VI(a),$APP.n(a)?aJ(SI.i(a),
7
+ $APP.rt.i(a),TI.i(a)):null):"#000000"},Kba=function(a){return typeof a==="string"&&$APP.cd(Jba,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Lba=function(a){return typeof a==="string"&&$APP.Ji(a)?$APP.If.m($APP.Ee,$APP.Ro.m($APP.we.i($APP.Fi),$APP.Be(RI),$APP.we.i(function(b){b=VI(b);var c=$APP.G(b);b=$APP.C(c,SI);var d=$APP.C(c,$APP.rt);c=$APP.C(c,TI);return aJ(b,d,c)})),$APP.Di(a,/,/)):$APP.Ee},Mba=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.Lt),d=$APP.C(b,$APP.Jm),e=$APP.C(b,$APP.Si);
8
+ a=$APP.C(b,$APP.ck);var f=$APP.C(b,$APP.pj),h=$APP.C(b,$APP.bm),k=$APP.C(b,gJ),m=$APP.C(b,$APP.ek),r=$APP.C(b,hJ);b=Iba(e);var t=function(){var S=VI(e);return $APP.n(S)?S:VI("#000000")}(),x=$APP.G(t);t=$APP.C(x,SI);var y=$APP.C(x,$APP.rt),A=$APP.C(x,TI);x=$APP.C(x,UI);var E=function(){var S=typeof e==="string";if(S){S=e.trim();var R=$APP.xh(QI,S);return $APP.n(R)?8===$APP.w($APP.Fc($APP.xh(QI,S))):R}return S}();x=$APP.n(E)?x:1;E=Hba(t,y,A);var H=$APP.G(E);E=$APP.C(H,WI);var N=$APP.C(H,XI);H=$APP.C(H,
9
+ YI);d=$APP.Hi(d);f=$APP.Hi(f);r=r!=null;c=c!=null;h=Kba(h);return $APP.Eg([$APP.vl,iJ,$APP.ck,$APP.bm,gJ,XI,YI,jJ,WI,$APP.ek,$APP.pu,kJ,$APP.fk,UI],[f,r,$APP.Ji(a)?a:null,h,Lba(k),N,H,b,E,$APP.Ji(m)?m:null,$APP.z.j(h,"popover")&&c,r&&x<1?bJ(t,y,A,x):b,d,x])},lJ=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.fk);b=$APP.C(b,$APP.vl);return $APP.p(a)&&$APP.p(b)},mJ=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
10
+ $APP.T(a,"aria-valuemax",d)},nJ=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},oJ=function(a){return Mba($APP.Eg([$APP.Lt,$APP.Jm,$APP.ck,$APP.Si,$APP.pj,$APP.bm,gJ,$APP.ek,hJ],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},pJ=function(a,b){var c=kJ.i(b),d=WI.i(b),
11
+ e=XI.i(b),f=YI.i(b);b=UI.i(b);return $APP.dj(a,"x-color-picker-input",$APP.qm(new $APP.M(null,5,[$APP.Si,c,WI,d,XI,e,YI,f,UI,b],null)))},qJ=function(a,b){var c=kJ.i(b),d=WI.i(b),e=XI.i(b),f=YI.i(b);b=UI.i(b);return $APP.fj(a,"x-color-picker-change",$APP.qm(new $APP.M(null,5,[$APP.Si,c,WI,d,XI,e,YI,f,UI,b],null)))},rJ=function(a,b,c,d,e,f){b=$I(b,c,d);d=$APP.G(b);b=$APP.C(d,SI);c=$APP.C(d,$APP.rt);d=$APP.C(d,TI);e=$APP.n($APP.n(f)?e<1:f)?bJ(b,c,d,e):aJ(b,c,d);$APP.T(a,"value",e)},Nba=function(a,b,
12
+ c,d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.q(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.C(null,f),k=document.createElement("button");$APP.T(k,"part","swatch");$APP.T(k,"type","button");$APP.T(k,"role","option");$APP.T(k,"aria-label",h);$APP.T(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.Yc(a)?(e=$APP.Db(a),a=$APP.Eb(a),c=e,e=$APP.w(e)):(c=$APP.u(a),e=document.createElement("button"),
13
+ $APP.T(e,"part","swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},sJ=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=oJ(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");
14
+ if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),t=$APP.C(r,WI);r=$APP.C(r,$APP.bm);$APP.T(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(t)));r=$APP.G(b);var x=$APP.C(r,WI),y=$APP.C(r,XI),A=$APP.C(r,YI);t=$APP.C(r,UI);r=$APP.C(r,$APP.ek);y=dJ(x,y,A);var E=$APP.G(y);y=$APP.C(E,XI);E=$APP.C(E,cJ);E=new $APP.M(null,2,
15
+ [$APP.nt,OI(y),$APP.mt,100-OI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.nt.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.mt.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";t=t<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(t*100))+"%":x;$APP.T(d,"aria-valuetext",t);$APP.n(r)&&$APP.T(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,WI);e.style.setProperty("--_x-cp-hue-pos",
16
+ ""+$APP.P.i((NI(d)/360*100).toFixed(2))+"%");$APP.T(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,WI);d=$APP.C(x,XI);t=$APP.C(x,YI);r=$APP.C(x,UI);x=$APP.C(x,iJ);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(t))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((PI(r)*100).toFixed(2))+"%"),$APP.T(f,"aria-valuenow",""+$APP.P.i(Math.round(r*100)))):f.style.display=
17
+ "none";x=$APP.G(b);e=$APP.C(x,WI);d=$APP.C(x,XI);t=$APP.C(x,YI);f=$APP.C(x,UI);r=$APP.C(x,jJ);x=$APP.C(x,iJ);$APP.n(x)?(e=$I(e,d,t),t=$APP.G(e),e=$APP.C(t,SI),d=$APP.C(t,$APP.rt),t=$APP.C(t,TI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(t)+","+$APP.P.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,kJ);k=$APP.C(f,$APP.fk);f=$APP.C(f,$APP.vl);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;Nba(a,c,gJ.i(b),jJ.i(b));m=$APP.G(b);
18
+ m=$APP.C(m,kJ);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},uJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=fJ(b.clientX,c.left,c.width);a=fJ(a,d,e);return new $APP.M(null,2,[tJ,OI(b),$APP.ep,100-OI(a)],null)},vJ=function(a,b){a=a.getBoundingClientRect();b=fJ(b.clientX,a.left,a.width);return OI(b)/100*360},wJ=function(a,b){a=a.getBoundingClientRect();b=fJ(b.clientX,
19
+ a.left,a.width);return OI(b)/100},Pba=function(a,b){var c=oJ(a);if(lJ(c)&&$APP.cd(Oba,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=dJ(WI.i(c),XI.i(c),YI.i(c)),f=function(){switch(b.key){case "ArrowRight":return OI(XI.i(e)+d);case "ArrowLeft":return OI(XI.i(e)-d);default:return XI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return OI(cJ.i(e)+d);case "ArrowDown":return OI(cJ.i(e)-d);default:return cJ.i(e)}}();f=eJ(WI.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,WI);h=$APP.C(k,XI);k=$APP.C(k,
20
+ YI);rJ(a,f,h,k,UI.i(c),iJ.i(c));pJ(a,oJ(a));return qJ(a,oJ(a))}return null},Qba=function(a,b){var c=oJ(a);if(lJ(c)&&$APP.cd(xJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return NI(WI.i(c)+d);case "ArrowLeft":return NI(WI.i(c)-d);case "Home":return 0;case "End":return 360;default:return WI.i(c)}}();rJ(a,e,XI.i(c),YI.i(c),UI.i(c),iJ.i(c));pJ(a,oJ(a));return qJ(a,oJ(a))}return null},Rba=function(a,b){var c=oJ(a);if($APP.n(function(){var f=lJ(c);
21
+ return f?(f=iJ.i(c),$APP.n(f)?$APP.cd(xJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return PI(UI.i(c)+d);case "ArrowLeft":return PI(UI.i(c)-d);case "Home":return 0;case "End":return 1;default:return UI.i(c)}}();rJ(a,WI.i(c),XI.i(c),YI.i(c),e,!0);pJ(a,oJ(a));return qJ(a,oJ(a))}return null},Sba=function(a){var b=oJ(a);return lJ(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);
22
+ return qJ(a,oJ(a))}).catch(function(){return null}):null},Tba=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},yJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},Uba=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
23
+ a}))?null:yJ(a):null},Vba=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=oJ(a);b=uJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,tJ);d=$APP.C(d,$APP.ep);b=eJ(WI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,WI);d=$APP.C(e,XI);e=$APP.C(e,YI);rJ(a,b,d,e,UI.i(c),iJ.i(c));c=pJ(a,oJ(a))}else c=null;return c},copy:function(){var b=oJ(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(kJ.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
+ b.key)&&$APP.z.j("popover",$APP.bm.i(oJ(a)))?(b.preventDefault(),b.stopPropagation(),b=yJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=qJ(a,oJ(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=qJ(a,oJ(a))}else b=null;return b},"alpha-key":function(b){return Rba(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
+ $APP.l(a,"__xColorPickerDragging"))){var c=oJ(a);b=wJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);rJ(a,WI.i(c),XI.i(c),YI.i(c),b,!0);c=pJ(a,oJ(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.z.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=oJ(a);if(lJ(d)){if(RI(c)){$APP.T(a,"value",c);b=qJ(a,oJ(a));break a}b=b.value=kJ.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=oJ(a);if(lJ(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
26
+ b.getAttribute("data-color");$APP.T(a,"value",b);b=qJ(a,oJ(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=qJ(a,oJ(a))}else b=null;return b},"alpha-down":function(b){var c=oJ(a);var d=(d=lJ(c))?iJ.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=wJ(d,b),rJ(a,WI.i(c),XI.i(c),YI.i(c),
27
+ b,!0),c=pJ(a,oJ(a))):c=null;return c},"area-key":function(b){return Pba(a,b)},"hue-down":function(b){var c=oJ(a);if(lJ(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=vJ(d,b);rJ(a,b,XI.i(c),YI.i(c),UI.i(c),iJ.i(c));c=pJ(a,oJ(a))}else c=null;return c},"hue-key":function(b){return Qba(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=oJ(a);b=vJ($APP.l($APP.l(a,
28
+ "__xColorPickerRefs"),"hue-strip"),b);rJ(a,b,XI.i(c),YI.i(c),UI.i(c),iJ.i(c));c=pJ(a,oJ(a))}else c=null;return c},eyedrop:function(){return Sba(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=oJ(a);return $APP.z.j("popover",$APP.bm.i(b))&&$APP.p($APP.fk.i(b))?$APP.n($APP.pu.i(b))?yJ(a):Tba(a):null},"doc-click":function(b){return Uba(a,b)},"area-down":function(b){var c=oJ(a);if(lJ(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
+ $APP.Q(a,"__xColorPickerDragging","area");b=uJ(d,b);d=$APP.G(b);b=$APP.C(d,tJ);d=$APP.C(d,$APP.ep);b=eJ(WI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,WI);d=$APP.C(e,XI);e=$APP.C(e,YI);rJ(a,b,d,e,UI.i(c),iJ.i(c));c=pJ(a,oJ(a))}else c=null;return c}}},AJ=function(a,b){return $APP.z.j(b,zJ)?document:$APP.l(a,b)},CJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.q(BJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,null),
30
+ r=$APP.B(k,1,null),t=$APP.B(k,2,null);k=$APP.B(k,3,null);AJ(b,m).removeEventListener(r,$APP.l(c,t),k);h+=1}else if(d=$APP.q(d))$APP.Yc(d)?(f=$APP.Db(d),d=$APP.Eb(d),e=f,f=$APP.w(f)):(m=$APP.u(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),AJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},Wba=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return sJ(a)},Xba=function(a){$APP.T(a,
31
+ "value","#000000");return sJ(a)},Yba=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.pr,f,DJ,h],null);h=document.createElement("div");
32
+ var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[EJ,h,FJ,k],null);k=document.createElement("div");var m=document.createElement("div"),r=document.createElement("div"),t=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.T(k,"part","strips");mJ(m,"hue-strip","Hue","360");mJ(t,"alpha-strip","Opacity",
33
+ "100");$APP.T(r,"part","hue-thumb");$APP.T(x,"part","alpha-gradient");$APP.T(y,"part","alpha-thumb");m.appendChild(r);t.appendChild(x);t.appendChild(y);k.appendChild(m);k.appendChild(t);k=new $APP.M(null,6,[GJ,k,HJ,m,IJ,r,JJ,t,KJ,x,LJ,y],null);m=document.createElement("div");r=document.createElement("div");t=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.T(m,"part","controls");$APP.T(r,"part","preview");
34
+ $APP.T(t,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");nJ(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
35
+ nJ(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");r.appendChild(t);m.appendChild(r);m.appendChild(x);
36
+ m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.cu,m,MJ,r,NJ,t,OJ,x,PJ,y,$APP.su,A],null);r=document.createElement("div");$APP.T(r,"part","swatches");$APP.T(r,"role","listbox");$APP.T(r,"aria-label","Preset colors");r=new $APP.M(null,1,[gJ,r],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
37
+ $APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(EJ.i(h));e.appendChild(GJ.i(k));e.appendChild($APP.cu.i(m));e.appendChild(gJ.i(r));d.appendChild($APP.pr.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":LJ.i(k),copy:$APP.su.i(m),swatches:gJ.i(r),"hue-strip":HJ.i(k),controls:$APP.cu.i(m),"alpha-gradient":KJ.i(k),panel:e,preview:MJ.i(m),"area-thumb":FJ.i(h),"preview-color":NJ.i(m),container:d,area:EJ.i(h),"hue-thumb":IJ.i(k),"trigger-swatch":DJ.i(f),trigger:$APP.pr.i(f),
38
+ "alpha-strip":JJ.i(k),eyedropper:PJ.i(m),"hex-input":OJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}CJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=Vba(a);d=$APP.q(BJ);e=null;for(h=f=0;;)if(h<f)t=e.C(null,h),k=$APP.B(t,0,null),m=$APP.B(t,1,null),r=$APP.B(t,2,null),t=$APP.B(t,3,null),AJ(b,k).addEventListener(m,$APP.l(c,r),t),h+=1;else if(d=$APP.q(d))$APP.Yc(d)?(f=$APP.Db(d),d=$APP.Eb(d),e=f,f=$APP.w(f)):(k=$APP.u(d),
39
+ e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),AJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return sJ(a)},Zba=function(a){return CJ(a)},$ba=function(a,b,c,d){return $APP.I(c,d)?sJ(a):null},bca=function(a){return $APP.sj(a,aca)},QJ=function(){return $APP.xi("x-color-picker",new $APP.M(null,8,[$APP.hi,cca,$APP.fi,Yba,$APP.ci,Zba,$APP.bi,$ba,$APP.di,!0,$APP.ai,Wba,$APP.$h,Xba,$APP.gi,bca],null))},KJ=
40
+ new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),LJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),EJ=new $APP.F(null,"area","area",472007256),hJ=new $APP.F(null,"alpha","alpha",-1574982441),NJ=new $APP.F(null,"preview-color","preview-color",1405210195),JJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),kJ=new $APP.F(null,"hex-full","hex-full",-1466644518),OJ=new $APP.F(null,"hex-input","hex-input",1497535517),MJ=new $APP.F(null,"preview","preview",451279890),HJ=new $APP.F(null,
41
+ "hue-strip","hue-strip",938856876),FJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),gJ=new $APP.F(null,"swatches","swatches",2033601707),GJ=new $APP.F(null,"strips","strips",-1564791997),cJ=new $APP.F(null,"v","v",21465059),XI=new $APP.F(null,"s","s",1705939918),SI=new $APP.F(null,"r","r",-471384190),iJ=new $APP.F(null,"alpha?","alpha?",1329751525),YI=new $APP.F(null,"l","l",1395893423),WI=new $APP.F(null,"h","h",1109658740),TI=new $APP.F(null,"b","b",1482224470),tJ=new $APP.F(null,"sat",
42
+ "sat",1064662667),UI=new $APP.F(null,"a","a",-2123407586),DJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),zJ=new $APP.F(null,"document","document",-1329188687),jJ=new $APP.F(null,"hex","hex",41691346),PJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),IJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var Jba=new $APP.ah(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),cca="value alpha swatches disabled readonly name mode open label".split(" "),aca=$APP.Eg([$APP.Lt,$APP.Jm,$APP.ck,$APP.Si,$APP.bm,gJ,$APP.St,$APP.ek,hJ],[new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,
43
+ "mode"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"swatches"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"label"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"alpha"],null)]);
44
+ $APP.he(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Si,$APP.X,WI,$APP.Z,XI,$APP.Z,YI,$APP.Z,UI,$APP.Z],null),$APP.Pt,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Si,$APP.X,WI,$APP.Z,XI,$APP.Z,YI,$APP.Z,UI,$APP.Z],null),$APP.Pt,!0],null)]);var QI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var Oba=new $APP.ah(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),xJ=new $APP.ah(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),BJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
45
+ ["area","keydown","area-key",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerdown","hue-down",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointermove","hue-move",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerup","hue-up",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","keydown","hue-key",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.J(null,
46
+ 4,5,$APP.K,["alpha-strip","pointerup","alpha-up",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","keydown","alpha-key",!1],null),new $APP.J(null,4,5,$APP.K,["hex-input","keydown","hex-key",!1],null),new $APP.J(null,4,5,$APP.K,["swatches","click","swatch",!1],null),new $APP.J(null,4,5,$APP.K,["eyedropper","click","eyedrop",!1],null),new $APP.J(null,4,5,$APP.K,["copy","click","copy",!1],null),new $APP.J(null,4,5,$APP.K,["trigger","click","trigger",!1],null),new $APP.J(null,4,5,$APP.K,["panel","keydown",
47
+ "panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[zJ,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",QJ);export const init=QJ;
@@ -17,6 +17,7 @@ export interface XCombobox extends HTMLElement {
17
17
  required: boolean;
18
18
  open: boolean;
19
19
  placement: string;
20
+ error: string;
20
21
  show(): void;
21
22
  hide(): void;
22
23