aptechka 0.1.7 → 0.1.9

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 (65) hide show
  1. package/lib/abstract-elements/index.cjs +1 -1
  2. package/lib/abstract-elements/index.js +10 -14
  3. package/lib/accordion/AccordionElement.d.ts +1 -1
  4. package/lib/accordion/index.cjs +1 -1
  5. package/lib/accordion/index.js +25 -26
  6. package/lib/canvas/index.cjs +1 -1
  7. package/lib/canvas/index.js +15 -15
  8. package/lib/connector/index.cjs +1 -1
  9. package/lib/connector/index.d.ts +4 -4
  10. package/lib/connector/index.js +34 -32
  11. package/lib/{createStylesheet-C1rimcGc.cjs → createStylesheet-BoJwXvjE.cjs} +1 -1
  12. package/lib/{createStylesheet-BSXZrWW6.js → createStylesheet-DSgkNlUZ.js} +1 -1
  13. package/lib/element-constructor/ElementConstructor.d.ts +13 -15
  14. package/lib/element-constructor/index.cjs +1 -1
  15. package/lib/element-constructor/index.js +91 -89
  16. package/lib/element-constructor/tags.d.ts +3 -1
  17. package/lib/events-Crwi8fz6.cjs +1 -0
  18. package/lib/{events-CoqmkUxo.js → events-_C2CztxR.js} +1 -1
  19. package/lib/{index-dBwVZz_v.js → index-228VqUsZ.js} +66 -75
  20. package/lib/index-Cv4y7_7y.cjs +9 -0
  21. package/lib/modal/index.cjs +1 -1
  22. package/lib/modal/index.js +33 -39
  23. package/lib/scroll/index.cjs +1 -1
  24. package/lib/scroll/index.js +66 -68
  25. package/lib/select/SelectElement.d.ts +1 -1
  26. package/lib/select/index.cjs +1 -1
  27. package/lib/select/index.d.ts +1 -1
  28. package/lib/select/index.js +1 -1
  29. package/lib/store/index.cjs +1 -1
  30. package/lib/store/index.js +111 -48
  31. package/lib/studio/index.cjs +6 -6
  32. package/lib/studio/index.js +313 -360
  33. package/lib/tags-920hsh9U.cjs +1 -0
  34. package/lib/tags-kZqsS_nJ.js +793 -0
  35. package/lib/theme/index.cjs +1 -1
  36. package/lib/theme/index.js +1 -1
  37. package/lib/ticker/index.js +14 -4
  38. package/lib/utils/events.d.ts +1 -1
  39. package/lib/utils/index.cjs +1 -1
  40. package/lib/utils/index.d.ts +1 -1
  41. package/lib/utils/index.js +1 -1
  42. package/lib/utils/ts-utility.d.ts +2 -2
  43. package/package.json +1 -9
  44. package/lib/Composed-C2Vv1xxR.cjs +0 -1
  45. package/lib/Composed-DhtYBEmo.js +0 -79
  46. package/lib/events-D68xg4dy.cjs +0 -1
  47. package/lib/index-vI4hmrI8.cjs +0 -9
  48. package/lib/jsx/ComponentElement.d.ts +0 -17
  49. package/lib/jsx/h.d.ts +0 -8
  50. package/lib/jsx/hooks/animation-frame.d.ts +0 -5
  51. package/lib/jsx/hooks/animation.d.ts +0 -3
  52. package/lib/jsx/hooks/basic.d.ts +0 -4
  53. package/lib/jsx/hooks/element-resize.d.ts +0 -3
  54. package/lib/jsx/hooks/intersection.d.ts +0 -3
  55. package/lib/jsx/hooks/store.d.ts +0 -6
  56. package/lib/jsx/hooks/style.d.ts +0 -2
  57. package/lib/jsx/hooks/utils.d.ts +0 -4
  58. package/lib/jsx/hooks/window-resize.d.ts +0 -2
  59. package/lib/jsx/index.cjs +0 -1
  60. package/lib/jsx/index.d.ts +0 -11
  61. package/lib/jsx/index.js +0 -193
  62. package/lib/jsx/render.d.ts +0 -2
  63. package/lib/jsx/type.d.ts +0 -187
  64. package/lib/tags-D-lzPz_v.js +0 -748
  65. package/lib/tags-DkAbVUQP.cjs +0 -1
@@ -1,23 +1,23 @@
1
- import { define as m } from "../custom-element/index.js";
1
+ import { define as g } from "../custom-element/index.js";
2
2
  import "../Store-JOKrNVEr.js";
3
- import { i as g } from "../browser-0zX67oeU.js";
4
- import { e as w, D as d, aY as _, ay as f, aB as y } from "../tags-D-lzPz_v.js";
5
- import { c as C } from "../createStylesheet-BSXZrWW6.js";
6
- import { PopoverElement as k } from "../popover/index.js";
3
+ import { i as w } from "../browser-0zX67oeU.js";
4
+ import { e as d, D as f, ay as u, aB as _ } from "../tags-kZqsS_nJ.js";
5
+ import { c as y } from "../createStylesheet-DSgkNlUZ.js";
6
+ import { PopoverElement as C } from "../popover/index.js";
7
7
  import { aptechkaTheme as h } from "../theme/index.js";
