aptechka 0.1.2 → 0.1.3

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 (55) hide show
  1. package/lib/{Damped-1hlKSFaB.cjs → Damped-DdPj4Sho.cjs} +1 -1
  2. package/lib/{Damped-523xgzT3.js → Damped-H3PuZwKV.js} +4 -4
  3. package/lib/{SourceManager-3c3kr7oj.cjs → SourceManager-tmQlXkSD.cjs} +1 -1
  4. package/lib/{SourceManager-F94MRde6.js → SourceManager-vXInLlh_.js} +1 -1
  5. package/lib/Store-qq7IjRLE.js +136 -0
  6. package/lib/Store-txkR3wXU.cjs +1 -0
  7. package/lib/WheelControls-9ZQKSYYq.js +83 -0
  8. package/lib/WheelControls-TYhGU6oA.cjs +1 -0
  9. package/lib/accordion/AccordionElement.d.ts +7 -0
  10. package/lib/accordion/index.d.ts +1 -0
  11. package/lib/animation/Animated.d.ts +1 -1
  12. package/lib/animation/index.cjs +1 -1
  13. package/lib/animation/index.js +3 -3
  14. package/lib/attribute/index.cjs +1 -1
  15. package/lib/attribute/index.js +1 -1
  16. package/lib/canvas-2d/index.d.ts +3 -3
  17. package/lib/controls/index.cjs +1 -1
  18. package/lib/controls/index.d.ts +0 -1
  19. package/lib/controls/index.js +3 -4
  20. package/lib/device/index.cjs +1 -1
  21. package/lib/device/index.js +1 -1
  22. package/lib/element-constructor/htmlTags.d.ts +112 -112
  23. package/lib/element-constructor/index.cjs +1 -1
  24. package/lib/element-constructor/index.js +150 -149
  25. package/lib/element-constructor/svgTags.d.ts +63 -63
  26. package/lib/en3/index.cjs +1 -1
  27. package/lib/en3/index.js +2 -2
  28. package/lib/image/index.cjs +1 -1
  29. package/lib/image/index.js +2 -2
  30. package/lib/ladder/index.cjs +1 -1
  31. package/lib/ladder/index.js +1 -1
  32. package/lib/layout-box/index.cjs +1 -1
  33. package/lib/layout-box/index.js +1 -1
  34. package/lib/media/index.cjs +1 -1
  35. package/lib/media/index.js +1 -1
  36. package/lib/resizer/index.d.ts +1 -1
  37. package/lib/scroll/index.cjs +1 -1
  38. package/lib/scroll/index.js +3 -3
  39. package/lib/source/index.cjs +1 -1
  40. package/lib/source/index.js +3 -3
  41. package/lib/store/CumulativeResource.d.ts +12 -0
  42. package/lib/store/Resource.d.ts +4 -1
  43. package/lib/store/Store.d.ts +1 -0
  44. package/lib/store/index.cjs +1 -1
  45. package/lib/store/index.js +49 -46
  46. package/lib/studio/StudioElement.d.ts +9 -0
  47. package/lib/studio/index.d.ts +1 -0
  48. package/lib/video/index.cjs +1 -1
  49. package/lib/video/index.js +2 -2
  50. package/package.json +2 -3
  51. package/lib/Store-2hWEUGTj.js +0 -135
  52. package/lib/Store-WXFmsaEI.cjs +0 -1
  53. package/lib/WheelControls-F-xg5-oq.js +0 -102
  54. package/lib/WheelControls-Hp5NWRZY.cjs +0 -1
  55. package/lib/controls/User.d.ts +0 -7
