@vanelsas/baredom 4.5.0 → 4.6.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 (118) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/custom-elements.json +60 -1
  3. package/dist/all.d.ts +4 -0
  4. package/dist/all.js +222 -0
  5. package/dist/baredom.d.ts +1 -0
  6. package/dist/baremirror-alpha.js +27 -28
  7. package/dist/base.js +691 -673
  8. package/dist/integrity.json +113 -112
  9. package/dist/x-alert.js +17 -17
  10. package/dist/x-avatar-group.js +10 -10
  11. package/dist/x-avatar.js +14 -14
  12. package/dist/x-badge.js +9 -9
  13. package/dist/x-bento-grid.js +6 -6
  14. package/dist/x-bento-item.js +4 -4
  15. package/dist/x-breadcrumbs.js +18 -16
  16. package/dist/x-button.js +1 -1
  17. package/dist/x-calendar.js +41 -41
  18. package/dist/x-cancel-dialogue.js +16 -16
  19. package/dist/x-card.js +7 -7
  20. package/dist/x-carousel.js +37 -35
  21. package/dist/x-chart.js +48 -48
  22. package/dist/x-checkbox.js +1 -1
  23. package/dist/x-chip.js +1 -1
  24. package/dist/x-code.js +31 -31
  25. package/dist/x-collapse.js +11 -11
  26. package/dist/x-color-picker.js +47 -47
  27. package/dist/x-combobox.js +35 -35
  28. package/dist/x-command-palette.js +31 -31
  29. package/dist/x-confetti.js +24 -24
  30. package/dist/x-container.js +6 -6
  31. package/dist/x-context-menu.js +19 -19
  32. package/dist/x-copy.js +1 -1
  33. package/dist/x-currency-field.js +25 -25
  34. package/dist/x-date-picker.js +45 -45
  35. package/dist/x-divider.js +8 -8
  36. package/dist/x-drag-panel.js +33 -33
  37. package/dist/x-drawer.js +12 -12
  38. package/dist/x-drop-zone.js +11 -11
  39. package/dist/x-dropdown.js +12 -12
  40. package/dist/x-fieldset.js +6 -6
  41. package/dist/x-file-download.js +15 -15
  42. package/dist/x-file-upload.js +26 -26
  43. package/dist/x-floating-panel.js +23 -23
  44. package/dist/x-form-field.js +18 -18
  45. package/dist/x-form.js +10 -10
  46. package/dist/x-gaussian-blur.js +13 -13
  47. package/dist/x-grid.js +8 -8
  48. package/dist/x-i18n-provider.js +7 -7
  49. package/dist/x-i18n.js +4 -4
  50. package/dist/x-icon.js +7 -7
  51. package/dist/x-image.js +19 -19
  52. package/dist/x-kbd.js +16 -16
  53. package/dist/x-kinetic-canvas.js +25 -25
  54. package/dist/x-kinetic-font.js +26 -26
  55. package/dist/x-kinetic-typography.js +34 -34
  56. package/dist/x-liquid-dock.js +31 -31
  57. package/dist/x-liquid-fill.js +39 -39
  58. package/dist/x-liquid-glass.js +32 -32
  59. package/dist/x-menu-item.js +9 -9
  60. package/dist/x-menu.js +10 -10
  61. package/dist/x-metaball-cursor.js +26 -26
  62. package/dist/x-modal.js +13 -13
  63. package/dist/x-morph-stack.js +38 -38
  64. package/dist/x-multi-combobox.js +41 -41
  65. package/dist/x-navbar.js +15 -15
  66. package/dist/x-neural-glow.js +29 -29
  67. package/dist/x-notification-center.js +9 -9
  68. package/dist/x-organic-divider.js +18 -18
  69. package/dist/x-organic-progress.js +35 -35
  70. package/dist/x-organic-shape.js +12 -12
  71. package/dist/x-otp-input.js +22 -22
  72. package/dist/x-pagination.js +18 -16
  73. package/dist/x-particle-button.js +55 -54
  74. package/dist/x-popover.js +28 -28
  75. package/dist/x-progress-circle.js +8 -8
  76. package/dist/x-progress.js +8 -8
  77. package/dist/x-proximity-list.js +20 -20
  78. package/dist/x-radio.js +14 -13
  79. package/dist/x-range-slider.js +30 -30
  80. package/dist/x-rating.js +23 -23
  81. package/dist/x-ripple-effect.js +10 -10
  82. package/dist/x-scroll-parallax.js +17 -17
  83. package/dist/x-scroll-stack.js +17 -17
  84. package/dist/x-scroll-story.js +34 -32
  85. package/dist/x-scroll-timeline.js +50 -46
  86. package/dist/x-scroll.js +38 -38
  87. package/dist/x-search-field.js +1 -1
  88. package/dist/x-select.js +1 -1
  89. package/dist/x-sidebar.js +17 -17
  90. package/dist/x-skeleton-group.js +14 -13
  91. package/dist/x-skeleton.js +1 -1
  92. package/dist/x-slider.js +17 -17
  93. package/dist/x-soft-body.js +18 -18
  94. package/dist/x-spacer.js +4 -4
  95. package/dist/x-spinner.js +4 -4
  96. package/dist/x-splash.js +13 -13
  97. package/dist/x-split-pane.js +15 -15
  98. package/dist/x-spotlight-card.js +12 -12
  99. package/dist/x-stat.js +10 -10
  100. package/dist/x-stepper.js +15 -15
  101. package/dist/x-switch.js +12 -12
  102. package/dist/x-tab.js +7 -9
  103. package/dist/x-table-cell.js +20 -20
  104. package/dist/x-table-row.js +9 -9
  105. package/dist/x-table.js +14 -14
  106. package/dist/x-tabs.js +11 -11
  107. package/dist/x-text-area.js +20 -20
  108. package/dist/x-theme.js +26 -26
  109. package/dist/x-timeline-item.js +21 -21
  110. package/dist/x-timeline.js +9 -8
  111. package/dist/x-toast.js +22 -22
  112. package/dist/x-toaster.js +6 -6
  113. package/dist/x-tooltip.js +14 -13
  114. package/dist/x-trace-history.d.ts +5 -0
  115. package/dist/x-trace-history.js +116 -116
  116. package/dist/x-typography.js +6 -6
  117. package/dist/x-welcome-tour.js +64 -62
  118. package/package.json +7 -2
