@vanelsas/baredom 2.5.0 → 2.7.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 (104) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +23 -337
  3. package/custom-elements.json +36 -1
  4. package/dist/base.js +358 -352
  5. package/dist/integrity.json +93 -93
  6. package/dist/x-alert.js +18 -19
  7. package/dist/x-avatar-group.js +10 -11
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +10 -11
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +14 -14
  13. package/dist/x-button.js +18 -16
  14. package/dist/x-cancel-dialogue.js +17 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +34 -34
  17. package/dist/x-chart.js +46 -48
  18. package/dist/x-checkbox.js +10 -11
  19. package/dist/x-chip.js +9 -9
  20. package/dist/x-collapse.js +10 -12
  21. package/dist/x-color-picker.js +44 -45
  22. package/dist/x-combobox.d.ts +1 -0
  23. package/dist/x-combobox.js +26 -27
  24. package/dist/x-command-palette.js +26 -27
  25. package/dist/x-container.js +5 -6
  26. package/dist/x-context-menu.js +18 -18
  27. package/dist/x-copy.js +22 -22
  28. package/dist/x-currency-field.d.ts +1 -0
  29. package/dist/x-currency-field.js +22 -23
  30. package/dist/x-date-picker.js +41 -42
  31. package/dist/x-divider.js +8 -9
  32. package/dist/x-drawer.js +11 -12
  33. package/dist/x-dropdown.js +10 -11
  34. package/dist/x-fieldset.js +6 -6
  35. package/dist/x-file-download.js +7 -8
  36. package/dist/x-file-upload.js +22 -25
  37. package/dist/x-form-field.js +15 -17
  38. package/dist/x-form.js +8 -10
  39. package/dist/x-gaussian-blur.js +18 -18
  40. package/dist/x-grid.js +6 -6
  41. package/dist/x-icon.js +7 -7
  42. package/dist/x-image.js +19 -19
  43. package/dist/x-kinetic-font.js +28 -29
  44. package/dist/x-kinetic-typography.js +39 -39
  45. package/dist/x-liquid-dock.js +39 -39
  46. package/dist/x-liquid-fill.js +44 -44
  47. package/dist/x-liquid-glass.js +47 -47
  48. package/dist/x-menu-item.js +9 -10
  49. package/dist/x-menu.js +11 -11
  50. package/dist/x-metaball-cursor.js +27 -27
  51. package/dist/x-modal.js +12 -13
  52. package/dist/x-morph-stack.js +38 -39
  53. package/dist/x-navbar.js +12 -13
  54. package/dist/x-neural-glow.js +32 -33
  55. package/dist/x-notification-center.js +9 -10
  56. package/dist/x-organic-divider.js +18 -19
  57. package/dist/x-organic-progress.js +37 -38
  58. package/dist/x-organic-shape.js +13 -14
  59. package/dist/x-pagination.d.ts +2 -1
  60. package/dist/x-pagination.js +16 -16
  61. package/dist/x-particle-button.js +48 -49
  62. package/dist/x-popover.js +24 -25
  63. package/dist/x-progress-circle.js +8 -9
  64. package/dist/x-progress.js +11 -11
  65. package/dist/x-radio.js +10 -12
  66. package/dist/x-ripple-effect.js +11 -11
  67. package/dist/x-scroll-parallax.js +19 -19
  68. package/dist/x-scroll-stack.js +18 -18
  69. package/dist/x-scroll-story.js +36 -36
  70. package/dist/x-scroll-timeline.js +46 -47
  71. package/dist/x-scroll.js +40 -41
  72. package/dist/x-search-field.js +15 -17
  73. package/dist/x-select.d.ts +1 -0
  74. package/dist/x-select.js +10 -11
  75. package/dist/x-sidebar.js +16 -16
  76. package/dist/x-skeleton-group.js +12 -14
  77. package/dist/x-skeleton.js +1 -1
  78. package/dist/x-slider.d.ts +1 -0
  79. package/dist/x-slider.js +16 -16
  80. package/dist/x-soft-body.js +21 -21
  81. package/dist/x-spacer.js +5 -5
  82. package/dist/x-spinner.js +5 -6
  83. package/dist/x-splash.js +13 -13
  84. package/dist/x-stat.js +11 -11
  85. package/dist/x-stepper.js +15 -15
  86. package/dist/x-switch.js +9 -11
  87. package/dist/x-tab.js +7 -7
  88. package/dist/x-table-cell.js +22 -22
  89. package/dist/x-table-row.js +9 -10
  90. package/dist/x-table.js +14 -15
  91. package/dist/x-tabs.d.ts +1 -0
  92. package/dist/x-tabs.js +11 -11
  93. package/dist/x-text-area.d.ts +1 -0
  94. package/dist/x-text-area.js +19 -19
  95. package/dist/x-theme.d.ts +1 -1
  96. package/dist/x-theme.js +25 -25
  97. package/dist/x-timeline-item.js +23 -23
  98. package/dist/x-timeline.js +9 -9
  99. package/dist/x-toast.js +24 -24
  100. package/dist/x-toaster.js +8 -8
  101. package/dist/x-tooltip.js +11 -13
  102. package/dist/x-typography.js +11 -11
  103. package/dist/x-welcome-tour.js +64 -65
  104. package/package.json +186 -182
