aptechka 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/lib/{Animation-De9aUv3b.cjs → Animation-DI864E0i.cjs} +1 -1
  2. package/lib/{Animation-NAGXiFv5.js → Animation-w6BLTCum.js} +1 -1
  3. package/lib/{Damped-DbJKrUIf.js → Damped-DEHDEq-b.js} +1 -1
  4. package/lib/{Damped-DYJ6Z0xo.cjs → Damped-ipnDc0iX.cjs} +1 -1
  5. package/lib/Store-CDb6RMce.cjs +1 -0
  6. package/lib/Store-OTdcl6SX.js +134 -0
  7. package/lib/{Tweened-BkkD9s4n.cjs → Tweened-B1TfANfR.cjs} +1 -1
  8. package/lib/{Tweened-DOSHLCZa.js → Tweened-C52xXDLY.js} +1 -1
  9. package/lib/{Viewport-Cv4TRGiv.cjs → Viewport-BDPsnAF4.cjs} +1 -1
  10. package/lib/{Viewport-B55BvLsV.js → Viewport-taEXS8Uv.js} +1 -1
  11. package/lib/animation/index.cjs +1 -1
  12. package/lib/animation/index.js +3 -3
  13. package/lib/attribute/index.cjs +1 -1
  14. package/lib/attribute/index.js +1 -1
  15. package/lib/canvas/index.cjs +1 -7
  16. package/lib/canvas/index.js +49 -48
  17. package/lib/class-linked-status/index.cjs +1 -1
  18. package/lib/class-linked-status/index.js +1 -1
  19. package/lib/controls/index.cjs +1 -1
  20. package/lib/controls/index.js +2 -2
  21. package/lib/css-property/index.cjs +1 -1
  22. package/lib/css-property/index.js +1 -1
  23. package/lib/dev/index.cjs +1 -1
  24. package/lib/dev/index.js +1 -1
  25. package/lib/device/index.cjs +1 -1
  26. package/lib/device/index.js +1 -1
  27. package/lib/element-constructor/index.cjs +1 -1
  28. package/lib/element-constructor/index.js +845 -130
  29. package/lib/en3/index.cjs +8 -1
  30. package/lib/en3/index.js +372 -4
  31. package/lib/image/index.cjs +1 -1
  32. package/lib/image/index.js +1 -1
  33. package/lib/jss-CjccJC-K.js +21 -0
  34. package/lib/jss-GJLvaNfT.cjs +1 -0
  35. package/lib/ladder/index.cjs +1 -1
  36. package/lib/ladder/index.js +1 -1
  37. package/lib/media/index.cjs +1 -1
  38. package/lib/media/index.js +1 -1
  39. package/lib/need_redo_tweaker/index.cjs +4 -4
  40. package/lib/need_redo_tweaker/index.js +415 -421
  41. package/lib/pointer/index.cjs +1 -1
  42. package/lib/pointer/index.js +2 -2
  43. package/lib/popover/index.cjs +1 -1
  44. package/lib/popover/index.js +15 -21
  45. package/lib/scroll/index.cjs +1 -1
  46. package/lib/scroll/index.js +576 -608
  47. package/lib/sequence/index.cjs +1 -1
  48. package/lib/sequence/index.js +1 -1
  49. package/lib/source/index.cjs +2 -2
  50. package/lib/source/index.js +154 -62
  51. package/lib/store/index.cjs +1 -1
  52. package/lib/store/index.js +71 -37
  53. package/lib/utils/index.cjs +1 -1
  54. package/lib/utils/index.js +59 -56
  55. package/lib/video/index.cjs +1 -1
  56. package/lib/video/index.js +1 -1
  57. package/package.json +1 -26
  58. package/lib/Composed-C_4slJQ6.cjs +0 -1
  59. package/lib/Composed-CfWa-69I.js +0 -31
  60. package/lib/Derived-BIBU-y7Z.cjs +0 -1
  61. package/lib/Derived-Vo_RsJfi.js +0 -23
  62. package/lib/SourceManager-B6wZpXUZ.js +0 -104
  63. package/lib/SourceManager-CfHcGLUa.cjs +0 -1
  64. package/lib/Store-C46i0nvr.js +0 -137
  65. package/lib/Store-npaZHvX4.cjs +0 -1
  66. package/lib/createStylesheet-C68ja-RS.js +0 -8
  67. package/lib/createStylesheet-Csfmh-MH.cjs +0 -1
  68. package/lib/en3/helpers/index.cjs +0 -1
  69. package/lib/en3/helpers/index.js +0 -1870
  70. package/lib/en3/libs/index.cjs +0 -1
  71. package/lib/en3/libs/index.js +0 -200
  72. package/lib/en3/loaders/index.cjs +0 -1
  73. package/lib/en3/loaders/index.js +0 -1742
  74. package/lib/en3/misc/index.cjs +0 -10
  75. package/lib/en3/misc/index.js +0 -110
  76. package/lib/en3/utils/index.cjs +0 -1
  77. package/lib/en3/utils/index.js +0 -20
  78. package/lib/en3-C1fLmsjs.cjs +0 -8
  79. package/lib/en3-sK9Z-fp2.js +0 -344
  80. package/lib/tags-6_ETuR75.cjs +0 -1
  81. package/lib/tags-zft1DGBz.js +0 -833
  82. package/lib/traverseMaterials-BlZbRhgW.js +0 -29
  83. package/lib/traverseMaterials-CD_3_56D.cjs +0 -1
