@vanelsas/baredom 3.4.0 → 3.5.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 (129) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/custom-elements.json +4430 -3627
  3. package/dist/baredom.d.ts +92 -92
  4. package/dist/base.js +394 -388
  5. package/dist/integrity.json +108 -108
  6. package/dist/x-alert.js +16 -16
  7. package/dist/x-avatar-group.js +9 -9
  8. package/dist/x-avatar.js +13 -13
  9. package/dist/x-badge.js +8 -8
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +13 -13
  13. package/dist/x-button.js +1 -1
  14. package/dist/x-calendar.js +31 -31
  15. package/dist/x-cancel-dialogue.js +11 -11
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +25 -25
  18. package/dist/x-chart.js +43 -43
  19. package/dist/x-checkbox.d.ts +11 -4
  20. package/dist/x-checkbox.js +1 -1
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.js +24 -24
  23. package/dist/x-collapse.js +8 -8
  24. package/dist/x-color-picker.d.ts +7 -0
  25. package/dist/x-color-picker.js +34 -34
  26. package/dist/x-combobox.d.ts +12 -5
  27. package/dist/x-combobox.js +30 -29
  28. package/dist/x-command-palette.js +27 -27
  29. package/dist/x-confetti.js +22 -22
  30. package/dist/x-container.js +3 -3
  31. package/dist/x-context-menu.js +18 -18
  32. package/dist/x-copy.js +1 -1
  33. package/dist/x-currency-field.d.ts +5 -0
  34. package/dist/x-currency-field.js +21 -21
  35. package/dist/x-date-picker.d.ts +7 -0
  36. package/dist/x-date-picker.js +36 -35
  37. package/dist/x-divider.js +9 -9
  38. package/dist/x-drawer.js +8 -8
  39. package/dist/x-dropdown.js +12 -12
  40. package/dist/x-fieldset.js +5 -5
  41. package/dist/x-file-download.js +5 -5
  42. package/dist/x-file-upload.d.ts +10 -5
  43. package/dist/x-file-upload.js +23 -20
  44. package/dist/x-form-field.d.ts +7 -0
  45. package/dist/x-form-field.js +13 -12
  46. package/dist/x-form.js +10 -10
  47. package/dist/x-gaussian-blur.js +11 -11
  48. package/dist/x-grid.js +6 -6
  49. package/dist/x-i18n-provider.js +6 -6
  50. package/dist/x-i18n.js +4 -4
  51. package/dist/x-icon.js +7 -7
  52. package/dist/x-image.js +16 -16
  53. package/dist/x-kbd.js +11 -11
  54. package/dist/x-kinetic-canvas.js +24 -24
  55. package/dist/x-kinetic-font.js +22 -22
  56. package/dist/x-kinetic-typography.js +27 -27
  57. package/dist/x-liquid-dock.js +30 -30
  58. package/dist/x-liquid-fill.js +35 -35
  59. package/dist/x-liquid-glass.js +26 -26
  60. package/dist/x-menu-item.js +6 -6
  61. package/dist/x-menu.js +7 -7
  62. package/dist/x-metaball-cursor.js +17 -17
  63. package/dist/x-modal.js +10 -10
  64. package/dist/x-morph-stack.js +28 -28
  65. package/dist/x-multi-combobox.d.ts +7 -0
  66. package/dist/x-multi-combobox.js +36 -36
  67. package/dist/x-navbar.js +12 -12
  68. package/dist/x-neural-glow.js +19 -19
  69. package/dist/x-notification-center.js +9 -9
  70. package/dist/x-organic-divider.js +13 -13
  71. package/dist/x-organic-progress.js +30 -30
  72. package/dist/x-organic-shape.js +7 -7
  73. package/dist/x-otp-input.d.ts +5 -0
  74. package/dist/x-otp-input.js +19 -19
  75. package/dist/x-pagination.js +11 -11
  76. package/dist/x-particle-button.js +40 -40
  77. package/dist/x-popover.js +24 -24
  78. package/dist/x-progress-circle.js +6 -6
  79. package/dist/x-progress.js +6 -6
  80. package/dist/x-proximity-list.js +20 -20
  81. package/dist/x-radio.d.ts +10 -3
  82. package/dist/x-radio.js +12 -11
  83. package/dist/x-range-slider.d.ts +7 -0
  84. package/dist/x-range-slider.js +27 -27
  85. package/dist/x-rating.d.ts +7 -0
  86. package/dist/x-rating.js +19 -18
  87. package/dist/x-ripple-effect.js +7 -7
  88. package/dist/x-scroll-parallax.js +17 -17
  89. package/dist/x-scroll-stack.js +15 -15
  90. package/dist/x-scroll-story.js +29 -29
  91. package/dist/x-scroll-timeline.js +39 -39
  92. package/dist/x-scroll.js +32 -32
  93. package/dist/x-search-field.d.ts +9 -4
  94. package/dist/x-search-field.js +1 -1
  95. package/dist/x-select.d.ts +9 -2
  96. package/dist/x-select.js +1 -1
  97. package/dist/x-sidebar.js +14 -14
  98. package/dist/x-skeleton-group.js +11 -11
  99. package/dist/x-skeleton.js +1 -1
  100. package/dist/x-slider.d.ts +7 -0
  101. package/dist/x-slider.js +16 -15
  102. package/dist/x-soft-body.js +13 -13
  103. package/dist/x-spacer.js +4 -4
  104. package/dist/x-spinner.js +3 -3
  105. package/dist/x-splash.js +11 -11
  106. package/dist/x-split-pane.js +13 -13
  107. package/dist/x-spotlight-card.js +12 -12
  108. package/dist/x-stat.js +7 -7
  109. package/dist/x-stepper.js +13 -13
  110. package/dist/x-switch.d.ts +10 -3
  111. package/dist/x-switch.js +11 -10
  112. package/dist/x-tab.js +6 -6
  113. package/dist/x-table-cell.js +15 -15
  114. package/dist/x-table-row.js +7 -7
  115. package/dist/x-table.d.ts +32 -32
  116. package/dist/x-table.js +12 -12
  117. package/dist/x-tabs.js +9 -9
  118. package/dist/x-text-area.d.ts +7 -0
  119. package/dist/x-text-area.js +18 -18
  120. package/dist/x-theme.js +21 -21
  121. package/dist/x-timeline-item.js +18 -18
  122. package/dist/x-timeline.js +8 -8
  123. package/dist/x-toast.js +20 -20
  124. package/dist/x-toaster.js +6 -6
  125. package/dist/x-tooltip.js +11 -11
  126. package/dist/x-trace-history.js +96 -96
  127. package/dist/x-typography.js +5 -5
  128. package/dist/x-welcome-tour.js +52 -52
  129. package/package.json +1 -1
