aptechka 0.1.16 → 0.1.18

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.
@@ -1 +1 @@
1
- "use strict";var y=(s,t,r)=>{if(!t.has(s))throw TypeError("Cannot "+r)};var n=(s,t,r)=>(y(s,t,"read from private field"),r?r.call(s):t.get(s)),b=(s,t,r)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,r)},f=(s,t,r,e)=>(y(s,t,"write to private field"),e?e.call(s,r):t.set(s,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../browser-CpzFX2xg.cjs"),d=require("../dom-qY2LdCVL.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{n(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});g.isBrowser&&f(this,u,new IntersectionObserver(n(this,l)))}subscribe(t,r){const e=d.getElement(t);if(!e)return()=>{};const o=n(this,i).find(c=>c.element===e);if(!o)n(this,u).observe(e);else{const c=n(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return n(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=n(this,i).find(e=>e.callback===t);r&&(f(this,i,n(this,i).filter(e=>e.callback===t)),n(this,i).find(e=>e.element===r.element)||n(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const v=new m;exports.Intersector=m;exports.intersector=v;
1
+ "use strict";var y=(n,t,r)=>{if(!t.has(n))throw TypeError("Cannot "+r)};var s=(n,t,r)=>(y(n,t,"read from private field"),r?r.call(n):t.get(n)),b=(n,t,r)=>{if(t.has(n))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(n):t.set(n,r)},f=(n,t,r,e)=>(y(n,t,"write to private field"),e?e.call(n,r):t.set(n,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../browser-CpzFX2xg.cjs"),d=require("../dom-qY2LdCVL.cjs");var i,u,l;class m{constructor(){b(this,i,[]);b(this,u,null);b(this,l,t=>{s(this,i).map(e=>({subscriber:e,entry:t.find(o=>o.target===e.element)})).forEach(e=>{e.entry&&(e.subscriber.entry=e.entry,e.subscriber.callback(e.entry))})});w.isBrowser&&window.IntersectionObserver&&f(this,u,new IntersectionObserver(s(this,l)))}subscribe(t,r){const e=d.getElement(t);if(!e)return()=>{};const o=s(this,i).find(c=>c.element===e);if(!o)s(this,u).observe(e);else{const c=s(this,i).find(h=>h.element===e&&h.entry);c!=null&&c.entry.isIntersecting&&r(c.entry)}return s(this,i).push({element:e,callback:r,entry:(o==null?void 0:o.entry)||null}),()=>{this.unsubscribe(r)}}unsubscribe(t){const r=s(this,i).find(e=>e.callback===t);r&&(f(this,i,s(this,i).filter(e=>e.callback===t)),s(this,i).find(e=>e.element===r.element)||s(this,u).unobserve(r.element))}}i=new WeakMap,u=new WeakMap,l=new WeakMap;const g=new m;exports.Intersector=m;exports.intersector=g;
@@ -2,19 +2,19 @@ var m = (n, t, s) => {
2
2
  if (!t.has(n))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(n)), u = (n, t, s) => {
5
+ var r = (n, t, s) => (m(n, t, "read from private field"), s ? s.call(n) : t.get(n)), f = (n, t, s) => {
6
6
  if (t.has(n))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  t instanceof WeakSet ? t.add(n) : t.set(n, s);
9
9
  }, h = (n, t, s, e) => (m(n, t, "write to private field"), e ? e.call(n, s) : t.set(n, s), s);
10
10
  import { i as y } from "../browser-0zX67oeU.js";
11
11
  import { g as p } from "../dom-BY7JhTx5.js";
12
- var i, f, b;
13
- class g {
12
+ var i, b, u;
13
+ class w {
14
14
  constructor() {
15
- u(this, i, []);
16
- u(this, f, null);
17
- u(this, b, (t) => {
15
+ f(this, i, []);
16
+ f(this, b, null);
17
+ f(this, u, (t) => {
18
18
  r(this, i).map((e) => ({
19
19
  subscriber: e,
20
20
  entry: t.find((o) => o.target === e.element)
@@ -22,8 +22,8 @@ class g {
22
22
  e.entry && (e.subscriber.entry = e.entry, e.subscriber.callback(e.entry));
23
23
  });
24
24
  });
25
- y && h(this, f, new IntersectionObserver(
26
- r(this, b)
25
+ y && window.IntersectionObserver && h(this, b, new IntersectionObserver(
26
+ r(this, u)
27
27
  ));
28
28
  }
29
29
  subscribe(t, s) {
@@ -35,7 +35,7 @@ class g {
35
35
  (c) => c.element === e
36
36
  );
37
37
  if (!o)
38
- r(this, f).observe(e);
38
+ r(this, b).observe(e);
39
39
  else {
40
40
  const c = r(this, i).find(
41
41
  (l) => l.element === e && l.entry
@@ -56,12 +56,12 @@ class g {
56
56
  );
57
57
  s && (h(this, i, r(this, i).filter(
58
58
  (e) => e.callback === t
59
- )), r(this, i).find((e) => e.element === s.element) || r(this, f).unobserve(s.element));
59
+ )), r(this, i).find((e) => e.element === s.element) || r(this, b).unobserve(s.element));
60
60
  }
61
61
  }
62
- i = new WeakMap(), f = new WeakMap(), b = new WeakMap();
63
- const I = new g();
62
+ i = new WeakMap(), b = new WeakMap(), u = new WeakMap();
63
+ const d = new w();
64
64
  export {
65
- g as Intersector,
66
- I as intersector
65
+ w as Intersector,
66
+ d as intersector
67
67
  };
@@ -1 +1 @@
1
- "use strict";var k=Object.defineProperty;var f=Object.getOwnPropertySymbols;var S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var p=(s,t,e)=>t in s?k(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,b=(s,t)=>{for(var e in t||(t={}))S.call(t,e)&&p(s,e,t[e]);if(f)for(var e of f(t))g.call(t,e)&&p(s,e,t[e]);return s};var y=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var c=(s,t,e)=>(y(s,t,"read from private field"),e?e.call(s):t.get(s)),u=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},d=(s,t,e,o)=>(y(s,t,"write to private field"),o?o.call(s,e):t.set(s,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../Store-D0_rDIsE.cjs");var h,l,a;class m extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});u(this,h,void 0);u(this,l,void 0);u(this,a,void 0);d(this,h,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,h)}get steps(){return c(this,l)}close(){super.close(),c(this,a).clear(),c(this,l).clear()}bind(e){c(this,a).add(e)}unbind(e){c(this,a).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e)[1]}setStep(e,o,n){const i={};for(const r in this.current)i[r]=n[r]||0;this.steps.set(e,[o,i])}calculate(){const e={};for(const o in this.base)e[o]=this.base[o];for(const o of this.steps){const n=o[1];if(n[0]==="+")for(const i in this.base){const r=n[1][i];e[i]+=r}else if(n[0]==="*")for(const i in this.base){const r=n[1][i];e[i]*=r}else if(n[0]==="/")for(const i in this.base){const r=n[1][i];e[i]/=r}else if(n[0]==="-")for(const i in this.base){const r=n[1][i];e[i]-=r}}for(const o of c(this,a))for(const n in e)o[n]=e[n];this.current=e}}h=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=m;
1
+ "use strict";var j=Object.defineProperty;var w=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var x=(s,t,e)=>t in s?j(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,S=(s,t)=>{for(var e in t||(t={}))C.call(t,e)&&x(s,e,t[e]);if(w)for(var e of w(t))E.call(t,e)&&x(s,e,t[e]);return s};var q=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var i=(s,t,e)=>(q(s,t,"read from private field"),e?e.call(s):t.get(s)),h=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},c=(s,t,e,n)=>(q(s,t,"write to private field"),n?n.call(s,e):t.set(s,e),e);var M=(s,t,e)=>(q(s,t,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../Store-D0_rDIsE.cjs"),O=require("../math-GDWEqu7y.cjs"),U=require("../number-yVpzMdbQ.cjs"),m=require("../ticker/index.cjs");var v,u,p,d;class P{constructor(t){h(this,v,void 0);h(this,u,void 0);h(this,p,void 0);h(this,d,void 0);c(this,v,t.operation),c(this,u,t.value),c(this,p,i(this,u)),c(this,d,t.damping||0)}get operation(){return i(this,v)}get value(){return i(this,u)}set value(t){c(this,p,t),i(this,d)||c(this,u,t)}get damping(){return i(this,d)}set damping(t){c(this,d,t)}update(t){let e=0;for(const n in i(this,u))i(this,u)[n]=O.damp(i(this,u)[n],i(this,p)[n],this.damping,t),U.preciseNumber(i(this,u)[n],4)!==U.preciseNumber(i(this,p)[n],4)&&e++;return e===0}}v=new WeakMap,u=new WeakMap,p=new WeakMap,d=new WeakMap;var g,f,l,y,V,b;class T extends N.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,y);h(this,g,void 0);h(this,f,void 0);h(this,l,void 0);h(this,b,e=>{let n=0;for(const r of this.steps){const a=r[1].update(e.elapsed);n+=a?0:1}this.calculate(),n||m.ticker.unsubscribe(i(this,b))});c(this,g,S({},e)),c(this,f,new Map),c(this,l,new Set)}get base(){return i(this,g)}get steps(){return i(this,f)}close(){super.close(),i(this,l).clear(),i(this,f).clear(),m.ticker.unsubscribe(i(this,b))}bind(e){i(this,l).add(e)}unbind(e){i(this,l).delete(e)}deleteStep(e){this.steps.delete(e)}getStepValue(e){return this.steps.get(e).value}setStep(e,n,r,o){const a={};for(const L in this.current)a[L]=r[L]||0;let k=this.steps.get(e);k||(k=new P({operation:n,value:S({},i(this,g)),damping:o}),this.steps.set(e,k)),k.value=a,k.damping=o||0,M(this,y,V).call(this)}calculate(){const e={};for(const n in this.base)e[n]=this.base[n];for(const n of this.steps){const r=n[1];if(r.operation==="+")for(const o in this.base){const a=r.value[o];e[o]+=a}else if(r.operation==="*")for(const o in this.base){const a=r.value[o];e[o]*=a}else if(r.operation==="/")for(const o in this.base){const a=r.value[o];e[o]/=a}else if(r.operation==="-")for(const o in this.base){const a=r.value[o];e[o]-=a}}for(const n of i(this,l))for(const r in e)n[r]=e[r];this.current=e}}g=new WeakMap,f=new WeakMap,l=new WeakMap,y=new WeakSet,V=function(){let e=!1;i(this,f).forEach(n=>{n.damping&&(e=!0)}),e?m.ticker.subscribe(i(this,b)):m.ticker.unsubscribe(i(this,b))},b=new WeakMap;exports.Ladder=T;
@@ -1,11 +1,25 @@
1
1
  import { Store } from '../store';
2
2
  export type LadderDefaultStepName = number | string;
3
3
  export type LadderOperation = '+' | '*' | '/' | '-';
4
- export type LadderStep<T> = [LadderOperation, T];
5
- export type LadderSteps<K, T> = Map<K, LadderStep<T>>;
4
+ export type LadderSteps<K, T extends LadderDefaultValueType = LadderDefaultValueType> = Map<K, LadderStep<T>>;
6
5
  export type LadderDefaultValueType = {
7
6
  [key: string]: number;
8
7
  };
8
+ interface LadderStepParameters<T extends LadderDefaultValueType = LadderDefaultValueType> {
9
+ operation: LadderOperation;
10
+ value: T;
11
+ damping?: number;
12
+ }
13
+ declare class LadderStep<T extends LadderDefaultValueType = LadderDefaultValueType> {
14
+ #private;
15
+ constructor(parameters: LadderStepParameters<T>);
16
+ get operation(): LadderOperation;
17
+ get value(): T;
18
+ set value(value: T);
19
+ get damping(): number;
20
+ set damping(value: number);
21
+ update(elapsed: number): boolean;
22
+ }
9
23
  export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValueType, K extends LadderDefaultStepName = LadderDefaultStepName> extends Store<V> {
10
24
  #private;
11
25
  constructor(base: V);
@@ -16,6 +30,7 @@ export declare class Ladder<V extends LadderDefaultValueType = LadderDefaultValu
16
30
  unbind(sub: V): void;
17
31
  deleteStep(stepName: K): void;
18
32
  getStepValue(stepName: K): V;
19
- setStep(stepName: K, action: LadderOperation, value: Partial<V>): void;
33
+ setStep(stepName: K, operation: LadderOperation, setValue: Partial<V>, damping?: number): void;
20
34
  calculate(): void;
21
35
  }
36
+ export {};
@@ -1,96 +1,152 @@
1
- var k = Object.defineProperty;
2
- var p = Object.getOwnPropertySymbols;
3
- var S = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
4
- var d = (t, s, e) => s in t ? k(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e, b = (t, s) => {
5
- for (var e in s || (s = {}))
6
- S.call(s, e) && d(t, e, s[e]);
7
- if (p)
8
- for (var e of p(s))
9
- g.call(s, e) && d(t, e, s[e]);
10
- return t;
1
+ var E = Object.defineProperty;
2
+ var x = Object.getOwnPropertySymbols;
3
+ var M = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
4
+ var U = (s, e, t) => e in s ? E(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, S = (s, e) => {
5
+ for (var t in e || (e = {}))
6
+ M.call(e, t) && U(s, t, e[t]);
7
+ if (x)
8
+ for (var t of x(e))
9
+ j.call(e, t) && U(s, t, e[t]);
10
+ return s;
11
11
  };
12
- var y = (t, s, e) => {
13
- if (!s.has(t))
14
- throw TypeError("Cannot " + e);
12
+ var w = (s, e, t) => {
13
+ if (!e.has(s))
14
+ throw TypeError("Cannot " + t);
15
15
  };
16
- var c = (t, s, e) => (y(t, s, "read from private field"), e ? e.call(t) : s.get(t)), u = (t, s, e) => {
17
- if (s.has(t))
16
+ var i = (s, e, t) => (w(s, e, "read from private field"), t ? t.call(s) : e.get(s)), u = (s, e, t) => {
17
+ if (e.has(s))
18
18
  throw TypeError("Cannot add the same private member more than once");
19
- s instanceof WeakSet ? s.add(t) : s.set(t, e);
20
- }, f = (t, s, e, o) => (y(t, s, "write to private field"), o ? o.call(t, e) : s.set(t, e), e);
21
- import { S as v } from "../Store-JOKrNVEr.js";
22
- var l, h, a;
23
- class x extends v {
19
+ e instanceof WeakSet ? e.add(s) : e.set(s, t);
20
+ }, h = (s, e, t, n) => (w(s, e, "write to private field"), n ? n.call(s, t) : e.set(s, t), t);
21
+ var V = (s, e, t) => (w(s, e, "access private method"), t);
22
+ import { S as z } from "../Store-JOKrNVEr.js";
23
+ import { d as A } from "../math-BOBiC4TN.js";
24
+ import { p as q } from "../number-Bo5RdrA1.js";
25
+ import { ticker as k } from "../ticker/index.js";
26
+ var v, c, l, d;
27
+ class B {
24
28
  constructor(e) {
25
- super(e, {
29
+ u(this, v, void 0);
30
+ u(this, c, void 0);
31
+ u(this, l, void 0);
32
+ u(this, d, void 0);
33
+ h(this, v, e.operation), h(this, c, e.value), h(this, l, i(this, c)), h(this, d, e.damping || 0);
34
+ }
35
+ get operation() {
36
+ return i(this, v);
37
+ }
38
+ get value() {
39
+ return i(this, c);
40
+ }
41
+ set value(e) {
42
+ h(this, l, e), i(this, d) || h(this, c, e);
43
+ }
44
+ get damping() {
45
+ return i(this, d);
46
+ }
47
+ set damping(e) {
48
+ h(this, d, e);
49
+ }
50
+ update(e) {
51
+ let t = 0;
52
+ for (const n in i(this, c))
53
+ i(this, c)[n] = A(
54
+ i(this, c)[n],
55
+ i(this, l)[n],
56
+ this.damping,
57
+ e
58
+ ), q(i(this, c)[n], 4) !== q(i(this, l)[n], 4) && t++;
59
+ return t === 0;
60
+ }
61
+ }
62
+ v = new WeakMap(), c = new WeakMap(), l = new WeakMap(), d = new WeakMap();
63
+ var g, f, p, y, C, b;
64
+ class J extends z {
65
+ constructor(t) {
66
+ super(t, {
26
67
  equalityCheck: () => !1
27
68
  });
28
- u(this, l, void 0);
29
- u(this, h, void 0);
30
- u(this, a, void 0);
31
- f(this, l, b({}, e)), f(this, h, /* @__PURE__ */ new Map()), f(this, a, /* @__PURE__ */ new Set());
69
+ u(this, y);
70
+ u(this, g, void 0);
71
+ u(this, f, void 0);
72
+ u(this, p, void 0);
73
+ u(this, b, (t) => {
74
+ let n = 0;
75
+ for (const o of this.steps) {
76
+ const a = o[1].update(t.elapsed);
77
+ n += a ? 0 : 1;
78
+ }
79
+ this.calculate(), n || k.unsubscribe(i(this, b));
80
+ });
81
+ h(this, g, S({}, t)), h(this, f, /* @__PURE__ */ new Map()), h(this, p, /* @__PURE__ */ new Set());
32
82
  }
33
83
  get base() {
34
- return c(this, l);
84
+ return i(this, g);
35
85
  }
36
86
  get steps() {
37
- return c(this, h);
87
+ return i(this, f);
38
88
  }
39
89
  close() {
40
- super.close(), c(this, a).clear(), c(this, h).clear();
90
+ super.close(), i(this, p).clear(), i(this, f).clear(), k.unsubscribe(i(this, b));
41
91
  }
42
- bind(e) {
43
- c(this, a).add(e);
92
+ bind(t) {
93
+ i(this, p).add(t);
44
94
  }
45
- unbind(e) {
46
- c(this, a).delete(e);
95
+ unbind(t) {
96
+ i(this, p).delete(t);
47
97
  }
48
- deleteStep(e) {
49
- this.steps.delete(e);
98
+ deleteStep(t) {
99
+ this.steps.delete(t);
50
100
  }
51
- getStepValue(e) {
52
- return this.steps.get(e)[1];
101
+ getStepValue(t) {
102
+ return this.steps.get(t).value;
53
103
  }
54
- setStep(e, o, n) {
55
- const i = {};
56
- for (const r in this.current)
57
- i[r] = n[r] || 0;
58
- this.steps.set(e, [o, i]);
104
+ setStep(t, n, o, r) {
105
+ const a = {};
106
+ for (const L in this.current)
107
+ a[L] = o[L] || 0;
108
+ let m = this.steps.get(t);
109
+ m || (m = new B({ operation: n, value: S({}, i(this, g)), damping: r }), this.steps.set(t, m)), m.value = a, m.damping = r || 0, V(this, y, C).call(this);
59
110
  }
60
111
  calculate() {
61
- const e = {};
62
- for (const o in this.base)
63
- e[o] = this.base[o];
64
- for (const o of this.steps) {
65
- const n = o[1];
66
- if (n[0] === "+")
67
- for (const i in this.base) {
68
- const r = n[1][i];
69
- e[i] += r;
112
+ const t = {};
113
+ for (const n in this.base)
114
+ t[n] = this.base[n];
115
+ for (const n of this.steps) {
116
+ const o = n[1];
117
+ if (o.operation === "+")
118
+ for (const r in this.base) {
119
+ const a = o.value[r];
120
+ t[r] += a;
70
121
  }
71
- else if (n[0] === "*")
72
- for (const i in this.base) {
73
- const r = n[1][i];
74
- e[i] *= r;
122
+ else if (o.operation === "*")
123
+ for (const r in this.base) {
124
+ const a = o.value[r];
125
+ t[r] *= a;
75
126
  }
76
- else if (n[0] === "/")
77
- for (const i in this.base) {
78
- const r = n[1][i];
79
- e[i] /= r;
127
+ else if (o.operation === "/")
128
+ for (const r in this.base) {
129
+ const a = o.value[r];
130
+ t[r] /= a;
80
131
  }
81
- else if (n[0] === "-")
82
- for (const i in this.base) {
83
- const r = n[1][i];
84
- e[i] -= r;
132
+ else if (o.operation === "-")
133
+ for (const r in this.base) {
134
+ const a = o.value[r];
135
+ t[r] -= a;
85
136
  }
86
137
  }
87
- for (const o of c(this, a))
88
- for (const n in e)
89
- o[n] = e[n];
90
- this.current = e;
138
+ for (const n of i(this, p))
139
+ for (const o in t)
140
+ n[o] = t[o];
141
+ this.current = t;
91
142
  }
92
143
  }
93
- l = new WeakMap(), h = new WeakMap(), a = new WeakMap();
144
+ g = new WeakMap(), f = new WeakMap(), p = new WeakMap(), y = new WeakSet(), C = function() {
145
+ let t = !1;
146
+ i(this, f).forEach((n) => {
147
+ n.damping && (t = !0);
148
+ }), t ? k.subscribe(i(this, b)) : k.unsubscribe(i(this, b));
149
+ }, b = new WeakMap();
94
150
  export {
95
- x as Ladder
151
+ J as Ladder
96
152
  };
@@ -1 +1 @@
1
- "use strict";var K=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(K(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(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)},n=(i,e,s,o)=>(K(i,e,"write to private field"),o?o.call(i,s):e.set(i,s),s);var L=(i,e,s)=>(K(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lt=require("../css-unit-parser/index.cjs"),I=require("../ladder/index.cjs"),F=require("../order/index.cjs"),G=require("../window-resizer/index.cjs"),ot=require("../scroll-entries/index.cjs"),J=require("../ticker/index.cjs"),N=require("../browser-CpzFX2xg.cjs"),Q=require("../dom-qY2LdCVL.cjs"),b=require("../layout-8ryRAMGJ.cjs");function j(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),o=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),T=Math.atan2(i.m32,i.m33),X=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),V=Math.atan2(i.m21,i.m11),u=i.m41,C=i.m42,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:o,rotationX:T,rotationY:X,rotationZ:V,translationX:u,translationY:C,translationZ:O}}var a,f,p,M,Y,q,x,v,H,m,_,P,d,S,w,R,E,B,g,y,z,c,r,l,Z,$,k,tt,D,et,U,st,A,W;class at{constructor(e,s){h(this,Z);h(this,k);h(this,D);h(this,U);h(this,a,null);h(this,f,null);h(this,p,[]);h(this,M,"auto");h(this,Y,"top");h(this,q,!1);h(this,x,!0);h(this,v,!0);h(this,H,!0);h(this,m,0);h(this,_,0);h(this,P,0);h(this,d,0);h(this,S,0);h(this,w,0);h(this,R,0);h(this,E,0);h(this,B,0);h(this,g,{x:0,y:0,z:0});h(this,y,{x:0,y:0,z:0});h(this,z,{x:1,y:1,z:1});h(this,c,new I.Ladder({x:0,y:0,z:0}));h(this,r,new I.Ladder({x:0,y:0,z:0}));h(this,l,new I.Ladder({x:0,y:0,z:0}));h(this,A,()=>{N.isBrowser&&L(this,D,et).call(this)});h(this,W,()=>{L(this,U,st).call(this),L(this,Z,$).call(this)});N.isBrowser&&(n(this,a,Q.getElement(e)||document.body),n(this,f,Q.getElement(s==null?void 0:s.containerElement)||document.body),n(this,M,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Y,(s==null?void 0:s.frontSide)||"top"),n(this,q,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,v,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,H,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,l).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{ot.scrollEntries.getAll(this.element).forEach(o=>{this.setScrollStep(()=>o)})}),J.ticker.subscribe(t(this,W),{order:F.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),G.windowResizer.subscribe(t(this,A),F.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,a)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,c).current}get scale(){return t(this,l).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,w)}get width(){return t(this,m)}get height(){return t(this,_)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,c).bind(e.rotation),e.scale&&t(this,l).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,c).unbind(e.rotation),e.scale&&t(this,l).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){J.ticker.unsubscribe(t(this,W)),G.windowResizer.unsubscribe(t(this,A)),t(this,r).close(),t(this,c).close(),t(this,l).close()}setPositionStep(...e){t(this,r).setStep(...e)}getPositionStep(...e){return t(this,r).getStepValue(...e)}setRotationStep(...e){t(this,c).setStep(...e)}getRotationStep(...e){return t(this,c).getStepValue(...e)}setScaleStep(...e){t(this,l).setStep(...e)}getScaleStep(...e){return t(this,l).getStepValue(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,l).deleteStep(...e)}}a=new WeakMap,f=new WeakMap,p=new WeakMap,M=new WeakMap,Y=new WeakMap,q=new WeakMap,x=new WeakMap,v=new WeakMap,H=new WeakMap,m=new WeakMap,_=new WeakMap,P=new WeakMap,d=new WeakMap,S=new WeakMap,w=new WeakMap,R=new WeakMap,E=new WeakMap,B=new WeakMap,g=new WeakMap,y=new WeakMap,z=new WeakMap,c=new WeakMap,r=new WeakMap,l=new WeakMap,Z=new WeakSet,$=function(){t(this,l).calculate(),t(this,r).calculate(),t(this,c).calculate()},k=new WeakSet,tt=function(){t(this,l).setStep("_size","+",{x:t(this,x)?t(this,m):1,y:t(this,x)?t(this,_):1,z:t(this,x)?t(this,P):1});const e=t(this,v)?t(this,R):0,s=t(this,v)?t(this,E):0,o=t(this,v)?t(this,B):0;t(this,r).setStep("_position","+",{x:e,y:s,z:o}),t(this,H)?(t(this,l).setStep("_scale","*",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,r).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,c).setStep("_rotation","+",{x:t(this,y).x,y:t(this,y).y,z:t(this,y).z})):(t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}))},D=new WeakSet,et=function(){const e=getComputedStyle(t(this,a));n(this,m,Math.max(t(this,a).clientWidth,1)),n(this,_,Math.max(t(this,a).clientHeight,1)),n(this,P,Math.max(lt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=b.getCumulativeOffsetLeft(t(this,f)),o=b.getCumulativeOffsetTop(t(this,f)),T=t(this,f).clientWidth,X=t(this,f).clientHeight;if(n(this,S,b.getCumulativeOffsetLeft(t(this,a))-s),n(this,d,b.getCumulativeOffsetTop(t(this,a))-o),t(this,M)==="z"){const C=t(this,S)/T,O=t(this,d)/X;n(this,S,(C-Math.floor(C))*T),n(this,d,(O-Math.floor(O))*X),t(this,Y)==="left"?n(this,w,b.getCumulativeOffsetLeft(t(this,a))-s-t(this,S)):n(this,w,b.getCumulativeOffsetTop(t(this,a))-o-t(this,d))}if(n(this,S,t(this,S)+t(this,a).clientLeft),n(this,d,t(this,d)+t(this,a).clientTop),t(this,q)){const C=Math.round(T/2),O=Math.round(X/2),it=t(this,m)?Math.round(t(this,m)/2):0,ht=t(this,_)?Math.round(t(this,_)/2):0,nt=t(this,S)-C+it,rt=(t(this,d)-O+ht)*-1;n(this,R,nt),n(this,E,rt)}else n(this,R,t(this,S)),n(this,E,t(this,d));n(this,B,t(this,w)*-1);const V=new WebKitCSSMatrix(e.transform),u=j(V);t(this,g).x=u.translationX,t(this,g).y=u.translationY,t(this,g).z=u.translationZ,t(this,z).x=u.scaleX,t(this,z).y=u.scaleY,t(this,z).z=u.scaleZ,t(this,y).x=u.rotationX,t(this,y).y=u.rotationY,t(this,y).z=u.rotationZ,L(this,k,tt).call(this),L(this,Z,$).call(this)},U=new WeakSet,st=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let o=s.axis;t(this,M)!=="auto"&&(o=t(this,M)),t(this,r).setStep(`_scroll_${e}`,"+",{[o]:s.value*(o==="x"?-1:t(this,q)?1:-1)})}},A=new WeakMap,W=new WeakMap;exports.LayoutBox=at;exports.decomposeCSSMatrix=j;
1
+ "use strict";var K=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(K(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(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)},n=(i,e,s,a)=>(K(i,e,"write to private field"),a?a.call(i,s):e.set(i,s),s);var q=(i,e,s)=>(K(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const rt=require("../css-unit-parser/index.cjs"),I=require("../ladder/index.cjs"),lt=require("../order/index.cjs"),at=require("../scroll-entries/index.cjs"),F=require("../ticker/index.cjs"),G=require("../browser-CpzFX2xg.cjs"),J=require("../dom-qY2LdCVL.cjs"),O=require("../layout-8ryRAMGJ.cjs"),N=require("../element-resizer/index.cjs");function Q(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),a=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),T=Math.atan2(i.m32,i.m33),H=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),U=Math.atan2(i.m21,i.m11),u=i.m41,b=i.m42*-1,L=i.m43;return{scaleX:e,scaleY:s,scaleZ:a,rotationX:T,rotationY:H,rotationZ:U,translationX:u,translationY:b,translationZ:L}}var o,f,p,_,X,w,x,v,Y,z,M,P,S,d,C,E,R,Z,g,m,y,c,r,l,B,$,A,j,V,tt,D,et,W,k;class ot{constructor(e,s){h(this,B);h(this,A);h(this,V);h(this,D);h(this,o,null);h(this,f,null);h(this,p,[]);h(this,_,"auto");h(this,X,"top");h(this,w,!1);h(this,x,!0);h(this,v,!0);h(this,Y,!0);h(this,z,0);h(this,M,0);h(this,P,0);h(this,S,0);h(this,d,0);h(this,C,0);h(this,E,0);h(this,R,0);h(this,Z,0);h(this,g,{x:0,y:0,z:0});h(this,m,{x:0,y:0,z:0});h(this,y,{x:1,y:1,z:1});h(this,c,new I.Ladder({x:0,y:0,z:0}));h(this,r,new I.Ladder({x:0,y:0,z:0}));h(this,l,new I.Ladder({x:0,y:0,z:0}));h(this,W,()=>{G.isBrowser&&q(this,V,tt).call(this)});h(this,k,()=>{q(this,D,et).call(this),q(this,B,$).call(this)});G.isBrowser&&(n(this,o,J.getElement(e)||document.body),n(this,f,J.getElement(s==null?void 0:s.containerElement)||document.body),n(this,_,(s==null?void 0:s.scrollAxis)||"auto"),n(this,X,(s==null?void 0:s.frontSide)||"top"),n(this,w,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,v,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,Y,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,l).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{at.scrollEntries.getAll(this.element).forEach(a=>{this.setScrollStep(()=>a)})}),F.ticker.subscribe(t(this,k),{order:lt.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),N.elementResizer.subscribe(this.element,t(this,W)))}get element(){return t(this,o)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,c).current}get scale(){return t(this,l).current}get left(){return t(this,d)}get top(){return t(this,S)}get front(){return t(this,C)}get width(){return t(this,z)}get height(){return t(this,M)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,c).bind(e.rotation),e.scale&&t(this,l).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,c).unbind(e.rotation),e.scale&&t(this,l).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){F.ticker.unsubscribe(t(this,k)),N.elementResizer.unsubscribe(t(this,W)),t(this,r).close(),t(this,c).close(),t(this,l).close()}setPositionStep(...e){t(this,r).setStep(...e)}getPositionStep(...e){return t(this,r).getStepValue(...e)}setRotationStep(...e){t(this,c).setStep(...e)}getRotationStep(...e){return t(this,c).getStepValue(...e)}setScaleStep(...e){t(this,l).setStep(...e)}getScaleStep(...e){return t(this,l).getStepValue(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,l).deleteStep(...e)}}o=new WeakMap,f=new WeakMap,p=new WeakMap,_=new WeakMap,X=new WeakMap,w=new WeakMap,x=new WeakMap,v=new WeakMap,Y=new WeakMap,z=new WeakMap,M=new WeakMap,P=new WeakMap,S=new WeakMap,d=new WeakMap,C=new WeakMap,E=new WeakMap,R=new WeakMap,Z=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap,c=new WeakMap,r=new WeakMap,l=new WeakMap,B=new WeakSet,$=function(){t(this,l).calculate(),t(this,r).calculate(),t(this,c).calculate()},A=new WeakSet,j=function(){t(this,l).setStep("_size","+",{x:t(this,x)?t(this,z):1,y:t(this,x)?t(this,M):1,z:t(this,x)?t(this,P):1});const e=t(this,v)?t(this,E):0,s=t(this,v)?t(this,R):0,a=t(this,v)?t(this,Z):0;t(this,r).setStep("_position","+",{x:e,y:s,z:a}),t(this,Y)?(t(this,l).setStep("_scale","*",{x:t(this,y).x,y:t(this,y).y,z:t(this,y).z}),t(this,r).setStep("_translation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,c).setStep("_rotation","+",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z})):(t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}))},V=new WeakSet,tt=function(){const e=getComputedStyle(t(this,o));n(this,z,Math.max(t(this,o).clientWidth,1)),n(this,M,Math.max(t(this,o).clientHeight,1)),n(this,P,Math.max(rt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=O.getCumulativeOffsetLeft(t(this,f)),a=O.getCumulativeOffsetTop(t(this,f)),T=t(this,f).clientWidth,H=t(this,f).clientHeight;if(n(this,d,O.getCumulativeOffsetLeft(t(this,o))-s),n(this,S,O.getCumulativeOffsetTop(t(this,o))-a),t(this,_)==="z"){const b=t(this,d)/T,L=t(this,S)/H;n(this,d,(b-Math.floor(b))*T),n(this,S,(L-Math.floor(L))*H),t(this,X)==="left"?n(this,C,O.getCumulativeOffsetLeft(t(this,o))-s-t(this,d)):n(this,C,O.getCumulativeOffsetTop(t(this,o))-a-t(this,S))}if(n(this,d,t(this,d)+t(this,o).clientLeft),n(this,S,t(this,S)+t(this,o).clientTop),t(this,w)){const b=Math.round(T/2),L=Math.round(H/2),st=t(this,z)?Math.round(t(this,z)/2):0,it=t(this,M)?Math.round(t(this,M)/2):0,ht=t(this,d)-b+st,nt=(t(this,S)-L+it)*-1;n(this,E,ht),n(this,R,nt)}else n(this,E,t(this,d)),n(this,R,t(this,S));n(this,Z,t(this,C)*-1);const U=new WebKitCSSMatrix(e.transform),u=Q(U);t(this,g).x=u.translationX,t(this,g).y=u.translationY,t(this,g).z=u.translationZ,t(this,y).x=u.scaleX,t(this,y).y=u.scaleY,t(this,y).z=u.scaleZ,t(this,m).x=u.rotationX,t(this,m).y=u.rotationY,t(this,m).z=u.rotationZ,q(this,A,j).call(this),q(this,B,$).call(this)},D=new WeakSet,et=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let a=s.axis;t(this,_)!=="auto"&&(a=t(this,_)),t(this,r).setStep(`_scroll_${e}`,"+",{[a]:s.value*(a==="x"?-1:t(this,w)?1:-1)})}},W=new WeakMap,k=new WeakMap;exports.LayoutBox=ot;exports.decomposeCSSMatrix=Q;
@@ -1,22 +1,22 @@
1
- var k = (i, e, s) => {
1
+ var K = (i, e, s) => {
2
2
  if (!e.has(i))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var t = (i, e, s) => (k(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
5
+ var t = (i, e, s) => (K(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
6
6
  if (e.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  e instanceof WeakSet ? e.add(i) : e.set(i, s);
9
- }, n = (i, e, s, o) => (k(i, e, "write to private field"), o ? o.call(i, s) : e.set(i, s), s);
10
- var L = (i, e, s) => (k(i, e, "access private method"), s);
11
- import { cssUnitParser as lt } from "../css-unit-parser/index.js";
12
- import { Ladder as K } from "../ladder/index.js";
13
- import { TICK_ORDER as G } from "../order/index.js";
14
- import { windowResizer as J } from "../window-resizer/index.js";
9
+ }, n = (i, e, s, o) => (K(i, e, "write to private field"), o ? o.call(i, s) : e.set(i, s), s);
10
+ var P = (i, e, s) => (K(i, e, "access private method"), s);
11
+ import { cssUnitParser as rt } from "../css-unit-parser/index.js";
12
+ import { Ladder as U } from "../ladder/index.js";
13
+ import { TICK_ORDER as lt } from "../order/index.js";
15
14
  import { scrollEntries as ot } from "../scroll-entries/index.js";
16
- import { ticker as N } from "../ticker/index.js";
17
- import { i as Q } from "../browser-0zX67oeU.js";
18
- import { g as j } from "../dom-BY7JhTx5.js";
15
+ import { ticker as G } from "../ticker/index.js";
16
+ import { i as J } from "../browser-0zX67oeU.js";
17
+ import { g as N } from "../dom-BY7JhTx5.js";
19
18
  import { g as I, a as $ } from "../layout-HoBT_Da2.js";
19
+ import { elementResizer as Q } from "../element-resizer/index.js";
20
20
  function at(i) {
21
21
  const e = Math.sqrt(
22
22
  i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
@@ -24,60 +24,60 @@ function at(i) {
24
24
  i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
25
25
  ), o = Math.sqrt(
26
26
  i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
27
- ), E = Math.atan2(i.m32, i.m33), H = Math.atan2(
27
+ ), R = Math.atan2(i.m32, i.m33), X = Math.atan2(
28
28
  -i.m31,
29
29
  Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
30
- ), U = Math.atan2(i.m21, i.m11), u = i.m41, C = i.m42, b = i.m43;
30
+ ), k = Math.atan2(i.m21, i.m11), u = i.m41, b = i.m42 * -1, w = i.m43;
31
31
  return {
32
32
  scaleX: e,
33
33
  scaleY: s,
34
34
  scaleZ: o,
35
- rotationX: E,
36
- rotationY: H,
37
- rotationZ: U,
35
+ rotationX: R,
36
+ rotationY: X,
37
+ rotationZ: k,
38
38
  translationX: u,
39
- translationY: C,
40
- translationZ: b
39
+ translationY: b,
40
+ translationZ: w
41
41
  };
42
42
  }
43
- var a, p, f, _, R, O, v, x, T, y, M, P, S, d, w, X, Y, Z, m, z, g, c, r, l, A, F, B, tt, V, et, D, st, W, q;
43
+ var a, p, f, _, Y, L, v, x, T, y, M, E, S, d, C, H, O, Z, m, z, g, c, r, l, W, F, V, j, B, tt, D, et, q, A;
44
44
  class Mt {
45
45
  constructor(e, s) {
46
- h(this, A);
47
- h(this, B);
46
+ h(this, W);
48
47
  h(this, V);
48
+ h(this, B);
49
49
  h(this, D);
50
50
  h(this, a, null);
51
51
  h(this, p, null);
52
52
  h(this, f, []);
53
53
  h(this, _, "auto");
54
- h(this, R, "top");
55
- h(this, O, !1);
54
+ h(this, Y, "top");
55
+ h(this, L, !1);
56
56
  h(this, v, !0);
57
57
  h(this, x, !0);
58
58
  h(this, T, !0);
59
59
  h(this, y, 0);
60
60
  h(this, M, 0);
61
- h(this, P, 0);
61
+ h(this, E, 0);
62
62
  h(this, S, 0);
63
63
  h(this, d, 0);
64
- h(this, w, 0);
65
- h(this, X, 0);
66
- h(this, Y, 0);
64
+ h(this, C, 0);
65
+ h(this, H, 0);
66
+ h(this, O, 0);
67
67
  h(this, Z, 0);
68
68
  h(this, m, { x: 0, y: 0, z: 0 });
69
69
  h(this, z, { x: 0, y: 0, z: 0 });
70
70
  h(this, g, { x: 1, y: 1, z: 1 });
71
- h(this, c, new K({ x: 0, y: 0, z: 0 }));
72
- h(this, r, new K({ x: 0, y: 0, z: 0 }));
73
- h(this, l, new K({ x: 0, y: 0, z: 0 }));
74
- h(this, W, () => {
75
- Q && L(this, V, et).call(this);
76
- });
71
+ h(this, c, new U({ x: 0, y: 0, z: 0 }));
72
+ h(this, r, new U({ x: 0, y: 0, z: 0 }));
73
+ h(this, l, new U({ x: 0, y: 0, z: 0 }));
77
74
  h(this, q, () => {
78
- L(this, D, st).call(this), L(this, A, F).call(this);
75
+ J && P(this, B, tt).call(this);
79
76
  });
80
- Q && (n(this, a, j(e) || document.body), n(this, p, j(s == null ? void 0 : s.containerElement) || document.body), n(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), n(this, R, (s == null ? void 0 : s.frontSide) || "top"), n(this, O, (s == null ? void 0 : s.cartesian) || !1), n(this, v, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), n(this, x, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), n(this, T, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), t(this, l).setStep("_size", "+", {
77
+ h(this, A, () => {
78
+ P(this, D, et).call(this), P(this, W, F).call(this);
79
+ });
80
+ J && (n(this, a, N(e) || document.body), n(this, p, N(s == null ? void 0 : s.containerElement) || document.body), n(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), n(this, Y, (s == null ? void 0 : s.frontSide) || "top"), n(this, L, (s == null ? void 0 : s.cartesian) || !1), n(this, v, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), n(this, x, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), n(this, T, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), t(this, l).setStep("_size", "+", {
81
81
  x: 1,
82
82
  y: 1,
83
83
  z: 1
@@ -101,10 +101,10 @@ class Mt {
101
101
  ot.getAll(this.element).forEach((o) => {
102
102
  this.setScrollStep(() => o);
103
103
  });
104
- }), N.subscribe(t(this, q), {
105
- order: G.LAYOUT_BOX,
104
+ }), G.subscribe(t(this, A), {
105
+ order: lt.LAYOUT_BOX,
106
106
  culling: s != null && s.culling ? this.element : void 0
107
- }), J.subscribe(t(this, W), G.LAYOUT_BOX));
107
+ }), Q.subscribe(this.element, t(this, q)));
108
108
  }
109
109
  get element() {
110
110
  return t(this, a);
@@ -128,7 +128,7 @@ class Mt {
128
128
  return t(this, S);
129
129
  }
130
130
  get front() {
131
- return t(this, w);
131
+ return t(this, C);
132
132
  }
133
133
  get width() {
134
134
  return t(this, y);
@@ -137,7 +137,7 @@ class Mt {
137
137
  return t(this, M);
138
138
  }
139
139
  get depth() {
140
- return t(this, P);
140
+ return t(this, E);
141
141
  }
142
142
  bindObject(e) {
143
143
  e.position && t(this, r).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, l).bind(e.scale);
@@ -154,7 +154,7 @@ class Mt {
154
154
  ));
155
155
  }
156
156
  destroy() {
157
- N.unsubscribe(t(this, q)), J.unsubscribe(t(this, W)), t(this, r).close(), t(this, c).close(), t(this, l).close();
157
+ G.unsubscribe(t(this, A)), Q.unsubscribe(t(this, q)), t(this, r).close(), t(this, c).close(), t(this, l).close();
158
158
  }
159
159
  setPositionStep(...e) {
160
160
  t(this, r).setStep(...e);
@@ -184,15 +184,15 @@ class Mt {
184
184
  t(this, l).deleteStep(...e);
185
185
  }
186
186
  }
187
- a = new WeakMap(), p = new WeakMap(), f = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), O = new WeakMap(), v = new WeakMap(), x = new WeakMap(), T = new WeakMap(), y = new WeakMap(), M = new WeakMap(), P = new WeakMap(), S = new WeakMap(), d = new WeakMap(), w = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), Z = new WeakMap(), m = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), r = new WeakMap(), l = new WeakMap(), A = new WeakSet(), F = function() {
187
+ a = new WeakMap(), p = new WeakMap(), f = new WeakMap(), _ = new WeakMap(), Y = new WeakMap(), L = new WeakMap(), v = new WeakMap(), x = new WeakMap(), T = new WeakMap(), y = new WeakMap(), M = new WeakMap(), E = new WeakMap(), S = new WeakMap(), d = new WeakMap(), C = new WeakMap(), H = new WeakMap(), O = new WeakMap(), Z = new WeakMap(), m = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), r = new WeakMap(), l = new WeakMap(), W = new WeakSet(), F = function() {
188
188
  t(this, l).calculate(), t(this, r).calculate(), t(this, c).calculate();
189
- }, B = new WeakSet(), tt = function() {
189
+ }, V = new WeakSet(), j = function() {
190
190
  t(this, l).setStep("_size", "+", {
191
191
  x: t(this, v) ? t(this, y) : 1,
192
192
  y: t(this, v) ? t(this, M) : 1,
193
- z: t(this, v) ? t(this, P) : 1
193
+ z: t(this, v) ? t(this, E) : 1
194
194
  });
195
- const e = t(this, x) ? t(this, X) : 0, s = t(this, x) ? t(this, Y) : 0, o = t(this, x) ? t(this, Z) : 0;
195
+ const e = t(this, x) ? t(this, H) : 0, s = t(this, x) ? t(this, O) : 0, o = t(this, x) ? t(this, Z) : 0;
196
196
  t(this, r).setStep("_position", "+", {
197
197
  x: e,
198
198
  y: s,
@@ -222,34 +222,34 @@ a = new WeakMap(), p = new WeakMap(), f = new WeakMap(), _ = new WeakMap(), R =
222
222
  y: 0,
223
223
  z: 0
224
224
  }));
225
- }, V = new WeakSet(), et = function() {
225
+ }, B = new WeakSet(), tt = function() {
226
226
  const e = getComputedStyle(t(this, a));
227
- n(this, y, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this, P, Math.max(
228
- lt.parse(e.getPropertyValue("--depth") || "0px"),
227
+ n(this, y, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this, E, Math.max(
228
+ rt.parse(e.getPropertyValue("--depth") || "0px"),
229
229
  1
230
230
  ));
231
- const s = I(t(this, p)), o = $(t(this, p)), E = t(this, p).clientWidth, H = t(this, p).clientHeight;
231
+ const s = I(t(this, p)), o = $(t(this, p)), R = t(this, p).clientWidth, X = t(this, p).clientHeight;
232
232
  if (n(this, d, I(t(this, a)) - s), n(this, S, $(t(this, a)) - o), t(this, _) === "z") {
233
- const C = t(this, d) / E, b = t(this, S) / H;
234
- n(this, d, (C - Math.floor(C)) * E), n(this, S, (b - Math.floor(b)) * H), t(this, R) === "left" ? n(this, w, I(t(this, a)) - s - t(this, d)) : n(this, w, $(t(this, a)) - o - t(this, S));
233
+ const b = t(this, d) / R, w = t(this, S) / X;
234
+ n(this, d, (b - Math.floor(b)) * R), n(this, S, (w - Math.floor(w)) * X), t(this, Y) === "left" ? n(this, C, I(t(this, a)) - s - t(this, d)) : n(this, C, $(t(this, a)) - o - t(this, S));
235
235
  }
236
- if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, O)) {
237
- const C = Math.round(E / 2), b = Math.round(H / 2), it = t(this, y) ? Math.round(t(this, y) / 2) : 0, ht = t(this, M) ? Math.round(t(this, M) / 2) : 0, nt = t(this, d) - C + it, rt = (t(this, S) - b + ht) * -1;
238
- n(this, X, nt), n(this, Y, rt);
236
+ if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, L)) {
237
+ const b = Math.round(R / 2), w = Math.round(X / 2), st = t(this, y) ? Math.round(t(this, y) / 2) : 0, it = t(this, M) ? Math.round(t(this, M) / 2) : 0, ht = t(this, d) - b + st, nt = (t(this, S) - w + it) * -1;
238
+ n(this, H, ht), n(this, O, nt);
239
239
  } else
240
- n(this, X, t(this, d)), n(this, Y, t(this, S));
241
- n(this, Z, t(this, w) * -1);
242
- const U = new WebKitCSSMatrix(e.transform), u = at(U);
243
- t(this, m).x = u.translationX, t(this, m).y = u.translationY, t(this, m).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, L(this, B, tt).call(this), L(this, A, F).call(this);
244
- }, D = new WeakSet(), st = function() {
240
+ n(this, H, t(this, d)), n(this, O, t(this, S));
241
+ n(this, Z, t(this, C) * -1);
242
+ const k = new WebKitCSSMatrix(e.transform), u = at(k);
243
+ t(this, m).x = u.translationX, t(this, m).y = u.translationY, t(this, m).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, P(this, V, j).call(this), P(this, W, F).call(this);
244
+ }, D = new WeakSet(), et = function() {
245
245
  for (let e = 0; e < t(this, f).length; e++) {
246
246
  const s = t(this, f)[e]();
247
247
  let o = s.axis;
248
248
  t(this, _) !== "auto" && (o = t(this, _)), t(this, r).setStep(`_scroll_${e}`, "+", {
249
- [o]: s.value * (o === "x" ? -1 : t(this, O) ? 1 : -1)
249
+ [o]: s.value * (o === "x" ? -1 : t(this, L) ? 1 : -1)
250
250
  });
251
251
  }
252
- }, W = new WeakMap(), q = new WeakMap();
252
+ }, q = new WeakMap(), A = new WeakMap();
253
253
  export {
254
254
  Mt as LayoutBox,
255
255
  at as decomposeCSSMatrix