@vanelsas/baredom 2.1.1 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +3 -3
  3. package/dist/base.js +402 -391
  4. package/dist/x-alert.js +17 -17
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +14 -15
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +15 -15
  12. package/dist/x-cancel-dialogue.js +16 -16
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-carousel.js +29 -29
  15. package/dist/x-chart.js +46 -46
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +8 -8
  18. package/dist/x-collapse.js +10 -10
  19. package/dist/x-color-picker.js +41 -41
  20. package/dist/x-combobox.js +28 -0
  21. package/dist/x-command-palette.js +25 -25
  22. package/dist/x-container.js +6 -6
  23. package/dist/x-context-menu.js +18 -18
  24. package/dist/x-copy.js +22 -22
  25. package/dist/x-currency-field.js +21 -21
  26. package/dist/x-date-picker.js +37 -37
  27. package/dist/x-divider.js +8 -8
  28. package/dist/x-drawer.js +11 -11
  29. package/dist/x-dropdown.js +9 -9
  30. package/dist/x-fieldset.js +5 -5
  31. package/dist/x-file-download.js +7 -7
  32. package/dist/x-form-field.js +15 -15
  33. package/dist/x-form.js +9 -9
  34. package/dist/x-gaussian-blur.js +18 -18
  35. package/dist/x-grid.js +6 -6
  36. package/dist/x-icon.js +9 -0
  37. package/dist/x-image.js +20 -0
  38. package/dist/x-kinetic-font.js +28 -28
  39. package/dist/x-kinetic-typography.js +37 -37
  40. package/dist/x-liquid-dock.js +35 -35
  41. package/dist/x-liquid-fill.js +40 -40
  42. package/dist/x-liquid-glass.js +36 -36
  43. package/dist/x-menu-item.js +10 -10
  44. package/dist/x-menu.js +10 -10
  45. package/dist/x-metaball-cursor.js +25 -25
  46. package/dist/x-modal.js +12 -12
  47. package/dist/x-morph-stack.js +39 -39
  48. package/dist/x-navbar.js +12 -12
  49. package/dist/x-neural-glow.js +31 -31
  50. package/dist/x-notification-center.js +10 -10
  51. package/dist/x-organic-divider.js +15 -15
  52. package/dist/x-organic-progress.js +35 -35
  53. package/dist/x-organic-shape.js +12 -12
  54. package/dist/x-pagination.js +16 -16
  55. package/dist/x-particle-button.js +47 -47
  56. package/dist/x-popover.js +14 -14
  57. package/dist/x-progress-circle.js +7 -7
  58. package/dist/x-progress.js +7 -7
  59. package/dist/x-radio.js +11 -11
  60. package/dist/x-ripple-effect.js +11 -11
  61. package/dist/x-scroll-parallax.js +17 -17
  62. package/dist/x-scroll-stack.js +18 -18
  63. package/dist/x-scroll-story.js +34 -34
  64. package/dist/x-scroll-timeline.js +45 -45
  65. package/dist/x-scroll.js +40 -40
  66. package/dist/x-search-field.js +14 -14
  67. package/dist/x-select.js +9 -9
  68. package/dist/x-sidebar.js +16 -16
  69. package/dist/x-skeleton-group.js +15 -0
  70. package/dist/x-skeleton.js +1 -6
  71. package/dist/x-slider.js +16 -16
  72. package/dist/x-soft-body.js +20 -20
  73. package/dist/x-spacer.js +5 -5
  74. package/dist/x-spinner.js +5 -5
  75. package/dist/x-splash.js +13 -13
  76. package/dist/x-stat.js +9 -9
  77. package/dist/x-stepper.js +15 -16
  78. package/dist/x-switch.js +10 -10
  79. package/dist/x-tab.js +7 -7
  80. package/dist/x-table-cell.js +19 -19
  81. package/dist/x-table-row.js +10 -10
  82. package/dist/x-table.js +13 -13
  83. package/dist/x-tabs.js +11 -11
  84. package/dist/x-text-area.js +17 -17
  85. package/dist/x-theme.js +25 -25
  86. package/dist/x-timeline-item.js +20 -20
  87. package/dist/x-timeline.js +9 -9
  88. package/dist/x-toast.js +21 -21
  89. package/dist/x-toaster.js +8 -8
  90. package/dist/x-tooltip.js +14 -0
  91. package/dist/x-typography.js +8 -8
  92. package/package.json +21 -1