8
- var x = Object.defineProperty, z = Object.getOwnPropertyDescriptor, P = (t, e, o, r) => {
9
- for (var n = r > 1 ? void 0 : r ? z(e, o) : e, l = t.length - 1, c; l >= 0; l--)
8
+ var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
9
+ for (var n = r > 1 ? void 0 : r ? x(e, o) : e, l = t.length - 1, c; l >= 0; l--)
10
10
  (c = t[l]) && (n = (r ? c(e, o, n) : c(n)) || n);
11
- return r && n && x(e, o, n), n;
11
+ return r && n && k(e, o, n), n;
12
12
  }, b = (t, e, o) => {
13
13
  if (!e.has(t))
14
14
  throw TypeError("Cannot " + o);
15
- }, i = (t, e, o) => (b(t, e, "read from private field"), o ? o.call(t) : e.get(t)), u = (t, e, o) => {
15
+ }, a = (t, e, o) => (b(t, e, "read from private field"), o ? o.call(t) : e.get(t)), p = (t, e, o) => {
16
16
  if (e.has(t))
17
17
  throw TypeError("Cannot add the same private member more than once");
18
18
  e instanceof WeakSet ? e.add(t) : e.set(t, o);
19
- }, p = (t, e, o, r) => (b(t, e, "write to private field"), r ? r.call(t, o) : e.set(t, o), o), s, a;
20
- const S = C({
19
+ }, v = (t, e, o, r) => (b(t, e, "write to private field"), r ? r.call(t, o) : e.set(t, o), o), s, i;
20
+ const P = y({
21
21
  ":host": {
22
22
  position: "fixed",
23
23
  top: "0",
@@ -92,53 +92,47 @@ const S = C({
92
92
  transform: "rotate(45deg)"
93
93
  }
94
94
  });
95
- let v = class extends k {
95
+ let m = class extends C {
96
96
  constructor() {
97
- super(), u(this, s, null), u(this, a, null), g && (this.openShadow(S), w(this, {
98
- shadowChildren: d({
97
+ super(), p(this, s, null), p(this, i, null), w && (this.openShadow(P), d(this, {
98
+ children: f({
99
99
  class: "inner",
100
- attributes: {
101
- outside: !0
102
- },
103
- children: d({
100
+ outside: !0,
101
+ children: f({
104
102
  class: "content",
105
103
  children: [
106
- _("e-popover-button", {
107
- attributes: {
108
- type: "close",
109
- target: this.id
110
- },
104
+ d("e-popover-button", {
105
+ type: "close",
106
+ target: this.id,
111
107
  class: "close-button",
112
108
  children: [
113
- f({
114
- attributes: {
115
- name: "close-button"
116
- },
117
- children: y({ class: "close-button-default" })
109
+ u({
110
+ name: "close-button",
111
+ children: _({ class: "close-button-default" })
118
112
  })
119
113
  ]
120
114
  }),
121
- f()
115
+ u()
122
116
  ]
123
117
  }),
124
- ref: (t) => p(this, a, t)
118
+ ref: (t) => v(this, i, t)
125
119
  })
126
- }), p(this, s, new ResizeObserver(() => {
127
- i(this, a).scrollHeight > i(this, a).clientHeight ? this.classList.add("overflow") : this.classList.remove("overflow");
120
+ }), v(this, s, new ResizeObserver(() => {
121
+ a(this, i).scrollHeight > a(this, i).clientHeight ? this.classList.add("overflow") : this.classList.remove("overflow");
128
122
  })));
129
123
  }
130
124
  connectedCallback() {
131
- super.connectedCallback(), i(this, s).observe(this);
125
+ super.connectedCallback(), a(this, s).observe(this);
132
126
  }
133
127
  disconnectedCallback() {
134
- super.disconnectedCallback(), i(this, s).disconnect();
128
+ super.disconnectedCallback(), a(this, s).disconnect();
135
129
  }
136
130
  };
137
131
  s = /* @__PURE__ */ new WeakMap();
138
- a = /* @__PURE__ */ new WeakMap();
139
- v = P([
140
- m("e-modal")
141
- ], v);
132
+ i = /* @__PURE__ */ new WeakMap();
133
+ m = z([
134
+ g("e-modal")
135
+ ], m);
142
136
  export {
143
- v as ModalElement
137
+ m as ModalElement
144
138
  };
@@ -1 +1 @@
1
- "use strict";var Ct=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var h=(i,e,s)=>(Ct(i,e,"read from private field"),s?s.call(i):e.get(i)),D=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},O=(i,e,s,n)=>(Ct(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const qt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),At=require("../browser-CpzFX2xg.cjs"),I=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Tt=require("../Damped-BwpMU9Gi.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-CfDeGCOU.cjs"),wt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),H=require("../scroll-entries/index.cjs"),P=require("../tags-DkAbVUQP.cjs"),Lt=require("../createStylesheet-C1rimcGc.cjs"),Vt=require("../dom-qY2LdCVL.cjs");var It=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Ft=(i,e,s,n)=>{for(var r=n>1?void 0:n?Ht(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&It(e,s,r),r},yt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(yt(i,e,"read from private field"),s?s.call(i):e.get(i)),l=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},m=(i,e,s,n)=>(yt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),f=(i,e,s)=>(yt(i,e,"access private method"),s),a,M,T,$,V,X,y,Y,j,tt,u,dt,c,et,st,_,p,k,F,b,G,R,N,ft,B,U,mt,kt,bt,Wt,it,vt,rt,_t,q,gt,St,Ot,nt,ht,Et,S,g,L,W;class Bt{constructor(e,s){D(this,S,void 0);D(this,g,void 0);D(this,L,0);D(this,W,0);O(this,S,e),O(this,g,s),H.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){H.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,g).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,g).vertical?I.getCumulativeOffsetTop(h(this,S)):I.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,g).contentPosition)}transform(){let e=0;h(this,g).infiniteAttribute.current&&h(this,g).overscroll&&h(this,W)+h(this,L)<h(this,g).currentScrollValue&&(e=h(this,g).distance*-1),H.scrollEntries.update(h(this,S),h(this,g).axisAttibute.current,e);const s=h(this,g).viewportSize-h(this,L),n=zt.clamp(h(this,g).currentScrollValue+e,h(this,W)-h(this,g).viewportSize-s,h(this,W)+h(this,L)+s);h(this,g).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,g=new WeakMap,L=new WeakMap,W=new WeakMap;const Gt=Lt.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends wt.CustomElement{constructor(e){if(super(),l(this,N),l(this,B),l(this,mt),l(this,bt),l(this,it),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:s=>Math.max(0,s-1)})),l(this,$,new x.Attribute(this,"split",!1)),l(this,V,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,st,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,F,null),l(this,b,new qt.Store(0)),l(this,G,0),l(this,R,0),l(this,q,()=>{const s=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?I.getCumulativeOffsetTop(this):I.getCumulativeOffsetLeft(this)),m(this,st,this.vertical?I.getCumulativeOffsetTop(t(this,u)):I.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,V).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(s*t(this,p),!0)}),l(this,gt,()=>{const s=this.currentScrollValue;if(m(this,G,Math.max(0,s-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;H.scrollEntries.update(this,t(this,M).current,s)}),l(this,nt,s=>{if(typeof s=="number")if(t(this,V).current){const n=Math.sign(s);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(s);else s==="min"?t(this,a).set(t(this,a).min.current):s==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let s,n=e||this.getAttribute("name");n&&(s={name:n}),m(this,a,new Tt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:s})),this.openShadow(Gt),P.element(this,{attributes:{tabIndex:0},shadowChildren:[P.div({class:"static",children:[P.slot({attributes:{name:"static"}})]}),P.div({class:"content",children:[P.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,F,new Mt.KeyboardControls({element:this})),t(this,F).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,q).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,q).call(this)}),t(this,$).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,B,U).call(this))}),t(this,V).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,B,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,$).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,it,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,$)}get sectionalAttibute(){return t(this,V)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,st)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,s="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Ot).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let w=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?w=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?w=d.position-(t(this,p)+t(this,_)):w=d.position-r.position:w=d.position-r.position,t(this,a).shift(w,s==="instant")}}shiftSections(e,s="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,s)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,it,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;$=new WeakMap;V=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;st=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;F=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,B,U).call(this),t(this,dt).assignedElements().forEach(i=>{i instanceof HTMLElement&&t(this,c).push(new Bt(i,this))}),t(this,u).style.transform="",t(this,q).call(this)};B=new WeakSet;U=function(){t(this,c).forEach(i=>{i.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,gt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,F).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,gt)),t(this,k).connect(),t(this,F).connect()};it=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,q)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,$).current&&f(this,B,U).call(this),H.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,$).current&&f(this,N,ft).call(this),H.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,q),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};q=new WeakMap;gt=new WeakMap;St=new WeakSet;Ot=function(i){t(this,y).current?(t(this,b).current=i%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(i,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(i="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[i]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[i]};exports.ScrollElement=Ft([wt.define("e-scroll")],exports.ScrollElement);var J;class Kt extends wt.CustomElement{constructor(){super(...arguments);D(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const s=Vt.findParentElement(this,exports.ScrollElement);s instanceof exports.ScrollElement?O(this,J,s):console.error(this,"e-scroll not found")}}J=new WeakMap;var Zt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Ut=(i,e,s,n)=>{for(var r=n>1?void 0:n?Nt(e,s):e,d=i.length-1,w;d>=0;d--)(w=i[d])&&(r=(n?w(e,s,r):w(r))||r);return n&&r&&Zt(e,s,r),r},Rt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},o=(i,e,s)=>(Rt(i,e,"read from private field"),s?s.call(i):e.get(i)),E=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},C=(i,e,s,n)=>(Rt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),lt,v,A,z,K,Z,ot,at,ct,ut;const Jt=Lt.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Kt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const s=w=>{const Q=o(this,A)?w.x:w.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",s),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",s),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Jt),P.element(this,{shadowChildren:[P.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Ut([wt.define("e-scrollbar")],exports.ScrollbarElement);
1
+ "use strict";var Ct=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var h=(s,e,i)=>(Ct(s,e,"read from private field"),i?i.call(s):e.get(s)),D=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},O=(s,e,i,n)=>(Ct(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const qt=require("../Store-D0_rDIsE.cjs"),Dt=require("../Derived-SjPdLJiZ.cjs"),At=require("../browser-CpzFX2xg.cjs"),I=require("../layout-8ryRAMGJ.cjs"),zt=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const Tt=require("../Damped-BwpMU9Gi.cjs"),x=require("../attribute/index.cjs"),Mt=require("../WheelControls-CfDeGCOU.cjs"),gt=require("../custom-element/index.cjs"),xt=require("../order/index.cjs"),pt=require("../window-resizer/index.cjs"),H=require("../scroll-entries/index.cjs"),P=require("../tags-920hsh9U.cjs"),Lt=require("../createStylesheet-BoJwXvjE.cjs"),Vt=require("../dom-qY2LdCVL.cjs");var It=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Ft=(s,e,i,n)=>{for(var r=n>1?void 0:n?Ht(e,i):e,d=s.length-1,g;d>=0;d--)(g=s[d])&&(r=(n?g(e,i,r):g(r))||r);return n&&r&&It(e,i,r),r},yt=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},t=(s,e,i)=>(yt(s,e,"read from private field"),i?i.call(s):e.get(s)),l=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},m=(s,e,i,n)=>(yt(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i),f=(s,e,i)=>(yt(s,e,"access private method"),i),a,M,T,$,V,X,y,Y,j,tt,u,dt,c,et,it,_,p,k,F,b,G,R,N,ft,B,U,mt,kt,bt,Wt,st,vt,rt,_t,q,wt,St,Ot,nt,ht,Et,S,w,L,W;class Bt{constructor(e,i){D(this,S,void 0);D(this,w,void 0);D(this,L,0);D(this,W,0);O(this,S,e),O(this,w,i),H.scrollEntries.register(h(this,S))}get size(){return h(this,L)}get position(){return h(this,W)}destroy(){H.scrollEntries.unregister(h(this,S)),h(this,S).style.transform=""}resize(){O(this,L,h(this,w).vertical?h(this,S).offsetHeight:h(this,S).offsetWidth),O(this,W,h(this,w).vertical?I.getCumulativeOffsetTop(h(this,S)):I.getCumulativeOffsetLeft(h(this,S))),O(this,W,h(this,W)-h(this,w).contentPosition)}transform(){let e=0;h(this,w).infiniteAttribute.current&&h(this,w).overscroll&&h(this,W)+h(this,L)<h(this,w).currentScrollValue&&(e=h(this,w).distance*-1),H.scrollEntries.update(h(this,S),h(this,w).axisAttibute.current,e);const i=h(this,w).viewportSize-h(this,L),n=zt.clamp(h(this,w).currentScrollValue+e,h(this,W)-h(this,w).viewportSize-i,h(this,W)+h(this,L)+i);h(this,w).vertical?h(this,S).style.transform=`translate3d(0px, ${n*-1}px, 0px)`:h(this,S).style.transform=`translate3d(${n*-1}px, 0px, 0px)`}}S=new WeakMap,w=new WeakMap,L=new WeakMap,W=new WeakMap;const Gt=Lt.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"absolute",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});exports.ScrollElement=class extends gt.CustomElement{constructor(e){if(super(),l(this,N),l(this,B),l(this,mt),l(this,bt),l(this,st),l(this,rt),l(this,St),l(this,ht),l(this,a,null),l(this,M,new x.Attribute(this,"axis","y")),l(this,T,new x.Attribute(this,"pages",0,{validate:i=>Math.max(0,i-1)})),l(this,$,new x.Attribute(this,"split",!1)),l(this,V,new x.Attribute(this,"sectional",!1)),l(this,X,new x.Attribute(this,"wheel-max-delta",!1)),l(this,y,new x.Attribute(this,"infinite",!1)),l(this,Y,new x.Attribute(this,"damping",.03)),l(this,j,new x.Attribute(this,"disabled",!1)),l(this,tt,new x.Attribute(this,"hibernated",!1)),l(this,u,null),l(this,dt,null),l(this,c,[]),l(this,et,0),l(this,it,0),l(this,_,0),l(this,p,0),l(this,k,null),l(this,F,null),l(this,b,new qt.Store(0)),l(this,G,0),l(this,R,0),l(this,q,()=>{const i=this.currentScrollValue/t(this,p);if(m(this,et,this.vertical?I.getCumulativeOffsetTop(this):I.getCumulativeOffsetLeft(this)),m(this,it,this.vertical?I.getCumulativeOffsetTop(t(this,u)):I.getCumulativeOffsetLeft(t(this,u))),m(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,T).current){m(this,p,t(this,_)*t(this,T).current);const n=t(this,p)+t(this,_);this.vertical?(t(this,u).style.width=n+"px",t(this,u).style.height="100%"):(t(this,u).style.height=n+"px",t(this,u).style.width="100%")}else this.vertical?(t(this,u).style.width="100%",t(this,u).style.height="max-content",m(this,p,t(this,u).offsetHeight-t(this,_))):(t(this,u).style.width="max-content",t(this,u).style.height="100%",m(this,p,t(this,u).offsetWidth-t(this,_)));if(!t(this,y).current){const n=getComputedStyle(this);m(this,p,t(this,p)+(this.vertical?parseFloat(n.paddingBlockStart)+parseFloat(n.paddingBlockEnd):parseFloat(n.paddingInlineStart)+parseFloat(n.paddingInlineEnd))),t(this,a).max.current=t(this,p)}if(t(this,c).forEach(n=>{n.resize(),n.transform()}),t(this,y).current&&t(this,c).length){const n=t(this,c)[t(this,c).length-1],r=n.position+n.size-t(this,_),d=t(this,p)-r;m(this,R,n.position+n.size+d)}else m(this,R,t(this,p));if(t(this,V).current&&t(this,c).length){const n=t(this,c)[t(this,b).current];t(this,a).set(n.position,!0)}else t(this,a).set(i*t(this,p),!0)}),l(this,wt,()=>{const i=this.currentScrollValue;if(m(this,G,Math.max(0,i-t(this,p))),t(this,c).length){let n=0;for(let r=0;r<t(this,c).length;r++){const d=t(this,c)[r];d.transform(),this.targetScrollValue+this.viewportSize/2>=d.position&&(n=r)}t(this,b).current=n}else this.vertical?t(this,u).style.transform=`translate3d(0px, ${i*-1}px, 0px)`:t(this,u).style.transform=`translate3d(${i*-1}px, 0px, 0px)`;H.scrollEntries.update(this,t(this,M).current,i)}),l(this,nt,i=>{if(typeof i=="number")if(t(this,V).current){const n=Math.sign(i);t(this,c).length?this.shiftSections(n):t(this,a).shift(n*t(this,_))}else t(this,a).shift(i);else i==="min"?t(this,a).set(t(this,a).min.current):i==="max"&&t(this,a).set(t(this,a).delta)}),At.isBrowser){let i,n=e||this.getAttribute("name");n&&(i={name:n}),m(this,a,new Tt.Damped({damping:.01,min:0,order:xt.TICK_ORDER.SCROLL,passport:i})),this.openShadow(Gt),P.element(this,{tabIndex:0,children:[P.div({class:"static",children:[P.slot({name:"static"})]}),P.div({class:"content",children:[P.slot({ref:r=>m(this,dt,r)})],style:{flexDirection:new Dt.Derived(t(this,M),r=>r==="x"?"row":"column")},ref:r=>m(this,u,r)})]}),m(this,k,new Mt.WheelControls({element:this})),t(this,k).changeEvent.subscribe(t(this,nt)),m(this,F,new Mt.KeyboardControls({element:this})),t(this,F).changeEvent.subscribe(t(this,nt)),t(this,M).subscribe(({current:r})=>{t(this,u).style.flexDirection=r==="x"?"row":"column",t(this,k).axis=t(this,X).current?"max":r,this.isConnected&&t(this,q).call(this)}),t(this,X).subscribe(r=>{t(this,k).axis=r.current?"max":t(this,M).current}),t(this,T).subscribe(()=>{this.isConnected&&t(this,q).call(this)}),t(this,$).subscribe(({current:r})=>{this.isConnected&&(r?f(this,N,ft).call(this):f(this,B,U).call(this))}),t(this,V).subscribe(r=>{t(this,b).current=0,t(this,k).debounce=r.current,t(this,a).reset(),this.isConnected&&(r.current&&!r.previous?f(this,N,ft).call(this):!r.current&&r.previous&&f(this,B,U).call(this))}),t(this,y).subscribe(r=>{r.current?(this.isConnected&&(t(this,c).length||(t(this,$).current=!0)),t(this,c).length&&(t(this,a).max.current=1/0,t(this,a).min.current=-1/0)):(m(this,G,0),t(this,a).max.current=t(this,p),t(this,a).min.current=0)}),t(this,Y).subscribe(r=>{t(this,a).damping=r.current}),t(this,j).subscribe(r=>{r.current&&!r.previous?f(this,mt,kt).call(this):!r.current&&r.previous&&f(this,bt,Wt).call(this)}),t(this,tt).subscribe(r=>{r.current&&!r.previous?f(this,st,vt).call(this):!r.current&&r.previous&&f(this,rt,_t).call(this)})}}get currentScrollValue(){return f(this,ht,Et).call(this,"current")}get targetScrollValue(){return f(this,ht,Et).call(this,"target")}get damped(){return t(this,a)}get dampedAttibute(){return t(this,a)}get axisAttibute(){return t(this,M)}get pagesAttibute(){return t(this,T)}get splitAttibute(){return t(this,$)}get sectionalAttibute(){return t(this,V)}get infiniteAttribute(){return t(this,y)}get dampingAttibute(){return t(this,Y)}get disabledAttibute(){return t(this,j)}get hibernatedAttibute(){return t(this,tt)}get contentElement(){return t(this,u)}get position(){return t(this,et)}get contentPosition(){return t(this,it)}get viewportSize(){return t(this,_)}get scrollSize(){return t(this,p)}get counter(){return t(this,b)}get distance(){return t(this,R)}get overscroll(){return t(this,G)}get vertical(){return t(this,M).current==="y"}get currentProgress(){return this.currentScrollValue/t(this,R)}get targetProgress(){return this.targetScrollValue/t(this,R)}scrollToSection(e,i="smooth"){if(!t(this,c).length)return;const n=t(this,b).current;f(this,St,Ot).call(this,e);const r=t(this,c)[n],d=t(this,c)[t(this,b).current];if(r&&d){let g=0;const Q=t(this,c).length-1;t(this,y).current?t(this,b).current===0&&n===Q?g=t(this,p)+t(this,_)-r.position:t(this,b).current===Q&&n===0?g=d.position-(t(this,p)+t(this,_)):g=d.position-r.position:g=d.position-r.position,t(this,a).shift(g,i==="instant")}}shiftSections(e,i="smooth"){t(this,c).length&&this.scrollToSection(t(this,b).current+e,i)}connectedCallback(){f(this,rt,_t).call(this)}disconnectedCallback(){f(this,st,vt).call(this)}};a=new WeakMap;M=new WeakMap;T=new WeakMap;$=new WeakMap;V=new WeakMap;X=new WeakMap;y=new WeakMap;Y=new WeakMap;j=new WeakMap;tt=new WeakMap;u=new WeakMap;dt=new WeakMap;c=new WeakMap;et=new WeakMap;it=new WeakMap;_=new WeakMap;p=new WeakMap;k=new WeakMap;F=new WeakMap;b=new WeakMap;G=new WeakMap;R=new WeakMap;N=new WeakSet;ft=function(){f(this,B,U).call(this),t(this,dt).assignedElements().forEach(s=>{s instanceof HTMLElement&&t(this,c).push(new Bt(s,this))}),t(this,u).style.transform="",t(this,q).call(this)};B=new WeakSet;U=function(){t(this,c).forEach(s=>{s.destroy()}),m(this,c,[])};mt=new WeakSet;kt=function(){t(this,a).unsubscribe(t(this,wt)),t(this,a).unlistenAnimationFrame(),t(this,k).disconnect(),t(this,F).disconnect()};bt=new WeakSet;Wt=function(){t(this,a).subscribe(t(this,wt)),t(this,k).connect(),t(this,F).connect()};st=new WeakSet;vt=function(){pt.windowResizer.unsubscribe(t(this,q)),t(this,a).reset(),f(this,mt,kt).call(this),t(this,u).style.transform="",t(this,$).current&&f(this,B,U).call(this),H.scrollEntries.unregister(this)};rt=new WeakSet;_t=function(){t(this,$).current&&f(this,N,ft).call(this),H.scrollEntries.register(this),pt.windowResizer.subscribe(t(this,q),xt.RESIZE_ORDER.SCROLL),f(this,bt,Wt).call(this)};q=new WeakMap;wt=new WeakMap;St=new WeakSet;Ot=function(s){t(this,y).current?(t(this,b).current=s%t(this,c).length,t(this,b).current=t(this,b).current<0?t(this,c).length+t(this,b).current:t(this,b).current):t(this,b).current=zt.clamp(s,0,t(this,c).length-1)};nt=new WeakMap;ht=new WeakSet;Et=function(s="current"){if(t(this,y).current&&t(this,c).length){const e=t(this,a)[s]%(t(this,p)+t(this,_));return e<0?t(this,p)+e+t(this,_):e}else return t(this,a)[s]};exports.ScrollElement=Ft([gt.define("e-scroll")],exports.ScrollElement);var J;class Kt extends gt.CustomElement{constructor(){super(...arguments);D(this,J,null)}get scrollElement(){return h(this,J)}connectedCallback(){const i=Vt.findParentElement(this,exports.ScrollElement);i instanceof exports.ScrollElement?O(this,J,i):console.error(this,"e-scroll not found")}}J=new WeakMap;var Zt=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,Ut=(s,e,i,n)=>{for(var r=n>1?void 0:n?Nt(e,i):e,d=s.length-1,g;d>=0;d--)(g=s[d])&&(r=(n?g(e,i,r):g(r))||r);return n&&r&&Zt(e,i,r),r},Rt=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>(Rt(s,e,"read from private field"),i?i.call(s):e.get(s)),E=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},C=(s,e,i,n)=>(Rt(s,e,"write to private field"),n?n.call(s,i):e.set(s,i),i),lt,v,A,z,K,Z,ot,at,ct,ut;const Jt=Lt.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:"#efefef"},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:"#181818",borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});exports.ScrollbarElement=class extends Kt{constructor(){super(),E(this,lt,null),E(this,v,null),E(this,A,!1),E(this,z,0),E(this,K,0),E(this,Z,0),E(this,ot,()=>{C(this,A,this.offsetWidth>this.offsetHeight);const e=o(this,A)?this.offsetWidth:this.offsetHeight;C(this,z,e/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/e)),C(this,z,Math.max(o(this,z),30)),o(this,A)?(o(this,v).style.width=o(this,z)+"px",o(this,v).style.height="100%"):(o(this,v).style.width="100%",o(this,v).style.height=o(this,z)+"px"),C(this,K,e-o(this,z)),this.scrollElement.scrollSize||(this.style.display="none")}),E(this,at,()=>{C(this,Z,this.scrollElement.currentProgress*o(this,K)),o(this,A)?o(this,v).style.transform=`translate3d(${o(this,Z)}px, 0px, 0px)`:o(this,v).style.transform=`translate3d(0px, ${o(this,Z)}px, 0px)`}),E(this,ct,()=>{this.setAttribute("axis",this.scrollElement.axisAttibute.current)}),E(this,ut,e=>{const i=g=>{const Q=o(this,A)?g.x:g.y,Pt=this.scrollElement.distance/o(this,K),$t=(Q-d)*Pt;this.scrollElement.damped.set(r+$t)},n=()=>{removeEventListener("pointermove",i),removeEventListener("pointerup",n),removeEventListener("touchend",n)};addEventListener("pointermove",i),addEventListener("pointerup",n),addEventListener("touchend",n);const r=this.scrollElement.damped.target,d=o(this,A)?e.x:e.y}),At.isBrowser&&(this.openShadow(Jt),P.element(this,{children:[P.slot({ref:e=>C(this,lt,e)})]}))}get thumbElement(){return o(this,v)}connectedCallback(){super.connectedCallback();const e=o(this,lt).assignedElements()[0];e instanceof HTMLElement?C(this,v,e):(C(this,v,document.createElement("div")),o(this,v).classList.add("default-thumb"),this.shadowRoot.appendChild(o(this,v))),o(this,v).addEventListener("pointerdown",o(this,ut)),pt.windowResizer.subscribe(o(this,ot),xt.RESIZE_ORDER.SCROLL+1),this.scrollElement.damped.subscribe(o(this,at)),this.scrollElement.axisAttibute.subscribe(o(this,ct))}disconnectedCallback(){o(this,v).removeEventListener("pointerdown",o(this,ut)),pt.windowResizer.unsubscribe(o(this,ot)),this.scrollElement.damped.unsubscribe(o(this,at)),this.scrollElement.axisAttibute.unsubscribe(o(this,ct))}};lt=new WeakMap;v=new WeakMap;A=new WeakMap;z=new WeakMap;K=new WeakMap;Z=new WeakMap;ot=new WeakMap;at=new WeakMap;ct=new WeakMap;ut=new WeakMap;exports.ScrollbarElement=Ut([gt.define("e-scrollbar")],exports.ScrollbarElement);
@@ -2,11 +2,11 @@ var yt = (i, s, e) => {
2
2
  if (!s.has(i))
3
3
  throw TypeError("Cannot " + e);
4
4
  };
