aptechka 0.12.0 → 0.13.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/{client-lib/Animation-uimN7sdT.js → lib/Animation-DF5jPON_.js} +23 -28
- package/lib/Animation-seVC6-fS.cjs +1 -0
- package/lib/Composed-ChlKoJEp.cjs +1 -0
- package/lib/Composed-CoX1ImVk.js +31 -0
- package/lib/Damped-BDO-F13V.js +53 -0
- package/lib/Damped-C7WAqKPh.cjs +1 -0
- package/lib/Derived-B-2UXnVE.cjs +1 -0
- package/lib/Derived-CDGpSMKu.js +56 -0
- package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B8-EMNnd.js} +26 -30
- package/lib/SourceManager-TzU9Rw08.cjs +1 -0
- package/lib/Store-BnA-dJsE.cjs +1 -0
- package/{client-lib/Store-Qr3SNOSf.js → lib/Store-DGtldlBH.js} +29 -34
- package/lib/Tweened-CHhmfvzo.js +44 -0
- package/lib/Tweened-DSXD0I0k.cjs +1 -0
- package/lib/Viewport-BmLTk_6k.cjs +1 -0
- package/lib/Viewport-DTlImj28.js +123 -0
- package/lib/accordion/index.cjs +1 -0
- package/lib/accordion/index.js +167 -0
- package/{client-lib → lib}/animation/index.cjs +1 -1
- package/lib/animation/index.js +8 -0
- package/lib/attribute/index.cjs +1 -0
- package/{client-lib → lib}/attribute/index.js +15 -20
- package/lib/canvas/index.cjs +1 -0
- package/lib/canvas/index.js +111 -0
- package/lib/checkbox/index.cjs +1 -0
- package/{client-lib → lib}/checkbox/index.js +20 -25
- package/lib/class-linked-status/index.cjs +1 -0
- package/lib/class-linked-status/index.js +45 -0
- package/lib/connector/index.cjs +1 -0
- package/{client-lib → lib}/connector/index.js +14 -18
- package/lib/controls/index.cjs +1 -0
- package/lib/controls/index.js +207 -0
- package/{client-lib/createStylesheet-BqjaCUhm.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
- package/{client-lib/createStylesheet-DNG2b5X4.js → lib/createStylesheet-DO5t5q-m.js} +1 -1
- package/lib/css-property/index.cjs +1 -0
- package/lib/css-property/index.js +58 -0
- package/lib/css-unit-parser/index.cjs +8 -0
- package/lib/css-unit-parser/index.js +31 -0
- package/{client-lib → lib}/dev/index.cjs +1 -1
- package/{client-lib → lib}/dev/index.js +1 -1
- package/{client-lib → lib}/device/index.cjs +1 -1
- package/{client-lib → lib}/device/index.js +1 -1
- package/{client-lib → lib}/element-constructor/index.cjs +1 -1
- package/{client-lib → lib}/element-constructor/index.js +2 -2
- package/lib/element-resizer/index.cjs +1 -0
- package/{client-lib → lib}/element-resizer/index.js +12 -16
- package/lib/en3/helpers/index.cjs +1 -0
- package/{client-lib → lib}/en3/helpers/index.js +612 -646
- package/{client-lib → lib}/en3/index.cjs +1 -1
- package/lib/en3/index.js +6 -0
- package/{client-lib → lib}/en3/libs/index.js +1 -2
- package/lib/en3/loaders/index.cjs +1 -0
- package/{client-lib → lib}/en3/loaders/index.js +152 -167
- package/lib/en3/misc/index.cjs +10 -0
- package/{client-lib → lib}/en3/misc/index.js +18 -23
- package/{client-lib → lib}/en3/utils/index.cjs +1 -1
- package/{client-lib → lib}/en3/utils/index.js +2 -2
- package/lib/en3-C1fLmsjs.cjs +8 -0
- package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
- package/{client-lib → lib}/image/index.cjs +1 -1
- package/{client-lib → lib}/image/index.js +1 -1
- package/{client-lib/index-BuvwT3dS.js → lib/index-BhbT9PrL.js} +35 -40
- package/lib/index-BpsQqM-8.cjs +9 -0
- package/lib/intersector/index.cjs +1 -0
- package/{client-lib → lib}/intersector/index.js +12 -16
- package/lib/ladder/index.cjs +1 -0
- package/{client-lib → lib}/ladder/index.js +20 -25
- package/lib/layout-box/index.cjs +1 -0
- package/lib/layout-box/index.js +318 -0
- package/lib/loading/index.cjs +1 -0
- package/{client-lib → lib}/loading/index.js +17 -21
- package/lib/media/index.cjs +1 -0
- package/lib/media/index.js +26 -0
- package/lib/modal/index.cjs +1 -0
- package/{client-lib → lib}/modal/index.js +22 -26
- package/lib/morph/index.cjs +1 -0
- package/lib/morph/index.js +225 -0
- package/lib/notifier/index.cjs +1 -0
- package/lib/notifier/index.js +36 -0
- package/lib/pointer/index.cjs +1 -0
- package/{client-lib → lib}/pointer/index.js +37 -41
- package/lib/popover/index.cjs +1 -0
- package/{client-lib → lib}/popover/index.js +71 -79
- package/lib/router/index.cjs +1 -0
- package/{client-lib → lib}/router/index.js +54 -60
- package/lib/scroll/index.cjs +1 -0
- package/lib/scroll/index.js +1131 -0
- package/lib/scroll-entries/index.cjs +1 -0
- package/{client-lib → lib}/scroll-entries/index.js +11 -15
- package/{client-lib → lib}/select/index.cjs +1 -1
- package/{client-lib → lib}/select/index.js +1 -1
- package/lib/sequence/index.cjs +1 -0
- package/{client-lib → lib}/sequence/index.js +26 -30
- package/lib/slicer/index.cjs +11 -0
- package/{client-lib → lib}/slicer/index.js +27 -31
- package/lib/source/index.cjs +5 -0
- package/{client-lib → lib}/source/index.js +19 -24
- package/lib/store/index.cjs +1 -0
- package/{client-lib → lib}/store/index.js +29 -33
- package/{client-lib → lib}/svg-path-data/index.js +3 -6
- package/lib/tags-4AoxVUe3.js +833 -0
- package/lib/tags-v-OSVkiQ.cjs +1 -0
- package/{client-lib → lib}/theme/index.cjs +1 -1
- package/{client-lib → lib}/theme/index.js +2 -2
- package/lib/ticker/index.cjs +1 -0
- package/lib/ticker/index.js +119 -0
- package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
- package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
- package/lib/tweaker/index.cjs +10 -0
- package/{client-lib → lib}/tweaker/index.js +271 -279
- package/{client-lib → lib}/utils/index.js +1 -2
- package/lib/video/index.cjs +1 -0
- package/{client-lib → lib}/video/index.js +13 -17
- package/lib/window-resizer/index.cjs +1 -0
- package/lib/window-resizer/index.js +42 -0
- package/package.json +351 -378
- package/client-lib/Animation-BInSRYNr.cjs +0 -1
- package/client-lib/Composed-Fa7owymK.js +0 -35
- package/client-lib/Composed-Iihn8fT4.cjs +0 -1
- package/client-lib/Damped-Da3EnNN4.cjs +0 -1
- package/client-lib/Damped-yrNXlkDE.js +0 -57
- package/client-lib/Derived-CNbsNMn_.cjs +0 -1
- package/client-lib/Derived-rInkx3e4.js +0 -60
- package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
- package/client-lib/Store-Cr3VaD9G.cjs +0 -1
- package/client-lib/Tweened-CjgvoOwL.js +0 -48
- package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
- package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
- package/client-lib/Viewport-Cgtq2I_K.js +0 -127
- package/client-lib/accordion/AccordionElement.d.ts +0 -30
- package/client-lib/accordion/index.cjs +0 -1
- package/client-lib/accordion/index.d.ts +0 -1
- package/client-lib/accordion/index.js +0 -176
- package/client-lib/animation/Animation.d.ts +0 -35
- package/client-lib/animation/Damped.d.ts +0 -19
- package/client-lib/animation/Tweened.d.ts +0 -15
- package/client-lib/animation/index.d.ts +0 -3
- package/client-lib/animation/index.js +0 -8
- package/client-lib/attribute/index.cjs +0 -1
- package/client-lib/attribute/index.d.ts +0 -15
- package/client-lib/canvas/index.cjs +0 -1
- package/client-lib/canvas/index.d.ts +0 -35
- package/client-lib/canvas/index.js +0 -119
- package/client-lib/checkbox/index.cjs +0 -1
- package/client-lib/checkbox/index.d.ts +0 -14
- package/client-lib/class-linked-status/index.cjs +0 -1
- package/client-lib/class-linked-status/index.d.ts +0 -12
- package/client-lib/class-linked-status/index.js +0 -49
- package/client-lib/connector/index.cjs +0 -1
- package/client-lib/connector/index.d.ts +0 -15
- package/client-lib/controls/AutoplayControls.d.ts +0 -17
- package/client-lib/controls/Controls.d.ts +0 -9
- package/client-lib/controls/DragControls.d.ts +0 -16
- package/client-lib/controls/KeyboardControls.d.ts +0 -14
- package/client-lib/controls/WheelControls.d.ts +0 -19
- package/client-lib/controls/index.cjs +0 -1
- package/client-lib/controls/index.d.ts +0 -5
- package/client-lib/controls/index.js +0 -213
- package/client-lib/counter/index.d.ts +0 -6
- package/client-lib/css-property/index.cjs +0 -1
- package/client-lib/css-property/index.d.ts +0 -17
- package/client-lib/css-property/index.js +0 -62
- package/client-lib/css-unit-parser/index.cjs +0 -8
- package/client-lib/css-unit-parser/index.d.ts +0 -6
- package/client-lib/css-unit-parser/index.js +0 -36
- package/client-lib/css-value-parser/index.d.ts +0 -6
- package/client-lib/dev/index.d.ts +0 -1
- package/client-lib/device/Device.d.ts +0 -19
- package/client-lib/device/Viewport.d.ts +0 -29
- package/client-lib/device/index.d.ts +0 -2
- package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
- package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
- package/client-lib/element-constructor/createTheme.d.ts +0 -13
- package/client-lib/element-constructor/index.d.ts +0 -4
- package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
- package/client-lib/element-constructor/tags.d.ts +0 -119
- package/client-lib/element-resizer/index.cjs +0 -1
- package/client-lib/element-resizer/index.d.ts +0 -10
- package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
- package/client-lib/en3/core/En3View.d.ts +0 -40
- package/client-lib/en3/core/en3.d.ts +0 -39
- package/client-lib/en3/core/en3Cache.d.ts +0 -4
- package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
- package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
- package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
- package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
- package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
- package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
- package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
- package/client-lib/en3/helpers/index.cjs +0 -1
- package/client-lib/en3/helpers/index.d.ts +0 -2
- package/client-lib/en3/index.d.ts +0 -3
- package/client-lib/en3/index.js +0 -6
- package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
- package/client-lib/en3/libs/index.d.ts +0 -1
- package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
- package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
- package/client-lib/en3/loaders/index.cjs +0 -1
- package/client-lib/en3/loaders/index.d.ts +0 -3
- package/client-lib/en3/loaders/loaders.d.ts +0 -13
- package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
- package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
- package/client-lib/en3/misc/index.cjs +0 -10
- package/client-lib/en3/misc/index.d.ts +0 -2
- package/client-lib/en3/objects/En3Clip.d.ts +0 -15
- package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
- package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
- package/client-lib/en3/objects/En3Image.d.ts +0 -8
- package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
- package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
- package/client-lib/en3/objects/En3Video.d.ts +0 -13
- package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
- package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
- package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
- package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
- package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
- package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
- package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
- package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
- package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
- package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
- package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
- package/client-lib/en3/objects/fluid/index.d.ts +0 -3
- package/client-lib/en3/objects/index.d.ts +0 -7
- package/client-lib/en3/utils/coverTexture.d.ts +0 -7
- package/client-lib/en3/utils/dispose.d.ts +0 -3
- package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
- package/client-lib/en3/utils/index.d.ts +0 -5
- package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
- package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
- package/client-lib/en3-CBBYE8rb.cjs +0 -8
- package/client-lib/image/index.d.ts +0 -11
- package/client-lib/index-Ctct2GyP.cjs +0 -9
- package/client-lib/intersector/index.cjs +0 -1
- package/client-lib/intersector/index.d.ts +0 -10
- package/client-lib/ladder/index.cjs +0 -1
- package/client-lib/ladder/index.d.ts +0 -24
- package/client-lib/layout-box/index.cjs +0 -1
- package/client-lib/layout-box/index.d.ts +0 -96
- package/client-lib/layout-box/index.js +0 -326
- package/client-lib/libs/path-data-polyfill.d.ts +0 -1
- package/client-lib/loading/index.cjs +0 -1
- package/client-lib/loading/index.d.ts +0 -39
- package/client-lib/media/index.cjs +0 -1
- package/client-lib/media/index.d.ts +0 -12
- package/client-lib/media/index.js +0 -30
- package/client-lib/modal/ModalElement.d.ts +0 -13
- package/client-lib/modal/index.cjs +0 -1
- package/client-lib/modal/index.d.ts +0 -1
- package/client-lib/morph/Link.d.ts +0 -7
- package/client-lib/morph/Morph.d.ts +0 -37
- package/client-lib/morph/index.cjs +0 -1
- package/client-lib/morph/index.d.ts +0 -1
- package/client-lib/morph/index.js +0 -235
- package/client-lib/notifier/index.cjs +0 -1
- package/client-lib/notifier/index.d.ts +0 -8
- package/client-lib/notifier/index.js +0 -40
- package/client-lib/order/index.d.ts +0 -22
- package/client-lib/pointer/Pointer.d.ts +0 -23
- package/client-lib/pointer/PointerElement.d.ts +0 -14
- package/client-lib/pointer/index.cjs +0 -1
- package/client-lib/pointer/index.d.ts +0 -2
- package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
- package/client-lib/popover/PopoverElement.d.ts +0 -26
- package/client-lib/popover/index.cjs +0 -1
- package/client-lib/popover/index.d.ts +0 -2
- package/client-lib/router/Link.d.ts +0 -7
- package/client-lib/router/Route.d.ts +0 -21
- package/client-lib/router/Router.d.ts +0 -41
- package/client-lib/router/index.cjs +0 -1
- package/client-lib/router/index.d.ts +0 -2
- package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
- package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
- package/client-lib/scroll/ScrollElement.d.ts +0 -82
- package/client-lib/scroll/ScrollSection.d.ts +0 -23
- package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
- package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
- package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
- package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
- package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
- package/client-lib/scroll/index.cjs +0 -1
- package/client-lib/scroll/index.d.ts +0 -6
- package/client-lib/scroll/index.js +0 -1154
- package/client-lib/scroll-entries/index.cjs +0 -1
- package/client-lib/scroll-entries/index.d.ts +0 -21
- package/client-lib/select/SelectElement.d.ts +0 -24
- package/client-lib/select/SelectHeadElement.d.ts +0 -13
- package/client-lib/select/SelectOptionElement.d.ts +0 -14
- package/client-lib/select/SelectUserElement.d.ts +0 -7
- package/client-lib/select/index.d.ts +0 -4
- package/client-lib/sequence/index.cjs +0 -1
- package/client-lib/sequence/index.d.ts +0 -21
- package/client-lib/slicer/DecoderElement.d.ts +0 -11
- package/client-lib/slicer/Letter.d.ts +0 -11
- package/client-lib/slicer/SlicerElement.d.ts +0 -21
- package/client-lib/slicer/Word.d.ts +0 -17
- package/client-lib/slicer/index.cjs +0 -11
- package/client-lib/slicer/index.d.ts +0 -4
- package/client-lib/source/SourceClass.d.ts +0 -11
- package/client-lib/source/SourceElement.d.ts +0 -25
- package/client-lib/source/SourceManager.d.ts +0 -14
- package/client-lib/source/SourceSet.d.ts +0 -9
- package/client-lib/source/index.cjs +0 -5
- package/client-lib/source/index.d.ts +0 -4
- package/client-lib/store/Cached.d.ts +0 -18
- package/client-lib/store/Composed.d.ts +0 -8
- package/client-lib/store/Derived.d.ts +0 -13
- package/client-lib/store/DerivedArray.d.ts +0 -13
- package/client-lib/store/Resource.d.ts +0 -12
- package/client-lib/store/Store.d.ts +0 -76
- package/client-lib/store/StoreRegistry.d.ts +0 -23
- package/client-lib/store/index.cjs +0 -1
- package/client-lib/store/index.d.ts +0 -7
- package/client-lib/svg-path-data/index.d.ts +0 -15
- package/client-lib/tags-B0do5eeb.cjs +0 -1
- package/client-lib/tags-wG5k157g.js +0 -860
- package/client-lib/test/starting-style/index.d.ts +0 -1
- package/client-lib/theme/index.d.ts +0 -35
- package/client-lib/ticker/index.cjs +0 -1
- package/client-lib/ticker/index.d.ts +0 -22
- package/client-lib/ticker/index.js +0 -125
- package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerElement.d.ts +0 -18
- package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
- package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
- package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
- package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
- package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
- package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
- package/client-lib/tweaker/index.cjs +0 -10
- package/client-lib/tweaker/index.d.ts +0 -1
- package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
- package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
- package/client-lib/utils/array.d.ts +0 -2
- package/client-lib/utils/attributes.d.ts +0 -2
- package/client-lib/utils/browser.d.ts +0 -1
- package/client-lib/utils/bytes.d.ts +0 -1
- package/client-lib/utils/canvas.d.ts +0 -7
- package/client-lib/utils/collisions.d.ts +0 -4
- package/client-lib/utils/coordinates.d.ts +0 -14
- package/client-lib/utils/cssom.d.ts +0 -5
- package/client-lib/utils/decoding.d.ts +0 -2
- package/client-lib/utils/dom.d.ts +0 -5
- package/client-lib/utils/easings.d.ts +0 -17
- package/client-lib/utils/events.d.ts +0 -8
- package/client-lib/utils/file.d.ts +0 -1
- package/client-lib/utils/function.d.ts +0 -2
- package/client-lib/utils/gestures.d.ts +0 -1
- package/client-lib/utils/index.d.ts +0 -26
- package/client-lib/utils/layout.d.ts +0 -3
- package/client-lib/utils/math.d.ts +0 -12
- package/client-lib/utils/number.d.ts +0 -3
- package/client-lib/utils/object.d.ts +0 -9
- package/client-lib/utils/polyfills.d.ts +0 -1
- package/client-lib/utils/promises.d.ts +0 -1
- package/client-lib/utils/string.d.ts +0 -8
- package/client-lib/utils/style.d.ts +0 -2
- package/client-lib/utils/ts-shape.d.ts +0 -20
- package/client-lib/utils/ts-utility.d.ts +0 -26
- package/client-lib/utils/url.d.ts +0 -9
- package/client-lib/video/index.cjs +0 -1
- package/client-lib/video/index.d.ts +0 -22
- package/client-lib/window-resizer/index.cjs +0 -1
- package/client-lib/window-resizer/index.d.ts +0 -10
- package/client-lib/window-resizer/index.js +0 -46
- package/server-lib/optimizer/FFmpeg.d.ts +0 -10
- package/server-lib/optimizer/generateFavicon.d.ts +0 -4
- package/server-lib/optimizer/generateSequence.d.ts +0 -3
- package/server-lib/optimizer/generateSprite.d.ts +0 -4
- package/server-lib/optimizer/index.d.ts +0 -10
- package/server-lib/optimizer/index.js +0 -404
- package/server-lib/optimizer/inputFiles.d.ts +0 -26
- package/server-lib/optimizer/optimize.d.ts +0 -13
- package/server-lib/optimizer/optimizeImage.d.ts +0 -4
- package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
- package/server-lib/optimizer/optimizer.d.ts +0 -5
- package/server-lib/optimizer/types.d.ts +0 -51
- package/server-lib/optimizer/utils.d.ts +0 -1
- package/server-lib/utils/buffer.d.ts +0 -1
- package/server-lib/utils/fs.d.ts +0 -11
- package/server-lib/utils/index.d.ts +0 -5
- package/server-lib/utils/index.js +0 -65
- package/server-lib/utils/math.d.ts +0 -1
- package/server-lib/utils/path.d.ts +0 -3
- package/server-lib/utils/types.d.ts +0 -8
- /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
- /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
- /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
- /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
- /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
- /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
- /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
- /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
- /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
- /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
- /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
- /package/{client-lib → lib}/css-value-parser/index.js +0 -0
- /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
- /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
- /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
- /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
- /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
- /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
- /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
- /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
- /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
- /package/{client-lib → lib}/function-C10DGppn.js +0 -0
- /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
- /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
- /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
- /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
- /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
- /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
- /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
- /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
- /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
- /package/{client-lib → lib}/order/index.cjs +0 -0
- /package/{client-lib → lib}/order/index.js +0 -0
- /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
- /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
- /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
- /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
- /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
- /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
- /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
- /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
- /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
- /package/{client-lib → lib}/utils/index.cjs +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var ae=Object.defineProperty,fe=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var Y=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable;var X=e=>{throw TypeError(e)};var Q=(e,t,i)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,D=(e,t)=>{for(var i in t||(t={}))de.call(t,i)&&Q(e,i,t[i]);if(Y)for(var i of Y(t))he.call(t,i)&&Q(e,i,t[i]);return e},Z=(e,t)=>fe(e,le(t));var F=(e,t,i)=>t.has(e)||X("Cannot "+i);var o=(e,t,i)=>(F(e,t,"read from private field"),i?i.call(e):t.get(e)),w=(e,t,i)=>t.has(e)?X("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),y=(e,t,i,r)=>(F(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i),a=(e,t,i)=>(F(e,t,"access private method"),i);const S=require("./Store-BnA-dJsE.cjs"),_=require("./browser-CpzFX2xg.cjs"),O=require("./object-CCiXnER2.cjs"),H=require("./string-DhgS_iFl.cjs"),we=require("./connector/index.cjs"),me=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","use"]);var c,m,d,v,p,b,s,j,ee,te,P,B,ne,ie,re,oe,R,$,se,G,V,ue,W,k,z,J,I,L,T;const A=class A{constructor(...t){w(this,s);w(this,c,null);w(this,m,new Set);w(this,d,new Set);w(this,v);w(this,p);w(this,b);w(this,L,t=>{o(this,m).forEach(i=>{i(t)}),o(this,m).clear()});w(this,T,(t,i)=>{o(this,d).forEach(r=>{r(t,i)}),o(this,d).clear(),a(this,s,V).call(this)});if(_.isBrowser){const i=t[0],r=t[1];y(this,c,a(this,s,j).call(this,i,r==null?void 0:r.forceSvg)),a(this,s,te).call(this,r)}}get node(){return o(this,c)}set node(t){var i;a(this,s,V).call(this),y(this,c,t),(i=o(this,v))==null||i.call(this),o(this,c)instanceof Element&&y(this,p,[...o(this,c).querySelectorAll("store-root")]),a(this,s,G).call(this),a(this,s,P).call(this)}};c=new WeakMap,m=new WeakMap,d=new WeakMap,v=new WeakMap,p=new WeakMap,b=new WeakMap,s=new WeakSet,j=function(t,i){let r=null;if(t instanceof Node)r=t;else if(typeof t=="string")if(!t.includes("<")&&t.includes("-"))r=new(customElements.get(t));else if(t.includes("<")){const u=document.createElement("div");u.innerHTML=t,r=u.firstElementChild}else me.has(t)||i?r=document.createElementNS("http://www.w3.org/2000/svg",t):r=document.createElement(t);else r=document.createElement("div");return r},ee=function(t){return t instanceof HTMLElement||t instanceof SVGElement},te=function(t){if(!t)return;const i=a(this,s,ee).call(this,o(this,c)),r=t.ref;delete t.ref,t!=null&&t.onConnect&&(o(this,m).add(t.onConnect),delete t.onConnect),t!=null&&t.onDisconnect&&(o(this,d).add(t.onDisconnect),delete t.onDisconnect);let u,f;for(const l in t){const h=t[l];l==="class"&&i?a(this,s,B).call(this,h):l==="style"&&i?a(this,s,re).call(this,h):l==="lightChildren"?a(this,s,k).call(this,o(this,c),h):l==="children"?a(this,s,k).call(this,o(this,c)instanceof Element?o(this,c).shadowRoot||o(this,c):o(this,c),h):l==="connectedClass"?o(this,m).add(()=>{requestAnimationFrame(()=>{o(this,c).classList.add(typeof h=="boolean"?"connected":h)})}):l.startsWith("on")?(f||(f={}),f[l]=h):(u||(u={}),u[l]=h)}a(this,s,ue).call(this,u),a(this,s,se).call(this,f),r&&(typeof r=="function"?r(o(this,c)):r.current=o(this,c)),a(this,s,P).call(this)},P=function(){if(_.isBrowser&&(o(this,d).size||o(this,m).size)){const t=o(this,c)instanceof DocumentFragment?o(this,c).firstChild:o(this,c);y(this,v,we.connector.subscribe(t,{connectCallback:o(this,L),disconnectCallback:o(this,T),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},B=function(t){if(t){if(typeof t=="string")o(this,c).classList.add(t);else if(Array.isArray(t))t.forEach(i=>{i&&a(this,s,B).call(this,i)});else if(typeof t=="object")if(t instanceof S.Store)a(this,s,ne).call(this,t);else for(const i in t){const r=t[i];r instanceof S.Store?a(this,s,ie).call(this,i,r):r?o(this,c).classList.add(i):o(this,c).classList.remove(i)}}else return},ne=function(t){o(this,d).add(t.subscribe(({current:i,previous:r})=>{r&&[r].flat().forEach(u=>{u&&o(this,c).classList.remove(u)}),i&&[i].flat().forEach(u=>{u&&o(this,c).classList.add(u)})}))},ie=function(t,i){o(this,d).add(i.subscribe(({current:r})=>{r?o(this,c).classList.add(t):o(this,c).classList.remove(t)}))},re=function(t){if(!t)return;o(this,c).tagName==="style"||o(this,c).tagName==="STYLE"?a(this,s,R).call(this,t):a(this,s,oe).call(this,t)},oe=function(t){for(const i in t){const r=i,u=t[r];u instanceof S.Store?o(this,d).add(u.subscribe(({current:f})=>{a(this,s,$).call(this,r,f)})):a(this,s,$).call(this,r,u)}},R=function(t){for(const i in t){const r=t[i];if(typeof r=="object"&&!(r instanceof S.Store))o(this,c).appendChild(document.createTextNode(`${i} {`)),a(this,s,R).call(this,r),o(this,c).appendChild(document.createTextNode("}"));else if(r instanceof S.Store){const u=document.createTextNode("");o(this,d).add(r.subscribe(f=>{f.current?u.nodeValue=`${H.camelToKebab(i)}: ${f.current};`:u.nodeValue=""})),o(this,c).appendChild(u)}else o(this,c).appendChild(document.createTextNode(`${H.camelToKebab(i)}: ${r};`))}},$=function(t,i){t.includes("--")?i?o(this,c).style.setProperty(t,i.toString()):o(this,c).style.removeProperty(t):i?o(this,c).style[t]=i.toString():o(this,c).style[t]=""},se=function(t){if(t){o(this,b)||y(this,b,[]);for(const i in t){const r=i,u=H.uncapitalize(r.split("on").slice(1).join("on")),f=t[r];typeof f=="object"?o(this,b).push({name:u,callback:f.callback,options:f.options}):typeof f=="function"&&o(this,b).push({name:u,callback:f})}a(this,s,G).call(this)}},G=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).addEventListener(i.name,i.callback,i.options)})},V=function(){var t;(t=o(this,b))==null||t.forEach(i=>{o(this,c).removeEventListener(i.name,i.callback,i.options)})},ue=function(t){for(const i in t){const r=t[i];r instanceof S.Store?o(this,d).add(r.subscribe(({current:u})=>{a(this,s,W).call(this,i,u)})):a(this,s,W).call(this,i,r)}},W=function(t,i){var u,f;const r=o(this,c);if(t in r&&!((f=(u=r.constructor)==null?void 0:u.observedAttributes)!=null&&f.includes(t)))i!=null&&(r[t]=i.toString());else if(i!=null){const l=i.toString();t.includes("xlink")?r.setAttributeNS("http://www.w3.org/1999/xlink",t,l):r.setAttribute(t,l)}},k=function(t,i){i&&(i=[i].flat(),i.forEach(r=>{if(r instanceof S.Store){const u=document.createElement("div");u.style.display="contents",t.appendChild(u),o(this,p)||y(this,p,[]);const f=o(this,p).length;u.setAttribute("store-root",""),o(this,p).push(u),o(this,d).add(r.subscribe(({current:l,previous:h})=>{const E=o(this,p)[f];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const x=Array.from(E.childNodes),K=Array.isArray(l)?l:[l],ce=Array.isArray(h)?h:[h],U=[],q=[];x.length&&ce.forEach((g,N)=>{K.includes(g)?q.push(g):U.push(x[N])}),K.forEach((g,N)=>{if(q[N]!=null){if(g!==q[N]){const C=a(this,s,J).call(this,g),M=x[N];C instanceof Node&&!M.isEqualNode(C)?E.replaceChild(C,M):E.removeChild(M)}}else{const C=a(this,s,J).call(this,g);C instanceof Node&&u.appendChild(C)}}),U.forEach(g=>{E.removeChild(g)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(r instanceof A)a(this,s,z).call(this,t,r.node);else if(r instanceof Function)a(this,s,k).call(this,t,O.isESClass(r)?new r:r());else{const u=a(this,s,I).call(this,r);u instanceof Node&&a(this,s,z).call(this,t,u)}}))},z=function(t,i){!(t instanceof ShadowRoot)&&i instanceof HTMLElement&&i.tagName==="STYLE"?(o(this,m).add(()=>{[...document.head.querySelectorAll("style")].find(u=>u.outerHTML===i.outerHTML)||document.head.appendChild(i)}),o(this,d).add(()=>{i.remove()})):t.appendChild(i)},J=function(t){return t instanceof A?t.node:typeof t=="function"?O.isESClass(t)?new t:t():a(this,s,I).call(this,t)},I=function(t){if(t instanceof Node)return t;if(t!=null){const i=String(t);if(i.trim().startsWith("<")&&i.trim().endsWith(">")){const r=document.createElement("div");return r.innerHTML=i,r.firstElementChild}else return document.createTextNode(i)}else return},L=new WeakMap,T=new WeakMap;let n=A;function pe(...e){return new n(...e)}function be(e){return new n("a",e)}function ge(e){return new n("abbr",e)}function ye(e){return new n("address",e)}function Se(e){return new n("area",e)}function Ee(e){return new n("article",e)}function Ce(e){return new n("aside",e)}function Ne(e){return new n("audio",e)}function ve(e){return new n("b",e)}function ke(e){return new n("base",e)}function Le(e){return new n("bdi",e)}function Te(e){return new n("bdo",e)}function Ae(e){return new n("blockquote",e)}function xe(e){return new n("body",e)}function qe(e){return new n("br",e)}function Me(e){return new n("button",e)}function De(e){return new n("canvas",e)}function Fe(e){return new n("caption",e)}function He(e){return new n("cite",e)}function Pe(e){return new n("code",e)}function Be(e){return new n("col",e)}function Re(e){return new n("colgroup",e)}function $e(e){return new n("data",e)}function Ge(e){return new n("datalist",e)}function Ve(e){return new n("dd",e)}function We(e){return new n("del",e)}function ze(e){return new n("details",e)}function Je(e){return new n("dfn",e)}function Ie(e){return new n("dialog",e)}function Ke(e){return new n("div",e)}function Ue(e){return new n("dl",e)}function Ye(e){return new n("dt",e)}function Qe(e){return new n("em",e)}function Xe(e){return new n("embed",e)}function Ze(e){return new n("fieldset",e)}function _e(e){return new n("figcaption",e)}function Oe(e){return new n("figure",e)}function je(e){return new n("footer",e)}function et(e){return new n("form",e)}function tt(e){return new n("h1",e)}function nt(e){return new n("h2",e)}function it(e){return new n("h3",e)}function rt(e){return new n("h4",e)}function ot(e){return new n("h5",e)}function st(e){return new n("h6",e)}function ut(e){return new n("head",e)}function ct(e){return new n("header",e)}function at(e){return new n("hgroup",e)}function ft(e){return new n("hr",e)}function lt(e){return new n("html",e)}function dt(e){return new n("i",e)}function ht(e){return new n("iframe",e)}function wt(e){return new n("img",e)}function mt(e){return new n("input",e)}function pt(e){return new n("ins",e)}function bt(e){return new n("kbd",e)}function gt(e){return new n("label",e)}function yt(e){return new n("legend",e)}function St(e){return new n("li",e)}function Et(e){return new n("link",e)}function Ct(e){return new n("main",e)}function Nt(e){return new n("map",e)}function vt(e){return new n("mark",e)}function kt(e){return new n("menu",e)}function Lt(e){return new n("meta",e)}function Tt(e){return new n("meter",e)}function At(e){return new n("nav",e)}function xt(e){return new n("noscript",e)}function qt(e){return new n("object",e)}function Mt(e){return new n("ol",e)}function Dt(e){return new n("optgroup",e)}function Ft(e){return new n("option",e)}function Ht(e){return new n("output",e)}function Pt(e){return new n("p",e)}function Bt(e){return new n("picture",e)}function Rt(e){return new n("pre",e)}function $t(e){return new n("progress",e)}function Gt(e){return new n("q",e)}function Vt(e){return new n("rp",e)}function Wt(e){return new n("rt",e)}function zt(e){return new n("ruby",e)}function Jt(e){return new n("s",e)}function It(e){return new n("samp",e)}function Kt(e){return new n("script",e)}function Ut(e){return new n("search",e)}function Yt(e){return new n("section",e)}function Qt(e){return new n("select",e)}function Xt(e){return new n("slot",e)}function Zt(e){return new n("small",e)}function _t(e){return new n("source",e)}function Ot(e){return new n("span",e)}function jt(e){return new n("strong",e)}function en(e){return new n("style",{style:e})}function tn(e){return new n("sub",e)}function nn(e){return new n("summary",e)}function rn(e){return new n("sup",e)}function on(e){return new n("table",e)}function sn(e){return new n("tbody",e)}function un(e){return new n("td",e)}function cn(e){return new n("template",e)}function an(e){return new n("textarea",e)}function fn(e){return new n("tfoot",e)}function ln(e){return new n("th",e)}function dn(e){return new n("thead",e)}function hn(e){return new n("time",e)}function wn(e){return new n("title",e)}function mn(e){return new n("tr",e)}function pn(e){return new n("track",e)}function bn(e){return new n("u",e)}function gn(e){return new n("ul",e)}function yn(e){return new n("var",e)}function Sn(e){return new n("video",e)}function En(e){return new n("wbr",e)}function Cn(e){return new n(document.createDocumentFragment(),e)}function Nn(e){return new n(document.createTextNode(""),e)}function vn(e){return new n("div",Z(D({},e),{style:D({display:"contents"},e==null?void 0:e.style)}))}exports.ElementConstructor=n;exports.a=be;exports.abbr=ge;exports.address=ye;exports.area=Se;exports.article=Ee;exports.aside=Ce;exports.audio=Ne;exports.b=ve;exports.base=ke;exports.bdi=Le;exports.bdo=Te;exports.blockquote=Ae;exports.body=xe;exports.br=qe;exports.button=Me;exports.canvas=De;exports.caption=Fe;exports.cite=He;exports.code=Pe;exports.col=Be;exports.colgroup=Re;exports.contents=vn;exports.data=$e;exports.datalist=Ge;exports.dd=Ve;exports.del=We;exports.details=ze;exports.dfn=Je;exports.dialog=Ie;exports.div=Ke;exports.dl=Ue;exports.dt=Ye;exports.element=pe;exports.em=Qe;exports.embed=Xe;exports.empty=Nn;exports.fieldset=Ze;exports.figcaption=_e;exports.figure=Oe;exports.footer=je;exports.form=et;exports.fragment=Cn;exports.h1=tt;exports.h2=nt;exports.h3=it;exports.h4=rt;exports.h5=ot;exports.h6=st;exports.head=ut;exports.header=ct;exports.hgroup=at;exports.hr=ft;exports.html=lt;exports.htmlVar=yn;exports.i=dt;exports.iframe=ht;exports.img=wt;exports.input=mt;exports.ins=pt;exports.kbd=bt;exports.label=gt;exports.legend=yt;exports.li=St;exports.link=Et;exports.main=Ct;exports.map=Nt;exports.mark=vt;exports.menu=kt;exports.meta=Lt;exports.meter=Tt;exports.nav=At;exports.noscript=xt;exports.object=qt;exports.ol=Mt;exports.optgroup=Dt;exports.option=Ft;exports.output=Ht;exports.p=Pt;exports.picture=Bt;exports.pre=Rt;exports.progress=$t;exports.q=Gt;exports.rp=Vt;exports.rt=Wt;exports.ruby=zt;exports.s=Jt;exports.samp=It;exports.script=Kt;exports.search=Ut;exports.section=Yt;exports.select=Qt;exports.slot=Xt;exports.small=Zt;exports.source=_t;exports.span=Ot;exports.strong=jt;exports.style=en;exports.sub=tn;exports.summary=nn;exports.sup=rn;exports.table=on;exports.tbody=sn;exports.td=un;exports.template=cn;exports.textarea=an;exports.tfoot=fn;exports.th=ln;exports.thead=dn;exports.time=hn;exports.title=wn;exports.tr=mn;exports.track=pn;exports.u=bn;exports.ul=gn;exports.video=Sn;exports.wbr=En;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-BnA-dJsE.cjs");const t=require("../browser-CpzFX2xg.cjs");require("../ticker/index.cjs");const o=require("../tags-v-OSVkiQ.cjs"),a=require("../createTheme-Cfaw9UmV.cjs"),r=a.createTheme({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(t.isBrowser){const e=o.style({":root":r.style}).node;e.setAttribute("data-permanent",""),document.head.appendChild(e)}exports.aptechkaTheme=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../Store-
|
|
1
|
+
import "../Store-DGtldlBH.js";
|
|
2
2
|
import { i as e } from "../browser-0zX67oeU.js";
|
|
3
3
|
import "../ticker/index.js";
|
|
4
|
-
import { aD as r } from "../tags-
|
|
4
|
+
import { aD as r } from "../tags-4AoxVUe3.js";
|
|
5
5
|
import { c as t } from "../createTheme-CHnsCgAr.js";
|
|
6
6
|
const a = t(
|
|
7
7
|
{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var L=r=>{throw TypeError(r)};var A=(r,i,s)=>i.has(r)||L("Cannot "+s);var e=(r,i,s)=>(A(r,i,"read from private field"),s?s.call(r):i.get(r)),h=(r,i,s)=>i.has(r)?L("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(r):i.set(r,s),t=(r,i,s,n)=>(A(r,i,"write to private field"),n?n.call(r,s):i.set(r,s),s),S=(r,i,s)=>(A(r,i,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../browser-CpzFX2xg.cjs"),M=require("../dom-JBOkFLTh.cjs");var o,u,v,b,m,l,g,y,q;class V{constructor(i,s){h(this,o);h(this,u);h(this,v);h(this,b,0);h(this,m,0);h(this,l,0);h(this,g,!1);h(this,y,null);h(this,q,i=>{const s=i[0];t(this,g,s.isIntersecting)});if(t(this,o,i),t(this,u,s==null?void 0:s.maxFPS),t(this,v,(s==null?void 0:s.order)||0),s!=null&&s.culling&&B.isBrowser){const n=M.getElement(s.culling);n&&(t(this,y,new IntersectionObserver(e(this,q))),e(this,y).observe(n))}else t(this,g,!0)}get callback(){return e(this,o)}get order(){return e(this,v)}sync(i){t(this,b,i-e(this,l))}tick(i){if(t(this,l,Math.max(0,i-e(this,b))),e(this,m)||t(this,m,i),e(this,u))if(e(this,l)>=1e3/e(this,u))t(this,b,i-e(this,l)%e(this,u));else return;else t(this,b,i);e(this,g)&&e(this,o).call(this,{timeBetweenFrames:e(this,l),timestamp:i,subscribeTimestamp:e(this,m),timeElapsedSinceSubscription:i-e(this,m)})}destroy(){var i;(i=e(this,y))==null||i.disconnect()}}o=new WeakMap,u=new WeakMap,v=new WeakMap,b=new WeakMap,m=new WeakMap,l=new WeakMap,g=new WeakMap,y=new WeakMap,q=new WeakMap;var w,f,a,F,c,d,I,E,k,T;class x{constructor(){h(this,d);h(this,w,0);h(this,f,0);h(this,a);h(this,F,!1);h(this,c,[]);h(this,k,i=>{if(e(this,F)){t(this,F,!1),t(this,w,i-e(this,f));for(const s of e(this,c))s.sync(e(this,f))}t(this,a,requestAnimationFrame(e(this,k))),t(this,f,i-e(this,w));for(const s of e(this,c))s.tick(e(this,f))});h(this,T,()=>{document.hidden&&t(this,F,!0)});B.isBrowser&&document.addEventListener("visibilitychange",e(this,T))}subscribe(i,s){if(!e(this,c).find(n=>n.callback===i)){const n=new V(i,s);n.sync(performance.now()),e(this,c).push(n),t(this,c,e(this,c).sort((O,P)=>O.order-P.order))}return S(this,d,I).call(this),()=>this.unsubscribe(i)}unsubscribe(i){const s=e(this,c).filter(n=>n.callback===i);s.length&&(s.forEach(n=>n.destroy()),t(this,c,e(this,c).filter(n=>n.callback!==i)),e(this,c).length||S(this,d,E).call(this))}destroy(){B.isBrowser&&(S(this,d,E).call(this),document.removeEventListener("visibilitychange",e(this,T)))}}w=new WeakMap,f=new WeakMap,a=new WeakMap,F=new WeakMap,c=new WeakMap,d=new WeakSet,I=function(){e(this,c).length&&!e(this,a)&&t(this,a,requestAnimationFrame(e(this,k)))},E=function(){e(this,a)&&(cancelAnimationFrame(e(this,a)),t(this,a,void 0))},k=new WeakMap,T=new WeakMap;const j=new x;exports.Ticker=x;exports.ticker=j;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
var q = (r) => {
|
|
2
|
+
throw TypeError(r);
|
|
3
|
+
};
|
|
4
|
+
var L = (r, i, s) => i.has(r) || q("Cannot " + s);
|
|
5
|
+
var e = (r, i, s) => (L(r, i, "read from private field"), s ? s.call(r) : i.get(r)), h = (r, i, s) => i.has(r) ? q("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(r) : i.set(r, s), t = (r, i, s, n) => (L(r, i, "write to private field"), n ? n.call(r, s) : i.set(r, s), s), A = (r, i, s) => (L(r, i, "access private method"), s);
|
|
6
|
+
import { i as S } from "../browser-0zX67oeU.js";
|
|
7
|
+
import { a as P } from "../dom-P5QbAASX.js";
|
|
8
|
+
var o, u, v, m, b, l, g, F, E;
|
|
9
|
+
class V {
|
|
10
|
+
constructor(i, s) {
|
|
11
|
+
h(this, o);
|
|
12
|
+
h(this, u);
|
|
13
|
+
h(this, v);
|
|
14
|
+
h(this, m, 0);
|
|
15
|
+
h(this, b, 0);
|
|
16
|
+
h(this, l, 0);
|
|
17
|
+
h(this, g, !1);
|
|
18
|
+
h(this, F, null);
|
|
19
|
+
h(this, E, (i) => {
|
|
20
|
+
const s = i[0];
|
|
21
|
+
t(this, g, s.isIntersecting);
|
|
22
|
+
});
|
|
23
|
+
if (t(this, o, i), t(this, u, s == null ? void 0 : s.maxFPS), t(this, v, (s == null ? void 0 : s.order) || 0), s != null && s.culling && S) {
|
|
24
|
+
const n = P(s.culling);
|
|
25
|
+
n && (t(this, F, new IntersectionObserver(
|
|
26
|
+
e(this, E)
|
|
27
|
+
)), e(this, F).observe(n));
|
|
28
|
+
} else
|
|
29
|
+
t(this, g, !0);
|
|
30
|
+
}
|
|
31
|
+
get callback() {
|
|
32
|
+
return e(this, o);
|
|
33
|
+
}
|
|
34
|
+
get order() {
|
|
35
|
+
return e(this, v);
|
|
36
|
+
}
|
|
37
|
+
sync(i) {
|
|
38
|
+
t(this, m, i - e(this, l));
|
|
39
|
+
}
|
|
40
|
+
tick(i) {
|
|
41
|
+
if (t(this, l, Math.max(0, i - e(this, m))), e(this, b) || t(this, b, i), e(this, u))
|
|
42
|
+
if (e(this, l) >= 1e3 / e(this, u))
|
|
43
|
+
t(this, m, i - e(this, l) % e(this, u));
|
|
44
|
+
else
|
|
45
|
+
return;
|
|
46
|
+
else
|
|
47
|
+
t(this, m, i);
|
|
48
|
+
e(this, g) && e(this, o).call(this, {
|
|
49
|
+
timeBetweenFrames: e(this, l),
|
|
50
|
+
timestamp: i,
|
|
51
|
+
subscribeTimestamp: e(this, b),
|
|
52
|
+
timeElapsedSinceSubscription: i - e(this, b)
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
destroy() {
|
|
56
|
+
var i;
|
|
57
|
+
(i = e(this, F)) == null || i.disconnect();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
o = new WeakMap(), u = new WeakMap(), v = new WeakMap(), m = new WeakMap(), b = new WeakMap(), l = new WeakMap(), g = new WeakMap(), F = new WeakMap(), E = new WeakMap();
|
|
61
|
+
var k, f, a, y, c, d, B, x, w, T;
|
|
62
|
+
class C {
|
|
63
|
+
constructor() {
|
|
64
|
+
h(this, d);
|
|
65
|
+
h(this, k, 0);
|
|
66
|
+
h(this, f, 0);
|
|
67
|
+
h(this, a);
|
|
68
|
+
h(this, y, !1);
|
|
69
|
+
h(this, c, []);
|
|
70
|
+
h(this, w, (i) => {
|
|
71
|
+
if (e(this, y)) {
|
|
72
|
+
t(this, y, !1), t(this, k, i - e(this, f));
|
|
73
|
+
for (const s of e(this, c))
|
|
74
|
+
s.sync(e(this, f));
|
|
75
|
+
}
|
|
76
|
+
t(this, a, requestAnimationFrame(e(this, w))), t(this, f, i - e(this, k));
|
|
77
|
+
for (const s of e(this, c))
|
|
78
|
+
s.tick(e(this, f));
|
|
79
|
+
});
|
|
80
|
+
h(this, T, () => {
|
|
81
|
+
document.hidden && t(this, y, !0);
|
|
82
|
+
});
|
|
83
|
+
S && document.addEventListener(
|
|
84
|
+
"visibilitychange",
|
|
85
|
+
e(this, T)
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
subscribe(i, s) {
|
|
89
|
+
if (!e(this, c).find((n) => n.callback === i)) {
|
|
90
|
+
const n = new V(i, s);
|
|
91
|
+
n.sync(performance.now()), e(this, c).push(n), t(this, c, e(this, c).sort((I, O) => I.order - O.order));
|
|
92
|
+
}
|
|
93
|
+
return A(this, d, B).call(this), () => this.unsubscribe(i);
|
|
94
|
+
}
|
|
95
|
+
unsubscribe(i) {
|
|
96
|
+
const s = e(this, c).filter(
|
|
97
|
+
(n) => n.callback === i
|
|
98
|
+
);
|
|
99
|
+
s.length && (s.forEach((n) => n.destroy()), t(this, c, e(this, c).filter(
|
|
100
|
+
(n) => n.callback !== i
|
|
101
|
+
)), e(this, c).length || A(this, d, x).call(this));
|
|
102
|
+
}
|
|
103
|
+
destroy() {
|
|
104
|
+
S && (A(this, d, x).call(this), document.removeEventListener(
|
|
105
|
+
"visibilitychange",
|
|
106
|
+
e(this, T)
|
|
107
|
+
));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
k = new WeakMap(), f = new WeakMap(), a = new WeakMap(), y = new WeakMap(), c = new WeakMap(), d = new WeakSet(), B = function() {
|
|
111
|
+
e(this, c).length && !e(this, a) && t(this, a, requestAnimationFrame(e(this, w)));
|
|
112
|
+
}, x = function() {
|
|
113
|
+
e(this, a) && (cancelAnimationFrame(e(this, a)), t(this, a, void 0));
|
|
114
|
+
}, w = new WeakMap(), T = new WeakMap();
|
|
115
|
+
const j = new C();
|
|
116
|
+
export {
|
|
117
|
+
C as Ticker,
|
|
118
|
+
j as ticker
|
|
119
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("three"),f=require("./en3-
|
|
1
|
+
"use strict";const a=require("three"),f=require("./en3-C1fLmsjs.cjs"),s=new a.Vector3,u=new a.Vector3;function w(e,i="default"){const t=f.en3.getView(i),{width:r,height:o}=f.en3,n=r/o;e instanceof a.Vector3?s.copy(e):s.set(...e);const c=t.camera.getWorldPosition(u).distanceTo(s);if(t.camera instanceof a.OrthographicCamera)return{width:r/t.camera.zoom,height:o/t.camera.zoom,factor:1,distance:c,aspect:n};{const l=t.camera.fov*Math.PI/180,h=2*Math.tan(l/2)*c,m=h*(r/o);return{width:m,height:h,factor:r/m,distance:c,aspect:n}}}function g(e,i){e.traverse(t=>{t instanceof a.Mesh&&t.material&&(Array.isArray(t.material)?t.material:[t.material]).forEach(i)})}exports.getCurrentViewport=w;exports.traverseMaterials=g;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 as c, OrthographicCamera as p, Mesh as w } from "three";
|
|
2
|
-
import { e as h } from "./en3-
|
|
2
|
+
import { e as h } from "./en3-x-Ki30MY.js";
|
|
3
3
|
const s = new c(), g = new c();
|
|
4
4
|
function M(a, r = "default") {
|
|
5
5
|
const t = h.getView(r), { width: e, height: o } = h, n = e / o;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";var ve=h=>{throw TypeError(h)};var ue=(h,i,e)=>i.has(h)||ve("Cannot "+e);var t=(h,i,e)=>(ue(h,i,"read from private field"),e?e.call(h):i.get(h)),a=(h,i,e)=>i.has(h)?ve("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(h):i.set(h,e),o=(h,i,e,s)=>(ue(h,i,"write to private field"),s?s.call(h,e):i.set(h,e),e),f=(h,i,e)=>(ue(h,i,"access private method"),e);const Ae=require("../browser-CpzFX2xg.cjs"),g=require("../Store-BnA-dJsE.cjs"),De=require("../file-EevnUtRj.cjs"),He=require("../function-MthRj-GJ.cjs"),ye=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const n=require("../tags-v-OSVkiQ.cjs"),C=require("../createStylesheet-CaDI99iu.cjs"),Ke=require("../Viewport-BmLTk_6k.cjs"),c=require("../theme/index.cjs"),Oe=require("../index-BpsQqM-8.cjs"),Ze=require("../events-BGwqaxVW.cjs");require("../checkbox/index.cjs");const je=require("../math-GDWEqu7y.cjs"),pe=require("../polyfills-CM4SCDTt.cjs"),ke=require("../element-resizer/index.cjs"),Se='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',xe='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',Je='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',We='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>';var L,b,x;class _e{constructor(){a(this,L);a(this,b);a(this,x);this.scrollValue=0,o(this,L,""),o(this,b,[]),o(this,x,{}),o(this,L,g.storeRegistry.projectName+"-studio")}openPanel(i){t(this,b).includes(i)||t(this,b).push(i)}closePanel(i){o(this,b,t(this,b).filter(e=>e!==i))}isPanelOpened(i){return t(this,b).includes(i)}changedSizes(i){return t(this,x)[i]}changeSize(i,e){e?t(this,x)[i]=e:delete t(this,x)[i]}save(){const i={openedPanels:t(this,b),changedSizes:t(this,x),scrollValue:this.scrollValue};localStorage.setItem(t(this,L),JSON.stringify(i)),g.storeRegistry.saveState()}load(){g.storeRegistry.loadState();const i=localStorage.getItem(t(this,L));if(i)try{const e=JSON.parse(i);e.openedPanels&&o(this,b,e.openedPanels),e.changedSizes&&o(this,x,e.changedSizes),e.scrollValue&&(this.scrollValue=e.scrollValue)}catch(e){console.error(e)}}}L=new WeakMap,b=new WeakMap,x=new WeakMap;const w=new _e;var R;class K extends HTMLElement{constructor(...e){super();a(this,R);o(this,R,e)}addStore(e){t(this,R).push(e)}get firstStore(){return t(this,R)[0]}get stores(){return t(this,R)}updateStores(e){t(this,R).forEach(s=>{s.current=e})}}R=new WeakMap;const Be=C.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:c.aptechkaTheme.borderRadiusSmall.var}});class Ee extends K{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Be),n.element(this,{children:[n.element("e-checkbox",{onChange:s=>{this.updateStores(s.currentTarget.checked)},ref:s=>{this.firstStore.subscribe(r=>{s.checked=r.current})}})]})}}customElements.get("e-tweaker-boolean-manager")||customElements.define("e-tweaker-boolean-manager",Ee);const Xe=C.createStylesheet({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:c.aptechkaTheme.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:c.aptechkaTheme.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});class Ce extends K{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Xe),n.element(this,{children:[n.input({type:"color",value:this.firstStore,onInput:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-color-manager")||customElements.define("e-tweaker-color-manager",Ce);const Ye=C.createStylesheet({a:{color:"inherit",fontSize:"var(--font-size-small)"}});class ze extends K{constructor(...i){var s,r;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ye),console.log(this.firstStore),n.element(this,{children:[n.a({href:this.firstStore,target:(r=(s=this.firstStore.passport)==null?void 0:s.manager)!=null&&r.sameWindow?"_self":"_blank",children:this.firstStore})]})}}customElements.get("e-tweaker-link-manager")||customElements.define("e-tweaker-link-manager",ze);const Ge=C.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${c.aptechkaTheme.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${c.aptechkaTheme.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:c.aptechkaTheme.colorFont.var,borderRadius:c.aptechkaTheme.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});var P,q,N,E,F,Z,j,S,I,J,W,u,V,ge,me,ne,_;class Te extends K{constructor(...e){var r,l,d,p,y,M,O,we;super(...e);a(this,u);a(this,P,[]);a(this,q,[]);a(this,N);a(this,E);a(this,F);a(this,Z);a(this,j);a(this,S);a(this,I,!1);a(this,J,e=>{const s=f(this,u,V).call(this,e);return s.map((r,l)=>{const d=typeof r=="string"?parseFloat(r)||t(this,E):r,p=je.clamp(d,t(this,E),t(this,F)),y=pe.toStep(p,t(this,N));s[l]=y}),t(this,j)==="number"?s[0]:s});a(this,W,()=>{f(this,u,V).call(this).map((e,s)=>{const r=t(this,P)[s];r&&(r.value=(e||0).toString())}),f(this,u,ge).call(this)});a(this,_,()=>{f(this,u,ge).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ge),o(this,E,pe.nullishCoalescing((l=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:l.min,-1/0)),o(this,F,pe.nullishCoalescing((p=(d=this.firstStore.passport)==null?void 0:d.manager)==null?void 0:p.max,1/0)),o(this,N,((M=(y=this.firstStore.passport)==null?void 0:y.manager)==null?void 0:M.step)||.01),o(this,Z,((we=(O=this.firstStore.passport)==null?void 0:O.manager)==null?void 0:we.ease)||1),o(this,j,Array.isArray(this.firstStore.current)?"array":"number"),o(this,S,isFinite(t(this,F))&&isFinite(t(this,E))),n.element(this,{class:t(this,S)?"":"infinite",children:f(this,u,V).call(this).map((Le,ie)=>n.div({class:"inputs-wrapper",children:[n.input({type:"number",step:t(this,N),min:t(this,E),max:t(this,F),ref:z=>t(this,P).push(z),value:Le,onChange:()=>{this.updateStores(t(this,P).map(z=>parseFloat(z.value)))}}),n.div({class:"drag",children:[n.div({class:"drag-knob",ref:z=>t(this,q).push(z),onPointerdown:z=>{z.preventDefault(),o(this,I,!0);const he=f(this,u,V).call(this),Pe=he[ie],T=t(this,q)[ie],Ie=t(this,P)[ie];if(T&&Ie){const ce=T.parentElement,Ve=f(this,u,me).call(this);ce.classList.add("grabbing"),ye.setupDrag(de=>{const be=de.x-z.x,qe=t(this,S)?ce.offsetWidth/(Ve||1):1,Ne=Pe+be/qe*t(this,Z);if(he[ie]=Ne,!t(this,S)){const $e=f(this,u,ne).call(this,T,0);T.style.transform=`translateX(${$e+be}px)`}this.updateStores([...he])},()=>{if(o(this,I,!1),!t(this,S)){const de=f(this,u,ne).call(this,T,0);T.style.transition="transform 0.1s",T.style.transform=`translateX(${de}px)`,ce.classList.remove("grabbing"),setTimeout(()=>{T.style.transition=""},100)}})}},children:n.div({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(t(this,J)),this.firstStore.subscribe(t(this,W)),ke.elementResizer.subscribe(this,t(this,_))}disconnectedCallback(){this.firstStore.removeMiddleware(t(this,J)),this.firstStore.unsubscribe(t(this,W)),ke.elementResizer.unsubscribe(t(this,_))}}P=new WeakMap,q=new WeakMap,N=new WeakMap,E=new WeakMap,F=new WeakMap,Z=new WeakMap,j=new WeakMap,S=new WeakMap,I=new WeakMap,J=new WeakMap,W=new WeakMap,u=new WeakSet,V=function(e=this.firstStore.current){return Array.isArray(e)?e:[e]},ge=function(){f(this,u,V).call(this).map((e,s)=>{const r=t(this,q)[s];if(r&&(!t(this,I)||t(this,I)&&t(this,S))){const l=f(this,u,ne).call(this,r,e);r.style.transform=`translateX(${l}px)`}})},me=function(){return t(this,S)?t(this,F)-t(this,E):0},ne=function(e,s){const r=e.parentElement,l=f(this,u,me).call(this),d=l?s/l:.5;return(r.offsetWidth-e.offsetWidth)*d},_=new WeakMap;customElements.get("e-tweaker-number-manager")||customElements.define("e-tweaker-number-manager",Te);const Qe=C.createStylesheet({"e-select":{display:"block",width:"100%","--arrow-color":c.aptechkaTheme.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:c.aptechkaTheme.colorActive.var},svg:{width:"16px",height:"16px",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});class Re extends K{constructor(...i){var r,l;super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Qe);const s=((l=(r=this.firstStore.passport)==null?void 0:r.manager)==null?void 0:l.variants)||[];n.element(this,{children:n.element("e-select",{value:this.firstStore,onChange:d=>{this.updateStores(d.currentTarget.value)},lightChildren:[n.element("e-select-head",{lightChildren:[n.span({"data-value-holder":""})]}),...s.map((d,p)=>n.element("e-select-option",{lightChildren:d,default:p===0?!0:null}))]})})}}customElements.get("e-tweaker-select-manager")||customElements.define("e-tweaker-select-manager",Re);const Ue=C.createStylesheet({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var}});class Fe extends K{constructor(...i){super(...i),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Ue),n.element(this,{children:[n.input({class:"text-input",type:"string",value:this.firstStore,onChange:s=>{this.updateStores(s.currentTarget.value)}})]})}}customElements.get("e-tweaker-string-manager")||customElements.define("e-tweaker-string-manager",Fe);const et={boolean:Ee,color:Ce,link:ze,number:Te,select:Re,string:Fe},tt=C.createStylesheet({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:c.aptechkaTheme.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:c.aptechkaTheme.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:c.aptechkaTheme.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});var v,$,A,D,H,B,X;class fe extends HTMLElement{constructor(e){var l,d,p,y;super();a(this,v,[]);a(this,$);a(this,A);a(this,D,!1);a(this,H);a(this,B,()=>{g.activeStores.current.find(e=>t(this,v).includes(e))||this.remove()});a(this,X,e=>{t(this,D)&&((e.metaKey||e.ctrlKey)&&e.code==="KeyC"?navigator.clipboard.writeText(t(this,v)[0].current):(e.metaKey||e.ctrlKey)&&e.code==="KeyR"&&(t(this,v).forEach(s=>{s.reset()}),e.preventDefault()))});o(this,v,[e.store]),o(this,$,e.store.passport.name),o(this,A,t(this,$).split(".").slice(-1).toString());const s=((d=(l=e.store.passport)==null?void 0:l.manager)==null?void 0:d.type)||"string";o(this,H,new et[s](t(this,v)[0])),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(tt),n.element(this,{class:{disabled:((y=(p=e.store.passport)==null?void 0:p.manager)==null?void 0:y.disabled)||!1},onPointerleave:()=>{o(this,D,!1)},onPointerenter:()=>{o(this,D,!0)},children:[n.div({class:"head",children:[n.div({class:"name",children:t(this,A)+":"}),n.div({class:"head-buttons",children:[n.button({class:"head-button",children:xe,onClick:()=>{navigator.clipboard.writeText(t(this,v)[0].current)}}),n.button({class:"head-button",children:Se,onClick:()=>{t(this,v).forEach(M=>{M.reset()})}})]})]}),t(this,H)]})}get key(){return t(this,$)}get name(){return t(this,A)}get stores(){return t(this,v)}addStore(e){t(this,H).addStore(e)}connectedCallback(){g.activeStores.subscribe(t(this,B)),addEventListener("keydown",t(this,X)),Ze.dispatchSizeChangeEvent(this)}disconnectedCallback(){g.activeStores.unsubscribe(t(this,B)),removeEventListener("keydown",t(this,X))}}v=new WeakMap,$=new WeakMap,A=new WeakMap,D=new WeakMap,H=new WeakMap,B=new WeakMap,X=new WeakMap;customElements.get("e-tweaker-field")||customElements.define("e-tweaker-field",fe);const st=C.createStylesheet({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:c.aptechkaTheme.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:c.aptechkaTheme.colorMainAux.var,borderRadius:c.aptechkaTheme.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:c.aptechkaTheme.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:c.aptechkaTheme.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});var k,Y,m,G,Q,U,ee,oe;const le=class le extends HTMLElement{constructor(e){super();a(this,k);a(this,Y,new g.Store(null));a(this,m,new g.Store([]));a(this,G);a(this,Q,null);a(this,U,null);a(this,ee,null);a(this,oe,e=>{let s=[],r=[];e.forEach(l=>{s=[...s,...l.removedNodes],r=[...r,...l.addedNodes]}),t(this,m).current=t(this,m).current.filter(l=>!s.includes(l)),t(this,k)&&!t(this,m).current.length&&!r.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(st),o(this,k,e.key),o(this,G,new MutationObserver(t(this,oe))),n.element(this,{children:[n.div({class:"wrapper",children:[n.div({class:"head",onClick:r=>{this.classList.toggle("opened"),this.classList.contains("opened")?w.openPanel(t(this,k)):w.closePanel(t(this,k))},children:[t(this,k)?n.div({class:"name",children:[t(this,k).split(".").slice(-1).toString()]}):null,t(this,Y),n.element(Oe.arrowIcon,{class:"arrow"})]}),n.div({class:"body",ref:r=>{o(this,Q,r)},children:n.div({class:"body-content",children:t(this,m),ref:r=>{o(this,U,r),o(this,ee,r.firstElementChild)}})})]})]}),e!=null&&e.storeBox&&this.handleStore(e.storeBox)}get key(){return t(this,k)}get head(){return t(this,Y)}get content(){return t(this,m)}get bodyElement(){return t(this,Q)}get contentElement(){return t(this,U)}connectedCallback(){w.isPanelOpened(t(this,k))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),t(this,G).observe(t(this,ee),{childList:!0})}handleStore(e){if(e.remainingFolders.length){const r=e.store.passport.name.split("."),l=r.slice(0,r.length-e.remainingFolders.length).join("."),d=t(this,m).current.find(p=>p.key===l);d instanceof le?d.handleStore({store:e.store,remainingFolders:e.remainingFolders.slice(1)}):t(this,m).current=[...t(this,m).current,new le({key:l,storeBox:{store:e.store,remainingFolders:e.remainingFolders.slice(1)}})]}else{const s=t(this,m).current.find(r=>r.key===e.store.passport.name);s instanceof fe?s.addStore(e.store):t(this,m).current=[...t(this,m).current,new fe({store:e.store})]}}};k=new WeakMap,Y=new WeakMap,m=new WeakMap,G=new WeakMap,Q=new WeakMap,U=new WeakMap,ee=new WeakMap,oe=new WeakMap;let ae=le;customElements.get("e-tweaker-folder")||customElements.define("e-tweaker-folder",ae);const rt=C.createStylesheet({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:c.aptechkaTheme.colorMain.var,borderRadius:c.aptechkaTheme.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:c.aptechkaTheme.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:c.aptechkaTheme.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
2
|
+
100dvh -
|
|
3
|
+
(
|
|
4
|
+
var(--tweaker-offset) * 2 +
|
|
5
|
+
var(--tweaker-folder-height)
|
|
6
|
+
)
|
|
7
|
+
)`,overflow:"hidden auto","-ms-overflow-style":"none","scrollbar-width":"none"},":host .body-content::-webkit-scrollbar":{display:"none"},[`@media ${Ke.ViewportMediaRules["<=mobile"]}`]:{":host":{position:"absolute",top:"0",right:"0",width:"100% !important",borderTopLeftRadius:"0",borderTopRightRadius:"0"},":host .body-content":{maxHeight:`calc(
|
|
8
|
+
100dvh -
|
|
9
|
+
var(--tweaker-folder-height)
|
|
10
|
+
)`}}});var te,se,re;class Me extends ae{constructor(){super({key:""});a(this,te,!1);a(this,se,()=>{w.save()});a(this,re,He.debounce(()=>{g.activeStores.current.forEach(e=>{var s;if(e.passport&&!((s=e.passport.manager)!=null&&s.invisible)){const r=e.passport.name.split(".");this.handleStore({store:e,remainingFolders:r.length>1?r.slice(0,-1):[]})}}),t(this,te)||(o(this,te,!0),this.contentElement.scroll({top:w.scrollValue}),this.contentElement.addEventListener("scroll",()=>{w.scrollValue=this.contentElement.scrollTop}))},10));w.load(),this.shadowRoot.adoptedStyleSheets.push(rt),this.head.current=[n.div({class:"tweaker-buttons",onClick:e=>{e.stopPropagation()},children:[n.button({class:"tweaker-button",children:Se,onClick:()=>{g.storeRegistry.resetState()}}),n.button({class:["tweaker-button"],children:[xe],onClick:()=>{navigator.clipboard.writeText(JSON.stringify(g.storeRegistry.getState()))}}),n.button({class:"tweaker-button",children:Je,onClick:()=>{De.createJSONAndSave(g.storeRegistry.projectName,g.storeRegistry.getState())}}),n.label({class:"tweaker-button",children:[We,n.input({type:"file",style:{display:"none"},onChange:e=>{var l;const r=(l=e.currentTarget.files)==null?void 0:l[0];if(r){const d=new FileReader;d.onload=p=>{var M,O;const y=(O=(M=p.target)==null?void 0:M.result)==null?void 0:O.toString();y&&g.storeRegistry.loadState(y)},d.readAsText(r)}}})]})]})],n.element(this.bodyElement,{children:[n.div({class:"resize",onPointerdown:e=>{e.preventDefault();const s=this.getBoundingClientRect(),r=this.contentElement.scrollTop;ye.setupDrag(l=>{const d=e.x-l.x,p=Math.max(400,s.width+d);this.style.width=p+"px",w.changeSize("tweaker",p)},()=>{setTimeout(()=>{this.contentElement.scroll({top:r})},10)})},onDblclick:()=>{this.style.width="",w.changeSize("tweaker",null)}})]})}connectedCallback(){super.connectedCallback(),window.addEventListener("beforeunload",t(this,se)),g.activeStores.subscribe(t(this,re)),w.changedSizes("tweaker")&&(this.style.width=w.changedSizes("tweaker")+"px")}disconnectedCallback(){window.removeEventListener("beforeunload",t(this,se)),w.save(),g.activeStores.unsubscribe(t(this,re))}}te=new WeakMap,se=new WeakMap,re=new WeakMap;customElements.get("e-tweaker")||customElements.define("e-tweaker",Me);Ae.isBrowser&&document.body.appendChild(new Me);
|