@vanelsas/baredom 4.1.0 → 4.3.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 (114) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/README.md +1 -1
  3. package/dist/baremirror-alpha.js +28 -24
  4. package/dist/base.js +675 -684
  5. package/dist/integrity.json +112 -112
  6. package/dist/x-alert.js +17 -17
  7. package/dist/x-avatar-group.js +10 -10
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +9 -9
  10. package/dist/x-bento-grid.js +6 -6
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +16 -16
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +41 -41
  15. package/dist/x-cancel-dialogue.js +16 -16
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +34 -34
  18. package/dist/x-chart.js +48 -48
  19. package/dist/x-checkbox.js +1 -1
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-code.js +28 -28
  22. package/dist/x-collapse.js +11 -11
  23. package/dist/x-color-picker.js +45 -45
  24. package/dist/x-combobox.js +34 -34
  25. package/dist/x-command-palette.js +30 -30
  26. package/dist/x-confetti.js +24 -24
  27. package/dist/x-container.js +6 -6
  28. package/dist/x-context-menu.js +19 -19
  29. package/dist/x-copy.js +1 -1
  30. package/dist/x-currency-field.js +24 -24
  31. package/dist/x-date-picker.js +44 -44
  32. package/dist/x-divider.js +8 -8
  33. package/dist/x-drag-panel.js +33 -33
  34. package/dist/x-drawer.js +12 -12
  35. package/dist/x-drop-zone.js +11 -11
  36. package/dist/x-dropdown.js +12 -12
  37. package/dist/x-fieldset.js +6 -6
  38. package/dist/x-file-download.js +14 -14
  39. package/dist/x-file-upload.js +27 -27
  40. package/dist/x-floating-panel.js +22 -22
  41. package/dist/x-form-field.js +18 -18
  42. package/dist/x-form.js +10 -10
  43. package/dist/x-gaussian-blur.js +13 -13
  44. package/dist/x-grid.js +8 -8
  45. package/dist/x-i18n-provider.js +7 -7
  46. package/dist/x-i18n.js +4 -4
  47. package/dist/x-icon.js +7 -7
  48. package/dist/x-image.js +17 -17
  49. package/dist/x-kbd.js +13 -13
  50. package/dist/x-kinetic-canvas.js +25 -25
  51. package/dist/x-kinetic-font.js +26 -26
  52. package/dist/x-kinetic-typography.js +34 -34
  53. package/dist/x-liquid-dock.js +31 -31
  54. package/dist/x-liquid-fill.js +39 -39
  55. package/dist/x-liquid-glass.js +36 -36
  56. package/dist/x-menu-item.js +9 -9
  57. package/dist/x-menu.js +10 -10
  58. package/dist/x-metaball-cursor.js +26 -26
  59. package/dist/x-modal.js +13 -13
  60. package/dist/x-morph-stack.js +38 -38
  61. package/dist/x-multi-combobox.js +41 -41
  62. package/dist/x-navbar.js +15 -15
  63. package/dist/x-neural-glow.js +29 -29
  64. package/dist/x-notification-center.js +9 -9
  65. package/dist/x-organic-divider.js +18 -18
  66. package/dist/x-organic-progress.js +34 -34
  67. package/dist/x-organic-shape.js +12 -12
  68. package/dist/x-otp-input.js +22 -22
  69. package/dist/x-pagination.js +16 -16
  70. package/dist/x-particle-button.js +51 -51
  71. package/dist/x-popover.js +26 -26
  72. package/dist/x-progress-circle.js +7 -7
  73. package/dist/x-progress.js +7 -7
  74. package/dist/x-proximity-list.js +20 -20
  75. package/dist/x-radio.js +13 -13
  76. package/dist/x-range-slider.js +30 -30
  77. package/dist/x-rating.js +23 -23
  78. package/dist/x-ripple-effect.js +10 -10
  79. package/dist/x-scroll-parallax.js +17 -17
  80. package/dist/x-scroll-stack.js +17 -17
  81. package/dist/x-scroll-story.js +31 -31
  82. package/dist/x-scroll-timeline.js +46 -46
  83. package/dist/x-scroll.js +38 -38
  84. package/dist/x-search-field.js +1 -1
  85. package/dist/x-select.js +1 -1
  86. package/dist/x-sidebar.js +17 -17
  87. package/dist/x-skeleton-group.js +13 -13
  88. package/dist/x-skeleton.js +1 -1
  89. package/dist/x-slider.js +17 -17
  90. package/dist/x-soft-body.js +17 -17
  91. package/dist/x-spacer.js +4 -4
  92. package/dist/x-spinner.js +4 -4
  93. package/dist/x-splash.js +13 -13
  94. package/dist/x-split-pane.js +15 -15
  95. package/dist/x-spotlight-card.js +12 -12
  96. package/dist/x-stat.js +10 -10
  97. package/dist/x-stepper.js +14 -14
  98. package/dist/x-switch.js +12 -12
  99. package/dist/x-tab.js +9 -9
  100. package/dist/x-table-cell.js +20 -20
  101. package/dist/x-table-row.js +9 -9
  102. package/dist/x-table.js +14 -14
  103. package/dist/x-tabs.js +11 -11
  104. package/dist/x-text-area.js +20 -20
  105. package/dist/x-theme.js +26 -26
  106. package/dist/x-timeline-item.js +21 -21
  107. package/dist/x-timeline.js +8 -8
  108. package/dist/x-toast.js +22 -22
  109. package/dist/x-toaster.js +6 -6
  110. package/dist/x-tooltip.js +13 -13
  111. package/dist/x-trace-history.js +117 -117
  112. package/dist/x-typography.js +6 -6
  113. package/dist/x-welcome-tour.js +62 -62
  114. package/package.json +1 -1