@@ -1,11 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var wo=function(a){return typeof a==="string"&&$APP.I(vo,a.toLowerCase())?a.toLowerCase():"top-right"},xo=function(a){if(a==null)return 5;a=parseInt(""+$APP.T.g(a),10);return typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:5},yo=function(a){var b=$APP.k(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
3
- d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},zo=function(a){var b=a.getAttribute("position");b=wo(b);a.setAttribute("data-position",b)},Ao=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1}))},Bo=function(a){function b(d){var e=yo(a),g=$APP.k(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");
4
- g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;Ao(a,"x-notification-center-dismiss",new $APP.R(null,5,[$APP.yl,e,$APP.Z,$APP.n(h)?h:"info",$APP.Qi,$APP.n(l)?l:"",$APP.Bl,$APP.n(d)?d:"",$APP.Rh,g],null));g===0&&Ao(a,"x-notification-center-empty",$APP.Qd);return null}var c=yo(a);$APP.k(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ja(a,"__xNcHandlers",{dismiss:b})},Co=function(a){var b=$APP.k(a,"__xNcHandlers"),c=$APP.k(a,
5
- "__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));a.__xNcHandlers=null},Eo=function(a,b){var c=yo(a);c=$APP.k(c,"container");if(c.querySelectorAll("x-alert").length<function(){var q=$APP.k(a,"__xNcMax");return $APP.n(q)?q:5}()){var d=document.createElement("x-alert"),e=function(){var q=$APP.k(b,"id");$APP.n(q)||(q=Do.v,Do.v=q+1,q="xnc-"+$APP.T.g(q));return q}(),g=$APP.k(b,"type"),h=$APP.k(b,"text"),l=$APP.k(b,
6
- "icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.T.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);Ao(a,"x-notification-center-push",new $APP.R(null,2,[$APP.yl,e,$APP.Rh,c.querySelectorAll("x-alert").length],null));return e}return null},Fo=function(a){Object.defineProperty(a,
7
- "position",{get:function(){return wo(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return xo(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.T.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.k(this,"__xNcRefs");
8
- return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},Ho=function(){var a=class extends HTMLElement{};a.observedAttributes=Go;a.prototype.connectedCallback=function(){yo(this);Co(this);Bo(this);zo(this);return null};a.prototype.disconnectedCallback=function(){Co(this);return null};a.prototype.attributeChangedCallback=function(b){$APP.B.i(b,"position")?zo(this):$APP.B.i(b,"max")&&(this.__xNcMax=xo(this.getAttribute("max")));return null};Fo(a.prototype);
9
- a.prototype.push=function(b){return Eo(this,b)};a.prototype.clear=function(){var b=yo(this);b=$APP.t($APP.uc($APP.k(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.yb(c),e=$APP.zb(c),c=b,d=$APP.z(b),b=e):($APP.u(c).remove(),b=$APP.w(c),c=null,d=0),e=0;else break;return null};return a},Io=function(){$APP.n(customElements.get("x-notification-center"))||customElements.define("x-notification-center",Ho());
10
- return null};var Go=["position","max"],vo=new $APP.S(null,new $APP.R(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
11
- $APP.Pd(["x-notification-center-push",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.yl,$APP.Y,$APP.Rh,$APP.W],null),$APP.km,!1],null),"x-notification-center-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,5,[$APP.yl,$APP.Y,$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Bl,$APP.Y,$APP.Rh,$APP.W],null),$APP.km,!1],null),"x-notification-center-empty",new $APP.R(null,2,[$APP.V,$APP.Qd,$APP.km,!1],null)]);var Do={v:0};$APP.ha("baredom.exports.x_notification_center.init",Io);export const init=Io;
2
+ var So=function(a){return typeof a==="string"&&$APP.I(Ro,a.toLowerCase())?a.toLowerCase():"top-right"},To=function(a){if(a==null)return 5;a=parseInt(""+$APP.S.g(a),10);return typeof a==="number"&&$APP.q(isNaN(a))&&a>0?a:5},Uo=function(a){var b=$APP.k(a,"__xNcRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div");c.textContent=":host{display:block;position:fixed;z-index:var(--x-notification-center-z-index,9999);--x-notification-center-width:360px;--x-notification-center-gap:8px;--x-notification-center-offset-x:16px;--x-notification-center-offset-y:16px;--x-notification-center-z-index:9999;pointer-events:none;}:host([data-position\x3d'top-right']){top:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-left']){top:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-right']){bottom:var(--x-notification-center-offset-y);right:var(--x-notification-center-offset-x);}:host([data-position\x3d'bottom-left']){bottom:var(--x-notification-center-offset-y);left:var(--x-notification-center-offset-x);}:host([data-position\x3d'top-center']){top:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}:host([data-position\x3d'bottom-center']){bottom:var(--x-notification-center-offset-y);left:50%;transform:translateX(-50%);}[part\x3dcontainer]{display:flex;flex-direction:column;gap:var(--x-notification-center-gap);width:var(--x-notification-center-width);pointer-events:auto;}:host([data-position\x3d'bottom-right']) [part\x3dcontainer],:host([data-position\x3d'bottom-left']) [part\x3dcontainer],:host([data-position\x3d'bottom-center']) [part\x3dcontainer]{flex-direction:column-reverse;}";
3
+ d.setAttribute("part","container");d.setAttribute("role","log");d.setAttribute("aria-live","polite");b.appendChild(c);b.appendChild(d);a.__xNcRefs={root:b,container:d};return $APP.k(a,"__xNcRefs")},Vo=function(a){var b=a.getAttribute("position");b=So(b);a.setAttribute("data-position",b)},Wo=function(a){function b(d){var e=Uo(a),g=$APP.k(e,"container"),h=d.target;e=h.getAttribute("data-notification-id");g=g.querySelectorAll("x-alert").length-1;h=h.getAttribute("type");var l=d.detail.reason;d=d.detail.text;
4
+ $APP.Qg(a,"x-notification-center-dismiss",{id:e,type:$APP.n(h)?h:"info",reason:$APP.n(l)?l:"",text:$APP.n(d)?d:"",count:g});g===0&&$APP.Qg(a,"x-notification-center-empty",{});return null}var c=Uo(a);$APP.k(c,"root").addEventListener("x-alert-dismiss",b,{capture:!1});$APP.ja(a,"__xNcHandlers",{dismiss:b})},Xo=function(a){var b=$APP.k(a,"__xNcHandlers"),c=$APP.k(a,"__xNcRefs");$APP.n($APP.n(b)?c:b)&&(c=$APP.k(c,"root"),b=$APP.k(b,"dismiss"),$APP.n(b)&&c.removeEventListener("x-alert-dismiss",b,{capture:!1}));
5
+ a.__xNcHandlers=null},Zo=function(a,b){var c=Uo(a);c=$APP.k(c,"container");if(c.querySelectorAll("x-alert").length<function(){var r=$APP.k(a,"__xNcMax");return $APP.n(r)?r:5}()){var d=document.createElement("x-alert"),e=function(){var r=$APP.k(b,"id");$APP.n(r)||(r=Yo.v,Yo.v=r+1,r="xnc-"+$APP.S.g(r));return r}(),g=$APP.k(b,"type"),h=$APP.k(b,"text"),l=$APP.k(b,"icon"),m=$APP.k(b,"timeoutMs"),p=$APP.k(b,"dismissible");d.setAttribute("data-notification-id",e);$APP.n(g)&&d.setAttribute("type",g);$APP.n(h)&&
6
+ d.setAttribute("text",h);$APP.n(l)&&d.setAttribute("icon",l);$APP.n(m)&&d.setAttribute("timeout-ms",""+$APP.S.g(m|0));p===!1&&d.setAttribute("dismissible","false");c.appendChild(d);$APP.Qg(a,"x-notification-center-push",{id:e,count:c.querySelectorAll("x-alert").length});return e}return null},$o=function(a){Object.defineProperty(a,"position",{get:function(){return So(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.S.g(b)):this.removeAttribute("position")},
7
+ enumerable:!0,configurable:!0});Object.defineProperty(a,"max",{get:function(){return To(this.getAttribute("max"))},set:function(b){return $APP.n(b)?this.setAttribute("max",""+$APP.S.g(b|0)):this.removeAttribute("max")},enumerable:!0,configurable:!0});Object.defineProperty(a,"count",{get:function(){var b=$APP.k(this,"__xNcRefs");return $APP.n(b)?$APP.k(b,"container").querySelectorAll("x-alert").length:0},enumerable:!0,configurable:!0})},ap=function(a){Uo(a);Xo(a);Wo(a);Vo(a);return null},bp=function(a){Xo(a);
8
+ return null},cp=function(a,b){$APP.B.i(b,"position")?Vo(a):$APP.B.i(b,"max")&&(b=To(a.getAttribute("max")),a.__xNcMax=b);return null},dp=function(a){a.push=function(b){return Zo(this,b)};return a.clear=function(){var b=Uo(this);b=$APP.t($APP.uc($APP.k(b,"container").querySelectorAll("x-alert")));for(var c=null,d=0,e=0;;)if(e<d)c.F(null,e).remove(),e+=1;else if(b=$APP.t(b))c=b,$APP.Nc(c)?(b=$APP.xb(c),e=$APP.yb(c),c=b,d=$APP.z(b),b=e):($APP.u(c).remove(),b=$APP.w(c),c=null,d=0),e=0;else break;return null}},
9
+ fp=function(){return $APP.Lg("x-notification-center",new $APP.Q(null,5,[$APP.Cg,ep,$APP.Dg,ap,$APP.Eg,bp,$APP.Fg,cp,$APP.Jg,function(a){$o(a);return dp(a)}],null))},gp=function(){return fp()};var ep=["position","max"],Ro=new $APP.R(null,new $APP.Q(null,6,["top-center",null,"bottom-center",null,"top-right",null,"bottom-right",null,"top-left",null,"bottom-left",null],null),null);
10
+ $APP.Pd(["x-notification-center-push",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.Rl,$APP.Y,$APP.ii,$APP.W],null),$APP.Km,!1],null),"x-notification-center-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,5,[$APP.Rl,$APP.Y,$APP.Z,$APP.Y,$APP.hj,$APP.Y,$APP.Ul,$APP.Y,$APP.ii,$APP.W],null),$APP.Km,!1],null),"x-notification-center-empty",new $APP.Q(null,2,[$APP.V,$APP.Qd,$APP.Km,!1],null)]);var Yo={v:0};$APP.ha("baredom.exports.x_notification_center.init",gp);export const init=gp;
@@ -1,20 +1,19 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var SS=function(a){return typeof a==="string"&&$APP.I(RS,a)?a:"wave"},VS=function(a){return $APP.ge(function(b){return new $APP.R(null,2,[TS,b*20,US,b*8],null)},$APP.dg(0,a))},eT=function(a){var b=new $APP.R(null,7,[$APP.kk,a.getAttribute("shape"),$APP.fj,a.getAttribute("layers"),$APP.Yg,a.getAttribute("height"),WS,a.getAttribute("flip"),XS,a.getAttribute("mirror"),$APP.Wg,a.getAttribute("animation"),$APP.Yk,a.getAttribute("path")],null);var c=$APP.M(b),d=$APP.D(c,$APP.kk),e=$APP.D(c,$APP.fj);b=$APP.D(c,
3
- $APP.Yg);var g=$APP.D(c,WS),h=$APP.D(c,XS),l=$APP.D(c,$APP.Wg);c=$APP.D(c,$APP.Yk);typeof c==="string"?(c=$APP.Fg(c,YS).trim(),c=$APP.N(c,"")?c:null):c=null;d=SS(d);e=typeof e==="string"?parseInt(e,10):null;var m=e==null;m||(m=isNaN(e),m=$APP.n(m)?m:e<1);e=$APP.n(m)?1:e>5?5:e;var p=typeof l==="string"&&$APP.I(ZS,l)?l:"none";l=c!=null?c:$APP.ie($S,new $APP.O(null,2,5,$APP.P,[SS(d),$APP.Yk],null));m=c==null?$APP.ie($S,new $APP.O(null,2,5,$APP.P,[SS(d),aT],null)):null;var q=c!=null?c:$APP.D(bT,SS(d));
4
- p=$APP.B.i(p,"morph")&&m==null?"none":p;g=g!=null;var v=VS(e);h=h!=null;b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():"120px";b=$APP.zf([$APP.Yk,$APP.Sj,$APP.Wg,WS,cT,aT,$APP.kk,$APP.fj,XS,$APP.Yg,dT],[c,l,p,g,v,m,d,e,h,b,q]);e=$APP.M(b);b=$APP.D(e,XS);h=$APP.D(e,$APP.Yg);v=$APP.D(e,dT);var x=$APP.D(e,$APP.Sj);c=$APP.D(e,$APP.Wg);g=$APP.D(e,WS);d=$APP.D(e,cT);l=$APP.D(e,aT);e=$APP.D(e,$APP.fj);m=$APP.k(a,"__xOrganicDividerBase");var y=$APP.k(a,"__xOrganicDividerSvg");q=$APP.k(a,"__xOrganicDividerPaths");
5
- var A=$APP.B.i(c,"drift");p=$APP.B.i(c,"morph");v=A?v:x;y.setAttribute("viewBox",A?"0 0 1800 120":"0 0 1200 120");a:if(x=q.length,x<e)for(x=e-x,A=0;;)if(A<x){var C=document.createElementNS("http://www.w3.org/2000/svg","path");y.appendChild(C);q.push(C);A+=1}else break a;else if(x>e)for(x-=e,A=0;;)if(A<x)C=q.pop(),y.removeChild(C),A+=1;else break a;for(y=0;;)if(y<e){x=q[y];A=$APP.pc(d,y);C=$APP.M(A);A=$APP.D(C,TS);C=$APP.D(C,US);var E=y+1;x.setAttribute("d",v);x.setAttribute("fill","var(--x-organic-divider-color-"+
6
- $APP.T.g(E)+")");x.setAttribute("opacity",""+$APP.T.g(e<=1?1:.3+y/(e-1)*.7));A>0||C>0?x.setAttribute("transform","translate("+$APP.T.g(A)+","+$APP.T.g(C)+")"):x.removeAttribute("transform");p&&(x.style.setProperty("--x-organic-divider-d",'path("'+$APP.T.g(v)+'")'),$APP.n(l)&&x.style.setProperty("--x-organic-divider-d-alt",'path("'+$APP.T.g(l)+'")'));p||(x.style.removeProperty("--x-organic-divider-d"),x.style.removeProperty("--x-organic-divider-d-alt"));y+=1}else break;m.style.setProperty("height",
7
- h);$APP.n(g)?a.setAttribute("data-flip",""):a.removeAttribute("data-flip");$APP.n(b)?a.setAttribute("data-mirror",""):a.removeAttribute("data-mirror");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation")},fT=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"wave"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});
8
- Object.defineProperty(a,"layers",{get:function(){var b=this.getAttribute("layers");return $APP.n(b)?b:"1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("layers",b):this.removeAttribute("layers")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:"120px"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,
9
- configurable:!0});Object.defineProperty(a,"flip",{get:function(){return this.hasAttribute("flip")},set:function(b){return $APP.n(b)?this.setAttribute("flip",""):this.removeAttribute("flip")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mirror",{get:function(){return this.hasAttribute("mirror")},set:function(b){return $APP.n(b)?this.setAttribute("mirror",""):this.removeAttribute("mirror")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");
10
- return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0})},hT=function(){var a=class extends HTMLElement{};a.observedAttributes=gT;a.prototype.connectedCallback=
11
- function(){if(!$APP.n($APP.k(this,"__xOrganicDividerInit"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;line-height:0;font-size:0;overflow:hidden;--x-organic-divider-color:var(--x-color-primary,#6366f1);--x-organic-divider-color-1:color-mix(in srgb,var(--x-organic-divider-color) 15%,transparent);--x-organic-divider-color-2:color-mix(in srgb,var(--x-organic-divider-color) 25%,transparent);--x-organic-divider-color-3:color-mix(in srgb,var(--x-organic-divider-color) 40%,transparent);--x-organic-divider-color-4:color-mix(in srgb,var(--x-organic-divider-color) 60%,transparent);--x-organic-divider-color-5:color-mix(in srgb,var(--x-organic-divider-color) 85%,transparent);--x-organic-divider-height:120px;--x-organic-divider-animate-duration:6s;--x-organic-divider-animate-timing:ease-in-out;}@media (prefers-color-scheme:dark){:host{--x-organic-divider-color:var(--x-color-primary,#818cf8);}}[part\x3dbase]{width:100%;position:relative;overflow:hidden;}[part\x3dbase] svg{display:block;width:100%;height:100%;}:host([data-flip]) [part\x3dbase]{transform:scaleY(-1);}:host([data-mirror]) [part\x3dbase]{transform:scaleX(-1);}:host([data-flip][data-mirror]) [part\x3dbase]{transform:scaleX(-1) scaleY(-1);}@keyframes x-organic-divider-drift{0%{transform:translateX(0);}100%{transform:translateX(-33.333%);}}:host([data-animation\x3ddrift]) [part\x3dbase] svg{width:150%;animation:x-organic-divider-drift var(--x-organic-divider-animate-duration) linear infinite;}@keyframes x-organic-divider-morph{0%,100%{d:var(--x-organic-divider-d);}50%{d:var(--x-organic-divider-d-alt);}}:host([data-animation\x3dmorph]) [part\x3dbase] path{animation:x-organic-divider-morph var(--x-organic-divider-animate-duration) var(--x-organic-divider-animate-timing) infinite;}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dbase] svg,:host([data-animation]) [part\x3dbase] path{animation:none;}}";
12
- d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.setAttribute("role","presentation");this.setAttribute("aria-hidden","true");this.__xOrganicDividerBase=d;this.__xOrganicDividerSvg=e;this.__xOrganicDividerPaths=[];this.__xOrganicDividerInit=!0}eT(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=
13
- function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicDividerInit"))&&eT(this);return null};fT(a.prototype);return a},iT=function(){$APP.n(customElements.get("x-organic-divider"))||customElements.define("x-organic-divider",hT());return null},YS=/[^MmLlHhVvCcSsQqTtAaZz0-9\s,.\-+eE]/,WS=new $APP.K(null,"flip","flip",2033871302),cT=new $APP.K(null,"transforms","transforms",793344554),TS=new $APP.K(null,"x-offset","x-offset",-1499732449),aT=new $APP.K(null,"path-alt","path-alt",1724994068),US=new $APP.K(null,
14
- "y-offset","y-offset",-1716542),dT=new $APP.K(null,"drift-d","drift-d",-1241526977),XS=new $APP.K(null,"mirror","mirror",1914600218);var gT="shape layers height flip mirror animation path".split(" "),ZS=new $APP.S(null,new $APP.R(null,3,["none",null,"drift",null,"morph",null],null),null),RS=new $APP.S(null,new $APP.R(null,8,["drip",null,"cloud",null,"scallop",null,"waves",null,"mountain",null,"slant",null,"blob-edge",null,"wave",null],null),null),$S=new $APP.R(null,8,["wave",new $APP.R(null,2,[$APP.Yk,"M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z",aT,"M0,45 C200,85 400,15 600,55 C800,90 1000,10 1200,50 L1200,120 L0,120 Z"],
15
- null),"waves",new $APP.R(null,2,[$APP.Yk,"M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 L1200,120 L0,120 Z",aT,"M0,55 C150,15 300,85 450,50 C600,10 750,80 900,35 C1050,5 1150,75 1200,40 L1200,120 L0,120 Z"],null),"blob-edge",new $APP.R(null,2,[$APP.Yk,"M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 L1200,120 L0,120 Z",aT,"M0,40 C80,65 160,25 240,60 C320,80 400,20 500,45 C600,70 680,15 780,55 C880,75 960,10 1060,35 C1120,55 1180,30 1200,55 L1200,120 L0,120 Z"],
16
- null),"mountain",new $APP.R(null,2,[$APP.Yk,"M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1200,60 L1200,120 L0,120 Z",aT,"M0,80 C100,80 200,45 350,45 C500,45 450,75 600,75 C750,75 700,30 850,30 C1000,30 950,70 1100,70 C1150,70 1200,50 1200,50 L1200,120 L0,120 Z"],null),"drip",new $APP.R(null,2,[$APP.Yk,"M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 L1200,120 L0,120 Z",
17
- aT,"M0,20 C50,20 100,20 170,20 C195,20 205,55 220,72 C235,90 245,90 260,72 C275,55 285,20 310,20 L470,20 C495,20 505,45 520,62 C535,80 545,80 560,62 C575,45 585,20 610,20 L820,20 C845,20 855,65 870,85 C885,105 895,105 910,85 C925,65 935,20 960,20 L1200,20 L1200,120 L0,120 Z"],null),"slant",new $APP.R(null,2,[$APP.Yk,"M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 L1200,120 L0,120 Z",aT,"M0,80 C300,70 600,50 900,30 C1000,20 1100,10 1200,20 L1200,120 L0,120 Z"],null),"scallop",new $APP.R(null,2,
18
- [$APP.Yk,"M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 L1200,120 L0,120 Z",aT,"M0,50 Q75,110 150,50 Q225,-10 300,50 Q375,110 450,50 Q525,-10 600,50 Q675,110 750,50 Q825,-10 900,50 Q975,110 1050,50 Q1125,-10 1200,50 L1200,120 L0,120 Z"],null),"cloud",new $APP.R(null,2,[$APP.Yk,"M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 L1200,120 L0,120 Z",
19
- aT,"M0,70 C50,70 80,50 140,50 C180,50 200,70 220,70 C240,70 260,30 320,30 C380,30 400,60 440,60 C480,60 500,20 560,20 C620,20 640,50 700,50 C760,50 780,35 840,35 C900,35 920,65 960,65 C1000,65 1040,40 1100,40 C1140,40 1180,70 1200,70 L1200,120 L0,120 Z"],null)],null),bT=new $APP.R(null,8,"wave;M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 C1400,20 1600,100 1800,60 L1800,120 L0,120 Z;waves;M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 C1350,80 1500,0 1650,40 C1800,80 1800,50 1800,50 L1800,120 L0,120 Z;blob-edge;M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 C1280,30 1360,70 1440,45 C1520,20 1600,80 1700,55 C1800,30 1800,50 1800,50 L1800,120 L0,120 Z;mountain;M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1300,60 C1400,60 1400,30 1500,30 C1600,30 1550,80 1700,80 C1750,80 1800,60 1800,60 L1800,120 L0,120 Z;drip;M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 C1225,20 1235,60 1250,80 C1265,100 1275,100 1290,80 C1305,60 1315,20 1340,20 L1500,20 C1525,20 1535,50 1550,70 C1565,90 1575,90 1590,70 C1605,50 1615,20 1640,20 L1800,20 L1800,120 L0,120 Z;slant;M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 C1300,2 1500,90 1800,100 L1800,120 L0,120 Z;scallop;M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 Q1275,0 1350,60 Q1425,120 1500,60 Q1575,0 1650,60 Q1725,120 1800,60 L1800,120 L0,120 Z;cloud;M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 C1240,60 1260,20 1320,20 C1380,20 1400,50 1440,50 C1480,50 1500,10 1560,10 C1620,10 1640,40 1700,40 C1760,40 1780,60 1800,60 L1800,120 L0,120 Z".split(";"),
20
- null);$APP.ha("baredom.exports.x_organic_divider.init",iT);export const init=iT;
2
+ var EU=function(a){return typeof a==="string"&&$APP.I(DU,a)?a:"wave"},HU=function(a){return $APP.fe(function(b){return new $APP.Q(null,2,[FU,b*20,GU,b*8],null)},$APP.dg(0,a))},RU=function(a){var b=new $APP.Q(null,7,[$APP.Ck,a.getAttribute("shape"),$APP.xj,a.getAttribute("layers"),$APP.oh,a.getAttribute("height"),IU,a.getAttribute("flip"),JU,a.getAttribute("mirror"),$APP.mh,a.getAttribute("animation"),$APP.ql,a.getAttribute("path")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Ck),e=$APP.D(c,$APP.xj);b=$APP.D(c,
3
+ $APP.oh);var g=$APP.D(c,IU),h=$APP.D(c,JU),l=$APP.D(c,$APP.mh);c=$APP.D(c,$APP.ql);typeof c==="string"?(c=$APP.Wg(c,KU).trim(),c=$APP.N(c,"")?c:null):c=null;d=EU(d);e=typeof e==="string"?parseInt(e,10):null;var m=e==null;m||(m=isNaN(e),m=$APP.n(m)?m:e<1);e=$APP.n(m)?1:e>5?5:e;var p=typeof l==="string"&&$APP.I(LU,l)?l:"none";l=c!=null?c:$APP.he(MU,new $APP.O(null,2,5,$APP.P,[EU(d),$APP.ql],null));m=c==null?$APP.he(MU,new $APP.O(null,2,5,$APP.P,[EU(d),NU],null)):null;var r=c!=null?c:$APP.D(OU,EU(d));
4
+ p=$APP.B.i(p,"morph")&&m==null?"none":p;g=g!=null;var v=HU(e);h=h!=null;b=typeof b==="string"&&$APP.N("",b.trim())?b.trim():"120px";b=$APP.zf([$APP.ql,$APP.nk,$APP.mh,IU,PU,NU,$APP.Ck,$APP.xj,JU,$APP.oh,QU],[c,l,p,g,v,m,d,e,h,b,r]);e=$APP.M(b);b=$APP.D(e,JU);h=$APP.D(e,$APP.oh);v=$APP.D(e,QU);var x=$APP.D(e,$APP.nk);c=$APP.D(e,$APP.mh);g=$APP.D(e,IU);d=$APP.D(e,PU);l=$APP.D(e,NU);e=$APP.D(e,$APP.xj);m=$APP.k(a,"__xOrganicDividerBase");var y=$APP.k(a,"__xOrganicDividerSvg");r=$APP.k(a,"__xOrganicDividerPaths");
5
+ var A=$APP.B.i(c,"drift");p=$APP.B.i(c,"morph");v=A?v:x;y.setAttribute("viewBox",A?"0 0 1800 120":"0 0 1200 120");a:if(x=r.length,x<e)for(x=e-x,A=0;;)if(A<x){var C=document.createElementNS("http://www.w3.org/2000/svg","path");y.appendChild(C);r.push(C);A+=1}else break a;else if(x>e)for(x-=e,A=0;;)if(A<x)C=r.pop(),y.removeChild(C),A+=1;else break a;for(y=0;;)if(y<e){x=r[y];A=$APP.pc(d,y);C=$APP.M(A);A=$APP.D(C,FU);C=$APP.D(C,GU);var E=y+1;x.setAttribute("d",v);x.setAttribute("fill","var(--x-organic-divider-color-"+
6
+ $APP.S.g(E)+")");x.setAttribute("opacity",""+$APP.S.g(e<=1?1:.3+y/(e-1)*.7));A>0||C>0?x.setAttribute("transform","translate("+$APP.S.g(A)+","+$APP.S.g(C)+")"):x.removeAttribute("transform");p&&(x.style.setProperty("--x-organic-divider-d",'path("'+$APP.S.g(v)+'")'),$APP.n(l)&&x.style.setProperty("--x-organic-divider-d-alt",'path("'+$APP.S.g(l)+'")'));p||(x.style.removeProperty("--x-organic-divider-d"),x.style.removeProperty("--x-organic-divider-d-alt"));y+=1}else break;m.style.setProperty("height",
7
+ h);$APP.n(g)?a.setAttribute("data-flip",""):a.removeAttribute("data-flip");$APP.n(b)?a.setAttribute("data-mirror",""):a.removeAttribute("data-mirror");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation")},SU=function(a){if(!$APP.n($APP.k(a,"__xOrganicDividerInit"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElementNS("http://www.w3.org/2000/svg","svg");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;line-height:0;font-size:0;overflow:hidden;--x-organic-divider-color:var(--x-color-primary,#6366f1);--x-organic-divider-color-1:color-mix(in srgb,var(--x-organic-divider-color) 15%,transparent);--x-organic-divider-color-2:color-mix(in srgb,var(--x-organic-divider-color) 25%,transparent);--x-organic-divider-color-3:color-mix(in srgb,var(--x-organic-divider-color) 40%,transparent);--x-organic-divider-color-4:color-mix(in srgb,var(--x-organic-divider-color) 60%,transparent);--x-organic-divider-color-5:color-mix(in srgb,var(--x-organic-divider-color) 85%,transparent);--x-organic-divider-height:120px;--x-organic-divider-animate-duration:6s;--x-organic-divider-animate-timing:ease-in-out;}@media (prefers-color-scheme:dark){:host{--x-organic-divider-color:var(--x-color-primary,#818cf8);}}[part\x3dbase]{width:100%;position:relative;overflow:hidden;}[part\x3dbase] svg{display:block;width:100%;height:100%;}:host([data-flip]) [part\x3dbase]{transform:scaleY(-1);}:host([data-mirror]) [part\x3dbase]{transform:scaleX(-1);}:host([data-flip][data-mirror]) [part\x3dbase]{transform:scaleX(-1) scaleY(-1);}@keyframes x-organic-divider-drift{0%{transform:translateX(0);}100%{transform:translateX(-33.333%);}}:host([data-animation\x3ddrift]) [part\x3dbase] svg{width:150%;animation:x-organic-divider-drift var(--x-organic-divider-animate-duration) linear infinite;}@keyframes x-organic-divider-morph{0%,100%{d:var(--x-organic-divider-d);}50%{d:var(--x-organic-divider-d-alt);}}:host([data-animation\x3dmorph]) [part\x3dbase] path{animation:x-organic-divider-morph var(--x-organic-divider-animate-duration) var(--x-organic-divider-animate-timing) infinite;}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dbase] svg,:host([data-animation]) [part\x3dbase] path{animation:none;}}";
8
+ d.setAttribute("part","base");e.setAttribute("xmlns","http://www.w3.org/2000/svg");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.setAttribute("role","presentation");a.setAttribute("aria-hidden","true");a.__xOrganicDividerBase=d;a.__xOrganicDividerSvg=e;a.__xOrganicDividerPaths=[];a.__xOrganicDividerInit=!0}RU(a);return null},TU=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xOrganicDividerInit"))&&RU(a);return null},
9
+ UU=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"wave"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"layers",{get:function(){var b=this.getAttribute("layers");return $APP.n(b)?b:"1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("layers",b):this.removeAttribute("layers")},enumerable:!0,
10
+ configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:"120px"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0});Object.defineProperty(a,"flip",{get:function(){return this.hasAttribute("flip")},set:function(b){return $APP.n(b)?this.setAttribute("flip",""):this.removeAttribute("flip")},enumerable:!0,configurable:!0});Object.defineProperty(a,
11
+ "mirror",{get:function(){return this.hasAttribute("mirror")},set:function(b){return $APP.n(b)?this.setAttribute("mirror",""):this.removeAttribute("mirror")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},
12
+ set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0})},WU=function(){return $APP.Lg("x-organic-divider",new $APP.Q(null,4,[$APP.Cg,VU,$APP.Dg,SU,$APP.Fg,TU,$APP.Jg,UU],null))},KU=/[^MmLlHhVvCcSsQqTtAaZz0-9\s,.\-+eE]/,IU=new $APP.K(null,"flip","flip",2033871302),PU=new $APP.K(null,"transforms","transforms",793344554),FU=new $APP.K(null,"x-offset","x-offset",-1499732449),NU=new $APP.K(null,"path-alt","path-alt",
13
+ 1724994068),GU=new $APP.K(null,"y-offset","y-offset",-1716542),QU=new $APP.K(null,"drift-d","drift-d",-1241526977),JU=new $APP.K(null,"mirror","mirror",1914600218);var VU="shape layers height flip mirror animation path".split(" "),LU=new $APP.R(null,new $APP.Q(null,3,["none",null,"drift",null,"morph",null],null),null),DU=new $APP.R(null,new $APP.Q(null,8,["drip",null,"cloud",null,"scallop",null,"waves",null,"mountain",null,"slant",null,"blob-edge",null,"wave",null],null),null),MU=new $APP.Q(null,8,["wave",new $APP.Q(null,2,[$APP.ql,"M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 L1200,120 L0,120 Z",NU,"M0,45 C200,85 400,15 600,55 C800,90 1000,10 1200,50 L1200,120 L0,120 Z"],
14
+ null),"waves",new $APP.Q(null,2,[$APP.ql,"M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 L1200,120 L0,120 Z",NU,"M0,55 C150,15 300,85 450,50 C600,10 750,80 900,35 C1050,5 1150,75 1200,40 L1200,120 L0,120 Z"],null),"blob-edge",new $APP.Q(null,2,[$APP.ql,"M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 L1200,120 L0,120 Z",NU,"M0,40 C80,65 160,25 240,60 C320,80 400,20 500,45 C600,70 680,15 780,55 C880,75 960,10 1060,35 C1120,55 1180,30 1200,55 L1200,120 L0,120 Z"],
15
+ null),"mountain",new $APP.Q(null,2,[$APP.ql,"M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1200,60 L1200,120 L0,120 Z",NU,"M0,80 C100,80 200,45 350,45 C500,45 450,75 600,75 C750,75 700,30 850,30 C1000,30 950,70 1100,70 C1150,70 1200,50 1200,50 L1200,120 L0,120 Z"],null),"drip",new $APP.Q(null,2,[$APP.ql,"M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 L1200,120 L0,120 Z",
16
+ NU,"M0,20 C50,20 100,20 170,20 C195,20 205,55 220,72 C235,90 245,90 260,72 C275,55 285,20 310,20 L470,20 C495,20 505,45 520,62 C535,80 545,80 560,62 C575,45 585,20 610,20 L820,20 C845,20 855,65 870,85 C885,105 895,105 910,85 C925,65 935,20 960,20 L1200,20 L1200,120 L0,120 Z"],null),"slant",new $APP.Q(null,2,[$APP.ql,"M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 L1200,120 L0,120 Z",NU,"M0,80 C300,70 600,50 900,30 C1000,20 1100,10 1200,20 L1200,120 L0,120 Z"],null),"scallop",new $APP.Q(null,2,
17
+ [$APP.ql,"M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 L1200,120 L0,120 Z",NU,"M0,50 Q75,110 150,50 Q225,-10 300,50 Q375,110 450,50 Q525,-10 600,50 Q675,110 750,50 Q825,-10 900,50 Q975,110 1050,50 Q1125,-10 1200,50 L1200,120 L0,120 Z"],null),"cloud",new $APP.Q(null,2,[$APP.ql,"M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 L1200,120 L0,120 Z",
18
+ NU,"M0,70 C50,70 80,50 140,50 C180,50 200,70 220,70 C240,70 260,30 320,30 C380,30 400,60 440,60 C480,60 500,20 560,20 C620,20 640,50 700,50 C760,50 780,35 840,35 C900,35 920,65 960,65 C1000,65 1040,40 1100,40 C1140,40 1180,70 1200,70 L1200,120 L0,120 Z"],null)],null),OU=new $APP.Q(null,8,"wave;M0,60 C200,20 400,100 600,60 C800,20 1000,100 1200,60 C1400,20 1600,100 1800,60 L1800,120 L0,120 Z;waves;M0,40 C150,80 300,0 450,40 C600,80 750,10 900,50 C1050,90 1150,30 1200,50 C1350,80 1500,0 1650,40 C1800,80 1800,50 1800,50 L1800,120 L0,120 Z;blob-edge;M0,50 C80,30 160,70 240,45 C320,20 400,80 500,55 C600,30 680,75 780,40 C880,5 960,65 1060,50 C1120,40 1180,60 1200,45 C1280,30 1360,70 1440,45 C1520,20 1600,80 1700,55 C1800,30 1800,50 1800,50 L1800,120 L0,120 Z;mountain;M0,90 C100,90 200,30 350,30 C500,30 450,85 600,85 C750,85 700,15 850,15 C1000,15 950,80 1100,80 C1150,80 1200,60 1300,60 C1400,60 1400,30 1500,30 C1600,30 1550,80 1700,80 C1750,80 1800,60 1800,60 L1800,120 L0,120 Z;drip;M0,20 C50,20 100,20 150,20 C175,20 185,60 200,80 C215,100 225,100 240,80 C255,60 265,20 290,20 L450,20 C475,20 485,50 500,70 C515,90 525,90 540,70 C555,50 565,20 590,20 L800,20 C825,20 835,70 850,90 C865,110 875,110 890,90 C905,70 915,20 940,20 L1200,20 C1225,20 1235,60 1250,80 C1265,100 1275,100 1290,80 C1305,60 1315,20 1340,20 L1500,20 C1525,20 1535,50 1550,70 C1565,90 1575,90 1590,70 C1605,50 1615,20 1640,20 L1800,20 L1800,120 L0,120 Z;slant;M0,100 C300,90 600,30 900,10 C1000,5 1100,2 1200,0 C1300,2 1500,90 1800,100 L1800,120 L0,120 Z;scallop;M0,60 Q75,0 150,60 Q225,120 300,60 Q375,0 450,60 Q525,120 600,60 Q675,0 750,60 Q825,120 900,60 Q975,0 1050,60 Q1125,120 1200,60 Q1275,0 1350,60 Q1425,120 1500,60 Q1575,0 1650,60 Q1725,120 1800,60 L1800,120 L0,120 Z;cloud;M0,80 C50,80 80,40 140,40 C180,40 200,60 220,60 C240,60 260,20 320,20 C380,20 400,50 440,50 C480,50 500,10 560,10 C620,10 640,40 700,40 C760,40 780,25 840,25 C900,25 920,55 960,55 C1000,55 1040,30 1100,30 C1140,30 1180,60 1200,60 C1240,60 1260,20 1320,20 C1380,20 1400,50 1440,50 C1480,50 1500,10 1560,10 C1620,10 1640,40 1700,40 C1760,40 1780,60 1800,60 L1800,120 L0,120 Z".split(";"),
19
+ null);$APP.ha("baredom.exports.x_organic_divider.init",WU);export const init=WU;
@@ -1,40 +1,39 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var B4=function(a){return typeof a==="string"&&(a=a.trim(),$APP.N(a,""))?(a=parseFloat(a),$APP.n(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},D4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(C4,a)?a:"vine"},E4=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},G4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(F4,a)?a:"normal"},H4=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
3
- "number"&&$APP.r(isNaN(a))&&a>0?a:42):42},I4=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},J4=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},K4=function(a){a=(typeof a==="number"&&$APP.r(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},L4=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},Q4=function(a,b){var c=(a+b)*M4,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*N4,g=a-(d-e),h=b-(c-e),
4
- l=g>h?1:0,m=g>h?0:1,p=g+-l-N4,q=h+-m-N4,v=g+-1-2*N4,x=h+-1-2*N4,y=d&255,A=c&255,C=.5-g*g-h*h,E=.5-p*p-q*q,H=.5-v*v-x*x;return 70*((C<0?0:function(){var G=C*C,J=O4[P4[y+P4[A&255]&255]&11];return G*G*(J[0]*g+J[1]*h)}())+(E<0?0:function(){var G=E*E,J=O4[P4[y+l+P4[A+m&255]&255]&11];return G*G*(J[0]*p+J[1]*q)}())+(H<0?0:function(){var G=H*H,J=O4[P4[y+1+P4[A+1&255]&255]&11];return G*G*(J[0]*v+J[1]*x)}()))},R4=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return Q4(d+b,e+c)}},S4=function(a,b,
5
- c){var d=[],e=[];c=K4(c);for(var g=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){switch(a.charAt(m)){case "F":var p=h[0],q=h[1],v=h[2],x=h[3],y=g[0],A=38*Math.pow(.7,x)*(.8+.4*L4(c)),C=function(){var H=y*.3;var G=x*.5;H=b.i?b.i(H,G):b.call(null,H,G);return v+.15*H}(),E=p+A*Math.cos(C);A=q+A*Math.sin(C);d.push({x1:p,y1:q,x2:E,y2:A,depth:x,index:y});h[0]=E;h[1]=A;g[0]=y+1;break;case "+":p=function(){var H=g[0]*.2;return b.i?b.i(H,100):b.call(null,H,100)}();h[2]-=.436+.1*p;break;case "-":p=function(){var H=
6
- g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var Q=$APP.k(G,"x2")-20;G=$APP.k(G,"y2")-100;return J*J+H*H-(Q*Q+G*G)});return[d,d.length]},T4=function(a,b,c,d){a=""+$APP.T.g(a.toFixed(1))+","+$APP.T.g(b.toFixed(1));c=""+$APP.T.g(c.toFixed(1))+","+$APP.T.g(d.toFixed(1));
7
- return $APP.Rc(a,c)<0?""+$APP.T.g(a)+"-"+$APP.T.g(c):""+$APP.T.g(c)+"-"+$APP.T.g(a)},V4=function(a,b){b=$APP.Bc(U4,b,25);var c=K4(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var l=Math.sqrt(17E4),m=-2;;)if(m<g){for(var p=m*d,q=$APP.Ud(m)?0:e/2,v=-2;;)if(v<h){var x=v*e+q;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+L4(c)*.3*l;a.push({cx:p,cy:x,dist:y,key:A})}v+=1}else break;m+=1}else break;a.sort(function(H,G){return $APP.k(H,
8
- "key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){q=a[h];m=$APP.k(q,"cx");p=$APP.k(q,"cy");q=Math.min(2,Math.floor($APP.k(q,"dist")*3/(l+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var C=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=T4(x,y,A,C);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:C,depth:q,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},W4=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
9
- b*d,b]},X4=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},d5=function(a){a=new $APP.R(null,7,[$APP.fk,a.getAttribute("progress"),$APP.tl,a.getAttribute("variant"),$APP.fn,a.getAttribute("color"),Y4,a.getAttribute("bloom"),Z4,a.getAttribute("density"),$4,a.getAttribute("seed"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.fk);a=$APP.D(b,$APP.tl);var d=$APP.D(b,$APP.fn),e=$APP.D(b,Y4),g=$APP.D(b,Z4),h=$APP.D(b,$4);b=$APP.D(b,$APP.pi);
10
- c=B4(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.Zl,$APP.Oj,$APP.Vg,a5,b5,$APP.Ym,$APP.U,$APP.Ml,$APP.kl,$APP.bm,c5],[l,J4(d),D4(a),E4(e),H4(h),l?"Loading...":""+$APP.T.g(Math.round(m))+"%",I4(b),m,p,c,G4(g)])},e5=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.N(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},g5=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,f5);d=function(){var y=
11
- $APP.k(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],l=0;;)if(l<b){var m=l<g?d[l]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[l],q=$APP.k(p,"y1"),v=$APP.k(p,"x2"),x=$APP.k(p,"y2");m.setAttribute("x1",""+$APP.T.g($APP.k(p,"x1")));m.setAttribute("y1",""+$APP.T.g(q));m.setAttribute("x2",""+$APP.T.g(v));m.setAttribute("y2",""+$APP.T.g(x));m.setAttribute("opacity",
12
- "0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},h5=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),g=$APP.B.i($APP.Vg.g(e),"honeycomb");e=$APP.Oj.g(e);var h=$APP.n(e)?e:"var("+$APP.T.g("--x-organic-progress-color-primary")+","+$APP.T.g(g?"#818cf8":"#22c55e")+")",l="var("+$APP.T.g("--x-organic-progress-color-secondary")+
13
- ","+$APP.T.g(g?"#a5b4fc":"#16a34a")+")";a=e5(a,g?1.5:3);if(g)for(g=0;;)if(g<d){e=b[g];var m=$APP.k(c[g],"depth");e.setAttribute("stroke-width",""+$APP.T.g(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return l;default:return l}}();e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity",function(){switch(m){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());g+=1}else break;else for(g=0;;)if(g<d){e=b[g];var p=$APP.k(c[g],"depth"),q=p===0?h:l;e.setAttribute("stroke-width",
14
- ""+$APP.T.g(Math.max(.5,a-p*.6)));e.style.stroke=q;e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity","1");g+=1}else break},i5=function(a){var b=$APP.k(a,"__xOrganicProgressSPos"),c=$APP.k(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.k(a,"__xOrganicProgressPV"),g=$APP.k(a,"__xOrganicProgressLines");if($APP.N(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<c){var h=g[e];$APP.n(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;g=$APP.k(a,"__xOrganicProgressNodes");
15
- c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},k5=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));d=$APP.D(d,j5);var e=$APP.k(a,"__xOrganicProgressModel"),g="var("+$APP.T.g("--x-organic-progress-bloom-color")+",#f472b6)";e=K4(b5.g(e)+7);for(var h=
16
- [],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),q=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*L4(e)-1,x=2*L4(e)-1;p.setAttribute("cx",""+$APP.T.g(q));p.setAttribute("cy",""+$APP.T.g(m));p.setAttribute("r","0");p.style.fill=g;p.setAttribute("opacity","0");p.setAttribute("class","bloom-petal");p.__dx=v;p.__dy=x;d.appendChild(p);h.push(p)}l+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=
17
- 0},l5=function(a,b){b=$APP.k(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,j5);c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",{bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.k(a,
18
- "__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.T.g(b*2.5));g.setAttribute("opacity",""+$APP.T.g(c));g.setAttribute("transform","translate("+$APP.T.g(h)+","+$APP.T.g(l)+")");e+=1}else break},n5=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ja(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
19
- !1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return m5(a)}))},o5=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.Zl.g(b))?50:$APP.Ml.g(b),e=Math.floor(d/100*c),g=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=g[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");g=function(){var m=$APP.k(a,"__xOrganicProgressNN");
20
- return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.kl.g(b);return $APP.n(m)?$APP.r($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},s5=function(a,b){var c=d5(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
21
- "progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.Zl.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.T.g(Math.round($APP.Ml.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Ym.g(c)));var d=$APP.U.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.I(p5,b)){b=$APP.B.i($APP.Vg.g(c),
22
- "honeycomb");d=$APP.Bc(q5,c5.g(c),3);if(b)c=V4(b5.g(c),c5.g(c));else{a:{for(var e=new $APP.R(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var l=[],m=g.length,p=0;;)if(p<m){var q=g.charAt(p),v=$APP.D(e,q);$APP.n(v)?l.push(v):l.push(q);p+=1}else break;h+=1;g=l.join("")}d=void 0}e=R4(b5.g(c));c=S4(d,e,b5.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;g5(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,f5);d=$APP.D(d,$APP.nj);$APP.n(c)&&
23
- ($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.r(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,r5);c=$APP.k(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.n(g.parentNode)&&b.removeChild(g),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;h5(a);a.__xOrganicProgressPV=-1;X4()&&o5(a)}},
24
- t5=function(a){Object.defineProperty(a,"progress",{get:function(){return B4(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return D4(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
25
- "color",{get:function(){return J4(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return E4(this.getAttribute("bloom"))},set:function(b){return $APP.n(b)?this.removeAttribute("bloom"):this.setAttribute("bloom","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"density",{get:function(){return G4(this.getAttribute("density"))},
26
- set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.T.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return H4(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){return I4(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):
27
- this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},w5=function(){var a=class extends HTMLElement{};a.observedAttributes=u5;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=d5(this);if(!$APP.n($APP.k(this,"__xOrganicProgressRefs"))){var b=this.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),g=document.createElementNS("http://www.w3.org/2000/svg",
28
- "g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg","g");c.textContent=v5;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.T.g("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");l.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg",
29
- "filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),q=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",""+$APP.T.g(2));p.setAttribute("result","blur");q.setAttribute("in","blur");q.setAttribute("type","matrix");
30
- q.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);m.appendChild(q);e.appendChild(m);m=new $APP.R(null,3,[$APP.jl,m,$APP.nj,p,$APP.Um,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Rf($APP.uc([m,new $APP.R(null,5,[$APP.Hi,b,$APP.mk,d,f5,g,r5,h,j5,l],null)]))}s5(this,null);h5(this);X4()?o5(this):n5(this);return null};a.prototype.disconnectedCallback=function(){var b=
31
- $APP.k(this,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),this.__xOrganicProgressRaf=null);if($APP.n($APP.k(this,"__xOrganicProgressBloom"))){b=$APP.M($APP.k(this,"__xOrganicProgressRefs"));b=$APP.D(b,j5);var c=$APP.k(this,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;this.__xOrganicProgressBEls=null;this.__xOrganicProgressBloom=!1}return null};a.prototype.attributeChangedCallback=function(b,
32
- c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicProgressRefs"))&&(s5(this,b),$APP.I(p5,b)||h5(this));return null};t5(a.prototype);return a},x5=function(){$APP.n(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",w5());return null},r5=new $APP.K(null,"nodes-g","nodes-g",89420858),Z4=new $APP.K(null,"density-raw","density-raw",1719413082),f5=new $APP.K(null,"branches-g","branches-g",548989635),a5=new $APP.K(null,"bloom?","bloom?",-326837587),Y4=new $APP.K(null,"bloom-attr",
33
- "bloom-attr",-1778398039),c5=new $APP.K(null,"density","density",-1664155941),b5=new $APP.K(null,"seed","seed",68613327),$4=new $APP.K(null,"seed-raw","seed-raw",2146438207),j5=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var u5="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null),"x-organic-progress-bloom-end",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.bm,$APP.W],null),$APP.km,!1],null)]);
34
- var C4=new $APP.S(null,new $APP.R(null,2,["honeycomb",null,"vine",null],null),null),F4=new $APP.S(null,new $APP.R(null,3,["dense",null,"normal",null,"sparse",null],null),null),q5=new $APP.R(null,3,["sparse",2,"normal",3,"dense",4],null),P4=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
2
+ var O6=function(a){return typeof a==="string"&&(a=a.trim(),$APP.N(a,""))?(a=parseFloat(a),$APP.n(isNaN(a))?null:Math.min(100,Math.max(0,a))):null},Q6=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(P6,a)?a:"vine"},R6=function(a){return a==null?!0:$APP.N((""+$APP.S.g(a)).trim().toLowerCase(),"false")},T6=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(S6,a)?a:"normal"},U6=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
3
+ "number"&&$APP.q(isNaN(a))&&a>0?a:42):42},V6=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},W6=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},X6=function(a){a=(typeof a==="number"&&$APP.q(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},Y6=function(a){var b=a[0];b^=b<<13;b^=b>>>17;b=b^b<<5|0;a[0]=b;return Math.abs(b)/2147483647},c7=function(a,b){var c=(a+b)*Z6,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*$6,g=a-(d-e),h=b-(c-e),
4
+ l=g>h?1:0,m=g>h?0:1,p=g+-l-$6,r=h+-m-$6,v=g+-1-2*$6,x=h+-1-2*$6,y=d&255,A=c&255,C=.5-g*g-h*h,E=.5-p*p-r*r,H=.5-v*v-x*x;return 70*((C<0?0:function(){var G=C*C,J=a7[b7[y+b7[A&255]&255]&11];return G*G*(J[0]*g+J[1]*h)}())+(E<0?0:function(){var G=E*E,J=a7[b7[y+l+b7[A+m&255]&255]&11];return G*G*(J[0]*p+J[1]*r)}())+(H<0?0:function(){var G=H*H,J=a7[b7[y+1+b7[A+1&255]&255]&11];return G*G*(J[0]*v+J[1]*x)}()))},d7=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return c7(d+b,e+c)}},e7=function(a,b,
5
+ c){var d=[],e=[];c=X6(c);for(var g=[0],h=[20,100,0,0],l=a.length,m=0;;)if(m<l){switch(a.charAt(m)){case "F":var p=h[0],r=h[1],v=h[2],x=h[3],y=g[0],A=38*Math.pow(.7,x)*(.8+.4*Y6(c)),C=function(){var H=y*.3;var G=x*.5;H=b.i?b.i(H,G):b.call(null,H,G);return v+.15*H}(),E=p+A*Math.cos(C);A=r+A*Math.sin(C);d.push({x1:p,y1:r,x2:E,y2:A,depth:x,index:y});h[0]=E;h[1]=A;g[0]=y+1;break;case "+":p=function(){var H=g[0]*.2;return b.i?b.i(H,100):b.call(null,H,100)}();h[2]-=.436+.1*p;break;case "-":p=function(){var H=
6
+ g[0]*.2;return b.i?b.i(H,200):b.call(null,H,200)}();h[2]+=.436+.1*p;break;case "[":e.push([h[0],h[1],h[2],h[3]]);h[3]+=1;break;case "]":e.length>0&&(p=e.pop(),h[0]=p[0],h[1]=p[1],h[2]=p[2],h[3]=p[3])}m+=1}else break;d.sort(function(H,G){var J=$APP.k(H,"x2")-20;H=$APP.k(H,"y2")-100;var U=$APP.k(G,"x2")-20;G=$APP.k(G,"y2")-100;return J*J+H*H-(U*U+G*G)});return[d,d.length]},f7=function(a,b,c,d){a=""+$APP.S.g(a.toFixed(1))+","+$APP.S.g(b.toFixed(1));c=""+$APP.S.g(c.toFixed(1))+","+$APP.S.g(d.toFixed(1));
7
+ return $APP.Rc(a,c)<0?""+$APP.S.g(a)+"-"+$APP.S.g(c):""+$APP.S.g(c)+"-"+$APP.S.g(a)},h7=function(a,b){b=$APP.Bc(g7,b,25);var c=X6(a),d=1.5*b,e=Math.sqrt(3)*b,g=Math.ceil(800/d)+4,h=Math.ceil(200/e)+4;a=[];for(var l=Math.sqrt(17E4),m=-2;;)if(m<g){for(var p=m*d,r=$APP.Ud(m)?0:e/2,v=-2;;)if(v<h){var x=v*e+r;if(p>0-b&&p<800+b&&x>0-b&&x<200+b){var y=p-400,A=x-100;y=Math.sqrt(y*y+A*A);A=y*.7+Y6(c)*.3*l;a.push({cx:p,cy:x,dist:y,key:A})}v+=1}else break;m+=1}else break;a.sort(function(H,G){return $APP.k(H,
8
+ "key")-$APP.k(G,"key")});c={};d=[];e=[0];g=a.length;for(h=0;;)if(h<g){r=a[h];m=$APP.k(r,"cx");p=$APP.k(r,"cy");r=Math.min(2,Math.floor($APP.k(r,"dist")*3/(l+.001)));for(v=0;;)if(v<6){y=Math.PI/3*v;var C=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(C);C=p+b*Math.sin(C);var E=f7(x,y,A,C);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:C,depth:r,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},i7=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
9
+ b*d,b]},j7=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},q7=function(a){a=new $APP.Q(null,7,[$APP.xk,a.getAttribute("progress"),$APP.Ml,a.getAttribute("variant"),$APP.zn,a.getAttribute("color"),k7,a.getAttribute("bloom"),l7,a.getAttribute("density"),m7,a.getAttribute("seed"),$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.xk);a=$APP.D(b,$APP.Ml);var d=$APP.D(b,$APP.zn),e=$APP.D(b,k7),g=$APP.D(b,l7),h=$APP.D(b,m7);b=$APP.D(b,$APP.Hi);
10
+ c=O6(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.rm,$APP.jk,$APP.lh,n7,o7,$APP.rn,$APP.T,$APP.em,$APP.Dl,$APP.um,p7],[l,W6(d),Q6(a),R6(e),U6(h),l?"Loading...":""+$APP.S.g(Math.round(m))+"%",V6(b),m,p,c,T6(g)])},r7=function(a,b){a=window.getComputedStyle(a).getPropertyValue("--x-organic-progress-branch-width").trim();return $APP.N(a,"")?(a=parseFloat(a),$APP.n(isNaN(a))?b:a):b},t7=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,s7);d=function(){var y=
11
+ $APP.k(a,"__xOrganicProgressLines");return $APP.n(y)?y:[]}();for(var g=d.length,h=[],l=0;;)if(l<b){var m=l<g?d[l]:function(){var y=document.createElementNS("http://www.w3.org/2000/svg","line");y.setAttribute("stroke-linecap","round");e.appendChild(y);return y}(),p=c[l],r=$APP.k(p,"y1"),v=$APP.k(p,"x2"),x=$APP.k(p,"y2");m.setAttribute("x1",""+$APP.S.g($APP.k(p,"x1")));m.setAttribute("y1",""+$APP.S.g(r));m.setAttribute("x2",""+$APP.S.g(v));m.setAttribute("y2",""+$APP.S.g(x));m.setAttribute("opacity",
12
+ "0");h.push(m);l+=1}else break;for(;;)if(b<g)e.removeChild(d[b]),b+=1;else break;a.__xOrganicProgressLines=h;a.__xOrganicProgressPV=-1},u7=function(a){var b=$APP.k(a,"__xOrganicProgressLines"),c=$APP.k(a,"__xOrganicProgressSegs"),d=$APP.k(a,"__xOrganicProgressSegN"),e=$APP.k(a,"__xOrganicProgressModel"),g=$APP.B.i($APP.lh.g(e),"honeycomb");e=$APP.jk.g(e);var h=$APP.n(e)?e:"var("+$APP.S.g("--x-organic-progress-color-primary")+","+$APP.S.g(g?"#818cf8":"#22c55e")+")",l="var("+$APP.S.g("--x-organic-progress-color-secondary")+
13
+ ","+$APP.S.g(g?"#a5b4fc":"#16a34a")+")";a=r7(a,g?1.5:3);if(g)for(g=0;;)if(g<d){e=b[g];var m=$APP.k(c[g],"depth");e.setAttribute("stroke-width",""+$APP.S.g(a));e.style.stroke=function(){switch(m){case 0:return h;case 1:return l;default:return l}}();e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity",function(){switch(m){case 0:return"0.9";case 1:return"0.7";default:return"0.5"}}());g+=1}else break;else for(g=0;;)if(g<d){e=b[g];var p=$APP.k(c[g],"depth"),r=p===0?h:l;e.setAttribute("stroke-width",
14
+ ""+$APP.S.g(Math.max(.5,a-p*.6)));e.style.stroke=r;e.setAttribute("stroke-linecap","round");e.setAttribute("stroke-opacity","1");g+=1}else break},v7=function(a){var b=$APP.k(a,"__xOrganicProgressSPos"),c=$APP.k(a,"__xOrganicProgressSegN"),d=Math.floor(b/100*c),e=$APP.k(a,"__xOrganicProgressPV"),g=$APP.k(a,"__xOrganicProgressLines");if($APP.N(d,e)){c=Math.max(d,e<0?c:e);for(e=Math.min(d,e<0?0:e);;)if(e<c){var h=g[e];$APP.n(h)&&h.setAttribute("opacity",e<d?"1":"0");e+=1}else break;g=$APP.k(a,"__xOrganicProgressNodes");
15
+ c=$APP.k(a,"__xOrganicProgressNN");c=$APP.n(c)?c:0;if($APP.n($APP.n(g)?c>0:g))for(b=Math.floor(b/100*c),e=0;;)if(e<c)h=g[e],$APP.n(h)&&h.setAttribute("opacity",e<b?"1":"0"),e+=1;else break;a.__xOrganicProgressPV=d}},x7=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));d=$APP.D(d,w7);var e=$APP.k(a,"__xOrganicProgressModel"),g="var("+$APP.S.g("--x-organic-progress-bloom-color")+",#f472b6)";e=X6(o7.g(e)+7);for(var h=
16
+ [],l=0;;)if(l<c){var m=b[l];if($APP.k(m,"depth")>=2){var p=document.createElementNS("http://www.w3.org/2000/svg","circle"),r=$APP.k(m,"x2");m=$APP.k(m,"y2");var v=2*Y6(e)-1,x=2*Y6(e)-1;p.setAttribute("cx",""+$APP.S.g(r));p.setAttribute("cy",""+$APP.S.g(m));p.setAttribute("r","0");p.style.fill=g;p.setAttribute("opacity","0");p.setAttribute("class","bloom-petal");p.__dx=v;p.__dy=x;d.appendChild(p);h.push(p)}l+=1}else break;a.__xOrganicProgressBEls=h;a.__xOrganicProgressBloom=!0;a.__xOrganicProgressBT=
17
+ 0},y7=function(a,b){b=$APP.k(a,"__xOrganicProgressBT")+b;var c=b/1.5;a.__xOrganicProgressBT=b;if(c>1){b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,w7);c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1;a.dispatchEvent(new CustomEvent("x-organic-progress-bloom-end",{bubbles:!0,composed:!0,detail:{progress:100}}))}else for(a=$APP.k(a,
18
+ "__xOrganicProgressBEls"),b=1-Math.min(c,1),b=4*(1-b*b*b),c=Math.max(0,1-c*c),d=a.length,e=0;;)if(e<d){g=a[e];var h=$APP.k(g,"__dx")*b*8,l=$APP.k(g,"__dy")*b*8;g.setAttribute("r",""+$APP.S.g(b*2.5));g.setAttribute("opacity",""+$APP.S.g(c));g.setAttribute("transform","translate("+$APP.S.g(h)+","+$APP.S.g(l)+")");e+=1}else break},A7=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ja(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
19
+ !1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ja(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return z7(a)}))},B7=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.rm.g(b))?50:$APP.em.g(b),e=Math.floor(d/100*c),g=$APP.k(a,"__xOrganicProgressLines"),h=0;;)if(h<c){var l=g[h];$APP.n(l)&&l.setAttribute("opacity",h<e?"1":"0");h+=1}else break;c=$APP.k(a,"__xOrganicProgressNodes");g=function(){var m=$APP.k(a,"__xOrganicProgressNN");
20
+ return $APP.n(m)?m:0}();if($APP.n($APP.n(c)?g>0:c))for(d=Math.floor(d/100*g),h=0;;)if(h<g)l=c[h],$APP.n(l)&&l.setAttribute("opacity",h<d?"1":"0"),h+=1;else break;a.__xOrganicProgressPV=e;$APP.n(function(){var m=$APP.Dl.g(b);return $APP.n(m)?$APP.q($APP.k(a,"__xOrganicProgressDone")):m}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})))},F7=function(a,b){var c=q7(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
21
+ "progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.rm.g(c))?(a.removeAttribute("aria-valuenow"),a.setAttribute("aria-busy","true"),a.setAttribute("aria-valuetext","Loading...")):(a.setAttribute("aria-valuenow",""+$APP.S.g(Math.round($APP.em.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.rn.g(c)));var d=$APP.T.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.I(C7,b)){b=$APP.B.i($APP.lh.g(c),
22
+ "honeycomb");d=$APP.Bc(D7,p7.g(c),3);if(b)c=h7(o7.g(c),p7.g(c));else{a:{for(var e=new $APP.Q(null,1,["F","F[+F]F[-F]F"],null),g="F",h=0;;){if(h>=d){d=g;break a}for(var l=[],m=g.length,p=0;;)if(p<m){var r=g.charAt(p),v=$APP.D(e,r);$APP.n(v)?l.push(v):l.push(r);p+=1}else break;h+=1;g=l.join("")}d=void 0}e=d7(o7.g(c));c=e7(d,e,o7.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;t7(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,s7);d=$APP.D(d,$APP.Fj);$APP.n(c)&&
23
+ ($APP.n(b)?c.removeAttribute("filter"):c.setAttribute("filter","url(#x-organic-progress-gooey)"));$APP.n($APP.n(d)?$APP.q(b):d)&&d.setAttribute("stdDeviation","2");b=$APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,E7);c=$APP.k(a,"__xOrganicProgressNodes");if($APP.n($APP.n(b)?c:b))for(d=c.length,e=0;;)if(e<d)g=c[e],$APP.n(g.parentNode)&&b.removeChild(g),e+=1;else break;a.__xOrganicProgressNodes=null;a.__xOrganicProgressND=null;a.__xOrganicProgressNN=0;u7(a);a.__xOrganicProgressPV=-1;j7()&&B7(a)}},
24
+ G7=function(a){Object.defineProperty(a,"progress",{get:function(){return O6(this.getAttribute("progress"))},set:function(b){return b==null?this.removeAttribute("progress"):this.setAttribute("progress",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"variant",{get:function(){return Q6(this.getAttribute("variant"))},set:function(b){return b==null?this.removeAttribute("variant"):this.setAttribute("variant",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
25
+ "color",{get:function(){return W6(this.getAttribute("color"))},set:function(b){return b==null?this.removeAttribute("color"):this.setAttribute("color",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"bloom",{get:function(){return R6(this.getAttribute("bloom"))},set:function(b){return $APP.n(b)?this.removeAttribute("bloom"):this.setAttribute("bloom","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"density",{get:function(){return T6(this.getAttribute("density"))},
26
+ set:function(b){return b==null?this.removeAttribute("density"):this.setAttribute("density",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"seed",{get:function(){return U6(this.getAttribute("seed"))},set:function(b){return b==null?this.removeAttribute("seed"):this.setAttribute("seed",""+$APP.S.g(b|0))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"label",{get:function(){return V6(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):
27
+ this.setAttribute("label",""+$APP.S.g(b))},enumerable:!0,configurable:!0})},I7=function(a){var b=q7(a);a.__xOrganicProgressModel=b;if(!$APP.n($APP.k(a,"__xOrganicProgressRefs"))){b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElementNS("http://www.w3.org/2000/svg","svg"),e=document.createElementNS("http://www.w3.org/2000/svg","defs"),g=document.createElementNS("http://www.w3.org/2000/svg","g"),h=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg",
28
+ "g");c.textContent=H7;d.setAttribute("part","svg");d.setAttribute("viewBox","0 0 800 200");d.setAttribute("preserveAspectRatio","xMidYMid slice");d.setAttribute("aria-hidden","true");g.setAttribute("part","branches");g.setAttribute("filter","url(#"+$APP.S.g("x-organic-progress-gooey")+")");h.setAttribute("part","nodes");l.setAttribute("part","blooms");var m=document.createElementNS("http://www.w3.org/2000/svg","filter");var p=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),
29
+ r=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id","x-organic-progress-gooey");m.setAttribute("x","-10%");m.setAttribute("y","-10%");m.setAttribute("width","120%");m.setAttribute("height","120%");p.setAttribute("in","SourceGraphic");p.setAttribute("stdDeviation",""+$APP.S.g(2));p.setAttribute("result","blur");r.setAttribute("in","blur");r.setAttribute("type","matrix");r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -7");m.appendChild(p);
30
+ m.appendChild(r);e.appendChild(m);m=new $APP.Q(null,3,[$APP.Cl,m,$APP.Fj,p,$APP.nn,r],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);b=$APP.Rf($APP.uc([m,new $APP.Q(null,5,[$APP.Zi,b,$APP.Ek,d,s7,g,E7,h,w7,l],null)]));a.__xOrganicProgressRefs=b}F7(a,null);u7(a);j7()?B7(a):A7(a);return null},J7=function(a){var b=$APP.k(a,"__xOrganicProgressRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xOrganicProgressRaf=null);if($APP.n($APP.k(a,"__xOrganicProgressBloom"))){b=
31
+ $APP.M($APP.k(a,"__xOrganicProgressRefs"));b=$APP.D(b,w7);var c=$APP.k(a,"__xOrganicProgressBEls");if($APP.n(c))for(var d=c.length,e=0;;)if(e<d){var g=c[e];$APP.n(g.parentNode)&&b.removeChild(g);e+=1}else break;a.__xOrganicProgressBEls=null;a.__xOrganicProgressBloom=!1}return null},K7=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xOrganicProgressRefs"))&&(F7(a,b),$APP.I(C7,b)||u7(a));return null},M7=function(){return $APP.Lg("x-organic-progress",new $APP.Q(null,5,[$APP.Cg,L7,$APP.Dg,I7,$APP.Eg,
32
+ J7,$APP.Fg,K7,$APP.Jg,G7],null))},E7=new $APP.K(null,"nodes-g","nodes-g",89420858),l7=new $APP.K(null,"density-raw","density-raw",1719413082),s7=new $APP.K(null,"branches-g","branches-g",548989635),n7=new $APP.K(null,"bloom?","bloom?",-326837587),k7=new $APP.K(null,"bloom-attr","bloom-attr",-1778398039),p7=new $APP.K(null,"density","density",-1664155941),o7=new $APP.K(null,"seed","seed",68613327),m7=new $APP.K(null,"seed-raw","seed-raw",2146438207),w7=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var L7="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null),"x-organic-progress-bloom-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.um,$APP.W],null),$APP.Km,!1],null)]);
33
+ var P6=new $APP.R(null,new $APP.Q(null,2,["honeycomb",null,"vine",null],null),null),S6=new $APP.R(null,new $APP.Q(null,3,["dense",null,"normal",null,"sparse",null],null),null),D7=new $APP.Q(null,3,["sparse",2,"normal",3,"dense",4],null),b7=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,
35
34
  83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,
36
- 107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],O4=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],M4=(Math.sqrt(3)-1)/2,N4=(3-Math.sqrt(3))/6,U4=new $APP.R(null,3,["sparse",40,"normal",25,"dense",16],null);var v5=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.T.g("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.T.g("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.T.g("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.T.g("--x-organic-progress-bg")+":transparent;"+$APP.T.g("--x-organic-progress-branch-width")+":3;"+$APP.T.g("--x-organic-progress-glow")+":2;"+$APP.T.g("--x-organic-progress-opacity")+
37
- ":1;background:var("+$APP.T.g("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.T.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.T.g("--x-organic-progress-color-primary")+",#22c55e);}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:var(--x-color-success,#4ade80);--x-organic-progress-color-secondary:var(--x-color-success,#22c55e);--x-organic-progress-bloom-color:var(--x-color-danger,#f9a8d4);}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",
38
- m5=function m5(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.Zl.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.Ml.g(c);d=W4($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];i5(a);$APP.n(function(){var g=
39
- $APP.kl.g(c);return $APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressDone")):g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(a5.g(c))&&k5(a));$APP.n(function(){var g=$APP.r($APP.kl.g(c));return g?(g=$APP.k(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.r($APP.k(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&l5(a,e);$APP.ja(a,"__xOrganicProgressRaf",
40
- requestAnimationFrame(function(){return m5.g?m5.g(a):m5.call(null,a)}))}return null},p5=$APP.Uf(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",x5);export const init=x5;
35
+ 107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],a7=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],Z6=(Math.sqrt(3)-1)/2,$6=(3-Math.sqrt(3))/6,g7=new $APP.Q(null,3,["sparse",40,"normal",25,"dense",16],null);var H7=":host{display:block;position:relative;min-height:60px;width:100%;overflow:hidden;"+$APP.S.g("--x-organic-progress-color-primary")+":var(--x-color-success,#22c55e);"+$APP.S.g("--x-organic-progress-color-secondary")+":var(--x-color-success,#16a34a);"+$APP.S.g("--x-organic-progress-bloom-color")+":var(--x-color-danger,#f472b6);"+$APP.S.g("--x-organic-progress-bg")+":transparent;"+$APP.S.g("--x-organic-progress-branch-width")+":3;"+$APP.S.g("--x-organic-progress-glow")+":2;"+$APP.S.g("--x-organic-progress-opacity")+
36
+ ":1;background:var("+$APP.S.g("--x-organic-progress-bg")+",transparent);opacity:var("+$APP.S.g("--x-organic-progress-opacity")+",1);}[part\x3dsvg]{display:block;width:100%;height:100%;}[part\x3dnodes] circle{fill:var("+$APP.S.g("--x-organic-progress-color-primary")+",#22c55e);}@media(prefers-color-scheme:dark){:host{--x-organic-progress-color-primary:var(--x-color-success,#4ade80);--x-organic-progress-color-secondary:var(--x-color-success,#22c55e);--x-organic-progress-bloom-color:var(--x-color-danger,#f9a8d4);}}@media(prefers-reduced-motion:reduce){[part\x3dsvg]{transition:none!important;}.bloom-petal{transition:none!important;animation:none!important;}}",
37
+ z7=function z7(a){if($APP.n(a.isConnected)){var c=$APP.k(a,"__xOrganicProgressModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xOrganicProgressLF"),100)/1E3;a.__xOrganicProgressLF=d;a.__xOrganicProgressTime=$APP.k(a,"__xOrganicProgressTime")+e;d=$APP.n($APP.rm.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.em.g(c);d=i7($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];v7(a);$APP.n(function(){var g=
38
+ $APP.Dl.g(c);return $APP.n(g)?$APP.q($APP.k(a,"__xOrganicProgressDone")):g}())&&(a.__xOrganicProgressDone=!0,a.dispatchEvent(new CustomEvent("x-organic-progress-complete",{bubbles:!0,composed:!0,detail:{progress:100}})),$APP.n(n7.g(c))&&x7(a));$APP.n(function(){var g=$APP.q($APP.Dl.g(c));return g?(g=$APP.k(a,"__xOrganicProgressDone"),$APP.n(g)?$APP.q($APP.k(a,"__xOrganicProgressBloom")):g):g}())&&(a.__xOrganicProgressDone=!1);$APP.n($APP.k(a,"__xOrganicProgressBloom"))&&y7(a,e);$APP.ja(a,"__xOrganicProgressRaf",
39
+ requestAnimationFrame(function(){return z7.g?z7.g(a):z7.call(null,a)}))}return null},C7=$APP.Uf(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",M7);export const init=M7;
@@ -1,15 +1,14 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var YL=function(a){return typeof a==="string"&&$APP.I(XL,a)?a:"blob-1"},ZL=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},$L=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
3
- d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},aM=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},fM=function(a){var b=new $APP.R(null,6,[$APP.kk,a.getAttribute("shape"),$APP.Yk,a.getAttribute("path"),$APP.Wg,a.getAttribute("animation"),
4
- $APP.xj,a.getAttribute("ratio"),$APP.Xg,a.getAttribute("width"),$APP.Yg,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.kk),e=$APP.D(c,$APP.Yk),g=$APP.D(c,$APP.Wg),h=$APP.D(c,$APP.xj);b=$APP.D(c,$APP.Xg);c=$APP.D(c,$APP.Yg);e=typeof e==="string"&&$APP.N("",e.trim())?e.trim():null;d=YL(d);var l=typeof g==="string"&&$APP.I(bM,g)?g:"none";g=e!=null?e:$APP.ie(cM,new $APP.O(null,2,5,$APP.P,[YL(d),dM],null));var m=e==null?$APP.ie(cM,new $APP.O(null,2,5,$APP.P,[YL(d),eM],null)):null;l=$APP.B.i(l,
5
- "morph")&&m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.R(null,8,[$APP.kk,d,$APP.Yk,e,dM,g,eM,m,$APP.Wg,l,$APP.xj,h,$APP.Xg,ZL(b),$APP.Yg,ZL(c)],null);g=$APP.M(b);b=$APP.D(g,dM);h=$APP.D(g,eM);c=$APP.D(g,$APP.Wg);e=$APP.D(g,$APP.xj);d=$APP.D(g,$APP.Xg);g=$APP.D(g,$APP.Yg);m=$APP.k(a,"__xOrganicShapeBase");l=$APP.k(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
6
- m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");aM(a,l)},gM=function(a){function b(){return aM(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||$L(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
7
- b);fM(a)},hM=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});
8
- Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,
9
- configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,
10
- configurable:!0})},jM=function(){var a=class extends HTMLElement{};a.observedAttributes=iM;a.prototype.connectedCallback=function(){gM(this);return null};a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xOrganicShapeSlot"),c=$APP.k(this,"__xOrganicShapeSlotHandler");return $APP.n($APP.n(b)?c:b)?b.removeEventListener("slotchange",c):null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xOrganicShapeInit"))&&fM(this);return null};hM(a.prototype);
11
- return a},kM=function(){$APP.n(customElements.get("x-organic-shape"))||customElements.define("x-organic-shape",jM());return null},dM=new $APP.K(null,"clip","clip",830998499),eM=new $APP.K(null,"clip-alt","clip-alt",-684562835);var iM="shape path animation ratio width height".split(" "),bM=new $APP.S(null,new $APP.R(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),XL=new $APP.S(null,new $APP.R(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),cM=new $APP.R(null,8,["blob-1",new $APP.R(null,2,[dM,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",eM,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
12
- null),"blob-2",new $APP.R(null,2,[dM,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",eM,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.R(null,2,[dM,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",eM,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.R(null,2,[dM,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
13
- eM,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.R(null,2,[dM,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",eM,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.R(null,2,[dM,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",eM,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
14
- null),"cloud",new $APP.R(null,2,[dM,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",eM,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.R(null,2,[dM,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
15
- eM,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ha("baredom.exports.x_organic_shape.init",kM);export const init=kM;
2
+ var pN=function(a){return typeof a==="string"&&$APP.I(oN,a)?a:"blob-1"},qN=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},rN=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:block;box-sizing:border-box;color-scheme:light dark;--x-organic-shape-fill:rgba(99,102,241,0.12);--x-organic-shape-stroke:transparent;--x-organic-shape-stroke-width:0;--x-organic-shape-opacity:1;--x-organic-shape-shadow:none;--x-organic-shape-animate-duration:8s;--x-organic-shape-animate-timing:ease-in-out;--x-organic-shape-animate-direction:normal;--x-organic-shape-animate-delay:0s;}@media (prefers-color-scheme:dark){:host{--x-organic-shape-fill:rgba(129,140,248,0.18);}}[part\x3dshape]{width:100%;height:100%;position:relative;overflow:hidden;background:var(--x-organic-shape-fill);outline:var(--x-organic-shape-stroke-width) solid var(--x-organic-shape-stroke);outline-offset:calc(-1 * var(--x-organic-shape-stroke-width));opacity:var(--x-organic-shape-opacity);filter:var(--x-organic-shape-shadow);display:flex;align-items:center;justify-content:center;transition:clip-path 0.3s ease,opacity 0.3s ease;}@keyframes x-organic-shape-morph{0%,100%{clip-path:var(--x-organic-shape-clip);}50%{clip-path:var(--x-organic-shape-clip-alt);}}@keyframes x-organic-shape-pulse{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}@keyframes x-organic-shape-float{0%,100%{transform:translateY(0);}50%{transform:translateY(-6%);}}@keyframes x-organic-shape-spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}:host([data-animation\x3dmorph]) [part\x3dshape]{animation:x-organic-shape-morph var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dpulse]) [part\x3dshape]{animation:x-organic-shape-pulse var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dfloat]) [part\x3dshape]{animation:x-organic-shape-float var(--x-organic-shape-animate-duration) var(--x-organic-shape-animate-timing) var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}:host([data-animation\x3dspin]) [part\x3dshape]{animation:x-organic-shape-spin var(--x-organic-shape-animate-duration) linear var(--x-organic-shape-animate-delay) infinite var(--x-organic-shape-animate-direction);}@media (prefers-reduced-motion:reduce){:host([data-animation]) [part\x3dshape]{animation:none;}}";
3
+ d.setAttribute("part","shape");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xOrganicShapeBase=d;a.__xOrganicShapeSlot=e;a.__xOrganicShapeInit=!0},sN=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},xN=function(a){var b=new $APP.Q(null,6,[$APP.Ck,a.getAttribute("shape"),$APP.ql,a.getAttribute("path"),$APP.mh,a.getAttribute("animation"),
4
+ $APP.Pj,a.getAttribute("ratio"),$APP.nh,a.getAttribute("width"),$APP.oh,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Ck),e=$APP.D(c,$APP.ql),g=$APP.D(c,$APP.mh),h=$APP.D(c,$APP.Pj);b=$APP.D(c,$APP.nh);c=$APP.D(c,$APP.oh);e=typeof e==="string"&&$APP.N("",e.trim())?e.trim():null;d=pN(d);var l=typeof g==="string"&&$APP.I(tN,g)?g:"none";g=e!=null?e:$APP.he(uN,new $APP.O(null,2,5,$APP.P,[pN(d),vN],null));var m=e==null?$APP.he(uN,new $APP.O(null,2,5,$APP.P,[pN(d),wN],null)):null;l=$APP.B.i(l,
5
+ "morph")&&m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.Q(null,8,[$APP.Ck,d,$APP.ql,e,vN,g,wN,m,$APP.mh,l,$APP.Pj,h,$APP.nh,qN(b),$APP.oh,qN(c)],null);g=$APP.M(b);b=$APP.D(g,vN);h=$APP.D(g,wN);c=$APP.D(g,$APP.mh);e=$APP.D(g,$APP.Pj);d=$APP.D(g,$APP.nh);g=$APP.D(g,$APP.oh);m=$APP.k(a,"__xOrganicShapeBase");l=$APP.k(a,"__xOrganicShapeSlot");m.style.setProperty("--x-organic-shape-clip",b);$APP.n(h)?m.style.setProperty("--x-organic-shape-clip-alt",h):m.style.removeProperty("--x-organic-shape-clip-alt");
6
+ m.style.setProperty("clip-path",b);m.style.setProperty("aspect-ratio",e);$APP.n(d)?m.style.setProperty("width",d):m.style.removeProperty("width");$APP.n(g)?m.style.setProperty("height",g):m.style.removeProperty("height");$APP.N(c,"none")?a.setAttribute("data-animation",c):a.removeAttribute("data-animation");sN(a,l)},yN=function(a){function b(){return sN(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||rN(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
7
+ b);xN(a);return null},zN=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xOrganicShapeInit"))&&xN(a);return null},AN=function(a){Object.defineProperty(a,"shape",{get:function(){var b=this.getAttribute("shape");return $APP.n(b)?b:"blob-1"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("shape",b):this.removeAttribute("shape")},enumerable:!0,configurable:!0});Object.defineProperty(a,"path",{get:function(){return this.getAttribute("path")},set:function(b){return typeof b===
8
+ "string"&&$APP.N("",b)?this.setAttribute("path",b):this.removeAttribute("path")},enumerable:!0,configurable:!0});Object.defineProperty(a,"animation",{get:function(){var b=this.getAttribute("animation");return $APP.n(b)?b:"none"},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("animation",b):this.removeAttribute("animation")},enumerable:!0,configurable:!0});Object.defineProperty(a,"ratio",{get:function(){var b=this.getAttribute("ratio");return $APP.n(b)?b:"1/1"},set:function(b){return typeof b===
9
+ "string"&&$APP.N("",b)?this.setAttribute("ratio",b):this.removeAttribute("ratio")},enumerable:!0,configurable:!0});Object.defineProperty(a,"width",{get:function(){var b=this.getAttribute("width");return $APP.n(b)?b:""},set:function(b){return typeof b==="string"&&$APP.N("",b)?this.setAttribute("width",b):this.removeAttribute("width")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"height",{get:function(){var b=this.getAttribute("height");return $APP.n(b)?b:""},set:function(b){return typeof b===
10
+ "string"&&$APP.N("",b)?this.setAttribute("height",b):this.removeAttribute("height")},enumerable:!0,configurable:!0})},CN=function(){return $APP.Lg("x-organic-shape",new $APP.Q(null,4,[$APP.Cg,BN,$APP.Dg,yN,$APP.Fg,zN,$APP.Jg,AN],null))},vN=new $APP.K(null,"clip","clip",830998499),wN=new $APP.K(null,"clip-alt","clip-alt",-684562835);var BN="shape path animation ratio width height".split(" "),tN=new $APP.R(null,new $APP.Q(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),oN=new $APP.R(null,new $APP.Q(null,8,["cloud",null,"blob-3",null,"leaf",null,"pebble",null,"blob-1",null,"blob-2",null,"wave",null,"droplet",null],null),null),uN=new $APP.Q(null,8,["blob-1",new $APP.Q(null,2,[vN,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",wN,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
11
+ null),"blob-2",new $APP.Q(null,2,[vN,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",wN,"polygon(50% 5%, 85% 15%, 100% 45%, 90% 80%, 65% 95%, 35% 95%, 10% 80%, 0% 45%, 15% 15%)"],null),"blob-3",new $APP.Q(null,2,[vN,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",wN,"polygon(25% 5%, 75% 5%, 95% 25%, 100% 55%, 85% 85%, 65% 95%, 35% 95%, 15% 85%, 0% 55%, 5% 25%)"],null),"pebble",new $APP.Q(null,2,[vN,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
12
+ wN,"polygon(50% 5%, 75% 12%, 93% 32%, 96% 58%, 82% 85%, 52% 96%, 28% 90%, 8% 62%, 5% 38%, 25% 12%)"],null),"leaf",new $APP.Q(null,2,[vN,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",wN,"polygon(50% 3%, 78% 18%, 95% 42%, 88% 72%, 62% 95%, 50% 97%, 38% 95%, 12% 72%, 5% 42%, 22% 18%)"],null),"droplet",new $APP.Q(null,2,[vN,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",wN,"polygon(50% 5%, 70% 22%, 88% 48%, 92% 70%, 78% 90%, 50% 97%, 22% 90%, 8% 70%, 12% 48%, 30% 22%)"],
13
+ null),"cloud",new $APP.Q(null,2,[vN,"polygon(10% 60%, 0% 45%, 5% 30%, 18% 20%, 32% 15%, 45% 8%, 58% 12%, 72% 8%, 85% 18%, 95% 32%, 100% 50%, 95% 65%, 80% 75%, 55% 80%, 30% 78%, 15% 72%)",wN,"polygon(12% 58%, 2% 43%, 8% 28%, 20% 18%, 35% 12%, 48% 10%, 60% 14%, 75% 10%, 88% 20%, 97% 35%, 98% 52%, 92% 68%, 78% 78%, 52% 82%, 28% 80%, 13% 70%)"],null),"wave",new $APP.Q(null,2,[vN,"polygon(0% 35%, 15% 20%, 30% 30%, 50% 15%, 70% 28%, 85% 18%, 100% 30%, 100% 75%, 85% 85%, 70% 72%, 50% 85%, 30% 75%, 15% 82%, 0% 70%)",
14
+ wN,"polygon(0% 30%, 15% 25%, 30% 35%, 50% 20%, 70% 32%, 85% 22%, 100% 35%, 100% 70%, 85% 80%, 70% 68%, 50% 80%, 30% 70%, 15% 78%, 0% 65%)"],null)],null);$APP.ha("baredom.exports.x_organic_shape.init",CN);export const init=CN;
@@ -3,7 +3,8 @@
3
3
  export function init(): void;
4
4
 
5
5
  export interface XPaginationEventMap {
6
- ":page-change": CustomEvent<{ page: number }>;
6
+ "page-change-request": CustomEvent<{ page: number; previousPage: number }>;
7
+ "page-change": CustomEvent<{ page: number }>;
7
8
  }
8
9
 
9
10
  export interface XPagination extends HTMLElement {
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TO=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Xc($APP.za,$APP.Gh,0<b.length?new $APP.Ub(b.slice(0),0,null):null)},UO=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},ZO=function(a){var b=$APP.k(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
- var g=document.createElement("li");var h=document.createElement("button"),l=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");l.setAttribute("name","prev");l.textContent="Prev";h.appendChild(l);g.appendChild(h);g=new $APP.R(null,2,[VO,g,WO,h],null);h=document.createElement("li");l=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
- l.setAttribute("part","button button-next");l.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";l.appendChild(m);h.appendChild(l);h=new $APP.R(null,2,[VO,h,WO,l],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:var(--x-radius-sm,0.375rem);--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:var(--x-font-size-sm,0.875rem);--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}@media (pointer:coarse){[part~\x3d'button']{min-width:2.75rem;height:2.75rem;}}";
5
- d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(VO.g(g));e.appendChild(VO.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.R(null,6,[$APP.Bi,d,$APP.bl,e,XO,VO.g(g),$APP.hj,WO.g(g),YO,VO.g(h),$APP.Sh,WO.g(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},$O=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.T.g(a));e.setAttribute("part",
6
- "button button-page");e.setAttribute("aria-label","Page "+$APP.T.g(a));e.setAttribute("data-page",""+$APP.T.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.T.g(a);d.appendChild(e);return d},aP=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
- "…";a.appendChild(b);return a},kP=function(a){a=new $APP.R(null,7,[bP,a.getAttribute("page"),cP,a.getAttribute("total-pages"),dP,a.getAttribute("sibling-count"),eP,a.getAttribute("boundary-count"),$APP.Vl,a.getAttribute("size"),$APP.Nl,a.hasAttribute("disabled"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,bP),d=$APP.D(b,cP),e=$APP.D(b,dP),g=$APP.D(b,eP),h=$APP.D(b,$APP.Vl);a=$APP.D(b,$APP.Nl);b=$APP.D(b,$APP.pi);d=UO(d);c=$APP.oh.i(1,$APP.sh.i(UO(c),d));if(typeof e==="string"){e=
8
- parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),l=isFinite(g),l=$APP.n($APP.n(l)?g>=0:l)?g:1):l=1;g=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(fP,h)?h:"md";return new $APP.R(null,7,[gP,c,hP,d,iP,g,jP,e,$APP.Mh,h,$APP.Pj,$APP.F(a),$APP.U,$APP.n(b)?b:"Pagination"],null)},nP=function(a){var b=ZO(a),c=$APP.bl.g(b),d=$APP.Bi.g(b),e=$APP.hj.g(b),g=$APP.Sh.g(b),h=XO.g(b);b=YO.g(b);var l=kP(a),m=$APP.M(l),p=$APP.D(m,gP),
9
- q=$APP.D(m,hP),v=$APP.D(m,iP),x=$APP.D(m,jP),y=$APP.D(m,$APP.Mh);m=$APP.D(m,$APP.U);a:if(q<=0)q=$APP.fe;else{var A=$APP.sh.i(x,q);x=$APP.oh.i(q-x- -1,1);var C=$APP.oh.i(1,p-v);v=$APP.sh.i(q,p+v);q=$APP.We.i($APP.We.i($APP.We.i(TO(),$APP.dg(1,A+1)),$APP.dg(x,q+1)),$APP.dg(C,v+1));q=$APP.xe(q);C=$APP.fe;for(v=0;;){if(v>=$APP.z(q)){q=C;break a}A=$APP.pc(q,v);var E=x=v>0?$APP.pc(q,v-1):null;x=$APP.n($APP.n(E)?A>x+1:E)?$APP.ld.i(C,new $APP.R(null,1,[$APP.Z,lP],null)):C;A=$APP.ld.i(x,new $APP.R(null,2,
10
- [$APP.Z,gP,mP,A],null));v+=1;C=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.M(l);a=$APP.D(d,gP);d=$APP.D(d,$APP.Pj);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(l);e=$APP.D(d,gP);a=$APP.D(d,hP);d=$APP.D(d,$APP.Pj);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.t(q);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.B.i(lP,$APP.Z.g(d))?c.appendChild(aP()):
11
- c.appendChild($O(mP.g(d),$APP.B.i(mP.g(d),p),$APP.Pj.g(l))),a+=1;else if(g=$APP.t(g))h=g,$APP.Nc(h)?(g=$APP.yb(h),a=$APP.zb(h),h=g,e=$APP.z(g),g=a):(g=$APP.u(h),$APP.B.i(lP,$APP.Z.g(g))?c.appendChild(aP()):c.appendChild($O(mP.g(g),$APP.B.i(mP.g(g),p),$APP.Pj.g(l))),g=$APP.w(h),h=null,e=0),a=0;else break;c.appendChild(b)},oP=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},pP=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
- d=0;;)if(d<c){var e=b[d];if($APP.B.i("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.r(b.hasAttribute("disabled")):b)){d=$APP.k(a,"__xPaginationRefs");c=$APP.hj.g(d);d=$APP.Sh.g(d);e=b.getAttribute("data-page");if(b===c)return c=kP(a),b=gP.g(c),b>1?oP(a,b-1):null;if(b===d)return c=kP(a),b=gP.g(c),c=hP.g(c),b<c?oP(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?oP(a,b):null}return null},qP=function(a){function b(d){return pP(a,
13
- d)}var c=ZO(a);$APP.bl.g(c).addEventListener("click",b);$APP.ja(a,"__xPaginationHandlers",{click:b})},rP=function(a){var b=$APP.k(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.k(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.bl.g(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},sP=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",
14
- ""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},tP=function(a,b,c){Object.defineProperty(a,b,{get:function(){return UO(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},uP=function(a,b,c,d){Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?this.setAttribute(c,""+$APP.T.g(e)):this.removeAttribute(c)},enumerable:!0,
15
- configurable:!0})},vP=function(a){tP(a,"page","page");tP(a,"total-pages","total-pages");tP(a,"sibling-count","sibling-count");tP(a,"boundary-count","boundary-count");uP(a,"size","size","md");sP(a);uP(a,"label","label","Pagination")},xP=function(){var a=class extends HTMLElement{};a.observedAttributes=wP;a.prototype.connectedCallback=function(){ZO(this);rP(this);qP(this);nP(this);return null};a.prototype.disconnectedCallback=function(){rP(this);return null};a.prototype.attributeChangedCallback=function(b,
16
- c,d){$APP.N(c,d)&&nP(this);return null};vP(a.prototype);return a},yP=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",xP());return null},cP=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),jP=new $APP.K(null,"boundary-count","boundary-count",1637925987),eP=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),hP=new $APP.K(null,"total-pages","total-pages",685894112),gP=new $APP.K(null,"page","page",849072397),YO=new $APP.K(null,
17
- "next-li","next-li",648524823),WO=new $APP.K(null,"btn","btn",1978294651),XO=new $APP.K(null,"prev-li","prev-li",940258334),bP=new $APP.K(null,"page-raw","page-raw",-1198808870),VO=new $APP.K(null,"li","li",723558921),lP=new $APP.K(null,"ellipsis","ellipsis",998505738),mP=new $APP.K(null,"n","n",562130025),dP=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),iP=new $APP.K(null,"sibling-count","sibling-count",1756034573);var wP="page total-pages sibling-count boundary-count size disabled label".split(" "),fP=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ha("baredom.exports.x_pagination.init",yP);export const init=yP;
2
+ var wQ=function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;return $APP.Wc($APP.ya,$APP.Yh,0<b.length?new $APP.Tb(b.slice(0),0,null):null)},xQ=function(a){if(typeof a==="string"){a=parseInt(a,10);var b=isFinite(a);return $APP.n($APP.n(b)?a>0:b)?a:1}return 1},CQ=function(a){var b=$APP.k(a,"__xPaginationRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("nav"),e=document.createElement("ol");
3
+ var g=document.createElement("li");var h=document.createElement("button"),l=document.createElement("slot");g.setAttribute("part","item item-prev");h.setAttribute("part","button button-prev");h.setAttribute("aria-label","Previous page");l.setAttribute("name","prev");l.textContent="Prev";h.appendChild(l);g.appendChild(h);g=new $APP.Q(null,2,[yQ,g,zQ,h],null);h=document.createElement("li");l=document.createElement("button");var m=document.createElement("slot");h.setAttribute("part","item item-next");
4
+ l.setAttribute("part","button button-next");l.setAttribute("aria-label","Next page");m.setAttribute("name","next");m.textContent="Next";l.appendChild(m);h.appendChild(l);h=new $APP.Q(null,2,[yQ,h,zQ,l],null);c.textContent=":host{display:block;color-scheme:light dark;--x-pagination-gap:0.25rem;--x-pagination-button-size:2rem;--x-pagination-button-radius:var(--x-radius-sm,0.375rem);--x-pagination-button-bg:transparent;--x-pagination-button-color:rgba(0,0,0,0.75);--x-pagination-button-border:1px solid rgba(0,0,0,0.15);--x-pagination-button-hover-bg:rgba(0,0,0,0.06);--x-pagination-button-hover-color:rgba(0,0,0,0.9);--x-pagination-current-bg:rgba(0,0,0,0.88);--x-pagination-current-color:#fff;--x-pagination-current-border:1px solid transparent;--x-pagination-disabled-opacity:0.4;--x-pagination-font-size:var(--x-font-size-sm,0.875rem);--x-pagination-ellipsis-color:rgba(0,0,0,0.45);}@media (prefers-color-scheme:dark){:host{--x-pagination-button-color:rgba(255,255,255,0.75);--x-pagination-button-border:1px solid rgba(255,255,255,0.15);--x-pagination-button-hover-bg:rgba(255,255,255,0.08);--x-pagination-button-hover-color:rgba(255,255,255,0.95);--x-pagination-current-bg:rgba(255,255,255,0.90);--x-pagination-current-color:#000;--x-pagination-ellipsis-color:rgba(255,255,255,0.40);}}:host([data-size\x3d'sm']){--x-pagination-button-size:1.75rem;--x-pagination-font-size:0.75rem;}:host([data-size\x3d'lg']){--x-pagination-button-size:2.5rem;--x-pagination-font-size:1rem;}[part~\x3d'nav']{display:block;}[part~\x3d'list']{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0;gap:var(--x-pagination-gap);}[part~\x3d'button']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);padding:0 0.5rem;border:var(--x-pagination-button-border);border-radius:var(--x-pagination-button-radius);background:var(--x-pagination-button-bg);color:var(--x-pagination-button-color);font:inherit;font-size:var(--x-pagination-font-size);cursor:pointer;user-select:none;box-sizing:border-box;transition:background 0.15s,color 0.15s;}[part~\x3d'button']:hover:not(:disabled){background:var(--x-pagination-button-hover-bg);color:var(--x-pagination-button-hover-color);}[part~\x3d'button'][data-current]{background:var(--x-pagination-current-bg);color:var(--x-pagination-current-color);border:var(--x-pagination-current-border);font-weight:600;cursor:default;}[part~\x3d'button']:disabled{opacity:var(--x-pagination-disabled-opacity);cursor:not-allowed;}[part~\x3d'ellipsis']{display:inline-flex;align-items:center;justify-content:center;min-width:var(--x-pagination-button-size);height:var(--x-pagination-button-size);color:var(--x-pagination-ellipsis-color);font-size:var(--x-pagination-font-size);user-select:none;}@media (prefers-reduced-motion:reduce){[part~\x3d'button']{transition:none !important;}}@media (pointer:coarse){[part~\x3d'button']{min-width:2.75rem;height:2.75rem;}}";
5
+ d.setAttribute("part","nav");e.setAttribute("part","list");e.appendChild(yQ.g(g));e.appendChild(yQ.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.Q(null,6,[$APP.Ti,d,$APP.ul,e,AQ,yQ.g(g),$APP.zj,zQ.g(g),BQ,yQ.g(h),$APP.ji,zQ.g(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},DQ=function(a,b,c){var d=document.createElement("li"),e=document.createElement("button");d.setAttribute("part","item item-page");d.setAttribute("data-page",""+$APP.S.g(a));e.setAttribute("part",
6
+ "button button-page");e.setAttribute("aria-label","Page "+$APP.S.g(a));e.setAttribute("data-page",""+$APP.S.g(a));$APP.n(b)&&(e.setAttribute("aria-current","page"),e.setAttribute("data-current",""));$APP.n(c)&&e.setAttribute("disabled","");e.textContent=""+$APP.S.g(a);d.appendChild(e);return d},EQ=function(){var a=document.createElement("li"),b=document.createElement("span");a.setAttribute("part","item item-ellipsis");b.setAttribute("part","ellipsis");b.setAttribute("aria-hidden","true");b.textContent=
7
+ "…";a.appendChild(b);return a},OQ=function(a){a=new $APP.Q(null,7,[FQ,a.getAttribute("page"),GQ,a.getAttribute("total-pages"),HQ,a.getAttribute("sibling-count"),IQ,a.getAttribute("boundary-count"),$APP.nm,a.getAttribute("size"),$APP.fm,a.hasAttribute("disabled"),$APP.Hi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,FQ),d=$APP.D(b,GQ),e=$APP.D(b,HQ),g=$APP.D(b,IQ),h=$APP.D(b,$APP.nm);a=$APP.D(b,$APP.fm);b=$APP.D(b,$APP.Hi);d=xQ(d);c=$APP.Jh.i(1,$APP.Kh.i(xQ(c),d));if(typeof e==="string"){e=
8
+ parseInt(e,10);var l=isFinite(e);e=$APP.n($APP.n(l)?e>=0:l)?e:1}else e=1;typeof g==="string"?(g=parseInt(g,10),l=isFinite(g),l=$APP.n($APP.n(l)?g>=0:l)?g:1):l=1;g=e;e=l;h=typeof h==="string"?h.trim().toLowerCase():null;h=$APP.I(JQ,h)?h:"md";return new $APP.Q(null,7,[KQ,c,LQ,d,MQ,g,NQ,e,$APP.di,h,$APP.kk,$APP.F(a),$APP.T,$APP.n(b)?b:"Pagination"],null)},RQ=function(a){var b=CQ(a),c=$APP.ul.g(b),d=$APP.Ti.g(b),e=$APP.zj.g(b),g=$APP.ji.g(b),h=AQ.g(b);b=BQ.g(b);var l=OQ(a),m=$APP.M(l),p=$APP.D(m,KQ),
9
+ r=$APP.D(m,LQ),v=$APP.D(m,MQ),x=$APP.D(m,NQ),y=$APP.D(m,$APP.di);m=$APP.D(m,$APP.T);a:if(r<=0)r=$APP.ee;else{var A=$APP.Kh.i(x,r);x=$APP.Jh.i(r-x- -1,1);var C=$APP.Jh.i(1,p-v);v=$APP.Kh.i(r,p+v);r=$APP.We.i($APP.We.i($APP.We.i(wQ(),$APP.dg(1,A+1)),$APP.dg(x,r+1)),$APP.dg(C,v+1));r=$APP.xe(r);C=$APP.ee;for(v=0;;){if(v>=$APP.z(r)){r=C;break a}A=$APP.pc(r,v);var E=x=v>0?$APP.pc(r,v-1):null;x=$APP.n($APP.n(E)?A>x+1:E)?$APP.ld.i(C,new $APP.Q(null,1,[$APP.Z,PQ],null)):C;A=$APP.ld.i(x,new $APP.Q(null,2,
10
+ [$APP.Z,KQ,QQ,A],null));v+=1;C=A}r=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.M(l);a=$APP.D(d,KQ);d=$APP.D(d,$APP.kk);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(l);e=$APP.D(d,KQ);a=$APP.D(d,LQ);d=$APP.D(d,$APP.kk);$APP.n($APP.n(d)?d:e>=a)?g.setAttribute("disabled",""):g.removeAttribute("disabled");c.innerHTML="";c.appendChild(h);g=$APP.t(r);h=null;for(a=e=0;;)if(a<e)d=h.F(null,a),$APP.B.i(PQ,$APP.Z.g(d))?c.appendChild(EQ()):
11
+ c.appendChild(DQ(QQ.g(d),$APP.B.i(QQ.g(d),p),$APP.kk.g(l))),a+=1;else if(g=$APP.t(g))h=g,$APP.Nc(h)?(g=$APP.xb(h),a=$APP.yb(h),h=g,e=$APP.z(g),g=a):(g=$APP.u(h),$APP.B.i(PQ,$APP.Z.g(g))?c.appendChild(EQ()):c.appendChild(DQ(QQ.g(g),$APP.B.i(QQ.g(g),p),$APP.kk.g(l))),g=$APP.w(h),h=null,e=0),a=0;else break;c.appendChild(b)},SQ=function(a,b){var c=OQ(a);c=KQ.g(c);return $APP.Rg(a,"page-change-request",{page:b,previousPage:c})?a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,
12
+ cancelable:!1})):null},TQ=function(a,b){a:{b=b.composedPath();for(var c=b.length,d=0;;)if(d<c){var e=b[d];if($APP.B.i("BUTTON",$APP.n(e)?e.tagName:null)){b=e;break a}d+=1}else{b=null;break a}b=void 0}if($APP.n($APP.n(b)?$APP.q(b.hasAttribute("disabled")):b)){d=$APP.k(a,"__xPaginationRefs");c=$APP.zj.g(d);d=$APP.ji.g(d);e=b.getAttribute("data-page");if(b===c)return c=OQ(a),b=KQ.g(c),b>1?SQ(a,b-1):null;if(b===d)return c=OQ(a),b=KQ.g(c),c=LQ.g(c),b<c?SQ(a,b+1):null;if(e!=null)return b=parseInt(e,10),
13
+ $APP.n(isFinite(b))?SQ(a,b):null}return null},UQ=function(a){function b(d){return TQ(a,d)}var c=CQ(a);$APP.ul.g(c).addEventListener("click",b);$APP.ja(a,"__xPaginationHandlers",{click:b})},VQ=function(a){var b=$APP.k(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.k(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.ul.g(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},WQ=function(a){Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
14
+ set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},XQ=function(a,b,c){Object.defineProperty(a,b,{get:function(){return xQ(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},YQ=function(a,b,c,d){return Object.defineProperty(a,b,{get:function(){var e=this.getAttribute(c);return $APP.n(e)?e:d},set:function(e){return e!=null?
15
+ this.setAttribute(c,""+$APP.S.g(e)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},ZQ=function(a){XQ(a,"page","page");XQ(a,"total-pages","total-pages");XQ(a,"sibling-count","sibling-count");XQ(a,"boundary-count","boundary-count");YQ(a,"size","size","md");WQ(a);return YQ(a,"label","label","Pagination")},$Q=function(a){CQ(a);VQ(a);UQ(a);RQ(a);return null},aR=function(a){VQ(a);return null},bR=function(a,b,c,d){$APP.N(c,d)&&RQ(a);return null},dR=function(){return $APP.Lg("x-pagination",new $APP.Q(null,
16
+ 5,[$APP.Cg,cR,$APP.Dg,$Q,$APP.Eg,aR,$APP.Fg,bR,$APP.Jg,ZQ],null))},GQ=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),NQ=new $APP.K(null,"boundary-count","boundary-count",1637925987),IQ=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),LQ=new $APP.K(null,"total-pages","total-pages",685894112),KQ=new $APP.K(null,"page","page",849072397),BQ=new $APP.K(null,"next-li","next-li",648524823),zQ=new $APP.K(null,"btn","btn",1978294651),AQ=new $APP.K(null,"prev-li","prev-li",
17
+ 940258334),FQ=new $APP.K(null,"page-raw","page-raw",-1198808870),yQ=new $APP.K(null,"li","li",723558921),PQ=new $APP.K(null,"ellipsis","ellipsis",998505738),QQ=new $APP.K(null,"n","n",562130025),HQ=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),MQ=new $APP.K(null,"sibling-count","sibling-count",1756034573);var cR="page total-pages sibling-count boundary-count size disabled label".split(" "),JQ=new $APP.R(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.Pd(["page-change-request",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,2,[KQ,$APP.W,new $APP.K(null,"previousPage","previousPage",1452478108),$APP.W],null)],null),"page-change",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[KQ,$APP.W],null)],null)]);$APP.ha("baredom.exports.x_pagination.init",dR);export const init=dR;