5
- var n = (i, s, e) => (yt(i, s, "read from private field"), e ? e.call(i) : s.get(i)), V = (i, s, e) => {
5
+ var r = (i, s, e) => (yt(i, s, "read from private field"), e ? e.call(i) : s.get(i)), V = (i, s, e) => {
6
6
  if (s.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
9
- }, $ = (i, s, e, r) => (yt(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e);
9
+ }, $ = (i, s, e, n) => (yt(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e);
10
10
  import { S as Ht } from "../Store-JOKrNVEr.js";
11
11
  import { D as Ft } from "../Derived-Bc88XJ8J.js";
12
12
  import { i as At } from "../browser-0zX67oeU.js";
@@ -20,13 +20,13 @@ import { CustomElement as Lt, define as $t } from "../custom-element/index.js";
20
20
  import { TICK_ORDER as Nt, RESIZE_ORDER as Pt } from "../order/index.js";
21
21
  import { windowResizer as ot } from "../window-resizer/index.js";
22
22
  import { scrollEntries as I } from "../scroll-entries/index.js";
23
- import { e as Ot, D as Mt, ay as bt } from "../tags-D-lzPz_v.js";
24
- import { c as Dt } from "../createStylesheet-BSXZrWW6.js";
23
+ import { e as Ot, D as Mt, ay as bt } from "../tags-kZqsS_nJ.js";
24
+ import { c as Dt } from "../createStylesheet-DSgkNlUZ.js";
25
25
  import { f as Ut } from "../dom-BY7JhTx5.js";
26
- var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s, e, r) => {
27
- for (var a = r > 1 ? void 0 : r ? qt(s, e) : s, g = i.length - 1, x; g >= 0; g--)
28
- (x = i[g]) && (a = (r ? x(s, e, a) : x(a)) || a);
29
- return r && a && Zt(s, e, a), a;
26
+ var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s, e, n) => {
27
+ for (var a = n > 1 ? void 0 : n ? qt(s, e) : s, g = i.length - 1, x; g >= 0; g--)
28
+ (x = i[g]) && (a = (n ? x(s, e, a) : x(a)) || a);
29
+ return n && a && Zt(s, e, a), a;
30
30
  }, Et = (i, s, e) => {
31
31
  if (!s.has(i))
32
32
  throw TypeError("Cannot " + e);
@@ -34,40 +34,40 @@ var Zt = Object.defineProperty, qt = Object.getOwnPropertyDescriptor, Jt = (i, s
34
34
  if (s.has(i))
35
35
  throw TypeError("Cannot add the same private member more than once");
36
36
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
37
- }, d = (i, s, e, r) => (Et(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e), f = (i, s, e) => (Et(i, s, "access private method"), e), o, C, R, O, T, q, k, J, Q, X, u, ct, c, Y, j, v, p, W, H, m, B, P, N, ut, F, U, pt, kt, ft, Wt, tt, vt, et, _t, D, mt, xt, Vt, st, it, St, _, w, L, y;
37
+ }, d = (i, s, e, n) => (Et(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e), f = (i, s, e) => (Et(i, s, "access private method"), e), o, C, R, O, T, q, k, J, Q, X, u, ct, c, Y, j, v, p, W, H, m, B, P, N, ut, F, U, pt, kt, ft, Wt, tt, vt, et, _t, D, mt, xt, Vt, st, it, St, _, w, L, y;
38
38
  class Qt {
39
39
  constructor(s, e) {
40
40
  V(this, _, void 0);
41
41
  V(this, w, void 0);
42
42
  V(this, L, 0);
43
43
  V(this, y, 0);
44
- $(this, _, s), $(this, w, e), I.register(n(this, _));
44
+ $(this, _, s), $(this, w, e), I.register(r(this, _));
45
45
  }
46
46
  get size() {
47
- return n(this, L);
47
+ return r(this, L);
48
48
  }
49
49
  get position() {
50
- return n(this, y);
50
+ return r(this, y);
51
51
  }
52
52
  destroy() {
53
- I.unregister(n(this, _)), n(this, _).style.transform = "";
53
+ I.unregister(r(this, _)), r(this, _).style.transform = "";
54
54
  }
55
55
  resize() {
56
- $(this, L, n(this, w).vertical ? n(this, _).offsetHeight : n(this, _).offsetWidth), $(this, y, n(this, w).vertical ? gt(n(this, _)) : wt(n(this, _))), $(this, y, n(this, y) - n(this, w).contentPosition);
56
+ $(this, L, r(this, w).vertical ? r(this, _).offsetHeight : r(this, _).offsetWidth), $(this, y, r(this, w).vertical ? gt(r(this, _)) : wt(r(this, _))), $(this, y, r(this, y) - r(this, w).contentPosition);
57
57
  }
58
58
  transform() {
59
59
  let s = 0;
60
- n(this, w).infiniteAttribute.current && n(this, w).overscroll && n(this, y) + n(this, L) < n(this, w).currentScrollValue && (s = n(this, w).distance * -1), I.update(
61
- n(this, _),
62
- n(this, w).axisAttibute.current,
60
+ r(this, w).infiniteAttribute.current && r(this, w).overscroll && r(this, y) + r(this, L) < r(this, w).currentScrollValue && (s = r(this, w).distance * -1), I.update(
61
+ r(this, _),
62
+ r(this, w).axisAttibute.current,
63
63
  s
64
64
  );
65
- const e = n(this, w).viewportSize - n(this, L), r = zt(
66
- n(this, w).currentScrollValue + s,
67
- n(this, y) - n(this, w).viewportSize - e,
68
- n(this, y) + n(this, L) + e
65
+ const e = r(this, w).viewportSize - r(this, L), n = zt(
66
+ r(this, w).currentScrollValue + s,
67
+ r(this, y) - r(this, w).viewportSize - e,
68
+ r(this, y) + r(this, L) + e
69
69
  );
70
- n(this, w).vertical ? n(this, _).style.transform = `translate3d(0px, ${r * -1}px, 0px)` : n(this, _).style.transform = `translate3d(${r * -1}px, 0px, 0px)`;
70
+ r(this, w).vertical ? r(this, _).style.transform = `translate3d(0px, ${n * -1}px, 0px)` : r(this, _).style.transform = `translate3d(${n * -1}px, 0px, 0px)`;
71
71
  }
72
72
  }
73
73
  _ = new WeakMap(), w = new WeakMap(), L = new WeakMap(), y = new WeakMap();
@@ -127,7 +127,7 @@ let dt = class extends Lt {
127
127
  if (t(this, c).forEach((e) => {
128
128
  e.resize(), e.transform();
129
129
  }), t(this, k).current && t(this, c).length) {
130
- const e = t(this, c)[t(this, c).length - 1], r = e.position + e.size - t(this, v), a = t(this, p) - r;
130
+ const e = t(this, c)[t(this, c).length - 1], n = e.position + e.size - t(this, v), a = t(this, p) - n;
131
131
  d(this, P, e.position + e.size + a);
132
132
  } else
133
133
  d(this, P, t(this, p));
@@ -140,9 +140,9 @@ let dt = class extends Lt {
140
140
  const s = this.currentScrollValue;
141
141
  if (d(this, B, Math.max(0, s - t(this, p))), t(this, c).length) {
142
142
  let e = 0;
143
- for (let r = 0; r < t(this, c).length; r++) {
144
- const a = t(this, c)[r];
145
- a.transform(), this.targetScrollValue + this.viewportSize / 2 >= a.position && (e = r);
143
+ for (let n = 0; n < t(this, c).length; n++) {
144
+ const a = t(this, c)[n];
145
+ a.transform(), this.targetScrollValue + this.viewportSize / 2 >= a.position && (e = n);
146
146
  }
147
147
  t(this, m).current = e;
148
148
  } else
@@ -167,44 +167,42 @@ let dt = class extends Lt {
167
167
  order: Nt.SCROLL,
168
168
  passport: s
169
169
  })), this.openShadow(Xt), Ot(this, {
170
- attributes: {
171
- tabIndex: 0
172
- },
173
- shadowChildren: [
170
+ tabIndex: 0,
171
+ children: [
174
172
  Mt({
175
173
  class: "static",
176
- children: [bt({ attributes: { name: "static" } })]
174
+ children: [bt({ name: "static" })]
177
175
  }),
178
176
  Mt({
179
177
  class: "content",
180
- children: [bt({ ref: (r) => d(this, ct, r) })],
178
+ children: [bt({ ref: (n) => d(this, ct, n) })],
181
179
  style: {
182
180
  flexDirection: new Ft(
183
181
  t(this, C),
184
- (r) => r === "x" ? "row" : "column"
182
+ (n) => n === "x" ? "row" : "column"
185
183
  )
186
184
  },
187
- ref: (r) => d(this, u, r)
185
+ ref: (n) => d(this, u, n)
188
186
  })
189
187
  ]
190
- }), d(this, W, new Kt({ element: this })), t(this, W).changeEvent.subscribe(t(this, st)), d(this, H, new Gt({ element: this })), t(this, H).changeEvent.subscribe(t(this, st)), t(this, C).subscribe(({ current: r }) => {
191
- t(this, u).style.flexDirection = r === "x" ? "row" : "column", t(this, W).axis = t(this, q).current ? "max" : r, this.isConnected && t(this, D).call(this);
192
- }), t(this, q).subscribe((r) => {
193
- t(this, W).axis = r.current ? "max" : t(this, C).current;
188
+ }), d(this, W, new Kt({ element: this })), t(this, W).changeEvent.subscribe(t(this, st)), d(this, H, new Gt({ element: this })), t(this, H).changeEvent.subscribe(t(this, st)), t(this, C).subscribe(({ current: n }) => {
189
+ t(this, u).style.flexDirection = n === "x" ? "row" : "column", t(this, W).axis = t(this, q).current ? "max" : n, this.isConnected && t(this, D).call(this);
190
+ }), t(this, q).subscribe((n) => {
191
+ t(this, W).axis = n.current ? "max" : t(this, C).current;
194
192
  }), t(this, R).subscribe(() => {
195
193
  this.isConnected && t(this, D).call(this);
196
- }), t(this, O).subscribe(({ current: r }) => {
197
- this.isConnected && (r ? f(this, N, ut).call(this) : f(this, F, U).call(this));
198
- }), t(this, T).subscribe((r) => {
199
- t(this, m).current = 0, t(this, W).debounce = r.current, t(this, o).reset(), this.isConnected && (r.current && !r.previous ? f(this, N, ut).call(this) : !r.current && r.previous && f(this, F, U).call(this));
200
- }), t(this, k).subscribe((r) => {
201
- r.current ? (this.isConnected && (t(this, c).length || (t(this, O).current = !0)), t(this, c).length && (t(this, o).max.current = 1 / 0, t(this, o).min.current = -1 / 0)) : (d(this, B, 0), t(this, o).max.current = t(this, p), t(this, o).min.current = 0);
202
- }), t(this, J).subscribe((r) => {
203
- t(this, o).damping = r.current;
204
- }), t(this, Q).subscribe((r) => {
205
- r.current && !r.previous ? f(this, pt, kt).call(this) : !r.current && r.previous && f(this, ft, Wt).call(this);
206
- }), t(this, X).subscribe((r) => {
207
- r.current && !r.previous ? f(this, tt, vt).call(this) : !r.current && r.previous && f(this, et, _t).call(this);
194
+ }), t(this, O).subscribe(({ current: n }) => {
195
+ this.isConnected && (n ? f(this, N, ut).call(this) : f(this, F, U).call(this));
196
+ }), t(this, T).subscribe((n) => {
197
+ t(this, m).current = 0, t(this, W).debounce = n.current, t(this, o).reset(), this.isConnected && (n.current && !n.previous ? f(this, N, ut).call(this) : !n.current && n.previous && f(this, F, U).call(this));
198
+ }), t(this, k).subscribe((n) => {
199
+ n.current ? (this.isConnected && (t(this, c).length || (t(this, O).current = !0)), t(this, c).length && (t(this, o).max.current = 1 / 0, t(this, o).min.current = -1 / 0)) : (d(this, B, 0), t(this, o).max.current = t(this, p), t(this, o).min.current = 0);
200
+ }), t(this, J).subscribe((n) => {
201
+ t(this, o).damping = n.current;
202
+ }), t(this, Q).subscribe((n) => {
203
+ n.current && !n.previous ? f(this, pt, kt).call(this) : !n.current && n.previous && f(this, ft, Wt).call(this);
204
+ }), t(this, X).subscribe((n) => {
205
+ n.current && !n.previous ? f(this, tt, vt).call(this) : !n.current && n.previous && f(this, et, _t).call(this);
208
206
  });
209
207
  }
210
208
  }
@@ -283,11 +281,11 @@ let dt = class extends Lt {
283
281
  return;
284
282
  const e = t(this, m).current;
285
283
  f(this, xt, Vt).call(this, i);
286
- const r = t(this, c)[e], a = t(this, c)[t(this, m).current];
287
- if (r && a) {
284
+ const n = t(this, c)[e], a = t(this, c)[t(this, m).current];
285
+ if (n && a) {
288
286
  let g = 0;
289
287
  const x = t(this, c).length - 1;
290
- t(this, k).current ? t(this, m).current === 0 && e === x ? g = t(this, p) + t(this, v) - r.position : t(this, m).current === x && e === 0 ? g = a.position - (t(this, p) + t(this, v)) : g = a.position - r.position : g = a.position - r.position, t(this, o).shift(g, s === "instant");
288
+ t(this, k).current ? t(this, m).current === 0 && e === x ? g = t(this, p) + t(this, v) - n.position : t(this, m).current === x && e === 0 ? g = a.position - (t(this, p) + t(this, v)) : g = a.position - n.position : g = a.position - n.position, t(this, o).shift(g, s === "instant");
291
289
  }
292
290
  }
293
291
  shiftSections(i, s = "smooth") {
@@ -375,7 +373,7 @@ class Yt extends Lt {
375
373
  V(this, Z, null);
376
374
  }
377
375
  get scrollElement() {
378
- return n(this, Z);
376
+ return r(this, Z);
379
377
  }
380
378
  connectedCallback() {
381
379
  const e = Ut(this, dt);
@@ -383,10 +381,10 @@ class Yt extends Lt {
383
381
  }
384
382
  }
385
383
  Z = new WeakMap();
386
- var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s, e, r) => {
387
- for (var a = r > 1 ? void 0 : r ? te(s, e) : s, g = i.length - 1, x; g >= 0; g--)
388
- (x = i[g]) && (a = (r ? x(s, e, a) : x(a)) || a);
389
- return r && a && jt(s, e, a), a;
384
+ var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s, e, n) => {
385
+ for (var a = n > 1 ? void 0 : n ? te(s, e) : s, g = i.length - 1, x; g >= 0; g--)
386
+ (x = i[g]) && (a = (n ? x(s, e, a) : x(a)) || a);
387
+ return n && a && jt(s, e, a), a;
390
388
  }, Rt = (i, s, e) => {
391
389
  if (!s.has(i))
392
390
  throw TypeError("Cannot " + e);
@@ -394,7 +392,7 @@ var jt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, ee = (i, s
394
392
  if (s.has(i))
395
393
  throw TypeError("Cannot add the same private member more than once");
396
394
  s instanceof WeakSet ? s.add(i) : s.set(i, e);
397
- }, M = (i, s, e, r) => (Rt(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e), rt, b, A, z, K, G, nt, ht, lt, at;
395
+ }, M = (i, s, e, n) => (Rt(i, s, "write to private field"), n ? n.call(i, e) : s.set(i, e), e), nt, b, A, z, K, G, rt, ht, lt, at;
398
396
  const se = Dt({
399
397
  ":host": {
400
398
  display: "inline-block",
@@ -426,7 +424,7 @@ const se = Dt({
426
424
  });
427
425
  let Ct = class extends Yt {
428
426
  constructor() {
429
- super(), S(this, rt, null), S(this, b, null), S(this, A, !1), S(this, z, 0), S(this, K, 0), S(this, G, 0), S(this, nt, () => {
427
+ super(), S(this, nt, null), S(this, b, null), S(this, A, !1), S(this, z, 0), S(this, K, 0), S(this, G, 0), S(this, rt, () => {
430
428
  M(this, A, this.offsetWidth > this.offsetHeight);
431
429
  const i = l(this, A) ? this.offsetWidth : this.offsetHeight;
432
430
  M(this, z, i / ((this.scrollElement.scrollSize + this.scrollElement.viewportSize) / i)), M(this, z, Math.max(l(this, z), 30)), l(this, A) ? (l(this, b).style.width = l(this, z) + "px", l(this, b).style.height = "100%") : (l(this, b).style.width = "100%", l(this, b).style.height = l(this, z) + "px"), M(this, K, i - l(this, z)), this.scrollElement.scrollSize || (this.style.display = "none");
@@ -437,14 +435,14 @@ let Ct = class extends Yt {
437
435
  }), S(this, at, (i) => {
438
436
  const s = (g) => {
439
437
  const x = l(this, A) ? g.x : g.y, Tt = this.scrollElement.distance / l(this, K), It = (x - a) * Tt;
440
- this.scrollElement.damped.set(r + It);
438
+ this.scrollElement.damped.set(n + It);
441
439
  }, e = () => {
442
440
  removeEventListener("pointermove", s), removeEventListener("pointerup", e), removeEventListener("touchend", e);
443
441
  };
444
442
  addEventListener("pointermove", s), addEventListener("pointerup", e), addEventListener("touchend", e);
445
- const r = this.scrollElement.damped.target, a = l(this, A) ? i.x : i.y;
443
+ const n = this.scrollElement.damped.target, a = l(this, A) ? i.x : i.y;
446
444
  }), At && (this.openShadow(se), Ot(this, {
447
- shadowChildren: [bt({ ref: (i) => M(this, rt, i) })]
445
+ children: [bt({ ref: (i) => M(this, nt, i) })]
448
446
  }));
449
447
  }
450
448
  get thumbElement() {
@@ -452,20 +450,20 @@ let Ct = class extends Yt {
452
450
  }
453
451
  connectedCallback() {
454
452
  super.connectedCallback();
455
- const i = l(this, rt).assignedElements()[0];
456
- i instanceof HTMLElement ? M(this, b, i) : (M(this, b, document.createElement("div")), l(this, b).classList.add("default-thumb"), this.shadowRoot.appendChild(l(this, b))), l(this, b).addEventListener("pointerdown", l(this, at)), ot.subscribe(l(this, nt), Pt.SCROLL + 1), this.scrollElement.damped.subscribe(l(this, ht)), this.scrollElement.axisAttibute.subscribe(l(this, lt));
453
+ const i = l(this, nt).assignedElements()[0];
454
+ i instanceof HTMLElement ? M(this, b, i) : (M(this, b, document.createElement("div")), l(this, b).classList.add("default-thumb"), this.shadowRoot.appendChild(l(this, b))), l(this, b).addEventListener("pointerdown", l(this, at)), ot.subscribe(l(this, rt), Pt.SCROLL + 1), this.scrollElement.damped.subscribe(l(this, ht)), this.scrollElement.axisAttibute.subscribe(l(this, lt));
457
455
  }
458
456
  disconnectedCallback() {
459
- l(this, b).removeEventListener("pointerdown", l(this, at)), ot.unsubscribe(l(this, nt)), this.scrollElement.damped.unsubscribe(l(this, ht)), this.scrollElement.axisAttibute.unsubscribe(l(this, lt));
457
+ l(this, b).removeEventListener("pointerdown", l(this, at)), ot.unsubscribe(l(this, rt)), this.scrollElement.damped.unsubscribe(l(this, ht)), this.scrollElement.axisAttibute.unsubscribe(l(this, lt));
460
458
  }
461
459
  };
462
- rt = /* @__PURE__ */ new WeakMap();
460
+ nt = /* @__PURE__ */ new WeakMap();
463
461
  b = /* @__PURE__ */ new WeakMap();
464
462
  A = /* @__PURE__ */ new WeakMap();
465
463
  z = /* @__PURE__ */ new WeakMap();
466
464
  K = /* @__PURE__ */ new WeakMap();
467
465
  G = /* @__PURE__ */ new WeakMap();
468
- nt = /* @__PURE__ */ new WeakMap();
466
+ rt = /* @__PURE__ */ new WeakMap();
469
467
  ht = /* @__PURE__ */ new WeakMap();
470
468
  lt = /* @__PURE__ */ new WeakMap();
471
469
  at = /* @__PURE__ */ new WeakMap();
@@ -20,6 +20,6 @@ declare global {
20
20
  'e-select': SelectElement;
21
21
  }
22
22
  interface HTMLElementEventMap {
23
- 'e-select-toggle': CustomEvent<SelectToggleDetail>;
23
+ selectToggle: CustomEvent<SelectToggleDetail>;
24
24
  }
25
25
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-vI4hmrI8.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Cv4y7_7y.cjs");Object.defineProperty(exports,"SelectElement",{enumerable:!0,get:()=>e.SelectElement});Object.defineProperty(exports,"SelectHeadElement",{enumerable:!0,get:()=>e.SelectHeadElement});Object.defineProperty(exports,"SelectOptionElement",{enumerable:!0,get:()=>e.SelectOptionElement});exports.SelectUserElement=e.SelectUserElement;
@@ -1,4 +1,4 @@
1
1
  export { SelectElement } from './SelectElement';
2
+ export { SelectUserElement } from './SelectUserElement';
2
3
  export { SelectOptionElement } from './SelectOptionElement';
3
4
  export { SelectHeadElement } from './SelectHeadElement';
4
- export { SelectUserElement } from './SelectUserElement';
@@ -1,4 +1,4 @@
1
- import { S as l, c as a, b as c, d as m } from "../index-dBwVZz_v.js";
1
+ import { S as l, d as a, c, b as m } from "../index-228VqUsZ.js";
2
2
  export {
3
3
  l as SelectElement,
4
4
  a as SelectHeadElement,
@@ -1 +1 @@
1
- "use strict";var g=(e,r,t)=>{if(!r.has(e))throw TypeError("Cannot "+t)};var u=(e,r,t)=>(g(e,r,"read from private field"),t?t.call(e):r.get(e)),l=(e,r,t)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,t)},v=(e,r,t,s)=>(g(e,r,"write to private field"),s?s.call(e,t):r.set(e,t),t);var S=(e,r,t,s)=>({set _(o){v(e,r,o,t)},get _(){return u(e,r,s)}});var y=(e,r,t)=>new Promise((s,o)=>{var R=i=>{try{p(t.next(i))}catch(m){o(m)}},C=i=>{try{p(t.throw(i))}catch(m){o(m)}},p=i=>i.done?s(i.value):Promise.resolve(i.value).then(R,C);p((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../Store-D0_rDIsE.cjs"),A=require("../Derived-SjPdLJiZ.cjs"),d=require("../Composed-C2Vv1xxR.cjs");var c,a,n;class D extends d.Resource{constructor(t,s,o=100){super(t,s,{manualControl:!0,skipSubscribeNotification:!0});l(this,c,void 0);l(this,a,void 0);l(this,n,0);v(this,a,o)}get step(){return u(this,n)}startAccumulating(){v(this,c,setInterval(()=>y(this,null,function*(){++S(this,n)._,this.refetch()}),u(this,a)))}stopAccumulating(){clearInterval(u(this,c))}close(){super.close(),this.stopAccumulating()}}c=new WeakMap,a=new WeakMap,n=new WeakMap;exports.Store=h.Store;exports.activeStores=h.activeStores;exports.storeRegistry=h.storeRegistry;exports.Derived=A.Derived;exports.Composed=d.Composed;exports.DerivedArray=d.DerivedArray;exports.Resource=d.Resource;exports.CumulativeResource=D;
1
+ "use strict";var C=(t,r,e)=>{if(!r.has(t))throw TypeError("Cannot "+e)};var u=(t,r,e)=>(C(t,r,"read from private field"),e?e.call(t):r.get(t)),n=(t,r,e)=>{if(r.has(t))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(t):r.set(t,e)},o=(t,r,e,s)=>(C(t,r,"write to private field"),s?s.call(t,e):r.set(t,e),e);var R=(t,r,e,s)=>({set _(c){o(t,r,c,e)},get _(){return u(t,r,s)}});var A=(t,r,e)=>new Promise((s,c)=>{var h=i=>{try{v(e.next(i))}catch(f){c(f)}},l=i=>{try{v(e.throw(i))}catch(f){c(f)}},v=i=>i.done?s(i.value):Promise.resolve(i.value).then(h,l);v((e=e.apply(t,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Store-D0_rDIsE.cjs"),I=require("../Derived-SjPdLJiZ.cjs"),q=require("../function-MthRj-GJ.cjs");var b;class E extends d.Store{constructor(e,s,c){super(null,c);n(this,b,void 0);o(this,b,e.subscribe(h=>{const l=[];h.current.forEach((v,i)=>{var f;h.current[i]===((f=h.previous)==null?void 0:f[i])&&this.current[i]?l.push(this.current[i]):l.push(s(v))}),this.current=l}))}close(){super.close(),u(this,b).call(this)}}b=new WeakMap;var S,a,p;class D extends d.Store{constructor(e,s,c){super(e,c);n(this,S,void 0);n(this,a,void 0);n(this,p,0);o(this,a,new d.Store(!1)),o(this,S,s),c!=null&&c.manualControl||this.refetch()}get isPending(){return u(this,a)}refetch(){u(this,a).current=!0,o(this,p,u(this,p)+1);const e=u(this,p);u(this,S).call(this).then(s=>{e===u(this,p)&&(u(this,a).current=!1,this.current=s)})}}S=new WeakMap,a=new WeakMap,p=new WeakMap;var g,m,y;class P extends D{constructor(e,s,c=100){super(e,s,{manualControl:!0,skipSubscribeNotification:!0});n(this,g,void 0);n(this,m,void 0);n(this,y,0);o(this,m,c)}get step(){return u(this,y)}startAccumulating(){o(this,g,setInterval(()=>A(this,null,function*(){++R(this,y)._,this.refetch()}),u(this,m)))}stopAccumulating(){clearInterval(u(this,g))}close(){super.close(),this.stopAccumulating()}}g=new WeakMap,m=new WeakMap,y=new WeakMap;var x;class j extends d.Store{constructor(e,s,c){super(null,c);n(this,x,[]);const h=q.debounce(()=>{this.current=s()},0);e.forEach(l=>{u(this,x).push(l.subscribe(()=>{h()}))})}close(){super.close(),u(this,x).forEach(e=>e())}}x=new WeakMap;exports.Store=d.Store;exports.activeStores=d.activeStores;exports.storeRegistry=d.storeRegistry;exports.Derived=I.Derived;exports.Composed=j;exports.CumulativeResource=P;exports.DerivedArray=E;exports.Resource=D;