package/dist/x-code.js CHANGED
@@ -1,33 +1,33 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var H0=function(a){return $APP.Oc(Lwa,typeof a==="string"?a.trim().toLowerCase():null,"text")},I0=function(a){return $APP.z.j("",a.trim())},Mwa=function(a){return $APP.x($APP.vh(/^[\t ]*/,a))},Nwa=function(a){var b=$APP.qf(a.split("\n")),c=$APP.Ve(I0,b),d=$APP.q(c)?$APP.ud($APP.Rj,$APP.Ne.j(Mwa,c)):0;return d>0?$APP.di("\n",$APP.Ne.j(function(e){return $APP.x(e)>=d?e.substring(d):e},b)):a},Owa=function(a){var b=$APP.qf(a.split("\n")),c=$APP.x(b),d=function(){for(var e=0;;)if(e<c&&I0($APP.Cc(b,e)))e+=
3
- 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&I0($APP.Cc(b,e)))--e;else return e}();return d<=a?$APP.di("\n",$APP.wf(null,b,d|0,a+1|0,null)):""},J0=function(a){return typeof a==="string"?Nwa(Owa($APP.ci(a,/\r\n?/,"\n"))):""},K0=function(a){return new RegExp($APP.fe($APP.N,a))},S0=function(a){return new $APP.K(null,2,[$APP.br,$APP.di("|",$APP.Ne.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.N.i(b.source)+")"},a)),R0,$APP.pi.j($APP.t,a)],null)},Pwa=function(a){a=$APP.q(a);
4
- for(var b=$APP.We,c=$APP.We;;){if(a==null)return $APP.Gd.j(c,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,
5
- 1,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[E,I],null)],null)}}(a,b,c,d,e,f,h,k),$APP.wf(null,h,1,k-1|0,null)));a=n;b=r}}},T0=function(a){var b=a.getAttribute("code");if($APP.m(b))return b;a=a.textContent;return $APP.m(a)?a:""},V0=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(U0,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.N.i($APP.gh(b));c.textContent=a;return c},W0=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),
6
- e=document.createElement("span");$APP.U(c,"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(V0(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(V0(a)),a=$APP.u(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);
7
- return c},m1=function(a){if($APP.m($APP.l(a,"__xCodeRefs"))){var b=T0(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.m(d)?$APP.z.j(J0(b),X0.i(d))&&$APP.z.j(H0(c),Y0.i(d)):d;b=$APP.zg([$APP.Os,Z0,$0,a1,b1,c1,d1,e1,f1],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.m(e)?$0.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,d1);b=$APP.C(e,e1);c=$APP.C(e,f1);var h=
8
- $APP.C(e,$APP.Os),k=$APP.C(e,Z0),n=$APP.C(e,$0);d=$APP.C(e,a1);var r=$APP.C(e,b1);e=$APP.C(e,c1);c=H0(c);e=J0(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;if(!$APP.m(n)){n=""+$APP.N.i(e);var v=g1.i?g1.i(c):g1.call(null,c);v=$APP.G(v);var w=$APP.C(v,$APP.br);v=$APP.C(v,R0);if($APP.z.j("",n))n=$APP.We;else if($APP.m(w))a:{w=new RegExp(w,"g");for(var y=$APP.x(v),A=$APP.x(n),E=$APP.zb($APP.We),I=
9
- 0;;){var O=w.exec(n);if(O==null){n=$APP.Xd(I<A?$APP.Yd(E,new $APP.H(null,2,5,$APP.J,[U0,n.substring(I)],null)):E);break a}var S=O[0],R=O.index;b:{for(var ca=1;;){if(ca>y){O=1;break b}if(O[ca]!=null){O=ca;break b}ca+=1}O=void 0}O=$APP.Cc(v,O-1);ca=R>I?new $APP.H(null,2,5,$APP.J,[U0,n.substring(I,R)],null):null;R+=S.length;S.length===0&&(w.lastIndex+=1);$APP.z.j(U0,O)||(E=$APP.m(ca)?$APP.Ab(E,ca):E,S=$APP.Yd(E,new $APP.H(null,2,5,$APP.J,[O,S],null)),I=R,E=S)}n=void 0}else n=new $APP.H(null,1,5,$APP.J,
10
- [new $APP.H(null,2,5,$APP.J,[U0,n],null)],null);n=Pwa(n)}v=$APP.x(n);f=$APP.D(f);k=$APP.D(k);w=f||$APP.M.j("",h);d=$APP.D(d);b=$APP.D(b);y=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.zg([Z0,$0,h1,i1,$APP.nr,a1,Y0,X0,d1,e1,j1,k1,l1],[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(l1.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.N.i($APP.Sj.j(2,(""+$APP.N.i(k1.i(b))).length)));k=$APP.l(a,"__xCodeRefs");c=
11
- $APP.l(k,"filename");d=$APP.l(k,"lang");e=$APP.l(k,"cwrap");k=$APP.l(k,"copy");h=$APP.M.j("",$APP.nr.i(b));f=!h&&$APP.M.j("",j1.i(b));$APP.Ei(a,"data-header",h1.i(b));c.textContent=$APP.nr.i(b);c.style.display=h?"block":"none";d.textContent=j1.i(b);d.style.display=f?"block":"none";e.style.display=$APP.m(d1.i(b))?"inline-flex":"none";$APP.U(k,"text",X0.i(b));c=$APP.l(a,"__xCodeModel");if($APP.M.j($APP.Wg(b,new $APP.H(null,2,5,$APP.J,[X0,Y0],null)),$APP.Wg(c,new $APP.H(null,2,5,$APP.J,[X0,Y0],null)))){c=
12
- $APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.De($APP.Jo,$0.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(W0(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(W0(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=i1.i(b);d=$APP.m(e)?
13
- $APP.p(Z0.i(b)):e;$APP.Ei(a,"data-collapsible",e);$APP.Ei(a,"data-collapsed",d);$APP.m(d)?(k=$APP.G(b),e=$APP.C(k,k1),k=$APP.C(k,l1),e=$APP.Sj.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.nr.i(b))?$APP.nr.i(b):$APP.M.j("",j1.i(b))?""+$APP.N.i(j1.i(b))+" code":"Code";$APP.U(c,"aria-label",d);a=$APP.T(a,"__xCodeModel",b)}else a=
14
- null;return a}return null},Rwa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Qwa),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,ca,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,
15
- 2,null);var y=$APP.l(b,k);y.addEventListener(n,function(A,E,I,O,S,R,ca,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},Swa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.m(b))return b;b=new MutationObserver(function(){return m1(a)});$APP.T(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Twa=function(a){$APP.$i(a,"language","language","");$APP.$i(a,"filename",
16
- "filename","");$APP.Xi(a,"showCopy","show-copy");$APP.Xi(a,"lineNumbers","line-numbers");$APP.Xi(a,"wrap","wrap");$APP.Xi(a,"expanded","expanded");$APP.bj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return T0(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")}})},Xwa=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.Mp,e,$APP.nr,f,n1,h,o1,k,$APP.$r,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.Op,f,$APP.It,h,Uwa,k,X0,n,Vwa,r],null);h=document.createElement("button");$APP.U(h,"part","expander");$APP.U(h,"type","button");c.textContent=Wwa;$APP.U(d,"part","container");d.appendChild($APP.Mp.i(e));d.appendChild($APP.Op.i(f));d.appendChild(h);b.appendChild(c);
20
- b.appendChild(d);$APP.T(a,"__xCodeRefs",{filename:$APP.nr.i(e),lang:n1.i(e),cwrap:o1.i(e),copy:$APP.$r.i(e),scroll:$APP.It.i(f),code:X0.i(f),expander:h});Rwa(a)}Swa(a);return m1(a)},Ywa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.m(a)?a.disconnect():null},Zwa=function(a,b,c,d){return $APP.M.j(c,d)?m1(a):null},p1=function(){$APP.Om();return $APP.vj("x-code",new $APP.K(null,5,[$APP.nj,$wa,$APP.oj,Xwa,$APP.pj,Ywa,$APP.qj,Zwa,$APP.tj,Twa],null))},U0=new $APP.F(null,"plain","plain",1368629269),
21
- c1=new $APP.F(null,"code-raw","code-raw",1397705045),axa=new $APP.F(null,"attr-value","attr-value",2093232352),a1=new $APP.F(null,"wrap?","wrap?",-1677427054),o1=new $APP.F(null,"cwrap","cwrap",-648244090),R0=new $APP.F(null,"types","types",590030639),bxa=new $APP.F(null,"expanded","expanded",-3020742),Y0=new $APP.F(null,"language","language",-1591107564),d1=new $APP.F(null,"show-copy?","show-copy?",604953882),q1=new $APP.F(null,"keyword","keyword",811389747),X0=new $APP.F(null,"code","code",1586293142),
22
- f1=new $APP.F(null,"language-raw","language-raw",-402825953),e1=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),cxa=new $APP.F(null,"entity","entity",-450970276),r1=new $APP.F(null,"punct","punct",1807261997),b1=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),n1=new $APP.F(null,"lang","lang",-1819677104),$0=new $APP.F(null,"lines","lines",-700165781),dxa=new $APP.F(null,"property","property",-1114278232),h1=new $APP.F(null,"header?","header?",-106649173),s1=new $APP.F(null,
23
- "comment","comment",532206069),t1=new $APP.F(null,"string","string",-1989541586),exa=new $APP.F(null,"atrule","atrule",-521152778),Z0=new $APP.F(null,"expanded?","expanded?",2055832296),i1=new $APP.F(null,"collapsible?","collapsible?",-1508197779),l1=new $APP.F(null,"max-lines","max-lines",-125998785),Vwa=new $APP.F(null,"fade","fade",1167694157),j1=new $APP.F(null,"language-label","language-label",-733379621),k1=new $APP.F(null,"line-count","line-count",871713181),Uwa=new $APP.F(null,"pre","pre",
24
- 2118456869);var $wa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Lwa=$APP.zg(" json js cljc xml clojure mjs cljs css clj svg jsx htm text plain txt javascript bb html edn".split(" "),"text json js clojure html clojure js clojure css clojure html js html text text text js clojure html clojure".split(" "));
25
- $APP.me(["x-code-copy",new $APP.K(null,2,[$APP.xr,!1,$APP.Pi,new $APP.K(null,1,[X0,$APP.X],null)],null),"x-code-toggle",new $APP.K(null,2,[$APP.xr,!1,$APP.Pi,new $APP.K(null,1,[bxa,$APP.ej],null)],null)]);
26
- var fxa=new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[s1,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.H(null,2,5,$APP.J,[$APP.ov,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.H(null,2,5,$APP.J,[t1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.J,[q1,/\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/],null),
27
- new $APP.H(null,2,5,$APP.J,[$APP.Yo,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.J,[r1,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null),gxa=new $APP.H(null,5,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[$APP.ri,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.H(null,2,5,$APP.J,[t1,/"(?:[^"\\]|\\.)*"/],null),new $APP.H(null,2,5,$APP.J,[$APP.Yo,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.J,[q1,/\b(?:true|false|null)\b/],null),new $APP.H(null,
28
- 2,5,$APP.J,[r1,/[{}\[\]:,]/],null)],null),hxa=new $APP.H(null,6,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[s1,/\/\*[\s\S]*?\*\//],null),new $APP.H(null,2,5,$APP.J,[t1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.J,[exa,/@[\w-]+/],null),new $APP.H(null,2,5,$APP.J,[dxa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.H(null,2,5,$APP.J,[$APP.Yo,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.H(null,2,5,$APP.J,[r1,/[{}();:,]/],null)],null),ixa=new $APP.H(null,6,5,$APP.J,
29
- [new $APP.H(null,2,5,$APP.J,[s1,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.H(null,2,5,$APP.J,[$APP.it,/<![^>]*>/],null),new $APP.H(null,2,5,$APP.J,[$APP.it,/<\/?[A-Za-z][\w-]*/],null),new $APP.H(null,2,5,$APP.J,[axa,/"[^"]*"|'[^']*'/],null),new $APP.H(null,2,5,$APP.J,[cxa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.H(null,2,5,$APP.J,[r1,/[<>\/=]/],null)],null),jxa=$APP.mf("def defn defn- defmacro defmulti defmethod defonce defprotocol defrecord deftype deftest fn let letfn loop recur do quote var new set! binding if if-not if-let if-some when when-not when-let when-some when-first cond condp case and or not doseq dotimes for while try catch finally throw ns true false nil".split(" "),
30
- !0),u1="(?!"+$APP.N.i("[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]")+")",kxa=new $APP.H(null,7,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[s1,/;[^\n]*/],null),new $APP.H(null,2,5,$APP.J,[t1,/#?"(?:[^"\\]|\\[\s\S])*"|\\(?:newline|space|tab|formfeed|backspace|return|u[0-9a-fA-F]{4}|o[0-7]{1,3}|\S)/],null),new $APP.H(null,2,5,$APP.J,[$APP.ri,K0($APP.Hc(["::?","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","+"]))],null),new $APP.H(null,2,5,$APP.J,[$APP.Yo,K0($APP.Hc(["[+-]?(?:0[xX][0-9a-fA-F]+|\\d+/\\d+|\\d+\\.?\\d*(?:[eE][+-]?\\d+)?)[MN]?",
31
- u1]))],null),new $APP.H(null,2,5,$APP.J,[q1,K0($APP.Hc(["(?:",$APP.di("|",jxa),")",u1]))],null),new $APP.H(null,2,5,$APP.J,[U0,K0($APP.Hc(["[A-Za-z_*+!?\x3c\x3e\x3d.$\x26%-]","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","*"]))],null),new $APP.H(null,2,5,$APP.J,[r1,/[()\[\]{}'`~@^#]/],null)],null),g1=$APP.me(["js",S0(fxa),"json",S0(gxa),"css",S0(hxa),"html",S0(ixa),"clojure",S0(kxa)]);var Wwa=":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 m1=function(a){return $APP.Gc(Jxa,typeof a==="string"?a.trim().toLowerCase():null,"text")},n1=function(a){return $APP.z.j("",a.trim())},Kxa=function(a){return $APP.x($APP.hh(/^[\t ]*/,a))},Lxa=function(a){var b=$APP.ff(a.split("\n")),c=$APP.Le(n1,b),d=$APP.q(c)?$APP.nd($APP.Gj,$APP.De.j(Kxa,c)):0;return d>0?$APP.Gh("\n",$APP.De.j(function(e){return $APP.x(e)>=d?e.substring(d):e},b)):a},Mxa=function(a){var b=$APP.ff(a.split("\n")),c=$APP.x(b),d=function(){for(var e=0;;)if(e<c&&n1($APP.vc(b,e)))e+=
3
+ 1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&n1($APP.vc(b,e)))--e;else return e}();return d<=a?$APP.Gh("\n",$APP.nf(b,d,a+1)):""},o1=function(a){return typeof a==="string"?Lxa(Mxa($APP.Fh(a,/\r\n?/,"\n"))):""},p1=function(a){return new RegExp($APP.Yd($APP.N,a))},r1=function(a){return new $APP.K(null,2,[$APP.gr,$APP.Gh("|",$APP.De.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.N.i(b.source)+")"},a)),q1,$APP.Sh.j($APP.t,a)],null)},Nxa=function(a){a=$APP.q(a);for(var b=
4
+ $APP.Me,c=$APP.Me;;){if(a==null)return $APP.zd.j(c,b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),g=$APP.ff(f.split("\n")),k=$APP.x(g);if($APP.z.j(k,1))a=$APP.u(a),b=$APP.zd.j(b,new $APP.H(null,2,5,$APP.I,[e,f],null));else{var n=$APP.u(a),r=new $APP.H(null,1,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[e,$APP.Nc(g)],null)],null);c=$APP.Hf.j($APP.zd.j(c,$APP.zd.j(b,new $APP.H(null,2,5,$APP.I,[e,$APP.t(g)],null))),$APP.De.j(function(v,w,y,A,E){return function(J){return new $APP.H(null,1,5,$APP.I,
5
+ [new $APP.H(null,2,5,$APP.I,[E,J],null)],null)}}(a,b,c,d,e,f,g,k),$APP.nf(g,1,k-1)));a=n;b=r}}},s1=function(a){var b=a.getAttribute("code");if($APP.m(b))return b;a=a.textContent;return $APP.m(a)?a:""},u1=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(t1,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.N.i($APP.Rg(b));c.textContent=a;return c},v1=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),e=
6
+ document.createElement("span");$APP.U(c,"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,g=0;;)if(g<f){var k=b.C(null,g);$APP.M.j("",$APP.Dc(k))&&e.appendChild(u1(k));g+=1}else if(a=$APP.q(a))b=a,$APP.Xc(b)?(a=$APP.Ab(b),g=$APP.Bb(b),b=a,f=$APP.x(a),a=g):(a=$APP.t(b),$APP.M.j("",$APP.Dc(a))&&e.appendChild(u1(a)),a=$APP.u(b),b=null,f=0),g=0;else break;c.appendChild(d);c.appendChild(e);
7
+ return c},M1=function(a){if($APP.m($APP.l(a,"__xCodeRefs"))){var b=s1(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.m(d)?$APP.z.j(o1(b),w1.i(d))&&$APP.z.j(m1(c),x1.i(d)):d;b=$APP.lg([$APP.bt,y1,z1,A1,B1,C1,D1,E1,F1],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.m(e)?z1.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,D1);b=$APP.C(e,E1);c=$APP.C(e,F1);var g=
8
+ $APP.C(e,$APP.bt),k=$APP.C(e,y1),n=$APP.C(e,z1);d=$APP.C(e,A1);var r=$APP.C(e,B1);e=$APP.C(e,C1);c=m1(c);e=o1(e);g=typeof g==="string"?g.trim():null;g=$APP.m($APP.m(g)?$APP.M.j("",g):g)?g:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;if(!$APP.m(n)){n=""+$APP.N.i(e);var v=G1.i?G1.i(c):G1.call(null,c);v=$APP.G(v);var w=$APP.C(v,$APP.gr);v=$APP.C(v,q1);if($APP.z.j("",n))n=$APP.Me;else if($APP.m(w))a:{w=new RegExp(w,"g");for(var y=$APP.x(v),A=$APP.x(n),E=$APP.tb($APP.Me),J=
9
+ 0;;){var O=w.exec(n);if(O==null){n=$APP.Od(J<A?$APP.Pd(E,new $APP.H(null,2,5,$APP.I,[t1,n.substring(J)],null)):E);break a}var S=O[0],R=O.index;b:{for(var ca=1;;){if(ca>y){O=1;break b}if(O[ca]!=null){O=ca;break b}ca+=1}O=void 0}O=$APP.vc(v,O-1);ca=R>J?new $APP.H(null,2,5,$APP.I,[t1,n.substring(J,R)],null):null;R+=S.length;S.length===0&&(w.lastIndex+=1);$APP.z.j(t1,O)||(E=$APP.m(ca)?$APP.ub(E,ca):E,S=$APP.Pd(E,new $APP.H(null,2,5,$APP.I,[O,S],null)),J=R,E=S)}n=void 0}else n=new $APP.H(null,1,5,$APP.I,
10
+ [new $APP.H(null,2,5,$APP.I,[t1,n],null)],null);n=Nxa(n)}v=$APP.x(n);f=$APP.D(f);k=$APP.D(k);w=f||$APP.M.j("",g);d=$APP.D(d);b=$APP.D(b);y=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.lg([y1,z1,H1,I1,$APP.sr,A1,x1,w1,D1,E1,J1,K1,L1],[k,n,w,r>0&&v>r,g,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(L1.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.N.i($APP.Hj.j(2,(""+$APP.N.i(K1.i(b))).length)));k=$APP.l(a,"__xCodeRefs");c=
11
+ $APP.l(k,"filename");d=$APP.l(k,"lang");e=$APP.l(k,"cwrap");k=$APP.l(k,"copy");g=$APP.M.j("",$APP.sr.i(b));f=!g&&$APP.M.j("",J1.i(b));$APP.ni(a,"data-header",H1.i(b));c.textContent=$APP.sr.i(b);c.style.display=g?"block":"none";d.textContent=J1.i(b);d.style.display=f?"block":"none";e.style.display=$APP.m(D1.i(b))?"inline-flex":"none";$APP.U(k,"text",w1.i(b));c=$APP.l(a,"__xCodeModel");if($APP.M.j($APP.Hg(b,new $APP.H(null,2,5,$APP.I,[w1,x1],null)),$APP.Hg(c,new $APP.H(null,2,5,$APP.I,[w1,x1],null)))){c=
12
+ $APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.te($APP.Ko,z1.i(b)));k=null;for(f=g=0;;)if(f<g)n=k.C(null,f),r=$APP.B(n,0,null),n=$APP.B(n,1,null),d.appendChild(v1(n,r)),f+=1;else if(e=$APP.q(e))$APP.Xc(e)?(g=$APP.Ab(e),e=$APP.Bb(e),k=g,g=$APP.x(g)):(g=$APP.t(e),k=$APP.B(g,0,null),g=$APP.B(g,1,null),d.appendChild(v1(g,k)),e=$APP.u(e),k=null,g=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),"expander");e=I1.i(b);d=$APP.m(e)?
13
+ $APP.p(y1.i(b)):e;$APP.ni(a,"data-collapsible",e);$APP.ni(a,"data-collapsed",d);$APP.m(d)?(k=$APP.G(b),e=$APP.C(k,K1),k=$APP.C(k,L1),e=$APP.Hj.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.sr.i(b))?$APP.sr.i(b):$APP.M.j("",J1.i(b))?""+$APP.N.i(J1.i(b))+" code":"Code";$APP.U(c,"aria-label",d);a=$APP.T(a,"__xCodeModel",b)}else a=
14
+ null;return a}return null},Pxa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Oxa),d=null,e=0,f=0;;)if(f<e){var g=d.C(null,f),k=$APP.B(g,0,null),n=$APP.B(g,1,null),r=$APP.B(g,2,null),v=$APP.l(b,k);v.addEventListener(n,function(A,E,J,O,S,R,ca,na,ka){return function(oa){return ka.j?ka.j(a,oa):ka.call(null,a,oa)}}(c,d,e,f,v,g,k,n,r,b));f+=1}else if(v=$APP.q(c)){g=v;if($APP.Xc(g))c=$APP.Ab(g),f=$APP.Bb(g),d=c,e=$APP.x(c),c=f;else{var w=$APP.t(g);k=$APP.B(w,0,null);n=$APP.B(w,1,null);r=$APP.B(w,
15
+ 2,null);var y=$APP.l(b,k);y.addEventListener(n,function(A,E,J,O,S,R,ca,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,g,v,b));c=$APP.u(g);d=null;e=0}f=0}else break},Qxa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.m(b))return b;b=new MutationObserver(function(){return M1(a)});$APP.T(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Rxa=function(a){$APP.Fi(a,"language","language","");$APP.Fi(a,"filename",
16
+ "filename","");$APP.Ci(a,"showCopy","show-copy");$APP.Ci(a,"lineNumbers","line-numbers");$APP.Ci(a,"wrap","wrap");$APP.Ci(a,"expanded","expanded");$APP.Hi(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return s1(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")}})},Vxa=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"),g=document.createElement("span"),k=document.createElement("span"),n=document.createElement("x-copy");$APP.U(e,"part","header");$APP.U(f,"part","filename");$APP.U(g,"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(g);e.appendChild(k);e=new $APP.K(null,5,[$APP.Np,e,$APP.sr,f,N1,g,O1,k,$APP.ls,n],null);f=document.createElement("div");g=document.createElement("div");k=document.createElement("pre");n=document.createElement("code");var r=document.createElement("div");$APP.U(f,"part","body");$APP.U(g,"part","scroll");$APP.U(g,
19
+ "role","region");$APP.U(g,"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);g.appendChild(k);f.appendChild(g);f.appendChild(r);f=new $APP.K(null,5,[$APP.Qp,f,$APP.Wt,g,Sxa,k,w1,n,Txa,r],null);g=document.createElement("button");$APP.U(g,"part","expander");$APP.U(g,"type","button");c.textContent=Uxa;$APP.U(d,"part","container");d.appendChild($APP.Np.i(e));d.appendChild($APP.Qp.i(f));d.appendChild(g);b.appendChild(c);
20
+ b.appendChild(d);$APP.T(a,"__xCodeRefs",{filename:$APP.sr.i(e),lang:N1.i(e),cwrap:O1.i(e),copy:$APP.ls.i(e),scroll:$APP.Wt.i(f),code:w1.i(f),expander:g});Pxa(a)}Qxa(a);return M1(a)},Wxa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.m(a)?a.disconnect():null},Xxa=function(a,b,c,d){return $APP.M.j(c,d)?M1(a):null},P1=function(){$APP.Om();return $APP.kj("x-code",new $APP.K(null,5,[$APP.jj,Yxa,$APP.hj,Vxa,$APP.ej,Wxa,$APP.dj,Xxa,$APP.ij,Rxa],null))},t1=new $APP.F(null,"plain","plain",1368629269),
21
+ C1=new $APP.F(null,"code-raw","code-raw",1397705045),Zxa=new $APP.F(null,"attr-value","attr-value",2093232352),A1=new $APP.F(null,"wrap?","wrap?",-1677427054),O1=new $APP.F(null,"cwrap","cwrap",-648244090),q1=new $APP.F(null,"types","types",590030639),$xa=new $APP.F(null,"expanded","expanded",-3020742),x1=new $APP.F(null,"language","language",-1591107564),D1=new $APP.F(null,"show-copy?","show-copy?",604953882),Q1=new $APP.F(null,"keyword","keyword",811389747),w1=new $APP.F(null,"code","code",1586293142),
22
+ F1=new $APP.F(null,"language-raw","language-raw",-402825953),E1=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),aya=new $APP.F(null,"entity","entity",-450970276),R1=new $APP.F(null,"punct","punct",1807261997),B1=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),N1=new $APP.F(null,"lang","lang",-1819677104),z1=new $APP.F(null,"lines","lines",-700165781),bya=new $APP.F(null,"property","property",-1114278232),H1=new $APP.F(null,"header?","header?",-106649173),S1=new $APP.F(null,
23
+ "comment","comment",532206069),T1=new $APP.F(null,"string","string",-1989541586),cya=new $APP.F(null,"atrule","atrule",-521152778),y1=new $APP.F(null,"expanded?","expanded?",2055832296),I1=new $APP.F(null,"collapsible?","collapsible?",-1508197779),L1=new $APP.F(null,"max-lines","max-lines",-125998785),Txa=new $APP.F(null,"fade","fade",1167694157),J1=new $APP.F(null,"language-label","language-label",-733379621),K1=new $APP.F(null,"line-count","line-count",871713181),Sxa=new $APP.F(null,"pre","pre",
24
+ 2118456869);var Yxa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),Jxa=$APP.lg(" json js cljc xml clojure mjs cljs css clj svg jsx htm text plain txt javascript bb html edn".split(" "),"text json js clojure html clojure js clojure css clojure html js html text text text js clojure html clojure".split(" "));
25
+ $APP.ee(["x-code-copy",new $APP.K(null,2,[$APP.Cr,!1,$APP.ui,new $APP.K(null,1,[w1,$APP.X],null)],null),"x-code-toggle",new $APP.K(null,2,[$APP.Cr,!1,$APP.ui,new $APP.K(null,1,[$xa,$APP.Ki],null)],null)]);
26
+ var dya=new $APP.H(null,6,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[S1,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.H(null,2,5,$APP.I,[$APP.Dv,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.H(null,2,5,$APP.I,[T1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.I,[Q1,/\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/],null),
27
+ new $APP.H(null,2,5,$APP.I,[$APP.Zo,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.I,[R1,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null),eya=new $APP.H(null,5,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[$APP.Uh,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.H(null,2,5,$APP.I,[T1,/"(?:[^"\\]|\\.)*"/],null),new $APP.H(null,2,5,$APP.I,[$APP.Zo,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.H(null,2,5,$APP.I,[Q1,/\b(?:true|false|null)\b/],null),new $APP.H(null,
28
+ 2,5,$APP.I,[R1,/[{}\[\]:,]/],null)],null),fya=new $APP.H(null,6,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[S1,/\/\*[\s\S]*?\*\//],null),new $APP.H(null,2,5,$APP.I,[T1,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.H(null,2,5,$APP.I,[cya,/@[\w-]+/],null),new $APP.H(null,2,5,$APP.I,[bya,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.H(null,2,5,$APP.I,[$APP.Zo,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.H(null,2,5,$APP.I,[R1,/[{}();:,]/],null)],null),gya=new $APP.H(null,6,5,$APP.I,
29
+ [new $APP.H(null,2,5,$APP.I,[S1,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.H(null,2,5,$APP.I,[$APP.wt,/<![^>]*>/],null),new $APP.H(null,2,5,$APP.I,[$APP.wt,/<\/?[A-Za-z][\w-]*/],null),new $APP.H(null,2,5,$APP.I,[Zxa,/"[^"]*"|'[^']*'/],null),new $APP.H(null,2,5,$APP.I,[aya,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.H(null,2,5,$APP.I,[R1,/[<>\/=]/],null)],null),hya=$APP.bf("def defn defn- defmacro defmulti defmethod defonce defprotocol defrecord deftype deftest fn let letfn loop recur do quote var new set! binding if if-not if-let if-some when when-not when-let when-some when-first cond condp case and or not doseq dotimes for while try catch finally throw ns true false nil".split(" "),
30
+ !0),U1="(?!"+$APP.N.i("[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]")+")",iya=new $APP.H(null,7,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[S1,/;[^\n]*/],null),new $APP.H(null,2,5,$APP.I,[T1,/#?"(?:[^"\\]|\\[\s\S])*"|\\(?:newline|space|tab|formfeed|backspace|return|u[0-9a-fA-F]{4}|o[0-7]{1,3}|\S)/],null),new $APP.H(null,2,5,$APP.I,[$APP.Uh,p1($APP.Ac(["::?","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","+"]))],null),new $APP.H(null,2,5,$APP.I,[$APP.Zo,p1($APP.Ac(["[+-]?(?:0[xX][0-9a-fA-F]+|\\d+/\\d+|\\d+\\.?\\d*(?:[eE][+-]?\\d+)?)[MN]?",
31
+ U1]))],null),new $APP.H(null,2,5,$APP.I,[Q1,p1($APP.Ac(["(?:",$APP.Gh("|",hya),")",U1]))],null),new $APP.H(null,2,5,$APP.I,[t1,p1($APP.Ac(["[A-Za-z_*+!?\x3c\x3e\x3d.$\x26%-]","[\\w*+!?\x3c\x3e\x3d.'/$\x26%#:-]","*"]))],null),new $APP.H(null,2,5,$APP.I,[R1,/[()\[\]{}'`~@^#]/],null)],null),G1=$APP.ee(["js",r1(dya),"json",r1(eya),"css",r1(fya),"html",r1(gya),"clojure",r1(iya)]);var Uxa=":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;}"+
32
32
  $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;}}",
33
- Qwa=new $APP.H(null,2,5,$APP.J,[new $APP.H(null,3,5,$APP.J,["expander","click",function(a){var b=$APP.p(Z0.i($APP.l(a,"__xCodeModel")));b?$APP.U(a,"expanded",""):$APP.V(a,"expanded");return $APP.Si(a,"x-code-toggle",{expanded:b})}],null),new $APP.H(null,3,5,$APP.J,["copy","x-copy-success",function(a){return $APP.Si(a,"x-code-copy",{code:X0.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ha("baredom.exports.x_code.init",p1);export const init=p1;
33
+ Oxa=new $APP.H(null,2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,["expander","click",function(a){var b=$APP.p(y1.i($APP.l(a,"__xCodeModel")));b?$APP.U(a,"expanded",""):$APP.V(a,"expanded");return $APP.xi(a,"x-code-toggle",{expanded:b})}],null),new $APP.H(null,3,5,$APP.I,["copy","x-copy-success",function(a){return $APP.xi(a,"x-code-copy",{code:w1.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.ea("baredom.exports.x_code.init",P1);export const init=P1;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
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.lp,a.hasAttribute("open"),$APP.Dk,a.hasAttribute("disabled"),k9,a.getAttribute("header"),l9,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.lp);var d=$APP.C(c,$APP.Dk),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.Sj.j(0,$APP.Rj.j(2E3,
4
- c)):300;b=new $APP.K(null,4,[$APP.Yr,b,$APP.Jk,d,$APP.Mp,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.Mp),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Yr),c=$APP.C(c,$APP.Jk),$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.Ui(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.U(a,"open",""):$APP.V(a,"open"),$APP.Si(a,"x-collapse-change",{open:c})):null},aCa=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},cCa=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=bCa;$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);aCa(a);return m9(a)},dCa=function(a){return o9(a)},
9
- eCa=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},gCa=function(a){$APP.gj(a,fCa);return Object.defineProperty(a,"toggle",
10
- {value:function(){return n9(this,"programmatic")},writable:!0,configurable:!0})},p9=function(){return $APP.vj("x-collapse",new $APP.K(null,5,[$APP.nj,hCa,$APP.oj,cCa,$APP.pj,dCa,$APP.qj,eCa,$APP.tj,gCa],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 hCa=["open","disabled","header","duration-ms"],fCa=new $APP.K(null,4,[$APP.Mu,new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"open"],null),$APP.Rm,new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"disabled"],null),$APP.Mp,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.fj,300],null)],null);
11
- $APP.me(["x-collapse-toggle",new $APP.K(null,3,[$APP.xr,!0,$APP.qs,$APP.me(["open",$APP.Mu]),$APP.Pi,new $APP.K(null,2,[$APP.Mu,$APP.ej,$APP.br,$APP.X],null)],null),"x-collapse-change",new $APP.K(null,2,[$APP.xr,!1,$APP.Pi,new $APP.K(null,1,[$APP.Mu,$APP.ej],null)],null)]);var bCa=":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;
2
+ var N9=function(){var a=window.matchMedia;return $APP.m(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},P9=function(a){a=O9.i($APP.l(a,"__xCollapseModel"));return $APP.m(a)?a:300},Q9=function(a){a.style.height="";return a.style.transition=""},R9=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 Q9(a)},d+80);return a.addEventListener("transitionend",function g(){clearTimeout(e);
3
+ Q9(a);return a.removeEventListener("transitionend",g)})},U9=function(a){if($APP.m($APP.l(a,"__xCollapseRefs"))){var b=new $APP.K(null,4,[$APP.mp,a.hasAttribute("open"),$APP.rk,a.hasAttribute("disabled"),S9,a.getAttribute("header"),T9,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.mp);var d=$APP.C(c,$APP.rk),e=$APP.C(c,S9);c=$APP.C(c,T9);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.Hj.j(0,$APP.Gj.j(2E3,
4
+ c)):300;b=new $APP.K(null,4,[$APP.js,b,$APP.Kk,d,$APP.Np,e,O9,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.Np),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.js),c=$APP.C(c,$APP.Kk),$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},V9=function(a,b){if($APP.m(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.zi(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.U(a,"open",""):$APP.V(a,"open"),$APP.xi(a,"x-collapse-change",{open:c})):null},$Ca=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.m(b)){b=$APP.l(b,"trigger");var c=function(){return V9(a,"pointer")},d=function(f){var g=f.key;$APP.z.j(g," ")||$APP.z.j(g,"Enter")||$APP.z.j(g,"Space")?(f.preventDefault(),
6
+ f=V9(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)}},W9=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},bDa=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"),g=document.createElement("span"),k=document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot");c.textContent=aDa;$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(g,"part","chevron");
8
+ $APP.U(g,"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");g.textContent="▼";e.appendChild(f);e.appendChild(g);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)}W9(a);$Ca(a);return U9(a)},cDa=function(a){return W9(a)},
9
+ dDa=function(a,b,c,d){return $APP.M.j(c,d)&&(U9(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(N9())?a=Q9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.N.i(b.scrollHeight)+"px",a=R9(b,"0px",c,P9(a))):$APP.m(N9())?(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.N.i(b.offsetHeight)+"px",a=R9(b,c,"0px",P9(a))):a=null,a):null},fDa=function(a){$APP.Mi(a,eDa);return Object.defineProperty(a,"toggle",
10
+ {value:function(){return V9(this,"programmatic")},writable:!0,configurable:!0})},X9=function(){return $APP.kj("x-collapse",new $APP.K(null,5,[$APP.jj,gDa,$APP.hj,bDa,$APP.ej,cDa,$APP.dj,dDa,$APP.ij,fDa],null))},T9=new $APP.F(null,"duration-ms-raw","duration-ms-raw",-2138819526),O9=new $APP.F(null,"duration-ms","duration-ms",1993555055),S9=new $APP.F(null,"header-raw","header-raw",41484);var gDa=["open","disabled","header","duration-ms"],eDa=new $APP.K(null,4,[$APP.av,new $APP.K(null,2,[$APP.P,$APP.Ki,$APP.W,"open"],null),$APP.Rm,new $APP.K(null,2,[$APP.P,$APP.Ki,$APP.W,"disabled"],null),$APP.Np,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.Li,300],null)],null);
11
+ $APP.ee(["x-collapse-toggle",new $APP.K(null,3,[$APP.Cr,!0,$APP.Es,$APP.ee(["open",$APP.av]),$APP.ui,new $APP.K(null,2,[$APP.av,$APP.Ki,$APP.gr,$APP.X],null)],null),"x-collapse-change",new $APP.K(null,2,[$APP.Cr,!1,$APP.ui,new $APP.K(null,1,[$APP.av,$APP.Ki],null)],null)]);var aDa=":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.ea("baredom.exports.x_collapse.init",X9);export const init=X9;
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BG=function(a,b){return $APP.Rj.j($APP.Sj.j(a,0),b)},CG=function(a){return $APP.zd(a,360)},DG=function(a){return BG(a,100)},EG=function(a){return BG(a,1)},GG=function(a){var b=typeof a==="string";a=b?$APP.uh(FG,a.trim()):b;return $APP.D(a)},KG=function(a){if(typeof a==="string")if(a=$APP.uh(FG,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,[HG,b,$APP.zu,c,IG,d,JG,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,[HG,b,$APP.zu,c,IG,d,JG,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,[HG,b,$APP.zu,c,IG,d,JG,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
- else return null},Sja=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Sj.o(a,b,$APP.Hc([c])),e=$APP.Rj.o(a,b,$APP.Hc([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.K(null,3,[LG,0,MG,0,NG,f*100],null):new $APP.K(null,3,[LG,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,MG,(f>.5?h/(2-d-e):h/(d+e))*100,NG,f*100],null)},OG=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},PG=function(a,b,c){a=CG(a)/360;b=DG(b)/100;c=DG(c)/100;if(b===0)return a=
5
- Math.round(c*255),new $APP.K(null,3,[HG,a,$APP.zu,a,IG,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.K(null,3,[HG,Math.round(OG(c,b,a+1/3)*255),$APP.zu,Math.round(OG(c,b,a)*255),IG,Math.round(OG(c,b,a-1/3)*255)],null)},QG=function(a,b,c){function d(e){e=BG(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))},RG=function(a,b,c,d){function e(f){f=BG(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(EG(d)*255))},TG=function(a,b,c){b=DG(b)/100;c=DG(c)/100;b=c+b*$APP.Rj.j(c,1-c);return new $APP.K(null,3,[LG,CG(a),MG,(b===0?0:2*(1-c/b))*100,SG,b*100],null)},UG=function(a,b,c){b=DG(b)/100;c=DG(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Rj.j(b,1-b);return new $APP.K(null,3,[LG,CG(a),MG,c*100,NG,b*100],null)},VG=function(a,b,c){return 100*(BG(a-b,c)/c)},Tja=function(a){return typeof a==="string"&&GG(a)?(a=KG(a),$APP.m(a)?QG(HG.i(a),
7
- $APP.zu.i(a),IG.i(a)):null):"#000000"},Uja=function(a){return typeof a==="string"&&$APP.jd(WG,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Vja=function(a){return typeof a==="string"&&$APP.li(a)?$APP.Wf.l($APP.We,$APP.Lj.l($APP.Ne.i($APP.hi),$APP.Se(GG),$APP.Ne.i(function(b){b=KG(b);var c=$APP.G(b);b=$APP.C(c,HG);var d=$APP.C(c,$APP.zu);c=$APP.C(c,IG);return QG(b,d,c)})),$APP.fi(a,/,/)):$APP.We},Wja=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Jk);var c=$APP.C(b,$APP.Mu),d=$APP.C(b,$APP.Q),
8
- e=$APP.C(b,$APP.Hk),f=$APP.C(b,$APP.dj),h=$APP.C(b,$APP.ym),k=$APP.C(b,XG),n=$APP.C(b,$APP.Z),r=$APP.C(b,YG);b=Tja(d);var v=function(){var S=KG(d);return $APP.m(S)?S:KG("#000000")}(),w=$APP.G(v);v=$APP.C(w,HG);var y=$APP.C(w,$APP.zu),A=$APP.C(w,IG);w=$APP.C(w,JG);var E=function(){var S=typeof d==="string";if(S){S=d.trim();var R=$APP.uh(FG,S);return $APP.m(R)?8===$APP.x($APP.Kc($APP.uh(FG,S))):R}return S}();w=$APP.m(E)?w:1;E=Sja(v,y,A);var I=$APP.G(E);E=$APP.C(I,LG);var O=$APP.C(I,MG);I=$APP.C(I,NG);
9
- f=$APP.ji(f);r=r!=null;c=c!=null;h=Uja(h);return $APP.zg([$APP.bm,ZG,$APP.Hk,$APP.ym,XG,MG,NG,$G,LG,$APP.Z,$APP.Yr,aH,$APP.Jk,JG],[f,r,$APP.li(e)?e:null,h,Vja(k),O,I,b,E,$APP.li(n)?n:null,$APP.z.j(h,"popover")&&c,r&&w<1?RG(v,y,A,w):b,$APP.D(a),w])},bH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Jk);b=$APP.C(b,$APP.bm);return $APP.p(a)&&$APP.p(b)},cH=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)},dH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"type","button");$APP.U(a,"aria-label",c);a.innerHTML=d},eH=function(a){return Wja($APP.zg([$APP.Mu,$APP.Hk,$APP.Q,$APP.dj,$APP.ym,XG,$APP.Z,YG,$APP.Jk],[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.Fj(a)]))},fH=function(a,b){var c=aH.i(b),d=LG.i(b),e=MG.i(b),f=NG.i(b);b=JG.i(b);
11
- return $APP.Si(a,"x-color-picker-input",$APP.Jm(new $APP.K(null,5,[$APP.Q,c,LG,d,MG,e,NG,f,JG,b],null)))},gH=function(a,b){var c=aH.i(b),d=LG.i(b),e=MG.i(b),f=NG.i(b);b=JG.i(b);return $APP.Ui(a,"x-color-picker-change",$APP.Jm(new $APP.K(null,5,[$APP.Q,c,LG,d,MG,e,NG,f,JG,b],null)))},hH=function(a,b,c,d,e,f){b=PG(b,c,d);d=$APP.G(b);b=$APP.C(d,HG);c=$APP.C(d,$APP.zu);d=$APP.C(d,IG);e=$APP.m($APP.m(f)?e<1:f)?RG(b,c,d,e):QG(b,c,d);$APP.U(a,"value",e)},Xja=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")})},iH=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=eH(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,LG);r=$APP.C(r,$APP.ym);$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,LG),y=$APP.C(r,MG),A=$APP.C(r,NG);v=$APP.C(r,JG);r=$APP.C(r,$APP.Z);y=TG(w,y,A);var E=$APP.G(y);y=$APP.C(E,MG);E=$APP.C(E,SG);E=new $APP.K(null,2,[$APP.xu,DG(y),$APP.wu,100-DG(E)],null);
15
- d.style.setProperty("--_x-cp-area-x",""+$APP.N.i($APP.xu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.wu.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,LG);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((CG(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,LG);d=$APP.C(w,MG);v=$APP.C(w,NG);r=$APP.C(w,JG);w=$APP.C(w,ZG);$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((EG(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,LG);d=
17
- $APP.C(w,MG);v=$APP.C(w,NG);f=$APP.C(w,JG);r=$APP.C(w,$G);w=$APP.C(w,ZG);$APP.m(w)?(e=PG(e,d,v),v=$APP.G(e),e=$APP.C(v,HG),d=$APP.C(v,$APP.zu),v=$APP.C(v,IG),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,aH);k=$APP.C(f,$APP.Jk);f=$APP.C(f,$APP.bm);a.shadowRoot.activeElement!==n&&(n.value=h);n.disabled=$APP.m(k)?k:f;Xja(a,c,XG.i(b),$G.i(b));n=$APP.G(b);n=$APP.C(n,aH);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},kH=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=VG(b.clientX,c.left,c.width);a=VG(a,d,e);return new $APP.K(null,2,[jH,DG(b),$APP.So,100-DG(a)],null)},lH=function(a,b){a=a.getBoundingClientRect();b=VG(b.clientX,a.left,a.width);return DG(b)/100*360},mH=function(a,b){a=a.getBoundingClientRect();b=VG(b.clientX,a.left,a.width);return DG(b)/100},Zja=function(a,
19
- b){var c=eH(a);if(bH(c)&&$APP.jd(Yja,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=TG(LG.i(c),MG.i(c),NG.i(c)),f=function(){switch(b.key){case "ArrowRight":return DG(MG.i(e)+d);case "ArrowLeft":return DG(MG.i(e)-d);default:return MG.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return DG(SG.i(e)+d);case "ArrowDown":return DG(SG.i(e)-d);default:return SG.i(e)}}();f=UG(LG.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,LG);h=$APP.C(k,MG);k=$APP.C(k,NG);hH(a,f,h,k,JG.i(c),ZG.i(c));fH(a,eH(a));
20
- return gH(a,eH(a))}return null},$ja=function(a,b){var c=eH(a);if(bH(c)&&$APP.jd(nH,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return CG(LG.i(c)+d);case "ArrowLeft":return CG(LG.i(c)-d);case "Home":return 0;case "End":return 360;default:return LG.i(c)}}();hH(a,e,MG.i(c),NG.i(c),JG.i(c),ZG.i(c));fH(a,eH(a));return gH(a,eH(a))}return null},aka=function(a,b){var c=eH(a);if($APP.m(function(){var f=bH(c);return f?(f=ZG.i(c),$APP.m(f)?$APP.jd(nH,
21
- b.key):f):f}())){b.preventDefault();var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return EG(JG.i(c)+d);case "ArrowLeft":return EG(JG.i(c)-d);case "Home":return 0;case "End":return 1;default:return JG.i(c)}}();hH(a,LG.i(c),MG.i(c),NG.i(c),e,!0);fH(a,eH(a));return gH(a,eH(a))}return null},bka=function(a){var b=eH(a);return bH(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.U(a,"value",c.sRGBHex);return gH(a,eH(a))}).catch(function(){return null}):
22
- null},cka=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},oH=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},dka=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:oH(a):null},
23
- eka=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=eH(a);b=kH($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,jH);d=$APP.C(d,$APP.So);b=UG(LG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,LG);d=$APP.C(e,MG);e=$APP.C(e,NG);hH(a,b,d,e,JG.i(c),ZG.i(c));c=fH(a,eH(a))}else c=null;return c},copy:function(){var b=eH(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(aH.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
- b.key)&&$APP.z.j("popover",$APP.ym.i(eH(a)))?(b.preventDefault(),b.stopPropagation(),b=oH(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.T(a,"__xColorPickerDragging",null);var b=gH(a,eH(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=gH(a,eH(a))}else b=null;return b},"alpha-key":function(b){return aka(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
- $APP.l(a,"__xColorPickerDragging"))){var c=eH(a);b=mH($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);hH(a,LG.i(c),MG.i(c),NG.i(c),b,!0);c=fH(a,eH(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=eH(a);if(bH(d)){if(GG(c)){$APP.U(a,"value",c);b=gH(a,eH(a));break a}b=b.value=aH.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=eH(a);if(bH(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=
26
- b.getAttribute("data-color");$APP.U(a,"value",b);b=gH(a,eH(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=gH(a,eH(a))}else b=null;return b},"alpha-down":function(b){var c=eH(a);var d=(d=bH(c))?ZG.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=mH(d,b),hH(a,LG.i(c),MG.i(c),NG.i(c),
27
- b,!0),c=fH(a,eH(a))):c=null;return c},"area-key":function(b){return Zja(a,b)},"hue-down":function(b){var c=eH(a);if(bH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.T(a,"__xColorPickerDragging","hue");b=lH(d,b);hH(a,b,MG.i(c),NG.i(c),JG.i(c),ZG.i(c));c=fH(a,eH(a))}else c=null;return c},"hue-key":function(b){return $ja(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=eH(a);b=lH($APP.l($APP.l(a,
28
- "__xColorPickerRefs"),"hue-strip"),b);hH(a,b,MG.i(c),NG.i(c),JG.i(c),ZG.i(c));c=fH(a,eH(a))}else c=null;return c},eyedrop:function(){return bka(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=eH(a);return $APP.z.j("popover",$APP.ym.i(b))&&$APP.p($APP.Jk.i(b))?$APP.m($APP.Yr.i(b))?oH(a):cka(a):null},"doc-click":function(b){return dka(a,b)},"area-down":function(b){var c=eH(a);if(bH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
- $APP.T(a,"__xColorPickerDragging","area");b=kH(d,b);d=$APP.G(b);b=$APP.C(d,jH);d=$APP.C(d,$APP.So);b=UG(LG.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,LG);d=$APP.C(e,MG);e=$APP.C(e,NG);hH(a,b,d,e,JG.i(c),ZG.i(c));c=fH(a,eH(a))}else c=null;return c}}},qH=function(a,b){return $APP.z.j(b,pH)?document:$APP.l(a,b)},sH=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(rH),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);qH(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),qH(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},fka=function(a){$APP.U(a,"value","#000000");return iH(a)},hka=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.st,f,tH,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,[uH,h,vH,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");cH(n,"hue-strip","Hue","360");cH(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,[wH,k,xH,n,yH,r,zH,v,AH,w,BH,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");dH(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
- dH(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.Sr,n,CH,r,DH,v,EH,w,FH,y,$APP.$r,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,[XG,r],null);c.textContent=gka;$APP.U(d,"part","container");$APP.U(e,"part","panel");e.appendChild(uH.i(h));e.appendChild(wH.i(k));e.appendChild($APP.Sr.i(n));e.appendChild(XG.i(r));d.appendChild($APP.st.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);
37
- b={"alpha-thumb":BH.i(k),copy:$APP.$r.i(n),swatches:XG.i(r),"hue-strip":xH.i(k),controls:$APP.Sr.i(n),"alpha-gradient":AH.i(k),panel:e,preview:CH.i(n),"area-thumb":vH.i(h),"preview-color":DH.i(n),container:d,area:uH.i(h),"hue-thumb":yH.i(k),"trigger-swatch":tH.i(f),trigger:$APP.st.i(f),"alpha-strip":zH.i(k),eyedropper:FH.i(n),"hex-input":EH.i(n)};$APP.T(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.T(a,"__xColorPickerInternals",a.attachInternals())}sH(a);b=$APP.l(a,"__xColorPickerRefs");
38
- if($APP.m(b)){c=eka(a);d=$APP.q(rH);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),qH(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),qH(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 iH(a)},ika=function(a){return sH(a)},
39
- jka=function(a,b,c,d){return $APP.M.j(c,d)?iH(a):null},lka=function(a){$APP.Ij(a,"__xColorPickerInternals");return $APP.gj(a,kka)},GH=function(){return $APP.vj("x-color-picker",new $APP.K(null,7,[$APP.nj,mka,$APP.oj,hka,$APP.pj,ika,$APP.qj,jka,$APP.rj,!0,$APP.sj,fka,$APP.tj,lka],null))},AH=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),BH=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),DH=new $APP.F(null,"preview-color","preview-color",1405210195),zH=new $APP.F(null,"alpha-strip",
40
- "alpha-strip",1085401595),vH=new $APP.F(null,"area-thumb","area-thumb",1471343090),ZG=new $APP.F(null,"alpha?","alpha?",1329751525),jH=new $APP.F(null,"sat","sat",1064662667),tH=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),pH=new $APP.F(null,"document","document",-1329188687),FH=new $APP.F(null,"eyedropper","eyedropper",-1786107588),uH=new $APP.F(null,"area","area",472007256),YG=new $APP.F(null,"alpha","alpha",-1574982441),aH=new $APP.F(null,"hex-full","hex-full",-1466644518),EH=new $APP.F(null,
41
- "hex-input","hex-input",1497535517),CH=new $APP.F(null,"preview","preview",451279890),xH=new $APP.F(null,"hue-strip","hue-strip",938856876),XG=new $APP.F(null,"swatches","swatches",2033601707),wH=new $APP.F(null,"strips","strips",-1564791997),SG=new $APP.F(null,"v","v",21465059),MG=new $APP.F(null,"s","s",1705939918),HG=new $APP.F(null,"r","r",-471384190),NG=new $APP.F(null,"l","l",1395893423),LG=new $APP.F(null,"h","h",1109658740),IG=new $APP.F(null,"b","b",1482224470),JG=new $APP.F(null,"a","a",
42
- -2123407586),$G=new $APP.F(null,"hex","hex",41691346),yH=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var WG=new $APP.Yg(null,new $APP.K(null,2,["inline",null,"popover",null],null),null),mka="value alpha swatches disabled readonly name mode open label".split(" "),kka=$APP.zg([$APP.rv,$APP.Mu,$APP.Vu,$APP.Pp,$APP.Rm,$APP.Hk,$APP.Q,$APP.ym,XG,$APP.Ou,$APP.Z,YG,$APP.$q,$APP.Bq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.bq,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.dj,!0],null),new $APP.K(null,
43
- 2,[$APP.P,$APP.ej,$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.du,WG],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"swatches"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$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.ej,$APP.W,"alpha"],null),new $APP.K(null,2,[$APP.P,$APP.St,$APP.dj,!0],null),new $APP.K(null,
44
- 2,[$APP.P,$APP.Ft,$APP.dj,!0],null)]);$APP.me(["x-color-picker-input",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,5,[$APP.Q,$APP.X,LG,$APP.Y,MG,$APP.Y,NG,$APP.Y,JG,$APP.Y],null),$APP.xr,!1],null),"x-color-picker-change",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,5,[$APP.Q,$APP.X,LG,$APP.Y,MG,$APP.Y,NG,$APP.Y,JG,$APP.Y],null),$APP.xr,!0],null)]);var FG=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var gka=":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 dH=function(a,b){return $APP.Gj.j($APP.Hj.j(a,0),b)},eH=function(a){return $APP.sd(a,360)},fH=function(a){return dH(a,100)},gH=function(a){return dH(a,1)},iH=function(a){var b=typeof a==="string";a=b?$APP.gh(hH,a.trim()):b;return $APP.D(a)},mH=function(a){if(typeof a==="string")if(a=$APP.gh(hH,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.vc(a,0))+$APP.N.i($APP.vc(a,0)),16),c=parseInt(""+$APP.N.i($APP.vc(a,1))+$APP.N.i($APP.vc(a,
3
+ 1)),16),d=parseInt(""+$APP.N.i($APP.vc(a,2))+$APP.N.i($APP.vc(a,2)),16);return new $APP.K(null,4,[jH,b,$APP.Ou,c,kH,d,lH,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,[jH,b,$APP.Ou,c,kH,d,lH,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,[jH,b,$APP.Ou,c,kH,d,lH,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
4
+ else return null},Lka=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Hj.o(a,b,$APP.Ac([c])),e=$APP.Gj.o(a,b,$APP.Ac([c])),f=(d+e)/2,g=d-e;return g===0?new $APP.K(null,3,[nH,0,oH,0,pH,f*100],null):new $APP.K(null,3,[nH,(d===a?((b-c)/g+(b<c?6:0))/6:d===b?((c-a)/g+2)/6:((a-b)/g+4)/6)*360,oH,(f>.5?g/(2-d-e):g/(d+e))*100,pH,f*100],null)},qH=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},rH=function(a,b,c){a=eH(a)/360;b=fH(b)/100;c=fH(c)/100;if(b===0)return a=
5
+ Math.round(c*255),new $APP.K(null,3,[jH,a,$APP.Ou,a,kH,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.K(null,3,[jH,Math.round(qH(c,b,a+1/3)*255),$APP.Ou,Math.round(qH(c,b,a)*255),kH,Math.round(qH(c,b,a-1/3)*255)],null)},sH=function(a,b,c){function d(e){e=dH(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))},tH=function(a,b,c,d){function e(f){f=dH(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(gH(d)*255))},vH=function(a,b,c){b=fH(b)/100;c=fH(c)/100;b=c+b*$APP.Gj.j(c,1-c);return new $APP.K(null,3,[nH,eH(a),oH,(b===0?0:2*(1-c/b))*100,uH,b*100],null)},wH=function(a,b,c){b=fH(b)/100;c=fH(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.Gj.j(b,1-b);return new $APP.K(null,3,[nH,eH(a),oH,c*100,pH,b*100],null)},xH=function(a,b,c){return 100*(dH(a-b,c)/c)},Mka=function(a){return typeof a==="string"&&iH(a)?(a=mH(a),$APP.m(a)?sH(jH.i(a),
7
+ $APP.Ou.i(a),kH.i(a)):null):"#000000"},Nka=function(a){return typeof a==="string"&&$APP.bd(yH,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},Oka=function(a){return typeof a==="string"&&$APP.Oh(a)?$APP.Hf.l($APP.Me,$APP.Aj.l($APP.De.i($APP.Kh),$APP.Ie(iH),$APP.De.i(function(b){b=mH(b);var c=$APP.G(b);b=$APP.C(c,jH);var d=$APP.C(c,$APP.Ou);c=$APP.C(c,kH);return sH(b,d,c)})),$APP.Ih(a,/,/)):$APP.Me},Pka=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Kk);var c=$APP.C(b,$APP.av),d=$APP.C(b,$APP.Q),
8
+ e=$APP.C(b,$APP.Ik),f=$APP.C(b,$APP.Ji),g=$APP.C(b,$APP.ym),k=$APP.C(b,zH),n=$APP.C(b,$APP.Z),r=$APP.C(b,AH);b=Mka(d);var v=function(){var S=mH(d);return $APP.m(S)?S:mH("#000000")}(),w=$APP.G(v);v=$APP.C(w,jH);var y=$APP.C(w,$APP.Ou),A=$APP.C(w,kH);w=$APP.C(w,lH);var E=function(){var S=typeof d==="string";if(S){S=d.trim();var R=$APP.gh(hH,S);return $APP.m(R)?8===$APP.x($APP.Dc($APP.gh(hH,S))):R}return S}();w=$APP.m(E)?w:1;E=Lka(v,y,A);var J=$APP.G(E);E=$APP.C(J,nH);var O=$APP.C(J,oH);J=$APP.C(J,pH);
9
+ f=$APP.Mh(f);r=r!=null;c=c!=null;g=Nka(g);return $APP.lg([$APP.bm,BH,$APP.Ik,$APP.ym,zH,oH,pH,CH,nH,$APP.Z,$APP.js,DH,$APP.Kk,lH],[f,r,$APP.Oh(e)?e:null,g,Oka(k),O,J,b,E,$APP.Oh(n)?n:null,$APP.z.j(g,"popover")&&c,r&&w<1?tH(v,y,A,w):b,$APP.D(a),w])},EH=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Kk);b=$APP.C(b,$APP.bm);return $APP.p(a)&&$APP.p(b)},FH=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)},GH=function(a,b,c,d){$APP.U(a,"part",b);$APP.U(a,"type","button");$APP.U(a,"aria-label",c);a.innerHTML=d},HH=function(a){return Pka($APP.lg([$APP.av,$APP.Ik,$APP.Q,$APP.Ji,$APP.ym,zH,$APP.Z,AH,$APP.Kk],[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.uj(a)]))},IH=function(a,b){var c=DH.i(b),d=nH.i(b),e=oH.i(b),f=pH.i(b);b=lH.i(b);
11
+ return $APP.xi(a,"x-color-picker-input",$APP.Jm(new $APP.K(null,5,[$APP.Q,c,nH,d,oH,e,pH,f,lH,b],null)))},JH=function(a,b){var c=DH.i(b),d=nH.i(b),e=oH.i(b),f=pH.i(b);b=lH.i(b);return $APP.zi(a,"x-color-picker-change",$APP.Jm(new $APP.K(null,5,[$APP.Q,c,nH,d,oH,e,pH,f,lH,b],null)))},KH=function(a,b,c,d,e,f){b=rH(b,c,d);d=$APP.G(b);b=$APP.C(d,jH);c=$APP.C(d,$APP.Ou);d=$APP.C(d,kH);e=$APP.m($APP.m(f)?e<1:f)?tH(b,c,d,e):sH(b,c,d);$APP.U(a,"value",e)},Qka=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 g=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",g);$APP.U(k,"data-color",g);k.style.backgroundColor=g;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.Xc(a)?(e=$APP.Ab(a),a=$APP.Bb(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")})},LH=function(a){if($APP.m($APP.l(a,"__xColorPickerRefs"))){var b=HH(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"),g=$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,nH);r=$APP.C(r,$APP.ym);$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,nH),y=$APP.C(r,oH),A=$APP.C(r,pH);v=$APP.C(r,lH);r=$APP.C(r,$APP.Z);y=vH(w,y,A);var E=$APP.G(y);y=$APP.C(E,oH);E=$APP.C(E,uH);E=new $APP.K(null,2,[$APP.Mu,fH(y),$APP.Lu,100-fH(E)],null);
15
+ d.style.setProperty("--_x-cp-area-x",""+$APP.N.i($APP.Mu.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.N.i($APP.Lu.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,nH);e.style.setProperty("--_x-cp-hue-pos",""+$APP.N.i((eH(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,nH);d=$APP.C(w,oH);v=$APP.C(w,pH);r=$APP.C(w,lH);w=$APP.C(w,BH);$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((gH(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,nH);d=
17
+ $APP.C(w,oH);v=$APP.C(w,pH);f=$APP.C(w,lH);r=$APP.C(w,CH);w=$APP.C(w,BH);$APP.m(w)?(e=rH(e,d,v),v=$APP.G(e),e=$APP.C(v,jH),d=$APP.C(v,$APP.Ou),v=$APP.C(v,kH),f="rgba("+$APP.N.i(e)+","+$APP.N.i(d)+","+$APP.N.i(v)+","+$APP.N.i(f.toFixed(2))+")"):f=r;g.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);g=$APP.C(f,DH);k=$APP.C(f,$APP.Kk);f=$APP.C(f,$APP.bm);a.shadowRoot.activeElement!==n&&(n.value=g);n.disabled=$APP.m(k)?k:f;Qka(a,c,zH.i(b),CH.i(b));n=$APP.G(b);n=$APP.C(n,DH);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},NH=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=xH(b.clientX,c.left,c.width);a=xH(a,d,e);return new $APP.K(null,2,[MH,fH(b),$APP.To,100-fH(a)],null)},OH=function(a,b){a=a.getBoundingClientRect();b=xH(b.clientX,a.left,a.width);return fH(b)/100*360},PH=function(a,b){a=a.getBoundingClientRect();b=xH(b.clientX,a.left,a.width);return fH(b)/100},Ska=function(a,
19
+ b){var c=HH(a);if(EH(c)&&$APP.bd(Rka,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=vH(nH.i(c),oH.i(c),pH.i(c)),f=function(){switch(b.key){case "ArrowRight":return fH(oH.i(e)+d);case "ArrowLeft":return fH(oH.i(e)-d);default:return oH.i(e)}}(),g=function(){switch(b.key){case "ArrowUp":return fH(uH.i(e)+d);case "ArrowDown":return fH(uH.i(e)-d);default:return uH.i(e)}}();f=wH(nH.i(c),f,g);var k=$APP.G(f);f=$APP.C(k,nH);g=$APP.C(k,oH);k=$APP.C(k,pH);KH(a,f,g,k,lH.i(c),BH.i(c));IH(a,HH(a));
20
+ return JH(a,HH(a))}return null},Tka=function(a,b){var c=HH(a);if(EH(c)&&$APP.bd(QH,b.key)){b.preventDefault();var d=$APP.m(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return eH(nH.i(c)+d);case "ArrowLeft":return eH(nH.i(c)-d);case "Home":return 0;case "End":return 360;default:return nH.i(c)}}();KH(a,e,oH.i(c),pH.i(c),lH.i(c),BH.i(c));IH(a,HH(a));return JH(a,HH(a))}return null},Uka=function(a,b){var c=HH(a);if($APP.m(function(){var f=EH(c);return f?(f=BH.i(c),$APP.m(f)?$APP.bd(QH,
21
+ b.key):f):f}())){b.preventDefault();var d=$APP.m(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return gH(lH.i(c)+d);case "ArrowLeft":return gH(lH.i(c)-d);case "Home":return 0;case "End":return 1;default:return lH.i(c)}}();KH(a,nH.i(c),oH.i(c),pH.i(c),e,!0);IH(a,HH(a));return JH(a,HH(a))}return null},Vka=function(a){var b=HH(a);return EH(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.U(a,"value",c.sRGBHex);return JH(a,HH(a))}).catch(function(){return null}):
22
+ null},Wka=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},RH=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},Xka=function(a,b){return $APP.m(a.hasAttribute("open"))?$APP.m(b.composedPath().some(function(c){return c===a}))?null:RH(a):null},
23
+ Yka=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=HH(a);b=NH($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,MH);d=$APP.C(d,$APP.To);b=wH(nH.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,nH);d=$APP.C(e,oH);e=$APP.C(e,pH);KH(a,b,d,e,lH.i(c),BH.i(c));c=IH(a,HH(a))}else c=null;return c},copy:function(){var b=HH(a);return $APP.m(navigator.clipboard)?navigator.clipboard.writeText(DH.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
24
+ b.key)&&$APP.z.j("popover",$APP.ym.i(HH(a)))?(b.preventDefault(),b.stopPropagation(),b=RH(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.T(a,"__xColorPickerDragging",null);var b=JH(a,HH(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=JH(a,HH(a))}else b=null;return b},"alpha-key":function(b){return Uka(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
25
+ $APP.l(a,"__xColorPickerDragging"))){var c=HH(a);b=PH($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);KH(a,nH.i(c),oH.i(c),pH.i(c),b,!0);c=IH(a,HH(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=HH(a);if(EH(d)){if(iH(c)){$APP.U(a,"value",c);b=JH(a,HH(a));break a}b=b.value=DH.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=HH(a);if(EH(c)&&(b=b.target,$APP.m(b.hasAttribute("data-color")))){b=
26
+ b.getAttribute("data-color");$APP.U(a,"value",b);b=JH(a,HH(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=JH(a,HH(a))}else b=null;return b},"alpha-down":function(b){var c=HH(a);var d=(d=EH(c))?BH.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=PH(d,b),KH(a,nH.i(c),oH.i(c),pH.i(c),
27
+ b,!0),c=IH(a,HH(a))):c=null;return c},"area-key":function(b){return Ska(a,b)},"hue-down":function(b){var c=HH(a);if(EH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.T(a,"__xColorPickerDragging","hue");b=OH(d,b);KH(a,b,oH.i(c),pH.i(c),lH.i(c),BH.i(c));c=IH(a,HH(a))}else c=null;return c},"hue-key":function(b){return Tka(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=HH(a);b=OH($APP.l($APP.l(a,
28
+ "__xColorPickerRefs"),"hue-strip"),b);KH(a,b,oH.i(c),pH.i(c),lH.i(c),BH.i(c));c=IH(a,HH(a))}else c=null;return c},eyedrop:function(){return Vka(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=HH(a);return $APP.z.j("popover",$APP.ym.i(b))&&$APP.p($APP.Kk.i(b))?$APP.m($APP.js.i(b))?RH(a):Wka(a):null},"doc-click":function(b){return Xka(a,b)},"area-down":function(b){var c=HH(a);if(EH(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
29
+ $APP.T(a,"__xColorPickerDragging","area");b=NH(d,b);d=$APP.G(b);b=$APP.C(d,MH);d=$APP.C(d,$APP.To);b=wH(nH.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,nH);d=$APP.C(e,oH);e=$APP.C(e,pH);KH(a,b,d,e,lH.i(c),BH.i(c));c=IH(a,HH(a))}else c=null;return c}}},TH=function(a,b){return $APP.z.j(b,SH)?document:$APP.l(a,b)},VH=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(UH),e=null,f=0,g=0;;)if(g<f){var k=e.C(null,g),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);TH(b,n).removeEventListener(r,$APP.l(c,v),k);g+=1}else if(d=$APP.q(d))$APP.Xc(d)?(f=$APP.Ab(d),d=$APP.Bb(d),e=f,f=$APP.x(f)):(n=$APP.t(d),e=$APP.B(n,0,null),f=$APP.B(n,1,null),g=$APP.B(n,2,null),n=$APP.B(n,3,null),TH(b,e).removeEventListener(f,$APP.l(c,g),n),d=$APP.u(d),e=null,f=0),g=0;else break;return $APP.T(a,"__xColorPickerHandlers",null)}return null},Zka=function(a){$APP.U(a,"value","#000000");return LH(a)},ala=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 g=document.createElement("span");$APP.U(f,"part","trigger");$APP.U(f,"type","button");$APP.U(f,"aria-label","Pick color");$APP.U(g,"part","trigger-swatch");f.appendChild(g);f=new $APP.K(null,2,[$APP.Gt,f,WH,g],null);g=document.createElement("div");var k=document.createElement("div");$APP.U(g,"part",
32
+ "area");$APP.U(g,"role","slider");$APP.U(g,"tabindex","0");$APP.U(g,"aria-label","Color");$APP.U(k,"part","area-thumb");g.appendChild(k);g=new $APP.K(null,2,[XH,g,YH,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");FH(n,"hue-strip","Hue","360");FH(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,[ZH,k,$H,n,aI,r,bI,v,cI,w,dI,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");GH(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
+ GH(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.Ir,n,eI,r,fI,v,gI,w,hI,y,$APP.ls,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,[zH,r],null);c.textContent=$ka;$APP.U(d,"part","container");$APP.U(e,"part","panel");e.appendChild(XH.i(g));e.appendChild(ZH.i(k));e.appendChild($APP.Ir.i(n));e.appendChild(zH.i(r));d.appendChild($APP.Gt.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);
37
+ b={"alpha-thumb":dI.i(k),copy:$APP.ls.i(n),swatches:zH.i(r),"hue-strip":$H.i(k),controls:$APP.Ir.i(n),"alpha-gradient":cI.i(k),panel:e,preview:eI.i(n),"area-thumb":YH.i(g),"preview-color":fI.i(n),container:d,area:XH.i(g),"hue-thumb":aI.i(k),"trigger-swatch":WH.i(f),trigger:$APP.Gt.i(f),"alpha-strip":bI.i(k),eyedropper:hI.i(n),"hex-input":gI.i(n)};$APP.T(a,"__xColorPickerRefs",b);$APP.m(a.attachInternals)&&$APP.T(a,"__xColorPickerInternals",a.attachInternals())}VH(a);b=$APP.l(a,"__xColorPickerRefs");
38
+ if($APP.m(b)){c=Yka(a);d=$APP.q(UH);e=null;for(g=f=0;;)if(g<f)v=e.C(null,g),k=$APP.B(v,0,null),n=$APP.B(v,1,null),r=$APP.B(v,2,null),v=$APP.B(v,3,null),TH(b,k).addEventListener(n,$APP.l(c,r),v),g+=1;else if(d=$APP.q(d))$APP.Xc(d)?(f=$APP.Ab(d),d=$APP.Bb(d),e=f,f=$APP.x(f)):(k=$APP.t(d),e=$APP.B(k,0,null),f=$APP.B(k,1,null),g=$APP.B(k,2,null),k=$APP.B(k,3,null),TH(b,e).addEventListener(f,$APP.l(c,g),k),d=$APP.u(d),e=null,f=0),g=0;else break;$APP.T(a,"__xColorPickerHandlers",c)}return LH(a)},bla=function(a){return VH(a)},
39
+ cla=function(a,b,c,d){return $APP.M.j(c,d)?LH(a):null},ela=function(a){$APP.xj(a,"__xColorPickerInternals");return $APP.Mi(a,dla)},iI=function(){return $APP.kj("x-color-picker",new $APP.K(null,7,[$APP.jj,fla,$APP.hj,ala,$APP.ej,bla,$APP.dj,cla,$APP.fj,!0,$APP.Ui,Zka,$APP.ij,ela],null))},cI=new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),dI=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),fI=new $APP.F(null,"preview-color","preview-color",1405210195),bI=new $APP.F(null,"alpha-strip",
40
+ "alpha-strip",1085401595),YH=new $APP.F(null,"area-thumb","area-thumb",1471343090),BH=new $APP.F(null,"alpha?","alpha?",1329751525),MH=new $APP.F(null,"sat","sat",1064662667),WH=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),SH=new $APP.F(null,"document","document",-1329188687),hI=new $APP.F(null,"eyedropper","eyedropper",-1786107588),XH=new $APP.F(null,"area","area",472007256),AH=new $APP.F(null,"alpha","alpha",-1574982441),DH=new $APP.F(null,"hex-full","hex-full",-1466644518),gI=new $APP.F(null,
41
+ "hex-input","hex-input",1497535517),eI=new $APP.F(null,"preview","preview",451279890),$H=new $APP.F(null,"hue-strip","hue-strip",938856876),zH=new $APP.F(null,"swatches","swatches",2033601707),ZH=new $APP.F(null,"strips","strips",-1564791997),uH=new $APP.F(null,"v","v",21465059),oH=new $APP.F(null,"s","s",1705939918),jH=new $APP.F(null,"r","r",-471384190),pH=new $APP.F(null,"l","l",1395893423),nH=new $APP.F(null,"h","h",1109658740),kH=new $APP.F(null,"b","b",1482224470),lH=new $APP.F(null,"a","a",
42
+ -2123407586),CH=new $APP.F(null,"hex","hex",41691346),aI=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var yH=new $APP.Jg(null,new $APP.K(null,2,["inline",null,"popover",null],null),null),fla="value alpha swatches disabled readonly name mode open label".split(" "),dla=$APP.lg([$APP.Gv,$APP.av,$APP.jv,$APP.Rp,$APP.Rm,$APP.Ik,$APP.Q,$APP.ym,zH,$APP.cv,$APP.Z,AH,$APP.dr,$APP.Eq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.Ji,!0],null),new $APP.K(null,2,[$APP.P,$APP.Ki,$APP.W,"open"],null),new $APP.K(null,2,[$APP.P,$APP.eq,$APP.Ji,!0],null),new $APP.K(null,2,[$APP.P,$APP.Ki,$APP.Ji,!0],null),new $APP.K(null,
43
+ 2,[$APP.P,$APP.Ki,$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.ru,yH],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"swatches"],null),new $APP.K(null,2,[$APP.P,$APP.Ki,$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.Ki,$APP.W,"alpha"],null),new $APP.K(null,2,[$APP.P,$APP.fu,$APP.Ji,!0],null),new $APP.K(null,
44
+ 2,[$APP.P,$APP.Tt,$APP.Ji,!0],null)]);$APP.ee(["x-color-picker-input",new $APP.K(null,2,[$APP.ui,new $APP.K(null,5,[$APP.Q,$APP.X,nH,$APP.Y,oH,$APP.Y,pH,$APP.Y,lH,$APP.Y],null),$APP.Cr,!1],null),"x-color-picker-change",new $APP.K(null,2,[$APP.ui,new $APP.K(null,5,[$APP.Q,$APP.X,nH,$APP.Y,oH,$APP.Y,pH,$APP.Y,lH,$APP.Y],null),$APP.Cr,!0],null)]);var hH=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var $ka=":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
- Yja=new $APP.Yg(null,new $APP.K(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),nH=new $APP.Yg(null,new $APP.K(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),rH=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
- "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
- ["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,[pH,"pointerdown","doc-click",!0],null)],null);$APP.ha("baredom.exports.x_color_picker.init",GH);export const init=GH;
46
+ Rka=new $APP.Jg(null,new $APP.K(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),QH=new $APP.Jg(null,new $APP.K(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),UH=new $APP.H(null,20,5,$APP.I,[new $APP.H(null,4,5,$APP.I,["area","pointerdown","area-down",!1],null),new $APP.H(null,4,5,$APP.I,["area","pointermove","area-move",!1],null),new $APP.H(null,4,5,$APP.I,["area","pointerup","area-up",!1],null),new $APP.H(null,4,5,$APP.I,["area",
47
+ "keydown","area-key",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","pointerdown","hue-down",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","pointermove","hue-move",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","pointerup","hue-up",!1],null),new $APP.H(null,4,5,$APP.I,["hue-strip","keydown","hue-key",!1],null),new $APP.H(null,4,5,$APP.I,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.H(null,4,5,$APP.I,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.H(null,4,5,$APP.I,
48
+ ["alpha-strip","pointerup","alpha-up",!1],null),new $APP.H(null,4,5,$APP.I,["alpha-strip","keydown","alpha-key",!1],null),new $APP.H(null,4,5,$APP.I,["hex-input","keydown","hex-key",!1],null),new $APP.H(null,4,5,$APP.I,["swatches","click","swatch",!1],null),new $APP.H(null,4,5,$APP.I,["eyedropper","click","eyedrop",!1],null),new $APP.H(null,4,5,$APP.I,["copy","click","copy",!1],null),new $APP.H(null,4,5,$APP.I,["trigger","click","trigger",!1],null),new $APP.H(null,4,5,$APP.I,["panel","keydown","panel-key",
49
+ !1],null),new $APP.H(null,4,5,$APP.I,["panel","pointerdown","panel-pd",!1],null),new $APP.H(null,4,5,$APP.I,[SH,"pointerdown","doc-click",!0],null)],null);$APP.ea("baredom.exports.x_color_picker.init",iI);export const init=iI;