package/dist/x-code.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var V0=function(a){return $APP.Qc(Hwa,typeof a==="string"?a.trim().toLowerCase():null,"text")},W0=function(a){return $APP.z.j("",a.trim())},Iwa=function(a){return $APP.w($APP.Ah(/^[\t ]*/,a))},Jwa=function(a){var b=$APP.rf(a.split("\n")),c=$APP.We(W0,b),d=$APP.q(c)?$APP.vd($APP.ak,$APP.Oe.j(Iwa,c)):0;return d>0?$APP.hi("\n",$APP.Oe.j(function(e){return $APP.w(e)>=d?e.substring(d):e},b)):a},Kwa=function(a){var b=$APP.rf(a.split("\n")),c=$APP.w(b),d=function(){for(var e=0;;)if(e<c&&W0($APP.Ec(b,e)))e+=
3
- 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&W0($APP.Ec(b,e)))--e;else return e}();return d<=a?$APP.hi("\n",$APP.xf(null,b,d|0,a+1|0,null)):""},X0=function(a){return typeof a==="string"?Jwa(Kwa($APP.gi(a,/\r\n?/,"\n"))):""},Z0=function(a){return new $APP.K(null,2,[$APP.jr,$APP.hi("|",$APP.Oe.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.N.i(b.source)+")"},a)),Y0,$APP.ti.j($APP.t,a)],null)},a1=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.w(c),e=$APP.w(a),f=$APP.Bb($APP.Xe),
4
- h=0;;){var k=b.exec(a);if(k==null)return $APP.Yd(h<e?$APP.Zd(f,new $APP.H(null,2,5,$APP.J,[$0,a.substring(h)],null)):f);var n=k[0],r=k.index;a:{for(var v=1;;){if(v>d){k=1;break a}if(k[v]!=null){k=v;break a}v+=1}k=void 0}k=$APP.Ec(c,k-1);h=r>h?new $APP.H(null,2,5,$APP.J,[$0,a.substring(h,r)],null):null;r+=n.length;n.length===0&&(b.lastIndex+=1);f=$APP.m(h)?$APP.Db(f,h):f;f=n=$APP.Zd(f,new $APP.H(null,2,5,$APP.J,[k,n],null));h=r}},Lwa=function(a){a=$APP.q(a);for(var b=$APP.Xe,c=$APP.Xe;;){if(a==null)return $APP.Id.j(c,
5
- b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.rf(f.split("\n")),k=$APP.w(h);if($APP.z.j(k,1))a=$APP.u(a),b=$APP.Id.j(b,new $APP.H(null,2,5,$APP.J,[e,f],null));else{var n=$APP.u(a),r=new $APP.H(null,1,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[e,$APP.Yc(h)],null)],null);c=$APP.Xf.j($APP.Id.j(c,$APP.Id.j(b,new $APP.H(null,2,5,$APP.J,[e,$APP.t(h)],null))),$APP.Oe.j(function(v,x,y,A,E){return function(I){return new $APP.H(null,1,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[E,I],null)],null)}}(a,
6
- b,c,d,e,f,h,k),$APP.xf(null,h,1,k-1|0,null)));a=n;b=r}}},b1=function(a){var b=a.getAttribute("code");if($APP.m(b))return b;a=a.textContent;return $APP.m(a)?a:""},c1=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j($0,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.N.i($APP.jh(b));c.textContent=a;return c},d1=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),e=document.createElement("span");$APP.U(c,
7
- "part","line");$APP.U(d,"part","gutter");$APP.U(d,"aria-hidden","true");d.textContent=""+$APP.N.i(b+1);$APP.U(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.M.j("",$APP.Mc(k))&&e.appendChild(c1(k));h+=1}else if(a=$APP.q(a))b=a,$APP.gd(b)?(a=$APP.Jb(b),h=$APP.Kb(b),b=a,f=$APP.w(a),a=h):(a=$APP.t(b),$APP.M.j("",$APP.Mc(a))&&e.appendChild(c1(a)),a=$APP.u(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);return c},x1=function(a){if($APP.m($APP.l(a,
8
- "__xCodeRefs"))){var b=b1(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.m(d)?$APP.z.j(X0(b),e1.i(d))&&$APP.z.j(V0(c),f1.i(d)):d;b=$APP.Ag([$APP.Ws,g1,h1,i1,j1,k1,l1,m1,n1],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.m(e)?h1.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,l1);b=$APP.C(e,m1);c=$APP.C(e,n1);var h=$APP.C(e,$APP.Ws),k=$APP.C(e,g1),n=$APP.C(e,
9
- h1);d=$APP.C(e,i1);var r=$APP.C(e,j1);e=$APP.C(e,k1);c=V0(c);e=X0(e);h=typeof h==="string"?h.trim():null;h=$APP.m($APP.m(h)?$APP.M.j("",h):h)?h:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;$APP.m(n)||(n=""+$APP.N.i(e),n=$APP.z.j("",n)?$APP.Xe:$APP.z.j(c,"js")?a1(n,$APP.jr.i(o1),Y0.i(o1)):$APP.z.j(c,"json")?a1(n,$APP.jr.i(p1),Y0.i(p1)):$APP.z.j(c,"css")?a1(n,$APP.jr.i(q1),Y0.i(q1)):$APP.z.j(c,"html")?a1(n,$APP.jr.i(r1),Y0.i(r1)):new $APP.H(null,1,5,$APP.J,[new $APP.H(null,
10
- 2,5,$APP.J,[$0,n],null)],null),n=Lwa(n));var v=$APP.w(n);f=$APP.D(f);k=$APP.D(k);var x=f||$APP.M.j("",h);d=$APP.D(d);b=$APP.D(b);var y=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.Ag([g1,h1,s1,t1,$APP.vr,i1,f1,e1,l1,m1,u1,v1,w1],[k,n,x,r>0&&v>r,h,d,c,e,f,b,y,v,r]);if($APP.M.j(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.N.i(w1.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.N.i($APP.Wl.j(2,(""+$APP.N.i(v1.i(b))).length)));k=$APP.l(a,"__xCodeRefs");c=$APP.l(k,
11
- "filename");d=$APP.l(k,"lang");e=$APP.l(k,"cwrap");k=$APP.l(k,"copy");h=$APP.M.j("",$APP.vr.i(b));f=!h&&$APP.M.j("",u1.i(b));$APP.Ii(a,"data-header",s1.i(b));c.textContent=$APP.vr.i(b);c.style.display=h?"block":"none";d.textContent=u1.i(b);d.style.display=f?"block":"none";e.style.display=$APP.m(l1.i(b))?"inline-flex":"none";$APP.U(k,"text",e1.i(b));c=$APP.l(a,"__xCodeModel");if($APP.M.j($APP.Zg(b,new $APP.H(null,2,5,$APP.J,[e1,f1],null)),$APP.Zg(c,new $APP.H(null,2,5,$APP.J,[e1,f1],null)))){c=$APP.l($APP.l(a,
12
- "__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.Ee($APP.Ro,h1.i(b)));k=null;for(f=h=0;;)if(f<h)n=k.C(null,f),r=$APP.B(n,0,null),n=$APP.B(n,1,null),d.appendChild(d1(n,r)),f+=1;else if(e=$APP.q(e))$APP.gd(e)?(h=$APP.Jb(e),e=$APP.Kb(e),k=h,h=$APP.w(h)):(h=$APP.t(e),k=$APP.B(h,0,null),h=$APP.B(h,1,null),d.appendChild(d1(h,k)),e=$APP.u(e),k=null,h=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),"expander");e=t1.i(b);d=$APP.m(e)?$APP.p(g1.i(b)):
13
- e;$APP.Ii(a,"data-collapsible",e);$APP.Ii(a,"data-collapsed",d);$APP.m(d)?(k=$APP.G(b),e=$APP.C(k,v1),k=$APP.C(k,w1),e=$APP.Wl.j(0,e-k),e="Show "+$APP.N.i(e)+" more "+$APP.N.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.U(c,"aria-expanded",$APP.m(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.M.j("",$APP.vr.i(b))?$APP.vr.i(b):$APP.M.j("",u1.i(b))?""+$APP.N.i(u1.i(b))+" code":"Code";$APP.U(c,"aria-label",d);a=$APP.S(a,"__xCodeModel",b)}else a=null;return a}return null},
14
- Nwa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Mwa),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),n=$APP.B(h,1,null),r=$APP.B(h,2,null),v=$APP.l(b,k);v.addEventListener(n,function(A,E,I,O,T,R,da,na,ka){return function(oa){return ka.j?ka.j(a,oa):ka.call(null,a,oa)}}(c,d,e,f,v,h,k,n,r,b));f+=1}else if(v=$APP.q(c)){h=v;if($APP.gd(h))c=$APP.Jb(h),f=$APP.Kb(h),d=c,e=$APP.w(c),c=f;else{var x=$APP.t(h);k=$APP.B(x,0,null);n=$APP.B(x,1,null);r=$APP.B(x,2,null);var y=$APP.l(b,k);
15
- y.addEventListener(n,function(A,E,I,O,T,R,da,na,ka){return function(oa){return ka.j?ka.j(a,oa):ka.call(null,a,oa)}}(c,d,e,f,y,x,k,n,r,h,v,b));c=$APP.u(h);d=null;e=0}f=0}else break},Owa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.m(b))return b;b=new MutationObserver(function(){return x1(a)});$APP.S(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Pwa=function(a){$APP.dj(a,"language","language","");$APP.dj(a,"filename","filename","");$APP.aj(a,
16
- "showCopy","show-copy");$APP.aj(a,"lineNumbers","line-numbers");$APP.aj(a,"wrap","wrap");$APP.aj(a,"expanded","expanded");$APP.fj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return b1(this)},set:function(b){return b!=null?$APP.U(this,"code",""+$APP.N.i(b)):$APP.V(this,"code")}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded","")}});return Object.defineProperty(a,
17
- "collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.V(this,"expanded")}})},Twa=function(a){if(!$APP.m($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"),n=document.createElement("x-copy");$APP.U(e,"part","header");$APP.U(f,"part","filename");$APP.U(h,"part",
18
- "language");$APP.U(k,"part","copy-wrap");$APP.U(n,"part","copy");$APP.U(n,"show-tooltip","false");n.appendChild(document.createTextNode("Copy"));k.appendChild(n);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.K(null,5,[$APP.Up,e,$APP.vr,f,y1,h,z1,k,$APP.hs,n],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");n=document.createElement("code");var r=document.createElement("div");$APP.U(f,"part","body");$APP.U(h,"part","scroll");$APP.U(h,
19
- "role","region");$APP.U(h,"tabindex","0");$APP.U(k,"part","pre");$APP.U(n,"part","code");$APP.U(r,"part","fade");$APP.U(r,"aria-hidden","true");k.appendChild(n);h.appendChild(k);f.appendChild(h);f.appendChild(r);f=new $APP.K(null,5,[$APP.Wp,f,$APP.Qt,h,Qwa,k,e1,n,Rwa,r],null);h=document.createElement("button");$APP.U(h,"part","expander");$APP.U(h,"type","button");c.textContent=Swa;$APP.U(d,"part","container");d.appendChild($APP.Up.i(e));d.appendChild($APP.Wp.i(f));d.appendChild(h);b.appendChild(c);
20
- b.appendChild(d);$APP.S(a,"__xCodeRefs",{filename:$APP.vr.i(e),lang:y1.i(e),cwrap:z1.i(e),copy:$APP.hs.i(e),scroll:$APP.Qt.i(f),code:e1.i(f),expander:h});Nwa(a)}Owa(a);return x1(a)},Uwa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.m(a)?a.disconnect():null},Vwa=function(a,b,c,d){return $APP.M.j(c,d)?x1(a):null},A1=function(){$APP.Wm();return $APP.zj("x-code",new $APP.K(null,5,[$APP.rj,Wwa,$APP.sj,Twa,$APP.tj,Uwa,$APP.uj,Vwa,$APP.xj,Pwa],null))},$0=new $APP.F(null,"plain","plain",1368629269),
21
- k1=new $APP.F(null,"code-raw","code-raw",1397705045),Xwa=new $APP.F(null,"attr-value","attr-value",2093232352),i1=new $APP.F(null,"wrap?","wrap?",-1677427054),z1=new $APP.F(null,"cwrap","cwrap",-648244090),Y0=new $APP.F(null,"types","types",590030639),Ywa=new $APP.F(null,"expanded","expanded",-3020742),f1=new $APP.F(null,"language","language",-1591107564),l1=new $APP.F(null,"show-copy?","show-copy?",604953882),B1=new $APP.F(null,"keyword","keyword",811389747),e1=new $APP.F(null,"code","code",1586293142),
22
- n1=new $APP.F(null,"language-raw","language-raw",-402825953),m1=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),Zwa=new $APP.F(null,"entity","entity",-450970276),C1=new $APP.F(null,"punct","punct",1807261997),j1=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),y1=new $APP.F(null,"lang","lang",-1819677104),h1=new $APP.F(null,"lines","lines",-700165781),$wa=new $APP.F(null,"property","property",-1114278232),s1=new $APP.F(null,"header?","header?",-106649173),D1=new $APP.F(null,
23
- "comment","comment",532206069),E1=new $APP.F(null,"string","string",-1989541586),axa=new $APP.F(null,"atrule","atrule",-521152778),g1=new $APP.F(null,"expanded?","expanded?",2055832296),t1=new $APP.F(null,"collapsible?","collapsible?",-1508197779),w1=new $APP.F(null,"max-lines","max-lines",-125998785),Rwa=new $APP.F(null,"fade","fade",1167694157),u1=new $APP.F(null,"language-label","language-label",-733379621),v1=new $APP.F(null,"line-count","line-count",871713181),Qwa=new $APP.F(null,"pre","pre",
24
- 2118456869);var Wwa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Hwa=$APP.Ag(" 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.ne(["x-code-copy",new $APP.K(null,2,[$APP.Ur,!1,$APP.Ni,new $APP.K(null,1,[e1,$APP.X],null)],null),"x-code-toggle",new $APP.K(null,2,[$APP.Ur,!1,$APP.Ni,new $APP.K(null,1,[Ywa,$APP.ij],null)],null)]);
25
- var bxa=new $APP.H(null,5,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[$APP.vi,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.H(null,2,5,$APP.J,[E1,/"(?:[^"\\]|\\.)*"/],null),new $APP.H(null,2,5,$APP.J,[$APP.fp,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.J,[B1,/\b(?:true|false|null)\b/],null),new $APP.H(null,2,5,$APP.J,[C1,/[{}\[\]:,]/],null)],null),cxa=new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[D1,/\/\*[\s\S]*?\*\//],null),new $APP.H(null,2,5,$APP.J,[E1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
26
- null),new $APP.H(null,2,5,$APP.J,[axa,/@[\w-]+/],null),new $APP.H(null,2,5,$APP.J,[$wa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.H(null,2,5,$APP.J,[$APP.fp,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.H(null,2,5,$APP.J,[C1,/[{}();:,]/],null)],null),dxa=new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[D1,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.H(null,2,5,$APP.J,[$APP.qt,/<![^>]*>/],null),new $APP.H(null,2,5,$APP.J,[$APP.qt,/<\/?[A-Za-z][\w-]*/],null),new $APP.H(null,2,5,$APP.J,
27
- [Xwa,/"[^"]*"|'[^']*'/],null),new $APP.H(null,2,5,$APP.J,[Zwa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.H(null,2,5,$APP.J,[C1,/[<>\/=]/],null)],null),o1=Z0(new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[D1,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.H(null,2,5,$APP.J,[$APP.wv,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.H(null,2,5,$APP.J,[E1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.J,[B1,/\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.H(null,2,5,$APP.J,[$APP.fp,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.J,[C1,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),p1=Z0(bxa),q1=Z0(cxa),r1=Z0(dxa);var Swa=":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:var(--x-font-size-sm,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;}"+
2
+ var F0=function(a){return $APP.Oc(Mwa,typeof a==="string"?a.trim().toLowerCase():null,"text")},G0=function(a){return $APP.z.j("",a.trim())},Nwa=function(a){return $APP.x($APP.vh(/^[\t ]*/,a))},Owa=function(a){var b=$APP.qf(a.split("\n")),c=$APP.Ve(G0,b),d=$APP.q(c)?$APP.ud($APP.Qj,$APP.Ne.j(Nwa,c)):0;return d>0?$APP.ci("\n",$APP.Ne.j(function(e){return $APP.x(e)>=d?e.substring(d):e},b)):a},Pwa=function(a){var b=$APP.qf(a.split("\n")),c=$APP.x(b),d=function(){for(var e=0;;)if(e<c&&G0($APP.Cc(b,e)))e+=
3
+ 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&G0($APP.Cc(b,e)))--e;else return e}();return d<=a?$APP.ci("\n",$APP.wf(null,b,d|0,a+1|0,null)):""},H0=function(a){return typeof a==="string"?Owa(Pwa($APP.bi(a,/\r\n?/,"\n"))):""},P0=function(a){return new $APP.K(null,2,[$APP.ar,$APP.ci("|",$APP.Ne.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.N.i(b.source)+")"},a)),I0,$APP.oi.j($APP.t,a)],null)},R0=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.x(c),e=$APP.x(a),f=$APP.zb($APP.We),
4
+ h=0;;){var k=b.exec(a);if(k==null)return $APP.Xd(h<e?$APP.Yd(f,new $APP.H(null,2,5,$APP.J,[Q0,a.substring(h)],null)):f);var n=k[0],r=k.index;a:{for(var v=1;;){if(v>d){k=1;break a}if(k[v]!=null){k=v;break a}v+=1}k=void 0}k=$APP.Cc(c,k-1);h=r>h?new $APP.H(null,2,5,$APP.J,[Q0,a.substring(h,r)],null):null;r+=n.length;n.length===0&&(b.lastIndex+=1);f=$APP.m(h)?$APP.Ab(f,h):f;f=n=$APP.Yd(f,new $APP.H(null,2,5,$APP.J,[k,n],null));h=r}},Qwa=function(a){a=$APP.q(a);for(var b=$APP.We,c=$APP.We;;){if(a==null)return $APP.Gd.j(c,
5
+ b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.qf(f.split("\n")),k=$APP.x(h);if($APP.z.j(k,1))a=$APP.u(a),b=$APP.Gd.j(b,new $APP.H(null,2,5,$APP.J,[e,f],null));else{var n=$APP.u(a),r=new $APP.H(null,1,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[e,$APP.Wc(h)],null)],null);c=$APP.Wf.j($APP.Gd.j(c,$APP.Gd.j(b,new $APP.H(null,2,5,$APP.J,[e,$APP.t(h)],null))),$APP.Ne.j(function(v,w,y,A,E){return function(I){return new $APP.H(null,1,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[E,I],null)],null)}}(a,
6
+ b,c,d,e,f,h,k),$APP.wf(null,h,1,k-1|0,null)));a=n;b=r}}},S0=function(a){var b=a.getAttribute("code");if($APP.m(b))return b;a=a.textContent;return $APP.m(a)?a:""},T0=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(Q0,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.N.i($APP.gh(b));c.textContent=a;return c},U0=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),e=document.createElement("span");$APP.U(c,
7
+ "part","line");$APP.U(d,"part","gutter");$APP.U(d,"aria-hidden","true");d.textContent=""+$APP.N.i(b+1);$APP.U(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.M.j("",$APP.Kc(k))&&e.appendChild(T0(k));h+=1}else if(a=$APP.q(a))b=a,$APP.ed(b)?(a=$APP.Hb(b),h=$APP.Ib(b),b=a,f=$APP.x(a),a=h):(a=$APP.t(b),$APP.M.j("",$APP.Kc(a))&&e.appendChild(T0(a)),a=$APP.u(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);return c},n1=function(a){if($APP.m($APP.l(a,
8
+ "__xCodeRefs"))){var b=S0(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.m(d)?$APP.z.j(H0(b),V0.i(d))&&$APP.z.j(F0(c),W0.i(d)):d;b=$APP.zg([$APP.Ns,X0,Y0,Z0,$0,a1,b1,c1,d1],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.m(e)?Y0.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,b1);b=$APP.C(e,c1);c=$APP.C(e,d1);var h=$APP.C(e,$APP.Ns),k=$APP.C(e,X0),n=$APP.C(e,
9
+ Y0);d=$APP.C(e,Z0);var r=$APP.C(e,$0);e=$APP.C(e,a1);c=F0(c);e=H0(e);h=typeof h==="string"?h.trim():null;h=$APP.m($APP.m(h)?$APP.M.j("",h):h)?h:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;$APP.m(n)||(n=""+$APP.N.i(e),n=$APP.z.j("",n)?$APP.We:$APP.z.j(c,"js")?R0(n,$APP.ar.i(e1),I0.i(e1)):$APP.z.j(c,"json")?R0(n,$APP.ar.i(f1),I0.i(f1)):$APP.z.j(c,"css")?R0(n,$APP.ar.i(g1),I0.i(g1)):$APP.z.j(c,"html")?R0(n,$APP.ar.i(h1),I0.i(h1)):new $APP.H(null,1,5,$APP.J,[new $APP.H(null,
10
+ 2,5,$APP.J,[Q0,n],null)],null),n=Qwa(n));var v=$APP.x(n);f=$APP.D(f);k=$APP.D(k);var w=f||$APP.M.j("",h);d=$APP.D(d);b=$APP.D(b);var y=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.zg([X0,Y0,i1,j1,$APP.mr,Z0,W0,V0,b1,c1,k1,l1,m1],[k,n,w,r>0&&v>r,h,d,c,e,f,b,y,v,r]);if($APP.M.j(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.N.i(m1.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.N.i($APP.Rj.j(2,(""+$APP.N.i(l1.i(b))).length)));k=$APP.l(a,"__xCodeRefs");c=$APP.l(k,
11
+ "filename");d=$APP.l(k,"lang");e=$APP.l(k,"cwrap");k=$APP.l(k,"copy");h=$APP.M.j("",$APP.mr.i(b));f=!h&&$APP.M.j("",k1.i(b));$APP.Di(a,"data-header",i1.i(b));c.textContent=$APP.mr.i(b);c.style.display=h?"block":"none";d.textContent=k1.i(b);d.style.display=f?"block":"none";e.style.display=$APP.m(b1.i(b))?"inline-flex":"none";$APP.U(k,"text",V0.i(b));c=$APP.l(a,"__xCodeModel");if($APP.M.j($APP.Wg(b,new $APP.H(null,2,5,$APP.J,[V0,W0],null)),$APP.Wg(c,new $APP.H(null,2,5,$APP.J,[V0,W0],null)))){c=$APP.l($APP.l(a,
12
+ "__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.De($APP.Io,Y0.i(b)));k=null;for(f=h=0;;)if(f<h)n=k.C(null,f),r=$APP.B(n,0,null),n=$APP.B(n,1,null),d.appendChild(U0(n,r)),f+=1;else if(e=$APP.q(e))$APP.ed(e)?(h=$APP.Hb(e),e=$APP.Ib(e),k=h,h=$APP.x(h)):(h=$APP.t(e),k=$APP.B(h,0,null),h=$APP.B(h,1,null),d.appendChild(U0(h,k)),e=$APP.u(e),k=null,h=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),"expander");e=j1.i(b);d=$APP.m(e)?$APP.p(X0.i(b)):
13
+ e;$APP.Di(a,"data-collapsible",e);$APP.Di(a,"data-collapsed",d);$APP.m(d)?(k=$APP.G(b),e=$APP.C(k,l1),k=$APP.C(k,m1),e=$APP.Rj.j(0,e-k),e="Show "+$APP.N.i(e)+" more "+$APP.N.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.U(c,"aria-expanded",$APP.m(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.M.j("",$APP.mr.i(b))?$APP.mr.i(b):$APP.M.j("",k1.i(b))?""+$APP.N.i(k1.i(b))+" code":"Code";$APP.U(c,"aria-label",d);a=$APP.T(a,"__xCodeModel",b)}else a=null;return a}return null},
14
+ Swa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Rwa),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),n=$APP.B(h,1,null),r=$APP.B(h,2,null),v=$APP.l(b,k);v.addEventListener(n,function(A,E,I,O,S,R,da,na,ka){return function(oa){return ka.j?ka.j(a,oa):ka.call(null,a,oa)}}(c,d,e,f,v,h,k,n,r,b));f+=1}else if(v=$APP.q(c)){h=v;if($APP.ed(h))c=$APP.Hb(h),f=$APP.Ib(h),d=c,e=$APP.x(c),c=f;else{var w=$APP.t(h);k=$APP.B(w,0,null);n=$APP.B(w,1,null);r=$APP.B(w,2,null);var y=$APP.l(b,k);
15
+ y.addEventListener(n,function(A,E,I,O,S,R,da,na,ka){return function(oa){return ka.j?ka.j(a,oa):ka.call(null,a,oa)}}(c,d,e,f,y,w,k,n,r,h,v,b));c=$APP.u(h);d=null;e=0}f=0}else break},Twa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.m(b))return b;b=new MutationObserver(function(){return n1(a)});$APP.T(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Uwa=function(a){$APP.Zi(a,"language","language","");$APP.Zi(a,"filename","filename","");$APP.Wi(a,
16
+ "showCopy","show-copy");$APP.Wi(a,"lineNumbers","line-numbers");$APP.Wi(a,"wrap","wrap");$APP.Wi(a,"expanded","expanded");$APP.aj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return S0(this)},set:function(b){return b!=null?$APP.U(this,"code",""+$APP.N.i(b)):$APP.V(this,"code")}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded","")}});return Object.defineProperty(a,
17
+ "collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.V(this,"expanded")}})},Ywa=function(a){if(!$APP.m($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"),n=document.createElement("x-copy");$APP.U(e,"part","header");$APP.U(f,"part","filename");$APP.U(h,"part",
18
+ "language");$APP.U(k,"part","copy-wrap");$APP.U(n,"part","copy");$APP.U(n,"show-tooltip","false");n.appendChild(document.createTextNode("Copy"));k.appendChild(n);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.K(null,5,[$APP.Lp,e,$APP.mr,f,o1,h,p1,k,$APP.Zr,n],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");n=document.createElement("code");var r=document.createElement("div");$APP.U(f,"part","body");$APP.U(h,"part","scroll");$APP.U(h,
19
+ "role","region");$APP.U(h,"tabindex","0");$APP.U(k,"part","pre");$APP.U(n,"part","code");$APP.U(r,"part","fade");$APP.U(r,"aria-hidden","true");k.appendChild(n);h.appendChild(k);f.appendChild(h);f.appendChild(r);f=new $APP.K(null,5,[$APP.Np,f,$APP.Ht,h,Vwa,k,V0,n,Wwa,r],null);h=document.createElement("button");$APP.U(h,"part","expander");$APP.U(h,"type","button");c.textContent=Xwa;$APP.U(d,"part","container");d.appendChild($APP.Lp.i(e));d.appendChild($APP.Np.i(f));d.appendChild(h);b.appendChild(c);
20
+ b.appendChild(d);$APP.T(a,"__xCodeRefs",{filename:$APP.mr.i(e),lang:o1.i(e),cwrap:p1.i(e),copy:$APP.Zr.i(e),scroll:$APP.Ht.i(f),code:V0.i(f),expander:h});Swa(a)}Twa(a);return n1(a)},Zwa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.m(a)?a.disconnect():null},$wa=function(a,b,c,d){return $APP.M.j(c,d)?n1(a):null},q1=function(){$APP.Nm();return $APP.uj("x-code",new $APP.K(null,5,[$APP.mj,axa,$APP.nj,Ywa,$APP.oj,Zwa,$APP.pj,$wa,$APP.sj,Uwa],null))},Q0=new $APP.F(null,"plain","plain",1368629269),
21
+ a1=new $APP.F(null,"code-raw","code-raw",1397705045),bxa=new $APP.F(null,"attr-value","attr-value",2093232352),Z0=new $APP.F(null,"wrap?","wrap?",-1677427054),p1=new $APP.F(null,"cwrap","cwrap",-648244090),I0=new $APP.F(null,"types","types",590030639),cxa=new $APP.F(null,"expanded","expanded",-3020742),W0=new $APP.F(null,"language","language",-1591107564),b1=new $APP.F(null,"show-copy?","show-copy?",604953882),r1=new $APP.F(null,"keyword","keyword",811389747),V0=new $APP.F(null,"code","code",1586293142),
22
+ d1=new $APP.F(null,"language-raw","language-raw",-402825953),c1=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),dxa=new $APP.F(null,"entity","entity",-450970276),s1=new $APP.F(null,"punct","punct",1807261997),$0=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),o1=new $APP.F(null,"lang","lang",-1819677104),Y0=new $APP.F(null,"lines","lines",-700165781),exa=new $APP.F(null,"property","property",-1114278232),i1=new $APP.F(null,"header?","header?",-106649173),t1=new $APP.F(null,
23
+ "comment","comment",532206069),u1=new $APP.F(null,"string","string",-1989541586),fxa=new $APP.F(null,"atrule","atrule",-521152778),X0=new $APP.F(null,"expanded?","expanded?",2055832296),j1=new $APP.F(null,"collapsible?","collapsible?",-1508197779),m1=new $APP.F(null,"max-lines","max-lines",-125998785),Wwa=new $APP.F(null,"fade","fade",1167694157),k1=new $APP.F(null,"language-label","language-label",-733379621),l1=new $APP.F(null,"line-count","line-count",871713181),Vwa=new $APP.F(null,"pre","pre",
24
+ 2118456869);var axa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Mwa=$APP.zg(" 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.me(["x-code-copy",new $APP.K(null,2,[$APP.wr,!1,$APP.Oi,new $APP.K(null,1,[V0,$APP.X],null)],null),"x-code-toggle",new $APP.K(null,2,[$APP.wr,!1,$APP.Oi,new $APP.K(null,1,[cxa,$APP.dj],null)],null)]);
25
+ var gxa=new $APP.H(null,5,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[$APP.qi,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.H(null,2,5,$APP.J,[u1,/"(?:[^"\\]|\\.)*"/],null),new $APP.H(null,2,5,$APP.J,[$APP.Xo,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.J,[r1,/\b(?:true|false|null)\b/],null),new $APP.H(null,2,5,$APP.J,[s1,/[{}\[\]:,]/],null)],null),hxa=new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[t1,/\/\*[\s\S]*?\*\//],null),new $APP.H(null,2,5,$APP.J,[u1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
26
+ null),new $APP.H(null,2,5,$APP.J,[fxa,/@[\w-]+/],null),new $APP.H(null,2,5,$APP.J,[exa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.H(null,2,5,$APP.J,[$APP.Xo,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.H(null,2,5,$APP.J,[s1,/[{}();:,]/],null)],null),ixa=new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[t1,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.H(null,2,5,$APP.J,[$APP.ht,/<![^>]*>/],null),new $APP.H(null,2,5,$APP.J,[$APP.ht,/<\/?[A-Za-z][\w-]*/],null),new $APP.H(null,2,5,$APP.J,
27
+ [bxa,/"[^"]*"|'[^']*'/],null),new $APP.H(null,2,5,$APP.J,[dxa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.H(null,2,5,$APP.J,[s1,/[<>\/=]/],null)],null),e1=P0(new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[t1,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.H(null,2,5,$APP.J,[$APP.nv,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.H(null,2,5,$APP.J,[u1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.J,[r1,/\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.H(null,2,5,$APP.J,[$APP.Xo,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.J,[s1,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),f1=P0(gxa),g1=P0(hxa),h1=P0(ixa);var Xwa=":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:var(--x-font-size-sm,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;}"+
29
29
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@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:var(--x-border-width,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:var(--x-border-width,1px) solid var(--x-code-border);font-size:var(--x-font-size-xs,0.75rem);}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight:var(--x-font-weight-semibold,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:var(--x-border-width,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:var(--x-border-width,1px) solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:var(--x-font-size-xs,0.75rem);cursor:pointer;text-align:center;transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,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;}}",
30
- Mwa=new $APP.H(null,2,5,$APP.J,[new $APP.H(null,3,5,$APP.J,["expander","click",function(a){var b=$APP.p(g1.i($APP.l(a,"__xCodeModel")));b?$APP.U(a,"expanded",""):$APP.V(a,"expanded");return $APP.Wi(a,"x-code-toggle",{expanded:b})}],null),new $APP.H(null,3,5,$APP.J,["copy","x-copy-success",function(a){return $APP.Wi(a,"x-code-copy",{code:e1.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ha("baredom.exports.x_code.init",A1);export const init=A1;
30
+ Rwa=new $APP.H(null,2,5,$APP.J,[new $APP.H(null,3,5,$APP.J,["expander","click",function(a){var b=$APP.p(X0.i($APP.l(a,"__xCodeModel")));b?$APP.U(a,"expanded",""):$APP.V(a,"expanded");return $APP.Ri(a,"x-code-toggle",{expanded:b})}],null),new $APP.H(null,3,5,$APP.J,["copy","x-copy-success",function(a){return $APP.Ri(a,"x-code-copy",{code:V0.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ha("baredom.exports.x_code.init",q1);export const init=q1;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var p9=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},r9=function(a){a=q9.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},s9=function(a){a.style.height="";return a.style.transition=""},t9=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.N.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return s9(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
- s9(a);return a.removeEventListener("transitionend",h)})},w9=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.K(null,4,[$APP.tp,a.hasAttribute("open"),$APP.Kk,a.hasAttribute("disabled"),u9,a.getAttribute("header"),v9,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.tp);var d=$APP.C(c,$APP.Kk),e=$APP.C(c,u9);c=$APP.C(c,v9);b=$APP.D(b);d=$APP.D(d);e=$APP.m(e)?e:"";$APP.m(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.m(c)?$APP.Wl.j(0,$APP.ak.j(2E3,
4
- c)):300;b=new $APP.K(null,4,[$APP.fs,b,$APP.Qk,d,$APP.Up,e,q9,c],null);$APP.M.j($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.m(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.Up),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.fs),c=$APP.C(c,$APP.Qk),$APP.U(d,"aria-expanded",$APP.m(e)?"true":"false"),$APP.m(c)?($APP.U(d,"disabled",""),$APP.U(d,"aria-disabled","true")):($APP.V(d,"disabled"),$APP.V(d,"aria-disabled")),a=$APP.S(a,"__xCollapseModel",
5
- b)):a=null):a=null;return a}return null},x9=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.Yi(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.U(a,"open",""):$APP.V(a,"open"),$APP.Wi(a,"x-collapse-change",{open:c})):null},UBa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return x9(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=x9(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.S(a,"__xCollapseHandlers",e)}},y9=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.m(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.S(a,"__xCollapseHandlers",null)}return null},WBa=function(a){if(!$APP.m($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"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=VBa;$APP.U(d,"part","container");$APP.U(e,"part","trigger");$APP.U(e,"type","button");$APP.U(e,"id","trigger");$APP.U(e,"aria-controls","panel");$APP.U(f,"part","header-text");$APP.U(h,"part","chevron");
8
- $APP.U(h,"aria-hidden","true");$APP.U(k,"part","content");$APP.U(k,"id","panel");$APP.U(k,"role","region");$APP.U(k,"aria-labelledby","trigger");$APP.U(n,"part","content-inner");$APP.U(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);n.appendChild(r);k.appendChild(n);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.S(a,"__xCollapseRefs",c)}y9(a);UBa(a);return w9(a)},XBa=function(a){return y9(a)},
9
- YBa=function(a,b,c,d){return $APP.M.j(c,d)&&(w9(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.m(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.m(b)?$APP.m(c)?$APP.m(p9())?a=s9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=t9(b,"0px",c,r9(a))):$APP.m(p9())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=t9(b,c,"0px",r9(a))):a=null,a):null},$Ba=function(a){$APP.kj(a,ZBa);return Object.defineProperty(a,"toggle",
10
- {value:function(){return x9(this,"programmatic")},writable:!0,configurable:!0})},z9=function(){return $APP.zj("x-collapse",new $APP.K(null,5,[$APP.rj,aCa,$APP.sj,WBa,$APP.tj,XBa,$APP.uj,YBa,$APP.xj,$Ba],null))},v9=new $APP.F(null,"duration-ms-raw","duration-ms-raw",-2138819526),q9=new $APP.F(null,"duration-ms","duration-ms",1993555055),u9=new $APP.F(null,"header-raw","header-raw",41484);var aCa=["open","disabled","header","duration-ms"],ZBa=new $APP.K(null,4,[$APP.Uu,new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"open"],null),$APP.Zm,new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"disabled"],null),$APP.Up,new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.K(null,3,[$APP.P,$APP.Y,$APP.W,"duration-ms",$APP.jj,300],null)],null);
11
- $APP.ne(["x-collapse-toggle",new $APP.K(null,3,[$APP.Ur,!0,$APP.ys,$APP.ne(["open",$APP.Uu]),$APP.Ni,new $APP.K(null,2,[$APP.Uu,$APP.ij,$APP.jr,$APP.X],null)],null),"x-collapse-change",new $APP.K(null,2,[$APP.Ur,!1,$APP.Ni,new $APP.K(null,1,[$APP.Uu,$APP.ij],null)],null)]);var VBa=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:var(--x-border-width,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:var(--x-font-size-sm,0.9375rem);--x-collapse-font-weight:var(--x-font-weight-semibold,600);--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}"+
12
- $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-collapse-border:var(--x-border-width,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 var(--x-transition-duration,200ms) var(--x-transition-easing,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;}}";$APP.ha("baredom.exports.x_collapse.init",z9);export const init=z9;
2
+ var f9=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},h9=function(a){a=g9.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},i9=function(a){a.style.height="";return a.style.transition=""},j9=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.N.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return i9(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
3
+ i9(a);return a.removeEventListener("transitionend",h)})},m9=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.K(null,4,[$APP.kp,a.hasAttribute("open"),$APP.Ck,a.hasAttribute("disabled"),k9,a.getAttribute("header"),l9,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.kp);var d=$APP.C(c,$APP.Ck),e=$APP.C(c,k9);c=$APP.C(c,l9);b=$APP.D(b);d=$APP.D(d);e=$APP.m(e)?e:"";$APP.m(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.m(c)?$APP.Rj.j(0,$APP.Qj.j(2E3,
4
+ c)):300;b=new $APP.K(null,4,[$APP.Xr,b,$APP.Ik,d,$APP.Lp,e,g9,c],null);$APP.M.j($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.m(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.Lp),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Xr),c=$APP.C(c,$APP.Ik),$APP.U(d,"aria-expanded",$APP.m(e)?"true":"false"),$APP.m(c)?($APP.U(d,"disabled",""),$APP.U(d,"aria-disabled","true")):($APP.V(d,"disabled"),$APP.V(d,"aria-disabled")),a=$APP.T(a,"__xCollapseModel",
5
+ b)):a=null):a=null;return a}return null},n9=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.Ti(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.U(a,"open",""):$APP.V(a,"open"),$APP.Ri(a,"x-collapse-change",{open:c})):null},ZBa=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return n9(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=n9(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.T(a,"__xCollapseHandlers",e)}},o9=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.m(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.T(a,"__xCollapseHandlers",null)}return null},aCa=function(a){if(!$APP.m($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"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=$Ba;$APP.U(d,"part","container");$APP.U(e,"part","trigger");$APP.U(e,"type","button");$APP.U(e,"id","trigger");$APP.U(e,"aria-controls","panel");$APP.U(f,"part","header-text");$APP.U(h,"part","chevron");
8
+ $APP.U(h,"aria-hidden","true");$APP.U(k,"part","content");$APP.U(k,"id","panel");$APP.U(k,"role","region");$APP.U(k,"aria-labelledby","trigger");$APP.U(n,"part","content-inner");$APP.U(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);n.appendChild(r);k.appendChild(n);d.appendChild(e);d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.T(a,"__xCollapseRefs",c)}o9(a);ZBa(a);return m9(a)},bCa=function(a){return o9(a)},
9
+ cCa=function(a,b,c,d){return $APP.M.j(c,d)&&(m9(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.m(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.m(b)?$APP.m(c)?$APP.m(f9())?a=i9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=j9(b,"0px",c,h9(a))):$APP.m(f9())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=j9(b,c,"0px",h9(a))):a=null,a):null},eCa=function(a){$APP.fj(a,dCa);return Object.defineProperty(a,"toggle",
10
+ {value:function(){return n9(this,"programmatic")},writable:!0,configurable:!0})},p9=function(){return $APP.uj("x-collapse",new $APP.K(null,5,[$APP.mj,fCa,$APP.nj,aCa,$APP.oj,bCa,$APP.pj,cCa,$APP.sj,eCa],null))},l9=new $APP.F(null,"duration-ms-raw","duration-ms-raw",-2138819526),g9=new $APP.F(null,"duration-ms","duration-ms",1993555055),k9=new $APP.F(null,"header-raw","header-raw",41484);var fCa=["open","disabled","header","duration-ms"],dCa=new $APP.K(null,4,[$APP.Lu,new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"open"],null),$APP.Qm,new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"disabled"],null),$APP.Lp,new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.K(null,3,[$APP.P,$APP.Y,$APP.W,"duration-ms",$APP.ej,300],null)],null);
11
+ $APP.me(["x-collapse-toggle",new $APP.K(null,3,[$APP.wr,!0,$APP.ps,$APP.me(["open",$APP.Lu]),$APP.Oi,new $APP.K(null,2,[$APP.Lu,$APP.dj,$APP.ar,$APP.X],null)],null),"x-collapse-change",new $APP.K(null,2,[$APP.wr,!1,$APP.Oi,new $APP.K(null,1,[$APP.Lu,$APP.dj],null)],null)]);var $Ba=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:var(--x-border-width,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:var(--x-font-size-sm,0.9375rem);--x-collapse-font-weight:var(--x-font-weight-semibold,600);--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}"+
12
+ $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-collapse-border:var(--x-border-width,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 var(--x-transition-duration,200ms) var(--x-transition-easing,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;}}";$APP.ha("baredom.exports.x_collapse.init",p9);export const init=p9;
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var KG=function(a,b){return $APP.ak.j($APP.Wl.j(a,0),b)},LG=function(a){return $APP.Bd(a,360)},MG=function(a){return KG(a,100)},NG=function(a){return KG(a,1)},PG=function(a){var b=typeof a==="string";a=b?$APP.zh(OG,a.trim()):b;return $APP.D(a)},TG=function(a){if(typeof a==="string")if(a=$APP.zh(OG,a.trim()),$APP.m(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.N.i($APP.Ec(a,0))+$APP.N.i($APP.Ec(a,0)),16),c=parseInt(""+$APP.N.i($APP.Ec(a,1))+$APP.N.i($APP.Ec(a,
3
- 1)),16),d=parseInt(""+$APP.N.i($APP.Ec(a,2))+$APP.N.i($APP.Ec(a,2)),16);return new $APP.K(null,4,[QG,b,$APP.Hu,c,RG,d,SG,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.K(null,4,[QG,b,$APP.Hu,c,RG,d,SG,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.K(null,4,[QG,b,$APP.Hu,c,RG,d,SG,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},Oja=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Wl.o(a,b,$APP.Jc([c])),e=$APP.ak.o(a,b,$APP.Jc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.K(null,3,[UG,0,VG,0,WG,f*100],null):new $APP.K(null,3,[UG,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,VG,(f>.5?h/(2-d-e):h/(d+e))*100,WG,f*100],null)},XG=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},YG=function(a,b,c){a=LG(a)/360;b=MG(b)/100;c=MG(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.K(null,3,[QG,a,$APP.Hu,a,RG,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.K(null,3,[QG,Math.round(XG(c,b,a+1/3)*255),$APP.Hu,Math.round(XG(c,b,a)*255),RG,Math.round(XG(c,b,a-1/3)*255)],null)},ZG=function(a,b,c){function d(e){e=KG(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.N.i(e):e}return"#"+$APP.N.i(d(a))+$APP.N.i(d(b))+$APP.N.i(d(c))},$G=function(a,b,c,d){function e(f){f=KG(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.N.i(f):f}
6
- return"#"+$APP.N.i(e(a))+$APP.N.i(e(b))+$APP.N.i(e(c))+$APP.N.i(e(NG(d)*255))},bH=function(a,b,c){b=MG(b)/100;c=MG(c)/100;b=c+b*$APP.ak.j(c,1-c);return new $APP.K(null,3,[UG,LG(a),VG,(b===0?0:2*(1-c/b))*100,aH,b*100],null)},cH=function(a,b,c){b=MG(b)/100;c=MG(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.ak.j(b,1-b);return new $APP.K(null,3,[UG,LG(a),VG,c*100,WG,b*100],null)},dH=function(a,b,c){return 100*(KG(a-b,c)/c)},Pja=function(a){return typeof a==="string"&&PG(a)?(a=TG(a),$APP.m(a)?ZG(QG.i(a),
7
- $APP.Hu.i(a),RG.i(a)):null):"#000000"},Qja=function(a){return typeof a==="string"&&$APP.kd(eH,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Rja=function(a){return typeof a==="string"&&$APP.pi(a)?$APP.Xf.l($APP.Xe,$APP.Uj.l($APP.Oe.i($APP.li),$APP.Te(PG),$APP.Oe.i(function(b){b=TG(b);var c=$APP.G(b);b=$APP.C(c,QG);var d=$APP.C(c,$APP.Hu);c=$APP.C(c,RG);return ZG(b,d,c)})),$APP.ji(a,/,/)):$APP.Xe},Sja=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Qk);var c=$APP.C(b,$APP.Uu),d=$APP.C(b,$APP.Q),
8
- e=$APP.C(b,$APP.Ok),f=$APP.C(b,$APP.hj),h=$APP.C(b,$APP.Gm),k=$APP.C(b,fH),n=$APP.C(b,$APP.Z),r=$APP.C(b,gH);b=Pja(d);var v=function(){var T=TG(d);return $APP.m(T)?T:TG("#000000")}(),x=$APP.G(v);v=$APP.C(x,QG);var y=$APP.C(x,$APP.Hu),A=$APP.C(x,RG);x=$APP.C(x,SG);var E=function(){var T=typeof d==="string";if(T){T=d.trim();var R=$APP.zh(OG,T);return $APP.m(R)?8===$APP.w($APP.Mc($APP.zh(OG,T))):R}return T}();x=$APP.m(E)?x:1;E=Oja(v,y,A);var I=$APP.G(E);E=$APP.C(I,UG);var O=$APP.C(I,VG);I=$APP.C(I,WG);
9
- f=$APP.ni(f);r=r!=null;c=c!=null;h=Qja(h);return $APP.Ag([$APP.jm,hH,$APP.Ok,$APP.Gm,fH,VG,WG,iH,UG,$APP.Z,$APP.fs,jH,$APP.Qk,SG],[f,r,$APP.pi(e)?e:null,h,Rja(k),O,I,b,E,$APP.pi(n)?n:null,$APP.z.j(h,"popover")&&c,r&&x<1?$G(v,y,A,x):b,$APP.D(a),x])},kH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Qk);b=$APP.C(b,$APP.jm);return $APP.p(a)&&$APP.p(b)},lH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"role","slider");$APP.U(a,"tabindex","0");$APP.U(a,"aria-label",c);$APP.U(a,"aria-valuemin","0");$APP.U(a,
10
- "aria-valuemax",d)},mH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"type","button");$APP.U(a,"aria-label",c);a.innerHTML=d},nH=function(a){return Sja($APP.Ag([$APP.Uu,$APP.Ok,$APP.Q,$APP.hj,$APP.Gm,fH,$APP.Z,gH,$APP.Qk],[a.getAttribute("open"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha"),$APP.Jj(a)]))},oH=function(a,b){var c=jH.i(b),d=UG.i(b),e=VG.i(b),f=WG.i(b);b=SG.i(b);
11
- return $APP.Wi(a,"x-color-picker-input",$APP.Rm(new $APP.K(null,5,[$APP.Q,c,UG,d,VG,e,WG,f,SG,b],null)))},pH=function(a,b){var c=jH.i(b),d=UG.i(b),e=VG.i(b),f=WG.i(b);b=SG.i(b);return $APP.Yi(a,"x-color-picker-change",$APP.Rm(new $APP.K(null,5,[$APP.Q,c,UG,d,VG,e,WG,f,SG,b],null)))},qH=function(a,b,c,d,e,f){b=YG(b,c,d);d=$APP.G(b);b=$APP.C(d,QG);c=$APP.C(d,$APP.Hu);d=$APP.C(d,RG);e=$APP.m($APP.m(f)?e<1:f)?$G(b,c,d,e):ZG(b,c,d);$APP.U(a,"value",e)},Tja=function(a,b,c,d){if($APP.M.j($APP.l(a,"__xColorPickerSwatchesCache"),
12
- c)){$APP.S(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.U(k,"part","swatch");$APP.U(k,"type","button");$APP.U(k,"role","option");$APP.U(k,"aria-label",h);$APP.U(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.gd(a)?(e=$APP.Jb(a),a=$APP.Kb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),$APP.U(e,"part","swatch"),$APP.U(e,"type","button"),
13
- $APP.U(e,"role","option"),$APP.U(e,"aria-label",c),$APP.U(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.u(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(n){return $APP.U(n,"aria-selected",$APP.z.j(n.getAttribute("data-color"),d)?"true":"false")})},rH=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=nH(a);if($APP.M.j($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.m(c)){var d=$APP.l(c,"area"),
14
- e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),n=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),v=$APP.C(r,UG);r=$APP.C(r,$APP.Gm);$APP.U(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.N.i(Math.round(v)));r=$APP.G(b);var x=$APP.C(r,UG),y=$APP.C(r,VG),A=$APP.C(r,WG);v=$APP.C(r,SG);r=$APP.C(r,$APP.Z);y=bH(x,y,A);var E=$APP.G(y);y=$APP.C(E,VG);E=$APP.C(E,aH);E=new $APP.K(null,2,[$APP.Fu,MG(y),$APP.Eu,100-MG(E)],null);
15
- d.style.setProperty("--_x-cp-area-x",""+$APP.N.i($APP.Fu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.Eu.i(E).toFixed(2))+"%");x="Hue "+$APP.N.i(Math.round(x))+", Saturation "+$APP.N.i(Math.round(y))+"%, Lightness "+$APP.N.i(Math.round(A))+"%";v=v<1?""+$APP.N.i(x)+", Opacity "+$APP.N.i(Math.round(v*100))+"%":x;$APP.U(d,"aria-valuetext",v);$APP.m(r)&&$APP.U(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,UG);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((LG(d)/360*100).toFixed(2))+
16
- "%");$APP.U(e,"aria-valuenow",""+$APP.N.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,UG);d=$APP.C(x,VG);v=$APP.C(x,WG);r=$APP.C(x,SG);x=$APP.C(x,hH);$APP.m(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.N.i(Math.round(e))+","+$APP.N.i(Math.round(d))+"%,"+$APP.N.i(Math.round(v))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.N.i((NG(r)*100).toFixed(2))+"%"),$APP.U(f,"aria-valuenow",""+$APP.N.i(Math.round(r*100)))):f.style.display="none";x=$APP.G(b);e=$APP.C(x,UG);d=
17
- $APP.C(x,VG);v=$APP.C(x,WG);f=$APP.C(x,SG);r=$APP.C(x,iH);x=$APP.C(x,hH);$APP.m(x)?(e=YG(e,d,v),v=$APP.G(e),e=$APP.C(v,QG),d=$APP.C(v,$APP.Hu),v=$APP.C(v,RG),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,jH);k=$APP.C(f,$APP.Qk);f=$APP.C(f,$APP.jm);a.shadowRoot.activeElement!==n&&(n.value=h);n.disabled=$APP.m(k)?k:f;Tja(a,c,fH.i(b),iH.i(b));n=$APP.G(b);n=$APP.C(n,jH);c=$APP.l(a,"__xColorPickerInternals");
18
- $APP.m(c)&&c.setFormValue(n);a=$APP.S(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},tH=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=dH(b.clientX,c.left,c.width);a=dH(a,d,e);return new $APP.K(null,2,[sH,MG(b),$APP.$o,100-MG(a)],null)},uH=function(a,b){a=a.getBoundingClientRect();b=dH(b.clientX,a.left,a.width);return MG(b)/100*360},vH=function(a,b){a=a.getBoundingClientRect();b=dH(b.clientX,a.left,a.width);return MG(b)/100},Vja=function(a,
19
- b){var c=nH(a);if(kH(c)&&$APP.kd(Uja,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=bH(UG.i(c),VG.i(c),WG.i(c)),f=function(){switch(b.key){case "ArrowRight":return MG(VG.i(e)+d);case "ArrowLeft":return MG(VG.i(e)-d);default:return VG.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return MG(aH.i(e)+d);case "ArrowDown":return MG(aH.i(e)-d);default:return aH.i(e)}}();f=cH(UG.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,UG);h=$APP.C(k,VG);k=$APP.C(k,WG);qH(a,f,h,k,SG.i(c),hH.i(c));oH(a,nH(a));
20
- return pH(a,nH(a))}return null},Wja=function(a,b){var c=nH(a);if(kH(c)&&$APP.kd(wH,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return LG(UG.i(c)+d);case "ArrowLeft":return LG(UG.i(c)-d);case "Home":return 0;case "End":return 360;default:return UG.i(c)}}();qH(a,e,VG.i(c),WG.i(c),SG.i(c),hH.i(c));oH(a,nH(a));return pH(a,nH(a))}return null},Xja=function(a,b){var c=nH(a);if($APP.m(function(){var f=kH(c);return f?(f=hH.i(c),$APP.m(f)?$APP.kd(wH,
21
- b.key):f):f}())){b.preventDefault();var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return NG(SG.i(c)+d);case "ArrowLeft":return NG(SG.i(c)-d);case "Home":return 0;case "End":return 1;default:return SG.i(c)}}();qH(a,UG.i(c),VG.i(c),WG.i(c),e,!0);oH(a,nH(a));return pH(a,nH(a))}return null},Yja=function(a){var b=nH(a);return kH(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.U(a,"value",c.sRGBHex);return pH(a,nH(a))}).catch(function(){return null}):
22
- null},Zja=function(a){if($APP.m(a.hasAttribute("open")))return null;$APP.U(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.m(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},xH=function(a){return $APP.m(a.hasAttribute("open"))?($APP.V(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.m(a)?$APP.l(a,"trigger").focus():null):null},$ja=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:xH(a):null},
23
- aka=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=nH(a);b=tH($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,sH);d=$APP.C(d,$APP.$o);b=cH(UG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,UG);d=$APP.C(e,VG);e=$APP.C(e,WG);qH(a,b,d,e,SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c},copy:function(){var b=nH(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(jH.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
- b.key)&&$APP.z.j("popover",$APP.Gm.i(nH(a)))?(b.preventDefault(),b.stopPropagation(),b=xH(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=pH(a,nH(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=pH(a,nH(a))}else b=null;return b},"alpha-key":function(b){return Xja(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
- $APP.l(a,"__xColorPickerDragging"))){var c=nH(a);b=vH($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);qH(a,UG.i(c),VG.i(c),WG.i(c),b,!0);c=oH(a,nH(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=nH(a);if(kH(d)){if(PG(c)){$APP.U(a,"value",c);b=pH(a,nH(a));break a}b=b.value=jH.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=nH(a);if(kH(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=
26
- b.getAttribute("data-color");$APP.U(a,"value",b);b=pH(a,nH(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.S(a,"__xColorPickerDragging",null);var b=pH(a,nH(a))}else b=null;return b},"alpha-down":function(b){var c=nH(a);var d=(d=kH(c))?hH.i(c):d;$APP.m(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.S(a,"__xColorPickerDragging","alpha"),b=vH(d,b),qH(a,UG.i(c),VG.i(c),WG.i(c),
27
- b,!0),c=oH(a,nH(a))):c=null;return c},"area-key":function(b){return Vja(a,b)},"hue-down":function(b){var c=nH(a);if(kH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.S(a,"__xColorPickerDragging","hue");b=uH(d,b);qH(a,b,VG.i(c),WG.i(c),SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c},"hue-key":function(b){return Wja(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=nH(a);b=uH($APP.l($APP.l(a,
28
- "__xColorPickerRefs"),"hue-strip"),b);qH(a,b,VG.i(c),WG.i(c),SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c},eyedrop:function(){return Yja(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=nH(a);return $APP.z.j("popover",$APP.Gm.i(b))&&$APP.p($APP.Qk.i(b))?$APP.m($APP.fs.i(b))?xH(a):Zja(a):null},"doc-click":function(b){return $ja(a,b)},"area-down":function(b){var c=nH(a);if(kH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
- $APP.S(a,"__xColorPickerDragging","area");b=tH(d,b);d=$APP.G(b);b=$APP.C(d,sH);d=$APP.C(d,$APP.$o);b=cH(UG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,UG);d=$APP.C(e,VG);e=$APP.C(e,WG);qH(a,b,d,e,SG.i(c),hH.i(c));c=oH(a,nH(a))}else c=null;return c}}},zH=function(a,b){return $APP.z.j(b,yH)?document:$APP.l(a,b)},BH=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.m($APP.m(b)?c:b)){for(var d=$APP.q(AH),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),
30
- r=$APP.B(k,1,null),v=$APP.B(k,2,null);k=$APP.B(k,3,null);zH(b,n).removeEventListener(r,$APP.l(c,v),k);h+=1}else if(d=$APP.q(d))$APP.gd(d)?(f=$APP.Jb(d),d=$APP.Kb(d),e=f,f=$APP.w(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),h=$APP.B(n,2,null),n=$APP.B(n,3,null),zH(b,e).removeEventListener(f,$APP.l(c,h),n),d=$APP.u(d),e=null,f=0),h=0;else break;return $APP.S(a,"__xColorPickerHandlers",null)}return null},bka=function(a){$APP.U(a,"value","#000000");return rH(a)},dka=function(a){if(!$APP.m($APP.l(a,
31
- "__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.U(f,"part","trigger");$APP.U(f,"type","button");$APP.U(f,"aria-label","Pick color");$APP.U(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.K(null,2,[$APP.At,f,CH,h],null);h=document.createElement("div");var k=document.createElement("div");$APP.U(h,"part",
32
- "area");$APP.U(h,"role","slider");$APP.U(h,"tabindex","0");$APP.U(h,"aria-label","Color");$APP.U(k,"part","area-thumb");h.appendChild(k);h=new $APP.K(null,2,[DH,h,EH,k],null);k=document.createElement("div");var n=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.U(k,"part","strips");lH(n,"hue-strip","Hue","360");lH(v,"alpha-strip","Opacity","100");$APP.U(r,"part","hue-thumb");$APP.U(x,
33
- "part","alpha-gradient");$APP.U(y,"part","alpha-thumb");n.appendChild(r);v.appendChild(x);v.appendChild(y);k.appendChild(n);k.appendChild(v);k=new $APP.K(null,6,[FH,k,GH,n,HH,r,IH,v,JH,x,KH,y],null);n=document.createElement("div");r=document.createElement("div");v=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.U(n,"part","controls");$APP.U(r,"part","preview");$APP.U(v,"part","preview-color");$APP.U(x,
34
- "part","hex-input");$APP.U(x,"type","text");$APP.U(x,"spellcheck","false");$APP.U(x,"autocomplete","off");$APP.U(x,"aria-label","Hex color value");mH(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
- mH(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(v);n.appendChild(r);n.appendChild(x);
36
- n.appendChild(y);n.appendChild(A);n=new $APP.K(null,6,[$APP.$r,n,LH,r,MH,v,NH,x,OH,y,$APP.hs,A],null);r=document.createElement("div");$APP.U(r,"part","swatches");$APP.U(r,"role","listbox");$APP.U(r,"aria-label","Preset colors");r=new $APP.K(null,1,[fH,r],null);c.textContent=cka;$APP.U(d,"part","container");$APP.U(e,"part","panel");e.appendChild(DH.i(h));e.appendChild(FH.i(k));e.appendChild($APP.$r.i(n));e.appendChild(fH.i(r));d.appendChild($APP.At.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);
37
- b={"alpha-thumb":KH.i(k),copy:$APP.hs.i(n),swatches:fH.i(r),"hue-strip":GH.i(k),controls:$APP.$r.i(n),"alpha-gradient":JH.i(k),panel:e,preview:LH.i(n),"area-thumb":EH.i(h),"preview-color":MH.i(n),container:d,area:DH.i(h),"hue-thumb":HH.i(k),"trigger-swatch":CH.i(f),trigger:$APP.At.i(f),"alpha-strip":IH.i(k),eyedropper:OH.i(n),"hex-input":NH.i(n)};$APP.S(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.S(a,"__xColorPickerInternals",a.attachInternals())}BH(a);b=$APP.l(a,"__xColorPickerRefs");
38
- if($APP.m(b)){c=aka(a);d=$APP.q(AH);e=null;for(h=f=0;;)if(h<f)v=e.C(null,h),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),zH(b,k).addEventListener(n,$APP.l(c,r),v),h+=1;else if(d=$APP.q(d))$APP.gd(d)?(f=$APP.Jb(d),d=$APP.Kb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),zH(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.u(d),e=null,f=0),h=0;else break;$APP.S(a,"__xColorPickerHandlers",c)}return rH(a)},eka=function(a){return BH(a)},
39
- fka=function(a,b,c,d){return $APP.M.j(c,d)?rH(a):null},hka=function(a){$APP.Mj(a,"__xColorPickerInternals");return $APP.kj(a,gka)},PH=function(){return $APP.zj("x-color-picker",new $APP.K(null,7,[$APP.rj,ika,$APP.sj,dka,$APP.tj,eka,$APP.uj,fka,$APP.vj,!0,$APP.wj,bka,$APP.xj,hka],null))},JH=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),KH=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),MH=new $APP.F(null,"preview-color","preview-color",1405210195),IH=new $APP.F(null,"alpha-strip",
40
- "alpha-strip",1085401595),EH=new $APP.F(null,"area-thumb","area-thumb",1471343090),hH=new $APP.F(null,"alpha?","alpha?",1329751525),sH=new $APP.F(null,"sat","sat",1064662667),CH=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),yH=new $APP.F(null,"document","document",-1329188687),OH=new $APP.F(null,"eyedropper","eyedropper",-1786107588),DH=new $APP.F(null,"area","area",472007256),gH=new $APP.F(null,"alpha","alpha",-1574982441),jH=new $APP.F(null,"hex-full","hex-full",-1466644518),NH=new $APP.F(null,
41
- "hex-input","hex-input",1497535517),LH=new $APP.F(null,"preview","preview",451279890),GH=new $APP.F(null,"hue-strip","hue-strip",938856876),fH=new $APP.F(null,"swatches","swatches",2033601707),FH=new $APP.F(null,"strips","strips",-1564791997),aH=new $APP.F(null,"v","v",21465059),VG=new $APP.F(null,"s","s",1705939918),QG=new $APP.F(null,"r","r",-471384190),WG=new $APP.F(null,"l","l",1395893423),UG=new $APP.F(null,"h","h",1109658740),RG=new $APP.F(null,"b","b",1482224470),SG=new $APP.F(null,"a","a",
42
- -2123407586),iH=new $APP.F(null,"hex","hex",41691346),HH=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var eH=new $APP.ah(null,new $APP.K(null,2,["inline",null,"popover",null],null),null),ika="value alpha swatches disabled readonly name mode open label".split(" "),gka=$APP.Ag([$APP.zv,$APP.Uu,$APP.cv,$APP.Xp,$APP.Zm,$APP.Ok,$APP.Q,$APP.Gm,fH,$APP.Wu,$APP.Z,gH,$APP.hr,$APP.Jq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.jq,$APP.hj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.hj,!0],null),new $APP.K(null,
43
- 2,[$APP.P,$APP.ij,$APP.W,"disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"mode",$APP.lu,eH],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"swatches"],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"readonly"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.ij,$APP.W,"alpha"],null),new $APP.K(null,2,[$APP.P,$APP.$t,$APP.hj,!0],null),new $APP.K(null,
44
- 2,[$APP.P,$APP.Nt,$APP.hj,!0],null)]);$APP.ne(["x-color-picker-input",new $APP.K(null,2,[$APP.Ni,new $APP.K(null,5,[$APP.Q,$APP.X,UG,$APP.Y,VG,$APP.Y,WG,$APP.Y,SG,$APP.Y],null),$APP.Ur,!1],null),"x-color-picker-change",new $APP.K(null,2,[$APP.Ni,new $APP.K(null,5,[$APP.Q,$APP.X,UG,$APP.Y,VG,$APP.Y,WG,$APP.Y,SG,$APP.Y],null),$APP.Ur,!0],null)]);var OG=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var cka=":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;}"+
2
+ var AG=function(a,b){return $APP.Qj.j($APP.Rj.j(a,0),b)},BG=function(a){return $APP.zd(a,360)},CG=function(a){return AG(a,100)},DG=function(a){return AG(a,1)},FG=function(a){var b=typeof a==="string";a=b?$APP.uh(EG,a.trim()):b;return $APP.D(a)},JG=function(a){if(typeof a==="string")if(a=$APP.uh(EG,a.trim()),$APP.m(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.x(a)){case 3:var b=parseInt(""+$APP.N.i($APP.Cc(a,0))+$APP.N.i($APP.Cc(a,0)),16),c=parseInt(""+$APP.N.i($APP.Cc(a,1))+$APP.N.i($APP.Cc(a,
3
+ 1)),16),d=parseInt(""+$APP.N.i($APP.Cc(a,2))+$APP.N.i($APP.Cc(a,2)),16);return new $APP.K(null,4,[GG,b,$APP.yu,c,HG,d,IG,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.K(null,4,[GG,b,$APP.yu,c,HG,d,IG,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.K(null,4,[GG,b,$APP.yu,c,HG,d,IG,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},Tja=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Rj.o(a,b,$APP.Hc([c])),e=$APP.Qj.o(a,b,$APP.Hc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.K(null,3,[KG,0,LG,0,MG,f*100],null):new $APP.K(null,3,[KG,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,LG,(f>.5?h/(2-d-e):h/(d+e))*100,MG,f*100],null)},NG=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},OG=function(a,b,c){a=BG(a)/360;b=CG(b)/100;c=CG(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.K(null,3,[GG,a,$APP.yu,a,HG,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.K(null,3,[GG,Math.round(NG(c,b,a+1/3)*255),$APP.yu,Math.round(NG(c,b,a)*255),HG,Math.round(NG(c,b,a-1/3)*255)],null)},PG=function(a,b,c){function d(e){e=AG(Math.round(e),255).toString(16);return $APP.x(e)<2?"0"+$APP.N.i(e):e}return"#"+$APP.N.i(d(a))+$APP.N.i(d(b))+$APP.N.i(d(c))},QG=function(a,b,c,d){function e(f){f=AG(Math.round(f),255).toString(16);return $APP.x(f)<2?"0"+$APP.N.i(f):f}
6
+ return"#"+$APP.N.i(e(a))+$APP.N.i(e(b))+$APP.N.i(e(c))+$APP.N.i(e(DG(d)*255))},SG=function(a,b,c){b=CG(b)/100;c=CG(c)/100;b=c+b*$APP.Qj.j(c,1-c);return new $APP.K(null,3,[KG,BG(a),LG,(b===0?0:2*(1-c/b))*100,RG,b*100],null)},TG=function(a,b,c){b=CG(b)/100;c=CG(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Qj.j(b,1-b);return new $APP.K(null,3,[KG,BG(a),LG,c*100,MG,b*100],null)},UG=function(a,b,c){return 100*(AG(a-b,c)/c)},Uja=function(a){return typeof a==="string"&&FG(a)?(a=JG(a),$APP.m(a)?PG(GG.i(a),
7
+ $APP.yu.i(a),HG.i(a)):null):"#000000"},Vja=function(a){return typeof a==="string"&&$APP.jd(VG,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Wja=function(a){return typeof a==="string"&&$APP.ki(a)?$APP.Wf.l($APP.We,$APP.Kj.l($APP.Ne.i($APP.gi),$APP.Se(FG),$APP.Ne.i(function(b){b=JG(b);var c=$APP.G(b);b=$APP.C(c,GG);var d=$APP.C(c,$APP.yu);c=$APP.C(c,HG);return PG(b,d,c)})),$APP.ei(a,/,/)):$APP.We},Xja=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ik);var c=$APP.C(b,$APP.Lu),d=$APP.C(b,$APP.Q),
8
+ e=$APP.C(b,$APP.Gk),f=$APP.C(b,$APP.cj),h=$APP.C(b,$APP.xm),k=$APP.C(b,WG),n=$APP.C(b,$APP.Z),r=$APP.C(b,XG);b=Uja(d);var v=function(){var S=JG(d);return $APP.m(S)?S:JG("#000000")}(),w=$APP.G(v);v=$APP.C(w,GG);var y=$APP.C(w,$APP.yu),A=$APP.C(w,HG);w=$APP.C(w,IG);var E=function(){var S=typeof d==="string";if(S){S=d.trim();var R=$APP.uh(EG,S);return $APP.m(R)?8===$APP.x($APP.Kc($APP.uh(EG,S))):R}return S}();w=$APP.m(E)?w:1;E=Tja(v,y,A);var I=$APP.G(E);E=$APP.C(I,KG);var O=$APP.C(I,LG);I=$APP.C(I,MG);
9
+ f=$APP.ii(f);r=r!=null;c=c!=null;h=Vja(h);return $APP.zg([$APP.am,YG,$APP.Gk,$APP.xm,WG,LG,MG,ZG,KG,$APP.Z,$APP.Xr,$G,$APP.Ik,IG],[f,r,$APP.ki(e)?e:null,h,Wja(k),O,I,b,E,$APP.ki(n)?n:null,$APP.z.j(h,"popover")&&c,r&&w<1?QG(v,y,A,w):b,$APP.D(a),w])},aH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Ik);b=$APP.C(b,$APP.am);return $APP.p(a)&&$APP.p(b)},bH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"role","slider");$APP.U(a,"tabindex","0");$APP.U(a,"aria-label",c);$APP.U(a,"aria-valuemin","0");$APP.U(a,
10
+ "aria-valuemax",d)},cH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"type","button");$APP.U(a,"aria-label",c);a.innerHTML=d},dH=function(a){return Xja($APP.zg([$APP.Lu,$APP.Gk,$APP.Q,$APP.cj,$APP.xm,WG,$APP.Z,XG,$APP.Ik],[a.getAttribute("open"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha"),$APP.Ej(a)]))},eH=function(a,b){var c=$G.i(b),d=KG.i(b),e=LG.i(b),f=MG.i(b);b=IG.i(b);
11
+ return $APP.Ri(a,"x-color-picker-input",$APP.Im(new $APP.K(null,5,[$APP.Q,c,KG,d,LG,e,MG,f,IG,b],null)))},fH=function(a,b){var c=$G.i(b),d=KG.i(b),e=LG.i(b),f=MG.i(b);b=IG.i(b);return $APP.Ti(a,"x-color-picker-change",$APP.Im(new $APP.K(null,5,[$APP.Q,c,KG,d,LG,e,MG,f,IG,b],null)))},gH=function(a,b,c,d,e,f){b=OG(b,c,d);d=$APP.G(b);b=$APP.C(d,GG);c=$APP.C(d,$APP.yu);d=$APP.C(d,HG);e=$APP.m($APP.m(f)?e<1:f)?QG(b,c,d,e):PG(b,c,d);$APP.U(a,"value",e)},Yja=function(a,b,c,d){if($APP.M.j($APP.l(a,"__xColorPickerSwatchesCache"),
12
+ c)){$APP.T(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.U(k,"part","swatch");$APP.U(k,"type","button");$APP.U(k,"role","option");$APP.U(k,"aria-label",h);$APP.U(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.ed(a)?(e=$APP.Hb(a),a=$APP.Ib(a),c=e,e=$APP.x(e)):(c=$APP.t(a),e=document.createElement("button"),$APP.U(e,"part","swatch"),$APP.U(e,"type","button"),
13
+ $APP.U(e,"role","option"),$APP.U(e,"aria-label",c),$APP.U(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.u(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(n){return $APP.U(n,"aria-selected",$APP.z.j(n.getAttribute("data-color"),d)?"true":"false")})},hH=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=dH(a);if($APP.M.j($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");if($APP.m(c)){var d=$APP.l(c,"area"),
14
+ e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),n=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),v=$APP.C(r,KG);r=$APP.C(r,$APP.xm);$APP.U(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.N.i(Math.round(v)));r=$APP.G(b);var w=$APP.C(r,KG),y=$APP.C(r,LG),A=$APP.C(r,MG);v=$APP.C(r,IG);r=$APP.C(r,$APP.Z);y=SG(w,y,A);var E=$APP.G(y);y=$APP.C(E,LG);E=$APP.C(E,RG);E=new $APP.K(null,2,[$APP.wu,CG(y),$APP.vu,100-CG(E)],null);
15
+ d.style.setProperty("--_x-cp-area-x",""+$APP.N.i($APP.wu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.vu.i(E).toFixed(2))+"%");w="Hue "+$APP.N.i(Math.round(w))+", Saturation "+$APP.N.i(Math.round(y))+"%, Lightness "+$APP.N.i(Math.round(A))+"%";v=v<1?""+$APP.N.i(w)+", Opacity "+$APP.N.i(Math.round(v*100))+"%":w;$APP.U(d,"aria-valuetext",v);$APP.m(r)&&$APP.U(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,KG);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((BG(d)/360*100).toFixed(2))+
16
+ "%");$APP.U(e,"aria-valuenow",""+$APP.N.i(Math.round(d)));w=$APP.G(b);e=$APP.C(w,KG);d=$APP.C(w,LG);v=$APP.C(w,MG);r=$APP.C(w,IG);w=$APP.C(w,YG);$APP.m(w)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.N.i(Math.round(e))+","+$APP.N.i(Math.round(d))+"%,"+$APP.N.i(Math.round(v))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.N.i((DG(r)*100).toFixed(2))+"%"),$APP.U(f,"aria-valuenow",""+$APP.N.i(Math.round(r*100)))):f.style.display="none";w=$APP.G(b);e=$APP.C(w,KG);d=
17
+ $APP.C(w,LG);v=$APP.C(w,MG);f=$APP.C(w,IG);r=$APP.C(w,ZG);w=$APP.C(w,YG);$APP.m(w)?(e=OG(e,d,v),v=$APP.G(e),e=$APP.C(v,GG),d=$APP.C(v,$APP.yu),v=$APP.C(v,HG),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,$G);k=$APP.C(f,$APP.Ik);f=$APP.C(f,$APP.am);a.shadowRoot.activeElement!==n&&(n.value=h);n.disabled=$APP.m(k)?k:f;Yja(a,c,WG.i(b),ZG.i(b));n=$APP.G(b);n=$APP.C(n,$G);c=$APP.l(a,"__xColorPickerInternals");
18
+ $APP.m(c)&&c.setFormValue(n);a=$APP.T(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},jH=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=UG(b.clientX,c.left,c.width);a=UG(a,d,e);return new $APP.K(null,2,[iH,CG(b),$APP.Ro,100-CG(a)],null)},kH=function(a,b){a=a.getBoundingClientRect();b=UG(b.clientX,a.left,a.width);return CG(b)/100*360},lH=function(a,b){a=a.getBoundingClientRect();b=UG(b.clientX,a.left,a.width);return CG(b)/100},$ja=function(a,
19
+ b){var c=dH(a);if(aH(c)&&$APP.jd(Zja,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=SG(KG.i(c),LG.i(c),MG.i(c)),f=function(){switch(b.key){case "ArrowRight":return CG(LG.i(e)+d);case "ArrowLeft":return CG(LG.i(e)-d);default:return LG.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return CG(RG.i(e)+d);case "ArrowDown":return CG(RG.i(e)-d);default:return RG.i(e)}}();f=TG(KG.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,KG);h=$APP.C(k,LG);k=$APP.C(k,MG);gH(a,f,h,k,IG.i(c),YG.i(c));eH(a,dH(a));
20
+ return fH(a,dH(a))}return null},aka=function(a,b){var c=dH(a);if(aH(c)&&$APP.jd(mH,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return BG(KG.i(c)+d);case "ArrowLeft":return BG(KG.i(c)-d);case "Home":return 0;case "End":return 360;default:return KG.i(c)}}();gH(a,e,LG.i(c),MG.i(c),IG.i(c),YG.i(c));eH(a,dH(a));return fH(a,dH(a))}return null},bka=function(a,b){var c=dH(a);if($APP.m(function(){var f=aH(c);return f?(f=YG.i(c),$APP.m(f)?$APP.jd(mH,
21
+ b.key):f):f}())){b.preventDefault();var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return DG(IG.i(c)+d);case "ArrowLeft":return DG(IG.i(c)-d);case "Home":return 0;case "End":return 1;default:return IG.i(c)}}();gH(a,KG.i(c),LG.i(c),MG.i(c),e,!0);eH(a,dH(a));return fH(a,dH(a))}return null},cka=function(a){var b=dH(a);return aH(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.U(a,"value",c.sRGBHex);return fH(a,dH(a))}).catch(function(){return null}):
22
+ null},dka=function(a){if($APP.m(a.hasAttribute("open")))return null;$APP.U(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.m(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},nH=function(a){return $APP.m(a.hasAttribute("open"))?($APP.V(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.m(a)?$APP.l(a,"trigger").focus():null):null},eka=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:nH(a):null},
23
+ fka=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=dH(a);b=jH($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,iH);d=$APP.C(d,$APP.Ro);b=TG(KG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,KG);d=$APP.C(e,LG);e=$APP.C(e,MG);gH(a,b,d,e,IG.i(c),YG.i(c));c=eH(a,dH(a))}else c=null;return c},copy:function(){var b=dH(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText($G.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
+ b.key)&&$APP.z.j("popover",$APP.xm.i(dH(a)))?(b.preventDefault(),b.stopPropagation(),b=nH(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.T(a,"__xColorPickerDragging",null);var b=fH(a,dH(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.T(a,"__xColorPickerDragging",null);var b=fH(a,dH(a))}else b=null;return b},"alpha-key":function(b){return bka(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
+ $APP.l(a,"__xColorPickerDragging"))){var c=dH(a);b=lH($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);gH(a,KG.i(c),LG.i(c),MG.i(c),b,!0);c=eH(a,dH(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=dH(a);if(aH(d)){if(FG(c)){$APP.U(a,"value",c);b=fH(a,dH(a));break a}b=b.value=$G.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=dH(a);if(aH(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=
26
+ b.getAttribute("data-color");$APP.U(a,"value",b);b=fH(a,dH(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.T(a,"__xColorPickerDragging",null);var b=fH(a,dH(a))}else b=null;return b},"alpha-down":function(b){var c=dH(a);var d=(d=aH(c))?YG.i(c):d;$APP.m(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.T(a,"__xColorPickerDragging","alpha"),b=lH(d,b),gH(a,KG.i(c),LG.i(c),MG.i(c),
27
+ b,!0),c=eH(a,dH(a))):c=null;return c},"area-key":function(b){return $ja(a,b)},"hue-down":function(b){var c=dH(a);if(aH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.T(a,"__xColorPickerDragging","hue");b=kH(d,b);gH(a,b,LG.i(c),MG.i(c),IG.i(c),YG.i(c));c=eH(a,dH(a))}else c=null;return c},"hue-key":function(b){return aka(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=dH(a);b=kH($APP.l($APP.l(a,
28
+ "__xColorPickerRefs"),"hue-strip"),b);gH(a,b,LG.i(c),MG.i(c),IG.i(c),YG.i(c));c=eH(a,dH(a))}else c=null;return c},eyedrop:function(){return cka(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=dH(a);return $APP.z.j("popover",$APP.xm.i(b))&&$APP.p($APP.Ik.i(b))?$APP.m($APP.Xr.i(b))?nH(a):dka(a):null},"doc-click":function(b){return eka(a,b)},"area-down":function(b){var c=dH(a);if(aH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
+ $APP.T(a,"__xColorPickerDragging","area");b=jH(d,b);d=$APP.G(b);b=$APP.C(d,iH);d=$APP.C(d,$APP.Ro);b=TG(KG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,KG);d=$APP.C(e,LG);e=$APP.C(e,MG);gH(a,b,d,e,IG.i(c),YG.i(c));c=eH(a,dH(a))}else c=null;return c}}},pH=function(a,b){return $APP.z.j(b,oH)?document:$APP.l(a,b)},rH=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.m($APP.m(b)?c:b)){for(var d=$APP.q(qH),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),n=$APP.B(k,0,null),
30
+ r=$APP.B(k,1,null),v=$APP.B(k,2,null);k=$APP.B(k,3,null);pH(b,n).removeEventListener(r,$APP.l(c,v),k);h+=1}else if(d=$APP.q(d))$APP.ed(d)?(f=$APP.Hb(d),d=$APP.Ib(d),e=f,f=$APP.x(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),h=$APP.B(n,2,null),n=$APP.B(n,3,null),pH(b,e).removeEventListener(f,$APP.l(c,h),n),d=$APP.u(d),e=null,f=0),h=0;else break;return $APP.T(a,"__xColorPickerHandlers",null)}return null},gka=function(a){$APP.U(a,"value","#000000");return hH(a)},ika=function(a){if(!$APP.m($APP.l(a,
31
+ "__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.U(f,"part","trigger");$APP.U(f,"type","button");$APP.U(f,"aria-label","Pick color");$APP.U(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.K(null,2,[$APP.rt,f,sH,h],null);h=document.createElement("div");var k=document.createElement("div");$APP.U(h,"part",
32
+ "area");$APP.U(h,"role","slider");$APP.U(h,"tabindex","0");$APP.U(h,"aria-label","Color");$APP.U(k,"part","area-thumb");h.appendChild(k);h=new $APP.K(null,2,[tH,h,uH,k],null);k=document.createElement("div");var n=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),w=document.createElement("div"),y=document.createElement("div");$APP.U(k,"part","strips");bH(n,"hue-strip","Hue","360");bH(v,"alpha-strip","Opacity","100");$APP.U(r,"part","hue-thumb");$APP.U(w,
33
+ "part","alpha-gradient");$APP.U(y,"part","alpha-thumb");n.appendChild(r);v.appendChild(w);v.appendChild(y);k.appendChild(n);k.appendChild(v);k=new $APP.K(null,6,[vH,k,wH,n,xH,r,yH,v,zH,w,AH,y],null);n=document.createElement("div");r=document.createElement("div");v=document.createElement("span");w=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.U(n,"part","controls");$APP.U(r,"part","preview");$APP.U(v,"part","preview-color");$APP.U(w,
34
+ "part","hex-input");$APP.U(w,"type","text");$APP.U(w,"spellcheck","false");$APP.U(w,"autocomplete","off");$APP.U(w,"aria-label","Hex color value");cH(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
+ cH(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(v);n.appendChild(r);n.appendChild(w);
36
+ n.appendChild(y);n.appendChild(A);n=new $APP.K(null,6,[$APP.Rr,n,BH,r,CH,v,DH,w,EH,y,$APP.Zr,A],null);r=document.createElement("div");$APP.U(r,"part","swatches");$APP.U(r,"role","listbox");$APP.U(r,"aria-label","Preset colors");r=new $APP.K(null,1,[WG,r],null);c.textContent=hka;$APP.U(d,"part","container");$APP.U(e,"part","panel");e.appendChild(tH.i(h));e.appendChild(vH.i(k));e.appendChild($APP.Rr.i(n));e.appendChild(WG.i(r));d.appendChild($APP.rt.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);
37
+ b={"alpha-thumb":AH.i(k),copy:$APP.Zr.i(n),swatches:WG.i(r),"hue-strip":wH.i(k),controls:$APP.Rr.i(n),"alpha-gradient":zH.i(k),panel:e,preview:BH.i(n),"area-thumb":uH.i(h),"preview-color":CH.i(n),container:d,area:tH.i(h),"hue-thumb":xH.i(k),"trigger-swatch":sH.i(f),trigger:$APP.rt.i(f),"alpha-strip":yH.i(k),eyedropper:EH.i(n),"hex-input":DH.i(n)};$APP.T(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.T(a,"__xColorPickerInternals",a.attachInternals())}rH(a);b=$APP.l(a,"__xColorPickerRefs");
38
+ if($APP.m(b)){c=fka(a);d=$APP.q(qH);e=null;for(h=f=0;;)if(h<f)v=e.C(null,h),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),pH(b,k).addEventListener(n,$APP.l(c,r),v),h+=1;else if(d=$APP.q(d))$APP.ed(d)?(f=$APP.Hb(d),d=$APP.Ib(d),e=f,f=$APP.x(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),pH(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.u(d),e=null,f=0),h=0;else break;$APP.T(a,"__xColorPickerHandlers",c)}return hH(a)},jka=function(a){return rH(a)},
39
+ kka=function(a,b,c,d){return $APP.M.j(c,d)?hH(a):null},mka=function(a){$APP.Hj(a,"__xColorPickerInternals");return $APP.fj(a,lka)},FH=function(){return $APP.uj("x-color-picker",new $APP.K(null,7,[$APP.mj,nka,$APP.nj,ika,$APP.oj,jka,$APP.pj,kka,$APP.qj,!0,$APP.rj,gka,$APP.sj,mka],null))},zH=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),AH=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),CH=new $APP.F(null,"preview-color","preview-color",1405210195),yH=new $APP.F(null,"alpha-strip",
40
+ "alpha-strip",1085401595),uH=new $APP.F(null,"area-thumb","area-thumb",1471343090),YG=new $APP.F(null,"alpha?","alpha?",1329751525),iH=new $APP.F(null,"sat","sat",1064662667),sH=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),oH=new $APP.F(null,"document","document",-1329188687),EH=new $APP.F(null,"eyedropper","eyedropper",-1786107588),tH=new $APP.F(null,"area","area",472007256),XG=new $APP.F(null,"alpha","alpha",-1574982441),$G=new $APP.F(null,"hex-full","hex-full",-1466644518),DH=new $APP.F(null,
41
+ "hex-input","hex-input",1497535517),BH=new $APP.F(null,"preview","preview",451279890),wH=new $APP.F(null,"hue-strip","hue-strip",938856876),WG=new $APP.F(null,"swatches","swatches",2033601707),vH=new $APP.F(null,"strips","strips",-1564791997),RG=new $APP.F(null,"v","v",21465059),LG=new $APP.F(null,"s","s",1705939918),GG=new $APP.F(null,"r","r",-471384190),MG=new $APP.F(null,"l","l",1395893423),KG=new $APP.F(null,"h","h",1109658740),HG=new $APP.F(null,"b","b",1482224470),IG=new $APP.F(null,"a","a",
42
+ -2123407586),ZG=new $APP.F(null,"hex","hex",41691346),xH=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var VG=new $APP.Yg(null,new $APP.K(null,2,["inline",null,"popover",null],null),null),nka="value alpha swatches disabled readonly name mode open label".split(" "),lka=$APP.zg([$APP.qv,$APP.Lu,$APP.Uu,$APP.Op,$APP.Qm,$APP.Gk,$APP.Q,$APP.xm,WG,$APP.Nu,$APP.Z,XG,$APP.Zq,$APP.Aq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.aq,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.cj,!0],null),new $APP.K(null,
43
+ 2,[$APP.P,$APP.dj,$APP.W,"disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"mode",$APP.cu,VG],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"swatches"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"readonly"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"alpha"],null),new $APP.K(null,2,[$APP.P,$APP.Rt,$APP.cj,!0],null),new $APP.K(null,
44
+ 2,[$APP.P,$APP.Et,$APP.cj,!0],null)]);$APP.me(["x-color-picker-input",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,5,[$APP.Q,$APP.X,KG,$APP.Y,LG,$APP.Y,MG,$APP.Y,IG,$APP.Y],null),$APP.wr,!1],null),"x-color-picker-change",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,5,[$APP.Q,$APP.X,KG,$APP.Y,LG,$APP.Y,MG,$APP.Y,IG,$APP.Y],null),$APP.wr,!0],null)]);var EG=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var hka=":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;}"+
45
45
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@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:var(--x-border-width,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:var(--x-z-dropdown,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:var(--x-shadow-sm,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:var(--x-shadow-sm,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:var(--x-border-width,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:var(--x-border-width,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:var(--x-color-surface-active,rgba(0,0,0,0.06));}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:var(--x-color-surface-active,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:var(--x-radius-sm,4px);cursor:pointer;border:var(--x-border-width,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;}}",
46
- Uja=new $APP.ah(null,new $APP.K(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),wH=new $APP.ah(null,new $APP.K(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),AH=new $APP.H(null,20,5,$APP.J,[new $APP.H(null,4,5,$APP.J,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.J,["area",
46
+ Zja=new $APP.Yg(null,new $APP.K(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),mH=new $APP.Yg(null,new $APP.K(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),qH=new $APP.H(null,20,5,$APP.J,[new $APP.H(null,4,5,$APP.J,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.J,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.J,["area",
47
47
  "keydown","area-key",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","pointerdown","hue-down",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","pointermove","hue-move",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","pointerup","hue-up",!1],null),new $APP.H(null,4,5,$APP.J,["hue-strip","keydown","hue-key",!1],null),new $APP.H(null,4,5,$APP.J,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.H(null,4,5,$APP.J,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.H(null,4,5,$APP.J,
48
48
  ["alpha-strip","pointerup","alpha-up",!1],null),new $APP.H(null,4,5,$APP.J,["alpha-strip","keydown","alpha-key",!1],null),new $APP.H(null,4,5,$APP.J,["hex-input","keydown","hex-key",!1],null),new $APP.H(null,4,5,$APP.J,["swatches","click","swatch",!1],null),new $APP.H(null,4,5,$APP.J,["eyedropper","click","eyedrop",!1],null),new $APP.H(null,4,5,$APP.J,["copy","click","copy",!1],null),new $APP.H(null,4,5,$APP.J,["trigger","click","trigger",!1],null),new $APP.H(null,4,5,$APP.J,["panel","keydown","panel-key",
49
- !1],null),new $APP.H(null,4,5,$APP.J,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.J,[yH,"pointerdown","doc-click",!0],null)],null);$APP.ha("baredom.exports.x_color_picker.init",PH);export const init=PH;
49
+ !1],null),new $APP.H(null,4,5,$APP.J,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.J,[oH,"pointerdown","doc-click",!0],null)],null);$APP.ha("baredom.exports.x_color_picker.init",FH);export const init=FH;