package/dist/x-table.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
2
  var UM=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},WM=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:rgba(0,0,0,0.025);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:0.875rem;--x-table-caption-font-weight:600;--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:rgba(255,255,255,0.03);}}:host([data-bordered]){border:1px solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";
3
- $APP.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.cl,b,VM,d,$APP.ht,e],null));return $APP.l(a,"__xTableRefs")},gN=function(a){a=new $APP.M(null,8,[XM,a.getAttribute("columns"),YM,a.getAttribute("caption"),ZM,a.getAttribute("selectable"),$APP.Ds,a.hasAttribute("striped"),$M,a.hasAttribute("bordered"),aN,a.hasAttribute("full-width"),bN,a.hasAttribute("compact"),cN,a.getAttribute("row-count")],null);var b=
4
- $APP.G(a),c=$APP.C(b,XM),d=$APP.C(b,YM),e=$APP.C(b,ZM);a=$APP.C(b,$APP.Ds);var f=$APP.C(b,$M),h=$APP.C(b,aN),k=$APP.C(b,bN);b=$APP.C(b,cN);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",minmax(0,1fr))":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.cd(yda,e)?e:"none";return new $APP.M(null,8,[$APP.ks,c,dN,d,eN,e,$APP.Ds,$APP.D(a),$M,$APP.D(f),aN,$APP.D(h),
5
- bN,$APP.D(k),fN,UM(b)],null)},hN=function(a){a=$APP.q($APP.we.m($APP.Vo,$APP.Cc(a.querySelectorAll("x-table-row")),$APP.vh(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Yc(a)?(b=$APP.Db(a),a=$APP.Eb(a),f=b,c=$APP.w(b),b=f):(b=$APP.u(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,
6
- "data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},iN=function(a){var b=gN(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ds),d=WM(a);d=$APP.G(d);d=$APP.C(d,VM);var e=$APP.G(b);e=$APP.C(e,$APP.ks);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,eN);e=$APP.C(f,fN);f=$APP.C(f,dN);$APP.T(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.T(a,"aria-multiselectable",h):$APP.U(a,
7
- "aria-multiselectable");e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,dN);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Ds);e=$APP.C(f,$M);h=$APP.C(f,aN);f=$APP.C(f,bN);$APP.n(d)?$APP.T(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.T(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.T(a,
8
- "data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&hN(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},zda=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:gN(a);return $APP.n($APP.Ds.i(f))?hN(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:gN(a);var k=eN.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.fj(a,"x-table-row-select",$APP.qm(new $APP.M(null,
9
- 3,[$APP.ir,$APP.n(f)?f:0,$APP.Mr,$APP.p(h.hasAttribute("selected")),jN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Dc(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,t=0;;)if(t<r){var x=m.C(null,t);$APP.U(x,"selected");t+=1}else if(k=$APP.q(k))m=k,$APP.Yc(m)?(k=$APP.Db(m),t=$APP.Eb(m),m=k,r=$APP.w(k),k=t):(k=$APP.u(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),t=0;else break;h=$APP.n(f)?null:$APP.T(h,"selected",
10
- "")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.T(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.fj(a,"x-table-sort",$APP.qm(new $APP.M(null,3,[kN,h,$APP.Vq,k,$APP.hu,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",
11
- c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},lN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},Ada=function(a){$APP.lj(a,"columns",
12
- "columns","");$APP.lj(a,"caption","caption","");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return UM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Bda=function(a){WM(a);lN(a);zda(a);
13
- return iN(a)},Cda=function(a){return lN(a)},Dda=function(a,b,c,d){return $APP.I(c,d)?iN(a):null},mN=function(){return $APP.xi("x-table",new $APP.M(null,5,[$APP.hi,Eda,$APP.fi,Bda,$APP.ci,Cda,$APP.bi,Dda,$APP.gi,Ada],null))},aN=new $APP.F(null,"full-width?","full-width?",1477288349),cN=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),ZM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),kN=new $APP.F(null,"colIndex","colIndex",171239635),fN=new $APP.F(null,"row-count","row-count",
14
- 1060167988),YM=new $APP.F(null,"caption-raw","caption-raw",-375935083),jN=new $APP.F(null,"selectionMode","selectionMode",1264773367),XM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),eN=new $APP.F(null,"selectable","selectable",370587038),dN=new $APP.F(null,"caption","caption",-855383902),$M=new $APP.F(null,"bordered?","bordered?",562358476),VM=new $APP.F(null,"caption-div","caption-div",1485363333),bN=new $APP.F(null,"compact?","compact?",1216893298);var Eda="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.he(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[kN,$APP.Z,$APP.Vq,$APP.X,$APP.hu,$APP.X],null),$APP.Pt,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.ir,$APP.Z,$APP.Mr,$APP.qj,jN,$APP.X],null),$APP.Pt,!0],null)]);var yda=new $APP.ah(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",mN);export const init=mN;
3
+ $APP.T(d,"part","caption");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTableRefs",new $APP.M(null,3,[$APP.Sk,b,VM,d,$APP.qt,e],null));return $APP.l(a,"__xTableRefs")},gN=function(a){a=new $APP.M(null,8,[XM,a.getAttribute("columns"),YM,a.getAttribute("caption"),ZM,a.getAttribute("selectable"),$APP.Ls,a.hasAttribute("striped"),$M,a.hasAttribute("bordered"),aN,a.hasAttribute("full-width"),bN,a.hasAttribute("compact"),cN,a.getAttribute("row-count")],null);var b=
4
+ $APP.G(a),c=$APP.C(b,XM),d=$APP.C(b,YM),e=$APP.C(b,ZM);a=$APP.C(b,$APP.Ls);var f=$APP.C(b,$M),h=$APP.C(b,aN),k=$APP.C(b,bN);b=$APP.C(b,cN);a:{if(typeof c==="string"&&(c=c.trim(),$APP.I(c,""))){var m=parseInt(c,10);c=$APP.p(isNaN(m))&&m>0&&$APP.z.j(c,""+$APP.P.i(m))?"repeat("+$APP.P.i(m)+",minmax(0,1fr))":c;break a}c=null}d=$APP.n(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.bd(Lda,e)?e:"none";return new $APP.M(null,8,[$APP.rs,c,dN,d,eN,e,$APP.Ls,$APP.D(a),$M,$APP.D(f),aN,$APP.D(h),
5
+ bN,$APP.D(k),fN,UM(b)],null)},hN=function(a){a=$APP.q($APP.we.m($APP.Yo,$APP.Cc(a.querySelectorAll("x-table-row")),$APP.oh(0,Number.MAX_VALUE)));for(var b=null,c=0,d=0;;)if(d<c){var e=b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.Yc(a)?(b=$APP.Db(a),a=$APP.Eb(a),f=b,c=$APP.w(b),b=f):(b=$APP.u(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.sd(e+1,2)===0?$APP.T(f,"data-stripe","even"):$APP.U(f,
6
+ "data-stripe"),a=$APP.v(a),b=null,c=0),d=0;else return null},iN=function(a){var b=gN(a);if($APP.I($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Ls),d=WM(a);d=$APP.G(d);d=$APP.C(d,VM);var e=$APP.G(b);e=$APP.C(e,$APP.rs);$APP.n(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,eN);e=$APP.C(f,fN);f=$APP.C(f,dN);$APP.T(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.n(h)?$APP.T(a,"aria-multiselectable",h):$APP.U(a,
7
+ "aria-multiselectable");e!=null?$APP.T(a,"aria-rowcount",""+$APP.P.i(e)):$APP.U(a,"aria-rowcount");$APP.I(f,"")?$APP.T(a,"aria-label",f):$APP.U(a,"aria-label");e=$APP.G(b);e=$APP.C(e,dN);$APP.I(e,"")?(d.textContent=e,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Ls);e=$APP.C(f,$M);h=$APP.C(f,aN);f=$APP.C(f,bN);$APP.n(d)?$APP.T(a,"data-striped",""):$APP.U(a,"data-striped");$APP.n(e)?$APP.T(a,"data-bordered",""):$APP.U(a,"data-bordered");$APP.n(h)?$APP.T(a,
8
+ "data-full-width",""):$APP.U(a,"data-full-width");$APP.n(f)?$APP.T(a,"data-compact",""):$APP.U(a,"data-compact");$APP.n(c)&&hN(a);a=$APP.Q(a,"__xTableModel",b)}else a=null;return a},Mda=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.n(f)?f:gN(a);return $APP.n($APP.Ls.i(f))?hN(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.n(h)?h:gN(a);var k=eN.i(h);if($APP.I(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.fj(a,"x-table-row-select",$APP.tm(new $APP.M(null,
9
+ 3,[$APP.mr,$APP.n(f)?f:0,$APP.Rr,$APP.p(h.hasAttribute("selected")),jN,k],null))),$APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Dc(a.querySelectorAll(""+$APP.P.i("x-table-row")+"["+$APP.P.i("selected")+"]"));k=$APP.q(k);for(var m=null,r=0,t=0;;)if(t<r){var x=m.C(null,t);$APP.U(x,"selected");t+=1}else if(k=$APP.q(k))m=k,$APP.Yc(m)?(k=$APP.Db(m),t=$APP.Eb(m),m=k,r=$APP.w(k),k=t):(k=$APP.u(m),$APP.U(k,"selected"),k=$APP.v(m),m=null,r=0),t=0;else break;h=$APP.n(f)?null:$APP.T(h,"selected",
10
+ "")}else h=$APP.z.j(k,"multi")?$APP.n(h.hasAttribute("selected"))?$APP.U(h,"selected"):$APP.T(h,"selected",""):null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);var k=$APP.l(f.detail,"direction"),m=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.fj(a,"x-table-sort",$APP.tm(new $APP.M(null,3,[kN,h,$APP.Yq,k,$APP.ru,m],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",
11
+ c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.Q(a,"__xTableHandlers",e)},lN=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.n(b)){var c=$APP.l(b,"sort"),d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.n(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.n(d)&&a.removeEventListener("x-table-row-click",d);$APP.n(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.Q(a,"__xTableHandlers",null)},Nda=function(a){$APP.lj(a,"columns",
12
+ "columns","");$APP.lj(a,"caption","caption","");$APP.lj(a,"selectable","selectable","none");$APP.ij(a,"striped","striped");$APP.ij(a,"bordered","bordered");$APP.ij(a,"compact","compact");$APP.ij(a,"fullWidth","full-width");return Object.defineProperty(a,"rowCount",{get:function(){return UM(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.U(this,"row-count"):$APP.T(this,"row-count",""+$APP.P.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Oda=function(a){WM(a);lN(a);Mda(a);
13
+ return iN(a)},Pda=function(a){return lN(a)},Qda=function(a,b,c,d){return $APP.I(c,d)?iN(a):null},mN=function(){return $APP.qi("x-table",new $APP.M(null,5,[$APP.hi,Rda,$APP.fi,Oda,$APP.ci,Pda,$APP.bi,Qda,$APP.gi,Nda],null))},aN=new $APP.F(null,"full-width?","full-width?",1477288349),cN=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),ZM=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),kN=new $APP.F(null,"colIndex","colIndex",171239635),fN=new $APP.F(null,"row-count","row-count",
14
+ 1060167988),YM=new $APP.F(null,"caption-raw","caption-raw",-375935083),jN=new $APP.F(null,"selectionMode","selectionMode",1264773367),XM=new $APP.F(null,"columns-raw","columns-raw",-2093994046),eN=new $APP.F(null,"selectable","selectable",370587038),dN=new $APP.F(null,"caption","caption",-855383902),$M=new $APP.F(null,"bordered?","bordered?",562358476),VM=new $APP.F(null,"caption-div","caption-div",1485363333),bN=new $APP.F(null,"compact?","compact?",1216893298);var Rda="columns caption selectable striped bordered full-width compact row-count".split(" ");$APP.he(["x-table-sort",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[kN,$APP.Z,$APP.Yq,$APP.X,$APP.ru,$APP.X],null),$APP.Yt,!0],null),"x-table-row-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.mr,$APP.Z,$APP.Rr,$APP.qj,jN,$APP.X],null),$APP.Yt,!0],null)]);var Lda=new $APP.ah(null,new $APP.M(null,3,["none",null,"single",null,"multi",null],null),null);$APP.fa("baredom.exports.x_table.init",mN);export const init=mN;
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var ET=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.Ws),d=$APP.C(b,DT),e=$APP.C(b,$APP.ek);b=$APP.C(b,$APP.iu);c=$APP.cd(kha,c)?c:"horizontal";d=$APP.cd(lha,d)?d:"auto";return new $APP.M(null,5,[$APP.Si,a,$APP.Ws,c,DT,d,$APP.ek,e,$APP.iu,$APP.D(b)],null)},FT=function(a){return new $APP.M(null,5,[$APP.Si,a.getAttribute("value"),$APP.Ws,a.getAttribute("orientation"),DT,a.getAttribute("activation"),$APP.ek,a.getAttribute("label"),$APP.iu,a.hasAttribute("loop")],null)},GT=function(a){return $APP.$e($APP.Ce(function(b){return $APP.z.j("X-TAB",
3
- b.tagName)},$APP.Cc(a.children)))},HT=function(a){return $APP.p(a.hasAttribute("disabled"))},IT=function(a){return a.getAttribute("value")},mha=function(a){return $APP.ne(function(b){return HT(b)?b:null},a)},JT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.T(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},KT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.T(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
4
- $APP.U(a,"selected"))},LT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.T(a,"tabindex",b)},MT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.T(a,"hidden","")))},NT=function(a){var b=GT(a),c=a.getAttribute("value"),d=$APP.fh($APP.re(IT,b));$APP.n($APP.n(c)?$APP.cd(d,c):c)||(c=mha(b),c=$APP.n(c)?IT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
2
+ var ET=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Si);var c=$APP.C(b,$APP.et),d=$APP.C(b,DT),e=$APP.C(b,$APP.hk);b=$APP.C(b,$APP.su);c=$APP.bd(xha,c)?c:"horizontal";d=$APP.bd(yha,d)?d:"auto";return new $APP.M(null,5,[$APP.Si,a,$APP.et,c,DT,d,$APP.hk,e,$APP.su,$APP.D(b)],null)},FT=function(a){return new $APP.M(null,5,[$APP.Si,a.getAttribute("value"),$APP.et,a.getAttribute("orientation"),DT,a.getAttribute("activation"),$APP.hk,a.getAttribute("label"),$APP.su,a.hasAttribute("loop")],null)},GT=function(a){return $APP.Ye($APP.Ce(function(b){return $APP.z.j("X-TAB",
3
+ b.tagName)},$APP.Cc(a.children)))},HT=function(a){return $APP.p(a.hasAttribute("disabled"))},IT=function(a){return a.getAttribute("value")},zha=function(a){return $APP.ne(function(b){return HT(b)?b:null},a)},JT=function(a,b){var c=a.getAttribute("value");$APP.n($APP.n(b)?$APP.I(c,b):b)?$APP.T(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.n(b?c:b)&&$APP.U(a,"value"))},KT=function(a,b){var c=a.hasAttribute("selected");$APP.n($APP.n(b)?$APP.p(c):b)?$APP.T(a,"selected",""):(b=$APP.p(b),$APP.n(b?c:b)&&
4
+ $APP.U(a,"selected"))},LT=function(a,b){var c=a.getAttribute("tabindex");$APP.I(c,b)&&$APP.T(a,"tabindex",b)},MT=function(a,b){a=a.getAttribute("controls");$APP.n($APP.n(a)?$APP.I(a,""):a)&&(a=document.getElementById(a),$APP.n(a)&&($APP.n(b)?$APP.U(a,"hidden"):$APP.T(a,"hidden","")))},NT=function(a){var b=GT(a),c=a.getAttribute("value"),d=$APP.fh($APP.re(IT,b));$APP.n($APP.n(c)?$APP.bd(d,c):c)||(c=zha(b),c=$APP.n(c)?IT(c):null);if($APP.n(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=e.C(null,
5
5
  h),m=$APP.z.j(IT(k),c);KT(k,m);m&&HT(k)?LT(k,"0"):LT(k,"-1");h+=1}else if(d=$APP.q(d))$APP.Yc(d)?(e=$APP.Db(d),d=$APP.Eb(d),k=e,f=$APP.w(e),e=k):(k=$APP.u(d),e=$APP.z.j(IT(k),c),KT(k,e),e&&HT(k)?LT(k,"0"):LT(k,"-1"),d=$APP.v(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),MT(k,$APP.z.j(IT(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.Yc(d)?(b=$APP.Db(d),e=$APP.Eb(d),d=b,k=$APP.w(b),b=e,e=k):(k=$APP.u(d),MT(k,$APP.z.j(IT(k),c)),b=$APP.v(d),d=null,e=0),f=0;else break a;
6
6
  JT(a,c)}return c},OT=function(a,b){var c=a.getAttribute("value");return $APP.n($APP.n(b)?$APP.I(c,b):b)&&$APP.fj(a,"value-change-request",{value:b,previousValue:$APP.n(c)?c:""})?(JT(a,b),NT(a),$APP.dj(a,"value-change",{value:$APP.n(b)?b:""})):null},PT=function(a,b,c){b=$APP.w(b)-1;var d=a+1;return d<=b?d:$APP.n(c)?0:a},QT=function(a,b,c){var d=a-1;b=$APP.w(b)-1;return d>=0?d:$APP.n(c)?b:a},RT=function(a){var b=ET(FT(a));if($APP.I(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");if($APP.n(c)){$APP.T(c,
7
- "role","tablist");$APP.T(c,"aria-orientation",$APP.Ws.i(b));var d=$APP.ek.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return NT(a)},nha=function(a){var b=new MutationObserver(function(){return RT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},ST=function(a){function b(d){a:{var e=$APP.$e($APP.Ce(HT,GT(a))),f=ET(FT(a)),h=$APP.Ws.i(f);
8
- var k=DT.i(f);f=$APP.iu.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?PT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?QT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?PT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?QT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?OT(a,IT(d)):null:
9
- null;break a}k=null}return k}function c(d){d.stopPropagation();return OT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);nha(a)},oha=function(a){if($APP.Ti(a,"__xTabsInitialized"))return ST(a),RT(a);if(!$APP.Ti(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
10
- $APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);ST(a);$APP.Ui(a,"__xTabsInitialized")}RT(a);return a},pha=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},qha=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ti(a,"__xTabsInitialized")?RT(a):
11
- null},sha=function(a){return $APP.sj(a,rha)},TT=function(){return $APP.xi("x-tabs",new $APP.M(null,5,[$APP.hi,tha,$APP.fi,oha,$APP.ci,pha,$APP.bi,qha,$APP.gi,sha],null))},DT=new $APP.F(null,"activation","activation",2128521072);var tha=["value","orientation","activation","label","loop"],kha=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),lha=new $APP.ah(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),rha=new $APP.M(null,1,[$APP.Si,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null)],null);
12
- $APP.he(["value-change-request",new $APP.M(null,2,[$APP.Pt,!0,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.ss,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",TT);export const init=TT;
7
+ "role","tablist");$APP.T(c,"aria-orientation",$APP.et.i(b));var d=$APP.hk.i(b);$APP.n($APP.n(d)?$APP.I(d,""):d)?$APP.T(c,"aria-label",d):$APP.U(c,"aria-label")}$APP.Q(a,"__xTabsModel",b)}return NT(a)},Aha=function(a){var b=new MutationObserver(function(){return RT(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.Q(a,"__xTabsObserver",b)},ST=function(a){function b(d){a:{var e=$APP.Ye($APP.Ce(HT,GT(a))),f=ET(FT(a)),h=$APP.et.i(f);
8
+ var k=DT.i(f);f=$APP.su.i(f);var m=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowRight")?PT(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(m,"ArrowLeft")?QT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowDown")?PT(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(m,"ArrowUp")?QT(r,e,f):$APP.z.j(m,"Home")?0:$APP.z.j(m,"End")?$APP.w(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.n(d)?d.focus():d=null;k=$APP.n(d)?$APP.z.j(k,"auto")?OT(a,IT(d)):null:
9
+ null;break a}k=null}return k}function c(d){d.stopPropagation();return OT(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTabsOnTabSelect",c);$APP.Q(a,"__xTabsOnKeydown",b);Aha(a)},Bha=function(a){if($APP.Ti(a,"__xTabsInitialized"))return ST(a),RT(a);if(!$APP.Ti(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;}.base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";
10
+ $APP.T(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTabsBase",d);ST(a);$APP.Ui(a,"__xTabsInitialized")}RT(a);return a},Cha=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.n(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.n(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.n(a)?a.disconnect():null},Dha=function(a,b,c,d){return $APP.I(c,d)&&$APP.Ti(a,"__xTabsInitialized")?RT(a):
11
+ null},Fha=function(a){return $APP.sj(a,Eha)},TT=function(){return $APP.qi("x-tabs",new $APP.M(null,5,[$APP.hi,Gha,$APP.fi,Bha,$APP.ci,Cha,$APP.bi,Dha,$APP.gi,Fha],null))},DT=new $APP.F(null,"activation","activation",2128521072);var Gha=["value","orientation","activation","label","loop"],xha=new $APP.ah(null,new $APP.M(null,2,["vertical",null,"horizontal",null],null),null),yha=new $APP.ah(null,new $APP.M(null,2,["auto",null,"manual",null],null),null),Eha=new $APP.M(null,1,[$APP.Si,new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null)],null);
12
+ $APP.he(["value-change-request",new $APP.M(null,2,[$APP.Yt,!0,$APP.V,new $APP.M(null,2,[$APP.Si,$APP.X,$APP.As,$APP.X],null)],null),"value-change",new $APP.M(null,1,[$APP.V,new $APP.M(null,1,[$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_tabs.init",TT);export const init=TT;
@@ -9,6 +9,9 @@ export interface XTextAreaEventMap {
9
9
  }
10
10
 
11
11
  export interface XTextArea extends HTMLElement {
12
+ readonly validationMessage: string;
13
+ readonly labels: NodeList | null;
14
+ readonly willValidate: boolean;
12
15
  disabled: boolean;
13
16
  name: string;
14
17
  value: string;
@@ -17,7 +20,11 @@ export interface XTextArea extends HTMLElement {
17
20
  readOnly: boolean;
18
21
  maxLength: number;
19
22
  autocomplete: string;
23
+ readonly form: HTMLFormElement | null;
20
24
  required: boolean;
25
+ readonly validity: ValidityState;
26
+ checkValidity(): boolean;
27
+ reportValidity(): boolean;
21
28
 
22
29
  addEventListener<K extends keyof XTextAreaEventMap>(
23
30
  type: K,
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){$APP.Aj(b,c,new $APP.M(null,4,[$APP.tj,a.hasAttribute("error"),$APP.uj,a.getAttribute("error"),$APP.vj,a.hasAttribute("required"),$APP.wj,$APP.z.j(c.value,"")],null))},w7=function(a){a=$APP.Eg([p7,$APP.Wj,$APP.Tj,$APP.In,$APP.yq,q7,$APP.Xj,r7,$APP.Yj,$APP.ql,$APP.Uj,$APP.Zj,s7,$APP.Vj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
3
- a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.Vj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Wj),h=$APP.C(b,$APP.Tj),k=$APP.C(b,$APP.In),m=$APP.C(b,$APP.yq),r=$APP.C(b,q7);a=$APP.C(b,$APP.Xj);var t=$APP.C(b,r7),x=$APP.C(b,$APP.Yj),y=$APP.C(b,
4
- $APP.ql),A=$APP.C(b,$APP.Uj);b=$APP.C(b,$APP.Zj);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",N=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.cd(Hra,e)?e:"vertical";r=n7(r);return $APP.Eg([$APP.vj,$APP.vl,$APP.dk,$APP.Np,$APP.ck,$APP.Si,t7,$APP.et,$APP.tj,u7,$APP.Bt,v7,$APP.Rq,$APP.ek,$APP.uj,$APP.gk,$APP.fk],[x,y,d,m,
5
- h,A,c,f,k,e,H,n7(t),$APP.n(r)?r:3,N,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.gk),m=$APP.C(h,$APP.fk),r=$APP.C(h,$APP.vj),t=$APP.C(h,$APP.vl),x=$APP.C(h,$APP.dk),y=$APP.C(h,t7),A=$APP.C(h,$APP.ck),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Rq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
6
- t;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.vj);m=$APP.C(r,$APP.tj);r=$APP.C(r,$APP.Np);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");k=$APP.n($APP.n(r)?m:r)?"hint error":$APP.n(r)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",
7
- k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.ek);m=$APP.C(m,$APP.et);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Bt);k=$APP.C(k,$APP.Np);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.uj);e=$APP.C(e,$APP.tj);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.tj);$APP.Zi(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,"__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},
8
- Ira=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.fj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),$APP.dj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Jra=function(a){var b=$APP.l(a,"__xTextAreaRefs");
9
- if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Ira(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.dj(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=
10
- $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Kra=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},Lra=function(a){$APP.U(a,"value");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&b.setFormValue("");
11
- return z7(a)},Mra=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
2
+ var n7=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},o7=function(a,b,c){$APP.Aj(b,c,new $APP.M(null,4,[$APP.tj,a.hasAttribute("error"),$APP.uj,a.getAttribute("error"),$APP.vj,a.hasAttribute("required"),$APP.wj,$APP.z.j(c.value,"")],null))},w7=function(a){a=$APP.ug([p7,$APP.Zj,$APP.Kj,$APP.Ln,$APP.Bq,q7,$APP.ak,r7,$APP.bk,$APP.tl,$APP.Xj,$APP.ck,s7,$APP.Yj],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
3
+ a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,s7),d=$APP.C(b,$APP.Yj),e=$APP.C(b,p7),f=$APP.C(b,$APP.Zj),h=$APP.C(b,$APP.Kj),k=$APP.C(b,$APP.Ln),m=$APP.C(b,$APP.Bq),r=$APP.C(b,q7);a=$APP.C(b,$APP.ak);var t=$APP.C(b,r7),x=$APP.C(b,$APP.bk),y=$APP.C(b,
4
+ $APP.tl),A=$APP.C(b,$APP.Xj);b=$APP.C(b,$APP.ck);var E=$APP.n(k)?k:"",H=$APP.n(m)?m:"",N=$APP.n(f)?f:"";x=$APP.D(x);y=$APP.D(y);d=$APP.n(d)?d:"";m=typeof m==="string"&&$APP.I(m,"");h=$APP.n(h)?h:"";A=$APP.n(A)?A:"";c=n7(c);f=typeof f==="string"&&$APP.I(f,"");k=typeof k==="string"&&$APP.I(k,"");e=typeof e==="string"&&$APP.bd(Tra,e)?e:"vertical";r=n7(r);return $APP.ug([$APP.vj,$APP.yl,$APP.gk,$APP.Qp,$APP.fk,$APP.Si,t7,$APP.nt,$APP.tj,u7,$APP.Kt,v7,$APP.Uq,$APP.hk,$APP.uj,$APP.jk,$APP.ik],[x,y,d,m,
5
+ h,A,c,f,k,e,H,n7(t),$APP.n(r)?r:3,N,E,$APP.n(b)?b:"",$APP.D(a)])},x7=function(a,b,c,d){a.textContent=b;$APP.n(c)?a.classList.remove(d):a.classList.add(d)},y7=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.jk),m=$APP.C(h,$APP.ik),r=$APP.C(h,$APP.vj),t=$APP.C(h,$APP.yl),x=$APP.C(h,$APP.gk),y=$APP.C(h,t7),A=$APP.C(h,$APP.fk),E=$APP.C(h,u7),H=$APP.C(h,v7);h=$APP.C(h,$APP.Uq);d.name=A;d.placeholder=x;d.disabled=m;d.readOnly=
6
+ t;d.required=r;d.rows=h;d.autocomplete=k;$APP.n(H)?$APP.T(d,"maxlength",""+$APP.P.i(H)):$APP.U(d,"maxlength");$APP.n(y)?$APP.T(d,"minlength",""+$APP.P.i(y)):$APP.U(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.vj);m=$APP.C(r,$APP.tj);r=$APP.C(r,$APP.Qp);$APP.T(d,"aria-required",$APP.n(k)?"true":"false");$APP.T(d,"aria-invalid",$APP.n(m)?"true":"false");k=$APP.n($APP.n(r)?m:r)?"hint error":$APP.n(r)?"hint":$APP.n(m)?"error":null;$APP.n(k)?$APP.T(d,"aria-describedby",
7
+ k):$APP.U(d,"aria-describedby");m=$APP.G(c);k=$APP.C(m,$APP.hk);m=$APP.C(m,$APP.nt);x7(e,k,m,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.Kt);k=$APP.C(k,$APP.Qp);x7(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.uj);e=$APP.C(e,$APP.tj);x7(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.tj);$APP.Zi(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&o7(a,b,d);return $APP.Q(a,"__xTextAreaModel",c)},z7=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.n(b)?y7(a,b,w7(a)):null},
8
+ Ura=function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.n(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.n(f)?f:""}();return $APP.fj(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),o7(a,d,b)),$APP.dj(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},Vra=function(a){var b=$APP.l(a,"__xTextAreaRefs");
9
+ if($APP.n(b)){b=$APP.l(b,"textarea");var c=function(){return Ura(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.n(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.n(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.n(k)&&(k.setFormValue(f),o7(a,k,e));e=$APP.dj(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.Q(a,"__xTextAreaHandlers",{input:c,change:d})}},A7=function(a){var b=
10
+ $APP.l(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.n(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.Q(a,"__xTextAreaHandlers",null)}return null},Wra=function(a,b){$APP.Zi(a,"disabled",$APP.D(b));return z7(a)},Xra=function(a){$APP.U(a,"value");$APP.U(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");
11
+ $APP.n(b)&&b.setFormValue("");return z7(a)},Yra=function(a){if(!$APP.n($APP.l(a,"__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
12
12
  $APP.T(d,"part","field");$APP.T(e,"part","label");$APP.T(e,"id","label");$APP.T(e,"for","textarea");$APP.T(f,"part","textarea-wrapper");$APP.T(h,"part","textarea");$APP.T(h,"id","textarea");$APP.T(h,"aria-labelledby","label");$APP.T(k,"part","hint");$APP.T(k,"id","hint");$APP.T(k,"aria-live","polite");$APP.T(m,"part","error");$APP.T(m,"id","error");$APP.T(m,"role","alert");$APP.T(m,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(m);b.appendChild(c);
13
- b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Jra(a);return z7(a)},Nra=function(a){return A7(a)},Ora=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
- "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},Pra=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
15
- $APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},Qra=function(a){Pra(a);$APP.lj(a,"name","name","");$APP.lj(a,"placeholder","placeholder","");$APP.lj(a,"autocomplete","autocomplete","");$APP.ij(a,"disabled","disabled");$APP.ij(a,"readOnly","readonly");$APP.ij(a,"required","required");$APP.nj(a,"rows","rows",3);$APP.nj(a,"maxLength","maxlength",null);return $APP.nj(a,"minLength","minlength",null)},B7=function(){return $APP.xi("x-text-area",
16
- new $APP.M(null,8,[$APP.hi,Rra,$APP.fi,Mra,$APP.ci,Nra,$APP.bi,Ora,$APP.di,!0,$APP.ai,Kra,$APP.$h,Lra,$APP.gi,Qra],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw","rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",
17
- 297367086);var Rra="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Hra=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
- $APP.Eg([$APP.Jm,$APP.ck,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Rq,$APP.St,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.gk,$APP.bs],[new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],
19
- null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null)]);
20
- $APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.Pt,!0,$APP.V,new $APP.M(null,3,[$APP.ck,$APP.X,$APP.Si,$APP.X,$APP.ss,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,2,[$APP.ck,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.Pt,!1,$APP.V,new $APP.M(null,2,[$APP.ck,$APP.X,$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",B7);export const init=B7;
13
+ b.appendChild(d);$APP.Q(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:m});$APP.n(a.attachInternals)&&$APP.Q(a,"__xTextAreaInternals",a.attachInternals())}A7(a);b=$APP.l(a,"__xTextAreaRefs");$APP.n(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));Vra(a);return z7(a)},Zra=function(a){return A7(a)},$ra=function(a,b,c,d){return $APP.I(c,d)?($APP.z.j(b,
14
+ "value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.n(b)&&(b=$APP.l(b,"textarea"),$APP.I(b.value,d)&&(b.value=$APP.n(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.n(d)?(b=w7(a),a=$APP.I(b,$APP.l(a,"__xTextAreaModel"))?y7(a,d,b):null):a=null,a):null},asa=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.n(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&
15
+ $APP.I(b)?""+$APP.P.i(b):"";$APP.T(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.n(c)?$APP.l(c,"textarea").value=b:null}})},bsa=function(a){$APP.Ej(a,"__xTextAreaInternals");asa(a);$APP.lj(a,"name","name","");$APP.lj(a,"placeholder","placeholder","");$APP.lj(a,"autocomplete","autocomplete","");$APP.ij(a,"disabled","disabled");$APP.ij(a,"readOnly","readonly");$APP.ij(a,"required","required");$APP.nj(a,"rows","rows",3);$APP.nj(a,"maxLength","maxlength",null);return $APP.nj(a,"minLength",
16
+ "minlength",null)},B7=function(){return $APP.qi("x-text-area",new $APP.M(null,8,[$APP.hi,csa,$APP.fi,Yra,$APP.ci,Zra,$APP.bi,$ra,$APP.di,!0,$APP.ai,Wra,$APP.$h,Xra,$APP.gi,bsa],null))},t7=new $APP.F(null,"minlength","minlength",259053545),s7=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),r7=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),v7=new $APP.F(null,"maxlength","maxlength",-1163911985),p7=new $APP.F(null,"resize-raw","resize-raw",-287517888),q7=new $APP.F(null,"rows-raw",
17
+ "rows-raw",-1828357145),u7=new $APP.F(null,"resize","resize",297367086);var csa="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),Tra=new $APP.ah(null,new $APP.M(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
18
+ $APP.ug([$APP.Zu,$APP.lu,$APP.br,$APP.Mm,$APP.fk,$APP.Si,new $APP.F(null,"minLength","minLength",-1538722770),$APP.Uq,$APP.au,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.jk,$APP.at,$APP.hs,$APP.os],[new $APP.M(null,2,[$APP.O,$APP.X,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.Hr,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.O,
19
+ $APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"minlength"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"rows"],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.O,$APP.Z,$APP.W,"maxlength"],null),new $APP.M(null,2,[$APP.O,$APP.X,$APP.W,"autocomplete"],null),new $APP.M(null,2,[$APP.O,$APP.xs,$APP.pj,!0],null),new $APP.M(null,2,[$APP.O,$APP.qj,$APP.W,"required"],null),new $APP.M(null,2,[$APP.O,$APP.Yr,$APP.pj,!0],null)]);
20
+ $APP.he(["x-text-area-change-request",new $APP.M(null,2,[$APP.Yt,!0,$APP.V,new $APP.M(null,3,[$APP.fk,$APP.X,$APP.Si,$APP.X,$APP.As,$APP.X],null)],null),"x-text-area-input",new $APP.M(null,2,[$APP.Yt,!1,$APP.V,new $APP.M(null,2,[$APP.fk,$APP.X,$APP.Si,$APP.X],null)],null),"x-text-area-change",new $APP.M(null,2,[$APP.Yt,!1,$APP.V,new $APP.M(null,2,[$APP.fk,$APP.X,$APP.Si,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_text_area.init",B7);export const init=B7;
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mfa=function(a,b){var c=LQ.i(MQ),d=NQ.i(MQ),e=b.light,f=b.dark;b=$APP.Wg($APP.Cc([c,$APP.n(e)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);return $APP.Dd(new $APP.J(null,
2
+ var zfa=function(a,b){var c=LQ.i(MQ),d=NQ.i(MQ),e=b.light,f=b.dark;b=$APP.Wg($APP.Cc([c,$APP.n(e)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(e,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);return $APP.Dd(new $APP.J(null,
3
3
  2,5,$APP.K,[y,$APP.l(e,y)],null),m($APP.ec(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Wg($APP.Cc([d,$APP.n(f)?$APP.If.j($APP.ie,function(){return function m(k){return new $APP.Gd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.Yc(r)){var t=$APP.Db(r),x=$APP.w(t),y=$APP.Jd(x);a:{for(var A=0;;)if(A<x){var E=$APP.Hc(t,A);y.add(new $APP.J(null,2,5,$APP.K,[E,$APP.l(f,E)],null));A+=1}else{t=!0;break a}t=void 0}return t?$APP.Nd(y.ea(),m($APP.Eb(r))):$APP.Nd(y.ea(),null)}y=$APP.u(r);
4
4
  return $APP.Dd(new $APP.J(null,2,5,$APP.K,[y,$APP.l(f,y)],null),m($APP.ec(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(OQ,a,new $APP.M(null,2,[LQ,b,NQ,d],null))},PQ=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.P.i(h)+":"+$APP.P.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.Yc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.w(d)):(d=$APP.u(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.P.i(c)+
5
- ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},QQ=function(a){var b=new $APP.M(null,1,[$APP.ds,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.ds),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.cd(nfa,c)&&$APP.l(OQ,c)==null?"default":c;var e=$APP.l(OQ,c);$APP.n(e)||(c=$APP.C(ofa,c),e=$APP.n(c)?c:MQ);c=LQ.i(e);e=NQ.i(e);c=":host{display:contents;"+$APP.P.i(PQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
- $APP.P.i(PQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},pfa=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return QQ(a)},qfa=function(){return null},rfa=function(a,b,c,d){return $APP.I(c,d)?QQ(a):null},sfa=function(a){return $APP.mj(a,"preset","preset")},RQ=function(a,b){return mfa(a,
7
- b)},SQ=function(){return $APP.xi("x-theme",new $APP.M(null,5,[$APP.hi,tfa,$APP.fi,pfa,$APP.ci,qfa,$APP.bi,rfa,$APP.gi,sfa],null))},LQ=new $APP.F(null,"light","light",1918998747),NQ=new $APP.F(null,"dark","dark",1818973999);var tfa=["preset"],TQ=$APP.Eg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),UQ=$APP.he("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
5
+ ":"+$APP.P.i(d)+";"),a=$APP.v(a),c=null,d=0),e=0;else break;return b.join("")},QQ=function(a){var b=new $APP.M(null,1,[$APP.js,a.getAttribute("preset")],null);if($APP.I($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.js),d=$APP.l(a,"__xThemeRefs");if($APP.n(d)){d=d.style;c=typeof c!=="string"||!$APP.bd(Afa,c)&&$APP.l(OQ,c)==null?"default":c;var e=$APP.l(OQ,c);$APP.n(e)||(c=$APP.C(Bfa,c),e=$APP.n(c)?c:MQ);c=LQ.i(e);e=NQ.i(e);c=":host{display:contents;"+$APP.P.i(PQ(c))+"}@media(prefers-color-scheme:dark){:host{"+
6
+ $APP.P.i(PQ(e))+"}}";d.textContent=c;a=$APP.Q(a,"__xThemeModel",b)}else a=null}else a=null;return a},Cfa=function(a){if(!$APP.n($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xThemeRefs",{style:c})}return QQ(a)},Dfa=function(){return null},Efa=function(a,b,c,d){return $APP.I(c,d)?QQ(a):null},Ffa=function(a){return $APP.mj(a,"preset","preset")},RQ=function(a,b){return zfa(a,
7
+ b)},SQ=function(){return $APP.qi("x-theme",new $APP.M(null,5,[$APP.hi,Gfa,$APP.fi,Cfa,$APP.ci,Dfa,$APP.bi,Efa,$APP.gi,Ffa],null))},LQ=new $APP.F(null,"light","light",1918998747),NQ=new $APP.F(null,"dark","dark",1818973999);var Gfa=["preset"],TQ=$APP.ug("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),UQ=$APP.he("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
8
  VQ=$APP.he(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),WQ=$APP.he("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),XQ=$APP.he("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),YQ=$APP.he(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),ZQ=$APP.he("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
- $Q=$APP.he("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),MQ=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),ufa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),vfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),wfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),xfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,VQ,WQ,XQ,YQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
- "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),NQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
- "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),yfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,WQ,XQ,YQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
- "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),NQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
- "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),zfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([UQ,VQ,WQ,XQ,YQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
- "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),NQ,$APP.Eg("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
- "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),Afa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.Eg("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),ofa=new $APP.M(null,8,["default",MQ,"ocean",ufa,"forest",vfa,"sunset",wfa,"neo-brutalist",xfa,"aurora",yfa,"mono-ai",zfa,"warm-mineral",Afa],null),OQ=Object.create(null),nfa=new $APP.ah(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
9
+ $Q=$APP.he("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),MQ=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),Hfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),Ifa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),Jfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Kfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,VQ,WQ,XQ,YQ,$APP.ug("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
+ "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),NQ,$APP.ug("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
+ "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),Lfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,WQ,XQ,YQ,$APP.ug("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
+ "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),NQ,$APP.ug("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
+ "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),Mfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([UQ,VQ,WQ,XQ,YQ,$APP.ug("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
+ "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),NQ,$APP.ug("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
+ "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),Nfa=new $APP.M(null,2,[LQ,$APP.Wg($APP.Cc([TQ,UQ,VQ,ZQ,WQ,XQ,YQ,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),NQ,$APP.Wg($APP.Cc([$Q,$APP.ug("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),Bfa=new $APP.M(null,8,["default",MQ,"ocean",Hfa,"forest",Ifa,"sunset",Jfa,"neo-brutalist",Kfa,"aurora",Lfa,"mono-ai",Mfa,"warm-mineral",Nfa],null),OQ=Object.create(null),Afa=new $APP.ah(null,new $APP.M(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
26
26
  "default",null],null),null);$APP.fa("baredom.exports.x_theme.registerPreset",RQ);$APP.fa("baredom.exports.x_theme.init",SQ);export const init=SQ;export const registerPreset=RQ;
@@ -1,21 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var rv=function(a){a=$APP.C(qv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Gp},tv=function(a){a=$APP.C(sv,a);return $APP.n(a)?a:"pending"},wv=function(a){a=$APP.C(uv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:vv},xv=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},yv=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Av=function(a,
3
- b){a=$APP.C(zv,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(zv,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Rt);return b},Bv=function(a,b,c){a=tv(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},Lv=function(a){var b=$APP.G(a),c=$APP.C(b,Cv);a=$APP.C(b,$APP.fk);var d=$APP.C(b,$APP.ur),e=$APP.C(b,$APP.Wj),f=$APP.C(b,Dv),h=$APP.C(b,$APP.Xp),k=$APP.C(b,Ev),m=$APP.C(b,
4
- $APP.sq),r=$APP.C(b,Fv),t=$APP.C(b,$APP.sp),x=$APP.C(b,$APP.Sr);b=$APP.C(b,$APP.dr);var y=rv(m),A=xv(b),E=$APP.n($APP.n(t)?A==null:t)?$APP.Fu:A!=null?$APP.ft:$APP.rj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Gv,y),$APP.n(H)?H:$APP.C(Gv,$APP.Gp);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=yv(c);d=Av(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.Eg([$APP.Jp,Hv,Iv,Dv,Fv,$APP.os,$APP.Qp,
5
- $APP.Yr,$APP.ek,Jv,$APP.Pr,$APP.fk,Kv],[wv(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.ft)?A:null,x,y,e,Bv(y,e,c),E,$APP.D(a),d])},Mv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.fk);return $APP.p(a)},Vv=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
2
+ var Cv=function(a){a=$APP.C(Bv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Jp},Ev=function(a){a=$APP.C(Dv,a);return $APP.n(a)?a:"pending"},Hv=function(a){a=$APP.C(Fv,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Gv},Iv=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Jv=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Lv=function(a,
3
+ b){a=$APP.C(Kv,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Kv,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.$t);return b},Mv=function(a,b,c){a=Ev(a);c=c!=null?"Step "+$APP.P.i(c+1)+": ":null;return""+$APP.P.i(c)+$APP.P.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.P.i(b)+" ":null)+"("+$APP.P.i(a)+")"},Wv=function(a){var b=$APP.G(a),c=$APP.C(b,Nv);a=$APP.C(b,$APP.ik);var d=$APP.C(b,$APP.yr),e=$APP.C(b,$APP.Zj),f=$APP.C(b,Ov),h=$APP.C(b,$APP.$p),k=$APP.C(b,Pv),m=$APP.C(b,
4
+ $APP.vq),r=$APP.C(b,Qv),t=$APP.C(b,$APP.vp),x=$APP.C(b,$APP.Xr);b=$APP.C(b,$APP.hr);var y=Cv(m),A=Iv(b),E=$APP.n($APP.n(t)?A==null:t)?$APP.Pu:A!=null?$APP.ot:$APP.rj;m=function(){var H=E instanceof $APP.F?E.da:null;switch(H){case "default":return H=$APP.C(Rv,y),$APP.n(H)?H:$APP.C(Rv,$APP.Jp);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.P.i(H));}}();c=Jv(c);d=Lv(k,d);e=$APP.n(e)?e:"";x=$APP.n(x)?x:"";return $APP.ug([$APP.Mp,Sv,Tv,Ov,Qv,$APP.vs,$APP.Tp,
5
+ $APP.ds,$APP.hk,Uv,$APP.Ur,$APP.ik,Vv],[Hv(h),c,m,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.ot)?A:null,x,y,e,Mv(y,e,c),E,$APP.D(a),d])},Xv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.ik);return $APP.p(a)},fw=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),f=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("div"),
6
6
  m=document.createElement("div"),r=document.createElement("slot"),t=document.createElement("span"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),H=document.createElement("slot"),N=document.createElement("div"),S=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
7
  $APP.T(d,"class","timeline-item");$APP.T(e,"class","label-col");$APP.T(f,"name","label");$APP.T(h,"class","label-text");f.appendChild(h);e.appendChild(f);$APP.T(k,"class","track-col");$APP.T(m,"class","marker");$APP.T(r,"name","icon");$APP.T(t,"class","default-icon");$APP.T(t,"aria-hidden","true");r.appendChild(t);m.appendChild(r);$APP.T(x,"class","connector");k.appendChild(m);k.appendChild(x);$APP.T(y,"class","content-col");$APP.T(A,"class","title");$APP.T(E,"class","body");E.appendChild(H);$APP.T(N,
8
- "class","actions");$APP.T(S,"name","actions");N.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(N);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.Eg([$APP.Jp,Nv,$APP.qs,$APP.zu,Ov,Pv,$APP.ku,Qv,$APP.cl,Rv,$APP.us,Sv,Tv,Uv,$APP.Xq,$APP.xn],[x,h,m,t,e,k,E,H,b,S,A,y,d,N,r,f]));return $APP.l(a,"__xTimelineItemRefs")},Wv=function(a){return Lv($APP.Eg([$APP.ur,$APP.Wj,Dv,$APP.Xp,Ev,$APP.sq,Fv,$APP.sp,$APP.Sr,$APP.dr,
9
- Cv,$APP.fk],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},Xv=function(a){var b=Wv(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=Vv(a),d=$APP.G(c);c=$APP.C(d,Nv);var e=$APP.C(d,$APP.qs),f=$APP.C(d,$APP.us);d=
10
- $APP.C(d,$APP.zu);var h=$APP.G(b),k=$APP.C(h,$APP.Yr),m=$APP.C(h,Kv);h=$APP.C(h,$APP.Jp);$APP.T(a,"data-status",tv(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.T(a,"data-position",$APP.ih(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.T(a,"data-connector","dashed");break;case "none":$APP.T(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.ek);m=$APP.C(h,$APP.Qp);h=$APP.C(h,$APP.fk);$APP.T(a,"role",
11
- "listitem");$APP.n(h)?($APP.T(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,Iv);m=$APP.C(m,Jv);$APP.T(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.ek);d=$APP.C(d,$APP.Qp);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.T(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
12
- null;return a},Yv=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.T(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},Zv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Wv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Yr);c=$APP.C(c,$APP.ek);b=new $APP.M(null,2,[$APP.Yr,tv(b),$APP.ek,c],null);return $APP.fj(a,"x-timeline-item-click",
13
- $APP.qm(b))},$v=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:Wv(a),Mv(e)){d.preventDefault();d=Zv(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:Wv(a);return Mv(d)?Zv(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},aw=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
- $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}$APP.Q(a,"__xTimelineItemHandlers",null)},bw=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
- return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.lj(a,"status","status","pending");$APP.mj(a,"icon","icon");$APP.lj(a,"connector","connector","solid");$APP.lj(a,"position","position","start");return $APP.ij(a,"disabled","disabled")},cw=function(a){Vv(a);aw(a);$v(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);Xv(a);Yv(a);b=$APP.l(a,
16
- "__xTimelineItemModel");b=$APP.n(b)?b:Wv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Yr);var d=$APP.C(c,$APP.ek),e=$APP.C(c,Kv);c=$APP.C(c,$APP.fk);b=new $APP.M(null,4,[$APP.Yr,tv(b),$APP.ek,d,$APP.Gu,$APP.ih(e),$APP.Jm,$APP.D(c)],null);return $APP.dj(a,"x-timeline-item-connected",$APP.qm(b))},dw=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:Wv(a);aw(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Yr);b=$APP.C(b,$APP.ek);a=new $APP.M(null,2,[$APP.Yr,tv(a),$APP.ek,
17
- b],null);return $APP.hj("x-timeline-item-disconnected",$APP.qm(a))},ew=function(a,b,c,d){if($APP.I(c,d)){c=$APP.z.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,"data-position")&&$APP.Q(a,"__xTimelineItemParentPos",d);return Xv(a)}return null},gw=function(){return $APP.xi("x-timeline-item",new $APP.M(null,5,[$APP.hi,fw,$APP.fi,cw,$APP.ci,dw,$APP.bi,ew,$APP.gi,bw],null))},Pv=new $APP.F(null,"track-col","track-col",629248272),Rv=new $APP.F(null,"actions-slot",
18
- "actions-slot",1424248629),Kv=new $APP.F(null,"effective-position","effective-position",840072317),Ov=new $APP.F(null,"label-col","label-col",1883390160),Nv=new $APP.F(null,"label-text","label-text",-1566972381),Dv=new $APP.F(null,"data-striped?","data-striped?",906911587),Uv=new $APP.F(null,"actions-el","actions-el",1486248509),Sv=new $APP.F(null,"content-col","content-col",767367449),hw=new $APP.F(null,"dashed","dashed",-1449249319),Tv=new $APP.F(null,"item-div","item-div",1630512700),Jv=new $APP.F(null,
19
- "marker-aria","marker-aria",-353426855),Iv=new $APP.F(null,"marker-icon","marker-icon",424963779),vv=new $APP.F(null,"solid","solid",-2023773691),Qv=new $APP.F(null,"default-slot","default-slot",-1145647151),Fv=new $APP.F(null,"data-last?","data-last?",-1110326839),Ev=new $APP.F(null,"data-position-raw","data-position-raw",256144356),Cv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Hv=new $APP.F(null,"data-index","data-index",1161508385),iw=new $APP.F(null,"none","none",1333468478);var fw="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
- $APP.he(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.Yr,$APP.X,$APP.ek,$APP.X,$APP.Gu,$APP.X,$APP.Jm,$APP.qj],null),$APP.Pt,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Yr,$APP.X,$APP.ek,$APP.X],null),$APP.Pt,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.Yr,$APP.X,$APP.ek,$APP.X],null),$APP.Pt,!0],null)]);
21
- var qv=new $APP.M(null,5,["pending",$APP.Gp,"active",$APP.jr,"complete",$APP.qu,"error",$APP.uj,"warning",$APP.Mt],null),sv=new $APP.M(null,5,[$APP.Gp,"pending",$APP.jr,"active",$APP.qu,"complete",$APP.uj,"error",$APP.Mt,"warning"],null),Gv=new $APP.M(null,5,[$APP.Gp,"○",$APP.jr,"●",$APP.qu,"✓",$APP.uj,"✕",$APP.Mt,"!"],null),uv=new $APP.M(null,3,["solid",vv,"dashed",hw,"none",iw],null),zv=new $APP.M(null,2,["start",$APP.Rt,"end",$APP.iq],null);$APP.fa("baredom.exports.x_timeline_item.init",gw);export const init=gw;
8
+ "class","actions");$APP.T(S,"name","actions");N.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(N);d.appendChild(e);d.appendChild(k);d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xTimelineItemRefs",$APP.ug([$APP.Mp,Yv,$APP.ys,$APP.Ju,Zv,$v,$APP.uu,aw,$APP.Sk,bw,$APP.Cs,cw,dw,ew,$APP.$q,$APP.qn],[x,h,m,t,e,k,E,H,b,S,A,y,d,N,r,f]));return $APP.l(a,"__xTimelineItemRefs")},gw=function(a){return Wv($APP.ug([$APP.yr,$APP.Zj,Ov,$APP.$p,Pv,$APP.vq,Qv,$APP.vp,$APP.Xr,$APP.hr,
9
+ Nv,$APP.ik],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},hw=function(a){var b=gw(a);if($APP.I($APP.l(a,"__xTimelineItemModel"),b)){var c=fw(a),d=$APP.G(c);c=$APP.C(d,Yv);var e=$APP.C(d,$APP.ys),f=$APP.C(d,$APP.Cs);d=
10
+ $APP.C(d,$APP.Ju);var h=$APP.G(b),k=$APP.C(h,$APP.ds),m=$APP.C(h,Vv);h=$APP.C(h,$APP.Mp);$APP.T(a,"data-status",Ev(k));$APP.Q(a,"__xTimelineItemSelfPos",!0);$APP.T(a,"data-position",$APP.ih(m));$APP.Q(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.T(a,"data-connector","dashed");break;case "none":$APP.T(a,"data-connector","none");break;default:$APP.U(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.hk);m=$APP.C(h,$APP.Tp);h=$APP.C(h,$APP.ik);$APP.T(a,"role",
11
+ "listitem");$APP.n(h)?($APP.T(a,"aria-disabled","true"),a.tabIndex=-1):($APP.U(a,"aria-disabled"),a.tabIndex=0);k=$APP.I(m,"")?m:$APP.I(k,"")?k:null;$APP.n(k)?$APP.T(a,"aria-label",k):$APP.U(a,"aria-label");m=$APP.G(b);k=$APP.C(m,Tv);m=$APP.C(m,Uv);$APP.T(e,"aria-label",m);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.hk);d=$APP.C(d,$APP.Tp);c.textContent=e;$APP.I(d,"")?($APP.U(f,"hidden"),f.textContent=d):($APP.T(f,"hidden",""),f.textContent="");a=$APP.Q(a,"__xTimelineItemModel",b)}else a=
12
+ null;return a},iw=function(a){$APP.n($APP.l(a,"__xTimelineItemEntered"))||($APP.Q(a,"__xTimelineItemEntered",!0),$APP.T(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.U(a,"data-entering")):null}))},jw=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:gw(a);var c=$APP.G(b);b=$APP.C(c,$APP.ds);c=$APP.C(c,$APP.hk);b=new $APP.M(null,2,[$APP.ds,Ev(b),$APP.hk,c],null);return $APP.fj(a,"x-timeline-item-click",
13
+ $APP.tm(b))},kw=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.n(e)?e:gw(a),Xv(e)){d.preventDefault();d=jw(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.n(d)?d:gw(a);return Xv(d)?jw(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.Q(a,"__xTimelineItemHandlers",{click:c,keydown:b})},lw=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
+ $APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}$APP.Q(a,"__xTimelineItemHandlers",null)},mw=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
+ return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?$APP.T(this,"title",""+$APP.P.i(b)):$APP.U(this,"title")},enumerable:!0,configurable:!0});$APP.lj(a,"status","status","pending");$APP.mj(a,"icon","icon");$APP.lj(a,"connector","connector","solid");$APP.lj(a,"position","position","start");return $APP.ij(a,"disabled","disabled")},nw=function(a){fw(a);lw(a);kw(a);var b=a.getAttribute("data-position");$APP.n(b)&&$APP.Q(a,"__xTimelineItemParentPos",b);hw(a);iw(a);b=$APP.l(a,
16
+ "__xTimelineItemModel");b=$APP.n(b)?b:gw(a);var c=$APP.G(b);b=$APP.C(c,$APP.ds);var d=$APP.C(c,$APP.hk),e=$APP.C(c,Vv);c=$APP.C(c,$APP.ik);b=new $APP.M(null,4,[$APP.ds,Ev(b),$APP.hk,d,$APP.Qu,$APP.ih(e),$APP.Mm,$APP.D(c)],null);return $APP.dj(a,"x-timeline-item-connected",$APP.tm(b))},ow=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.n(b)?b:gw(a);lw(a);$APP.Q(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.ds);b=$APP.C(b,$APP.hk);a=new $APP.M(null,2,[$APP.ds,Ev(a),$APP.hk,
17
+ b],null);return $APP.hj("x-timeline-item-disconnected",$APP.tm(a))},pw=function(a,b,c,d){if($APP.I(c,d)){c=$APP.z.j(b,"data-position");if($APP.n(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,"data-position")&&$APP.Q(a,"__xTimelineItemParentPos",d);return hw(a)}return null},rw=function(){return $APP.qi("x-timeline-item",new $APP.M(null,5,[$APP.hi,qw,$APP.fi,nw,$APP.ci,ow,$APP.bi,pw,$APP.gi,mw],null))},$v=new $APP.F(null,"track-col","track-col",629248272),bw=new $APP.F(null,"actions-slot",
18
+ "actions-slot",1424248629),Vv=new $APP.F(null,"effective-position","effective-position",840072317),Zv=new $APP.F(null,"label-col","label-col",1883390160),Yv=new $APP.F(null,"label-text","label-text",-1566972381),Ov=new $APP.F(null,"data-striped?","data-striped?",906911587),ew=new $APP.F(null,"actions-el","actions-el",1486248509),cw=new $APP.F(null,"content-col","content-col",767367449),sw=new $APP.F(null,"dashed","dashed",-1449249319),dw=new $APP.F(null,"item-div","item-div",1630512700),Uv=new $APP.F(null,
19
+ "marker-aria","marker-aria",-353426855),Tv=new $APP.F(null,"marker-icon","marker-icon",424963779),Gv=new $APP.F(null,"solid","solid",-2023773691),aw=new $APP.F(null,"default-slot","default-slot",-1145647151),Qv=new $APP.F(null,"data-last?","data-last?",-1110326839),Pv=new $APP.F(null,"data-position-raw","data-position-raw",256144356),Nv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Sv=new $APP.F(null,"data-index","data-index",1161508385),tw=new $APP.F(null,"none","none",1333468478);var qw="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
+ $APP.he(["x-timeline-item-connected",new $APP.M(null,2,[$APP.V,new $APP.M(null,4,[$APP.ds,$APP.X,$APP.hk,$APP.X,$APP.Qu,$APP.X,$APP.Mm,$APP.qj],null),$APP.Yt,!1],null),"x-timeline-item-disconnected",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.ds,$APP.X,$APP.hk,$APP.X],null),$APP.Yt,!1],null),"x-timeline-item-click",new $APP.M(null,2,[$APP.V,new $APP.M(null,2,[$APP.ds,$APP.X,$APP.hk,$APP.X],null),$APP.Yt,!0],null)]);
21
+ var Bv=new $APP.M(null,5,["pending",$APP.Jp,"active",$APP.nr,"complete",$APP.Au,"error",$APP.uj,"warning",$APP.Vt],null),Dv=new $APP.M(null,5,[$APP.Jp,"pending",$APP.nr,"active",$APP.Au,"complete",$APP.uj,"error",$APP.Vt,"warning"],null),Rv=new $APP.M(null,5,[$APP.Jp,"○",$APP.nr,"●",$APP.Au,"✓",$APP.uj,"✕",$APP.Vt,"!"],null),Fv=new $APP.M(null,3,["solid",Gv,"dashed",sw,"none",tw],null),Kv=new $APP.M(null,2,["start",$APP.$t,"end",$APP.iq],null);$APP.fa("baredom.exports.x_timeline_item.init",rw);export const init=rw;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.cd(eqa,a)?a:"start"},fqa=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.sd(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- $APP.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.cl,b,y4,d,$APP.ht,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Wj,a.getAttribute("label"),$APP.ur,a.getAttribute("position"),$APP.Ds,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Wj);var c=$APP.C(b,$APP.ur);b=$APP.C(b,$APP.Ds);return new $APP.M(null,3,[$APP.ek,$APP.n(a)?a:"",$APP.Gu,x4(c),$APP.Ds,
4
- $APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.ek),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.T(a,"role","list");$APP.I(c,"")?$APP.T(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Gu);c=$APP.C(c,$APP.Ds);a=a.querySelectorAll("x-timeline-item");
5
- for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",fqa(b,e));$APP.n(c)?$APP.T(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},gqa=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
6
- $APP.l(e,"status");e=$APP.l(e,"label");return $APP.dj(a,"x-timeline-select",$APP.qm(new $APP.M(null,3,[$APP.Cp,$APP.n(f)?f:0,$APP.Yr,$APP.n(h)?h:"",$APP.ek,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
- if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},hqa=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
- $APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ij(a,"striped","striped")},iqa=function(a){z4(a);B4(a);D4(a);gqa(a);return C4(a)},jqa=function(a){return D4(a)},kqa=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
- null},E4=function(){return $APP.xi("x-timeline",new $APP.M(null,5,[$APP.hi,lqa,$APP.fi,iqa,$APP.ci,jqa,$APP.bi,kqa,$APP.gi,hqa],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var lqa=["label","position","striped"];$APP.he(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Cp,$APP.Z,$APP.Yr,$APP.X,$APP.ek,$APP.X],null),$APP.Pt,!1],null)]);var eqa=new $APP.ah(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("baredom.exports.x_timeline.init",E4);export const init=E4;
2
+ var x4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.bd(qqa,a)?a:"start"},rqa=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.sd(b,2)===0?"start":"end";default:return"start"}},z4=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ $APP.T(d,"part","label");$APP.T(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.Q(a,"__xTimelineRefs",new $APP.M(null,3,[$APP.Sk,b,y4,d,$APP.qt,e],null));return $APP.l(a,"__xTimelineRefs")},A4=function(a){a=new $APP.M(null,3,[$APP.Zj,a.getAttribute("label"),$APP.yr,a.getAttribute("position"),$APP.Ls,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Zj);var c=$APP.C(b,$APP.yr);b=$APP.C(b,$APP.Ls);return new $APP.M(null,3,[$APP.hk,$APP.n(a)?a:"",$APP.Qu,x4(c),$APP.Ls,
4
+ $APP.D(b)],null)},B4=function(a){var b=A4(a);if($APP.I($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.hk),d=z4(a);d=$APP.G(d);d=$APP.C(d,y4);$APP.T(a,"role","list");$APP.I(c,"")?$APP.T(a,"aria-label",c):$APP.U(a,"aria-label");$APP.I(c,"")?(d.textContent=c,$APP.U(d,"hidden")):(d.textContent="",$APP.T(d,"hidden",""));$APP.Q(a,"__xTimelineModel",b)}},C4=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.n(b)?b:A4(a);var c=$APP.G(b);b=$APP.C(c,$APP.Qu);c=$APP.C(c,$APP.Ls);a=a.querySelectorAll("x-timeline-item");
5
+ for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.T(f,"data-index",""+$APP.P.i(e));h?$APP.T(f,"data-last",""):$APP.U(f,"data-last");$APP.T(f,"data-position",rqa(b,e));$APP.n(c)?$APP.T(f,"data-striped",""):$APP.U(f,"data-striped");e+=1}else return null},sqa=function(a){function b(){return $APP.n(a.isConnected)?C4(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=
6
+ $APP.l(e,"status");e=$APP.l(e,"label");return $APP.dj(a,"x-timeline-select",$APP.tm(new $APP.M(null,3,[$APP.Fp,$APP.n(f)?f:0,$APP.ds,$APP.n(h)?h:"",$APP.hk,$APP.n(e)?e:""],null)))}function d(){return C4(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.Q(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},D4=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
+ if($APP.n(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.Q(a,"__xTimelineHandlers",null)},tqa=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
8
+ $APP.I(b,""):b)?$APP.T(this,"label",""+$APP.P.i(b)):$APP.U(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return x4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?$APP.T(this,"position",""+$APP.P.i(b)):$APP.U(this,"position")},enumerable:!0,configurable:!0});return $APP.ij(a,"striped","striped")},uqa=function(a){z4(a);B4(a);D4(a);sqa(a);return C4(a)},vqa=function(a){return D4(a)},wqa=function(a,b,c,d){return $APP.I(c,d)?(B4(a),C4(a)):
9
+ null},E4=function(){return $APP.qi("x-timeline",new $APP.M(null,5,[$APP.hi,xqa,$APP.fi,uqa,$APP.ci,vqa,$APP.bi,wqa,$APP.gi,tqa],null))},y4=new $APP.F(null,"label-div","label-div",1505730697);var xqa=["label","position","striped"];$APP.he(["x-timeline-select",new $APP.M(null,2,[$APP.V,new $APP.M(null,3,[$APP.Fp,$APP.Z,$APP.ds,$APP.X,$APP.hk,$APP.X],null),$APP.Yt,!1],null)]);var qqa=new $APP.ah(null,new $APP.M(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.fa("baredom.exports.x_timeline.init",E4);export const init=E4;