@@ -1,40 +1,40 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var r_=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},t_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(s_,a)?a:"vine"},u_=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},w_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.J(v_,a)?a:"normal"},x_=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
3
- "number"&&$APP.r(isNaN(a))&&a>0?a:42):42},y_=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},z_=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},A_=function(a){a=(typeof a==="number"&&$APP.r(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},B_=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},G_=function(a,b){var c=(a+b)*C_,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*D_,g=a-(d-e),h=b-(c-e),
4
- l=g>h?1:0,m=g>h?0:1,p=g+-l-D_,q=h+-m-D_,v=g+-1-2*D_,x=h+-1-2*D_,y=d&255,A=c&255,B=.5-g*g-h*h,E=.5-p*p-q*q,H=.5-v*v-x*x;return 70*((B<0?0:function(){var G=B*B,I=E_[F_[y+F_[A&255]&255]&11];return G*G*(I[0]*g+I[1]*h)}())+(E<0?0:function(){var G=E*E,I=E_[F_[y+l+F_[A+m&255]&255]&11];return G*G*(I[0]*p+I[1]*q)}())+(H<0?0:function(){var G=H*H,I=E_[F_[y+1+F_[A+1&255]&255]&11];return G*G*(I[0]*v+I[1]*x)}()))},H_=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return G_(d+b,e+c)}},I_=function(a,b,
5
- c){var d=[],e=[];c=A_(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*B_(c)),B=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(B);A=q+A*Math.sin(B);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 I=$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 I*I+H*H-(Q*Q+G*G)});return[d,d.length]},J_=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)},L_=function(a,b){b=$APP.Ac(K_,b,25);var c=A_(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+B_(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 B=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(B);B=p+b*Math.sin(B);var E=J_(x,y,A,B);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:B,depth:q,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},M_=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
9
- b*d,b]},N_=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},U_=function(a){a=new $APP.R(null,7,[$APP.Ej,a.getAttribute("progress"),$APP.Jk,a.getAttribute("variant"),$APP.om,a.getAttribute("color"),O_,a.getAttribute("bloom"),P_,a.getAttribute("density"),Q_,a.getAttribute("seed"),$APP.Wh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Ej);a=$APP.D(b,$APP.Jk);var d=$APP.D(b,$APP.om),e=$APP.D(b,O_),g=$APP.D(b,P_),h=$APP.D(b,Q_);b=$APP.D(b,$APP.Wh);
10
- c=r_(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.xf([$APP.ll,$APP.lj,$APP.Nh,R_,S_,$APP.gm,$APP.U,$APP.$k,$APP.Ak,$APP.ol,T_],[l,z_(d),t_(a),u_(e),x_(h),l?"Loading...":""+$APP.T.g(Math.round(m))+"%",y_(b),m,p,c,w_(g)])},V_=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},X_=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,W_);d=function(){var y=
2
+ var F1=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},H1=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(G1,a)?a:"vine"},I1=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},K1=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(J1,a)?a:"normal"},L1=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a===
3
+ "number"&&$APP.r(isNaN(a))&&a>0?a:42):42},M1=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},N1=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},O1=function(a){a=(typeof a==="number"&&$APP.r(isNaN(a))&&a>0?Math.floor(a):42)|0;return[a===0?1:a]},P1=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},U1=function(a,b){var c=(a+b)*Q1,d=Math.floor(a+c);c=Math.floor(b+c);var e=(d+c)*R1,g=a-(d-e),h=b-(c-e),
4
+ l=g>h?1:0,m=g>h?0:1,p=g+-l-R1,q=h+-m-R1,v=g+-1-2*R1,x=h+-1-2*R1,y=d&255,A=c&255,B=.5-g*g-h*h,E=.5-p*p-q*q,H=.5-v*v-x*x;return 70*((B<0?0:function(){var G=B*B,J=S1[T1[y+T1[A&255]&255]&11];return G*G*(J[0]*g+J[1]*h)}())+(E<0?0:function(){var G=E*E,J=S1[T1[y+l+T1[A+m&255]&255]&11];return G*G*(J[0]*p+J[1]*q)}())+(H<0?0:function(){var G=H*H,J=S1[T1[y+1+T1[A+1&255]&255]&11];return G*G*(J[0]*v+J[1]*x)}()))},V1=function(a){var b=a*17.31,c=a*31.17;return function(d,e){return U1(d+b,e+c)}},W1=function(a,b,
5
+ c){var d=[],e=[];c=O1(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*P1(c)),B=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(B);A=q+A*Math.sin(B);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 R=$APP.k(G,"x2")-20;G=$APP.k(G,"y2")-100;return J*J+H*H-(R*R+G*G)});return[d,d.length]},X1=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.Sc(a,c)<0?""+$APP.T.g(a)+"-"+$APP.T.g(c):""+$APP.T.g(c)+"-"+$APP.T.g(a)},Z1=function(a,b){b=$APP.Bc(Y1,b,25);var c=O1(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.Vd(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+P1(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 B=Math.PI/3*(v+1);x=m+b*Math.cos(y);y=p+b*Math.sin(y);A=m+b*Math.cos(B);B=p+b*Math.sin(B);var E=X1(x,y,A,B);$APP.n($APP.k(c,E))||(c[E]=!0,E=e[0],d.push({x1:x,y1:y,x2:A,y2:B,depth:q,index:E}),e[0]=E+1);v+=1}else break;h+=1}else break;return[d,d.length]},$1=function(a,b,c,d){b=c+(120*(b-a)-12*c)*d;return[a+
9
+ b*d,b]},a2=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},h2=function(a){a=new $APP.Q(null,7,[$APP.Vj,a.getAttribute("progress"),$APP.bl,a.getAttribute("variant"),$APP.Lm,a.getAttribute("color"),b2,a.getAttribute("bloom"),c2,a.getAttribute("density"),d2,a.getAttribute("seed"),$APP.ki,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Vj);a=$APP.D(b,$APP.bl);var d=$APP.D(b,$APP.Lm),e=$APP.D(b,b2),g=$APP.D(b,c2),h=$APP.D(b,d2);b=$APP.D(b,$APP.ki);
10
+ c=F1(c);var l=c==null,m=$APP.n(c)?c:0,p=!l&&m>=100;return $APP.zf([$APP.Fl,$APP.Ej,$APP.Qg,e2,f2,$APP.Dm,$APP.U,$APP.tl,$APP.Tk,$APP.Il,g2],[l,N1(d),H1(a),I1(e),L1(h),l?"Loading...":""+$APP.T.g(Math.round(m))+"%",M1(b),m,p,c,K1(g)])},i2=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},k2=function(a,b,c){var d=$APP.M($APP.k(a,"__xOrganicProgressRefs")),e=$APP.D(d,j2);d=function(){var y=
11
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},Y_=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.C.i($APP.Nh.g(e),"honeycomb");e=$APP.lj.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=V_(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},Z_=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}},a0=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));d=$APP.D(d,$_);var e=$APP.k(a,"__xOrganicProgressModel"),g="var("+$APP.T.g("--x-organic-progress-bloom-color")+",#f472b6)";e=A_(S_.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*B_(e)-1,x=2*B_(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},b0=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,$_);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},d0=function(a){a.__xOrganicProgressTime=0;a.__xOrganicProgressSPos=0;a.__xOrganicProgressSVel=0;$APP.ia(a,"__xOrganicProgressLF",performance.now());a.__xOrganicProgressDone=
19
- !1;a.__xOrganicProgressBloom=!1;a.__xOrganicProgressPV=-1;$APP.ia(a,"__xOrganicProgressRaf",requestAnimationFrame(function(){return c0(a)}))},e0=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.ll.g(b))?50:$APP.$k.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.Ak.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}})))},i0=function(a,b){var c=U_(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
21
- "progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.ll.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.$k.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.gm.g(c)));var d=$APP.U.g(c);$APP.n(d)?a.setAttribute("aria-label",d):a.removeAttribute("aria-label");if(b==null||$APP.J(f0,b)){b=$APP.C.i($APP.Nh.g(c),
22
- "honeycomb");d=$APP.Ac(g0,T_.g(c),3);if(b)c=L_(S_.g(c),T_.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=H_(S_.g(c));c=I_(d,e,S_.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;X_(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,W_);d=$APP.D(d,$APP.Oi);$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,h0);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;Y_(a);a.__xOrganicProgressPV=-1;N_()&&e0(a)}},
24
- j0=function(a){Object.defineProperty(a,"progress",{get:function(){return r_(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 t_(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 z_(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 u_(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 w_(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 x_(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 y_(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):
27
- this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},m0=function(){var a=class extends HTMLElement{};a.observedAttributes=k0;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=U_(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=l0;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",
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},l2=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.C.i($APP.Qg.g(e),"honeycomb");e=$APP.Ej.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=i2(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},m2=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}},o2=function(a){var b=$APP.k(a,"__xOrganicProgressSegs"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));d=$APP.D(d,n2);var e=$APP.k(a,"__xOrganicProgressModel"),g="var("+$APP.T.g("--x-organic-progress-bloom-color")+",#f472b6)";e=O1(f2.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*P1(e)-1,x=2*P1(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},p2=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,n2);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},r2=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 q2(a)}))},s2=function(a){for(var b=$APP.k(a,"__xOrganicProgressModel"),c=$APP.k(a,"__xOrganicProgressSegN"),d=$APP.n($APP.Fl.g(b))?50:$APP.tl.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.Tk.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}})))},w2=function(a,b){var c=h2(a);a.__xOrganicProgressModel=c;a.setAttribute("role",
21
+ "progressbar");a.setAttribute("aria-valuemin","0");a.setAttribute("aria-valuemax","100");$APP.n($APP.Fl.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.tl.g(c)))),a.removeAttribute("aria-busy"),a.setAttribute("aria-valuetext",$APP.Dm.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(t2,b)){b=$APP.C.i($APP.Qg.g(c),
22
+ "honeycomb");d=$APP.Bc(u2,g2.g(c),3);if(b)c=Z1(f2.g(c),g2.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 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=V1(f2.g(c));c=W1(d,e,f2.g(c))}d=c;c=d[0];d=d[1];a.__xOrganicProgressSegs=c;a.__xOrganicProgressSegN=d;k2(a,d,c);d=$APP.M($APP.k(a,"__xOrganicProgressRefs"));c=$APP.D(d,j2);d=$APP.D(d,$APP.ej);$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,v2);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;l2(a);a.__xOrganicProgressPV=-1;a2()&&s2(a)}},
24
+ x2=function(a){Object.defineProperty(a,"progress",{get:function(){return F1(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 H1(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 N1(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 I1(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 K1(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 L1(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 M1(this.getAttribute("label"))},set:function(b){return b==null?this.removeAttribute("label"):
27
+ this.setAttribute("label",""+$APP.T.g(b))},enumerable:!0,configurable:!0})},A2=function(){var a=class extends HTMLElement{};a.observedAttributes=y2;a.prototype.connectedCallback=function(){this.__xOrganicProgressModel=h2(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=z2;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
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.zk,m,$APP.Oi,p,$APP.cm,q],null);d.appendChild(e);d.appendChild(g);d.appendChild(h);d.appendChild(l);b.appendChild(c);b.appendChild(d);this.__xOrganicProgressRefs=$APP.Pf($APP.tc([m,new $APP.R(null,5,[$APP.ji,b,$APP.Jj,d,W_,g,h0,h,$_,l],null)]))}i0(this,null);Y_(this);N_()?e0(this):d0(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,$_);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"))&&(i0(this,b),$APP.J(f0,b)||Y_(this));return null};j0(a.prototype);return a},n0=function(){$APP.n(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",m0());return null},h0=new $APP.K(null,"nodes-g","nodes-g",89420858),P_=new $APP.K(null,"density-raw","density-raw",1719413082),W_=new $APP.K(null,"branches-g","branches-g",548989635),R_=new $APP.K(null,"bloom?","bloom?",-326837587),O_=new $APP.K(null,"bloom-attr",
33
- "bloom-attr",-1778398039),T_=new $APP.K(null,"density","density",-1664155941),S_=new $APP.K(null,"seed","seed",68613327),Q_=new $APP.K(null,"seed-raw","seed-raw",2146438207),$_=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var k0="progress variant color bloom density seed label".split(" ");$APP.Pd(["x-organic-progress-complete",new $APP.R(null,2,[$APP.yj,new $APP.R(null,1,[$APP.ol,$APP.V],null),$APP.wl,!1],null),"x-organic-progress-bloom-end",new $APP.R(null,2,[$APP.yj,new $APP.R(null,1,[$APP.ol,$APP.V],null),$APP.wl,!1],null)]);
34
- var s_=new $APP.S(null,new $APP.R(null,2,["honeycomb",null,"vine",null],null),null),v_=new $APP.S(null,new $APP.R(null,3,["dense",null,"normal",null,"sparse",null],null),null),g0=new $APP.R(null,3,["sparse",2,"normal",3,"dense",4],null),F_=[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,
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.Q(null,3,[$APP.Sk,m,$APP.ej,p,$APP.zm,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.Q(null,5,[$APP.yi,b,$APP.bk,d,j2,g,v2,h,n2,l],null)]))}w2(this,null);l2(this);a2()?s2(this):r2(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,n2);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"))&&(w2(this,b),$APP.I(t2,b)||l2(this));return null};x2(a.prototype);return a},B2=function(){$APP.n(customElements.get("x-organic-progress"))||customElements.define("x-organic-progress",A2());return null},v2=new $APP.K(null,"nodes-g","nodes-g",89420858),c2=new $APP.K(null,"density-raw","density-raw",1719413082),j2=new $APP.K(null,"branches-g","branches-g",548989635),e2=new $APP.K(null,"bloom?","bloom?",-326837587),b2=new $APP.K(null,"bloom-attr",
33
+ "bloom-attr",-1778398039),g2=new $APP.K(null,"density","density",-1664155941),f2=new $APP.K(null,"seed","seed",68613327),d2=new $APP.K(null,"seed-raw","seed-raw",2146438207),n2=new $APP.K(null,"blooms-g","blooms-g",-1476393864);var y2="progress variant color bloom density seed label".split(" ");$APP.Qd(["x-organic-progress-complete",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null),"x-organic-progress-bloom-end",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Il,$APP.W],null),$APP.Rl,!1],null)]);
34
+ var G1=new $APP.S(null,new $APP.Q(null,2,["honeycomb",null,"vine",null],null),null),J1=new $APP.S(null,new $APP.Q(null,3,["dense",null,"normal",null,"sparse",null],null),null),u2=new $APP.Q(null,3,["sparse",2,"normal",3,"dense",4],null),T1=[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
35
  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],E_=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],C_=(Math.sqrt(3)-1)/2,D_=(3-Math.sqrt(3))/6,K_=new $APP.R(null,3,["sparse",40,"normal",25,"dense",16],null);var l0=":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")+
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],S1=[[1,1],[-1,1],[1,-1],[-1,-1],[1,0],[-1,0],[0,1],[0,-1],[1,1],[-1,1],[1,-1],[-1,-1]],Q1=(Math.sqrt(3)-1)/2,R1=(3-Math.sqrt(3))/6,Y1=new $APP.Q(null,3,["sparse",40,"normal",25,"dense",16],null);var z2=":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
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
- c0=function c0(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.ll.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.$k.g(c);d=M_($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];Z_(a);$APP.n(function(){var g=
39
- $APP.Ak.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(R_.g(c))&&a0(a));$APP.n(function(){var g=$APP.r($APP.Ak.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"))&&b0(a,e);$APP.ia(a,"__xOrganicProgressRaf",
40
- requestAnimationFrame(function(){return c0.g?c0.g(a):c0.call(null,a)}))}return null},f0=$APP.Sf(["variant","density","seed"]);$APP.fa("baredom.exports.x_organic_progress.init",n0);export const init=n0;
38
+ q2=function q2(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.Fl.g(c))?50+20*Math.sin($APP.k(a,"__xOrganicProgressTime")*1.5):$APP.tl.g(c);d=$1($APP.k(a,"__xOrganicProgressSPos"),d,$APP.k(a,"__xOrganicProgressSVel"),e);a.__xOrganicProgressSPos=d[0];a.__xOrganicProgressSVel=d[1];m2(a);$APP.n(function(){var g=
39
+ $APP.Tk.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(e2.g(c))&&o2(a));$APP.n(function(){var g=$APP.r($APP.Tk.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"))&&p2(a,e);$APP.ja(a,"__xOrganicProgressRaf",
40
+ requestAnimationFrame(function(){return q2.g?q2.g(a):q2.call(null,a)}))}return null},t2=$APP.Uf(["variant","density","seed"]);$APP.ha("baredom.exports.x_organic_progress.init",B2);export const init=B2;
@@ -1,15 +1,15 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var YG=function(a){return typeof a==="string"&&$APP.J(XG,a)?a:"blob-1"},ZG=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},$G=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},aH=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")},gH=function(a){var b=new $APP.R(null,6,[$APP.Ij,a.getAttribute("shape"),$APP.qk,a.getAttribute("path"),$APP.Ui,a.getAttribute("animation"),
4
- bH,a.getAttribute("ratio"),$APP.Zj,a.getAttribute("width"),$APP.Aj,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Ij),e=$APP.D(c,$APP.qk),g=$APP.D(c,$APP.Ui),h=$APP.D(c,bH);b=$APP.D(c,$APP.Zj);c=$APP.D(c,$APP.Aj);e=typeof e==="string"&&$APP.N("",e.trim())?e.trim():null;d=YG(d);var l=typeof g==="string"&&$APP.J(cH,g)?g:"none";g=e!=null?e:$APP.ge(dH,new $APP.O(null,2,5,$APP.P,[YG(d),eH],null));var m=e==null?$APP.ge(dH,new $APP.O(null,2,5,$APP.P,[YG(d),fH],null)):null;l=$APP.C.i(l,"morph")&&
5
- m==null?"none":l;h=typeof h==="string"&&$APP.N("",h.trim())?h.trim():"1/1";b=new $APP.R(null,8,[$APP.Ij,d,$APP.qk,e,eH,g,fH,m,$APP.Ui,l,bH,h,$APP.Zj,ZG(b),$APP.Aj,ZG(c)],null);g=$APP.M(b);b=$APP.D(g,eH);h=$APP.D(g,fH);c=$APP.D(g,$APP.Ui);e=$APP.D(g,bH);d=$APP.D(g,$APP.Zj);g=$APP.D(g,$APP.Aj);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");aH(a,l)},hH=function(a){function b(){return aH(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||$G(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
7
- b);gH(a)},iH=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});
2
+ var EI=function(a){return typeof a==="string"&&$APP.I(DI,a)?a:"blob-1"},FI=function(a){return typeof a==="string"&&$APP.N("",a)?a:null},GI=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},HI=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")},MI=function(a){var b=new $APP.Q(null,6,[$APP.ak,a.getAttribute("shape"),$APP.Ik,a.getAttribute("path"),$APP.Rg,a.getAttribute("animation"),
4
+ $APP.nj,a.getAttribute("ratio"),$APP.Sg,a.getAttribute("width"),$APP.Tg,a.getAttribute("height")],null);var c=$APP.M(b),d=$APP.D(c,$APP.ak),e=$APP.D(c,$APP.Ik),g=$APP.D(c,$APP.Rg),h=$APP.D(c,$APP.nj);b=$APP.D(c,$APP.Sg);c=$APP.D(c,$APP.Tg);e=typeof e==="string"&&$APP.N("",e.trim())?e.trim():null;d=EI(d);var l=typeof g==="string"&&$APP.I(II,g)?g:"none";g=e!=null?e:$APP.ie(JI,new $APP.O(null,2,5,$APP.P,[EI(d),KI],null));var m=e==null?$APP.ie(JI,new $APP.O(null,2,5,$APP.P,[EI(d),LI],null)):null;l=$APP.C.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.ak,d,$APP.Ik,e,KI,g,LI,m,$APP.Rg,l,$APP.nj,h,$APP.Sg,FI(b),$APP.Tg,FI(c)],null);g=$APP.M(b);b=$APP.D(g,KI);h=$APP.D(g,LI);c=$APP.D(g,$APP.Rg);e=$APP.D(g,$APP.nj);d=$APP.D(g,$APP.Sg);g=$APP.D(g,$APP.Tg);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");HI(a,l)},NI=function(a){function b(){return HI(a,c)}$APP.n($APP.k(a,"__xOrganicShapeInit"))||GI(a);var c=$APP.k(a,"__xOrganicShapeSlot");a.__xOrganicShapeSlotHandler=b;c.addEventListener("slotchange",
7
+ b);MI(a)},OI=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
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
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})},kH=function(){var a=class extends HTMLElement{};a.observedAttributes=jH;a.prototype.connectedCallback=function(){hH(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"))&&gH(this);return null};iH(a.prototype);
11
- return a},lH=function(){$APP.n(customElements.get("x-organic-shape"))||customElements.define("x-organic-shape",kH());return null},bH=new $APP.K(null,"ratio","ratio",-926560044),eH=new $APP.K(null,"clip","clip",830998499),fH=new $APP.K(null,"clip-alt","clip-alt",-684562835);var jH="shape path animation ratio width height".split(" "),cH=new $APP.S(null,new $APP.R(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),XG=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),dH=new $APP.R(null,8,["blob-1",new $APP.R(null,2,[eH,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",fH,"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,[eH,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",fH,"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,[eH,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",fH,"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,[eH,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
13
- fH,"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,[eH,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",fH,"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,[eH,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",fH,"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,[eH,"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%)",fH,"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,[eH,"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
- fH,"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.fa("baredom.exports.x_organic_shape.init",lH);export const init=lH;
10
+ configurable:!0})},QI=function(){var a=class extends HTMLElement{};a.observedAttributes=PI;a.prototype.connectedCallback=function(){NI(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"))&&MI(this);return null};OI(a.prototype);
11
+ return a},RI=function(){$APP.n(customElements.get("x-organic-shape"))||customElements.define("x-organic-shape",QI());return null},KI=new $APP.K(null,"clip","clip",830998499),LI=new $APP.K(null,"clip-alt","clip-alt",-684562835);var PI="shape path animation ratio width height".split(" "),II=new $APP.S(null,new $APP.Q(null,5,["float",null,"none",null,"pulse",null,"spin",null,"morph",null],null),null),DI=new $APP.S(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),JI=new $APP.Q(null,8,["blob-1",new $APP.Q(null,2,[KI,"polygon(30% 0%, 70% 0%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%)",LI,"polygon(25% 5%, 75% 0%, 95% 25%, 100% 65%, 75% 95%, 25% 100%, 0% 65%, 5% 25%)"],
12
+ null),"blob-2",new $APP.Q(null,2,[KI,"polygon(50% 0%, 80% 10%, 100% 40%, 95% 75%, 70% 100%, 30% 100%, 5% 75%, 0% 40%, 20% 10%)",LI,"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,[KI,"polygon(20% 0%, 80% 0%, 100% 20%, 100% 50%, 90% 80%, 70% 100%, 30% 100%, 10% 80%, 0% 50%, 0% 20%)",LI,"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,[KI,"polygon(50% 2%, 78% 8%, 96% 30%, 98% 60%, 85% 88%, 55% 98%, 25% 92%, 4% 65%, 2% 35%, 22% 8%)",
13
+ LI,"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,[KI,"polygon(50% 0%, 80% 15%, 98% 45%, 90% 75%, 65% 98%, 50% 100%, 35% 98%, 10% 75%, 2% 45%, 20% 15%)",LI,"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,[KI,"polygon(50% 0%, 72% 20%, 90% 50%, 95% 72%, 80% 92%, 50% 100%, 20% 92%, 5% 72%, 10% 50%, 28% 20%)",LI,"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.Q(null,2,[KI,"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%)",LI,"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,[KI,"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
+ LI,"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",RI);export const init=RI;
@@ -1,17 +1,17 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var NJ=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.oh,0<b.length?new $APP.Tb(b.slice(0),0,null):null)},OJ=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},TJ=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,[PJ,g,QJ,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,[PJ,h,QJ,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(PJ.g(g));e.appendChild(PJ.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.R(null,6,[$APP.ei,d,$APP.uk,e,RJ,PJ.g(g),$APP.Ii,QJ.g(g),SJ,PJ.g(h),$APP.yh,QJ.g(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},UJ=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},VJ=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},eK=function(a){a=new $APP.R(null,7,[WJ,a.getAttribute("page"),XJ,a.getAttribute("total-pages"),YJ,a.getAttribute("sibling-count"),ZJ,a.getAttribute("boundary-count"),$APP.il,a.getAttribute("size"),$APP.al,a.hasAttribute("disabled"),$APP.Wh,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,WJ),d=$APP.D(b,XJ),e=$APP.D(b,YJ),g=$APP.D(b,ZJ),h=$APP.D(b,$APP.il);a=$APP.D(b,$APP.al);b=$APP.D(b,$APP.Wh);d=OJ(d);c=$APP.$g.i(1,$APP.ah.i(OJ(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.J($J,h)?h:"md";return new $APP.R(null,7,[aK,c,bK,d,cK,g,dK,e,$APP.th,h,$APP.mj,$APP.F(a),$APP.U,$APP.n(b)?b:"Pagination"],null)},hK=function(a){var b=TJ(a),c=$APP.uk.g(b),d=$APP.ei.g(b),e=$APP.Ii.g(b),g=$APP.yh.g(b),h=RJ.g(b);b=SJ.g(b);var l=eK(a),m=$APP.M(l),p=$APP.D(m,aK),
9
- q=$APP.D(m,bK),v=$APP.D(m,cK),x=$APP.D(m,dK),y=$APP.D(m,$APP.th);m=$APP.D(m,$APP.U);a:if(q<=0)q=$APP.ee;else{var A=$APP.ah.i(x,q);x=$APP.$g.i(q-x- -1,1);var B=$APP.$g.i(1,p-v);v=$APP.ah.i(q,p+v);q=$APP.Ue.i($APP.Ue.i($APP.Ue.i(NJ(),$APP.bg(1,A+1)),$APP.bg(x,q+1)),$APP.bg(B,v+1));q=$APP.ve(q);B=$APP.ee;for(v=0;;){if(v>=$APP.z(q)){q=B;break a}A=$APP.oc(q,v);var E=x=v>0?$APP.oc(q,v-1):null;x=$APP.n($APP.n(E)?A>x+1:E)?$APP.kd.i(B,new $APP.R(null,1,[$APP.Z,fK],null)):B;A=$APP.kd.i(x,new $APP.R(null,2,
10
- [$APP.Z,aK,gK,A],null));v+=1;B=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.M(l);a=$APP.D(d,aK);d=$APP.D(d,$APP.mj);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(l);e=$APP.D(d,aK);a=$APP.D(d,bK);d=$APP.D(d,$APP.mj);$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.G(null,a),$APP.C.i(fK,$APP.Z.g(d))?c.appendChild(VJ()):
11
- c.appendChild(UJ(gK.g(d),$APP.C.i(gK.g(d),p),$APP.mj.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.C.i(fK,$APP.Z.g(g))?c.appendChild(VJ()):c.appendChild(UJ(gK.g(g),$APP.C.i(gK.g(g),p),$APP.mj.g(l))),g=$APP.w(h),h=null,e=0),a=0;else break;c.appendChild(b)},iK=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},jK=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
- d=0;;)if(d<c){var e=b[d];if($APP.C.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.Ii.g(d);d=$APP.yh.g(d);e=b.getAttribute("data-page");if(b===c)return c=eK(a),b=aK.g(c),b>1?iK(a,b-1):null;if(b===d)return c=eK(a),b=aK.g(c),c=bK.g(c),b<c?iK(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?iK(a,b):null}return null},kK=function(a){function b(d){return jK(a,
13
- d)}var c=TJ(a);$APP.uk.g(c).addEventListener("click",b);$APP.ia(a,"__xPaginationHandlers",{click:b})},lK=function(a){var b=$APP.k(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.k(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.uk.g(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},mK=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})},nK=function(a,b,c){Object.defineProperty(a,b,{get:function(){return OJ(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},oK=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})},pK=function(a){nK(a,"page","page");nK(a,"total-pages","total-pages");nK(a,"sibling-count","sibling-count");nK(a,"boundary-count","boundary-count");oK(a,"size","size","md");mK(a);oK(a,"label","label","Pagination")},rK=function(){var a=class extends HTMLElement{};a.observedAttributes=qK;a.prototype.connectedCallback=function(){TJ(this);lK(this);kK(this);hK(this);return null};a.prototype.disconnectedCallback=function(){lK(this);return null};a.prototype.attributeChangedCallback=function(b,
16
- c,d){$APP.N(c,d)&&hK(this);return null};pK(a.prototype);return a},sK=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",rK());return null},XJ=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),dK=new $APP.K(null,"boundary-count","boundary-count",1637925987),ZJ=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),bK=new $APP.K(null,"total-pages","total-pages",685894112),aK=new $APP.K(null,"page","page",849072397),SJ=new $APP.K(null,
17
- "next-li","next-li",648524823),QJ=new $APP.K(null,"btn","btn",1978294651),RJ=new $APP.K(null,"prev-li","prev-li",940258334),WJ=new $APP.K(null,"page-raw","page-raw",-1198808870),PJ=new $APP.K(null,"li","li",723558921),fK=new $APP.K(null,"ellipsis","ellipsis",998505738),gK=new $APP.K(null,"n","n",562130025),YJ=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),cK=new $APP.K(null,"sibling-count","sibling-count",1756034573);var qK="page total-pages sibling-count boundary-count size disabled label".split(" "),$J=new $APP.S(null,new $APP.R(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.fa("baredom.exports.x_pagination.init",sK);export const init=sK;
2
+ var WL=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.Ch,0<b.length?new $APP.Ub(b.slice(0),0,null):null)},XL=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},bM=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,[YL,g,ZL,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,[YL,h,ZL,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(YL.g(g));e.appendChild(YL.g(h));d.appendChild(e);b.appendChild(c);b.appendChild(d);b=new $APP.Q(null,6,[$APP.ti,d,$APP.Mk,e,$L,YL.g(g),$APP.Zi,ZL.g(g),aM,YL.g(h),$APP.Nh,ZL.g(h)],null);a.__xPaginationRefs=b;return $APP.k(a,"__xPaginationRefs")},cM=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},dM=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},nM=function(a){a=new $APP.Q(null,7,[eM,a.getAttribute("page"),fM,a.getAttribute("total-pages"),gM,a.getAttribute("sibling-count"),hM,a.getAttribute("boundary-count"),$APP.Cl,a.getAttribute("size"),$APP.ul,a.hasAttribute("disabled"),$APP.ki,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,eM),d=$APP.D(b,fM),e=$APP.D(b,gM),g=$APP.D(b,hM),h=$APP.D(b,$APP.Cl);a=$APP.D(b,$APP.ul);b=$APP.D(b,$APP.ki);d=XL(d);c=$APP.nh.i(1,$APP.oh.i(XL(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(iM,h)?h:"md";return new $APP.Q(null,7,[jM,c,kM,d,lM,g,mM,e,$APP.Hh,h,$APP.Fj,$APP.F(a),$APP.U,$APP.n(b)?b:"Pagination"],null)},qM=function(a){var b=bM(a),c=$APP.Mk.g(b),d=$APP.ti.g(b),e=$APP.Zi.g(b),g=$APP.Nh.g(b),h=$L.g(b);b=aM.g(b);var l=nM(a),m=$APP.M(l),p=$APP.D(m,jM),
9
+ q=$APP.D(m,kM),v=$APP.D(m,lM),x=$APP.D(m,mM),y=$APP.D(m,$APP.Hh);m=$APP.D(m,$APP.U);a:if(q<=0)q=$APP.fe;else{var A=$APP.oh.i(x,q);x=$APP.nh.i(q-x- -1,1);var B=$APP.nh.i(1,p-v);v=$APP.oh.i(q,p+v);q=$APP.We.i($APP.We.i($APP.We.i(WL(),$APP.dg(1,A+1)),$APP.dg(x,q+1)),$APP.dg(B,v+1));q=$APP.xe(q);B=$APP.fe;for(v=0;;){if(v>=$APP.z(q)){q=B;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(B,new $APP.Q(null,1,[$APP.Z,oM],null)):B;A=$APP.ld.i(x,new $APP.Q(null,2,
10
+ [$APP.Z,jM,pM,A],null));v+=1;B=A}q=void 0}d.setAttribute("aria-label",m);a.setAttribute("data-size",y);d=$APP.M(l);a=$APP.D(d,jM);d=$APP.D(d,$APP.Fj);$APP.n($APP.n(d)?d:a<=1)?e.setAttribute("disabled",""):e.removeAttribute("disabled");d=$APP.M(l);e=$APP.D(d,jM);a=$APP.D(d,kM);d=$APP.D(d,$APP.Fj);$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.C.i(oM,$APP.Z.g(d))?c.appendChild(dM()):
11
+ c.appendChild(cM(pM.g(d),$APP.C.i(pM.g(d),p),$APP.Fj.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.C.i(oM,$APP.Z.g(g))?c.appendChild(dM()):c.appendChild(cM(pM.g(g),$APP.C.i(pM.g(g),p),$APP.Fj.g(l))),g=$APP.w(h),h=null,e=0),a=0;else break;c.appendChild(b)},rM=function(a,b){return a.dispatchEvent(new CustomEvent("page-change",{detail:{page:b},bubbles:!0,composed:!0,cancelable:!1}))},sM=function(a,b){a:{b=b.composedPath();for(var c=b.length,
12
+ d=0;;)if(d<c){var e=b[d];if($APP.C.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.Zi.g(d);d=$APP.Nh.g(d);e=b.getAttribute("data-page");if(b===c)return c=nM(a),b=jM.g(c),b>1?rM(a,b-1):null;if(b===d)return c=nM(a),b=jM.g(c),c=kM.g(c),b<c?rM(a,b+1):null;if(e!=null)return b=parseInt(e,10),$APP.n(isFinite(b))?rM(a,b):null}return null},tM=function(a){function b(d){return sM(a,
13
+ d)}var c=bM(a);$APP.Mk.g(c).addEventListener("click",b);$APP.ja(a,"__xPaginationHandlers",{click:b})},uM=function(a){var b=$APP.k(a,"__xPaginationHandlers");if($APP.n(b)){var c=$APP.k(a,"__xPaginationRefs");$APP.n(c)&&(c=$APP.Mk.g(c),b=$APP.k(b,"click"),$APP.n($APP.n(c)?b:c)&&c.removeEventListener("click",b))}a.__xPaginationHandlers=null},vM=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})},wM=function(a,b,c){Object.defineProperty(a,b,{get:function(){return XL(this.getAttribute(c))},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)},enumerable:!0,configurable:!0})},xM=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})},yM=function(a){wM(a,"page","page");wM(a,"total-pages","total-pages");wM(a,"sibling-count","sibling-count");wM(a,"boundary-count","boundary-count");xM(a,"size","size","md");vM(a);xM(a,"label","label","Pagination")},AM=function(){var a=class extends HTMLElement{};a.observedAttributes=zM;a.prototype.connectedCallback=function(){bM(this);uM(this);tM(this);qM(this);return null};a.prototype.disconnectedCallback=function(){uM(this);return null};a.prototype.attributeChangedCallback=function(b,
16
+ c,d){$APP.N(c,d)&&qM(this);return null};yM(a.prototype);return a},BM=function(){$APP.n(customElements.get("x-pagination"))||customElements.define("x-pagination",AM());return null},fM=new $APP.K(null,"total-pages-raw","total-pages-raw",430880208),mM=new $APP.K(null,"boundary-count","boundary-count",1637925987),hM=new $APP.K(null,"boundary-count-raw","boundary-count-raw",410083250),kM=new $APP.K(null,"total-pages","total-pages",685894112),jM=new $APP.K(null,"page","page",849072397),aM=new $APP.K(null,
17
+ "next-li","next-li",648524823),ZL=new $APP.K(null,"btn","btn",1978294651),$L=new $APP.K(null,"prev-li","prev-li",940258334),eM=new $APP.K(null,"page-raw","page-raw",-1198808870),YL=new $APP.K(null,"li","li",723558921),oM=new $APP.K(null,"ellipsis","ellipsis",998505738),pM=new $APP.K(null,"n","n",562130025),gM=new $APP.K(null,"sibling-count-raw","sibling-count-raw",-620117200),lM=new $APP.K(null,"sibling-count","sibling-count",1756034573);var zM="page total-pages sibling-count boundary-count size disabled label".split(" "),iM=new $APP.S(null,new $APP.Q(null,3,["md",null,"lg",null,"sm",null],null),null);$APP.ha("baredom.exports.x_pagination.init",BM);export const init=BM;