aptechka 0.7.11 → 0.8.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.
- package/lib/Animation-CwgyQH5y.js +110 -0
- package/lib/Animation-DBfrekcV.cjs +1 -0
- package/lib/{Composed-Dx2hs-va.cjs → Composed-CIXY_HwN.cjs} +1 -1
- package/lib/{Composed-DmLYTh1b.js → Composed-CgnR5oah.js} +1 -1
- package/lib/Damped-DmcKRSST.cjs +1 -0
- package/lib/Damped-vepIw9Ku.js +57 -0
- package/lib/{Derived-DlCvc0xQ.js → Derived-B4CxuebG.js} +1 -1
- package/lib/{Derived-a6MDQEPY.cjs → Derived-Xb4EzLLO.cjs} +1 -1
- package/lib/{SourceManager-kxr5eUyL.cjs → SourceManager-Ce49-NQe.cjs} +1 -1
- package/lib/{SourceManager-Bz329f90.js → SourceManager-U3KHUnNl.js} +1 -1
- package/lib/Store-CIs_NjhF.cjs +1 -0
- package/lib/Store-Dqcu1DnE.js +152 -0
- package/lib/{Tweened-B_mclQ61.cjs → Tweened-5Bj7ht3x.cjs} +1 -1
- package/lib/{Tweened-NE8M9onF.js → Tweened-DPi9pZ8Q.js} +1 -1
- package/lib/{Viewport-D9IL7kUQ.js → Viewport-4ZTWxLo_.js} +1 -1
- package/lib/{Viewport-CJeKnL5V.cjs → Viewport-CIBlSU2t.cjs} +1 -1
- package/lib/animation/Animation.d.ts +3 -18
- package/lib/animation/Damped.d.ts +2 -18
- package/lib/animation/Tweened.d.ts +2 -2
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.d.ts +2 -2
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.d.ts +3 -3
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.d.ts +1 -0
- package/lib/canvas/index.js +63 -54
- package/lib/checkbox/index.cjs +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/class-linked-status/index.cjs +1 -1
- package/lib/class-linked-status/index.js +1 -1
- package/lib/controls/index.cjs +1 -1
- package/lib/controls/index.js +2 -2
- package/lib/{createStylesheet-p23sZ7Ey.cjs → createStylesheet-BX1RVTfW.cjs} +1 -1
- package/lib/{createStylesheet-CR_yi5tp.js → createStylesheet-CgWN4UhW.js} +1 -1
- package/lib/css-property/index.cjs +1 -1
- package/lib/css-property/index.d.ts +3 -3
- package/lib/css-property/index.js +1 -1
- package/lib/dev/index.cjs +1 -1
- package/lib/dev/index.js +1 -1
- package/lib/device/Viewport.d.ts +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +113 -114
- package/lib/en3/helpers/index.cjs +1 -1
- package/lib/en3/helpers/index.js +2 -2
- package/lib/en3/misc/En3SourceManager.d.ts +2 -2
- package/lib/en3/misc/index.cjs +1 -1
- package/lib/en3/misc/index.js +2 -2
- package/lib/en3/objects/fluid/En3Fluid.d.ts +5 -5
- package/lib/en3/objects/fluid/Simulation.d.ts +10 -10
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-CoOTQk9H.js → index-C2xWAQFq.js} +3 -3
- package/lib/{index-DVUk3T-y.cjs → index-DfSyc2GT.cjs} +1 -1
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/layout-box/index.d.ts +2 -2
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +7 -7
- package/lib/pointer/index.cjs +1 -1
- package/lib/pointer/index.js +2 -2
- package/lib/popover/PopoverElement.d.ts +1 -1
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +2 -2
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.js +73 -76
- package/lib/scroll/ScrollElement.d.ts +1 -1
- package/lib/scroll/ScrollSegmentElement.d.ts +6 -6
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +7 -7
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/Derived.d.ts +1 -1
- package/lib/store/Resource.d.ts +1 -4
- package/lib/store/Store.d.ts +10 -10
- package/lib/store/StoreRegistry.d.ts +1 -1
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.d.ts +1 -3
- package/lib/store/index.js +38 -68
- package/lib/tags-C-6uXIAT.js +848 -0
- package/lib/tags-yvEoM921.cjs +1 -0
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/tweaker/TweakerFieldElement.d.ts +3 -3
- package/lib/tweaker/TweakerFolderElement.d.ts +2 -2
- package/lib/tweaker/TweakerStoreManagerElement.d.ts +1 -1
- package/lib/tweaker/index.cjs +1 -1
- package/lib/tweaker/index.js +56 -56
- package/lib/tweaker/tweakerManagerConstructors.d.ts +1 -1
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -65
- package/lib/Animation-6Na1MCtM.cjs +0 -1
- package/lib/Animation-CELiTw3n.js +0 -132
- package/lib/Damped-Mx_FNNVz.js +0 -63
- package/lib/Damped-loFiBsBy.cjs +0 -1
- package/lib/ElementConstructor-CAZ2ra8m.cjs +0 -1
- package/lib/ElementConstructor-OYlPJf2L.js +0 -366
- package/lib/Resource-D3TQormz.cjs +0 -1
- package/lib/Resource-DIcoALGo.js +0 -64
- package/lib/Store-6s0YXK4o.cjs +0 -1
- package/lib/Store-BI2xxXOA.js +0 -156
- package/lib/_createStore-Cf1MyeHa.cjs +0 -1
- package/lib/_createStore-Ck9bHolX.js +0 -12
- package/lib/globals-DMjysUXI.js +0 -8
- package/lib/globals-bYKki-b9.cjs +0 -1
- package/lib/instantiate-Cx-JmH6m.cjs +0 -1
- package/lib/instantiate-D87JFF1W.js +0 -125
- package/lib/jsx/ComponentElement.d.ts +0 -18
- package/lib/jsx/globals.d.ts +0 -13
- package/lib/jsx/h.d.ts +0 -7
- package/lib/jsx/hooks/basic/_createStore.d.ts +0 -4
- package/lib/jsx/hooks/basic/attachInternals.d.ts +0 -1
- package/lib/jsx/hooks/basic/attachShadow.d.ts +0 -1
- package/lib/jsx/hooks/basic/attachStylesheet.d.ts +0 -3
- package/lib/jsx/hooks/basic/createContext.d.ts +0 -2
- package/lib/jsx/hooks/basic/onConnect.d.ts +0 -3
- package/lib/jsx/hooks/basic/onDisconnect.d.ts +0 -3
- package/lib/jsx/hooks/onAnimationFrame.cjs +0 -1
- package/lib/jsx/hooks/onAnimationFrame.d.ts +0 -6
- package/lib/jsx/hooks/onAnimationFrame.js +0 -22
- package/lib/jsx/hooks/onElementResize.cjs +0 -1
- package/lib/jsx/hooks/onElementResize.d.ts +0 -5
- package/lib/jsx/hooks/onElementResize.js +0 -11
- package/lib/jsx/hooks/onIntersection.cjs +0 -1
- package/lib/jsx/hooks/onIntersection.d.ts +0 -5
- package/lib/jsx/hooks/onIntersection.js +0 -11
- package/lib/jsx/hooks/onWindowResize.cjs +0 -1
- package/lib/jsx/hooks/onWindowResize.d.ts +0 -3
- package/lib/jsx/hooks/onWindowResize.js +0 -8
- package/lib/jsx/hooks/store/createArrayStore.d.ts +0 -3
- package/lib/jsx/hooks/store/createComposed.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerived.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedArray.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedComponent.d.ts +0 -3
- package/lib/jsx/hooks/store/createDerivedComponents.d.ts +0 -3
- package/lib/jsx/hooks/store/createResource.d.ts +0 -3
- package/lib/jsx/hooks/store/createStore.d.ts +0 -3
- package/lib/jsx/hooks/store/index.cjs +0 -1
- package/lib/jsx/hooks/store/index.d.ts +0 -7
- package/lib/jsx/hooks/store/index.js +0 -49
- package/lib/jsx/hooks/watchAttribute.cjs +0 -1
- package/lib/jsx/hooks/watchAttribute.d.ts +0 -6
- package/lib/jsx/hooks/watchAttribute.js +0 -17
- package/lib/jsx/hooks/watchCSSProperty.cjs +0 -1
- package/lib/jsx/hooks/watchCSSProperty.d.ts +0 -7
- package/lib/jsx/hooks/watchCSSProperty.js +0 -17
- package/lib/jsx/index.cjs +0 -1
- package/lib/jsx/index.d.ts +0 -13
- package/lib/jsx/index.js +0 -91
- package/lib/jsx/instantiate.d.ts +0 -5
- package/lib/jsx/register.d.ts +0 -1
- package/lib/jsx/render.d.ts +0 -6
- package/lib/jsx/type.d.ts +0 -188
- package/lib/onConnect-DGP866cj.cjs +0 -1
- package/lib/onConnect-y5DrxJ9P.js +0 -7
- package/lib/store/ArrayStore.d.ts +0 -21
- package/lib/store/DerivedArray.d.ts +0 -8
- package/lib/tags-BqJKcIve.js +0 -485
- package/lib/tags-ld5jemJw.cjs +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aptechka",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/denisavitski/aptechka.git"
|
|
@@ -138,46 +138,6 @@
|
|
|
138
138
|
"default": "./lib/intersector/index.js",
|
|
139
139
|
"types": "./lib/intersector/index.d.ts"
|
|
140
140
|
},
|
|
141
|
-
"./jsx": {
|
|
142
|
-
"require": "./lib/jsx/index.cjs",
|
|
143
|
-
"default": "./lib/jsx/index.js",
|
|
144
|
-
"types": "./lib/jsx/index.d.ts"
|
|
145
|
-
},
|
|
146
|
-
"./jsx/hooks/store": {
|
|
147
|
-
"require": "./lib/jsx/hooks/store/index.cjs",
|
|
148
|
-
"default": "./lib/jsx/hooks/store/index.js",
|
|
149
|
-
"types": "./lib/jsx/hooks/store/index.d.ts"
|
|
150
|
-
},
|
|
151
|
-
"./jsx/hooks/onAnimationFrame": {
|
|
152
|
-
"require": "./lib/jsx/hooks/onAnimationFrame.cjs",
|
|
153
|
-
"default": "./lib/jsx/hooks/onAnimationFrame.js",
|
|
154
|
-
"types": "./lib/jsx/hooks/onAnimationFrame.d.ts"
|
|
155
|
-
},
|
|
156
|
-
"./jsx/hooks/onElementResize": {
|
|
157
|
-
"require": "./lib/jsx/hooks/onElementResize.cjs",
|
|
158
|
-
"default": "./lib/jsx/hooks/onElementResize.js",
|
|
159
|
-
"types": "./lib/jsx/hooks/onElementResize.d.ts"
|
|
160
|
-
},
|
|
161
|
-
"./jsx/hooks/onIntersection": {
|
|
162
|
-
"require": "./lib/jsx/hooks/onIntersection.cjs",
|
|
163
|
-
"default": "./lib/jsx/hooks/onIntersection.js",
|
|
164
|
-
"types": "./lib/jsx/hooks/onIntersection.d.ts"
|
|
165
|
-
},
|
|
166
|
-
"./jsx/hooks/onWindowResize": {
|
|
167
|
-
"require": "./lib/jsx/hooks/onWindowResize.cjs",
|
|
168
|
-
"default": "./lib/jsx/hooks/onWindowResize.js",
|
|
169
|
-
"types": "./lib/jsx/hooks/onWindowResize.d.ts"
|
|
170
|
-
},
|
|
171
|
-
"./jsx/hooks/watchAttribute": {
|
|
172
|
-
"require": "./lib/jsx/hooks/watchAttribute.cjs",
|
|
173
|
-
"default": "./lib/jsx/hooks/watchAttribute.js",
|
|
174
|
-
"types": "./lib/jsx/hooks/watchAttribute.d.ts"
|
|
175
|
-
},
|
|
176
|
-
"./jsx/hooks/watchCSSProperty": {
|
|
177
|
-
"require": "./lib/jsx/hooks/watchCSSProperty.cjs",
|
|
178
|
-
"default": "./lib/jsx/hooks/watchCSSProperty.js",
|
|
179
|
-
"types": "./lib/jsx/hooks/watchCSSProperty.d.ts"
|
|
180
|
-
},
|
|
181
141
|
"./ladder": {
|
|
182
142
|
"require": "./lib/ladder/index.cjs",
|
|
183
143
|
"default": "./lib/ladder/index.js",
|
|
@@ -381,30 +341,6 @@
|
|
|
381
341
|
"intersector": [
|
|
382
342
|
"lib/intersector/index.d.ts"
|
|
383
343
|
],
|
|
384
|
-
"jsx": [
|
|
385
|
-
"lib/jsx/index.d.ts"
|
|
386
|
-
],
|
|
387
|
-
"jsx/hooks/store": [
|
|
388
|
-
"lib/jsx/hooks/store/index.d.ts"
|
|
389
|
-
],
|
|
390
|
-
"jsx/hooks/onAnimationFrame": [
|
|
391
|
-
"lib/jsx/hooks/onAnimationFrame.d.ts"
|
|
392
|
-
],
|
|
393
|
-
"jsx/hooks/onElementResize": [
|
|
394
|
-
"lib/jsx/hooks/onElementResize.d.ts"
|
|
395
|
-
],
|
|
396
|
-
"jsx/hooks/onIntersection": [
|
|
397
|
-
"lib/jsx/hooks/onIntersection.d.ts"
|
|
398
|
-
],
|
|
399
|
-
"jsx/hooks/onWindowResize": [
|
|
400
|
-
"lib/jsx/hooks/onWindowResize.d.ts"
|
|
401
|
-
],
|
|
402
|
-
"jsx/hooks/watchAttribute": [
|
|
403
|
-
"lib/jsx/hooks/watchAttribute.d.ts"
|
|
404
|
-
],
|
|
405
|
-
"jsx/hooks/watchCSSProperty": [
|
|
406
|
-
"lib/jsx/hooks/watchCSSProperty.d.ts"
|
|
407
|
-
],
|
|
408
344
|
"ladder": [
|
|
409
345
|
"lib/ladder/index.d.ts"
|
|
410
346
|
],
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.defineProperty,k=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var S=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var C=(s,i,t)=>i in s?R(s,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[i]=t,M=(s,i)=>{for(var t in i||(i={}))_.call(i,t)&&C(s,t,i[t]);if(S)for(var t of S(i))w.call(i,t)&&C(s,t,i[t]);return s},y=(s,i)=>k(s,T(i));var P=(s,i,t)=>{if(!i.has(s))throw TypeError("Cannot "+t)};var e=(s,i,t)=>(P(s,i,"read from private field"),t?t.call(s):i.get(s)),a=(s,i,t)=>{if(i.has(s))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(s):i.set(s,t)},h=(s,i,t,n)=>(P(s,i,"write to private field"),n?n.call(s,t):i.set(s,t),t);var I=(s,i,t)=>(P(s,i,"access private method"),t);const z=require("./Store-6s0YXK4o.cjs"),D=require("./math-GDWEqu7y.cjs"),g=require("./polyfills-CM4SCDTt.cjs"),N=require("./ticker/index.cjs"),E=require("./order/index.cjs");var d,f,A,c,b,r,u,l,m,F,q,O,x;class K extends z.Store{constructor(t,n){super(t||0,n);a(this,q);a(this,d,void 0);a(this,f,E.TICK_ORDER.ANIMATION);a(this,A,void 0);a(this,c,new z.Store(!1));a(this,b,0);a(this,r,0);a(this,u,-1/0);a(this,l,1/0);a(this,m,0);a(this,F,null);a(this,x,t=>{this.handleAnimationFrame(t)});h(this,r,this.current)}get direction(){return e(this,b)}get target(){return e(this,r)}get min(){return e(this,u)}set min(t){h(this,u,t),this.set(e(this,r),{equalize:!0})}get max(){return e(this,l)}set max(t){h(this,l,t),this.set(e(this,r),{equalize:!0})}get from(){return e(this,m)}get isRunning(){return e(this,c)}get delta(){return Math.abs(e(this,r)-e(this,m))}get deltaProgress(){return this.delta?g.preciseNumber(Math.abs(this.current-e(this,m))/this.delta,6):0}get distance(){return Math.abs(e(this,l)-e(this,u))}get distanceProgress(){return this.distance?g.preciseNumber(Math.abs(this.current-e(this,u))/this.distance,6):0}get entry(){return y(M({},super.entry),{from:e(this,m),delta:this.delta,distance:this.distance,direction:this.direction,deltaProgress:this.deltaProgress,distanceProgress:this.distanceProgress})}set(t,n){(e(this,r)!==t||n!=null&&n.restart)&&(h(this,F,t),this.updateOptions(n),h(this,F,null),e(this,r)!==this.current&&this.start())}shift(t,n){this.set(e(this,r)+t,n)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){e(this,c).current||(e(this,c).current=!0,N.ticker.subscribe(e(this,x),{maxFPS:e(this,d),order:e(this,f),culling:e(this,A)}))}unlistenAnimationFrame(){e(this,c).current&&(e(this,c).current=!1,N.ticker.unsubscribe(e(this,x)))}updateOptions(t){h(this,d,g.nullishCoalescing(t==null?void 0:t.maxFPS,e(this,d))),h(this,f,g.nullishCoalescing(t==null?void 0:t.order,e(this,f))),h(this,A,g.nullishCoalescing(t==null?void 0:t.culling,e(this,A))),h(this,u,g.nullishCoalescing(t==null?void 0:t.min,e(this,u))),h(this,l,g.nullishCoalescing(t==null?void 0:t.max,e(this,l))),I(this,q,O).call(this,e(this,F)||e(this,r)),t!=null&&t.equalize&&(this.unlistenAnimationFrame(),this.current=e(this,r)),t!=null&&t.restart&&(this.unlistenAnimationFrame(),this.current=this.initial)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,A=new WeakMap,c=new WeakMap,b=new WeakMap,r=new WeakMap,u=new WeakMap,l=new WeakMap,m=new WeakMap,F=new WeakMap,q=new WeakSet,O=function(t){h(this,b,Math.sign(t-e(this,r))),h(this,r,D.clamp(t,e(this,u),e(this,l))),h(this,m,this.current)},x=new WeakMap;exports.Animation=K;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
var C = Object.defineProperty, k = Object.defineProperties;
|
|
2
|
-
var w = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var S = Object.getOwnPropertySymbols;
|
|
4
|
-
var D = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var I = (r, i, t) => i in r ? C(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t, q = (r, i) => {
|
|
6
|
-
for (var t in i || (i = {}))
|
|
7
|
-
D.call(i, t) && I(r, t, i[t]);
|
|
8
|
-
if (S)
|
|
9
|
-
for (var t of S(i))
|
|
10
|
-
E.call(i, t) && I(r, t, i[t]);
|
|
11
|
-
return r;
|
|
12
|
-
}, y = (r, i) => k(r, w(i));
|
|
13
|
-
var M = (r, i, t) => {
|
|
14
|
-
if (!i.has(r))
|
|
15
|
-
throw TypeError("Cannot " + t);
|
|
16
|
-
};
|
|
17
|
-
var e = (r, i, t) => (M(r, i, "read from private field"), t ? t.call(r) : i.get(r)), a = (r, i, t) => {
|
|
18
|
-
if (i.has(r))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
i instanceof WeakSet ? i.add(r) : i.set(r, t);
|
|
21
|
-
}, h = (r, i, t, n) => (M(r, i, "write to private field"), n ? n.call(r, t) : i.set(r, t), t);
|
|
22
|
-
var z = (r, i, t) => (M(r, i, "access private method"), t);
|
|
23
|
-
import { S as O } from "./Store-BI2xxXOA.js";
|
|
24
|
-
import { c as K } from "./math-BOBiC4TN.js";
|
|
25
|
-
import { p as R, n as F } from "./polyfills-X6KXuHg-.js";
|
|
26
|
-
import { ticker as N } from "./ticker/index.js";
|
|
27
|
-
import { TICK_ORDER as L } from "./order/index.js";
|
|
28
|
-
var d, g, f, l, b, s, u, m, c, A, P, T, x;
|
|
29
|
-
class J extends O {
|
|
30
|
-
constructor(t, n) {
|
|
31
|
-
super(t || 0, n);
|
|
32
|
-
a(this, P);
|
|
33
|
-
a(this, d, void 0);
|
|
34
|
-
a(this, g, L.ANIMATION);
|
|
35
|
-
a(this, f, void 0);
|
|
36
|
-
a(this, l, new O(!1));
|
|
37
|
-
a(this, b, 0);
|
|
38
|
-
a(this, s, 0);
|
|
39
|
-
a(this, u, -1 / 0);
|
|
40
|
-
a(this, m, 1 / 0);
|
|
41
|
-
a(this, c, 0);
|
|
42
|
-
a(this, A, null);
|
|
43
|
-
a(this, x, (t) => {
|
|
44
|
-
this.handleAnimationFrame(t);
|
|
45
|
-
});
|
|
46
|
-
h(this, s, this.current);
|
|
47
|
-
}
|
|
48
|
-
get direction() {
|
|
49
|
-
return e(this, b);
|
|
50
|
-
}
|
|
51
|
-
get target() {
|
|
52
|
-
return e(this, s);
|
|
53
|
-
}
|
|
54
|
-
get min() {
|
|
55
|
-
return e(this, u);
|
|
56
|
-
}
|
|
57
|
-
set min(t) {
|
|
58
|
-
h(this, u, t), this.set(e(this, s), {
|
|
59
|
-
equalize: !0
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
get max() {
|
|
63
|
-
return e(this, m);
|
|
64
|
-
}
|
|
65
|
-
set max(t) {
|
|
66
|
-
h(this, m, t), this.set(e(this, s), {
|
|
67
|
-
equalize: !0
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
get from() {
|
|
71
|
-
return e(this, c);
|
|
72
|
-
}
|
|
73
|
-
get isRunning() {
|
|
74
|
-
return e(this, l);
|
|
75
|
-
}
|
|
76
|
-
get delta() {
|
|
77
|
-
return Math.abs(e(this, s) - e(this, c));
|
|
78
|
-
}
|
|
79
|
-
get deltaProgress() {
|
|
80
|
-
return this.delta ? R(Math.abs(this.current - e(this, c)) / this.delta, 6) : 0;
|
|
81
|
-
}
|
|
82
|
-
get distance() {
|
|
83
|
-
return Math.abs(e(this, m) - e(this, u));
|
|
84
|
-
}
|
|
85
|
-
get distanceProgress() {
|
|
86
|
-
return this.distance ? R(Math.abs(this.current - e(this, u)) / this.distance, 6) : 0;
|
|
87
|
-
}
|
|
88
|
-
get entry() {
|
|
89
|
-
return y(q({}, super.entry), {
|
|
90
|
-
from: e(this, c),
|
|
91
|
-
delta: this.delta,
|
|
92
|
-
distance: this.distance,
|
|
93
|
-
direction: this.direction,
|
|
94
|
-
deltaProgress: this.deltaProgress,
|
|
95
|
-
distanceProgress: this.distanceProgress
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
set(t, n) {
|
|
99
|
-
(e(this, s) !== t || n != null && n.restart) && (h(this, A, t), this.updateOptions(n), h(this, A, null), e(this, s) !== this.current && this.start());
|
|
100
|
-
}
|
|
101
|
-
shift(t, n) {
|
|
102
|
-
this.set(e(this, s) + t, n);
|
|
103
|
-
}
|
|
104
|
-
reset() {
|
|
105
|
-
super.reset(), this.set(this.initial, { equalize: !0 });
|
|
106
|
-
}
|
|
107
|
-
close() {
|
|
108
|
-
super.close(), this.reset(), this.unlistenAnimationFrame();
|
|
109
|
-
}
|
|
110
|
-
listenAnimationFrame() {
|
|
111
|
-
e(this, l).current || (e(this, l).current = !0, N.subscribe(e(this, x), {
|
|
112
|
-
maxFPS: e(this, d),
|
|
113
|
-
order: e(this, g),
|
|
114
|
-
culling: e(this, f)
|
|
115
|
-
}));
|
|
116
|
-
}
|
|
117
|
-
unlistenAnimationFrame() {
|
|
118
|
-
e(this, l).current && (e(this, l).current = !1, N.unsubscribe(e(this, x)));
|
|
119
|
-
}
|
|
120
|
-
updateOptions(t) {
|
|
121
|
-
h(this, d, F(t == null ? void 0 : t.maxFPS, e(this, d))), h(this, g, F(t == null ? void 0 : t.order, e(this, g))), h(this, f, F(t == null ? void 0 : t.culling, e(this, f))), h(this, u, F(t == null ? void 0 : t.min, e(this, u))), h(this, m, F(t == null ? void 0 : t.max, e(this, m))), z(this, P, T).call(this, e(this, A) || e(this, s)), t != null && t.equalize && (this.unlistenAnimationFrame(), this.current = e(this, s)), t != null && t.restart && (this.unlistenAnimationFrame(), this.current = this.initial);
|
|
122
|
-
}
|
|
123
|
-
start() {
|
|
124
|
-
this.listenAnimationFrame();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
d = new WeakMap(), g = new WeakMap(), f = new WeakMap(), l = new WeakMap(), b = new WeakMap(), s = new WeakMap(), u = new WeakMap(), m = new WeakMap(), c = new WeakMap(), A = new WeakMap(), P = new WeakSet(), T = function(t) {
|
|
128
|
-
h(this, b, Math.sign(t - e(this, s))), h(this, s, K(t, e(this, u), e(this, m))), h(this, c, this.current);
|
|
129
|
-
}, x = new WeakMap();
|
|
130
|
-
export {
|
|
131
|
-
J as A
|
|
132
|
-
};
|
package/lib/Damped-Mx_FNNVz.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var v = Object.defineProperty, O = Object.defineProperties;
|
|
2
|
-
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var g = Object.getOwnPropertySymbols;
|
|
4
|
-
var w = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var l = (e, s, t) => s in e ? v(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, u = (e, s) => {
|
|
6
|
-
for (var t in s || (s = {}))
|
|
7
|
-
w.call(s, t) && l(e, t, s[t]);
|
|
8
|
-
if (g)
|
|
9
|
-
for (var t of g(s))
|
|
10
|
-
x.call(s, t) && l(e, t, s[t]);
|
|
11
|
-
return e;
|
|
12
|
-
}, c = (e, s) => O(e, b(s));
|
|
13
|
-
var p = (e, s, t) => {
|
|
14
|
-
if (!s.has(e))
|
|
15
|
-
throw TypeError("Cannot " + t);
|
|
16
|
-
};
|
|
17
|
-
var r = (e, s, t) => (p(e, s, "read from private field"), t ? t.call(e) : s.get(e)), d = (e, s, t) => {
|
|
18
|
-
if (s.has(e))
|
|
19
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
20
|
-
s instanceof WeakSet ? s.add(e) : s.set(e, t);
|
|
21
|
-
}, n = (e, s, t, a) => (p(e, s, "write to private field"), a ? a.call(e, t) : s.set(e, t), t);
|
|
22
|
-
import { d as B } from "./math-BOBiC4TN.js";
|
|
23
|
-
import { n as f, p as y } from "./polyfills-X6KXuHg-.js";
|
|
24
|
-
import { A as D } from "./Animation-CELiTw3n.js";
|
|
25
|
-
var i, h;
|
|
26
|
-
class N extends D {
|
|
27
|
-
constructor(t, a) {
|
|
28
|
-
super(t, a);
|
|
29
|
-
d(this, i, void 0);
|
|
30
|
-
d(this, h, void 0);
|
|
31
|
-
this.damping = 20, this.stiffness = 0, this.mass = 0, n(this, i, 0), n(this, h, 0), this.updateOptions(c(u({}, a), { equalize: !0 }));
|
|
32
|
-
}
|
|
33
|
-
get velocity() {
|
|
34
|
-
return r(this, i);
|
|
35
|
-
}
|
|
36
|
-
get speed() {
|
|
37
|
-
return r(this, h);
|
|
38
|
-
}
|
|
39
|
-
get entry() {
|
|
40
|
-
return c(u({}, super.entry), {
|
|
41
|
-
velocity: r(this, i),
|
|
42
|
-
speed: r(this, h)
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
updateOptions(t) {
|
|
46
|
-
this.damping = f(t == null ? void 0 : t.damping, this.damping), this.mass = f(t == null ? void 0 : t.mass, this.mass), this.stiffness = f(t == null ? void 0 : t.stiffness, this.stiffness), super.updateOptions(t);
|
|
47
|
-
}
|
|
48
|
-
handleAnimationFrame(t) {
|
|
49
|
-
y(this.current, 4) === y(this.target, 4) && (this.unlistenAnimationFrame(), this.current = this.target);
|
|
50
|
-
const a = this.current, A = Math.abs(a - this.target);
|
|
51
|
-
n(this, h, A / t.timeBetweenFrames);
|
|
52
|
-
const m = t.timeBetweenFrames / 1e3;
|
|
53
|
-
if (this.mass || this.stiffness) {
|
|
54
|
-
const F = (this.target - this.current) * this.stiffness - r(this, i) * this.damping;
|
|
55
|
-
n(this, i, r(this, i) + F / this.mass * m), this.current += r(this, i) * m;
|
|
56
|
-
} else
|
|
57
|
-
this.current = B(this.current, this.target, this.damping, m);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
i = new WeakMap(), h = new WeakMap();
|
|
61
|
-
export {
|
|
62
|
-
N as D
|
|
63
|
-
};
|
package/lib/Damped-loFiBsBy.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty,F=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var f=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,m=(e,s)=>{for(var t in s||(s={}))v.call(s,t)&&f(e,t,s[t]);if(g)for(var t of g(s))C.call(s,t)&&f(e,t,s[t]);return e},l=(e,s)=>F(e,b(s));var p=(e,s,t)=>{if(!s.has(e))throw TypeError("Cannot "+t)};var r=(e,s,t)=>(p(e,s,"read from private field"),t?t.call(e):s.get(e)),d=(e,s,t)=>{if(s.has(e))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(e):s.set(e,t)},n=(e,s,t,h)=>(p(e,s,"write to private field"),h?h.call(e,t):s.set(e,t),t);const O=require("./math-GDWEqu7y.cjs"),u=require("./polyfills-CM4SCDTt.cjs"),w=require("./Animation-6Na1MCtM.cjs");var i,a;class B extends w.Animation{constructor(t,h){super(t,h);d(this,i,void 0);d(this,a,void 0);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,a,0),this.updateOptions(l(m({},h),{equalize:!0}))}get velocity(){return r(this,i)}get speed(){return r(this,a)}get entry(){return l(m({},super.entry),{velocity:r(this,i),speed:r(this,a)})}updateOptions(t){this.damping=u.nullishCoalescing(t==null?void 0:t.damping,this.damping),this.mass=u.nullishCoalescing(t==null?void 0:t.mass,this.mass),this.stiffness=u.nullishCoalescing(t==null?void 0:t.stiffness,this.stiffness),super.updateOptions(t)}handleAnimationFrame(t){u.preciseNumber(this.current,4)===u.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target);const h=this.current,y=Math.abs(h-this.target);n(this,a,y/t.timeBetweenFrames);const c=t.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const q=(this.target-this.current)*this.stiffness-r(this,i)*this.damping;n(this,i,r(this,i)+q/this.mass*c),this.current+=r(this,i)*c}else this.current=O.damp(this.current,this.target,this.damping,c)}}i=new WeakMap,a=new WeakMap;exports.Damped=B;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var Z=(f,e,t)=>{if(!e.has(f))throw TypeError("Cannot "+t)};var i=(f,e,t)=>(Z(f,e,"read from private field"),t?t.call(f):e.get(f)),c=(f,e,t)=>{if(e.has(f))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(f):e.set(f,t)},S=(f,e,t,s)=>(Z(f,e,"write to private field"),s?s.call(f,t):e.set(f,t),t);var r=(f,e,t)=>(Z(f,e,"access private method"),t);const b=require("./Store-6s0YXK4o.cjs"),he=require("./browser-CpzFX2xg.cjs"),de=require("./object-CCiXnER2.cjs"),_=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),Le=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view"]);var o,E,l,w,d,u,P,ue,B,me,R,ge,L,j,T,ee,G,Ee,W,Se,$,be,z,Ce,v,te,A,se,I,ye,k,ie,M,ne,J,pe,D,oe,N,F,x,re,q,ce,H,ae,V,K;const U=class U{constructor(...e){c(this,P);c(this,B);c(this,R);c(this,L);c(this,T);c(this,G);c(this,W);c(this,$);c(this,z);c(this,v);c(this,A);c(this,I);c(this,k);c(this,M);c(this,J);c(this,D);c(this,N);c(this,x);c(this,q);c(this,H);c(this,o,null);c(this,E,new Set);c(this,l,new Set);c(this,w,void 0);c(this,d,void 0);c(this,u,void 0);c(this,V,()=>{i(this,E).forEach(e=>{e()}),i(this,E).clear()});c(this,K,e=>{i(this,l).forEach(t=>{t(e)}),i(this,l).clear(),r(this,M,ne).call(this)});if(he.isBrowser){const t=e[0],s=e[1];S(this,o,r(this,P,ue).call(this,t,s==null?void 0:s.forceSvg)),r(this,R,ge).call(this,s)}}get node(){return i(this,o)}set node(e){var t;r(this,M,ne).call(this),S(this,o,e),(t=i(this,w))==null||t.call(this),i(this,o)instanceof Element&&S(this,d,[...i(this,o).querySelectorAll("store-root")]),r(this,k,ie).call(this),r(this,L,j).call(this)}};o=new WeakMap,E=new WeakMap,l=new WeakMap,w=new WeakMap,d=new WeakMap,u=new WeakMap,P=new WeakSet,ue=function(e,t){let s=null;if(e instanceof Node)s=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))s=new(customElements.get(e));else if(e.includes("<")){const n=document.createElement("div");n.innerHTML=e,s=n.firstElementChild}else Le.has(e)||t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e);else s=document.createElement("div");return s},B=new WeakSet,me=function(e){return e instanceof HTMLElement||e instanceof SVGElement},R=new WeakSet,ge=function(e){if(!e)return;const t=r(this,B,me).call(this,i(this,o)),s=e.ref;delete e.ref,e!=null&&e.onConnect&&(i(this,E).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(i(this,l).add(e.onDisconnect),delete e.onDisconnect);let n,a;for(const h in e){const m=e[h];h==="class"&&t?r(this,T,ee).call(this,m):h==="style"&&t?r(this,$,be).call(this,m):h==="lightChildren"?r(this,N,F).call(this,i(this,o),m):h==="children"?r(this,N,F).call(this,i(this,o)instanceof Element?i(this,o).shadowRoot||i(this,o):i(this,o),m):h.startsWith("on")?(a||(a={}),a[h]=m):(n||(n={}),n[h]=m)}r(this,J,pe).call(this,n),r(this,I,ye).call(this,a),s&&(typeof s=="function"?s(i(this,o)):s.current=i(this,o)),r(this,L,j).call(this)},L=new WeakSet,j=function(){if(he.isBrowser&&(i(this,l).size||i(this,E).size)){const e=i(this,o)instanceof DocumentFragment?i(this,o).firstChild:i(this,o);S(this,w,we.connector.subscribe(e,{connectCallback:i(this,V),disconnectCallback:i(this,K),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},T=new WeakSet,ee=function(e){if(e){if(typeof e=="string")i(this,o).classList.add(e);else if(Array.isArray(e))e.forEach(t=>{r(this,T,ee).call(this,t)});else if(typeof e=="object")if(e instanceof b.Store)r(this,G,Ee).call(this,e);else for(const t in e){const s=e[t];s instanceof b.Store?r(this,W,Se).call(this,t,s):s?i(this,o).classList.add(t):i(this,o).classList.remove(t)}}else return},G=new WeakSet,Ee=function(e){i(this,l).add(e.subscribe(({current:t,previous:s})=>{s&&[s].flat().forEach(n=>{n&&i(this,o).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&i(this,o).classList.add(n)})}))},W=new WeakSet,Se=function(e,t){i(this,l).add(t.subscribe(({current:s})=>{s?i(this,o).classList.add(e):i(this,o).classList.remove(e)}))},$=new WeakSet,be=function(e){if(!e)return;i(this,o).tagName==="style"||i(this,o).tagName==="STYLE"?r(this,v,te).call(this,e):r(this,z,Ce).call(this,e)},z=new WeakSet,Ce=function(e){for(const t in e){const s=t,n=e[s];n instanceof b.Store?i(this,l).add(n.subscribe(({current:a})=>{r(this,A,se).call(this,s,a)})):r(this,A,se).call(this,s,n)}},v=new WeakSet,te=function(e){for(const t in e){const s=e[t];if(typeof s=="object"&&!(s instanceof b.Store))i(this,o).appendChild(document.createTextNode(`${t} {`)),r(this,v,te).call(this,s),i(this,o).appendChild(document.createTextNode("}"));else if(s instanceof b.Store){const n=document.createTextNode("");i(this,l).add(s.subscribe(a=>{a.current?n.nodeValue=`${_.camelToKebab(t)}: ${a.current};`:n.nodeValue=""})),i(this,o).appendChild(n)}else i(this,o).appendChild(document.createTextNode(`${_.camelToKebab(t)}: ${s};`))}},A=new WeakSet,se=function(e,t){e.includes("--")?t?i(this,o).style.setProperty(e,t):i(this,o).style.removeProperty(e):t?i(this,o).style[e]=t:i(this,o).style[e]=""},I=new WeakSet,ye=function(e){if(e){i(this,u)||S(this,u,[]);for(const t in e){const s=t,n=_.uncapitalize(s.split("on").slice(1).join("on")),a=e[s];typeof a=="object"?i(this,u).push({name:n,callback:a.callback,options:a.options}):typeof a=="function"&&i(this,u).push({name:n,callback:a})}r(this,k,ie).call(this)}},k=new WeakSet,ie=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).addEventListener(t.name,t.callback,t.options)})},M=new WeakSet,ne=function(){var e;(e=i(this,u))==null||e.forEach(t=>{i(this,o).removeEventListener(t.name,t.callback,t.options)})},J=new WeakSet,pe=function(e){for(const t in e){const s=e[t];s instanceof b.Store?i(this,l).add(s.subscribe(({current:n})=>{r(this,D,oe).call(this,t,n)})):r(this,D,oe).call(this,t,s)}},D=new WeakSet,oe=function(e,t){var n,a;const s=i(this,o);e in s&&!((a=(n=s.constructor)==null?void 0:n.observedAttributes)!=null&&a.includes(e))?t!=null&&(s[e]=t.toString()):t!=null&&s.setAttribute(e,t.toString())},N=new WeakSet,F=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof b.Store){const n=document.createElement("div");n.style.display="contents",e.appendChild(n),i(this,d)||S(this,d,[]);const a=i(this,d).length;n.setAttribute("store-root",""),i(this,d).push(n),i(this,l).add(s.subscribe(({current:h,previous:m})=>{const C=i(this,d)[a];C.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const Y=Array.from(C.childNodes),fe=[h].flat(),Ne=[m].flat(),le=[],Q=[];Ne.forEach((g,y)=>{!fe.includes(g)&&Y[y]?le.push(Y[y]):Q.push(g)}),fe.forEach((g,y)=>{if(Q[y]){if(g!==Q[y]){const p=r(this,q,ce).call(this,g),X=Y[y];p instanceof Node?X.isEqualNode(p)||C.replaceChild(p,X):C.removeChild(X)}}else{const p=r(this,q,ce).call(this,g);p instanceof Node&&n.appendChild(p)}}),le.forEach(g=>{C.removeChild(g)}),C.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(s instanceof U)r(this,x,re).call(this,e,s.node);else if(s instanceof Function)r(this,N,F).call(this,e,de.isESClass(s)?new s:s());else{const n=r(this,H,ae).call(this,s);n instanceof Node&&r(this,x,re).call(this,e,n)}}))},x=new WeakSet,re=function(e,t){!(e instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(i(this,E).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),i(this,l).add(()=>{t.remove()})):e.appendChild(t)},q=new WeakSet,ce=function(e){return e instanceof U?e.node:typeof e=="function"?de.isESClass(e)?new e:e():r(this,H,ae).call(this,e)},H=new WeakSet,ae=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return document.createTextNode(t)}else return},V=new WeakMap,K=new WeakMap;let O=U;exports.ElementConstructor=O;
|
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
var Z = (f, e, t) => {
|
|
2
|
-
if (!e.has(f))
|
|
3
|
-
throw TypeError("Cannot " + t);
|
|
4
|
-
};
|
|
5
|
-
var i = (f, e, t) => (Z(f, e, "read from private field"), t ? t.call(f) : e.get(f)), c = (f, e, t) => {
|
|
6
|
-
if (e.has(f))
|
|
7
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
8
|
-
e instanceof WeakSet ? e.add(f) : e.set(f, t);
|
|
9
|
-
}, p = (f, e, t, s) => (Z(f, e, "write to private field"), s ? s.call(f, t) : e.set(f, t), t);
|
|
10
|
-
var a = (f, e, t) => (Z(f, e, "access private method"), t);
|
|
11
|
-
import { S as C } from "./Store-BI2xxXOA.js";
|
|
12
|
-
import { i as fe } from "./browser-0zX67oeU.js";
|
|
13
|
-
import { i as le } from "./object-D6MVWB4l.js";
|
|
14
|
-
import { c as he, u as we } from "./string-f0Dnk0L1.js";
|
|
15
|
-
import { connector as Le } from "./connector/index.js";
|
|
16
|
-
const Te = /* @__PURE__ */ new Set([
|
|
17
|
-
// 'a', 'style', 'title', 'script',
|
|
18
|
-
"animate",
|
|
19
|
-
"animateMotion",
|
|
20
|
-
"animateTransform",
|
|
21
|
-
"circle",
|
|
22
|
-
"clipPath",
|
|
23
|
-
"defs",
|
|
24
|
-
"desc",
|
|
25
|
-
"ellipse",
|
|
26
|
-
"feBlend",
|
|
27
|
-
"feColorMatrix",
|
|
28
|
-
"feComponentTransfer",
|
|
29
|
-
"feComposite",
|
|
30
|
-
"feConvolveMatrix",
|
|
31
|
-
"feDiffuseLighting",
|
|
32
|
-
"feDisplacementMap",
|
|
33
|
-
"feDistantLight",
|
|
34
|
-
"feDropShadow",
|
|
35
|
-
"feFlood",
|
|
36
|
-
"feFuncA",
|
|
37
|
-
"feFuncB",
|
|
38
|
-
"feFuncG",
|
|
39
|
-
"feFuncR",
|
|
40
|
-
"feGaussianBlur",
|
|
41
|
-
"feImage",
|
|
42
|
-
"feMerge",
|
|
43
|
-
"feMergeNode",
|
|
44
|
-
"feMorphology",
|
|
45
|
-
"feOffset",
|
|
46
|
-
"fePointLight",
|
|
47
|
-
"feSpecularLighting",
|
|
48
|
-
"feSpotLight",
|
|
49
|
-
"feTile",
|
|
50
|
-
"feTurbulence",
|
|
51
|
-
"filter",
|
|
52
|
-
"foreignObject",
|
|
53
|
-
"g",
|
|
54
|
-
"image",
|
|
55
|
-
"line",
|
|
56
|
-
"linearGradient",
|
|
57
|
-
"listener",
|
|
58
|
-
"marker",
|
|
59
|
-
"mask",
|
|
60
|
-
"metadata",
|
|
61
|
-
"mpath",
|
|
62
|
-
"path",
|
|
63
|
-
"pattern",
|
|
64
|
-
"polygon",
|
|
65
|
-
"polyline",
|
|
66
|
-
"radialGradient",
|
|
67
|
-
"rect",
|
|
68
|
-
"set",
|
|
69
|
-
"solidColor",
|
|
70
|
-
"stop",
|
|
71
|
-
"svg",
|
|
72
|
-
"switch",
|
|
73
|
-
"symbol",
|
|
74
|
-
"text",
|
|
75
|
-
"textPath",
|
|
76
|
-
"title",
|
|
77
|
-
"tspan",
|
|
78
|
-
"view"
|
|
79
|
-
]);
|
|
80
|
-
var o, E, l, w, d, m, R, me, B, ue, G, ge, L, _, T, O, W, Ee, $, pe, q, Ce, z, ye, v, j, A, ee, I, be, k, te, M, se, J, Se, D, ie, N, P, x, ne, H, oe, F, ae, V, U;
|
|
81
|
-
const Y = class Y {
|
|
82
|
-
constructor(...e) {
|
|
83
|
-
c(this, R);
|
|
84
|
-
c(this, B);
|
|
85
|
-
c(this, G);
|
|
86
|
-
c(this, L);
|
|
87
|
-
c(this, T);
|
|
88
|
-
c(this, W);
|
|
89
|
-
c(this, $);
|
|
90
|
-
c(this, q);
|
|
91
|
-
c(this, z);
|
|
92
|
-
c(this, v);
|
|
93
|
-
c(this, A);
|
|
94
|
-
c(this, I);
|
|
95
|
-
c(this, k);
|
|
96
|
-
c(this, M);
|
|
97
|
-
c(this, J);
|
|
98
|
-
c(this, D);
|
|
99
|
-
c(this, N);
|
|
100
|
-
c(this, x);
|
|
101
|
-
c(this, H);
|
|
102
|
-
c(this, F);
|
|
103
|
-
c(this, o, null);
|
|
104
|
-
c(this, E, /* @__PURE__ */ new Set());
|
|
105
|
-
c(this, l, /* @__PURE__ */ new Set());
|
|
106
|
-
c(this, w, void 0);
|
|
107
|
-
c(this, d, void 0);
|
|
108
|
-
c(this, m, void 0);
|
|
109
|
-
c(this, V, () => {
|
|
110
|
-
i(this, E).forEach((e) => {
|
|
111
|
-
e();
|
|
112
|
-
}), i(this, E).clear();
|
|
113
|
-
});
|
|
114
|
-
c(this, U, (e) => {
|
|
115
|
-
i(this, l).forEach((t) => {
|
|
116
|
-
t(e);
|
|
117
|
-
}), i(this, l).clear(), a(this, M, se).call(this);
|
|
118
|
-
});
|
|
119
|
-
if (fe) {
|
|
120
|
-
const t = e[0], s = e[1];
|
|
121
|
-
p(this, o, a(this, R, me).call(this, t, s == null ? void 0 : s.forceSvg)), a(this, G, ge).call(this, s);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
get node() {
|
|
125
|
-
return i(this, o);
|
|
126
|
-
}
|
|
127
|
-
set node(e) {
|
|
128
|
-
var t;
|
|
129
|
-
a(this, M, se).call(this), p(this, o, e), (t = i(this, w)) == null || t.call(this), i(this, o) instanceof Element && p(this, d, [
|
|
130
|
-
...i(this, o).querySelectorAll("store-root")
|
|
131
|
-
]), a(this, k, te).call(this), a(this, L, _).call(this);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
o = new WeakMap(), E = new WeakMap(), l = new WeakMap(), w = new WeakMap(), d = new WeakMap(), m = new WeakMap(), R = new WeakSet(), me = function(e, t) {
|
|
135
|
-
let s = null;
|
|
136
|
-
if (e instanceof Node)
|
|
137
|
-
s = e;
|
|
138
|
-
else if (typeof e == "string")
|
|
139
|
-
if (!e.includes("<") && e.includes("-"))
|
|
140
|
-
s = new (customElements.get(e))();
|
|
141
|
-
else if (e.includes("<")) {
|
|
142
|
-
const n = document.createElement("div");
|
|
143
|
-
n.innerHTML = e, s = n.firstElementChild;
|
|
144
|
-
} else
|
|
145
|
-
Te.has(e) || t ? s = document.createElementNS(
|
|
146
|
-
"http://www.w3.org/2000/svg",
|
|
147
|
-
e
|
|
148
|
-
) : s = document.createElement(e);
|
|
149
|
-
else
|
|
150
|
-
s = document.createElement("div");
|
|
151
|
-
return s;
|
|
152
|
-
}, B = new WeakSet(), ue = function(e) {
|
|
153
|
-
return e instanceof HTMLElement || e instanceof SVGElement;
|
|
154
|
-
}, G = new WeakSet(), ge = function(e) {
|
|
155
|
-
if (!e)
|
|
156
|
-
return;
|
|
157
|
-
const t = a(this, B, ue).call(this, i(this, o)), s = e.ref;
|
|
158
|
-
delete e.ref, e != null && e.onConnect && (i(this, E).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (i(this, l).add(e.onDisconnect), delete e.onDisconnect);
|
|
159
|
-
let n, r;
|
|
160
|
-
for (const h in e) {
|
|
161
|
-
const u = e[h];
|
|
162
|
-
h === "class" && t ? a(this, T, O).call(this, u) : h === "style" && t ? a(this, q, Ce).call(this, u) : h === "lightChildren" ? a(this, N, P).call(this, i(this, o), u) : h === "children" ? a(this, N, P).call(this, i(this, o) instanceof Element ? i(this, o).shadowRoot || i(this, o) : i(this, o), u) : h.startsWith("on") ? (r || (r = {}), r[h] = u) : (n || (n = {}), n[h] = u);
|
|
163
|
-
}
|
|
164
|
-
a(this, J, Se).call(this, n), a(this, I, be).call(this, r), s && (typeof s == "function" ? s(i(this, o)) : s.current = i(this, o)), a(this, L, _).call(this);
|
|
165
|
-
}, L = new WeakSet(), _ = function() {
|
|
166
|
-
if (fe && (i(this, l).size || i(this, E).size)) {
|
|
167
|
-
const e = i(this, o) instanceof DocumentFragment ? i(this, o).firstChild : i(this, o);
|
|
168
|
-
p(this, w, Le.subscribe(
|
|
169
|
-
e,
|
|
170
|
-
{
|
|
171
|
-
connectCallback: i(this, V),
|
|
172
|
-
disconnectCallback: i(this, U),
|
|
173
|
-
unsubscribeAfterDisconnect: !0,
|
|
174
|
-
maxWaitSec: 20
|
|
175
|
-
}
|
|
176
|
-
));
|
|
177
|
-
}
|
|
178
|
-
}, T = new WeakSet(), O = function(e) {
|
|
179
|
-
if (e) {
|
|
180
|
-
if (typeof e == "string")
|
|
181
|
-
i(this, o).classList.add(e);
|
|
182
|
-
else if (Array.isArray(e))
|
|
183
|
-
e.forEach((t) => {
|
|
184
|
-
a(this, T, O).call(this, t);
|
|
185
|
-
});
|
|
186
|
-
else if (typeof e == "object")
|
|
187
|
-
if (e instanceof C)
|
|
188
|
-
a(this, W, Ee).call(this, e);
|
|
189
|
-
else
|
|
190
|
-
for (const t in e) {
|
|
191
|
-
const s = e[t];
|
|
192
|
-
s instanceof C ? a(this, $, pe).call(this, t, s) : s ? i(this, o).classList.add(t) : i(this, o).classList.remove(t);
|
|
193
|
-
}
|
|
194
|
-
} else
|
|
195
|
-
return;
|
|
196
|
-
}, W = new WeakSet(), Ee = function(e) {
|
|
197
|
-
i(this, l).add(
|
|
198
|
-
e.subscribe(({ current: t, previous: s }) => {
|
|
199
|
-
s && [s].flat().forEach((n) => {
|
|
200
|
-
n && i(this, o).classList.remove(n);
|
|
201
|
-
}), t && [t].flat().forEach((n) => {
|
|
202
|
-
n && i(this, o).classList.add(n);
|
|
203
|
-
});
|
|
204
|
-
})
|
|
205
|
-
);
|
|
206
|
-
}, $ = new WeakSet(), pe = function(e, t) {
|
|
207
|
-
i(this, l).add(
|
|
208
|
-
t.subscribe(({ current: s }) => {
|
|
209
|
-
s ? i(this, o).classList.add(e) : i(this, o).classList.remove(e);
|
|
210
|
-
})
|
|
211
|
-
);
|
|
212
|
-
}, q = new WeakSet(), Ce = function(e) {
|
|
213
|
-
if (!e)
|
|
214
|
-
return;
|
|
215
|
-
i(this, o).tagName === "style" || i(this, o).tagName === "STYLE" ? a(this, v, j).call(this, e) : a(this, z, ye).call(this, e);
|
|
216
|
-
}, z = new WeakSet(), ye = function(e) {
|
|
217
|
-
for (const t in e) {
|
|
218
|
-
const s = t, n = e[s];
|
|
219
|
-
n instanceof C ? i(this, l).add(
|
|
220
|
-
n.subscribe(({ current: r }) => {
|
|
221
|
-
a(this, A, ee).call(this, s, r);
|
|
222
|
-
})
|
|
223
|
-
) : a(this, A, ee).call(this, s, n);
|
|
224
|
-
}
|
|
225
|
-
}, v = new WeakSet(), j = function(e) {
|
|
226
|
-
for (const t in e) {
|
|
227
|
-
const s = e[t];
|
|
228
|
-
if (typeof s == "object" && !(s instanceof C))
|
|
229
|
-
i(this, o).appendChild(
|
|
230
|
-
document.createTextNode(`${t} {`)
|
|
231
|
-
), a(this, v, j).call(this, s), i(this, o).appendChild(document.createTextNode("}"));
|
|
232
|
-
else if (s instanceof C) {
|
|
233
|
-
const n = document.createTextNode("");
|
|
234
|
-
i(this, l).add(
|
|
235
|
-
s.subscribe((r) => {
|
|
236
|
-
r.current ? n.nodeValue = `${he(t)}: ${r.current};` : n.nodeValue = "";
|
|
237
|
-
})
|
|
238
|
-
), i(this, o).appendChild(n);
|
|
239
|
-
} else
|
|
240
|
-
i(this, o).appendChild(
|
|
241
|
-
document.createTextNode(`${he(t)}: ${s};`)
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
}, A = new WeakSet(), ee = function(e, t) {
|
|
245
|
-
e.includes("--") ? t ? i(this, o).style.setProperty(e, t) : i(this, o).style.removeProperty(e) : t ? i(this, o).style[e] = t : i(this, o).style[e] = "";
|
|
246
|
-
}, I = new WeakSet(), be = function(e) {
|
|
247
|
-
if (e) {
|
|
248
|
-
i(this, m) || p(this, m, []);
|
|
249
|
-
for (const t in e) {
|
|
250
|
-
const s = t, n = we(
|
|
251
|
-
s.split("on").slice(1).join("on")
|
|
252
|
-
), r = e[s];
|
|
253
|
-
typeof r == "object" ? i(this, m).push({
|
|
254
|
-
name: n,
|
|
255
|
-
callback: r.callback,
|
|
256
|
-
options: r.options
|
|
257
|
-
}) : typeof r == "function" && i(this, m).push({
|
|
258
|
-
name: n,
|
|
259
|
-
callback: r
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
a(this, k, te).call(this);
|
|
263
|
-
}
|
|
264
|
-
}, k = new WeakSet(), te = function() {
|
|
265
|
-
var e;
|
|
266
|
-
(e = i(this, m)) == null || e.forEach((t) => {
|
|
267
|
-
i(this, o).addEventListener(
|
|
268
|
-
t.name,
|
|
269
|
-
t.callback,
|
|
270
|
-
t.options
|
|
271
|
-
);
|
|
272
|
-
});
|
|
273
|
-
}, M = new WeakSet(), se = function() {
|
|
274
|
-
var e;
|
|
275
|
-
(e = i(this, m)) == null || e.forEach((t) => {
|
|
276
|
-
i(this, o).removeEventListener(
|
|
277
|
-
t.name,
|
|
278
|
-
t.callback,
|
|
279
|
-
t.options
|
|
280
|
-
);
|
|
281
|
-
});
|
|
282
|
-
}, J = new WeakSet(), Se = function(e) {
|
|
283
|
-
for (const t in e) {
|
|
284
|
-
const s = e[t];
|
|
285
|
-
s instanceof C ? i(this, l).add(
|
|
286
|
-
s.subscribe(({ current: n }) => {
|
|
287
|
-
a(this, D, ie).call(this, t, n);
|
|
288
|
-
})
|
|
289
|
-
) : a(this, D, ie).call(this, t, s);
|
|
290
|
-
}
|
|
291
|
-
}, D = new WeakSet(), ie = function(e, t) {
|
|
292
|
-
var n, r;
|
|
293
|
-
const s = i(this, o);
|
|
294
|
-
e in s && !((r = (n = s.constructor) == null ? void 0 : n.observedAttributes) != null && r.includes(e)) ? t != null && (s[e] = t.toString()) : t != null && s.setAttribute(e, t.toString());
|
|
295
|
-
}, N = new WeakSet(), P = function(e, t) {
|
|
296
|
-
t && (t = [t].flat(), t.forEach((s) => {
|
|
297
|
-
if (s instanceof C) {
|
|
298
|
-
const n = document.createElement("div");
|
|
299
|
-
n.style.display = "contents", e.appendChild(n), i(this, d) || p(this, d, []);
|
|
300
|
-
const r = i(this, d).length;
|
|
301
|
-
n.setAttribute("store-root", ""), i(this, d).push(n), i(this, l).add(
|
|
302
|
-
s.subscribe(({ current: h, previous: u }) => {
|
|
303
|
-
const y = i(this, d)[r];
|
|
304
|
-
y.dispatchEvent(
|
|
305
|
-
new CustomEvent("beforeChildrenChange", {
|
|
306
|
-
bubbles: !0,
|
|
307
|
-
composed: !0
|
|
308
|
-
})
|
|
309
|
-
);
|
|
310
|
-
const K = Array.from(y.childNodes), ce = [h].flat(), Ne = [u].flat(), re = [], Q = [];
|
|
311
|
-
Ne.forEach((g, b) => {
|
|
312
|
-
!ce.includes(g) && K[b] ? re.push(K[b]) : Q.push(g);
|
|
313
|
-
}), ce.forEach((g, b) => {
|
|
314
|
-
if (Q[b]) {
|
|
315
|
-
if (g !== Q[b]) {
|
|
316
|
-
const S = a(this, H, oe).call(this, g), X = K[b];
|
|
317
|
-
S instanceof Node ? X.isEqualNode(S) || y.replaceChild(S, X) : y.removeChild(X);
|
|
318
|
-
}
|
|
319
|
-
} else {
|
|
320
|
-
const S = a(this, H, oe).call(this, g);
|
|
321
|
-
S instanceof Node && n.appendChild(S);
|
|
322
|
-
}
|
|
323
|
-
}), re.forEach((g) => {
|
|
324
|
-
y.removeChild(g);
|
|
325
|
-
}), y.dispatchEvent(
|
|
326
|
-
new CustomEvent("afterChildrenChange", {
|
|
327
|
-
bubbles: !0,
|
|
328
|
-
composed: !0
|
|
329
|
-
})
|
|
330
|
-
);
|
|
331
|
-
})
|
|
332
|
-
);
|
|
333
|
-
} else if (s instanceof Y)
|
|
334
|
-
a(this, x, ne).call(this, e, s.node);
|
|
335
|
-
else if (s instanceof Function)
|
|
336
|
-
a(this, N, P).call(this, e, le(s) ? new s() : s());
|
|
337
|
-
else {
|
|
338
|
-
const n = a(this, F, ae).call(this, s);
|
|
339
|
-
n instanceof Node && a(this, x, ne).call(this, e, n);
|
|
340
|
-
}
|
|
341
|
-
}));
|
|
342
|
-
}, x = new WeakSet(), ne = function(e, t) {
|
|
343
|
-
!(e instanceof ShadowRoot) && t instanceof HTMLElement && t.tagName === "STYLE" ? (i(this, E).add(() => {
|
|
344
|
-
[...document.head.querySelectorAll("style")].find((n) => n.outerHTML === t.outerHTML) || document.head.appendChild(t);
|
|
345
|
-
}), i(this, l).add(() => {
|
|
346
|
-
t.remove();
|
|
347
|
-
})) : e.appendChild(t);
|
|
348
|
-
}, H = new WeakSet(), oe = function(e) {
|
|
349
|
-
return e instanceof Y ? e.node : typeof e == "function" ? le(e) ? new e() : e() : a(this, F, ae).call(this, e);
|
|
350
|
-
}, F = new WeakSet(), ae = function(e) {
|
|
351
|
-
if (e instanceof Node)
|
|
352
|
-
return e;
|
|
353
|
-
if (e != null) {
|
|
354
|
-
const t = String(e);
|
|
355
|
-
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
356
|
-
const s = document.createElement("div");
|
|
357
|
-
return s.innerHTML = t, s.firstElementChild;
|
|
358
|
-
} else
|
|
359
|
-
return document.createTextNode(t);
|
|
360
|
-
} else
|
|
361
|
-
return;
|
|
362
|
-
}, V = new WeakMap(), U = new WeakMap();
|
|
363
|
-
let de = Y;
|
|
364
|
-
export {
|
|
365
|
-
de as E
|
|
366
|
-
};
|