@vanelsas/baredom 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +6 -4
  3. package/dist/base.js +397 -373
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +47 -47
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +8 -8
  17. package/dist/x-collapse.js +10 -10
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +19 -19
  21. package/dist/x-copy.js +23 -23
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +9 -9
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +15 -15
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +11 -11
  40. package/dist/x-metaball-cursor.js +28 -27
  41. package/dist/x-modal.js +12 -12
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +34 -34
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +9 -9
  52. package/dist/x-progress.js +10 -10
  53. package/dist/x-radio.js +11 -11
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -36
  58. package/dist/x-scroll-timeline.js +50 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +14 -14
  61. package/dist/x-select.js +9 -9
  62. package/dist/x-sidebar.js +16 -16
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +22 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +5 -5
  68. package/dist/x-splash.js +13 -13
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +10 -10
  72. package/dist/x-tab.js +7 -7
  73. package/dist/x-table-cell.js +22 -22
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-timeline-item.js +24 -24
  79. package/dist/x-timeline.js +9 -9
  80. package/dist/x-toast.js +24 -24
  81. package/dist/x-toaster.js +8 -8
  82. package/dist/x-typography.js +10 -10
  83. package/package.json +25 -1
package/dist/x-copy.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var lv=function(a){return a==null?!0:$APP.C.h(a,"false")?!1:$APP.C.h(a,"0")?!1:!0},mv=function(a){return typeof a==="string"&&$APP.O(a,"")?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:1200):1200},nv=function(a){return Math.min(1E4,Math.max(100,a))},Bv=function(a){var b=$APP.N(a);a=$APP.I(b,ov);var c=$APP.I(b,pv),d=$APP.I(b,qv),e=$APP.I(b,$APP.Vg),g=$APP.I(b,$APP.Mj),h=$APP.I(b,rv),k=$APP.I(b,sv),m=$APP.I(b,$APP.ck),p=$APP.I(b,tv);b=$APP.I(b,uv);return $APP.mf([vv,$APP.ri,wv,xv,yv,$APP.dh,zv,$APP.X,Av,
3
- $APP.Rj],[lv(b),$APP.C.h(g,"html")?"html":"text",typeof k==="string"&&$APP.O(k.trim(),"")?k.trim():null,typeof a==="string"&&$APP.O(a.trim(),"")?a.trim():null,nv(mv(c)),typeof d==="string"&&$APP.O(d.trim(),"")?d.trim():null,function(){var q;if(q=typeof h==="string")q=(q=$APP.O(h,""))?h:q;return $APP.n(q)?q:"Copy failed"}(),$APP.J(m),function(){var q;if(q=typeof p==="string")q=(q=$APP.O(p,""))?p:q;return $APP.n(q)?q:"Copied"}(),typeof e==="string"&&$APP.O(e.trim(),"")?e.trim():null])},Cv=function(a){var b=
4
- $APP.N(a);a=$APP.I(b,$APP.Rj);var c=$APP.I(b,$APP.dh),d=$APP.I(b,wv);b=$APP.I(b,$APP.ri);return{text:$APP.n(a)?a:"",mode:$APP.n(b)?b:"text",from:$APP.n(c)?c:null,fromAttr:$APP.n(d)?d:null}},Dv=function(a){var b=$APP.l(a,"__xCopyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span");
2
+ var my=function(a){return a==null?!0:$APP.D.i(a,"false")?!1:$APP.D.i(a,"0")?!1:!0},ny=function(a){return typeof a==="string"&&$APP.O(a,"")?(a=parseInt(a,10),$APP.t(isNaN(a))&&a>0?a:1200):1200},oy=function(a){return Math.min(1E4,Math.max(100,a))},Cy=function(a){var b=$APP.N(a);a=$APP.G(b,py);var c=$APP.G(b,qy),d=$APP.G(b,ry),e=$APP.G(b,$APP.qh),g=$APP.G(b,$APP.Bk),h=$APP.G(b,sy),k=$APP.G(b,ty),m=$APP.G(b,$APP.Rk),p=$APP.G(b,uy);b=$APP.G(b,vy);return $APP.Q([wy,$APP.Ri,xy,yy,zy,$APP.zh,Ay,$APP.W,By,
3
+ $APP.Gk],[my(b),$APP.D.i(g,"html")?"html":"text",typeof k==="string"&&$APP.O(k.trim(),"")?k.trim():null,typeof a==="string"&&$APP.O(a.trim(),"")?a.trim():null,oy(ny(c)),typeof d==="string"&&$APP.O(d.trim(),"")?d.trim():null,function(){var q;if(q=typeof h==="string")q=(q=$APP.O(h,""))?h:q;return $APP.r(q)?q:"Copy failed"}(),$APP.I(m),function(){var q;if(q=typeof p==="string")q=(q=$APP.O(p,""))?p:q;return $APP.r(q)?q:"Copied"}(),typeof e==="string"&&$APP.O(e.trim(),"")?e.trim():null])},Dy=function(a){var b=
4
+ $APP.N(a);a=$APP.G(b,$APP.Gk);var c=$APP.G(b,$APP.zh),d=$APP.G(b,xy);b=$APP.G(b,$APP.Ri);return{text:$APP.r(a)?a:"",mode:$APP.r(b)?b:"text",from:$APP.r(c)?c:null,fromAttr:$APP.r(d)?d:null}},Ey=function(a){var b=$APP.l(a,"__xCopyRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span");
5
5
  c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-copy-tooltip-bg:#1e293b;--x-copy-tooltip-fg:#f8fafc;--x-copy-tooltip-success-bg:#15803d;--x-copy-tooltip-success-fg:#f0fdf4;--x-copy-tooltip-error-bg:#b91c1c;--x-copy-tooltip-error-fg:#fef2f2;--x-copy-tooltip-radius:6px;--x-copy-tooltip-padding:4px 8px;--x-copy-tooltip-font-size:0.8125rem;--x-copy-tooltip-z:100;}@media (prefers-color-scheme:dark){:host{--x-copy-tooltip-bg:#0f172a;--x-copy-tooltip-fg:#e2e8f0;--x-copy-tooltip-success-bg:#166534;--x-copy-tooltip-success-fg:#dcfce7;--x-copy-tooltip-error-bg:#991b1b;--x-copy-tooltip-error-fg:#fee2e2;}}[part\x3dwrap]{display:inline-flex;align-items:center;justify-content:center;}[part\x3dtrigger]{all:unset;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;}[part\x3dtrigger]:focus-visible{outline:2px solid currentColor;outline-offset:2px;}:host([disabled]) [part\x3dtrigger]{opacity:0.55;pointer-events:none;cursor:default;}[part\x3dtooltip]{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--x-copy-tooltip-bg);color:var(--x-copy-tooltip-fg);border-radius:var(--x-copy-tooltip-radius);padding:var(--x-copy-tooltip-padding);font-size:var(--x-copy-tooltip-font-size);z-index:var(--x-copy-tooltip-z);pointer-events:none;}:host([data-tooltip-open]) [part\x3dtooltip]{display:block;}:host([data-tooltip-kind\x3dsuccess]) [part\x3dtooltip]{background:var(--x-copy-tooltip-success-bg);color:var(--x-copy-tooltip-success-fg);}:host([data-tooltip-kind\x3derror]) [part\x3dtooltip]{background:var(--x-copy-tooltip-error-bg);color:var(--x-copy-tooltip-error-fg);}@media (prefers-reduced-motion:reduce){[part\x3dtrigger]{transition:none;}}";
6
- d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},Ev=function(a){return Bv($APP.mf([qv,
7
- $APP.Vg,$APP.Mj,rv,sv,$APP.ck,tv,uv,ov,pv],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},Fv=function(a){var b=$APP.l(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.O(b,""))return b;b=a.getAttribute("from");
8
- return typeof b==="string"&&$APP.O(b,"")&&(b=document.querySelector(b),$APP.n(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.O(a,"")?b.getAttribute(a):b.textContent,$APP.n(a)?a:""):""},Gv=function(a){var b=Fv(a),c=function(){var d=a.getAttribute("mode");return $APP.n(d)?d:"text"}();return new Promise(function(d,e){if($APP.C.h(c,"html")){if($APP.n(function(){var h=navigator.clipboard;return $APP.n(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.Sg(new $APP.Q(null,
9
- 1,5,$APP.fe,[new ClipboardItem({"text/html":new Blob([b],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.n(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
10
- d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},Hv=function(a,b,c,d){var e=
11
- $APP.l(a,"__xCopyRefs");if($APP.n(e)){var g=$APP.l(a,"__xCopyTid");$APP.n(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.ma(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.n(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},Iv=function(a,b,c,d){b=new CustomEvent(b,
12
- {detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},Jv=function(a){if($APP.n(a.hasAttribute("disabled")))return Promise.resolve(null);var b=Ev(a),c=Cv(b);c=Iv(a,"x-copy-request",c,!0);return $APP.n(c.defaultPrevented)?Promise.resolve(null):Gv(a).then(function(d){Iv(a,"x-copy-success",{text:$APP.n(d)?d:""},!1);$APP.n(vv.g(b))&&Hv(a,"success",Av.g(b),yv.g(b));return d}).catch(function(d){Iv(a,"x-copy-error",{error:""+$APP.T.g(d)},!1);$APP.n(vv.g(b))&&Hv(a,"error",zv.g(b),yv.g(b));
13
- return Promise.reject(d)})},Kv=function(a,b){if(typeof b==="string"&&$APP.O(b,"")){var c=b.toLowerCase().split("+");b=$APP.nc(c);var d=$APP.J($APP.Id(function(h){return $APP.C.h(h,"ctrl")},c)),e=$APP.J($APP.Id(function(h){return $APP.C.h(h,"shift")},c)),g=$APP.J($APP.Id(function(h){return $APP.C.h(h,"alt")},c));c=$APP.J($APP.Id(function(h){return $APP.C.h(h,"meta")},c));return $APP.C.h(a.key.toLowerCase(),b)&&$APP.C.h(d,a.ctrlKey)&&$APP.C.h(e,a.shiftKey)&&$APP.C.h(g,a.altKey)&&$APP.C.h(c,a.metaKey)}return null},
14
- Lv=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.n(Kv(e,g))?(e.preventDefault(),Jv(a)):null}function c(){return Jv(a)}var d=Dv(a);$APP.l(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.ma(a,"__xCopyHandlers",{click:c,keydown:b})},Mv=function(a){var b=$APP.l(a,"__xCopyTid");$APP.n(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.l(a,"__xCopyHandlers");var c=$APP.l(a,"__xCopyRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.l(c,"trigger");var d=$APP.l(b,
15
- "click");b=$APP.l(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},Nv=function(a){var b=Dv(a),c=a.hasAttribute("disabled");$APP.l(b,"trigger").disabled=$APP.J(c);$APP.n(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},Ov=function(a){for(var b=$APP.u(new $APP.Q(null,7,5,$APP.fe,[new $APP.Q(null,2,5,$APP.fe,["text","text"],null),new $APP.Q(null,2,5,$APP.fe,["from","from"],null),new $APP.Q(null,
16
- 2,5,$APP.fe,["fromAttr","from-attr"],null),new $APP.Q(null,2,5,$APP.fe,["mode","mode"],null),new $APP.Q(null,2,5,$APP.fe,["successMessage","success-message"],null),new $APP.Q(null,2,5,$APP.fe,["errorMessage","error-message"],null),new $APP.Q(null,2,5,$APP.fe,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.E(g,0,null),k=$APP.E(g,1,null);Object.defineProperty(a,h,{get:function(q,v,x,y,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,g,h,k),set:function(q,
17
- v,x,y,A,D,G){return function(H){return H==null?this.removeAttribute(G):this.setAttribute(G,""+$APP.T.g(H))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.Cc(g))b=$APP.qb(g),e=$APP.rb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.w(g);var m=$APP.E(k,0,null),p=$APP.E(k,1,null);Object.defineProperty(a,m,{get:function(q,v,x,y,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,k,m,p,g,h),set:function(q,v,x,y,A,D,G){return function(H){return H==null?this.removeAttribute(G):
18
- this.setAttribute(G,""+$APP.T.g(H))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(q){return $APP.n(q)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return lv(this.getAttribute("show-tooltip"))},set:function(q){return $APP.n(q)?this.setAttribute("show-tooltip",
19
- "true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return mv(this.getAttribute("tooltip-ms"))},set:function(q){return q==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.T.g(q|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.l(this,"__xCopyTextValue")},set:function(q){this.__xCopyTextValue=typeof q==="string"?q:void 0},enumerable:!0,
20
- configurable:!0});Object.defineProperty(a,"copy",{value:function(){return Jv(this)},enumerable:!0,configurable:!0,writable:!0})},Qv=function(){var a=class extends HTMLElement{};a.observedAttributes=Pv;a.prototype.connectedCallback=function(){Dv(this);Mv(this);Lv(this);Nv(this);return null};a.prototype.disconnectedCallback=function(){Mv(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Nv(this);return null};Ov(a.prototype);return a},Rv=function(){$APP.n(customElements.get("x-copy"))||
21
- customElements.define("x-copy",Qv());return null},vv=new $APP.M(null,"show-tooltip?","show-tooltip?",-1214081087),pv=new $APP.M(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),Av=new $APP.M(null,"success-message","success-message",-96541601),rv=new $APP.M(null,"error-message-raw","error-message-raw",1910536231),xv=new $APP.M(null,"hotkey","hotkey",-329017295),zv=new $APP.M(null,"error-message","error-message",1756021561),Sv=new $APP.M(null,"fromAttr","fromAttr",-1768252533),sv=new $APP.M(null,
22
- "from-attr-raw","from-attr-raw",761657416),yv=new $APP.M(null,"tooltip-ms","tooltip-ms",1062450417),tv=new $APP.M(null,"success-message-raw","success-message-raw",388691116),qv=new $APP.M(null,"from-raw","from-raw",-44462428),wv=new $APP.M(null,"from-attr","from-attr",1217901743),ov=new $APP.M(null,"hotkey-raw","hotkey-raw",1972404222),uv=new $APP.M(null,"show-tooltip-raw","show-tooltip-raw",453600717);var Pv="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
23
- $APP.mf([new $APP.M(null,"errorMessage","errorMessage",982744869),$APP.Di,new $APP.M(null,"textValue","textValue",-598870870),$APP.ri,Sv,new $APP.M(null,"tooltipMs","tooltipMs",1056463375),xv,$APP.dh,new $APP.M(null,"showTooltip","showTooltip",482349691),new $APP.M(null,"successMessage","successMessage",-789572803),$APP.Rj],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"error-message"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"disabled"],null),new $APP.R(null,3,[$APP.Z,$APP.Y,$APP.nj,null,new $APP.M(null,
24
- "note","note",1426297904),"property-only override"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"mode"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"from-attr"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"tooltip-ms"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"hotkey"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"from"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"show-tooltip"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"success-message"],null),new $APP.R(null,2,[$APP.Z,
25
- $APP.Y,$APP.nj,"text"],null)]);$APP.Ed(["x-copy-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,4,[$APP.Rj,$APP.Y,$APP.ri,$APP.Y,$APP.dh,$APP.Y,Sv,$APP.Y],null)],null),"x-copy-success",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,1,[$APP.Rj,$APP.Y],null)],null),"x-copy-error",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,1,[$APP.Gh,$APP.Y],null)],null)]);$APP.ja("baredom.exports.x_copy.init",Rv);export const init=Rv;
6
+ d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},Fy=function(a){return Cy($APP.Q([ry,
7
+ $APP.qh,$APP.Bk,sy,ty,$APP.Rk,uy,vy,py,qy],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},Gy=function(a){var b=$APP.l(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.O(b,""))return b;b=a.getAttribute("from");
8
+ return typeof b==="string"&&$APP.O(b,"")&&(b=document.querySelector(b),$APP.r(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.O(a,"")?b.getAttribute(a):b.textContent,$APP.r(a)?a:""):""},Hy=function(a){var b=Gy(a),c=function(){var d=a.getAttribute("mode");return $APP.r(d)?d:"text"}();return new Promise(function(d,e){if($APP.D.i(c,"html")){if($APP.r(function(){var h=navigator.clipboard;return $APP.r(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.nh(new $APP.ve(null,
9
+ 1,5,$APP.we,[new ClipboardItem({"text/html":new Blob([b],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.r(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
10
+ d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},Iy=function(a,b,c,d){var e=
11
+ $APP.l(a,"__xCopyRefs");if($APP.r(e)){var g=$APP.l(a,"__xCopyTid");$APP.r(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.n(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.r(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},Jy=function(a,b,c,d){b=new CustomEvent(b,
12
+ {detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},Ky=function(a){if($APP.r(a.hasAttribute("disabled")))return Promise.resolve(null);var b=Fy(a),c=Dy(b);c=Jy(a,"x-copy-request",c,!0);return $APP.r(c.defaultPrevented)?Promise.resolve(null):Hy(a).then(function(d){Jy(a,"x-copy-success",{text:$APP.r(d)?d:""},!1);$APP.r(wy.g(b))&&Iy(a,"success",By.g(b),zy.g(b));return d}).catch(function(d){Jy(a,"x-copy-error",{error:""+$APP.S.g(d)},!1);$APP.r(wy.g(b))&&Iy(a,"error",Ay.g(b),zy.g(b));
13
+ return Promise.reject(d)})},Ly=function(a,b){if(typeof b==="string"&&$APP.O(b,"")){var c=b.toLowerCase().split("+");b=$APP.zc(c);var d=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"ctrl")},c)),e=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"shift")},c)),g=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"alt")},c));c=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"meta")},c));return $APP.D.i(a.key.toLowerCase(),b)&&$APP.D.i(d,a.ctrlKey)&&$APP.D.i(e,a.shiftKey)&&$APP.D.i(g,a.altKey)&&$APP.D.i(c,a.metaKey)}return null},
14
+ My=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.r(Ly(e,g))?(e.preventDefault(),Ky(a)):null}function c(){return Ky(a)}var d=Ey(a);$APP.l(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.n(a,"__xCopyHandlers",{click:c,keydown:b})},Ny=function(a){var b=$APP.l(a,"__xCopyTid");$APP.r(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.l(a,"__xCopyHandlers");var c=$APP.l(a,"__xCopyRefs");if($APP.r($APP.r(b)?c:b)){c=$APP.l(c,"trigger");var d=$APP.l(b,
15
+ "click");b=$APP.l(b,"keydown");$APP.r(d)&&c.removeEventListener("click",d);$APP.r(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},Oy=function(a){var b=Ey(a),c=a.hasAttribute("disabled");$APP.l(b,"trigger").disabled=$APP.I(c);$APP.r(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},Py=function(a){for(var b=$APP.u(new $APP.ve(null,7,5,$APP.we,[new $APP.ve(null,2,5,$APP.we,["text","text"],null),new $APP.ve(null,2,5,$APP.we,["from","from"],null),new $APP.ve(null,
16
+ 2,5,$APP.we,["fromAttr","from-attr"],null),new $APP.ve(null,2,5,$APP.we,["mode","mode"],null),new $APP.ve(null,2,5,$APP.we,["successMessage","success-message"],null),new $APP.ve(null,2,5,$APP.we,["errorMessage","error-message"],null),new $APP.ve(null,2,5,$APP.we,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.Cc(g,0,null),k=$APP.Cc(g,1,null);Object.defineProperty(a,h,{get:function(q,w,x,y,A,C,E){return function(){return this.getAttribute(E)}}(b,c,d,e,g,h,k),set:function(q,
17
+ w,x,y,A,C,E){return function(H){return H==null?this.removeAttribute(E):this.setAttribute(E,""+$APP.S.g(H))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.Pc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.v(g);var m=$APP.Cc(k,0,null),p=$APP.Cc(k,1,null);Object.defineProperty(a,m,{get:function(q,w,x,y,A,C,E){return function(){return this.getAttribute(E)}}(b,c,d,e,k,m,p,g,h),set:function(q,w,x,y,A,C,E){return function(H){return H==null?this.removeAttribute(E):
18
+ this.setAttribute(E,""+$APP.S.g(H))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(q){return $APP.r(q)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return my(this.getAttribute("show-tooltip"))},set:function(q){return $APP.r(q)?this.setAttribute("show-tooltip",
19
+ "true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return ny(this.getAttribute("tooltip-ms"))},set:function(q){return q==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.S.g(q|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.l(this,"__xCopyTextValue")},set:function(q){this.__xCopyTextValue=typeof q==="string"?q:void 0},enumerable:!0,
20
+ configurable:!0});Object.defineProperty(a,"copy",{value:function(){return Ky(this)},enumerable:!0,configurable:!0,writable:!0})},Ry=function(){var a=class extends HTMLElement{};a.observedAttributes=Qy;a.prototype.connectedCallback=function(){Ey(this);Ny(this);My(this);Oy(this);return null};a.prototype.disconnectedCallback=function(){Ny(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Oy(this);return null};Py(a.prototype);return a},Sy=function(){$APP.r(customElements.get("x-copy"))||
21
+ customElements.define("x-copy",Ry());return null},wy=new $APP.M(null,"show-tooltip?","show-tooltip?",-1214081087),qy=new $APP.M(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),By=new $APP.M(null,"success-message","success-message",-96541601),sy=new $APP.M(null,"error-message-raw","error-message-raw",1910536231),yy=new $APP.M(null,"hotkey","hotkey",-329017295),Ay=new $APP.M(null,"error-message","error-message",1756021561),Ty=new $APP.M(null,"fromAttr","fromAttr",-1768252533),ty=new $APP.M(null,
22
+ "from-attr-raw","from-attr-raw",761657416),zy=new $APP.M(null,"tooltip-ms","tooltip-ms",1062450417),uy=new $APP.M(null,"success-message-raw","success-message-raw",388691116),ry=new $APP.M(null,"from-raw","from-raw",-44462428),xy=new $APP.M(null,"from-attr","from-attr",1217901743),py=new $APP.M(null,"hotkey-raw","hotkey-raw",1972404222),vy=new $APP.M(null,"show-tooltip-raw","show-tooltip-raw",453600717);var Qy="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
23
+ $APP.Q([new $APP.M(null,"errorMessage","errorMessage",982744869),$APP.gj,new $APP.M(null,"textValue","textValue",-598870870),$APP.Ri,Ty,new $APP.M(null,"tooltipMs","tooltipMs",1056463375),yy,$APP.zh,new $APP.M(null,"showTooltip","showTooltip",482349691),new $APP.M(null,"successMessage","successMessage",-789572803),$APP.Gk],[new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"error-message"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"disabled"],null),new $APP.P(null,3,[$APP.Z,$APP.Y,$APP.Oj,null,new $APP.M(null,
24
+ "note","note",1426297904),"property-only override"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"mode"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"from-attr"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Oj,"tooltip-ms"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"hotkey"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"from"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"show-tooltip"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"success-message"],null),new $APP.P(null,2,[$APP.Z,
25
+ $APP.Y,$APP.Oj,"text"],null)]);$APP.Sd(["x-copy-request",new $APP.P(null,2,[$APP.kl,!0,$APP.U,new $APP.P(null,4,[$APP.Gk,$APP.Y,$APP.Ri,$APP.Y,$APP.zh,$APP.Y,Ty,$APP.Y],null)],null),"x-copy-success",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[$APP.Gk,$APP.Y],null)],null),"x-copy-error",new $APP.P(null,2,[$APP.kl,!1,$APP.U,new $APP.P(null,1,[$APP.Zh,$APP.Y],null)],null)]);$APP.ka("baredom.exports.x_copy.init",Sy);export const init=Sy;
@@ -1,24 +1,24 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hF=function(a){a=(""+$APP.T.g($APP.n(a)?a:"")).trim().toUpperCase();return $APP.C.h(a,"")?"USD":a},iF=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},jF=function(a,b){try{var c=(new Intl.NumberFormat($APP.C.h(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.Id(function(e){return $APP.C.h("currency",e.type)?e.value:null},$APP.kc(c));return $APP.n(d)?d:a}catch(e){return a}},kF=function(a,b){var c=parseFloat(a);if($APP.n(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.C.h(b,
3
- "")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},lF=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("input"),m=document.createElement("span"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:#ffffff;--x-currency-field-color:#111827;--x-currency-field-border:1px solid #d1d5db;--x-currency-field-border-radius:6px;--x-currency-field-focus-ring-color:#2563eb;--x-currency-field-symbol-color:#6b7280;--x-currency-field-label-color:#374151;--x-currency-field-hint-color:#6b7280;--x-currency-field-error-color:#dc2626;--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:#1f2937;--x-currency-field-color:#f9fafb;--x-currency-field-border:1px solid #4b5563;--x-currency-field-focus-ring-color:#3b82f6;--x-currency-field-symbol-color:#9ca3af;--x-currency-field-label-color:#d1d5db;--x-currency-field-hint-color:#9ca3af;--x-currency-field-error-color:#f87171;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
2
+ var eI=function(a){a=(""+$APP.S.g($APP.r(a)?a:"")).trim().toUpperCase();return $APP.D.i(a,"")?"USD":a},fI=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},gI=function(a,b){try{var c=(new Intl.NumberFormat($APP.D.i(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.Wd(function(e){return $APP.D.i("currency",e.type)?e.value:null},$APP.wc(c));return $APP.r(d)?d:a}catch(e){return a}},hI=function(a,b){var c=parseFloat(a);if($APP.r(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.D.i(b,
3
+ "")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},iI=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("input"),m=document.createElement("span"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:#ffffff;--x-currency-field-color:#111827;--x-currency-field-border:1px solid #d1d5db;--x-currency-field-border-radius:6px;--x-currency-field-focus-ring-color:#2563eb;--x-currency-field-symbol-color:#6b7280;--x-currency-field-label-color:#374151;--x-currency-field-hint-color:#6b7280;--x-currency-field-error-color:#dc2626;--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:#1f2937;--x-currency-field-color:#f9fafb;--x-currency-field-border:1px solid #4b5563;--x-currency-field-focus-ring-color:#3b82f6;--x-currency-field-symbol-color:#9ca3af;--x-currency-field-label-color:#d1d5db;--x-currency-field-hint-color:#9ca3af;--x-currency-field-error-color:#f87171;}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
4
4
  d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("inputmode","decimal");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id",
5
- "error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(k);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(p);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:k,hint:m,error:p}},mF=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.n(g)?g:"";var h=a.hasAttribute("required"),k=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var p=
6
- $APP.r(isNaN(a));k=$APP.n(k)?parseFloat(k):null;m=$APP.n(m)?parseFloat(m):null;return $APP.n(e)?b.setValidity({customError:!0},g,c):$APP.n($APP.n(h)?$APP.C.h(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.O(d,"")&&!p?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.n(p?$APP.n(k)?$APP.r(isNaN(k))&&a<k:k:p)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.T.g(k)+".",c):$APP.n(p?$APP.n(m)?$APP.r(isNaN(m))&&a>m:m:p)?b.setValidity({rangeOverflow:!0},
7
- "Value must be at most "+$APP.T.g(m)+".",c):b.setValidity({},"",c)},rF=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"symbol"),e=$APP.l(b,"input"),g=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.mf([$APP.sh,nF,$APP.Pj,$APP.Kh,$APP.Zh,$APP.ck,oF,$APP.Xg,$APP.yj,$APP.Bi,$APP.Ak,pF,$APP.Qh],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
8
- a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.N(h);h=$APP.I(k,$APP.Qh);var m=$APP.I(k,$APP.sh),p=$APP.I(k,nF),q=$APP.I(k,$APP.Pj),v=$APP.I(k,$APP.Kh),x=$APP.I(k,$APP.Zh),y=$APP.I(k,$APP.ck),A=$APP.I(k,oF),D=$APP.I(k,$APP.Xg),G=$APP.I(k,$APP.yj),H=$APP.I(k,$APP.Bi),F=$APP.I(k,$APP.Ak);k=$APP.I(k,pF);var P=$APP.n(v)?v:"",la=$APP.n(x)?x:"",Ca=$APP.n(m)?m:"";h=$APP.mf([$APP.Ri,$APP.ph,
9
- $APP.Uk,$APP.xk,$APP.wh,$APP.Vk,$APP.si,$APP.Xh,$APP.Sj,$APP.zj,$APP.jk,qF,$APP.wj,$APP.U,$APP.Gh,$APP.X],[$APP.n(A)?A:"",$APP.J(D),$APP.J(H),$APP.n(h)?h:"",typeof x==="string"&&$APP.O(x,""),$APP.n(k)?k:"",$APP.n(q)?q:"",$APP.n(F)?F:"",typeof m==="string"&&$APP.O(m,""),typeof v==="string"&&$APP.O(v,""),la,hF(p),$APP.n(G)?G:"",Ca,P,$APP.J(y)]);m=$APP.zj.g(h);$APP.n(m)?p=null:(v=$APP.N(h),p=$APP.I(v,$APP.Xh),q=$APP.I(v,$APP.Ri),v=$APP.I(v,$APP.wj),x=parseFloat(p),y=$APP.O(p,"")&&$APP.r(isNaN(x)),A=
10
- $APP.O(q,"")?parseFloat(q):null,D=$APP.O(v,"")?parseFloat(v):null,p=$APP.O(p,"")&&!y?"Please enter a valid number.":$APP.n(y?$APP.n(A)?$APP.r(isNaN(A))&&x<A:A:y)?"Value must be at least "+$APP.T.g(q)+".":$APP.n(y?$APP.n(D)?$APP.r(isNaN(D))&&x>D:D:y)?"Value must be at most "+$APP.T.g(v)+".":"");q=p;p=$APP.n(m)?m:$APP.O($APP.n(q)?q:"","");m=$APP.n(m)?$APP.Gh.g(h):$APP.n(q)?q:"";q=$APP.wh.g(h);v=$APP.Sj.g(h);y=qF.g(h);x=$APP.Vk.g(h);d.textContent=jF(y,x);e.name=$APP.si.g(h);e.placeholder=$APP.xk.g(h);
11
- e.disabled=$APP.X.g(h);e.readOnly=$APP.Uk.g(h);e.required=$APP.ph.g(h);d=$APP.n($APP.ph.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.n(p)?"true":"false");d=$APP.n($APP.n(q)?p:q)?"hint error":$APP.n(q)?"hint":$APP.n(p)?"error":null;$APP.n(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.C.h(e,a.shadowRoot.activeElement)||(d=$APP.Xh.g(h),e.value=$APP.C.h(d,"")?"":kF(d,x));c.textContent=$APP.U.g(h);$APP.n(v)?c.classList.remove("label-hidden"):
12
- c.classList.add("label-hidden");g.textContent=$APP.jk.g(h);$APP.n(q)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.n(p)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");iF(a,"data-invalid",p);c=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(c)?(g=a.getAttribute("value"),a=mF(a,c,e,$APP.n(g)?g:"")):a=null;return a}return null},sF=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},tF=function(a){return function(){var b=
13
- $APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.n(c)?c:""}return null}},uF=function(a){return function(){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),mF(a,e,b,c));return sF(a,"x-currency-field-input",{name:d,value:c})}return null}},vF=function(a){return function(){var b=
14
- $APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.n(isNaN(d))?c:""+$APP.T.g(d);d=a.getAttribute("name");d=$APP.n(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),mF(a,e,b,c));return sF(a,"x-currency-field-change",{name:d,value:c})}return null}},wF=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=tF(a),d=uF(a),e=vF(a);b.addEventListener("focus",
15
- c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},xF=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.l(a,"__xCurrencyFieldHandlers");if($APP.n(c)){b=$APP.l(b,"input");b.removeEventListener("focus",$APP.l(c,"focus"));b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},yF=function(a){$APP.n($APP.l(a,"__xCurrencyFieldRefs"))||
16
- (lF(a),$APP.n(a.attachInternals)&&$APP.ma(a,"__xCurrencyFieldInternals",a.attachInternals()));xF(a);var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");hF(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.n(e)?e:""}();$APP.n(c)&&(b.value=kF(c,d))}b=$APP.l(a,"__xCurrencyFieldInternals");$APP.n(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.n(e)?e:""}());wF(a);return rF(a)},zF=function(a,
17
- b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},AF=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return iF(this,c,$APP.J(d))}})},BF=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
18
- this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xCurrencyFieldRefs");if($APP.n(c)){c=$APP.l(c,"input");hF(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.n(d)?d:"";return $APP.C.h(c,this.shadowRoot.activeElement)?null:c.value=$APP.C.h(b,"")?"":kF(b,d)}return null}})},DF=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
19
- CF;BF(b);zF(b,"name","name");zF(b,"currency","currency");zF(b,"locale","locale");zF(b,"min","min");zF(b,"max","max");zF(b,"placeholder","placeholder");zF(b,"label","label");zF(b,"hint","hint");zF(b,"error","error");AF(b,"disabled","disabled");AF(b,"readOnly","readonly");AF(b,"required","required");b.connectedCallback=function(){return yF(this)};b.disconnectedCallback=function(){return xF(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.h(c,"value")&&(c=$APP.l(this,"__xCurrencyFieldRefs"),
20
- $APP.n(c)&&(c=$APP.l(c,"input"),$APP.C.h(c,this.shadowRoot.activeElement)||(hF(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.n(d)?d:"",c.value=e==null||$APP.C.h(e,"")?"":kF(e,d))));return rF(this)};b.formDisabledCallback=function(c){iF(this,"disabled",$APP.J(c));return rF(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xCurrencyFieldRefs");$APP.n(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xCurrencyFieldInternals");$APP.n(c)&&c.setFormValue("");
21
- return rF(this)};b.checkValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.reportValidity():!0};return a},EF=function(){return $APP.n(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",DF())},oF=new $APP.M(null,"min-raw","min-raw",183137548),qF=new $APP.M(null,"currency","currency",-898327568),pF=new $APP.M(null,"locale-raw",
22
- "locale-raw",385401846),nF=new $APP.M(null,"currency-raw","currency-raw",1169887491);var CF="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
23
- $APP.mf([$APP.Ri,$APP.xk,$APP.Di,$APP.Vk,$APP.si,$APP.Xh,$APP.jk,qF,$APP.tk,$APP.wj,$APP.U,$APP.Gh,$APP.kj],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"min"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"placeholder"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"locale"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"hint"],
24
- null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"currency"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"max"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"label"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"error"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"required"],null)]);$APP.ja("baredom.exports.x_currency_field.init",EF);export const init=EF;
5
+ "error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(k);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(p);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:k,hint:m,error:p}},jI=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.r(g)?g:"";var h=a.hasAttribute("required"),k=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var p=
6
+ $APP.t(isNaN(a));k=$APP.r(k)?parseFloat(k):null;m=$APP.r(m)?parseFloat(m):null;return $APP.r(e)?b.setValidity({customError:!0},g,c):$APP.r($APP.r(h)?$APP.D.i(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.O(d,"")&&!p?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.r(p?$APP.r(k)?$APP.t(isNaN(k))&&a<k:k:p)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.S.g(k)+".",c):$APP.r(p?$APP.r(m)?$APP.t(isNaN(m))&&a>m:m:p)?b.setValidity({rangeOverflow:!0},
7
+ "Value must be at most "+$APP.S.g(m)+".",c):b.setValidity({},"",c)},oI=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"symbol"),e=$APP.l(b,"input"),g=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.Q([$APP.Oh,kI,$APP.Ek,$APP.ci,$APP.wi,$APP.Rk,lI,$APP.sh,$APP.bk,$APP.cj,$APP.vl,mI,$APP.ii],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
8
+ a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.N(h);h=$APP.G(k,$APP.ii);var m=$APP.G(k,$APP.Oh),p=$APP.G(k,kI),q=$APP.G(k,$APP.Ek),w=$APP.G(k,$APP.ci),x=$APP.G(k,$APP.wi),y=$APP.G(k,$APP.Rk),A=$APP.G(k,lI),C=$APP.G(k,$APP.sh),E=$APP.G(k,$APP.bk),H=$APP.G(k,$APP.cj),F=$APP.G(k,$APP.vl);k=$APP.G(k,mI);var K=$APP.r(w)?w:"",X=$APP.r(x)?x:"",da=$APP.r(m)?m:"";h=$APP.Q([$APP.vj,$APP.Lh,
9
+ $APP.Sl,$APP.rl,$APP.Sh,$APP.Tl,$APP.Si,$APP.ui,$APP.Hk,$APP.jk,$APP.$k,nI,$APP.Zj,$APP.T,$APP.Zh,$APP.W],[$APP.r(A)?A:"",$APP.I(C),$APP.I(H),$APP.r(h)?h:"",typeof x==="string"&&$APP.O(x,""),$APP.r(k)?k:"",$APP.r(q)?q:"",$APP.r(F)?F:"",typeof m==="string"&&$APP.O(m,""),typeof w==="string"&&$APP.O(w,""),X,eI(p),$APP.r(E)?E:"",da,K,$APP.I(y)]);m=$APP.jk.g(h);$APP.r(m)?p=null:(w=$APP.N(h),p=$APP.G(w,$APP.ui),q=$APP.G(w,$APP.vj),w=$APP.G(w,$APP.Zj),x=parseFloat(p),y=$APP.O(p,"")&&$APP.t(isNaN(x)),A=$APP.O(q,
10
+ "")?parseFloat(q):null,C=$APP.O(w,"")?parseFloat(w):null,p=$APP.O(p,"")&&!y?"Please enter a valid number.":$APP.r(y?$APP.r(A)?$APP.t(isNaN(A))&&x<A:A:y)?"Value must be at least "+$APP.S.g(q)+".":$APP.r(y?$APP.r(C)?$APP.t(isNaN(C))&&x>C:C:y)?"Value must be at most "+$APP.S.g(w)+".":"");q=p;p=$APP.r(m)?m:$APP.O($APP.r(q)?q:"","");m=$APP.r(m)?$APP.Zh.g(h):$APP.r(q)?q:"";q=$APP.Sh.g(h);w=$APP.Hk.g(h);y=nI.g(h);x=$APP.Tl.g(h);d.textContent=gI(y,x);e.name=$APP.Si.g(h);e.placeholder=$APP.rl.g(h);e.disabled=
11
+ $APP.W.g(h);e.readOnly=$APP.Sl.g(h);e.required=$APP.Lh.g(h);d=$APP.r($APP.Lh.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.r(p)?"true":"false");d=$APP.r($APP.r(q)?p:q)?"hint error":$APP.r(q)?"hint":$APP.r(p)?"error":null;$APP.r(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.D.i(e,a.shadowRoot.activeElement)||(d=$APP.ui.g(h),e.value=$APP.D.i(d,"")?"":hI(d,x));c.textContent=$APP.T.g(h);$APP.r(w)?c.classList.remove("label-hidden"):
12
+ c.classList.add("label-hidden");g.textContent=$APP.$k.g(h);$APP.r(q)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.r(p)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");fI(a,"data-invalid",p);c=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(c)?(g=a.getAttribute("value"),a=jI(a,c,e,$APP.r(g)?g:"")):a=null;return a}return null},pI=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},qI=function(a){return function(){var b=
13
+ $APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.r(c)?c:""}return null}},rI=function(a){return function(){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(e)&&(e.setFormValue(c),jI(a,e,b,c));return pI(a,"x-currency-field-input",{name:d,value:c})}return null}},sI=function(a){return function(){var b=
14
+ $APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.r(isNaN(d))?c:""+$APP.S.g(d);d=a.getAttribute("name");d=$APP.r(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(e)&&(e.setFormValue(c),jI(a,e,b,c));return pI(a,"x-currency-field-change",{name:d,value:c})}return null}},tI=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=qI(a),d=rI(a),e=sI(a);b.addEventListener("focus",
15
+ c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},uI=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){var c=$APP.l(a,"__xCurrencyFieldHandlers");if($APP.r(c)){b=$APP.l(b,"input");b.removeEventListener("focus",$APP.l(c,"focus"));b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},vI=function(a){$APP.r($APP.l(a,"__xCurrencyFieldRefs"))||
16
+ (iI(a),$APP.r(a.attachInternals)&&$APP.n(a,"__xCurrencyFieldInternals",a.attachInternals()));uI(a);var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");eI(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.r(e)?e:""}();$APP.r(c)&&(b.value=hI(c,d))}b=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.r(e)?e:""}());tI(a);return oI(a)},wI=function(a,
17
+ b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},xI=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return fI(this,c,$APP.I(d))}})},yI=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
18
+ this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xCurrencyFieldRefs");if($APP.r(c)){c=$APP.l(c,"input");eI(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.r(d)?d:"";return $APP.D.i(c,this.shadowRoot.activeElement)?null:c.value=$APP.D.i(b,"")?"":hI(b,d)}return null}})},AI=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
19
+ zI;yI(b);wI(b,"name","name");wI(b,"currency","currency");wI(b,"locale","locale");wI(b,"min","min");wI(b,"max","max");wI(b,"placeholder","placeholder");wI(b,"label","label");wI(b,"hint","hint");wI(b,"error","error");xI(b,"disabled","disabled");xI(b,"readOnly","readonly");xI(b,"required","required");b.connectedCallback=function(){return vI(this)};b.disconnectedCallback=function(){return uI(this)};b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xCurrencyFieldRefs"),
20
+ $APP.r(c)&&(c=$APP.l(c,"input"),$APP.D.i(c,this.shadowRoot.activeElement)||(eI(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.r(d)?d:"",c.value=e==null||$APP.D.i(e,"")?"":hI(e,d))));return oI(this)};b.formDisabledCallback=function(c){fI(this,"disabled",$APP.I(c));return oI(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xCurrencyFieldRefs");$APP.r(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xCurrencyFieldInternals");$APP.r(c)&&c.setFormValue("");
21
+ return oI(this)};b.checkValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.r(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.r(c)?c.reportValidity():!0};return a},BI=function(){return $APP.r(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",AI())},lI=new $APP.M(null,"min-raw","min-raw",183137548),nI=new $APP.M(null,"currency","currency",-898327568),mI=new $APP.M(null,"locale-raw",
22
+ "locale-raw",385401846),kI=new $APP.M(null,"currency-raw","currency-raw",1169887491);var zI="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
23
+ $APP.Q([$APP.vj,$APP.rl,$APP.gj,$APP.Tl,$APP.Si,$APP.ui,$APP.$k,nI,$APP.ml,$APP.Zj,$APP.T,$APP.Zh,$APP.Kj],[new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"placeholder"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"locale"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"hint"],
24
+ null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"currency"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"readonly"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.Y,$APP.Oj,"error"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Oj,"required"],null)]);$APP.ka("baredom.exports.x_currency_field.init",BI);export const init=BI;
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var eL=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},fL=function(a){return a!=null&&$APP.O(a,"false")},gL=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},hL=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(gL(a.getUTCMonth()+1))+"-"+$APP.T.g(gL(a.getUTCDate())):null},iL=function(a){var b=(b=typeof a==="string")?$APP.Vf(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.T.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:
3
- a):null},jL=function(a,b){if(a==null&&b==null)return 0;if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},kL=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},lL=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},mL=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.Gg.h(d,b)))}return null},
4
- nL=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?jL(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?jL(a,c)>0:a:c)?c:a},oL=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=jL(b,c)<0?c:b;return!(jL(a,jL(b,c)<0?b:c)<0)&&!(jL(a,d)>0)}return null},rL=function(a,b){var c=$APP.N(b);b=$APP.I(c,pL);c=$APP.I(c,$APP.Vk);return $APP.n(a)?$APP.C.h(b,qL)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):hL(a):null},uL=function(a){a=
5
- eL(a);a=$APP.n(a)?iL(a):null;return new $APP.R(null,2,[sL,a!=null,tL,a],null)},JL=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.Mh),d=$APP.I(b,$APP.Cj),e=$APP.I(b,$APP.Ri);a=$APP.I(b,pL);var g=$APP.I(b,$APP.Vk),h=$APP.I(b,vL),k=$APP.I(b,$APP.Xh),m=$APP.I(b,$APP.ri),p=$APP.I(b,$APP.sk),q=$APP.I(b,$APP.wj),v=$APP.I(b,wL);b=$APP.C.h(m,"range")?xL:yL;a=$APP.C.h(a,"localized")?qL:zL;g=eL(g);m=function(){var A=eL(d);return $APP.n(A)?A:" - "}();e=iL(e);q=iL(q);v=$APP.J(v);h=$APP.J(h);if($APP.C.h(b,yL))return b=
6
- iL(k),$APP.mf([pL,AL,$APP.Vk,BL,$APP.ri,CL,wL,$APP.Ej,$APP.Cj,DL,EL],[a,b,g,h,yL,q,v,b!=null,m,e,function(){var A=eL(k);return $APP.n(A)?A:""}()]);var x=iL(p),y=iL(c);b=x!=null&&y!=null;return $APP.mf([FL,pL,GL,$APP.Vk,BL,$APP.ri,CL,HL,IL,wL,$APP.Ej,$APP.Cj,DL],[function(){var A=eL(c);return $APP.n(A)?A:""}(),a,x,g,h,xL,q,function(){var A=eL(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},LL=function(a){if($APP.n(a)){var b=lL(a),c=kL(b,-($APP.n(b)?b.getUTCDay():0));return $APP.Ud(function(d){d=kL(c,d);var e=
7
- $APP.C.h(d.getUTCMonth(),a.getUTCMonth());return new $APP.R(null,2,[tL,d,KL,e],null)},$APP.Uf(0,42))}return null},ML=function(a){return document.createElement(a)},NL=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.J(c)});a.dispatchEvent(b);return b},OL=function(a){var b=a.getAttribute("mode");$APP.C.h(b,"range");b=JL($APP.mf([$APP.Ri,pL,$APP.Vk,vL,$APP.Xh,$APP.ri,$APP.sk,$APP.wj,wL,$APP.Mh,$APP.Cj],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),
8
- fL(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),fL(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.R(null,2,[pL,pL.g(b),$APP.Vk,$APP.Vk.g(b)],null);var d=$APP.N(c);var e=$APP.I(d,pL);d=$APP.I(d,$APP.Vk);e=new $APP.R(null,2,[pL,e,$APP.Vk,d],null);if($APP.C.h($APP.ri.g(b),yL))e=$APP.n(AL.g(b))?rL(AL.g(b),e):"";else{d=$APP.Cj.g(b);var g=GL.g(b);g=$APP.n(g)?IL.g(b):g;e=$APP.n(g)?""+$APP.T.g(rL(GL.g(b),
9
- e))+$APP.T.g(d)+$APP.T.g(rL(IL.g(b),e)):$APP.n(GL.g(b))?rL(GL.g(b),e):""}d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"month"):null;g=AL.g(b);$APP.n(g)||(g=GL.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:lL(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},PL=function(a,b){var c=DL.g(b);c=$APP.n(c)?jL(a,DL.g(b))<0:c;if($APP.n(c))return c;c=CL.g(b);return $APP.n(c)?jL(a,CL.g(b))>0:c},SL=function(a,b){if($APP.C.h($APP.ri.g(b),yL))return new $APP.R(null,3,[$APP.$h,function(){var k=
10
- AL.g(b);return $APP.n(k)?$APP.C.h(0,jL(a,AL.g(b))):k}(),QL,!1,RL,!1],null);var c=GL.g(b),d=IL.g(b),e=function(){var k=$APP.n(c)?$APP.C.h(0,jL(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,jL(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?oL(a,c,d):d:c,h=function(){var k=$APP.n(c)?$APP.C.h(0,jL(a,c)):c;return $APP.n(k)?k:$APP.n(d)?$APP.C.h(0,jL(a,d)):d}();return new $APP.R(null,3,[$APP.$h,e,QL,g,RL,h],null)},TL=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):
11
- null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');$APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},UL=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"month-label"),d=$APP.l(b,"grid"),e=$APP.l(b,"weekdays"),g=$APP.l(a,"__xDatePickerState");b=$APP.n(g)?$APP.l(g,"canon"):null;var h=$APP.n(g)?$APP.l(g,"month"):null;g=$APP.n(g)?$APP.l(g,"cfg"):
12
- null;g=$APP.n(g)?$APP.Vk.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=ML("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.l(a,"__xDatePickerState");
13
- e=LL($APP.n(e)?$APP.l(e,"month"):null);c=$APP.u(e);h=null;for(var k=g=0;;)if(k<g){e=h.G(null,k);e=$APP.N(e);var m=$APP.I(e,tL);e=$APP.I(e,KL);var p=ML("button"),q=hL(m),v=m.getUTCDate(),x=PL(m,b);m=SL(m,b);var y=$APP.N(m);m=$APP.I(y,$APP.$h);var A=$APP.I(y,QL);y=$APP.I(y,RL);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",q);p.setAttribute("data-outside",$APP.n(e)?"false":"true");p.setAttribute("data-disabled",$APP.n(x)?"true":
14
- "false");p.setAttribute("data-selected",$APP.n(m)?"true":"false");p.setAttribute("data-in-range",$APP.n(A)?"true":"false");p.setAttribute("data-range-edge",$APP.n(y)?"true":"false");p.setAttribute("aria-selected",$APP.n(m)?"true":"false");p.setAttribute("aria-disabled",$APP.n(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.T.g(v);d.appendChild(p);k+=1}else if(e=$APP.u(c))c=e,$APP.Cc(c)?(h=$APP.qb(c),c=$APP.rb(c),e=h,g=$APP.B(h),h=e):(e=$APP.w(c),e=$APP.N(e),m=$APP.I(e,tL),
15
- e=$APP.I(e,KL),h=ML("button"),g=hL(m),k=m.getUTCDate(),p=PL(m,b),m=SL(m,b),v=$APP.N(m),m=$APP.I(v,$APP.$h),q=$APP.I(v,QL),v=$APP.I(v,RL),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(p)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(q)?"true":"false"),h.setAttribute("data-range-edge",
16
- $APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),h.setAttribute("aria-disabled",$APP.n(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.T.g(k),d.appendChild(h),c=$APP.z(c),h=null,g=0),k=0;else break;d=$APP.l(a,"__xDatePickerGridFocus");a=$APP.l(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.l(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.T.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},
17
- VL=function(a){var b=$APP.l(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,"input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.n(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.r(a):b)?b.value=$APP.n(c)?c:"":null},WL=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.l(b,"input");b=$APP.l(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),k=a.getAttribute("aria-describedby"),
18
- m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.n($APP.n(d)?m:d)&&a.removeAttribute("open");$APP.n(c)&&(c.setAttribute("aria-expanded",$APP.n(m)?"true":"false"),$APP.n(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.n(e)&&c.setAttribute("readonly",""),$APP.n(e)||c.removeAttribute("readonly"),$APP.n(g)&&c.setAttribute("placeholder",g),$APP.n(h)&&
19
- c.setAttribute("aria-label",h),$APP.n(k)&&c.setAttribute("aria-describedby",k));VL(a);return UL(a)}return null},XL=function(a,b){$APP.n(b)?a.setAttribute("value",hL(b)):a.removeAttribute("value")},YL=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.l(a,"__xDatePickerState");d=$APP.n(d)?$APP.l(d,"canon"):null;var e=$APP.n(d)?$APP.ri.g(d):null,g=$APP.C.h(e,xL)?"range":"single",h=$APP.C.h(e,yL)?{value:hL(b),mode:g,reason:c}:{date:hL(b),mode:g,reason:c};h=NL(a,"x-date-picker-change-request",
20
- !0,h);if($APP.n(h.defaultPrevented))return null;if($APP.C.h(e,yL))return d=hL(b),XL(a,b),OL(a),WL(a),NL(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),WL(a)):null;e=function(){var y=$APP.l(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=GL.g(d);IL.g(d);if($APP.C.h(e,0))a.setAttribute("start",hL(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.h(e,1)){var k=BL.g(d),m=jL(b,h);if($APP.n(function(){var y=
21
- m>0;return y?y:$APP.n(k)?m===0:k}())){var p=$APP.n(wL.g(d))?jL(h,b)<0?h:b:h,q=$APP.n(wL.g(d))?jL(h,b)>0?h:b:b;a.setAttribute("start",hL(p));a.setAttribute("end",hL(q));a.__xDatePickerRangeStep=0;$APP.n(function(){var y=a.hasAttribute("close-on-select");return $APP.n(y)?p!=null&&q!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",hL(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",hL(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;OL(a);WL(a);
22
- b=$APP.l(a,"__xDatePickerState");b=$APP.n(b)?$APP.l(b,"canon"):null;var v=$APP.n(GL.g(b))?hL(GL.g(b)):null,x=$APP.n(IL.g(b))?hL(IL.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.n(v)&&(y.start=v);$APP.n(x)&&(y.end=x);return y}();return NL(a,"x-date-picker-change",!1,b)},ZL=function(a,b){var c=$APP.l(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.l(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.l(a,"__xDatePickerState");var e=$APP.n(c)?$APP.l(c,"canon"):null,g=$APP.ri.g(e);c=$APP.C.h(g,xL)?"range":
23
- "single";NL(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.C.h(g,yL)){if(d=uL(d),e=$APP.N(d),d=$APP.I(e,sL),e=$APP.I(e,tL),$APP.n(d)){g=hL(e);d=NL(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;XL(a,e);OL(a);WL(a);return NL(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.R(null,1,[$APP.Cj,$APP.Cj.g(e)],null),e=$APP.N(e),e=$APP.I(e,$APP.Cj),e=typeof e==="string"&&e.length>0?e:" - ",d=eL(d),d==null?d=new $APP.R(null,
24
- 3,[sL,!1,$APP.sk,null,$APP.Mh,null],null):(g=d.indexOf(e),g<0?(d=uL(d),e=$APP.N(d),d=$APP.I(e,sL),e=$APP.I(e,tL),d=new $APP.R(null,3,[sL,d,$APP.sk,e,$APP.Mh,null],null)):(e=d.substring(g+e.length).trim(),d=iL(d.substring(0,g).trim()),e=iL(e),d=new $APP.R(null,3,[sL,d!=null&&e!=null,$APP.sk,d,$APP.Mh,e],null))),g=$APP.N(d),d=$APP.I(g,sL),e=$APP.I(g,$APP.sk),g=$APP.I(g,$APP.Mh),$APP.n(d)){e=hL(e);g=hL(g);d=NL(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;
25
- a.setAttribute("start",e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;OL(a);WL(a);return NL(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},aM=function(a,b){var c=$APP.l(a,"__xDatePickerState"),d=$APP.n(c)?$APP.l(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.h(b,$L)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return UL(a)}return null},bM=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):
26
- null},dM=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.C.h(b,"prev")?aM(a,cM):aM(a,$L)},eM=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.l(a,"__xDatePickerGridFocus"),e=$APP.n(d)?iL(d):null;d=$APP.l(a,"__xDatePickerState");var g=$APP.n(d)?$APP.l(d,"canon"):null,h=$APP.n(d)?$APP.l(d,"month"):null,k=$APP.n(e)?function(){switch(c){case "ArrowLeft":return kL(e,-1);case "ArrowRight":return kL(e,
27
- 1);case "ArrowUp":return kL(e,-7);case "ArrowDown":return kL(e,7);case "PageUp":return mL(e,-1);case "PageDown":return mL(e,1);case "Home":return $APP.n(e)?kL(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?kL(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return k!=null?(b.preventDefault(),b=nL(k,DL.g(g),CL.g(g)),g=hL(b),$APP.n($APP.n(h)?$APP.O(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.ma(d,"month",lL(b)),UL(a)),TL(a,g)):$APP.n(function(){var m=$APP.C.h(c,"Enter")||
28
- $APP.C.h(c," ");return m?$APP.n(e)?$APP.r(a.hasAttribute("readonly")):e:m}())?(b.preventDefault(),$APP.n(PL(e,g))?null:YL(a,e,"keyboard")):$APP.C.h(c,"Escape")?(b.preventDefault(),bM(a),d=$APP.l(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.l(d,"input"):null,$APP.n(d)?d.focus():null):null},fM=function(a){function b(F){return $APP.n(a.hasAttribute("open"))?$APP.n(F.composedPath().some(function(P){return P===a}))?null:bM(a):null}function c(F){return F.preventDefault()}function d(F){return eM(a,F)}function e(F){var P=
29
- a.hasAttribute("disabled");$APP.n($APP.n(P)?P:a.hasAttribute("readonly"))?F=null:(F=F.target.closest("button[data-iso]"),$APP.n($APP.n(F)?$APP.O("true",F.getAttribute("data-disabled")):F)?(F=F.getAttribute("data-iso"),F=iL(F),F=$APP.n(F)?YL(a,F,"click"):null):F=null);return F}function g(F){return dM(a,F)}function h(F){return dM(a,F)}function k(){if($APP.n(a.hasAttribute("disabled")))var F=null;else if($APP.n(a.hasAttribute("open")))F=bM(a);else if($APP.n(a.hasAttribute("open")))F=null;else{a.setAttribute("open",
30
- "");F=$APP.l(a,"__xDatePickerState");F=$APP.n(F)?$APP.l(F,"canon"):null;var P=AL.g(F);$APP.n(P)?F=P:(F=GL.g(F),F=$APP.n(F)?F:new Date(Date.now()));F=hL(F);F=TL(a,F)}return F}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||ZL(a,"blur");return VL(a)}function p(){a.__xDatePickerFocused=!0}function q(F){if($APP.n(a.hasAttribute("disabled")))F=null;else{var P=F.key;$APP.C.h(P,"Enter")?(F.preventDefault(),F=ZL(a,"keyboard")):F=$APP.C.h(P,"Escape")?bM(a):null}return F}function v(){var F=
31
- $APP.l(a,"__xDatePickerRefs");F=$APP.n(F)?$APP.l(F,"input"):null;var P=$APP.l(a,"__xDatePickerState");P=$APP.C.h($APP.ri.g($APP.n(P)?$APP.l(P,"canon"):null),xL)?"range":"single";a.__xDatePickerDisplay=$APP.n(F)?F.value:null;return NL(a,"x-date-picker-input",!1,{value:$APP.n(F)?F.value:null,mode:P})}var x=$APP.l(a,"__xDatePickerRefs"),y=$APP.l(x,"input"),A=$APP.l(x,"btn"),D=$APP.l(x,"nav-prev"),G=$APP.l(x,"nav-next"),H=$APP.l(x,"grid");x=$APP.l(x,"popover");y.addEventListener("input",v);y.addEventListener("keydown",
32
- q);y.addEventListener("focus",p);y.addEventListener("blur",m);A.addEventListener("click",k);D.addEventListener("click",h);G.addEventListener("click",g);H.addEventListener("click",e);H.addEventListener("keydown",d);x.addEventListener("mousedown",c);document.addEventListener("pointerdown",b,!0);$APP.ma(a,"__xDatePickerHandlers",{"pop-md":c,keydown:q,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:v,btn:k,"doc-click":b})},gM=function(a){var b=$APP.l(a,"__xDatePickerRefs");a=$APP.l(a,"__xDatePickerHandlers");
33
- if($APP.n($APP.n(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"btn"),e=$APP.l(b,"nav-prev"),g=$APP.l(b,"nav-next"),h=$APP.l(b,"grid");b=$APP.l(b,"popover");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));c.removeEventListener("focus",$APP.l(a,"focus"));c.removeEventListener("blur",$APP.l(a,"blur"));d.removeEventListener("click",$APP.l(a,"btn"));e.removeEventListener("click",$APP.l(a,"prev"));g.removeEventListener("click",$APP.l(a,"next"));h.removeEventListener("click",
34
- $APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("mousedown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},hM=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return typeof d==="string"&&$APP.O(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},iM=function(a,b,c){Object.defineProperty(a,
35
- b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},jM=function(a){a.focus=function(){var b=$APP.l(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.l(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return ZL(this,"programmatic")};a.clear=function(){var b=$APP.l(this,"__xDatePickerState");$APP.C.h($APP.ri.g($APP.n(b)?$APP.l(b,"canon"):null),yL)?this.removeAttribute("value"):
36
- (this.removeAttribute("start"),this.removeAttribute("end"));OL(this);return WL(this)}},lM=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=kM;b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=ML("style"),e=ML("div"),g=ML("input"),h=ML("button"),k=ML("div"),m=ML("div"),p=ML("button"),q=ML("div"),v=ML("button"),x=ML("div"),y=ML("div"),A=ML("div");d.textContent=":host{display:block;color-scheme:light dark;}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:#334155;--x-date-picker-input-bg:#0f172a;--x-date-picker-btn-bg:#1e293b;--x-date-picker-btn-hover:#334155;--x-date-picker-popover-bg:#1e293b;--x-date-picker-day-hover:#334155;--x-date-picker-selected-bg:#3b82f6;--x-date-picker-range-bg:#1e3a8a;--x-date-picker-range-text:#93c5fd;--x-date-picker-nav-hover:#334155;}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
2
+ var WN=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},XN=function(a){return a!=null&&$APP.O(a,"false")},YN=function(a){return a<10?"0"+$APP.S.g(a):""+$APP.S.g(a)},ZN=function(a){return $APP.r(a)?""+$APP.S.g(a.getUTCFullYear())+"-"+$APP.S.g(YN(a.getUTCMonth()+1))+"-"+$APP.S.g(YN(a.getUTCDate())):null},$N=function(a){var b=(b=typeof a==="string")?$APP.lg(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.r(b)?(a=new Date(""+$APP.S.g(a)+"T00:00:00.000Z"),$APP.r(isNaN(a.getTime()))?null:
3
+ a):null},aO=function(a,b){if(a==null&&b==null)return 0;if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},bO=function(a,b){return $APP.r(a)?new Date(a.getTime()+b*864E5):null},cO=function(a){return $APP.r(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},dO=function(a,b){if($APP.r(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.Zg.i(d,b)))}return null},
4
+ eO=function(a,b,c){a=$APP.r($APP.r(b)?$APP.r(a)?aO(a,b)<0:a:b)?b:a;return $APP.r($APP.r(c)?$APP.r(a)?aO(a,c)>0:a:c)?c:a},fO=function(a,b,c){if($APP.r($APP.r(a)?$APP.r(b)?c:b:a)){var d=aO(b,c)<0?c:b;return!(aO(a,aO(b,c)<0?b:c)<0)&&!(aO(a,d)>0)}return null},iO=function(a,b){var c=$APP.N(b);b=$APP.G(c,gO);c=$APP.G(c,$APP.Tl);return $APP.r(a)?$APP.D.i(b,hO)?(new Intl.DateTimeFormat($APP.r(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):ZN(a):null},lO=function(a){a=
5
+ WN(a);a=$APP.r(a)?$N(a):null;return new $APP.P(null,2,[jO,a!=null,kO,a],null)},AO=function(a){var b=$APP.N(a),c=$APP.G(b,$APP.ei),d=$APP.G(b,$APP.mk),e=$APP.G(b,$APP.vj);a=$APP.G(b,gO);var g=$APP.G(b,$APP.Tl),h=$APP.G(b,mO),k=$APP.G(b,$APP.ui),m=$APP.G(b,$APP.Ri),p=$APP.G(b,$APP.ll),q=$APP.G(b,$APP.Zj),w=$APP.G(b,nO);b=$APP.D.i(m,"range")?oO:pO;a=$APP.D.i(a,"localized")?hO:qO;g=WN(g);m=function(){var A=WN(d);return $APP.r(A)?A:" - "}();e=$N(e);q=$N(q);w=$APP.I(w);h=$APP.I(h);if($APP.D.i(b,pO))return b=
6
+ $N(k),$APP.Q([gO,rO,$APP.Tl,sO,$APP.Ri,tO,nO,$APP.rk,$APP.mk,uO,vO],[a,b,g,h,pO,q,w,b!=null,m,e,function(){var A=WN(k);return $APP.r(A)?A:""}()]);var x=$N(p),y=$N(c);b=x!=null&&y!=null;return $APP.Q([wO,gO,xO,$APP.Tl,sO,$APP.Ri,tO,yO,zO,nO,$APP.rk,$APP.mk,uO],[function(){var A=WN(c);return $APP.r(A)?A:""}(),a,x,g,h,oO,q,function(){var A=WN(p);return $APP.r(A)?A:""}(),y,w,b,m,e])},CO=function(a){if($APP.r(a)){var b=cO(a),c=bO(b,-($APP.r(b)?b.getUTCDay():0));return $APP.je(function(d){d=bO(c,d);var e=
7
+ $APP.D.i(d.getUTCMonth(),a.getUTCMonth());return new $APP.P(null,2,[kO,d,BO,e],null)},$APP.kg(0,42))}return null},DO=function(a){return document.createElement(a)},EO=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.I(c)});a.dispatchEvent(b);return b},FO=function(a){var b=a.getAttribute("mode");$APP.D.i(b,"range");b=AO($APP.Q([$APP.vj,gO,$APP.Tl,mO,$APP.ui,$APP.Ri,$APP.ll,$APP.Zj,nO,$APP.ei,$APP.mk],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),
8
+ XN(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),XN(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.P(null,2,[gO,gO.g(b),$APP.Tl,$APP.Tl.g(b)],null);var d=$APP.N(c);var e=$APP.G(d,gO);d=$APP.G(d,$APP.Tl);e=new $APP.P(null,2,[gO,e,$APP.Tl,d],null);if($APP.D.i($APP.Ri.g(b),pO))e=$APP.r(rO.g(b))?iO(rO.g(b),e):"";else{d=$APP.mk.g(b);var g=xO.g(b);g=$APP.r(g)?zO.g(b):g;e=$APP.r(g)?""+$APP.S.g(iO(xO.g(b),
9
+ e))+$APP.S.g(d)+$APP.S.g(iO(zO.g(b),e)):$APP.r(xO.g(b))?iO(xO.g(b),e):""}d=$APP.l(a,"__xDatePickerState");d=$APP.r(d)?$APP.l(d,"month"):null;g=rO.g(b);$APP.r(g)||(g=xO.g(b),g=$APP.r(g)?g:new Date(Date.now()));d=$APP.r(d)?d:cO(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},GO=function(a,b){var c=uO.g(b);c=$APP.r(c)?aO(a,uO.g(b))<0:c;if($APP.r(c))return c;c=tO.g(b);return $APP.r(c)?aO(a,tO.g(b))>0:c},JO=function(a,b){if($APP.D.i($APP.Ri.g(b),pO))return new $APP.P(null,3,[$APP.yi,function(){var k=
10
+ rO.g(b);return $APP.r(k)?$APP.D.i(0,aO(a,rO.g(b))):k}(),HO,!1,IO,!1],null);var c=xO.g(b),d=zO.g(b),e=function(){var k=$APP.r(c)?$APP.D.i(0,aO(a,c)):c;return $APP.r(k)?k:$APP.r(d)?$APP.D.i(0,aO(a,d)):d}(),g=$APP.r(c)?$APP.r(d)?fO(a,c,d):d:c,h=function(){var k=$APP.r(c)?$APP.D.i(0,aO(a,c)):c;return $APP.r(k)?k:$APP.r(d)?$APP.D.i(0,aO(a,d)):d}();return new $APP.P(null,3,[$APP.yi,e,HO,g,IO,h],null)},KO=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.l(a,"__xDatePickerRefs");a=$APP.r(a)?$APP.l(a,"grid"):
11
+ null;if($APP.r(a)){var c=a.querySelector('[tabindex\x3d"0"]');$APP.r(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.S.g(b)+'"]');if($APP.r(b))return b.setAttribute("tabindex","0"),b.focus()}return null},LO=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.r(b)){var c=$APP.l(b,"month-label"),d=$APP.l(b,"grid"),e=$APP.l(b,"weekdays"),g=$APP.l(a,"__xDatePickerState");b=$APP.r(g)?$APP.l(g,"canon"):null;var h=$APP.r(g)?$APP.l(g,"month"):null;g=$APP.r(g)?$APP.l(g,"cfg"):
12
+ null;g=$APP.r(g)?$APP.Tl.g(g):null;$APP.r(c)&&(h=(new Intl.DateTimeFormat($APP.r(g)?g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.r($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=DO("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.r($APP.r(d)?b:d)){d.textContent="";e=$APP.l(a,"__xDatePickerState");
13
+ e=CO($APP.r(e)?$APP.l(e,"month"):null);c=$APP.u(e);h=null;for(var k=g=0;;)if(k<g){e=h.G(null,k);e=$APP.N(e);var m=$APP.G(e,kO);e=$APP.G(e,BO);var p=DO("button"),q=ZN(m),w=m.getUTCDate(),x=GO(m,b);m=JO(m,b);var y=$APP.N(m);m=$APP.G(y,$APP.yi);var A=$APP.G(y,HO);y=$APP.G(y,IO);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",q);p.setAttribute("data-outside",$APP.r(e)?"false":"true");p.setAttribute("data-disabled",$APP.r(x)?"true":
14
+ "false");p.setAttribute("data-selected",$APP.r(m)?"true":"false");p.setAttribute("data-in-range",$APP.r(A)?"true":"false");p.setAttribute("data-range-edge",$APP.r(y)?"true":"false");p.setAttribute("aria-selected",$APP.r(m)?"true":"false");p.setAttribute("aria-disabled",$APP.r(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.S.g(w);d.appendChild(p);k+=1}else if(e=$APP.u(c))c=e,$APP.Pc(c)?(h=$APP.yb(c),c=$APP.zb(c),e=h,g=$APP.B(h),h=e):(e=$APP.v(c),e=$APP.N(e),m=$APP.G(e,kO),
15
+ e=$APP.G(e,BO),h=DO("button"),g=ZN(m),k=m.getUTCDate(),p=GO(m,b),m=JO(m,b),w=$APP.N(m),m=$APP.G(w,$APP.yi),q=$APP.G(w,HO),w=$APP.G(w,IO),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.r(e)?"false":"true"),h.setAttribute("data-disabled",$APP.r(p)?"true":"false"),h.setAttribute("data-selected",$APP.r(m)?"true":"false"),h.setAttribute("data-in-range",$APP.r(q)?"true":"false"),h.setAttribute("data-range-edge",
16
+ $APP.r(w)?"true":"false"),h.setAttribute("aria-selected",$APP.r(m)?"true":"false"),h.setAttribute("aria-disabled",$APP.r(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.S.g(k),d.appendChild(h),c=$APP.z(c),h=null,g=0),k=0;else break;d=$APP.l(a,"__xDatePickerGridFocus");a=$APP.l(a,"__xDatePickerRefs");a=$APP.r(a)?$APP.l(a,"grid"):null;$APP.r($APP.r(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.S.g(d)+'"]'),a=$APP.r(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},
17
+ MO=function(a){var b=$APP.l(a,"__xDatePickerRefs");b=$APP.r(b)?$APP.l(b,"input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.r(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.r($APP.r(b)?$APP.t(a):b)?b.value=$APP.r(c)?c:"":null},NO=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),k=a.getAttribute("aria-describedby"),
18
+ m=a.hasAttribute("open");$APP.r(b)&&($APP.r(d)?b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.r($APP.r(d)?m:d)&&a.removeAttribute("open");$APP.r(c)&&(c.setAttribute("aria-expanded",$APP.r(m)?"true":"false"),$APP.r(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.r(e)&&c.setAttribute("readonly",""),$APP.r(e)||c.removeAttribute("readonly"),$APP.r(g)&&c.setAttribute("placeholder",g),$APP.r(h)&&
19
+ c.setAttribute("aria-label",h),$APP.r(k)&&c.setAttribute("aria-describedby",k));MO(a);return LO(a)}return null},OO=function(a,b){$APP.r(b)?a.setAttribute("value",ZN(b)):a.removeAttribute("value")},PO=function(a,b,c){if($APP.r(a.hasAttribute("readonly")))return null;var d=$APP.l(a,"__xDatePickerState");d=$APP.r(d)?$APP.l(d,"canon"):null;var e=$APP.r(d)?$APP.Ri.g(d):null,g=$APP.D.i(e,oO)?"range":"single",h=$APP.D.i(e,pO)?{value:ZN(b),mode:g,reason:c}:{date:ZN(b),mode:g,reason:c};h=EO(a,"x-date-picker-change-request",
20
+ !0,h);if($APP.r(h.defaultPrevented))return null;if($APP.D.i(e,pO))return d=ZN(b),OO(a,b),FO(a),NO(a),EO(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.r(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),NO(a)):null;e=function(){var y=$APP.l(a,"__xDatePickerRangeStep");return $APP.r(y)?y:0}();h=xO.g(d);zO.g(d);if($APP.D.i(e,0))a.setAttribute("start",ZN(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.D.i(e,1)){var k=sO.g(d),m=aO(b,h);if($APP.r(function(){var y=
21
+ m>0;return y?y:$APP.r(k)?m===0:k}())){var p=$APP.r(nO.g(d))?aO(h,b)<0?h:b:h,q=$APP.r(nO.g(d))?aO(h,b)>0?h:b:b;a.setAttribute("start",ZN(p));a.setAttribute("end",ZN(q));a.__xDatePickerRangeStep=0;$APP.r(function(){var y=a.hasAttribute("close-on-select");return $APP.r(y)?p!=null&&q!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",ZN(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",ZN(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;FO(a);NO(a);
22
+ b=$APP.l(a,"__xDatePickerState");b=$APP.r(b)?$APP.l(b,"canon"):null;var w=$APP.r(xO.g(b))?ZN(xO.g(b)):null,x=$APP.r(zO.g(b))?ZN(zO.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.r(w)&&(y.start=w);$APP.r(x)&&(y.end=x);return y}();return EO(a,"x-date-picker-change",!1,b)},QO=function(a,b){var c=$APP.l(a,"__xDatePickerRefs");c=$APP.r(c)?$APP.l(c,"input"):null;var d=$APP.r(c)?c.value:null;c=$APP.l(a,"__xDatePickerState");var e=$APP.r(c)?$APP.l(c,"canon"):null,g=$APP.Ri.g(e);c=$APP.D.i(g,oO)?"range":
23
+ "single";EO(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.D.i(g,pO)){if(d=lO(d),e=$APP.N(d),d=$APP.G(e,jO),e=$APP.G(e,kO),$APP.r(d)){g=ZN(e);d=EO(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.r(d.defaultPrevented))return null;OO(a,e);FO(a);NO(a);return EO(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.P(null,1,[$APP.mk,$APP.mk.g(e)],null),e=$APP.N(e),e=$APP.G(e,$APP.mk),e=typeof e==="string"&&e.length>0?e:" - ",d=WN(d),d==null?d=new $APP.P(null,
24
+ 3,[jO,!1,$APP.ll,null,$APP.ei,null],null):(g=d.indexOf(e),g<0?(d=lO(d),e=$APP.N(d),d=$APP.G(e,jO),e=$APP.G(e,kO),d=new $APP.P(null,3,[jO,d,$APP.ll,e,$APP.ei,null],null)):(e=d.substring(g+e.length).trim(),d=$N(d.substring(0,g).trim()),e=$N(e),d=new $APP.P(null,3,[jO,d!=null&&e!=null,$APP.ll,d,$APP.ei,e],null))),g=$APP.N(d),d=$APP.G(g,jO),e=$APP.G(g,$APP.ll),g=$APP.G(g,$APP.ei),$APP.r(d)){e=ZN(e);g=ZN(g);d=EO(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.r(d.defaultPrevented))return null;
25
+ a.setAttribute("start",e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;FO(a);NO(a);return EO(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},RO=function(a,b){var c=$APP.l(a,"__xDatePickerState"),d=$APP.r(c)?$APP.l(c,"month"):null;if($APP.r(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.D.i(b,$APP.jj)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return LO(a)}return null},SO=function(a){return $APP.r(a.hasAttribute("open"))?a.removeAttribute("open"):
26
+ null},TO=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.D.i(b,"prev")?RO(a,$APP.ej):RO(a,$APP.jj)},UO=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.l(a,"__xDatePickerGridFocus"),e=$APP.r(d)?$N(d):null;d=$APP.l(a,"__xDatePickerState");var g=$APP.r(d)?$APP.l(d,"canon"):null,h=$APP.r(d)?$APP.l(d,"month"):null,k=$APP.r(e)?function(){switch(c){case "ArrowLeft":return bO(e,-1);case "ArrowRight":return bO(e,
27
+ 1);case "ArrowUp":return bO(e,-7);case "ArrowDown":return bO(e,7);case "PageUp":return dO(e,-1);case "PageDown":return dO(e,1);case "Home":return $APP.r(e)?bO(e,-($APP.r(e)?e.getUTCDay():0)):null;case "End":return $APP.r(e)?bO(e,6-($APP.r(e)?e.getUTCDay():0)):null;default:return null}}():null;return k!=null?(b.preventDefault(),b=eO(k,uO.g(g),tO.g(g)),g=ZN(b),$APP.r($APP.r(h)?$APP.O(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.n(d,"month",cO(b)),LO(a)),KO(a,g)):$APP.r(function(){var m=$APP.D.i(c,"Enter")||
28
+ $APP.D.i(c," ");return m?$APP.r(e)?$APP.t(a.hasAttribute("readonly")):e:m}())?(b.preventDefault(),$APP.r(GO(e,g))?null:PO(a,e,"keyboard")):$APP.D.i(c,"Escape")?(b.preventDefault(),SO(a),d=$APP.l(a,"__xDatePickerRefs"),d=$APP.r(d)?$APP.l(d,"input"):null,$APP.r(d)?d.focus():null):null},VO=function(a){function b(F){return $APP.r(a.hasAttribute("open"))?$APP.r(F.composedPath().some(function(K){return K===a}))?null:SO(a):null}function c(F){return F.preventDefault()}function d(F){return UO(a,F)}function e(F){var K=
29
+ a.hasAttribute("disabled");$APP.r($APP.r(K)?K:a.hasAttribute("readonly"))?F=null:(F=F.target.closest("button[data-iso]"),$APP.r($APP.r(F)?$APP.O("true",F.getAttribute("data-disabled")):F)?(F=F.getAttribute("data-iso"),F=$N(F),F=$APP.r(F)?PO(a,F,"click"):null):F=null);return F}function g(F){return TO(a,F)}function h(F){return TO(a,F)}function k(){if($APP.r(a.hasAttribute("disabled")))var F=null;else if($APP.r(a.hasAttribute("open")))F=SO(a);else if($APP.r(a.hasAttribute("open")))F=null;else{a.setAttribute("open",
30
+ "");F=$APP.l(a,"__xDatePickerState");F=$APP.r(F)?$APP.l(F,"canon"):null;var K=rO.g(F);$APP.r(K)?F=K:(F=xO.g(F),F=$APP.r(F)?F:new Date(Date.now()));F=ZN(F);F=KO(a,F)}return F}function m(){a.__xDatePickerFocused=!1;$APP.r(a.hasAttribute("disabled"))||QO(a,"blur");return MO(a)}function p(){a.__xDatePickerFocused=!0}function q(F){if($APP.r(a.hasAttribute("disabled")))F=null;else{var K=F.key;$APP.D.i(K,"Enter")?(F.preventDefault(),F=QO(a,"keyboard")):F=$APP.D.i(K,"Escape")?SO(a):null}return F}function w(){var F=
31
+ $APP.l(a,"__xDatePickerRefs");F=$APP.r(F)?$APP.l(F,"input"):null;var K=$APP.l(a,"__xDatePickerState");K=$APP.D.i($APP.Ri.g($APP.r(K)?$APP.l(K,"canon"):null),oO)?"range":"single";a.__xDatePickerDisplay=$APP.r(F)?F.value:null;return EO(a,"x-date-picker-input",!1,{value:$APP.r(F)?F.value:null,mode:K})}var x=$APP.l(a,"__xDatePickerRefs"),y=$APP.l(x,"input"),A=$APP.l(x,"btn"),C=$APP.l(x,"nav-prev"),E=$APP.l(x,"nav-next"),H=$APP.l(x,"grid");x=$APP.l(x,"popover");y.addEventListener("input",w);y.addEventListener("keydown",
32
+ q);y.addEventListener("focus",p);y.addEventListener("blur",m);A.addEventListener("click",k);C.addEventListener("click",h);E.addEventListener("click",g);H.addEventListener("click",e);H.addEventListener("keydown",d);x.addEventListener("mousedown",c);document.addEventListener("pointerdown",b,!0);$APP.n(a,"__xDatePickerHandlers",{"pop-md":c,keydown:q,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:w,btn:k,"doc-click":b})},WO=function(a){var b=$APP.l(a,"__xDatePickerRefs");a=$APP.l(a,"__xDatePickerHandlers");
33
+ if($APP.r($APP.r(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"btn"),e=$APP.l(b,"nav-prev"),g=$APP.l(b,"nav-next"),h=$APP.l(b,"grid");b=$APP.l(b,"popover");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));c.removeEventListener("focus",$APP.l(a,"focus"));c.removeEventListener("blur",$APP.l(a,"blur"));d.removeEventListener("click",$APP.l(a,"btn"));e.removeEventListener("click",$APP.l(a,"prev"));g.removeEventListener("click",$APP.l(a,"next"));h.removeEventListener("click",
34
+ $APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("mousedown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},XO=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return typeof d==="string"&&$APP.O(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},YO=function(a,b,c){Object.defineProperty(a,
35
+ b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},ZO=function(a){a.focus=function(){var b=$APP.l(this,"__xDatePickerRefs");b=$APP.r(b)?$APP.l(b,"input"):null;return $APP.r(b)?b.focus():null};a.commit=function(){return QO(this,"programmatic")};a.clear=function(){var b=$APP.l(this,"__xDatePickerState");$APP.D.i($APP.Ri.g($APP.r(b)?$APP.l(b,"canon"):null),pO)?this.removeAttribute("value"):
36
+ (this.removeAttribute("start"),this.removeAttribute("end"));FO(this);return NO(this)}},aP=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=$O;b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=DO("style"),e=DO("div"),g=DO("input"),h=DO("button"),k=DO("div"),m=DO("div"),p=DO("button"),q=DO("div"),w=DO("button"),x=DO("div"),y=DO("div"),A=DO("div");d.textContent=":host{display:block;color-scheme:light dark;}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:#334155;--x-date-picker-input-bg:#0f172a;--x-date-picker-btn-bg:#1e293b;--x-date-picker-btn-hover:#334155;--x-date-picker-popover-bg:#1e293b;--x-date-picker-day-hover:#334155;--x-date-picker-selected-bg:#3b82f6;--x-date-picker-range-bg:#1e3a8a;--x-date-picker-range-text:#93c5fd;--x-date-picker-nav-hover:#334155;}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
37
37
  e.setAttribute("part","container");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("inputmode","none");g.setAttribute("autocomplete","off");g.setAttribute("role","combobox");g.setAttribute("aria-haspopup","dialog");g.setAttribute("aria-expanded","false");h.setAttribute("part","btn");h.setAttribute("type","button");h.setAttribute("aria-label","Open calendar");h.textContent="\ud83d\udcc5";k.setAttribute("part","popover");k.setAttribute("role","dialog");k.setAttribute("aria-modal",
38
- "true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";q.setAttribute("part","monthlabel");q.setAttribute("aria-live","polite");v.setAttribute("part","navbtn");v.setAttribute("data-nav","next");v.setAttribute("type","button");v.setAttribute("aria-label","Next month");v.textContent="›";x.setAttribute("part","weekdays");
39
- x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(q);m.appendChild(v);k.appendChild(m);k.appendChild(x);k.appendChild(y);k.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:k,
40
- "nav-next":v,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}gM(this);fM(this);OL(this);return WL(this)};b.disconnectedCallback=function(){return gM(this)};b.attributeChangedCallback=function(){OL(this);return WL(this)};hM(b,"mode","mode");hM(b,"value","value");hM(b,"start","start");hM(b,"end","end");iM(b,"open","open");iM(b,"disabled","disabled");iM(b,"readOnly","readonly");iM(b,"required","required");jM(b);return a},mM=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
- lM())},GL=new $APP.M(null,"start-d","start-d",-1546785820),tL=new $APP.M(null,"date","date",-1463434462),wL=new $APP.M(null,"auto-swap?","auto-swap?",-1675454411),RL=new $APP.M(null,"edge?","edge?",203916303),CL=new $APP.M(null,"max-d","max-d",-814680979),yL=new $APP.M(null,"single","single",1551466437),HL=new $APP.M(null,"start-str","start-str",1077409677),xL=new $APP.M(null,"range","range",1639692286),zL=new $APP.M(null,"iso","iso",-1366207543),KL=new $APP.M(null,"in-month?","in-month?",-1630426251),
42
- DL=new $APP.M(null,"min-d","min-d",-1118792932),cM=new $APP.M(null,"prev","prev",-1597069226),$L=new $APP.M(null,"next","next",-117701485),BL=new $APP.M(null,"allow-same-day?","allow-same-day?",-1971558934),sL=new $APP.M(null,"ok?","ok?",447310304),FL=new $APP.M(null,"end-str","end-str",-558112319),qL=new $APP.M(null,"localized","localized",1722109655),EL=new $APP.M(null,"value-str","value-str",989198845),pL=new $APP.M(null,"format","format",-1306924766),AL=new $APP.M(null,"value-d","value-d",-1768534876),
43
- QL=new $APP.M(null,"in-range?","in-range?",-291779262),IL=new $APP.M(null,"end-d","end-d",-1316370898),vL=new $APP.M(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var kM="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ja("baredom.exports.x_date_picker.init",mM);export const init=mM;
38
+ "true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";q.setAttribute("part","monthlabel");q.setAttribute("aria-live","polite");w.setAttribute("part","navbtn");w.setAttribute("data-nav","next");w.setAttribute("type","button");w.setAttribute("aria-label","Next month");w.textContent="›";x.setAttribute("part","weekdays");
39
+ x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(q);m.appendChild(w);k.appendChild(m);k.appendChild(x);k.appendChild(y);k.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:k,
40
+ "nav-next":w,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}WO(this);VO(this);FO(this);return NO(this)};b.disconnectedCallback=function(){return WO(this)};b.attributeChangedCallback=function(){FO(this);return NO(this)};XO(b,"mode","mode");XO(b,"value","value");XO(b,"start","start");XO(b,"end","end");YO(b,"open","open");YO(b,"disabled","disabled");YO(b,"readOnly","readonly");YO(b,"required","required");ZO(b);return a},bP=function(){return $APP.r(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
+ aP())},xO=new $APP.M(null,"start-d","start-d",-1546785820),kO=new $APP.M(null,"date","date",-1463434462),nO=new $APP.M(null,"auto-swap?","auto-swap?",-1675454411),IO=new $APP.M(null,"edge?","edge?",203916303),tO=new $APP.M(null,"max-d","max-d",-814680979),pO=new $APP.M(null,"single","single",1551466437),yO=new $APP.M(null,"start-str","start-str",1077409677),oO=new $APP.M(null,"range","range",1639692286),qO=new $APP.M(null,"iso","iso",-1366207543),BO=new $APP.M(null,"in-month?","in-month?",-1630426251),
42
+ uO=new $APP.M(null,"min-d","min-d",-1118792932),sO=new $APP.M(null,"allow-same-day?","allow-same-day?",-1971558934),jO=new $APP.M(null,"ok?","ok?",447310304),wO=new $APP.M(null,"end-str","end-str",-558112319),hO=new $APP.M(null,"localized","localized",1722109655),vO=new $APP.M(null,"value-str","value-str",989198845),gO=new $APP.M(null,"format","format",-1306924766),rO=new $APP.M(null,"value-d","value-d",-1768534876),HO=new $APP.M(null,"in-range?","in-range?",-291779262),zO=new $APP.M(null,"end-d",
43
+ "end-d",-1316370898),mO=new $APP.M(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var $O="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ka("baredom.exports.x_date_picker.init",bP);export const init=bP;
package/dist/x-divider.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var uK=function(a,b){if(a!=null&&a.nc!=null)a.nc(a,b);else{var c=uK[$APP.da(a==null?null:a)];if(c!=null)c.h?c.h(a,b):c.call(null,a,b);else if(c=uK._,c!=null)c.h?c.h(a,b):c.call(null,a,b);else throw $APP.ra("IReset.-reset!",a);}},vK=function(){this.cc=this.vc=this.s=this.state=null;this.D=16386;this.o=6455296},wK=function(a,b){if(a instanceof vK){var c=a.vc;if(c!=null&&!$APP.n(c.g?c.g(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;if(a.cc!=null)a:for(var d=
3
- $APP.u(a.cc),e=null,g=0,h=0;;)if(h<g){var k=e.G(null,h),m=$APP.E(k,0,null);k=$APP.E(k,1,null);k.Z?k.Z(m,a,c,b):k.call(null,m,a,c,b);h+=1}else if(d=$APP.u(d))$APP.Cc(d)?(e=$APP.qb(d),d=$APP.rb(d),m=e,g=$APP.B(e),e=m):(e=$APP.w(d),m=$APP.E(e,0,null),k=$APP.E(e,1,null),k.Z?k.Z(m,a,c,b):k.call(null,m,a,c,b),d=$APP.z(d),e=null,g=0),h=0;else break a}else uK(a,b)},xK=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.K(a,c)?c:b},yK=function(a){for(;;){var b=a.firstChild;if($APP.n(b))a.removeChild(b);
4
- else break}},JK=function(a){var b=$APP.mf([$APP.Lj,$APP.sh,$APP.Wh,zK,AK,$APP.Xk,BK,$APP.ik,$APP.Hi,CK],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),a.getAttribute("role")]),c=$APP.N(b);b=$APP.I(c,$APP.Hi);var d=$APP.I(c,CK),e=$APP.I(c,$APP.sh);var g=$APP.I(c,$APP.Lj);var h=$APP.I(c,$APP.Wh),k=$APP.I(c,zK),m=$APP.I(c,
5
- AK),p=$APP.I(c,$APP.Xk),q=$APP.I(c,BK);c=$APP.I(c,$APP.ik);g=$APP.mf([$APP.lh,$APP.qi,DK,EK,$APP.Ci,$APP.jh,$APP.Ij,$APP.U,FK,$APP.dk],[d,xK(GK,"center",h),m,q,p,xK(HK,"solid",g),xK(IK,"horizontal",c),e,k,b]);c=$APP.N(g);d=$APP.I(c,$APP.dk);h=$APP.I(c,$APP.qi);k=$APP.I(c,DK);m=$APP.I(c,EK);p=$APP.I(c,$APP.Ci);q=$APP.I(c,$APP.jh);e=$APP.I(c,$APP.Ij);b=$APP.I(c,$APP.U);var v=$APP.I(c,FK);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",e);a.setAttribute("data-variant",
6
- q);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.n(k)?k:"1px");x.setProperty("--x-divider-inset",$APP.n(m)?m:"0px");x.setProperty("--x-divider-length",$APP.n(v)?v:"auto");$APP.n(p)?x.setProperty("--x-divider-color",p):x.removeProperty("--x-divider-color");g=$APP.lh.g(g);$APP.K(new $APP.S(null,new $APP.R(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.C.h(e,"vertical")?a.setAttribute("aria-orientation",
7
- "vertical"):a.removeAttribute("aria-orientation");$APP.n($APP.n(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(d,"mode"),"no-label")&&(e=$APP.l(d,"container"),yK(e),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span"),p=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part","label"),k.setAttribute("name","label"),
8
- m.setAttribute("part","label-text"),p.setAttribute("part","line-right"),h.appendChild(k),h.appendChild(m),e.appendChild(g),e.appendChild(h),e.appendChild(p),d["line-left"]=g,d["label-wrap"]=h,d["label-text"]=m,d["line-right"]=p,d.mode="label"),a=$APP.l($APP.l(a,"__xDividerRefs"),"label-text"),$APP.n(a)&&(a.textContent=b)):(a=$APP.l(a,"__xDividerRefs"),$APP.C.h($APP.l(a,"mode"),"label")&&(b=$APP.l(a,"container"),yK(b),d=document.createElement("div"),d.setAttribute("part","line"),b.appendChild(d),a["line-left"]=
9
- null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},KK=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},LK=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.n(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,""+$APP.T.g(d)):this.removeAttribute(b)},
10
- enumerable:!0,configurable:!0})},MK=function(a){LK(a,"orientation","horizontal");LK(a,"variant","solid");LK(a,"align","center");KK(a,"label");KK(a,"thickness");KK(a,"color");KK(a,"inset");KK(a,"length")},NK=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Qa(b))}var b=new vK;wK(b,a);return a},PK=function(){if($APP.n(customElements.get("x-divider")))return null;var a=Object.create(HTMLElement.prototype),b=NK();Object.setPrototypeOf(b,HTMLElement);a.constructor=b;MK(a);a.connectedCallback=
11
- function(){if(!$APP.n($APP.l(this,"__xDividerRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div");d.textContent=":host{display:block;color-scheme:light dark;--x-divider-color:rgba(0,0,0,0.12);--x-divider-thickness:1px;--x-divider-inset:0px;--x-divider-length:auto;}@media (prefers-color-scheme:dark){:host{--x-divider-color:rgba(255,255,255,0.15);}}[part\x3dcontainer]{display:flex;align-items:center;width:var(--x-divider-length,auto);box-sizing:border-box;}:host([data-orientation\x3d'vertical']) [part\x3dcontainer]{flex-direction:column;height:var(--x-divider-length,auto);width:auto;}[part\x3dline],[part\x3dline-left],[part\x3dline-right]{flex:1;border:none;background:var(--x-divider-color,rgba(0,0,0,0.12));height:var(--x-divider-thickness,1px);margin:var(--x-divider-inset,0px) 0;}:host([data-orientation\x3d'vertical']) [part\x3dline],:host([data-orientation\x3d'vertical']) [part\x3dline-left],:host([data-orientation\x3d'vertical']) [part\x3dline-right]{width:var(--x-divider-thickness,1px);height:auto;margin:0 var(--x-divider-inset,0px);}:host([data-variant\x3d'dashed']) [part\x3dline],:host([data-variant\x3d'dashed']) [part\x3dline-left],:host([data-variant\x3d'dashed']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}:host([data-variant\x3d'dotted']) [part\x3dline],:host([data-variant\x3d'dotted']) [part\x3dline-left],:host([data-variant\x3d'dotted']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}[part\x3dlabel]{display:flex;align-items:center;flex-shrink:0;padding:0 0.75em;font-size:0.75rem;font-weight:500;color:var(--x-divider-color);white-space:nowrap;}:host([data-orientation\x3d'vertical']) [part\x3dlabel]{padding:0.75em 0;writing-mode:horizontal-tb;}[part\x3dlabel-text]{display:inline;}:host([data-align\x3d'start']) [part\x3dline-left]{flex:0 0 1rem;}:host([data-align\x3d'end']) [part\x3dline-right]{flex:0 0 1rem;}@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;}}";
12
- e.setAttribute("part","container");var g=document.createElement("div");g.setAttribute("part","line");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xDividerRefs={root:c,container:e,mode:"no-label"}}return JK(this)};a.disconnectedCallback=function(){return null};a.attributeChangedCallback=function(c,d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xDividerRefs"))?JK(this):null:null};b.observedAttributes=OK;b.prototype=a;return customElements.define("x-divider",b)},QK=function(){return PK()};
13
- $APP.f=vK.prototype;$APP.f.R=function(a,b){return this===b};$APP.f.Ob=function(){return this.state};$APP.f.U=function(){return this.s};$APP.f.T=function(){return $APP.ha(this)};$APP.f.$=$APP.t;$APP.f.S=function(a,b,c){$APP.gb(b,"#object[cljs.core.Atom ");$APP.jg(new $APP.R(null,1,[$APP.Fi,this.state],null),b,c);return $APP.gb(b,"]")};
14
- var BK=new $APP.M(null,"inset-raw","inset-raw",89351124),EK=new $APP.M(null,"inset","inset",-396367740),CK=new $APP.M(null,"role-raw","role-raw",777951354),FK=new $APP.M(null,"length","length",588987862),zK=new $APP.M(null,"length-raw","length-raw",-1832244116),DK=new $APP.M(null,"thickness","thickness",-940175454),AK=new $APP.M(null,"thickness-raw","thickness-raw",1843812655);var OK="orientation variant thickness color inset length label align role aria-label".split(" "),IK=new $APP.S(null,new $APP.R(null,2,["vertical",null,"horizontal",null],null),null),HK=new $APP.S(null,new $APP.R(null,3,["dashed",null,"dotted",null,"solid",null],null),null),GK=new $APP.S(null,new $APP.R(null,3,["center",null,"start",null,"end",null],null),null);$APP.ja("baredom.exports.x_divider.init",QK);export const init=QK;
2
+ var lN=function(a,b){if(a!=null&&a.pc!=null)a.pc(a,b);else{var c=lN[$APP.ea(a==null?null:a)];if(c!=null)c.i?c.i(a,b):c.call(null,a,b);else if(c=lN._,c!=null)c.i?c.i(a,b):c.call(null,a,b);else throw $APP.qa("IReset.-reset!",a);}},mN=function(){this.ec=this.wc=this.u=this.state=null;this.F=16386;this.s=6455296},nN=function(a,b){if(a instanceof mN){var c=a.wc;if(c!=null&&!$APP.r(c.g?c.g(b):c.call(null,b)))throw Error("Validator rejected reference state");c=a.state;a.state=b;if(a.ec!=null)a:for(var d=
3
+ $APP.u(a.ec),e=null,g=0,h=0;;)if(h<g){var k=e.G(null,h),m=$APP.Cc(k,0,null);k=$APP.Cc(k,1,null);k.aa?k.aa(m,a,c,b):k.call(null,m,a,c,b);h+=1}else if(d=$APP.u(d))$APP.Pc(d)?(e=$APP.yb(d),d=$APP.zb(d),m=e,g=$APP.B(e),e=m):(e=$APP.v(d),m=$APP.Cc(e,0,null),k=$APP.Cc(e,1,null),k.aa?k.aa(m,a,c,b):k.call(null,m,a,c,b),d=$APP.z(d),e=null,g=0),h=0;else break a}else lN(a,b)},oN=function(a,b,c){c=typeof c==="string"?c.trim().toLowerCase():null;return $APP.J(a,c)?c:b},pN=function(a){for(;;){var b=a.firstChild;
4
+ if($APP.r(b))a.removeChild(b);else break}},AN=function(a){var b=$APP.Q([$APP.Ak,$APP.Oh,$APP.qi,qN,rN,$APP.Vl,sN,$APP.Zk,$APP.kj,tN],[a.getAttribute("variant"),a.getAttribute("label"),a.getAttribute("align"),a.getAttribute("length"),a.getAttribute("thickness"),a.getAttribute("color"),a.getAttribute("inset"),a.getAttribute("orientation"),a.getAttribute("aria-label"),a.getAttribute("role")]),c=$APP.N(b);b=$APP.G(c,$APP.kj);var d=$APP.G(c,tN),e=$APP.G(c,$APP.Oh);var g=$APP.G(c,$APP.Ak);var h=$APP.G(c,
5
+ $APP.qi),k=$APP.G(c,qN),m=$APP.G(c,rN),p=$APP.G(c,$APP.Vl),q=$APP.G(c,sN);c=$APP.G(c,$APP.Zk);g=$APP.Q([$APP.Hh,$APP.Qi,uN,vN,$APP.fj,$APP.Fh,$APP.xk,$APP.T,wN,$APP.Tk],[d,oN(xN,"center",h),m,q,p,oN(yN,"solid",g),oN(zN,"horizontal",c),e,k,b]);c=$APP.N(g);d=$APP.G(c,$APP.Tk);h=$APP.G(c,$APP.Qi);k=$APP.G(c,uN);m=$APP.G(c,vN);p=$APP.G(c,$APP.fj);q=$APP.G(c,$APP.Fh);e=$APP.G(c,$APP.xk);b=$APP.G(c,$APP.T);var w=$APP.G(c,wN);c=typeof b==="string"&&b.trim().length>0;var x=a.style;a.setAttribute("data-orientation",
6
+ e);a.setAttribute("data-variant",q);a.setAttribute("data-align",h);x.setProperty("--x-divider-thickness",$APP.r(k)?k:"1px");x.setProperty("--x-divider-inset",$APP.r(m)?m:"0px");x.setProperty("--x-divider-length",$APP.r(w)?w:"auto");$APP.r(p)?x.setProperty("--x-divider-color",p):x.removeProperty("--x-divider-color");g=$APP.Hh.g(g);$APP.J(new $APP.R(null,new $APP.P(null,2,["none",null,"presentation",null],null),null),g)?a.setAttribute("role","presentation"):a.setAttribute("role","separator");$APP.D.i(e,
7
+ "vertical")?a.setAttribute("aria-orientation","vertical"):a.removeAttribute("aria-orientation");$APP.r($APP.r(d)?d.length>0:d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");c?(d=$APP.l(a,"__xDividerRefs"),$APP.D.i($APP.l(d,"mode"),"no-label")&&(e=$APP.l(d,"container"),pN(e),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span"),p=document.createElement("div"),g.setAttribute("part","line-left"),h.setAttribute("part",
8
+ "label"),k.setAttribute("name","label"),m.setAttribute("part","label-text"),p.setAttribute("part","line-right"),h.appendChild(k),h.appendChild(m),e.appendChild(g),e.appendChild(h),e.appendChild(p),d["line-left"]=g,d["label-wrap"]=h,d["label-text"]=m,d["line-right"]=p,d.mode="label"),a=$APP.l($APP.l(a,"__xDividerRefs"),"label-text"),$APP.r(a)&&(a.textContent=b)):(a=$APP.l(a,"__xDividerRefs"),$APP.D.i($APP.l(a,"mode"),"label")&&(b=$APP.l(a,"container"),pN(b),d=document.createElement("div"),d.setAttribute("part",
9
+ "line"),b.appendChild(d),a["line-left"]=null,a["label-wrap"]=null,a["label-text"]=null,a["line-right"]=null,a.mode="no-label"));return null},BN=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.S.g(c)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},CN=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(b);return $APP.r(d)?d:c},set:function(d){return d!=null?this.setAttribute(b,
10
+ ""+$APP.S.g(d)):this.removeAttribute(b)},enumerable:!0,configurable:!0})},DN=function(a){CN(a,"orientation","horizontal");CN(a,"variant","solid");CN(a,"align","center");BN(a,"label");BN(a,"thickness");BN(a,"color");BN(a,"inset");BN(a,"length")},EN=function(){function a(){return Reflect.construct(HTMLElement,[],$APP.Ua(b))}var b=new mN;nN(b,a);return a},GN=function(){if($APP.r(customElements.get("x-divider")))return null;var a=Object.create(HTMLElement.prototype),b=EN();Object.setPrototypeOf(b,HTMLElement);
11
+ a.constructor=b;DN(a);a.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xDividerRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div");d.textContent=":host{display:block;color-scheme:light dark;--x-divider-color:rgba(0,0,0,0.12);--x-divider-thickness:1px;--x-divider-inset:0px;--x-divider-length:auto;}@media (prefers-color-scheme:dark){:host{--x-divider-color:rgba(255,255,255,0.15);}}[part\x3dcontainer]{display:flex;align-items:center;width:var(--x-divider-length,auto);box-sizing:border-box;}:host([data-orientation\x3d'vertical']) [part\x3dcontainer]{flex-direction:column;height:var(--x-divider-length,auto);width:auto;}[part\x3dline],[part\x3dline-left],[part\x3dline-right]{flex:1;border:none;background:var(--x-divider-color,rgba(0,0,0,0.12));height:var(--x-divider-thickness,1px);margin:var(--x-divider-inset,0px) 0;}:host([data-orientation\x3d'vertical']) [part\x3dline],:host([data-orientation\x3d'vertical']) [part\x3dline-left],:host([data-orientation\x3d'vertical']) [part\x3dline-right]{width:var(--x-divider-thickness,1px);height:auto;margin:0 var(--x-divider-inset,0px);}:host([data-variant\x3d'dashed']) [part\x3dline],:host([data-variant\x3d'dashed']) [part\x3dline-left],:host([data-variant\x3d'dashed']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dashed']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dashed var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}:host([data-variant\x3d'dotted']) [part\x3dline],:host([data-variant\x3d'dotted']) [part\x3dline-left],:host([data-variant\x3d'dotted']) [part\x3dline-right]{background:none;height:0;border-top:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));}:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-left],:host([data-orientation\x3d'vertical'][data-variant\x3d'dotted']) [part\x3dline-right]{border-top:none;border-left:var(--x-divider-thickness,1px) dotted var(--x-divider-color,rgba(0,0,0,0.12));width:0;height:auto;}[part\x3dlabel]{display:flex;align-items:center;flex-shrink:0;padding:0 0.75em;font-size:0.75rem;font-weight:500;color:var(--x-divider-color);white-space:nowrap;}:host([data-orientation\x3d'vertical']) [part\x3dlabel]{padding:0.75em 0;writing-mode:horizontal-tb;}[part\x3dlabel-text]{display:inline;}:host([data-align\x3d'start']) [part\x3dline-left]{flex:0 0 1rem;}:host([data-align\x3d'end']) [part\x3dline-right]{flex:0 0 1rem;}@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important;}}";
12
+ e.setAttribute("part","container");var g=document.createElement("div");g.setAttribute("part","line");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xDividerRefs={root:c,container:e,mode:"no-label"}}return AN(this)};a.disconnectedCallback=function(){return null};a.attributeChangedCallback=function(c,d,e){return $APP.O(d,e)?$APP.r($APP.l(this,"__xDividerRefs"))?AN(this):null:null};b.observedAttributes=FN;b.prototype=a;return customElements.define("x-divider",b)},HN=function(){return GN()};
13
+ $APP.f=mN.prototype;$APP.f.S=function(a,b){return this===b};$APP.f.wb=function(){return this.state};$APP.f.U=function(){return this.u};$APP.f.T=function(){return $APP.ia(this)};$APP.f.Y=$APP.Ob;$APP.f.P=function(a,b,c){$APP.nb(b,"#object[cljs.core.Atom ");$APP.vg(new $APP.P(null,1,[$APP.mh,this.state],null),b,c);return $APP.nb(b,"]")};
14
+ var sN=new $APP.M(null,"inset-raw","inset-raw",89351124),vN=new $APP.M(null,"inset","inset",-396367740),tN=new $APP.M(null,"role-raw","role-raw",777951354),wN=new $APP.M(null,"length","length",588987862),qN=new $APP.M(null,"length-raw","length-raw",-1832244116),uN=new $APP.M(null,"thickness","thickness",-940175454),rN=new $APP.M(null,"thickness-raw","thickness-raw",1843812655);var FN="orientation variant thickness color inset length label align role aria-label".split(" "),zN=new $APP.R(null,new $APP.P(null,2,["vertical",null,"horizontal",null],null),null),yN=new $APP.R(null,new $APP.P(null,3,["dashed",null,"dotted",null,"solid",null],null),null),xN=new $APP.R(null,new $APP.P(null,3,["center",null,"start",null,"end",null],null),null);$APP.ka("baredom.exports.x_divider.init",HN);export const init=HN;