@@ -1,23 +1,24 @@
1
1
  import { a as b, p as C } from "../attributes-69we3byR.js";
2
- import { i as w } from "../browser-0zX67oeU.js";
3
- import { a as y, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
4
- import { g as T, n as v, s as A } from "../coordinates-CgdGoSYs.js";
2
+ import { i as y } from "../browser-0zX67oeU.js";
3
+ import { a as w, c as O, f as B, m as I } from "../canvas-DeZ0SLUJ.js";
4
+ import { g as P, n as v, s as A } from "../coordinates-CgdGoSYs.js";
5
5
  import { f as D, b as M, a as R, g as z } from "../dom-0S_WDL4g.js";
6
6
  import { c as j, n as N, f as V, p as U, b as $, i as F, m as K, e as W, g as q, j as G, d as H, o as J, a as L, h as Y, k as Z, l as X } from "../easings-BKi40vHz.js";
7
7
  import { c as ee, a as ae, d as te } from "../file-BEr-o55N.js";
8
8
  import { d as oe, t as ne } from "../function-C10DGppn.js";
9
9
  import { s as ie } from "../gestures-D2Fdra_G.js";
10
- import { g as ce, a as le, b as fe } from "../layout-HoBT_Da2.js";
11
- import { e as me, f as de, c as ge, d as xe, l as he, m as be, r as Ce, b as Ee, a as we, s as Se } from "../math-BOBiC4TN.js";
12
- import { n as Oe, p as Be, r as Ie, t as Pe } from "../polyfills-X6KXuHg-.js";
13
- import { c as ve, d as Ae, i as Qe, b as De, a as Me, m as Re, e as ze, o as ke, p as je } from "../object-D6MVWB4l.js";
14
- import { c as Ve, a as Ue, g as $e, i as Fe, k as Ke, s as We, t as qe, u as Ge } from "../string-f0Dnk0L1.js";
15
- import { g as Je, a as Le } from "../style-j2TwriJ_.js";
16
- import { c as Ze, n as Xe, s as _e } from "../url-DMNfW7uN.js";
10
+ import { c as ue, s as le } from "../jss-CjccJC-K.js";
11
+ import { g as pe, a as me, b as de } from "../layout-HoBT_Da2.js";
12
+ import { e as xe, f as he, c as be, d as Ce, l as Se, m as ye, r as Ee, b as we, a as Oe, s as Be } from "../math-BOBiC4TN.js";
13
+ import { n as Te, p as Pe, r as ve, t as Ae } from "../polyfills-X6KXuHg-.js";
14
+ import { c as De, d as Me, i as Re, b as ze, a as ke, m as je, e as Ne, o as Ve, p as Ue } from "../object-D6MVWB4l.js";
15
+ import { c as Fe, a as Ke, g as We, i as qe, k as Ge, s as He, t as Je, u as Le } from "../string-f0Dnk0L1.js";
16
+ import { g as Ze, a as Xe } from "../style-j2TwriJ_.js";
17
+ import { c as ea, n as aa, s as ta } from "../url-DMNfW7uN.js";
17
18
  function i(a, e, ...t) {
18
19
  return [...a.slice(0, e), ...t, ...a.slice(e)];
19
20
  }
20
- function u(a, e) {
21
+ function c(a, e) {
21
22
  const t = a.length;
22
23
  e = e % t;
23
24
  const s = new Array(t);
@@ -27,7 +28,7 @@ function u(a, e) {
27
28
  }
28
29
  return s;
29
30
  }
30
- function c(a, e = 2) {
31
+ function u(a, e = 2) {
31
32
  if (!+a) return "0 Bytes";
32
33
  const t = 1024, s = e < 0 ? 0 : e, o = [
33
34
  "Bytes",
@@ -84,18 +85,19 @@ function g(a) {
84
85
  });
85
86
  }
86
87
  export {
87
- me as calculateDistance,
88
- de as calculateDistanceWithRadius,
89
- Ve as camelToKebab,
90
- Ue as capitalize,
91
- Ze as changeHistory,
92
- ge as clamp,
93
- ve as cloneDeep,
94
- Ae as compareObjects,
95
- y as contain,
88
+ xe as calculateDistance,
89
+ he as calculateDistanceWithRadius,
90
+ Fe as camelToKebab,
91
+ Ke as capitalize,
92
+ ea as changeHistory,
93
+ be as clamp,
94
+ De as cloneDeep,
95
+ Me as compareObjects,
96
+ w as contain,
96
97
  O as cover,
97
98
  ee as createJSONAndSave,
98
- xe as damp,
99
+ ue as createStylesheet,
100
+ Ce as damp,
99
101
  oe as debounce,
100
102
  d as decode,
101
103
  ae as dispatchBeforeSizeChangeEvent,
@@ -121,51 +123,52 @@ export {
121
123
  D as findParentElement,
122
124
  M as findScrollParentElement,
123
125
  B as fixPosition,
124
- c as formatBytes,
125
- $e as generateId,
126
+ u as formatBytes,
127
+ We as generateId,
126
128
  R as getAllParentElements,
127
- ce as getCumulativeOffsetLeft,
128
- le as getCumulativeOffsetTop,
129
- fe as getCumulativePosition,
129
+ pe as getCumulativeOffsetLeft,
130
+ me as getCumulativeOffsetTop,
131
+ de as getCumulativePosition,
130
132
  z as getElement,
131
- Je as getElementTransitionDurationMS,
132
- Le as getElementTransitionDurationS,
133
- T as getPointerPosition,
133
+ Ze as getElementTransitionDurationMS,
134
+ Xe as getElementTransitionDurationS,
135
+ P as getPointerPosition,
134
136
  p as getRootVariables,
135
137
  i as insert,
136
- w as isBrowser,
137
- Qe as isESClass,
138
- De as isNullish,
139
- Me as isObject,
140
- Fe as isUppercase,
141
- Ke as kebabToCamel,
142
- he as lerp,
138
+ y as isBrowser,
139
+ Re as isESClass,
140
+ ze as isNullish,
141
+ ke as isObject,
142
+ qe as isUppercase,
143
+ Ge as kebabToCamel,
144
+ Se as lerp,
143
145
  X as linear,
144
- be as mapRange,
146
+ ye as mapRange,
145
147
  I as measureText,
146
- Re as mergeDeep,
147
- ze as mixin,
148
+ je as mergeDeep,
149
+ Ne as mixin,
148
150
  v as normalize,
149
- Xe as normalizeBase,
150
- Oe as nullishCoalescing,
151
- ke as omit,
151
+ aa as normalizeBase,
152
+ Te as nullishCoalescing,
153
+ Ve as omit,
152
154
  b as parseAttribute,
153
155
  C as parseAttributeValue,
154
- je as pick,
155
- Be as preciseNumber,
156
- Ce as round,
157
- Ie as roundNumberTo,
156
+ Ue as pick,
157
+ Pe as preciseNumber,
158
+ Ee as round,
159
+ ve as roundNumberTo,
158
160
  A as screenToCartesian,
159
161
  ie as setupDrag,
160
- u as shiftArray,
161
- Ee as smootherstep,
162
- we as smoothstep,
163
- We as snakeToDotted,
164
- _e as splitPath,
165
- Se as step,
162
+ c as shiftArray,
163
+ we as smootherstep,
164
+ Oe as smoothstep,
165
+ He as snakeToDotted,
166
+ ta as splitPath,
167
+ Be as step,
168
+ le as styleToString,
166
169
  ne as throttle,
167
- qe as toPascalCase,
168
- Pe as toStep,
169
- Ge as uncapitalize,
170
+ Je as toPascalCase,
171
+ Ae as toStep,
172
+ Le as uncapitalize,
170
173
  g as wait
171
174
  };
@@ -1 +1 @@
1
- "use strict";var l=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||l("Cannot "+t);var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>s.has(e)?l("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,o)=>(d(e,s,"write to private field"),o?o.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-npaZHvX4.cjs");const m=require("../source/index.cjs"),u=require("../ticker/index.cjs");var r,a;class h extends m.SourceElement{constructor(){super(...arguments);n(this,r,0);n(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>i(this,r)&&c(this,r,t),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}})),this.consumerElement.readyState===4&&u.ticker.unsubscribe(i(this,a))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{u.ticker.subscribe(i(this,a)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),u.ticker.unsubscribe(i(this,a)),c(this,r,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}r=new WeakMap,a=new WeakMap;customElements.get("e-video")||customElements.define("e-video",h);exports.VideoElement=h;
1
+ "use strict";var l=e=>{throw TypeError(e)};var d=(e,s,t)=>s.has(e)||l("Cannot "+t);var i=(e,s,t)=>(d(e,s,"read from private field"),t?t.call(e):s.get(e)),n=(e,s,t)=>s.has(e)?l("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,o)=>(d(e,s,"write to private field"),o?o.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../window-resizer/index.cjs");require("../Store-CDb6RMce.cjs");const m=require("../source/index.cjs"),u=require("../ticker/index.cjs");var r,a;class h extends m.SourceElement{constructor(){super(...arguments);n(this,r,0);n(this,a,()=>{this.classList.add(`state-${this.consumerElement.readyState}`);const t=this.consumerElement.readyState/4;t>i(this,r)&&c(this,r,t),this.dispatchEvent(new CustomEvent("readyStateChange",{detail:{readyState:this.consumerElement.readyState,progress:i(this,r)}})),this.consumerElement.readyState===4&&u.ticker.unsubscribe(i(this,a))})}connectedCallback(){super.connectedCallback(),this.addEventListener("sourceCapture",()=>{u.ticker.subscribe(i(this,a)),this.hasAttribute("capture-autoplay")&&this.consumerElement.play()}),this.addEventListener("sourceRelease",()=>{this.hasAttribute("capture-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0)),this.hasAttribute("reload-source")&&this.classList.remove("state-0","state-1","state-2","state-3","state-4")})}disconnectedCallback(){super.disconnectedCallback(),u.ticker.unsubscribe(i(this,a)),c(this,r,0)}createConsumer(){return document.createElement("video")}consumeSource(t){this.consumerElement.src=t||""}}r=new WeakMap,a=new WeakMap;customElements.get("e-video")||customElements.define("e-video",h);exports.VideoElement=h;
@@ -4,7 +4,7 @@ var m = (e) => {
4
4
  var h = (e, s, t) => s.has(e) || m("Cannot " + t);
5
5
  var i = (e, s, t) => (h(e, s, "read from private field"), t ? t.call(e) : s.get(e)), n = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, u) => (h(e, s, "write to private field"), u ? u.call(e, t) : s.set(e, t), t);
6
6
  import "../window-resizer/index.js";
7
- import "../Store-C46i0nvr.js";
7
+ import "../Store-OTdcl6SX.js";
8
8
  import { SourceElement as l } from "../source/index.js";
9
9
  import { ticker as o } from "../ticker/index.js";
10
10
  var r, a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -88,31 +88,6 @@
88
88
  "default": "./lib/en3/index.js",
89
89
  "types": "./lib/en3/index.d.ts"
90
90
  },
91
- "./en3/helpers": {
92
- "require": "./lib/en3/helpers/index.cjs",
93
- "default": "./lib/en3/helpers/index.js",
94
- "types": "./lib/en3/helpers/index.d.ts"
95
- },
96
- "./en3/libs": {
97
- "require": "./lib/en3/libs/index.cjs",
98
- "default": "./lib/en3/libs/index.js",
99
- "types": "./lib/en3/libs/index.d.ts"
100
- },
101
- "./en3/loaders": {
102
- "require": "./lib/en3/loaders/index.cjs",
103
- "default": "./lib/en3/loaders/index.js",
104
- "types": "./lib/en3/loaders/index.d.ts"
105
- },
106
- "./en3/misc": {
107
- "require": "./lib/en3/misc/index.cjs",
108
- "default": "./lib/en3/misc/index.js",
109
- "types": "./lib/en3/misc/index.d.ts"
110
- },
111
- "./en3/utils": {
112
- "require": "./lib/en3/utils/index.cjs",
113
- "default": "./lib/en3/utils/index.js",
114
- "types": "./lib/en3/utils/index.d.ts"
115
- },
116
91
  "./image": {
117
92
  "require": "./lib/image/index.cjs",
118
93
  "default": "./lib/image/index.js",
@@ -1 +0,0 @@
1
- "use strict";var t=s=>{throw TypeError(s)};var b=(s,e,r)=>e.has(s)||t("Cannot "+r);var c=(s,e,r)=>(b(s,e,"read from private field"),r?r.call(s):e.get(s)),u=(s,e,r)=>e.has(s)?t("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,r);const d=require("./function-MthRj-GJ.cjs"),l=require("./Store-npaZHvX4.cjs");var o;class a extends l.Store{constructor(r,n,i){super(null,i);u(this,o,[]);const h=d.debounce(()=>{this.current=n()},0);r.forEach(p=>{c(this,o).push(p.subscribe(()=>{h()}))})}close(){super.close(),c(this,o).forEach(r=>r())}}o=new WeakMap;exports.Composed=a;
@@ -1,31 +0,0 @@
1
- var c = (s) => {
2
- throw TypeError(s);
3
- };
4
- var h = (s, r, o) => r.has(s) || c("Cannot " + o);
5
- var t = (s, r, o) => (h(s, r, "read from private field"), o ? o.call(s) : r.get(s)), u = (s, r, o) => r.has(s) ? c("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, o);
6
- import { d as b } from "./function-C10DGppn.js";
7
- import { S as d } from "./Store-C46i0nvr.js";
8
- var e;
9
- class x extends d {
10
- constructor(o, p, a) {
11
- super(null, a);
12
- u(this, e, []);
13
- const i = b(() => {
14
- this.current = p();
15
- }, 0);
16
- o.forEach((n) => {
17
- t(this, e).push(
18
- n.subscribe(() => {
19
- i();
20
- })
21
- );
22
- });
23
- }
24
- close() {
25
- super.close(), t(this, e).forEach((o) => o());
26
- }
27
- }
28
- e = new WeakMap();
29
- export {
30
- x as C
31
- };
@@ -1 +0,0 @@
1
- "use strict";var u=e=>{throw TypeError(e)};var i=(e,r,s)=>r.has(e)||u("Cannot "+s);var n=(e,r,s)=>(i(e,r,"read from private field"),s?s.call(e):r.get(e)),o=(e,r,s)=>r.has(e)?u("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),l=(e,r,s,c)=>(i(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const h=require("./Store-npaZHvX4.cjs");var t;class p extends h.Store{constructor(s,c,b){super(null,b);o(this,t);l(this,t,s.subscribe(d=>{this.current=c(d.current)}))}close(){super.close(),n(this,t).call(this)}}t=new WeakMap;exports.Derived=p;
@@ -1,23 +0,0 @@
1
- var u = (s) => {
2
- throw TypeError(s);
3
- };
4
- var o = (s, r, e) => r.has(s) || u("Cannot " + e);
5
- var i = (s, r, e) => (o(s, r, "read from private field"), e ? e.call(s) : r.get(s)), n = (s, r, e) => r.has(s) ? u("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), l = (s, r, e, c) => (o(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
6
- import { S as a } from "./Store-C46i0nvr.js";
7
- var t;
8
- class m extends a {
9
- constructor(e, c, b) {
10
- super(null, b);
11
- n(this, t);
12
- l(this, t, e.subscribe((p) => {
13
- this.current = c(p.current);
14
- }));
15
- }
16
- close() {
17
- super.close(), i(this, t).call(this);
18
- }
19
- }
20
- t = new WeakMap();
21
- export {
22
- m as D
23
- };
@@ -1,104 +0,0 @@
1
- var $ = (a) => {
2
- throw TypeError(a);
3
- };
4
- var k = (a, e, t) => e.has(a) || $("Cannot " + t);
5
- var r = (a, e, t) => (k(a, e, "read from private field"), t ? t.call(a) : e.get(a)), o = (a, e, t) => e.has(a) ? $("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, t), i = (a, e, t, n) => (k(a, e, "write to private field"), n ? n.call(a, t) : e.set(a, t), t);
6
- import { RESIZE_ORDER as B } from "./order/index.js";
7
- import { windowResizer as A } from "./window-resizer/index.js";
8
- import { S as T } from "./Store-C46i0nvr.js";
9
- var y, g, q, u, c, d, w;
10
- class O {
11
- constructor(e) {
12
- o(this, y);
13
- o(this, g);
14
- o(this, q);
15
- o(this, u);
16
- o(this, c);
17
- o(this, d);
18
- o(this, w);
19
- i(this, y, e);
20
- const t = e.indexOf("?");
21
- t >= 0 && (e = e.slice(0, t));
22
- const n = e.split(".");
23
- i(this, g, n[0]);
24
- const f = /\d+x/g, h = n.find((m) => m.match(f));
25
- i(this, q, h ? parseInt(h) : 1);
26
- const x = /\d+max/g, M = /\d+min/g, s = /\d+mar/g, p = /\d+mir/g, I = n.find((m) => m.match(x)), V = n.find((m) => m.match(M)), b = n.find((m) => m.match(s)), S = n.find((m) => m.match(p));
27
- b ? (i(this, c, parseInt(b)), i(this, d, "max"), i(this, u, `(max-aspect-ratio: ${r(this, c)})`)) : S ? (i(this, c, parseInt(S)), i(this, d, "max"), i(this, u, `(min-aspect-ratio: ${r(this, c)})`)) : I ? (i(this, c, parseInt(I)), i(this, d, "max"), i(this, u, `(max-width: ${r(this, c)}px)`)) : V ? (i(this, c, parseInt(V)), i(this, u, `(min-width: ${r(this, c)}px)`), i(this, d, "min")) : (i(this, c, 0), i(this, u, `(min-width: ${r(this, c)}px)`), i(this, d, "min")), i(this, w, "." + n[n.length - 1]);
28
- }
29
- get url() {
30
- return r(this, y);
31
- }
32
- get name() {
33
- return r(this, g);
34
- }
35
- get density() {
36
- return r(this, q);
37
- }
38
- get query() {
39
- return r(this, u);
40
- }
41
- get extension() {
42
- return r(this, w);
43
- }
44
- get queryType() {
45
- return r(this, d);
46
- }
47
- get queryValue() {
48
- return r(this, c);
49
- }
50
- }
51
- y = new WeakMap(), g = new WeakMap(), q = new WeakMap(), u = new WeakMap(), c = new WeakMap(), d = new WeakMap(), w = new WeakMap();
52
- var l;
53
- class P {
54
- constructor(e) {
55
- o(this, l);
56
- i(this, l, /* @__PURE__ */ new Map());
57
- const t = typeof e == "string" ? e.trim().split(",").map((s) => s.trim()).filter((s) => !!s) : e, n = [];
58
- t.forEach((s) => {
59
- const p = new O(s);
60
- n.push([p.query, p]);
61
- });
62
- const f = n.filter((s) => s[1].queryType.includes("max")).sort((s, p) => p[1].queryValue - s[1].queryValue), h = n.filter((s) => s[1].queryType.includes("min") && s[1].queryValue !== 0).sort((s, p) => s[1].queryValue - p[1].queryValue), x = n.filter((s) => s[0] === "(min-width: 0px)");
63
- (x ? [...x, ...f, ...h] : [...f, ...h]).forEach((s) => {
64
- r(this, l).has(s[0]) || r(this, l).set(s[0], []), r(this, l).get(s[0]).push(s[1]);
65
- });
66
- }
67
- get mediaBuckets() {
68
- return r(this, l);
69
- }
70
- }
71
- l = new WeakMap();
72
- var E, R;
73
- class G extends T {
74
- constructor(t) {
75
- super(void 0);
76
- o(this, E);
77
- o(this, R, () => {
78
- let t;
79
- r(this, E).mediaBuckets.forEach((h, x) => {
80
- matchMedia(x).matches && (t = h);
81
- });
82
- let n, f = 0;
83
- t == null || t.forEach((h) => {
84
- h.density > f && h.density <= Math.max(devicePixelRatio, 1) && (f = h.density, n = h);
85
- }), t != null && t.length && !n && (n = t[0]), this.current = n;
86
- });
87
- i(this, E, new P(t.srcset));
88
- }
89
- close() {
90
- super.close(), this.disconnect();
91
- }
92
- connect() {
93
- A.subscribe(r(this, R), B.SOURCE_MANAGER);
94
- }
95
- disconnect() {
96
- A.unsubscribe(r(this, R));
97
- }
98
- }
99
- E = new WeakMap(), R = new WeakMap();
100
- export {
101
- G as S,
102
- O as a,
103
- P as b
104
- };
@@ -1 +0,0 @@
1
- "use strict";var b=c=>{throw TypeError(c)};var k=(c,e,t)=>e.has(c)||b("Cannot "+t);var r=(c,e,t)=>(k(c,e,"read from private field"),t?t.call(c):e.get(c)),o=(c,e,t)=>e.has(c)?b("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,t),i=(c,e,t,n)=>(k(c,e,"write to private field"),n?n.call(c,t):e.set(c,t),t);const T=require("./order/index.cjs"),z=require("./window-resizer/index.cjs"),_=require("./Store-npaZHvX4.cjs");var y,g,q,m,a,d,w;class A{constructor(e){o(this,y);o(this,g);o(this,q);o(this,m);o(this,a);o(this,d);o(this,w);i(this,y,e);const t=e.indexOf("?");t>=0&&(e=e.slice(0,t));const n=e.split(".");i(this,g,n[0]);const x=/\d+x/g,h=n.find(u=>u.match(x));i(this,q,h?parseInt(h):1);const f=/\d+max/g,M=/\d+min/g,s=/\d+mar/g,l=/\d+mir/g,S=n.find(u=>u.match(f)),I=n.find(u=>u.match(M)),V=n.find(u=>u.match(s)),$=n.find(u=>u.match(l));V?(i(this,a,parseInt(V)),i(this,d,"max"),i(this,m,`(max-aspect-ratio: ${r(this,a)})`)):$?(i(this,a,parseInt($)),i(this,d,"max"),i(this,m,`(min-aspect-ratio: ${r(this,a)})`)):S?(i(this,a,parseInt(S)),i(this,d,"max"),i(this,m,`(max-width: ${r(this,a)}px)`)):I?(i(this,a,parseInt(I)),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")):(i(this,a,0),i(this,m,`(min-width: ${r(this,a)}px)`),i(this,d,"min")),i(this,w,"."+n[n.length-1])}get url(){return r(this,y)}get name(){return r(this,g)}get density(){return r(this,q)}get query(){return r(this,m)}get extension(){return r(this,w)}get queryType(){return r(this,d)}get queryValue(){return r(this,a)}}y=new WeakMap,g=new WeakMap,q=new WeakMap,m=new WeakMap,a=new WeakMap,d=new WeakMap,w=new WeakMap;var p;class B{constructor(e){o(this,p);i(this,p,new Map);const t=typeof e=="string"?e.trim().split(",").map(s=>s.trim()).filter(s=>!!s):e,n=[];t.forEach(s=>{const l=new A(s);n.push([l.query,l])});const x=n.filter(s=>s[1].queryType.includes("max")).sort((s,l)=>l[1].queryValue-s[1].queryValue),h=n.filter(s=>s[1].queryType.includes("min")&&s[1].queryValue!==0).sort((s,l)=>s[1].queryValue-l[1].queryValue),f=n.filter(s=>s[0]==="(min-width: 0px)");(f?[...f,...x,...h]:[...x,...h]).forEach(s=>{r(this,p).has(s[0])||r(this,p).set(s[0],[]),r(this,p).get(s[0]).push(s[1])})}get mediaBuckets(){return r(this,p)}}p=new WeakMap;var R,E;class O extends _.Store{constructor(t){super(void 0);o(this,R);o(this,E,()=>{let t;r(this,R).mediaBuckets.forEach((h,f)=>{matchMedia(f).matches&&(t=h)});let n,x=0;t==null||t.forEach(h=>{h.density>x&&h.density<=Math.max(devicePixelRatio,1)&&(x=h.density,n=h)}),t!=null&&t.length&&!n&&(n=t[0]),this.current=n});i(this,R,new B(t.srcset))}close(){super.close(),this.disconnect()}connect(){z.windowResizer.subscribe(r(this,E),T.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){z.windowResizer.unsubscribe(r(this,E))}}R=new WeakMap,E=new WeakMap;exports.Source=A;exports.SourceManager=O;exports.SourceSet=B;
@@ -1,137 +0,0 @@
1
- var A = (r) => {
2
- throw TypeError(r);
3
- };
4
- var o = (r, t, e) => t.has(r) || A("Cannot " + e);
5
- var i = (r, t, e) => (o(r, t, "read from private field"), e ? e.call(r) : t.get(r)), c = (r, t, e) => t.has(r) ? A("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), h = (r, t, e, a) => (o(r, t, "write to private field"), a ? a.call(r, e) : t.set(r, e), e), k = (r, t, e) => (o(r, t, "access private method"), e);
6
- import { i as z } from "./browser-0zX67oeU.js";
7
- var l;
8
- class E {
9
- constructor() {
10
- c(this, l);
11
- this.storage = null, this.name = "store-registry", h(this, l, null), z && (this.storage = localStorage);
12
- }
13
- get loadedState() {
14
- return i(this, l);
15
- }
16
- saveState() {
17
- const t = this.getState(), e = JSON.stringify(t);
18
- localStorage.setItem(this.name, e);
19
- }
20
- loadState(t = localStorage.getItem(this.name)) {
21
- t && (typeof t == "string" ? h(this, l, JSON.parse(t)) : h(this, l, t), f.current.forEach((e) => {
22
- e.passport && this.updateStore(e);
23
- }));
24
- }
25
- resetState() {
26
- f.current.forEach((t) => {
27
- t.passport && t.reset();
28
- }), this.saveState();
29
- }
30
- updateStore(t) {
31
- var a, y;
32
- if (!Array.isArray((a = i(this, l)) == null ? void 0 : a.stores))
33
- return t;
34
- const e = t.passport;
35
- if (e) {
36
- const w = (y = i(this, l)) == null ? void 0 : y.stores.find(
37
- (N) => N.name === e.name
38
- );
39
- w && (t.current = w.value);
40
- }
41
- return t;
42
- }
43
- getState() {
44
- const t = {
45
- stores: []
46
- };
47
- return f.current.forEach((e) => {
48
- e.passport && (t.stores.find((a) => a.name === e.passport.name) || t.stores.push({
49
- value: e.current,
50
- name: e.passport.name
51
- }));
52
- }), t;
53
- }
54
- }
55
- l = new WeakMap();
56
- const M = new E();
57
- var d, s, S, n, g, u, m, b, v, C;
58
- class q {
59
- constructor(t, e) {
60
- c(this, v);
61
- c(this, d);
62
- c(this, s);
63
- c(this, S);
64
- c(this, n, /* @__PURE__ */ new Set());
65
- c(this, g);
66
- c(this, u);
67
- c(this, m);
68
- c(this, b);
69
- h(this, d, e == null ? void 0 : e.passport), h(this, s, {
70
- initial: t,
71
- previous: void 0,
72
- current: t
73
- }), h(this, S, (e == null ? void 0 : e.equalityCheck) || ((a, y) => a === y)), e != null && e.validate && this.addMiddleware(e.validate), h(this, m, (e == null ? void 0 : e.notifyAndClose) || !1), h(this, b, (e == null ? void 0 : e.invisible) || !1), h(this, g, (e == null ? void 0 : e.skipSubscribeNotification) || !1), i(this, d) && M.updateStore(this);
74
- }
75
- get passport() {
76
- return i(this, d);
77
- }
78
- get initial() {
79
- return i(this, s).initial;
80
- }
81
- get previous() {
82
- return i(this, s).previous;
83
- }
84
- get current() {
85
- return i(this, s).current;
86
- }
87
- set current(t) {
88
- if (!i(this, S).call(this, i(this, s).current, t)) {
89
- if (i(this, s).previous = i(this, s).current, i(this, u))
90
- for (const e of i(this, u))
91
- t = e(t);
92
- i(this, s).current = t, k(this, v, C).call(this), i(this, m) && this.close();
93
- }
94
- }
95
- get subscribers() {
96
- return i(this, n);
97
- }
98
- addMiddleware(t) {
99
- i(this, u) || h(this, u, /* @__PURE__ */ new Set()), i(this, u).add(t);
100
- }
101
- removeMiddleware(t) {
102
- var e, a;
103
- (e = i(this, u)) == null || e.delete(t), (a = i(this, u)) != null && a.size || h(this, u, void 0);
104
- }
105
- subscribe(t) {
106
- return !i(this, b) && !i(this, n).size && I(this), i(this, n).add(t), i(this, g) || t(i(this, s)), () => {
107
- this.unsubscribe(t);
108
- };
109
- }
110
- unsubscribe(t) {
111
- i(this, n).delete(t), i(this, n).size || p(this);
112
- }
113
- reset() {
114
- this.current = Array.isArray(this.initial) ? [...this.initial] : this.initial;
115
- }
116
- close() {
117
- i(this, n).clear(), p(this);
118
- }
119
- }
120
- d = new WeakMap(), s = new WeakMap(), S = new WeakMap(), n = new WeakMap(), g = new WeakMap(), u = new WeakMap(), m = new WeakMap(), b = new WeakMap(), v = new WeakSet(), C = function() {
121
- for (const t of i(this, n))
122
- t(i(this, s));
123
- };
124
- const f = new q([], {
125
- invisible: !0
126
- });
127
- function I(r) {
128
- f.current.includes(r) || (f.current = [...f.current, r]);
129
- }
130
- function p(r) {
131
- f.current.includes(r) && (f.current = f.current.filter((t) => t !== r));
132
- }
133
- export {
134
- q as S,
135
- f as a,
136
- M as s
137
- };
@@ -1 +0,0 @@
1
- "use strict";var A=i=>{throw TypeError(i)};var o=(i,t,e)=>t.has(i)||A("Cannot "+e);var r=(i,t,e)=>(o(i,t,"read from private field"),e?e.call(i):t.get(i)),c=(i,t,e)=>t.has(i)?A("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),h=(i,t,e,a)=>(o(i,t,"write to private field"),a?a.call(i,e):t.set(i,e),e),k=(i,t,e)=>(o(i,t,"access private method"),e);const M=require("./browser-CpzFX2xg.cjs");var f;class R{constructor(){c(this,f);this.storage=null,this.name="store-registry",h(this,f,null),M.isBrowser&&(this.storage=localStorage)}get loadedState(){return r(this,f)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(this.name,e)}loadState(t=localStorage.getItem(this.name)){t&&(typeof t=="string"?h(this,f,JSON.parse(t)):h(this,f,t),l.current.forEach(e=>{e.passport&&this.updateStore(e)}))}resetState(){l.current.forEach(t=>{t.passport&&t.reset()}),this.saveState()}updateStore(t){var a,y;if(!Array.isArray((a=r(this,f))==null?void 0:a.stores))return t;const e=t.passport;if(e){const w=(y=r(this,f))==null?void 0:y.stores.find(E=>E.name===e.name);w&&(t.current=w.value)}return t}getState(){const t={stores:[]};return l.current.forEach(e=>{e.passport&&(t.stores.find(a=>a.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}f=new WeakMap;const N=new R;var d,s,S,n,g,u,b,m,v,z;class q{constructor(t,e){c(this,v);c(this,d);c(this,s);c(this,S);c(this,n,new Set);c(this,g);c(this,u);c(this,b);c(this,m);h(this,d,e==null?void 0:e.passport),h(this,s,{initial:t,previous:void 0,current:t}),h(this,S,(e==null?void 0:e.equalityCheck)||((a,y)=>a===y)),e!=null&&e.validate&&this.addMiddleware(e.validate),h(this,b,(e==null?void 0:e.notifyAndClose)||!1),h(this,m,(e==null?void 0:e.invisible)||!1),h(this,g,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&N.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,s).initial}get previous(){return r(this,s).previous}get current(){return r(this,s).current}set current(t){if(!r(this,S).call(this,r(this,s).current,t)){if(r(this,s).previous=r(this,s).current,r(this,u))for(const e of r(this,u))t=e(t);r(this,s).current=t,k(this,v,z).call(this),r(this,b)&&this.close()}}get subscribers(){return r(this,n)}addMiddleware(t){r(this,u)||h(this,u,new Set),r(this,u).add(t)}removeMiddleware(t){var e,a;(e=r(this,u))==null||e.delete(t),(a=r(this,u))!=null&&a.size||h(this,u,void 0)}subscribe(t){return!r(this,m)&&!r(this,n).size&&p(this),r(this,n).add(t),r(this,g)||t(r(this,s)),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,n).size||C(this)}reset(){this.current=Array.isArray(this.initial)?[...this.initial]:this.initial}close(){r(this,n).clear(),C(this)}}d=new WeakMap,s=new WeakMap,S=new WeakMap,n=new WeakMap,g=new WeakMap,u=new WeakMap,b=new WeakMap,m=new WeakMap,v=new WeakSet,z=function(){for(const t of r(this,n))t(r(this,s))};const l=new q([],{invisible:!0});function p(i){l.current.includes(i)||(l.current=[...l.current,i])}function C(i){l.current.includes(i)&&(l.current=l.current.filter(t=>t!==i))}exports.Store=q;exports.activeStores=l;exports.storeRegistry=N;
@@ -1,8 +0,0 @@
1
- import { s as n } from "./tags-zft1DGBz.js";
2
- function s(t) {
3
- const e = new CSSStyleSheet();
4
- return e.replaceSync(n(t).node.innerHTML), e;
5
- }
6
- export {
7
- s as c
8
- };
@@ -1 +0,0 @@
1
- "use strict";const n=require("./tags-6_ETuR75.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;