package/lib/en3/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Mt=Object.defineProperty,wt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var de=(I,A,e)=>A in I?Mt(I,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):I[A]=e,z=(I,A)=>{for(var e in A||(A={}))Lt.call(A,e)&&de(I,e,A[e]);if(Ye)for(var e of Ye(A))yt.call(A,e)&&de(I,e,A[e]);return I},ge=(I,A)=>wt(I,St(A));var qe=(I,A,e)=>(de(I,typeof A!="symbol"?A+"":A,e),e),ue=(I,A,e)=>{if(!A.has(I))throw TypeError("Cannot "+e)};var E=(I,A,e)=>(ue(I,A,"read from private field"),e?e.call(I):A.get(I)),f=(I,A,e)=>{if(A.has(I))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(I):A.set(I,e)},R=(I,A,e,s)=>(ue(I,A,"write to private field"),s?s.call(I,e):A.set(I,e),e);var CA=(I,A,e)=>(ue(I,A,"access private method"),e);var Ee=(I,A,e)=>new Promise((s,t)=>{var i=r=>{try{o(e.next(r))}catch(C){t(C)}},n=r=>{try{o(e.throw(r))}catch(C){t(C)}},o=r=>r.done?s(r.value):Promise.resolve(r.value).then(i,n);o((e=e.apply(I,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Xe=require("../ladder/index.cjs"),ot=require("../layout-box/index.cjs"),xA=require("../order/index.cjs"),yA=require("../resizer/index.cjs"),HA=require("../ticker/index.cjs"),B=require("three"),ve=require("../intersector/index.cjs"),Ht=require("../dom-QhWsdQS2.cjs"),fe=require("../loading/index.cjs"),Jt=require("../SourceManager-3c3kr7oj.cjs"),Ve=require("../Store-WXFmsaEI.cjs");require("../browser-QbF6EW-w.cjs");require("../css-unit-parser/index.cjs");require("../scroll-entries/index.cjs");require("../layout-rZzbsLPd.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");function be(I){const A=e=>{e.dispose();for(const s of Object.keys(e)){const t=e[s];t&&typeof t=="object"&&"minFilter"in t&&t.dispose()}};I.traverse(e=>{if(e instanceof B.Mesh){if(e.geometry.dispose(),!Array.isArray(e.material)&&e.material.isMaterial)A(e.material);else if(Array.isArray(e.material))for(const s of e.material)A(s)}})}var Qe,eA,x,_,uA,tA,b,fA,DA,W,P,FA,kA,bA,EA,he,rt,KA,He,OA,_A;class Tt{constructor(){f(this,he);f(this,KA);f(this,Qe,`https://unpkg.com/three@0.${B.REVISION}.x`);f(this,eA,null);f(this,x,null);f(this,_,null);f(this,uA,null);f(this,tA,[]);f(this,b,new Xe.Ladder({x:0,y:0,z:0}));f(this,fA,new Xe.Ladder({x:0,y:0,z:0}));f(this,DA,"auto");f(this,W,0);f(this,P,0);f(this,FA,0);f(this,kA,2);f(this,bA,!0);f(this,EA,!1);f(this,OA,()=>{var A;R(this,W,E(this,eA).clientWidth),R(this,P,E(this,eA).clientHeight),R(this,FA,Math.min(E(this,kA),devicePixelRatio||1)),E(this,x).setPixelRatio(E(this,FA)),E(this,x).setSize(E(this,W),E(this,P)),CA(this,KA,He).call(this),(A=this.onResize)==null||A.call(this)});f(this,_A,()=>{CA(this,he,rt).call(this),this.render(E(this,uA),E(this,_))})}get CDNVersion(){return E(this,Qe)}get containerElement(){return E(this,eA)}get webglRenderer(){return E(this,x)}get camera(){return E(this,_)}get scene(){return E(this,uA)}get attachedObjects(){return E(this,tA)}get cameraPosition(){return E(this,b)}get cameraRotation(){return E(this,fA)}get width(){return E(this,W)}get height(){return E(this,P)}get pixelRatio(){return E(this,FA)}get cameraDistance(){return E(this,b).getStepValue("_initial").z}set cameraDistance(A){E(this,b).setStep("_initial","+",{z:A}),E(this,b).calculate(),CA(this,KA,He).call(this)}attachToHTMLElement(A,e,s){const t=new ot.LayoutBox(A,ge(z({},s),{containerElement:this.containerElement,cartesian:!0}));return t.bindObject(e),e.userData.box=t,E(this,tA).push(e),e}detachFromHTMLElement(A){R(this,tA,E(this,tA).filter(e=>e===A?(A.userData.box.destroy(),!1):!0))}add(A,e,s){if(this.scene.add(A),e)return this.attachToHTMLElement(e,A,s)}remove(A,e){this.scene.remove(A),e&&this.detachFromHTMLElement(A)}setup(A){if(E(this,EA)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}R(this,eA,(A==null?void 0:A.containerElement)||document.body),R(this,_,(A==null?void 0:A.cameraType)==="orthographic"?new B.OrthographicCamera:new B.PerspectiveCamera),E(this,b).bind(E(this,_).position),E(this,fA).bind(E(this,_).rotation),E(this,b).setStep("_initial","+",{z:(A==null?void 0:A.cameraDistance)||1e3}),E(this,b).calculate(),E(this,_).near=(A==null?void 0:A.cameraNear)||1,E(this,_).far=(A==null?void 0:A.cameraFar)||11e3,R(this,DA,(A==null?void 0:A.cameraFov)||"auto"),R(this,uA,new B.Scene),R(this,kA,(A==null?void 0:A.maxPixelRatio)||2),R(this,bA,(A==null?void 0:A.cameraAutoUpdate)!==!1),R(this,x,new B.WebGLRenderer(A==null?void 0:A.webGLRendererParameters)),E(this,x).domElement.style.cssText=`
1
+ "use strict";var Mt=Object.defineProperty,wt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var Ye=Object.getOwnPropertySymbols;var Lt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var de=(I,A,e)=>A in I?Mt(I,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):I[A]=e,z=(I,A)=>{for(var e in A||(A={}))Lt.call(A,e)&&de(I,e,A[e]);if(Ye)for(var e of Ye(A))yt.call(A,e)&&de(I,e,A[e]);return I},ge=(I,A)=>wt(I,St(A));var qe=(I,A,e)=>(de(I,typeof A!="symbol"?A+"":A,e),e),ue=(I,A,e)=>{if(!A.has(I))throw TypeError("Cannot "+e)};var E=(I,A,e)=>(ue(I,A,"read from private field"),e?e.call(I):A.get(I)),f=(I,A,e)=>{if(A.has(I))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(I):A.set(I,e)},R=(I,A,e,s)=>(ue(I,A,"write to private field"),s?s.call(I,e):A.set(I,e),e);var CA=(I,A,e)=>(ue(I,A,"access private method"),e);var Ee=(I,A,e)=>new Promise((s,t)=>{var i=r=>{try{o(e.next(r))}catch(C){t(C)}},n=r=>{try{o(e.throw(r))}catch(C){t(C)}},o=r=>r.done?s(r.value):Promise.resolve(r.value).then(i,n);o((e=e.apply(I,A)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Xe=require("../ladder/index.cjs"),ot=require("../layout-box/index.cjs"),xA=require("../order/index.cjs"),yA=require("../resizer/index.cjs"),HA=require("../ticker/index.cjs"),B=require("three"),ve=require("../intersector/index.cjs"),Ht=require("../dom-QhWsdQS2.cjs"),fe=require("../loading/index.cjs"),Jt=require("../SourceManager-tmQlXkSD.cjs"),Ve=require("../Store-txkR3wXU.cjs");require("../browser-QbF6EW-w.cjs");require("../css-unit-parser/index.cjs");require("../scroll-entries/index.cjs");require("../layout-rZzbsLPd.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");function be(I){const A=e=>{e.dispose();for(const s of Object.keys(e)){const t=e[s];t&&typeof t=="object"&&"minFilter"in t&&t.dispose()}};I.traverse(e=>{if(e instanceof B.Mesh){if(e.geometry.dispose(),!Array.isArray(e.material)&&e.material.isMaterial)A(e.material);else if(Array.isArray(e.material))for(const s of e.material)A(s)}})}var Qe,eA,x,_,uA,tA,b,fA,DA,W,P,FA,kA,bA,EA,he,rt,KA,He,OA,_A;class Tt{constructor(){f(this,he);f(this,KA);f(this,Qe,`https://unpkg.com/three@0.${B.REVISION}.x`);f(this,eA,null);f(this,x,null);f(this,_,null);f(this,uA,null);f(this,tA,[]);f(this,b,new Xe.Ladder({x:0,y:0,z:0}));f(this,fA,new Xe.Ladder({x:0,y:0,z:0}));f(this,DA,"auto");f(this,W,0);f(this,P,0);f(this,FA,0);f(this,kA,2);f(this,bA,!0);f(this,EA,!1);f(this,OA,()=>{var A;R(this,W,E(this,eA).clientWidth),R(this,P,E(this,eA).clientHeight),R(this,FA,Math.min(E(this,kA),devicePixelRatio||1)),E(this,x).setPixelRatio(E(this,FA)),E(this,x).setSize(E(this,W),E(this,P)),CA(this,KA,He).call(this),(A=this.onResize)==null||A.call(this)});f(this,_A,()=>{CA(this,he,rt).call(this),this.render(E(this,uA),E(this,_))})}get CDNVersion(){return E(this,Qe)}get containerElement(){return E(this,eA)}get webglRenderer(){return E(this,x)}get camera(){return E(this,_)}get scene(){return E(this,uA)}get attachedObjects(){return E(this,tA)}get cameraPosition(){return E(this,b)}get cameraRotation(){return E(this,fA)}get width(){return E(this,W)}get height(){return E(this,P)}get pixelRatio(){return E(this,FA)}get cameraDistance(){return E(this,b).getStepValue("_initial").z}set cameraDistance(A){E(this,b).setStep("_initial","+",{z:A}),E(this,b).calculate(),CA(this,KA,He).call(this)}attachToHTMLElement(A,e,s){const t=new ot.LayoutBox(A,ge(z({},s),{containerElement:this.containerElement,cartesian:!0}));return t.bindObject(e),e.userData.box=t,E(this,tA).push(e),e}detachFromHTMLElement(A){R(this,tA,E(this,tA).filter(e=>e===A?(A.userData.box.destroy(),!1):!0))}add(A,e,s){if(this.scene.add(A),e)return this.attachToHTMLElement(e,A,s)}remove(A,e){this.scene.remove(A),e&&this.detachFromHTMLElement(A)}setup(A){if(E(this,EA)){console.warn("[en3.setup]: You are trying to setup en3 again.");return}R(this,eA,(A==null?void 0:A.containerElement)||document.body),R(this,_,(A==null?void 0:A.cameraType)==="orthographic"?new B.OrthographicCamera:new B.PerspectiveCamera),E(this,b).bind(E(this,_).position),E(this,fA).bind(E(this,_).rotation),E(this,b).setStep("_initial","+",{z:(A==null?void 0:A.cameraDistance)||1e3}),E(this,b).calculate(),E(this,_).near=(A==null?void 0:A.cameraNear)||1,E(this,_).far=(A==null?void 0:A.cameraFar)||11e3,R(this,DA,(A==null?void 0:A.cameraFov)||"auto"),R(this,uA,new B.Scene),R(this,kA,(A==null?void 0:A.maxPixelRatio)||2),R(this,bA,(A==null?void 0:A.cameraAutoUpdate)!==!1),R(this,x,new B.WebGLRenderer(A==null?void 0:A.webGLRendererParameters)),E(this,x).domElement.style.cssText=`
2
2
  position: fixed;
3
3
  left: 0;
4
4
  top: 0;
package/lib/en3/index.js CHANGED
@@ -45,8 +45,8 @@ import { Mesh as Fe, REVISION as Ds, OrthographicCamera as ze, PerspectiveCamera
45
45
  import { intersector as Rt } from "../intersector/index.js";
46
46
  import { g as Di } from "../dom-bHEwc_xV.js";
47
47
  import { loading as be } from "../loading/index.js";
48
- import { S as Fi } from "../SourceManager-F94MRde6.js";
49
- import { S as pt } from "../Store-2hWEUGTj.js";
48
+ import { S as Fi } from "../SourceManager-vXInLlh_.js";
49
+ import { S as pt } from "../Store-qq7IjRLE.js";
50
50
  import "../browser-S4eq8AeN.js";
51
51
  import "../css-unit-parser/index.js";
52
52
  import "../scroll-entries/index.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../custom-element/index.cjs");require("../resizer/index.cjs");require("../Store-WXFmsaEI.cjs");const c=require("../source/index.cjs");require("../browser-QbF6EW-w.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../SourceManager-3c3kr7oj.cjs");require("../order/index.cjs");require("../intersector/index.cjs");require("../loading/index.cjs");var o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=(u,r,n,t)=>{for(var e=t>1?void 0:t?l(r,n):r,i=u.length-1,m;i>=0;i--)(m=u[i])&&(e=(t?m(r,n,e):m(e))||e);return t&&e&&o(r,n,e),e};exports.ImageElement=class extends c.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(r){this.consumerElement.src=r||""}};exports.ImageElement=a([s.define("e-image")],exports.ImageElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../custom-element/index.cjs");require("../resizer/index.cjs");require("../Store-txkR3wXU.cjs");const c=require("../source/index.cjs");require("../browser-QbF6EW-w.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../SourceManager-tmQlXkSD.cjs");require("../order/index.cjs");require("../intersector/index.cjs");require("../loading/index.cjs");var o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=(u,r,n,t)=>{for(var e=t>1?void 0:t?l(r,n):r,i=u.length-1,m;i>=0;i--)(m=u[i])&&(e=(t?m(r,n,e):m(e))||e);return t&&e&&o(r,n,e),e};exports.ImageElement=class extends c.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(r){this.consumerElement.src=r||""}};exports.ImageElement=a([s.define("e-image")],exports.ImageElement);
@@ -1,11 +1,11 @@
1
1
  import { define as s } from "../custom-element/index.js";
2
2
  import "../resizer/index.js";
3
- import "../Store-2hWEUGTj.js";
3
+ import "../Store-qq7IjRLE.js";
4
4
  import { SourceElement as c } from "../source/index.js";
5
5
  import "../browser-S4eq8AeN.js";
6
6
  import "../notifier/index.js";
7
7
  import "../function-zwSFehNd.js";
8
- import "../SourceManager-F94MRde6.js";
8
+ import "../SourceManager-vXInLlh_.js";
9
9
  import "../order/index.js";
10
10
  import "../intersector/index.js";
11
11
  import "../loading/index.js";
@@ -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)),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)},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-WXFmsaEI.cjs");require("../browser-QbF6EW-w.cjs");var u,l,a;class q extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,u,void 0);h(this,l,void 0);h(this,a,void 0);d(this,u,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,u)}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}}u=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=q;
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)),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)},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-txkR3wXU.cjs");require("../browser-QbF6EW-w.cjs");var u,l,a;class q extends v.Store{constructor(e){super(e,{equalityCheck:()=>!1});h(this,u,void 0);h(this,l,void 0);h(this,a,void 0);d(this,u,b({},e)),d(this,l,new Map),d(this,a,new Set)}get base(){return c(this,u)}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}}u=new WeakMap,l=new WeakMap,a=new WeakMap;exports.Ladder=q;
@@ -18,7 +18,7 @@ var c = (t, s, e) => (y(t, s, "read from private field"), e ? e.call(t) : s.get(
18
18
  throw TypeError("Cannot add the same private member more than once");
19
19
  s instanceof WeakSet ? s.add(t) : s.set(t, e);
20
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 m } from "../Store-2hWEUGTj.js";
21
+ import { S as m } from "../Store-qq7IjRLE.js";
22
22
  import "../browser-S4eq8AeN.js";
23
23
  var l, h, a;
24
24
  class V extends m {
@@ -1 +1 @@
1
- "use strict";var I=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(I(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,l)=>(I(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var m=(i,e,s)=>(I(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lt=require("../css-unit-parser/index.cjs"),V=require("../ladder/index.cjs"),G=require("../order/index.cjs"),J=require("../resizer/index.cjs"),ot=require("../scroll-entries/index.cjs"),N=require("../ticker/index.cjs"),Q=require("../browser-QbF6EW-w.cjs"),w=require("../layout-rZzbsLPd.cjs");require("../Store-WXFmsaEI.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../intersector/index.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),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),v=Math.atan2(i.m32,i.m33),Y=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,L=i.m42,b=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:v,rotationY:Y,rotationZ:K,translationX:u,translationY:L,translationZ:b}}var o,f,p,x,H,E,C,q,M,_,P,d,S,O,T,X,R,y,z,g,a,r,c,B,$,k,tt,D,et,U,st,Z,F,A,W;class ct{constructor(e,s){h(this,B);h(this,k);h(this,D);h(this,U);h(this,Z);h(this,o,null);h(this,f,null);h(this,p,[]);h(this,x,"auto");h(this,H,"top");h(this,E,!1);h(this,C,!0);h(this,q,!0);h(this,M,0);h(this,_,0);h(this,P,0);h(this,d,0);h(this,S,0);h(this,O,0);h(this,T,0);h(this,X,0);h(this,R,0);h(this,y,{x:0,y:0,z:0});h(this,z,{x:0,y:0,z:0});h(this,g,{x:1,y:1,z:1});h(this,a,new V.Ladder({x:0,y:0,z:0}));h(this,r,new V.Ladder({x:0,y:0,z:0}));h(this,c,new V.Ladder({x:0,y:0,z:0}));h(this,A,()=>{Q.isBrowser&&m(this,D,et).call(this)});h(this,W,()=>{m(this,U,st).call(this),m(this,B,$).call(this)});Q.isBrowser&&(n(this,o,m(this,Z,F).call(this,e)||document.body),n(this,f,m(this,Z,F).call(this,s==null?void 0:s.containerElement)||document.body),n(this,x,(s==null?void 0:s.scrollAxis)||"auto"),n(this,H,(s==null?void 0:s.frontSide)||"top"),n(this,E,(s==null?void 0:s.cartesian)||!1),n(this,C,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,q,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{ot.scrollEnties.getAll(this.element).forEach(v=>{this.setScrollStep(()=>v)})}),N.ticker.subscribe(t(this,W),{order:G.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),J.resizer.subscribe(t(this,A),G.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,o)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,a).current}get scale(){return t(this,c).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,O)}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,a).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,a).unbind(e.rotation),e.scale&&t(this,c).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(){N.ticker.unsubscribe(t(this,W)),J.resizer.unsubscribe(t(this,A)),t(this,r).close(),t(this,a).close(),t(this,c).close()}setPositionStep(...e){t(this,r).setStep(...e)}setRotationStep(...e){t(this,a).setStep(...e)}setScaleStep(...e){t(this,c).setStep(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,a).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}}o=new WeakMap,f=new WeakMap,p=new WeakMap,x=new WeakMap,H=new WeakMap,E=new WeakMap,C=new WeakMap,q=new WeakMap,M=new WeakMap,_=new WeakMap,P=new WeakMap,d=new WeakMap,S=new WeakMap,O=new WeakMap,T=new WeakMap,X=new WeakMap,R=new WeakMap,y=new WeakMap,z=new WeakMap,g=new WeakMap,a=new WeakMap,r=new WeakMap,c=new WeakMap,B=new WeakSet,$=function(){t(this,c).calculate(),t(this,r).calculate(),t(this,a).calculate()},k=new WeakSet,tt=function(){t(this,c).setStep("_size","+",{x:t(this,C)?t(this,M):1,y:t(this,C)?t(this,_):1,z:t(this,C)?t(this,P):1});const e=t(this,q)?t(this,T):0,s=t(this,q)?t(this,X):0,l=t(this,q)?t(this,R):0;t(this,r).setStep("_position","+",{x:e,y:s,z:l}),t(this,c).setStep("_scale","*",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,r).setStep("_translation","+",{x:t(this,y).x,y:t(this,y).y,z:t(this,y).z}),t(this,a).setStep("_rotation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z})},D=new WeakSet,et=function(){const e=getComputedStyle(t(this,o));n(this,M,Math.max(t(this,o).clientWidth,1)),n(this,_,Math.max(t(this,o).clientHeight,1)),n(this,P,Math.max(lt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=w.getCumulativeOffsetLeft(t(this,f)),l=w.getCumulativeOffsetTop(t(this,f)),v=t(this,f).clientWidth,Y=t(this,f).clientHeight;if(n(this,S,w.getCumulativeOffsetLeft(t(this,o))-s),n(this,d,w.getCumulativeOffsetTop(t(this,o))-l),t(this,x)==="z"){const L=t(this,S)/v,b=t(this,d)/Y;n(this,S,(L-Math.floor(L))*v),n(this,d,(b-Math.floor(b))*Y),t(this,H)==="left"?n(this,O,w.getCumulativeOffsetLeft(t(this,o))-s-t(this,S)):n(this,O,w.getCumulativeOffsetTop(t(this,o))-l-t(this,d))}if(n(this,S,t(this,S)+t(this,o).clientLeft),n(this,d,t(this,d)+t(this,o).clientTop),t(this,E)){const L=Math.round(v/2),b=Math.round(Y/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)-L+it,rt=(t(this,d)-b+ht)*-1;n(this,T,nt),n(this,X,rt)}else n(this,T,t(this,S)),n(this,X,t(this,d));n(this,R,t(this,O)*-1);const K=new WebKitCSSMatrix(e.transform),u=j(K);t(this,y).x=u.translationX,t(this,y).y=u.translationY,t(this,y).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,m(this,k,tt).call(this),m(this,B,$).call(this)},U=new WeakSet,st=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let l=s.axis;t(this,x)!=="auto"&&(l=t(this,x)),t(this,r).setStep(`_scroll_${e}`,"+",{[l]:s.value*(l==="x"?-1:t(this,E)?1:-1)})}},Z=new WeakSet,F=function(e){return typeof e=="string"?document.querySelector(e):e},A=new WeakMap,W=new WeakMap;exports.LayoutBox=ct;exports.decomposeCSSMatrix=j;
1
+ "use strict";var I=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(I(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,l)=>(I(i,e,"write to private field"),l?l.call(i,s):e.set(i,s),s);var m=(i,e,s)=>(I(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const lt=require("../css-unit-parser/index.cjs"),V=require("../ladder/index.cjs"),G=require("../order/index.cjs"),J=require("../resizer/index.cjs"),ot=require("../scroll-entries/index.cjs"),N=require("../ticker/index.cjs"),Q=require("../browser-QbF6EW-w.cjs"),w=require("../layout-rZzbsLPd.cjs");require("../Store-txkR3wXU.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../intersector/index.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),l=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),v=Math.atan2(i.m32,i.m33),Y=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,L=i.m42,b=i.m43;return{scaleX:e,scaleY:s,scaleZ:l,rotationX:v,rotationY:Y,rotationZ:K,translationX:u,translationY:L,translationZ:b}}var o,f,p,x,H,E,C,q,M,_,P,d,S,O,T,X,R,y,z,g,a,r,c,B,$,k,tt,D,et,U,st,Z,F,A,W;class ct{constructor(e,s){h(this,B);h(this,k);h(this,D);h(this,U);h(this,Z);h(this,o,null);h(this,f,null);h(this,p,[]);h(this,x,"auto");h(this,H,"top");h(this,E,!1);h(this,C,!0);h(this,q,!0);h(this,M,0);h(this,_,0);h(this,P,0);h(this,d,0);h(this,S,0);h(this,O,0);h(this,T,0);h(this,X,0);h(this,R,0);h(this,y,{x:0,y:0,z:0});h(this,z,{x:0,y:0,z:0});h(this,g,{x:1,y:1,z:1});h(this,a,new V.Ladder({x:0,y:0,z:0}));h(this,r,new V.Ladder({x:0,y:0,z:0}));h(this,c,new V.Ladder({x:0,y:0,z:0}));h(this,A,()=>{Q.isBrowser&&m(this,D,et).call(this)});h(this,W,()=>{m(this,U,st).call(this),m(this,B,$).call(this)});Q.isBrowser&&(n(this,o,m(this,Z,F).call(this,e)||document.body),n(this,f,m(this,Z,F).call(this,s==null?void 0:s.containerElement)||document.body),n(this,x,(s==null?void 0:s.scrollAxis)||"auto"),n(this,H,(s==null?void 0:s.frontSide)||"top"),n(this,E,(s==null?void 0:s.cartesian)||!1),n(this,C,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,q,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),t(this,c).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,c).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{ot.scrollEnties.getAll(this.element).forEach(v=>{this.setScrollStep(()=>v)})}),N.ticker.subscribe(t(this,W),{order:G.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),J.resizer.subscribe(t(this,A),G.TICK_ORDER.LAYOUT_BOX))}get element(){return t(this,o)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,a).current}get scale(){return t(this,c).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,O)}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,a).bind(e.rotation),e.scale&&t(this,c).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,a).unbind(e.rotation),e.scale&&t(this,c).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(){N.ticker.unsubscribe(t(this,W)),J.resizer.unsubscribe(t(this,A)),t(this,r).close(),t(this,a).close(),t(this,c).close()}setPositionStep(...e){t(this,r).setStep(...e)}setRotationStep(...e){t(this,a).setStep(...e)}setScaleStep(...e){t(this,c).setStep(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,a).deleteStep(...e)}deleteScaleStep(...e){t(this,c).deleteStep(...e)}}o=new WeakMap,f=new WeakMap,p=new WeakMap,x=new WeakMap,H=new WeakMap,E=new WeakMap,C=new WeakMap,q=new WeakMap,M=new WeakMap,_=new WeakMap,P=new WeakMap,d=new WeakMap,S=new WeakMap,O=new WeakMap,T=new WeakMap,X=new WeakMap,R=new WeakMap,y=new WeakMap,z=new WeakMap,g=new WeakMap,a=new WeakMap,r=new WeakMap,c=new WeakMap,B=new WeakSet,$=function(){t(this,c).calculate(),t(this,r).calculate(),t(this,a).calculate()},k=new WeakSet,tt=function(){t(this,c).setStep("_size","+",{x:t(this,C)?t(this,M):1,y:t(this,C)?t(this,_):1,z:t(this,C)?t(this,P):1});const e=t(this,q)?t(this,T):0,s=t(this,q)?t(this,X):0,l=t(this,q)?t(this,R):0;t(this,r).setStep("_position","+",{x:e,y:s,z:l}),t(this,c).setStep("_scale","*",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z}),t(this,r).setStep("_translation","+",{x:t(this,y).x,y:t(this,y).y,z:t(this,y).z}),t(this,a).setStep("_rotation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z})},D=new WeakSet,et=function(){const e=getComputedStyle(t(this,o));n(this,M,Math.max(t(this,o).clientWidth,1)),n(this,_,Math.max(t(this,o).clientHeight,1)),n(this,P,Math.max(lt.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=w.getCumulativeOffsetLeft(t(this,f)),l=w.getCumulativeOffsetTop(t(this,f)),v=t(this,f).clientWidth,Y=t(this,f).clientHeight;if(n(this,S,w.getCumulativeOffsetLeft(t(this,o))-s),n(this,d,w.getCumulativeOffsetTop(t(this,o))-l),t(this,x)==="z"){const L=t(this,S)/v,b=t(this,d)/Y;n(this,S,(L-Math.floor(L))*v),n(this,d,(b-Math.floor(b))*Y),t(this,H)==="left"?n(this,O,w.getCumulativeOffsetLeft(t(this,o))-s-t(this,S)):n(this,O,w.getCumulativeOffsetTop(t(this,o))-l-t(this,d))}if(n(this,S,t(this,S)+t(this,o).clientLeft),n(this,d,t(this,d)+t(this,o).clientTop),t(this,E)){const L=Math.round(v/2),b=Math.round(Y/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)-L+it,rt=(t(this,d)-b+ht)*-1;n(this,T,nt),n(this,X,rt)}else n(this,T,t(this,S)),n(this,X,t(this,d));n(this,R,t(this,O)*-1);const K=new WebKitCSSMatrix(e.transform),u=j(K);t(this,y).x=u.translationX,t(this,y).y=u.translationY,t(this,y).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,m(this,k,tt).call(this),m(this,B,$).call(this)},U=new WeakSet,st=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let l=s.axis;t(this,x)!=="auto"&&(l=t(this,x)),t(this,r).setStep(`_scroll_${e}`,"+",{[l]:s.value*(l==="x"?-1:t(this,E)?1:-1)})}},Z=new WeakSet,F=function(e){return typeof e=="string"?document.querySelector(e):e},A=new WeakMap,W=new WeakMap;exports.LayoutBox=ct;exports.decomposeCSSMatrix=j;
@@ -16,7 +16,7 @@ import { scrollEnties as lt } from "../scroll-entries/index.js";
16
16
  import { ticker as Q } from "../ticker/index.js";
17
17
  import { i as j } from "../browser-S4eq8AeN.js";
18
18
  import { g as V, a as $ } from "../layout-5SJlcXTY.js";
19
- import "../Store-2hWEUGTj.js";
19
+ import "../Store-qq7IjRLE.js";
20
20
  import "../notifier/index.js";
21
21
  import "../function-zwSFehNd.js";
22
22
  import "../intersector/index.js";
@@ -1 +1 @@
1
- "use strict";var a=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var u=(e,r,s)=>(a(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,n)=>(a(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../order/index.cjs"),l=require("../resizer/index.cjs"),h=require("../Store-WXFmsaEI.cjs");require("../notifier/index.cjs");require("../browser-QbF6EW-w.cjs");require("../function-QP7IreXR.cjs");var i,t;class q extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);o(this,i,s),o(this,t,l.resizer.subscribe(()=>{matchMedia(u(this,i)).matches?this.current=!0:this.current=!1},d.RESIZE_ORDER.MEDIA))}close(){super.close(),u(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=q;
1
+ "use strict";var a=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var u=(e,r,s)=>(a(e,r,"read from private field"),s?s.call(e):r.get(e)),c=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,n)=>(a(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../order/index.cjs"),l=require("../resizer/index.cjs"),h=require("../Store-txkR3wXU.cjs");require("../notifier/index.cjs");require("../browser-QbF6EW-w.cjs");require("../function-QP7IreXR.cjs");var i,t;class q extends h.Store{constructor(s){super(!1);c(this,i,void 0);c(this,t,void 0);o(this,i,s),o(this,t,l.resizer.subscribe(()=>{matchMedia(u(this,i)).matches?this.current=!0:this.current=!1},d.RESIZE_ORDER.MEDIA))}close(){super.close(),u(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=q;
@@ -9,7 +9,7 @@ var o = (r, e, s) => (p(r, e, "read from private field"), s ? s.call(r) : e.get(
9
9
  }, c = (r, e, s, u) => (p(r, e, "write to private field"), u ? u.call(r, s) : e.set(r, s), s);
10
10
  import { RESIZE_ORDER as a } from "../order/index.js";
11
11
  import { resizer as h } from "../resizer/index.js";
12
- import { S as f } from "../Store-2hWEUGTj.js";
12
+ import { S as f } from "../Store-qq7IjRLE.js";
13
13
  import "../notifier/index.js";
14
14
  import "../browser-S4eq8AeN.js";
15
15
  import "../function-zwSFehNd.js";
@@ -1,6 +1,6 @@
1
1
  import { Notifier } from '../notifier';
2
2
  export type ResizerCallback = () => void;
3
- export declare const dispatchResizeEvent: (cause?: string | undefined) => void;
3
+ export declare const dispatchResizeEvent: (cause?: any) => void;
4
4
  declare class Resizer extends Notifier<ResizerCallback> {
5
5
  #private;
6
6
  constructor();
@@ -1,4 +1,4 @@
1
- "use strict";var xt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var l=(i,e,s)=>(xt(i,e,"read from private field"),s?s.call(i):e.get(i)),T=(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)},V=(i,e,s,n)=>(xt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const zt=require("../Store-WXFmsaEI.cjs"),Ct=require("../browser-QbF6EW-w.cjs"),ot=require("../layout-rZzbsLPd.cjs"),Wt=require("../math-FNUBmQPK.cjs");require("../ticker/index.cjs");const qt=require("../Damped-1hlKSFaB.cjs"),W=require("../attribute/index.cjs"),yt=require("../WheelControls-Hp5NWRZY.cjs"),pt=require("../custom-element/index.cjs"),wt=require("../order/index.cjs"),at=require("../resizer/index.cjs"),B=require("../scroll-entries/index.cjs"),Ot=require("../dom-QhWsdQS2.cjs");require("../intersector/index.cjs");require("../number-2bR0KBcX.cjs");require("../attributes-_2U65GDl.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");var Vt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Pt=(i,e,s,n)=>{for(var c=n>1?void 0:n?$t(e,s):e,b=i.length-1,r;b>=0;b--)(r=i[b])&&(c=(n?r(e,s,c):r(c))||c);return n&&c&&Vt(e,s,c),c},_t=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(_t(i,e,"read from private field"),s?s.call(i):e.get(i)),o=(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)},w=(i,e,s,n)=>(_t(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),f=(i,e,s)=>(_t(i,e,"access private method"),s),a,M,A,L,x,y,D,H,I,d,u,j,_,p,O,G,m,J,$,N,ct,K,Q,ut,Et,dt,St,tt,mt,et,bt,R,ft,vt,kt,st,it,gt,E,g,P,C;class Rt{constructor(e,s){T(this,E,void 0);T(this,g,void 0);T(this,P,0);T(this,C,0);V(this,E,e),V(this,g,s),B.scrollEnties.register(l(this,E))}get size(){return l(this,P)}get position(){return l(this,C)}destroy(){B.scrollEnties.unregister(l(this,E)),l(this,E).style.transform=""}resize(){V(this,P,l(this,g).vertical?l(this,E).offsetHeight:l(this,E).offsetWidth),V(this,C,l(this,g).vertical?ot.getCumulativeOffsetTop(l(this,E)):ot.getCumulativeOffsetLeft(l(this,E))),V(this,C,l(this,C)-l(this,g).position)}transform(){let e=0;l(this,g).infiniteAttribute.current&&l(this,g).overscroll&&l(this,C)+l(this,P)<l(this,g).currentScrollValue&&(e=l(this,g).distance*-1),B.scrollEnties.update(l(this,E),l(this,g).axisAttibute.current,e);const s=Wt.clamp(l(this,g).currentScrollValue+e,l(this,C)-l(this,g).viewportSize,l(this,C)+l(this,P));l(this,g).vertical?l(this,E).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:l(this,E).style.transform=`translate3d(${s*-1}px, 0px, 0px)`}}E=new WeakMap,g=new WeakMap,P=new WeakMap,C=new WeakMap;exports.ScrollElement=class extends pt.CustomElement{constructor(){if(super(),o(this,N),o(this,K),o(this,ut),o(this,dt),o(this,tt),o(this,et),o(this,vt),o(this,it),o(this,a,null),o(this,M,new W.Attribute(this,"axis","y")),o(this,A,new W.Attribute(this,"pages",0,{validate:e=>Math.max(0,e-1)})),o(this,L,new W.Attribute(this,"sectional",!1)),o(this,x,new W.Attribute(this,"infinite",!1)),o(this,y,new W.Attribute(this,"split",!1)),o(this,D,new W.Attribute(this,"damping",.03)),o(this,H,new W.Attribute(this,"disabled",!1)),o(this,I,new W.Attribute(this,"hibernated",!1)),o(this,d,null),o(this,u,[]),o(this,j,0),o(this,_,0),o(this,p,0),o(this,O,null),o(this,G,null),o(this,m,new zt.Store(0)),o(this,J,0),o(this,$,0),o(this,R,()=>{const e=this.currentScrollValue/t(this,p);if(w(this,j,this.vertical?ot.getCumulativeOffsetTop(this):ot.getCumulativeOffsetLeft(this)),w(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,A).current){w(this,p,t(this,_)*t(this,A).current);const s=t(this,p)+t(this,_);this.vertical?(t(this,d).style.width=s+"px",t(this,d).style.height="100%"):(t(this,d).style.height=s+"px",t(this,d).style.width="100%")}else this.vertical?(t(this,d).style.width="100%",t(this,d).style.height="max-content",w(this,p,t(this,d).offsetHeight-t(this,_))):(t(this,d).style.width="max-content",t(this,d).style.height="100%",w(this,p,t(this,d).offsetWidth-t(this,_)));if(t(this,x)||(t(this,a).max=t(this,p)),t(this,u).forEach(s=>{s.resize(),s.transform()}),t(this,x).current&&t(this,u).length){const s=t(this,u)[t(this,u).length-1],n=s.position+s.size-t(this,_),c=t(this,p)-n;w(this,$,s.position+s.size+c)}else w(this,$,t(this,p));if(t(this,L).current&&t(this,u).length){const s=t(this,u)[t(this,m).current];t(this,a).set(s.position,!0)}else t(this,a).set(e*t(this,p),!0)}),o(this,ft,()=>{if(t(this,u).length){let e=0;for(let s=0;s<t(this,u).length;s++){const n=t(this,u)[s];n.transform(),this.targetScrollValue>=n.position&&(e=s)}t(this,m).current=e}else this.vertical?t(this,d).style.transform=`translate3d(0px, ${this.currentScrollValue*-1}px, 0px)`:t(this,d).style.transform=`translate3d(${this.currentScrollValue*-1}px, 0px, 0px)`;B.scrollEnties.update(this,t(this,M).current,this.currentScrollValue)}),o(this,st,e=>{if(typeof e=="number")if(t(this,L).current){const s=Math.sign(e);t(this,u).length?this.shiftSections(s):t(this,a).shift(s*t(this,_))}else t(this,a).shift(e);else e==="min"?t(this,a).set(t(this,a).min):e==="max"&&t(this,a).set(t(this,a).delta)}),Ct.isBrowser){w(this,a,new qt.Damped({damping:.01,min:0,order:wt.TICK_ORDER.SCROLL}));const e=this.attachShadow({mode:"open"}),s=document.createElement("style");s.textContent=`
1
+ "use strict";var xt=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var l=(i,e,s)=>(xt(i,e,"read from private field"),s?s.call(i):e.get(i)),T=(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)},V=(i,e,s,n)=>(xt(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const zt=require("../Store-txkR3wXU.cjs"),Ct=require("../browser-QbF6EW-w.cjs"),ot=require("../layout-rZzbsLPd.cjs"),Wt=require("../math-FNUBmQPK.cjs");require("../ticker/index.cjs");const qt=require("../Damped-DdPj4Sho.cjs"),W=require("../attribute/index.cjs"),yt=require("../WheelControls-TYhGU6oA.cjs"),pt=require("../custom-element/index.cjs"),wt=require("../order/index.cjs"),at=require("../resizer/index.cjs"),B=require("../scroll-entries/index.cjs"),Ot=require("../dom-QhWsdQS2.cjs");require("../intersector/index.cjs");require("../number-2bR0KBcX.cjs");require("../attributes-_2U65GDl.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");var Vt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Pt=(i,e,s,n)=>{for(var c=n>1?void 0:n?$t(e,s):e,b=i.length-1,r;b>=0;b--)(r=i[b])&&(c=(n?r(e,s,c):r(c))||c);return n&&c&&Vt(e,s,c),c},_t=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(_t(i,e,"read from private field"),s?s.call(i):e.get(i)),o=(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)},w=(i,e,s,n)=>(_t(i,e,"write to private field"),n?n.call(i,s):e.set(i,s),s),f=(i,e,s)=>(_t(i,e,"access private method"),s),a,M,A,L,x,y,D,H,I,d,u,j,_,p,O,G,m,J,$,N,ct,K,Q,ut,Et,dt,St,tt,mt,et,bt,R,ft,vt,kt,st,it,gt,E,g,P,C;class Rt{constructor(e,s){T(this,E,void 0);T(this,g,void 0);T(this,P,0);T(this,C,0);V(this,E,e),V(this,g,s),B.scrollEnties.register(l(this,E))}get size(){return l(this,P)}get position(){return l(this,C)}destroy(){B.scrollEnties.unregister(l(this,E)),l(this,E).style.transform=""}resize(){V(this,P,l(this,g).vertical?l(this,E).offsetHeight:l(this,E).offsetWidth),V(this,C,l(this,g).vertical?ot.getCumulativeOffsetTop(l(this,E)):ot.getCumulativeOffsetLeft(l(this,E))),V(this,C,l(this,C)-l(this,g).position)}transform(){let e=0;l(this,g).infiniteAttribute.current&&l(this,g).overscroll&&l(this,C)+l(this,P)<l(this,g).currentScrollValue&&(e=l(this,g).distance*-1),B.scrollEnties.update(l(this,E),l(this,g).axisAttibute.current,e);const s=Wt.clamp(l(this,g).currentScrollValue+e,l(this,C)-l(this,g).viewportSize,l(this,C)+l(this,P));l(this,g).vertical?l(this,E).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:l(this,E).style.transform=`translate3d(${s*-1}px, 0px, 0px)`}}E=new WeakMap,g=new WeakMap,P=new WeakMap,C=new WeakMap;exports.ScrollElement=class extends pt.CustomElement{constructor(){if(super(),o(this,N),o(this,K),o(this,ut),o(this,dt),o(this,tt),o(this,et),o(this,vt),o(this,it),o(this,a,null),o(this,M,new W.Attribute(this,"axis","y")),o(this,A,new W.Attribute(this,"pages",0,{validate:e=>Math.max(0,e-1)})),o(this,L,new W.Attribute(this,"sectional",!1)),o(this,x,new W.Attribute(this,"infinite",!1)),o(this,y,new W.Attribute(this,"split",!1)),o(this,D,new W.Attribute(this,"damping",.03)),o(this,H,new W.Attribute(this,"disabled",!1)),o(this,I,new W.Attribute(this,"hibernated",!1)),o(this,d,null),o(this,u,[]),o(this,j,0),o(this,_,0),o(this,p,0),o(this,O,null),o(this,G,null),o(this,m,new zt.Store(0)),o(this,J,0),o(this,$,0),o(this,R,()=>{const e=this.currentScrollValue/t(this,p);if(w(this,j,this.vertical?ot.getCumulativeOffsetTop(this):ot.getCumulativeOffsetLeft(this)),w(this,_,this.vertical?this.offsetHeight:this.offsetWidth),t(this,A).current){w(this,p,t(this,_)*t(this,A).current);const s=t(this,p)+t(this,_);this.vertical?(t(this,d).style.width=s+"px",t(this,d).style.height="100%"):(t(this,d).style.height=s+"px",t(this,d).style.width="100%")}else this.vertical?(t(this,d).style.width="100%",t(this,d).style.height="max-content",w(this,p,t(this,d).offsetHeight-t(this,_))):(t(this,d).style.width="max-content",t(this,d).style.height="100%",w(this,p,t(this,d).offsetWidth-t(this,_)));if(t(this,x)||(t(this,a).max=t(this,p)),t(this,u).forEach(s=>{s.resize(),s.transform()}),t(this,x).current&&t(this,u).length){const s=t(this,u)[t(this,u).length-1],n=s.position+s.size-t(this,_),c=t(this,p)-n;w(this,$,s.position+s.size+c)}else w(this,$,t(this,p));if(t(this,L).current&&t(this,u).length){const s=t(this,u)[t(this,m).current];t(this,a).set(s.position,!0)}else t(this,a).set(e*t(this,p),!0)}),o(this,ft,()=>{if(t(this,u).length){let e=0;for(let s=0;s<t(this,u).length;s++){const n=t(this,u)[s];n.transform(),this.targetScrollValue>=n.position&&(e=s)}t(this,m).current=e}else this.vertical?t(this,d).style.transform=`translate3d(0px, ${this.currentScrollValue*-1}px, 0px)`:t(this,d).style.transform=`translate3d(${this.currentScrollValue*-1}px, 0px, 0px)`;B.scrollEnties.update(this,t(this,M).current,this.currentScrollValue)}),o(this,st,e=>{if(typeof e=="number")if(t(this,L).current){const s=Math.sign(e);t(this,u).length?this.shiftSections(s):t(this,a).shift(s*t(this,_))}else t(this,a).shift(e);else e==="min"?t(this,a).set(t(this,a).min):e==="max"&&t(this,a).set(t(this,a).delta)}),Ct.isBrowser){w(this,a,new qt.Damped({damping:.01,min:0,order:wt.TICK_ORDER.SCROLL}));const e=this.attachShadow({mode:"open"}),s=document.createElement("style");s.textContent=`
2
2
  :host {
3
3
  position: relative;
4
4
 
@@ -7,14 +7,14 @@ var h = (s, e, i) => (_t(s, e, "read from private field"), i ? i.call(s) : e.get
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  e instanceof WeakSet ? e.add(s) : e.set(s, i);
9
9
  }, $ = (s, e, i, o) => (_t(s, e, "write to private field"), o ? o.call(s, i) : e.set(s, i), i);
10
- import { S as Vt } from "../Store-2hWEUGTj.js";
10
+ import { S as Vt } from "../Store-qq7IjRLE.js";
11
11
  import { i as St } from "../browser-S4eq8AeN.js";
12
12
  import { a as xt, g as yt } from "../layout-5SJlcXTY.js";
13
13
  import { c as Wt } from "../math-_a3IpKOc.js";
14
14
  import "../ticker/index.js";
15
- import { D as $t } from "../Damped-523xgzT3.js";
15
+ import { D as $t } from "../Damped-H3PuZwKV.js";
16
16
  import { Attribute as k } from "../attribute/index.js";
17
- import { W as Pt, K as Tt } from "../WheelControls-F-xg5-oq.js";
17
+ import { W as Pt, K as Tt } from "../WheelControls-9ZQKSYYq.js";
18
18
  import { CustomElement as kt, define as Ct } from "../custom-element/index.js";
19
19
  import { TICK_ORDER as Rt, RESIZE_ORDER as Mt } from "../order/index.js";
20
20
  import { resizer as lt } from "../resizer/index.js";
@@ -1,4 +1,4 @@
1
- "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-3c3kr7oj.cjs"),C=require("../custom-element/index.cjs"),x=require("../intersector/index.cjs"),q=require("../loading/index.cjs"),A=require("../notifier/index.cjs");require("../order/index.cjs");require("../resizer/index.cjs");require("../browser-QbF6EW-w.cjs");require("../function-QP7IreXR.cjs");require("../Store-WXFmsaEI.cjs");let N=0;var o,s,h,m,c,u,f,g,b,y,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new A.Notifier);n(this,g,new A.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,y).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
1
+ "use strict";var v=(i,r,t)=>{if(!r.has(i))throw TypeError("Cannot "+t)};var e=(i,r,t)=>(v(i,r,"read from private field"),t?t.call(i):r.get(i)),n=(i,r,t)=>{if(r.has(i))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(i):r.set(i,t)},l=(i,r,t,a)=>(v(i,r,"write to private field"),a?a.call(i,t):r.set(i,t),t);var E=(i,r,t)=>(v(i,r,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../SourceManager-tmQlXkSD.cjs"),C=require("../custom-element/index.cjs"),x=require("../intersector/index.cjs"),q=require("../loading/index.cjs"),A=require("../notifier/index.cjs");require("../order/index.cjs");require("../resizer/index.cjs");require("../browser-QbF6EW-w.cjs");require("../function-QP7IreXR.cjs");require("../Store-txkR3wXU.cjs");let N=0;var o,s,h,m,c,u,f,g,b,y,p;class k extends C.CustomElement{constructor(){super();n(this,b);n(this,o,null);n(this,s,null);n(this,h,!1);n(this,m,!1);n(this,c,!1);n(this,u,void 0);n(this,f,new A.Notifier);n(this,g,new A.Notifier);n(this,p,t=>{e(this,c)&&!e(this,m)&&t.isIntersecting&&(e(this,o).current&&e(this,o).current!==e(this,o).previous&&E(this,b,y).call(this,e(this,o).current),l(this,m,!0)),t.isIntersecting?e(this,f).notify():e(this,g).notify()});l(this,u,`source-consumer-${++N}`)}get consumerElement(){return e(this,s)}get captureEvent(){return e(this,f)}get releaseEvent(){return e(this,g)}connectedCallback(){const t=this.getAttribute("srcset");t&&(l(this,s,this.createConsumer()),e(this,s).style.cssText=`
2
2
  display: block;
3
3
  width: 100%;
4
4
  height: 100%;
@@ -8,8 +8,8 @@ var t = (i, r, s) => (v(i, r, "read from private field"), s ? s.call(i) : r.get(
8
8
  r instanceof WeakSet ? r.add(i) : r.set(i, s);
9
9
  }, l = (i, r, s, h) => (v(i, r, "write to private field"), h ? h.call(i, s) : r.set(i, s), s);
10
10
  var E = (i, r, s) => (v(i, r, "access private method"), s);
11
- import { S as k } from "../SourceManager-F94MRde6.js";
12
- import { a as D, b as G } from "../SourceManager-F94MRde6.js";
11
+ import { S as k } from "../SourceManager-vXInLlh_.js";
12
+ import { a as D, b as G } from "../SourceManager-vXInLlh_.js";
13
13
  import { CustomElement as w } from "../custom-element/index.js";
14
14
  import { intersector as A } from "../intersector/index.js";
15
15
  import { loading as S } from "../loading/index.js";
@@ -18,7 +18,7 @@ import "../order/index.js";
18
18
  import "../resizer/index.js";
19
19
  import "../browser-S4eq8AeN.js";
20
20
  import "../function-zwSFehNd.js";
21
- import "../Store-2hWEUGTj.js";
21
+ import "../Store-qq7IjRLE.js";
22
22
  let N = 0;
23
23
  var n, e, c, m, a, u, p, f, g, y, L;
24
24
  class j extends w {
@@ -0,0 +1,12 @@
1
+ import { Resource, ResourceFetcher, ResourceOptions } from './Resource';
2
+ export interface СumulativeResourceOptions<T> extends ResourceOptions<T> {
3
+ interval?: number;
4
+ }
5
+ export declare class СumulativeResource<T> extends Resource<T> {
6
+ #private;
7
+ constructor(defaultValue: T, fetcher: ResourceFetcher<T>, interval?: number);
8
+ get step(): number;
9
+ startAccumulating(): void;
10
+ stopAccumulating(): void;
11
+ close(): void;
12
+ }
@@ -1,8 +1,11 @@
1
1
  import { Store, StoreOptions } from './Store';
2
2
  export type ResourceFetcher<StoreType = unknown> = () => Promise<StoreType>;
3
+ export interface ResourceOptions<StoreType> extends StoreOptions<StoreType> {
4
+ manualControl?: boolean;
5
+ }
3
6
  export declare class Resource<StoreType> extends Store<StoreType> {
4
7
  #private;
5
- constructor(defaultValue: StoreType, fetcher: ResourceFetcher<StoreType>, parameters?: StoreOptions<StoreType>);
8
+ constructor(defaultValue: StoreType, fetcher: ResourceFetcher<StoreType>, options?: ResourceOptions<StoreType>);
6
9
  get isPending(): Store<boolean, import("./Store").StoreEntry<boolean>>;
7
10
  /**
8
11
  * Calls fetcher again and sets isPending to true.
@@ -13,6 +13,7 @@ export interface StoreOptions<StoreType> {
13
13
  equalityCheck?: StoreEqualityCheckCallback<StoreType>;
14
14
  passport?: StorePassport;
15
15
  validate?: StoreValidateCallback<StoreType>;
16
+ skipSubscribeNotification?: boolean;
16
17
  }
17
18
  export declare class Store<StoreType = unknown, Entry extends StoreEntry<StoreType> = StoreEntry<StoreType>> {
18
19
  #private;
@@ -1 +1 @@
1
- "use strict";var g=(r,s,e)=>{if(!s.has(r))throw TypeError("Cannot "+e)};var c=(r,s,e)=>(g(r,s,"read from private field"),e?e.call(r):s.get(r)),h=(r,s,e)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,e)},a=(r,s,e,t)=>(g(r,s,"write to private field"),t?t.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../Store-WXFmsaEI.cjs"),x=require("../function-QP7IreXR.cjs");require("../browser-QbF6EW-w.cjs");var d;class D extends u.Store{constructor(e,t,o){super(null,o);h(this,d,void 0);a(this,d,e.subscribe(i=>{this.current=t(i.current)}))}close(){super.close(),c(this,d).call(this)}}d=new WeakMap;var b;class R extends u.Store{constructor(e,t,o){super(null,o);h(this,b,void 0);a(this,b,e.subscribe(i=>{const l=[];i.current.forEach((y,f)=>{var v;i.current[f]===((v=i.previous)==null?void 0:v[f])&&this.current[f]?l.push(this.current[f]):l.push(t(y))}),this.current=l}))}close(){super.close(),c(this,b).call(this)}}b=new WeakMap;var p,n;class m extends u.Store{constructor(e,t,o){super(e,o);h(this,p,void 0);h(this,n,void 0);a(this,n,new u.Store(!1)),a(this,p,t),this.refetch()}get isPending(){return c(this,n)}refetch(){c(this,n).current=!0,c(this,p).call(this).then(e=>{c(this,n).current=!1,this.current=e})}}p=new WeakMap,n=new WeakMap;var S;class q extends u.Store{constructor(e,t,o){super(null,o);h(this,S,[]);const i=x.debounce(()=>{this.current=t()},0);e.forEach(l=>{c(this,S).push(l.subscribe(()=>{i()}))})}close(){super.close(),c(this,S).forEach(e=>e())}}S=new WeakMap;exports.Store=u.Store;exports.activeStores=u.activeStores;exports.storeRegistry=u.storeRegistry;exports.Composed=q;exports.Derived=D;exports.DerivedArray=R;exports.Resource=m;
1
+ "use strict";var x=(r,s,e)=>{if(!s.has(r))throw TypeError("Cannot "+e)};var c=(r,s,e)=>(x(r,s,"read from private field"),e?e.call(r):s.get(r)),o=(r,s,e)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,e)},l=(r,s,e,t)=>(x(r,s,"write to private field"),t?t.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Store-txkR3wXU.cjs"),m=require("../function-QP7IreXR.cjs");require("../browser-QbF6EW-w.cjs");var b;class D extends i.Store{constructor(e,t,u){super(null,u);o(this,b,void 0);l(this,b,e.subscribe(n=>{this.current=t(n.current)}))}close(){super.close(),c(this,b).call(this)}}b=new WeakMap;var f;class R extends i.Store{constructor(e,t,u){super(null,u);o(this,f,void 0);l(this,f,e.subscribe(n=>{const d=[];n.current.forEach((y,v)=>{var g;n.current[v]===((g=n.previous)==null?void 0:g[v])&&this.current[v]?d.push(this.current[v]):d.push(t(y))}),this.current=d}))}close(){super.close(),c(this,f).call(this)}}f=new WeakMap;var S,h,a;class q extends i.Store{constructor(e,t,u){super(e,u);o(this,S,void 0);o(this,h,void 0);o(this,a,0);l(this,h,new i.Store(!1)),l(this,S,t),u!=null&&u.manualControl||this.refetch()}get isPending(){return c(this,h)}refetch(){c(this,h).current=!0,l(this,a,c(this,a)+1);const e=c(this,a);c(this,S).call(this).then(t=>{e===c(this,a)&&(c(this,h).current=!1,this.current=t)})}}S=new WeakMap,h=new WeakMap,a=new WeakMap;var p;class C extends i.Store{constructor(e,t,u){super(null,u);o(this,p,[]);const n=m.debounce(()=>{this.current=t()},0);e.forEach(d=>{c(this,p).push(d.subscribe(()=>{n()}))})}close(){super.close(),c(this,p).forEach(e=>e())}}p=new WeakMap;exports.Store=i.Store;exports.activeStores=i.activeStores;exports.storeRegistry=i.storeRegistry;exports.Composed=C;exports.Derived=D;exports.DerivedArray=R;exports.Resource=q;
@@ -1,41 +1,41 @@
1
- var g = (r, e, s) => {
2
- if (!e.has(r))
1
+ var v = (e, r, s) => {
2
+ if (!r.has(e))
3
3
  throw TypeError("Cannot " + s);
4
4
  };
5
- var c = (r, e, s) => (g(r, e, "read from private field"), s ? s.call(r) : e.get(r)), o = (r, e, s) => {
6
- if (e.has(r))
5
+ var c = (e, r, s) => (v(e, r, "read from private field"), s ? s.call(e) : r.get(e)), n = (e, r, s) => {
6
+ if (r.has(e))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(r) : e.set(r, s);
9
- }, l = (r, e, s, t) => (g(r, e, "write to private field"), t ? t.call(r, s) : e.set(r, s), s);
10
- import { S as p } from "../Store-2hWEUGTj.js";
11
- import { a as q, s as z } from "../Store-2hWEUGTj.js";
12
- import { d as E } from "../function-zwSFehNd.js";
8
+ r instanceof WeakSet ? r.add(e) : r.set(e, s);
9
+ }, o = (e, r, s, t) => (v(e, r, "write to private field"), t ? t.call(e, s) : r.set(e, s), s);
10
+ import { S as f } from "../Store-qq7IjRLE.js";
11
+ import { a as q, s as z } from "../Store-qq7IjRLE.js";
12
+ import { d as S } from "../function-zwSFehNd.js";
13
13
  import "../browser-S4eq8AeN.js";
14
- var a;
15
- class R extends p {
14
+ var d;
15
+ class P extends f {
16
16
  constructor(s, t, u) {
17
17
  super(null, u);
18
- o(this, a, void 0);
19
- l(this, a, s.subscribe((i) => {
18
+ n(this, d, void 0);
19
+ o(this, d, s.subscribe((i) => {
20
20
  this.current = t(i.current);
21
21
  }));
22
22
  }
23
23
  close() {
24
- super.close(), c(this, a).call(this);
24
+ super.close(), c(this, d).call(this);
25
25
  }
26
26
  }
27
- a = new WeakMap();
27
+ d = new WeakMap();
28
28
  var b;
29
- class w extends p {
29
+ class R extends f {
30
30
  constructor(s, t, u) {
31
31
  super(null, u);
32
- o(this, b, void 0);
33
- l(this, b, s.subscribe((i) => {
34
- const h = [];
35
- i.current.forEach((v, m) => {
36
- var x;
37
- i.current[m] === ((x = i.previous) == null ? void 0 : x[m]) && this.current[m] ? h.push(this.current[m]) : h.push(t(v));
38
- }), this.current = h;
32
+ n(this, b, void 0);
33
+ o(this, b, s.subscribe((i) => {
34
+ const a = [];
35
+ i.current.forEach((E, x) => {
36
+ var g;
37
+ i.current[x] === ((g = i.previous) == null ? void 0 : g[x]) && this.current[x] ? a.push(this.current[x]) : a.push(t(E));
38
+ }), this.current = a;
39
39
  }));
40
40
  }
41
41
  close() {
@@ -43,54 +43,57 @@ class w extends p {
43
43
  }
44
44
  }
45
45
  b = new WeakMap();
46
- var d, n;
47
- class A extends p {
46
+ var p, h, l;
47
+ class w extends f {
48
48
  constructor(s, t, u) {
49
49
  super(s, u);
50
- o(this, d, void 0);
51
- o(this, n, void 0);
52
- l(this, n, new p(!1)), l(this, d, t), this.refetch();
50
+ n(this, p, void 0);
51
+ n(this, h, void 0);
52
+ n(this, l, 0);
53
+ o(this, h, new f(!1)), o(this, p, t), u != null && u.manualControl || this.refetch();
53
54
  }
54
55
  get isPending() {
55
- return c(this, n);
56
+ return c(this, h);
56
57
  }
57
58
  /**
58
59
  * Calls fetcher again and sets isPending to true.
59
60
  */
60
61
  refetch() {
61
- c(this, n).current = !0, c(this, d).call(this).then((s) => {
62
- c(this, n).current = !1, this.current = s;
62
+ c(this, h).current = !0, o(this, l, c(this, l) + 1);
63
+ const s = c(this, l);
64
+ c(this, p).call(this).then((t) => {
65
+ s === c(this, l) && (c(this, h).current = !1, this.current = t);
63
66
  });
64
67
  }
65
68
  }
66
- d = new WeakMap(), n = new WeakMap();
67
- var f;
68
- class C extends p {
69
+ p = new WeakMap(), h = new WeakMap(), l = new WeakMap();
70
+ var m;
71
+ class A extends f {
69
72
  constructor(s, t, u) {
70
73
  super(null, u);
71
- o(this, f, []);
72
- const i = E(() => {
74
+ n(this, m, []);
75
+ const i = S(() => {
73
76
  this.current = t();
74
77
  }, 0);
75
- s.forEach((h) => {
76
- c(this, f).push(
77
- h.subscribe(() => {
78
+ s.forEach((a) => {
79
+ c(this, m).push(
80
+ a.subscribe(() => {
78
81
  i();
79
82
  })
80
83
  );
81
84
  });
82
85
  }
83
86
  close() {
84
- super.close(), c(this, f).forEach((s) => s());
87
+ super.close(), c(this, m).forEach((s) => s());
85
88
  }
86
89
  }
87
- f = new WeakMap();
90
+ m = new WeakMap();
88
91
  export {
89
- C as Composed,
90
- R as Derived,
91
- w as DerivedArray,
92
- A as Resource,
93
- p as Store,
92
+ A as Composed,
93
+ P as Derived,
94
+ R as DerivedArray,
95
+ w as Resource,
96
+ f as Store,
94
97
  q as activeStores,
95
98
  z as storeRegistry
96
99
  };
@@ -0,0 +1,9 @@
1
+ import { CustomElement } from '../custom-element';
2
+ export declare class StudioElement extends CustomElement {
3
+ constructor();
4
+ }
5
+ declare global {
6
+ interface HTMLElementTagNameMap {
7
+ 'e-studio': StudioElement;
8
+ }
9
+ }
@@ -0,0 +1 @@
1
+ export { StudioElement } from './StudioElement';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../resizer/index.cjs");require("../Store-WXFmsaEI.cjs");const o=require("../source/index.cjs");require("../browser-QbF6EW-w.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../SourceManager-3c3kr7oj.cjs");require("../order/index.cjs");require("../intersector/index.cjs");require("../loading/index.cjs");var l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,m=(i,r,s,t)=>{for(var e=t>1?void 0:t?a(r,s):r,u=i.length-1,n;u>=0;u--)(n=i[u])&&(e=(t?n(r,s,e):n(e))||e);return t&&e&&l(r,s,e),e};exports.VideoElement=class extends o.SourceElement{connectedCallback(){super.connectedCallback(),this.captureEvent.subscribe(()=>{this.hasAttribute("e-autoplay")&&this.consumerElement.play()}),this.releaseEvent.subscribe(()=>{this.hasAttribute("e-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0))})}createConsumer(){return document.createElement("video")}consumeSource(r){this.consumerElement.src=r||""}};exports.VideoElement=m([c.define("e-video")],exports.VideoElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../custom-element/index.cjs");require("../resizer/index.cjs");require("../Store-txkR3wXU.cjs");const o=require("../source/index.cjs");require("../browser-QbF6EW-w.cjs");require("../notifier/index.cjs");require("../function-QP7IreXR.cjs");require("../SourceManager-tmQlXkSD.cjs");require("../order/index.cjs");require("../intersector/index.cjs");require("../loading/index.cjs");var l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,m=(i,r,s,t)=>{for(var e=t>1?void 0:t?a(r,s):r,u=i.length-1,n;u>=0;u--)(n=i[u])&&(e=(t?n(r,s,e):n(e))||e);return t&&e&&l(r,s,e),e};exports.VideoElement=class extends o.SourceElement{connectedCallback(){super.connectedCallback(),this.captureEvent.subscribe(()=>{this.hasAttribute("e-autoplay")&&this.consumerElement.play()}),this.releaseEvent.subscribe(()=>{this.hasAttribute("e-autoplay")&&(this.consumerElement.pause(),this.hasAttribute("replay")&&(this.consumerElement.currentTime=0))})}createConsumer(){return document.createElement("video")}consumeSource(r){this.consumerElement.src=r||""}};exports.VideoElement=m([c.define("e-video")],exports.VideoElement);
@@ -1,11 +1,11 @@
1
1
  import { define as c } from "../custom-element/index.js";
2
2
  import "../resizer/index.js";
3
- import "../Store-2hWEUGTj.js";
3
+ import "../Store-qq7IjRLE.js";
4
4
  import { SourceElement as p } from "../source/index.js";
5
5
  import "../browser-S4eq8AeN.js";
6
6
  import "../notifier/index.js";
7
7
  import "../function-zwSFehNd.js";
8
- import "../SourceManager-F94MRde6.js";
8
+ import "../SourceManager-vXInLlh_.js";
9
9
  import "../order/index.js";
10
10
  import "../intersector/index.js";
11
11
  import "../loading/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"
@@ -251,8 +251,7 @@
251
251
  "dev": "vite --mode site",
252
252
  "build:lib": "tsc && vite build --mode lib",
253
253
  "build:site": "tsc && vite build --mode site",
254
- "preview": "vite preview",
255
- "pp": "npm publish --access public"
254
+ "preview": "vite preview"
256
255
  },
257
256
  "devDependencies": {
258
257
  "@types/node": "^20.11.5",