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
|
@@ -1,112 +1,105 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
throw TypeError("Cannot " + t);
|
|
1
|
+
var H = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
4
3
|
};
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import { Attribute as R } from "../attribute/index.js";
|
|
12
|
-
import { S as q } from "../Store-Qr3SNOSf.js";
|
|
13
|
-
import { g as I } from "../style-j2TwriJ_.js";
|
|
14
|
-
import { i as B } from "../browser-0zX67oeU.js";
|
|
4
|
+
var _ = (i, o, t) => o.has(i) || H("Cannot " + t);
|
|
5
|
+
var e = (i, o, t) => (_(i, o, "read from private field"), t ? t.call(i) : o.get(i)), n = (i, o, t) => o.has(i) ? H("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(i) : o.set(i, t), h = (i, o, t, d) => (_(i, o, "write to private field"), d ? d.call(i, t) : o.set(i, t), t), A = (i, o, t) => (_(i, o, "access private method"), t);
|
|
6
|
+
import { Attribute as O } from "../attribute/index.js";
|
|
7
|
+
import { S as N } from "../Store-DGtldlBH.js";
|
|
8
|
+
import { g as q } from "../style-j2TwriJ_.js";
|
|
9
|
+
import { i as I } from "../browser-0zX67oeU.js";
|
|
15
10
|
import "../ticker/index.js";
|
|
16
|
-
import { e as
|
|
17
|
-
var f,
|
|
11
|
+
import { e as B } from "../tags-4AoxVUe3.js";
|
|
12
|
+
var f, l, T, a, u, v, c, R, y, E, L, $, g;
|
|
18
13
|
const p = class p extends HTMLElement {
|
|
19
14
|
constructor() {
|
|
20
15
|
super();
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
h(this, f, -1), h(this, c, new q(!1)), h(this, l, new R(this, "history", !1)), h(this, d, new R(this, "single", !1)), h(this, u, !1), this.open = (t = !0) => {
|
|
34
|
-
if (e(this, c).current)
|
|
16
|
+
n(this, c);
|
|
17
|
+
n(this, f);
|
|
18
|
+
n(this, l);
|
|
19
|
+
n(this, T);
|
|
20
|
+
n(this, a);
|
|
21
|
+
n(this, u);
|
|
22
|
+
n(this, v);
|
|
23
|
+
n(this, E);
|
|
24
|
+
n(this, L);
|
|
25
|
+
n(this, g);
|
|
26
|
+
h(this, f, -1), h(this, l, new N(!1)), h(this, a, new O(this, "history", !1)), h(this, u, new O(this, "single", !1)), h(this, v, !1), this.open = (t = !0) => {
|
|
27
|
+
if (e(this, l).current)
|
|
35
28
|
return;
|
|
36
|
-
e(this,
|
|
37
|
-
const
|
|
29
|
+
e(this, l).current = !0, e(this, u).current && (p.__opened.forEach((r) => r.close()), p.__opened = []), p.__opened.push(this), h(this, f, p.__opened.length - 1), e(this, a).current && e(this, v) && history.pushState("", "", e(this, c, R)), clearTimeout(e(this, T)), this.classList.add("triggered"), this.style.display = "block", this.dispatchEvent(new CustomEvent("popoverTriggered"));
|
|
30
|
+
const d = () => {
|
|
38
31
|
addEventListener("click", e(this, E)), addEventListener("keydown", e(this, L)), this.style.opacity = "1", this.classList.add("opened"), this.dispatchEvent(new CustomEvent("popoverOpened"));
|
|
39
32
|
};
|
|
40
|
-
t ? setTimeout(
|
|
33
|
+
t ? setTimeout(d) : d();
|
|
41
34
|
}, this.close = () => {
|
|
42
|
-
if (e(this,
|
|
43
|
-
if (e(this,
|
|
35
|
+
if (e(this, l).current) {
|
|
36
|
+
if (e(this, l).current = !1, p.__opened = p.__opened.filter((t) => t !== this), e(this, a).current) {
|
|
44
37
|
const t = new URL(location.href);
|
|
45
|
-
t.searchParams.delete(e(this,
|
|
38
|
+
t.searchParams.delete(e(this, c, y)), history.replaceState(null, "", t.href);
|
|
46
39
|
}
|
|
47
40
|
this.classList.remove("opened"), this.style.opacity = "0", this.dispatchEvent(new CustomEvent("popoverClosing")), removeEventListener("click", e(this, E)), removeEventListener("keydown", e(this, L)), setTimeout(() => {
|
|
48
41
|
this.classList.remove("triggered"), this.style.display = "none", this.dispatchEvent(new CustomEvent("popoverClosed"));
|
|
49
|
-
},
|
|
42
|
+
}, q(this) + 10);
|
|
50
43
|
}
|
|
51
44
|
}, h(this, E, (t) => {
|
|
52
|
-
|
|
53
|
-
var
|
|
54
|
-
const r = t.composedPath()[0],
|
|
55
|
-
(!
|
|
45
|
+
A(this, c, $).call(this, () => {
|
|
46
|
+
var x;
|
|
47
|
+
const r = t.composedPath()[0], S = r instanceof HTMLElement && (this.contains(r) || ((x = this.shadowRoot) == null ? void 0 : x.contains(r))), m = r instanceof HTMLElement && r.hasAttribute("outside");
|
|
48
|
+
(!S || m) && this.close();
|
|
56
49
|
});
|
|
57
50
|
}), h(this, L, (t) => {
|
|
58
|
-
|
|
51
|
+
A(this, c, $).call(this, () => {
|
|
59
52
|
t.code === "Escape" && this.close();
|
|
60
53
|
});
|
|
61
54
|
}), h(this, g, () => {
|
|
62
|
-
h(this,
|
|
55
|
+
h(this, v, !1), e(this, l).current && e(this, a).current && !location.search.includes(e(this, c, y)) ? this.close() : !e(this, l).current && e(this, a).current && location.search.includes(e(this, c, y)) && this.open(), h(this, v, !0);
|
|
63
56
|
}), this.setAttribute("popover-target", "");
|
|
64
57
|
}
|
|
65
58
|
get history() {
|
|
66
|
-
return e(this,
|
|
59
|
+
return e(this, a);
|
|
67
60
|
}
|
|
68
61
|
get single() {
|
|
69
|
-
return e(this,
|
|
62
|
+
return e(this, u);
|
|
70
63
|
}
|
|
71
64
|
get opened() {
|
|
72
|
-
return e(this,
|
|
65
|
+
return e(this, l);
|
|
73
66
|
}
|
|
74
67
|
connectedCallback() {
|
|
75
|
-
e(this,
|
|
68
|
+
e(this, a).observe(), e(this, u).observe(), this.style.opacity = "0", this.style.display = "none", addEventListener("popstate", e(this, g)), setTimeout(() => {
|
|
76
69
|
e(this, g).call(this);
|
|
77
70
|
}, 0);
|
|
78
71
|
}
|
|
79
72
|
disconnectedCallback() {
|
|
80
|
-
e(this,
|
|
73
|
+
e(this, a).unobserve(), e(this, u).unobserve(), p.__opened = p.__opened.filter((t) => t !== this), clearTimeout(e(this, T)), removeEventListener("popstate", e(this, g));
|
|
81
74
|
}
|
|
82
75
|
};
|
|
83
|
-
f = new WeakMap(),
|
|
84
|
-
return `${location.pathname}${location.search ? location.search + "&" : "?"}${e(this,
|
|
85
|
-
},
|
|
76
|
+
f = new WeakMap(), l = new WeakMap(), T = new WeakMap(), a = new WeakMap(), u = new WeakMap(), v = new WeakMap(), c = new WeakSet(), R = function() {
|
|
77
|
+
return `${location.pathname}${location.search ? location.search + "&" : "?"}${e(this, c, y)}`;
|
|
78
|
+
}, y = function() {
|
|
86
79
|
return `modal-${this.id}`;
|
|
87
|
-
}, E = new WeakMap(), L = new WeakMap(),
|
|
80
|
+
}, E = new WeakMap(), L = new WeakMap(), $ = function(t) {
|
|
88
81
|
(p.__opened[e(this, f) - 1] || p.__opened.length === 1) && t();
|
|
89
82
|
}, g = new WeakMap(), p.__opened = [];
|
|
90
|
-
let
|
|
91
|
-
customElements.get("e-popover") || customElements.define("e-popover",
|
|
92
|
-
var s, w, C, k
|
|
93
|
-
class
|
|
83
|
+
let M = p;
|
|
84
|
+
customElements.get("e-popover") || customElements.define("e-popover", M);
|
|
85
|
+
var s, b, w, C, k;
|
|
86
|
+
class D extends HTMLElement {
|
|
94
87
|
constructor() {
|
|
95
88
|
super();
|
|
96
|
-
|
|
97
|
-
|
|
89
|
+
n(this, s);
|
|
90
|
+
n(this, b, () => {
|
|
98
91
|
this.classList.add("triggered");
|
|
99
92
|
});
|
|
100
|
-
|
|
93
|
+
n(this, w, () => {
|
|
101
94
|
this.classList.add("opened");
|
|
102
95
|
});
|
|
103
|
-
|
|
96
|
+
n(this, C, () => {
|
|
104
97
|
this.classList.remove("opened");
|
|
105
98
|
});
|
|
106
|
-
|
|
99
|
+
n(this, k, () => {
|
|
107
100
|
this.classList.remove("triggered");
|
|
108
101
|
});
|
|
109
|
-
|
|
102
|
+
I && B(this, {
|
|
110
103
|
tabindex: this.getAttribute("tabindex") || "0",
|
|
111
104
|
onClick: () => {
|
|
112
105
|
if (e(this, s)) {
|
|
@@ -123,54 +116,53 @@ class K extends HTMLElement {
|
|
|
123
116
|
return e(this, s);
|
|
124
117
|
}
|
|
125
118
|
connectedCallback() {
|
|
126
|
-
var
|
|
119
|
+
var d;
|
|
127
120
|
const t = this.getAttribute("target");
|
|
128
121
|
if (t) {
|
|
129
122
|
let r = null;
|
|
130
123
|
if (t === "parent") {
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
133
|
-
r =
|
|
124
|
+
const S = this.closest("[popover-target]");
|
|
125
|
+
if (S)
|
|
126
|
+
r = S;
|
|
134
127
|
else {
|
|
135
128
|
const m = this.getRootNode();
|
|
136
129
|
m instanceof ShadowRoot ? r = m.host.closest("[popover-target]") : m instanceof HTMLElement && (r = m.closest("[popover-target]"));
|
|
137
130
|
}
|
|
138
|
-
} else
|
|
139
|
-
t === "sibling" ? r = (a = this.parentElement) == null ? void 0 : a.querySelector("[popover-target]") : r = document.querySelector(`#${t}`) || this.getRootNode().querySelector(`#${t}`);
|
|
131
|
+
} else t === "sibling" ? r = (d = this.parentElement) == null ? void 0 : d.querySelector("[popover-target]") : r = document.querySelector(`#${t}`) || this.getRootNode().querySelector(`#${t}`);
|
|
140
132
|
r instanceof HTMLElement ? (h(this, s, r), e(this, s).addEventListener(
|
|
141
133
|
"popoverTriggered",
|
|
142
|
-
e(this,
|
|
134
|
+
e(this, b)
|
|
143
135
|
), e(this, s).addEventListener(
|
|
144
136
|
"popoverOpened",
|
|
145
|
-
e(this,
|
|
137
|
+
e(this, w)
|
|
146
138
|
), e(this, s).addEventListener(
|
|
147
139
|
"popoverClosing",
|
|
148
|
-
e(this,
|
|
140
|
+
e(this, C)
|
|
149
141
|
), e(this, s).addEventListener(
|
|
150
142
|
"popoverClosed",
|
|
151
|
-
e(this,
|
|
143
|
+
e(this, k)
|
|
152
144
|
)) : console.warn(this, `target ${t} not found`);
|
|
153
145
|
}
|
|
154
146
|
}
|
|
155
147
|
disconnectedCallback() {
|
|
156
148
|
e(this, s) && (e(this, s).removeEventListener(
|
|
157
149
|
"popoverTriggered",
|
|
158
|
-
e(this,
|
|
150
|
+
e(this, b)
|
|
159
151
|
), e(this, s).removeEventListener(
|
|
160
152
|
"popoverOpened",
|
|
161
|
-
e(this,
|
|
153
|
+
e(this, w)
|
|
162
154
|
), e(this, s).removeEventListener(
|
|
163
155
|
"popoverClosing",
|
|
164
|
-
e(this,
|
|
156
|
+
e(this, C)
|
|
165
157
|
), e(this, s).removeEventListener(
|
|
166
158
|
"popoverClosed",
|
|
167
|
-
e(this,
|
|
159
|
+
e(this, k)
|
|
168
160
|
));
|
|
169
161
|
}
|
|
170
162
|
}
|
|
171
|
-
s = new WeakMap(),
|
|
172
|
-
customElements.get("e-popover-button") || customElements.define("e-popover-button",
|
|
163
|
+
s = new WeakMap(), b = new WeakMap(), w = new WeakMap(), C = new WeakMap(), k = new WeakMap();
|
|
164
|
+
customElements.get("e-popover-button") || customElements.define("e-popover-button", D);
|
|
173
165
|
export {
|
|
174
|
-
|
|
175
|
-
|
|
166
|
+
D as PopoverButtonElement,
|
|
167
|
+
M as PopoverElement
|
|
176
168
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Z=(n,e)=>(e=Symbol[n])?e:Symbol.for("Symbol."+n),$=n=>{throw TypeError(n)};var K=(n,e,s)=>e.has(n)||$("Cannot "+s);var t=(n,e,s)=>(K(n,e,"read from private field"),s?s.call(n):e.get(n)),r=(n,e,s)=>e.has(n)?$("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,s),a=(n,e,s,i)=>(K(n,e,"write to private field"),i?i.call(n,s):e.set(n,s),s),W=(n,e,s)=>(K(n,e,"access private method"),s);var M=(n,e,s)=>new Promise((i,h)=>{var o=d=>{try{f(s.next(d))}catch(w){h(w)}},c=d=>{try{f(s.throw(d))}catch(w){h(w)}},f=d=>d.done?i(d.value):Promise.resolve(d.value).then(o,c);f((s=s.apply(n,e)).next())});var Y=(n,e,s)=>(e=n[Z("asyncIterator")])?e.call(n):(n=n[Z("iterator")](),e={},s=(i,h)=>(h=n[i])&&(e[i]=o=>new Promise((c,f,d)=>(o=h.call(n,o),d=o.done,Promise.resolve(o.value).then(w=>c({value:w,done:d}),f)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const at=require("urlpattern-polyfill"),rt=require("../notifier/index.cjs"),tt=require("../browser-CpzFX2xg.cjs"),ht=require("../function-MthRj-GJ.cjs"),F=require("../url-C3dWnJQg.cjs"),ot=require("../object-CCiXnER2.cjs");var R,O,A,p,m,v,k,L,b,E,x,et;class ct{constructor(e,s){r(this,x);r(this,R);r(this,O);r(this,A);r(this,p);r(this,m);r(this,v);r(this,k);r(this,L,null);r(this,b,[]);r(this,E,[]);a(this,R,e),a(this,O,s),a(this,A,new URLPattern({pathname:t(this,R)})),a(this,p,null),a(this,m,null),a(this,v,!1),a(this,k,null),tt.isBrowser&&a(this,L,new MutationObserver(i=>{i[0].addedNodes.forEach(o=>{t(this,p)?t(this,E).push(o):t(this,b).push(o)})}))}get pattern(){return t(this,R)}get urlPattern(){return t(this,A)}get isActive(){return t(this,v)}get element(){return t(this,m)}get nest(){return t(this,k)}testPathname(e){return this.urlPattern.test({pathname:e})}render(e,s){return M(this,null,function*(){var i,h;if(t(this,L).observe(document.head,{childList:!0,subtree:!0}),t(this,p))t(this,b).forEach(o=>{document.head.appendChild(o)});else{const o=yield t(this,O).call(this);if(a(this,E,[...t(this,b)]),typeof o.default=="function"&&(a(this,p,o.default),ot.isESClass(o.default))){const c="e-"+((i=t(this,p))==null?void 0:i.name.toLowerCase());customElements.get(c)||customElements.define(c,o.default)}}if(yield W(this,x,et).call(this),t(this,p)){const o=t(this,A).exec({pathname:s}),c=(o==null?void 0:o.pathname.groups)||{},f=Object.fromEntries(new URLSearchParams(location.search)),d={pathnameParams:c,searchParams:f};a(this,m,new(t(this,p))(d)),e.appendChild(t(this,m)),a(this,k,t(this,m).querySelector("[data-nest]")||((h=t(this,m).shadowRoot)==null?void 0:h.querySelector("[data-nest]"))||t(this,m).shadowRoot||t(this,m)),a(this,v,!0)}t(this,L).disconnect()})}close(){var e;t(this,L).disconnect(),(e=t(this,m))==null||e.remove(),a(this,v,!1),t(this,E).forEach(s=>document.head.removeChild(s)),a(this,E,[])}getAnchorElements(){var s;let e=[];return t(this,m)&&(e=[...t(this,m).querySelectorAll("a")]),(s=t(this,m))!=null&&s.shadowRoot&&(e=[...e,...t(this,m).shadowRoot.querySelectorAll("a")]),e}}R=new WeakMap,O=new WeakMap,A=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,k=new WeakMap,L=new WeakMap,b=new WeakMap,E=new WeakMap,x=new WeakSet,et=function(){return M(this,null,function*(){const e=t(this,b).filter(c=>c instanceof HTMLElement?c.tagName==="STYLE"||c.tagName==="SCRIPT"||c.tagName==="LINK":!1);try{for(var s=Y(e),i,h,o;i=!(h=yield s.next()).done;i=!1){const c=h.value;yield new Promise(f=>{c.onload=()=>{f()}})}}catch(h){o=[h]}finally{try{i&&(h=s.return)&&(yield h.call(s))}finally{if(o)throw o[0]}}})};var S,u,P,U,q,j;class lt{constructor(e,s){r(this,S);r(this,u);r(this,P);r(this,U);r(this,q);r(this,j,e=>{e.preventDefault(),t(this,S).links.forEach(s=>{var i;t(this,P)===t(s,P)||(i=t(s,q))!=null&&i.includes(t(this,P))?t(s,u).classList.add("clicked"):t(s,u).classList.remove("clicked")}),t(this,S).navigate(t(this,P),t(this,U))});var o,c;a(this,S,e),a(this,u,s),a(this,P,t(this,u).getAttribute("href")||"/"),a(this,U,t(this,u).getAttribute("data-history-action")||"push"),t(this,u).addEventListener("click",t(this,j));const i=e.normalizePath(t(this,P)),h=e.normalizePath(location.pathname);a(this,q,(o=t(this,u).getAttribute("data-match-paths"))==null?void 0:o.split(",").map(f=>e.normalizePath(f.trim()).pathname)),t(this,u).hasAttribute("data-include")?h.pathname.includes(i.pathname)&&t(this,u).classList.add("current"):i.pathname===h.pathname||(c=t(this,q))!=null&&c.includes(h.pathname)?(t(this,u).classList.add("current"),t(this,u).classList.add("clicked")):t(this,u).classList.remove("clicked")}destroy(){t(this,u).removeEventListener("click",t(this,j)),t(this,u).classList.remove("current")}}S=new WeakMap,u=new WeakMap,P=new WeakMap,U=new WeakMap,q=new WeakMap,j=new WeakMap;globalThis.URLPattern=at.URLPattern;var N,C,g,z,T,y,H,B,I,_,st,D;class ut{constructor(e){r(this,_);r(this,N,null);r(this,C,null);r(this,g,[]);r(this,z,null);r(this,T,[]);r(this,y);r(this,H,null);r(this,B,new rt.Notifier);r(this,I,ht.debounce(()=>{const e=s=>s.split("/").length;a(this,g,t(this,g).sort((s,i)=>e(s.pattern)-e(i.pattern))),this.navigate(location.pathname)},0));r(this,D,e=>{e.state&&this.navigate(e.state,"none")});tt.isBrowser&&(e!=null&&e.base?a(this,C,F.normalizeBase(e.base)):a(this,C,"/"),a(this,N,(e==null?void 0:e.rootElement)||document.body),addEventListener("popstate",t(this,D)))}get currentPathname(){return t(this,H)}get candidatePathname(){return t(this,y)}get routes(){return t(this,g)}get links(){return t(this,T)}navigationEvent(e){return t(this,B).subscribe(e)}defineRoute(e,s){const i=new ct(e,s);t(this,g).push(i),t(this,I).call(this)}navigate(e,s="push"){return M(this,null,function*(){var Q,V;const i=this.normalizePath(e);let{pathname:h,hash:o,parameters:c,leaf:f}=i;if(t(this,y)===h||t(this,H)===h)return;a(this,y,h);const d=t(this,g).filter(l=>l.isActive),w=t(this,g).filter(l=>!d.includes(l)&&l.testPathname(f)),it=d.filter(l=>!l.testPathname(f)),G=d.filter(l=>l.testPathname(f));let J=!0;if(this.preprocessor)try{yield new Promise((l,nt)=>{var X;(X=this.preprocessor)==null||X.call(this,{path:i,resolve:l,reject:nt})})}catch(l){l?console.error(l):console.log("Route change canceled"),J=!1}if(J&&t(this,y)===h){a(this,z,G[G.length-1]),it.forEach(l=>{l.close()}),a(this,H,h),F.changeHistory(s,h,c,o);try{for(var ft=Y(w),pt,gt,Pt;pt=!(gt=yield ft.next()).done;pt=!1){const l=gt.value;yield l.render(((Q=t(this,z))==null?void 0:Q.nest)||t(this,N),h),a(this,z,l)}}catch(gt){Pt=[gt]}finally{try{pt&&(gt=ft.return)&&(yield gt.call(ft))}finally{if(Pt)throw Pt[0]}}W(this,_,st).call(this),(V=this.postprocessor)==null||V.call(this,{pathname:h}),t(this,B).notify({pathname:h})}})}normalizePath(e){return F.splitPath(e,t(this,C))}}N=new WeakMap,C=new WeakMap,g=new WeakMap,z=new WeakMap,T=new WeakMap,y=new WeakMap,H=new WeakMap,B=new WeakMap,I=new WeakMap,_=new WeakSet,st=function(){const e=t(this,g).filter(i=>i.isActive),s=Array.from(new Set([...t(this,N).querySelectorAll("a"),...e.map(i=>i.getAnchorElements()).flat()].filter(i=>{var h;return(h=i.getAttribute("href"))==null?void 0:h.startsWith("/")})));t(this,T).forEach(i=>{i.destroy()}),a(this,T,s.map(i=>new lt(this,i)))},D=new WeakMap;exports.Router=ut;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
var X = (a, e) => (e = Symbol[a]) ? e : Symbol.for("Symbol." + a)
|
|
2
|
-
|
|
3
|
-
if (!e.has(a))
|
|
4
|
-
throw TypeError("Cannot " + s);
|
|
1
|
+
var X = (a, e) => (e = Symbol[a]) ? e : Symbol.for("Symbol." + a), Z = (a) => {
|
|
2
|
+
throw TypeError(a);
|
|
5
3
|
};
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
9
|
-
e instanceof WeakSet ? e.add(a) : e.set(a, s);
|
|
10
|
-
}, n = (a, e, s, i) => (W(a, e, "write to private field"), i ? i.call(a, s) : e.set(a, s), s);
|
|
11
|
-
var Y = (a, e, s) => (W(a, e, "access private method"), s);
|
|
4
|
+
var W = (a, e, s) => e.has(a) || Z("Cannot " + s);
|
|
5
|
+
var t = (a, e, s) => (W(a, e, "read from private field"), s ? s.call(a) : e.get(a)), h = (a, e, s) => e.has(a) ? Z("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(a) : e.set(a, s), n = (a, e, s, i) => (W(a, e, "write to private field"), i ? i.call(a, s) : e.set(a, s), s), Y = (a, e, s) => (W(a, e, "access private method"), s);
|
|
12
6
|
var I = (a, e, s) => new Promise((i, r) => {
|
|
13
7
|
var o = (m) => {
|
|
14
8
|
try {
|
|
@@ -26,27 +20,27 @@ var I = (a, e, s) => new Promise((i, r) => {
|
|
|
26
20
|
f((s = s.apply(a, e)).next());
|
|
27
21
|
});
|
|
28
22
|
var $ = (a, e, s) => (e = a[X("asyncIterator")]) ? e.call(a) : (a = a[X("iterator")](), e = {}, s = (i, r) => (r = a[i]) && (e[i] = (o) => new Promise((c, f, m) => (o = r.call(a, o), m = o.done, Promise.resolve(o.value).then((w) => c({ value: w, done: m }), f)))), s("next"), s("return"), e);
|
|
29
|
-
import { URLPattern as
|
|
30
|
-
import { Notifier as
|
|
31
|
-
import { i as
|
|
32
|
-
import { d as
|
|
33
|
-
import { n as
|
|
34
|
-
import { i as
|
|
35
|
-
var y, U, A, p, d, L, k, v, E, R, M,
|
|
36
|
-
class
|
|
23
|
+
import { URLPattern as at } from "urlpattern-polyfill";
|
|
24
|
+
import { Notifier as nt } from "../notifier/index.js";
|
|
25
|
+
import { i as _ } from "../browser-0zX67oeU.js";
|
|
26
|
+
import { d as ht } from "../function-C10DGppn.js";
|
|
27
|
+
import { n as rt, c as ot, s as ct } from "../url-DMNfW7uN.js";
|
|
28
|
+
import { i as lt } from "../object-D6MVWB4l.js";
|
|
29
|
+
var y, U, A, p, d, L, k, v, E, R, M, tt;
|
|
30
|
+
class ut {
|
|
37
31
|
constructor(e, s) {
|
|
38
32
|
h(this, M);
|
|
39
|
-
h(this, y
|
|
40
|
-
h(this, U
|
|
41
|
-
h(this, A
|
|
42
|
-
h(this, p
|
|
43
|
-
h(this, d
|
|
44
|
-
h(this, L
|
|
45
|
-
h(this, k
|
|
33
|
+
h(this, y);
|
|
34
|
+
h(this, U);
|
|
35
|
+
h(this, A);
|
|
36
|
+
h(this, p);
|
|
37
|
+
h(this, d);
|
|
38
|
+
h(this, L);
|
|
39
|
+
h(this, k);
|
|
46
40
|
h(this, v, null);
|
|
47
41
|
h(this, E, []);
|
|
48
42
|
h(this, R, []);
|
|
49
|
-
n(this, y, e), n(this, U, s), n(this, A, new URLPattern({ pathname: t(this, y) })), n(this, p, null), n(this, d, null), n(this, L, !1), n(this, k, null),
|
|
43
|
+
n(this, y, e), n(this, U, s), n(this, A, new URLPattern({ pathname: t(this, y) })), n(this, p, null), n(this, d, null), n(this, L, !1), n(this, k, null), _ && n(this, v, new MutationObserver((i) => {
|
|
50
44
|
i[0].addedNodes.forEach((o) => {
|
|
51
45
|
t(this, p) ? t(this, R).push(o) : t(this, E).push(o);
|
|
52
46
|
});
|
|
@@ -82,12 +76,12 @@ class lt {
|
|
|
82
76
|
});
|
|
83
77
|
else {
|
|
84
78
|
const o = yield t(this, U).call(this);
|
|
85
|
-
if (n(this, R, [...t(this, E)]), typeof o.default == "function" && (n(this, p, o.default),
|
|
79
|
+
if (n(this, R, [...t(this, E)]), typeof o.default == "function" && (n(this, p, o.default), lt(o.default))) {
|
|
86
80
|
const c = "e-" + ((i = t(this, p)) == null ? void 0 : i.name.toLowerCase());
|
|
87
81
|
customElements.get(c) || customElements.define(c, o.default);
|
|
88
82
|
}
|
|
89
83
|
}
|
|
90
|
-
if (yield Y(this, M,
|
|
84
|
+
if (yield Y(this, M, tt).call(this), t(this, p)) {
|
|
91
85
|
const o = t(this, A).exec({ pathname: s }), c = (o == null ? void 0 : o.pathname.groups) || {}, f = Object.fromEntries(
|
|
92
86
|
new URLSearchParams(location.search)
|
|
93
87
|
), m = {
|
|
@@ -112,7 +106,7 @@ class lt {
|
|
|
112
106
|
]), e;
|
|
113
107
|
}
|
|
114
108
|
}
|
|
115
|
-
y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), d = new WeakMap(), L = new WeakMap(), k = new WeakMap(), v = new WeakMap(), E = new WeakMap(), R = new WeakMap(), M = new WeakSet(),
|
|
109
|
+
y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), d = new WeakMap(), L = new WeakMap(), k = new WeakMap(), v = new WeakMap(), E = new WeakMap(), R = new WeakMap(), M = new WeakSet(), tt = function() {
|
|
116
110
|
return I(this, null, function* () {
|
|
117
111
|
const e = t(this, E).filter((c) => c instanceof HTMLElement ? c.tagName === "STYLE" || c.tagName === "SCRIPT" || c.tagName === "LINK" : !1);
|
|
118
112
|
try {
|
|
@@ -137,13 +131,13 @@ y = new WeakMap(), U = new WeakMap(), A = new WeakMap(), p = new WeakMap(), d =
|
|
|
137
131
|
});
|
|
138
132
|
};
|
|
139
133
|
var S, u, P, O, N, x;
|
|
140
|
-
class
|
|
134
|
+
class mt {
|
|
141
135
|
constructor(e, s) {
|
|
142
|
-
h(this, S
|
|
143
|
-
h(this, u
|
|
144
|
-
h(this, P
|
|
145
|
-
h(this, O
|
|
146
|
-
h(this, N
|
|
136
|
+
h(this, S);
|
|
137
|
+
h(this, u);
|
|
138
|
+
h(this, P);
|
|
139
|
+
h(this, O);
|
|
140
|
+
h(this, N);
|
|
147
141
|
h(this, x, (e) => {
|
|
148
142
|
e.preventDefault(), t(this, S).links.forEach((s) => {
|
|
149
143
|
var i;
|
|
@@ -162,9 +156,9 @@ class ut {
|
|
|
162
156
|
}
|
|
163
157
|
}
|
|
164
158
|
S = new WeakMap(), u = new WeakMap(), P = new WeakMap(), O = new WeakMap(), N = new WeakMap(), x = new WeakMap();
|
|
165
|
-
globalThis.URLPattern =
|
|
166
|
-
var C, z, g, q, H, b, T, B, j, D,
|
|
167
|
-
class
|
|
159
|
+
globalThis.URLPattern = at;
|
|
160
|
+
var C, z, g, q, H, b, T, B, j, D, et, K;
|
|
161
|
+
class vt {
|
|
168
162
|
constructor(e) {
|
|
169
163
|
h(this, D);
|
|
170
164
|
h(this, C, null);
|
|
@@ -172,17 +166,17 @@ class Lt {
|
|
|
172
166
|
h(this, g, []);
|
|
173
167
|
h(this, q, null);
|
|
174
168
|
h(this, H, []);
|
|
175
|
-
h(this, b
|
|
169
|
+
h(this, b);
|
|
176
170
|
h(this, T, null);
|
|
177
|
-
h(this, B, new
|
|
178
|
-
h(this, j,
|
|
171
|
+
h(this, B, new nt());
|
|
172
|
+
h(this, j, ht(() => {
|
|
179
173
|
const e = (s) => s.split("/").length;
|
|
180
174
|
n(this, g, t(this, g).sort((s, i) => e(s.pattern) - e(i.pattern))), this.navigate(location.pathname);
|
|
181
175
|
}, 0));
|
|
182
176
|
h(this, K, (e) => {
|
|
183
177
|
e.state && this.navigate(e.state, "none");
|
|
184
178
|
});
|
|
185
|
-
|
|
179
|
+
_ && (e != null && e.base ? n(this, z, rt(e.base)) : n(this, z, "/"), n(this, C, (e == null ? void 0 : e.rootElement) || document.body), addEventListener("popstate", t(this, K)));
|
|
186
180
|
}
|
|
187
181
|
get currentPathname() {
|
|
188
182
|
return t(this, T);
|
|
@@ -200,7 +194,7 @@ class Lt {
|
|
|
200
194
|
return t(this, B).subscribe(e);
|
|
201
195
|
}
|
|
202
196
|
defineRoute(e, s) {
|
|
203
|
-
const i = new
|
|
197
|
+
const i = new ut(e, s);
|
|
204
198
|
t(this, g).push(i), t(this, j).call(this);
|
|
205
199
|
}
|
|
206
200
|
navigate(e, s = "push") {
|
|
@@ -213,45 +207,45 @@ class Lt {
|
|
|
213
207
|
n(this, b, r);
|
|
214
208
|
const m = t(this, g).filter((l) => l.isActive), w = t(this, g).filter(
|
|
215
209
|
(l) => !m.includes(l) && l.testPathname(f)
|
|
216
|
-
),
|
|
210
|
+
), st = m.filter((l) => !l.testPathname(f)), F = m.filter((l) => l.testPathname(f));
|
|
217
211
|
let G = !0;
|
|
218
212
|
if (this.preprocessor)
|
|
219
213
|
try {
|
|
220
|
-
yield new Promise((l,
|
|
214
|
+
yield new Promise((l, it) => {
|
|
221
215
|
var V;
|
|
222
|
-
(V = this.preprocessor) == null || V.call(this, { path: i, resolve: l, reject:
|
|
216
|
+
(V = this.preprocessor) == null || V.call(this, { path: i, resolve: l, reject: it });
|
|
223
217
|
});
|
|
224
218
|
} catch (l) {
|
|
225
219
|
l ? console.error(l) : console.log("Route change canceled"), G = !1;
|
|
226
220
|
}
|
|
227
221
|
if (G && t(this, b) === r) {
|
|
228
|
-
n(this, q, F[F.length - 1]),
|
|
222
|
+
n(this, q, F[F.length - 1]), st.forEach((l) => {
|
|
229
223
|
l.close();
|
|
230
|
-
}), n(this, T, r),
|
|
224
|
+
}), n(this, T, r), ot(s, r, c, o);
|
|
231
225
|
try {
|
|
232
|
-
for (var
|
|
233
|
-
const l =
|
|
226
|
+
for (var bt = $(w), yt, At, kt; yt = !(At = yield bt.next()).done; yt = !1) {
|
|
227
|
+
const l = At.value;
|
|
234
228
|
yield l.render(((J = t(this, q)) == null ? void 0 : J.nest) || t(this, C), r), n(this, q, l);
|
|
235
229
|
}
|
|
236
|
-
} catch (
|
|
237
|
-
|
|
230
|
+
} catch (At) {
|
|
231
|
+
kt = [At];
|
|
238
232
|
} finally {
|
|
239
233
|
try {
|
|
240
|
-
|
|
234
|
+
yt && (At = bt.return) && (yield At.call(bt));
|
|
241
235
|
} finally {
|
|
242
|
-
if (
|
|
243
|
-
throw
|
|
236
|
+
if (kt)
|
|
237
|
+
throw kt[0];
|
|
244
238
|
}
|
|
245
239
|
}
|
|
246
|
-
Y(this, D,
|
|
240
|
+
Y(this, D, et).call(this), (Q = this.postprocessor) == null || Q.call(this, { pathname: r }), t(this, B).notify({ pathname: r });
|
|
247
241
|
}
|
|
248
242
|
});
|
|
249
243
|
}
|
|
250
244
|
normalizePath(e) {
|
|
251
|
-
return
|
|
245
|
+
return ct(e, t(this, z));
|
|
252
246
|
}
|
|
253
247
|
}
|
|
254
|
-
C = new WeakMap(), z = new WeakMap(), g = new WeakMap(), q = new WeakMap(), H = new WeakMap(), b = new WeakMap(), T = new WeakMap(), B = new WeakMap(), j = new WeakMap(), D = new WeakSet(),
|
|
248
|
+
C = new WeakMap(), z = new WeakMap(), g = new WeakMap(), q = new WeakMap(), H = new WeakMap(), b = new WeakMap(), T = new WeakMap(), B = new WeakMap(), j = new WeakMap(), D = new WeakSet(), et = function() {
|
|
255
249
|
const e = t(this, g).filter((i) => i.isActive), s = Array.from(
|
|
256
250
|
new Set(
|
|
257
251
|
[
|
|
@@ -265,8 +259,8 @@ C = new WeakMap(), z = new WeakMap(), g = new WeakMap(), q = new WeakMap(), H =
|
|
|
265
259
|
);
|
|
266
260
|
t(this, H).forEach((i) => {
|
|
267
261
|
i.destroy();
|
|
268
|
-
}), n(this, H, s.map((i) => new
|
|
262
|
+
}), n(this, H, s.map((i) => new mt(this, i)));
|
|
269
263
|
}, K = new WeakMap();
|
|
270
264
|
export {
|
|
271
|
-
|
|
265
|
+
vt as Router
|
|
272
266
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var gs=Object.defineProperty;var Ze=Object.getOwnPropertySymbols;var ys=Object.prototype.hasOwnProperty,Cs=Object.prototype.propertyIsEnumerable;var Je=S=>{throw TypeError(S)};var je=(S,n,s)=>n in S?gs(S,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):S[n]=s,Qe=(S,n)=>{for(var s in n||(n={}))ys.call(n,s)&&je(S,s,n[s]);if(Ze)for(var s of Ze(n))Cs.call(n,s)&&je(S,s,n[s]);return S};var Me=(S,n,s)=>n.has(S)||Je("Cannot "+s);var t=(S,n,s)=>(Me(S,n,"read from private field"),s?s.call(S):n.get(S)),i=(S,n,s)=>n.has(S)?Je("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(S):n.set(S,s),r=(S,n,s,e)=>(Me(S,n,"write to private field"),e?e.call(S,s):n.set(S,s),s),o=(S,n,s)=>(Me(S,n,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rt=require("../Store-BnA-dJsE.cjs"),vs=require("../Derived-B-2UXnVE.cjs"),Ge=require("../browser-CpzFX2xg.cjs"),Ps=require("../easings-DsS5-Kqc.cjs"),kt=require("../layout-8ryRAMGJ.cjs"),Ke=require("../math-GDWEqu7y.cjs");require("../ticker/index.cjs");const be=require("../order/index.cjs"),ts=require("../Damped-C7WAqKPh.cjs"),ws=require("../Tweened-DSXD0I0k.cjs"),Oe=require("../controls/index.cjs"),pe=require("../window-resizer/index.cjs"),Yt=require("../scroll-entries/index.cjs"),W=require("../tags-v-OSVkiQ.cjs"),Ne=require("../createStylesheet-CaDI99iu.cjs"),Xe=require("../css-unit-parser/index.cjs"),c=require("../css-property/index.cjs"),Es=require("../Viewport-BmLTk_6k.cjs"),qe=require("../element-resizer/index.cjs"),xs=require("../gestures-DHLrn6Q8.cjs"),Ye=require("../theme/index.cjs"),Ls=require("../dom-JBOkFLTh.cjs"),es=require("../function-MthRj-GJ.cjs");var m,me,v,qt,J,dt;class zs{constructor(n,s,e){i(this,m);i(this,me);i(this,v);i(this,qt,0);i(this,J,0);i(this,dt,null);r(this,m,n),r(this,me,s),r(this,v,e),Yt.scrollEntries.register(t(this,m))}get index(){return t(this,me)}get size(){return t(this,qt)}get position(){return t(this,J)}destroy(){Yt.scrollEntries.unregister(t(this,m)),t(this,m).style.transform="",this.mark(null)}setSize(n){n?(t(this,m).style.setProperty("--size",n+"px"),t(this,v).axisCSSProperty.current==="x"?(t(this,m).style.width=n+"px",t(this,m).style.height=""):(t(this,m).style.height=n+"px",t(this,m).style.width="")):(t(this,m).style.width="",t(this,m).style.height="",t(this,m).style.removeProperty("--size"))}resize(){r(this,qt,t(this,v).vertical?t(this,m).offsetHeight:t(this,m).offsetWidth),r(this,J,t(this,v).vertical?kt.getCumulativeOffsetTop(t(this,m)):kt.getCumulativeOffsetLeft(t(this,m))),r(this,J,t(this,J)-t(this,v).contentPosition)}transform(){let n=0;const s=t(this,v).viewportSize*t(this,v).sectionDistanceScaleCSSProperty.current;t(this,v).loopCSSProperty.current&&t(this,v).overscroll&&t(this,J)+t(this,qt)<t(this,v).currentScrollValue&&(n=t(this,v).distance*-1-t(this,v).gap),Yt.scrollEntries.update(t(this,m),t(this,v).axisCSSProperty.current,n);const e=t(this,v).currentScrollValue+n,h=t(this,J)-t(this,v).viewportSize-s,a=t(this,J)+t(this,qt)+s,g=Ke.clamp(e,h,a);t(this,v).vertical?t(this,m).style.transform=`translate3d(0px, ${g*-1}px, 0px)`:t(this,m).style.transform=`translate3d(${g*-1}px, 0px, 0px)`}mark(n){t(this,dt)!==n&&(t(this,dt)&&t(this,m).classList.remove(t(this,dt)),n&&t(this,m).classList.add(n),r(this,dt,n),t(this,m).dispatchEvent(new CustomEvent("sectionsChange",{composed:!0,detail:{mark:t(this,dt)}})))}}m=new WeakMap,me=new WeakMap,v=new WeakMap,qt=new WeakMap,J=new WeakMap,dt=new WeakMap;const Vs=Ne.createStylesheet({":host":{position:"relative",width:"100%",height:"100%",display:"block",outline:"none"},':host([hibernated="true"])':{display:"contents"},".static":{position:"var(--static-position, absolute)",top:"var(--static-top, 0)",left:"var(--static-left, 0)",width:"var(--static-width, 100%)",height:"var(--static-height, 100%)"},".content":{position:"relative",display:"flex",width:"100%",height:"100%",gap:"var(--gap, 0px)",willChange:"var(--will-change, transform)"},':host([hibernated="true"]) .content':{display:"contents"},"::slotted(*)":{flexShrink:"0"}});var d,It,k,Q,X,U,Y,pt,ft,G,R,Tt,Mt,At,Bt,se,K,_t,bt,N,mt,tt,gt,Ht,$t,Wt,b,ge,l,ye,Ce,w,y,I,Z,yt,et,z,C,ie,Ct,Ut,Gt,re,st,u,fe,ee,Ae,Be,_e,He,T,ve,ss,he,Pe,$e,Dt,We;class Ie extends HTMLElement{constructor(){super();i(this,u);i(this,d,null);i(this,It,new c.CSSProperty(this,"--controls",!0));i(this,k,new c.CSSProperty(this,"--axis","y"));i(this,Q,new c.CSSProperty(this,"--direction",0));i(this,X,new c.CSSProperty(this,"--pages",0,{validate:s=>Math.max(0,s-1)}));i(this,U,new c.CSSProperty(this,"--split",!1));i(this,Y,new c.CSSProperty(this,"--sectional",!1));i(this,pt,new c.CSSProperty(this,"--auto-size",!1));i(this,ft,new c.CSSProperty(this,"--wheel-max-delta",!1));i(this,G,new c.CSSProperty(this,"--sections-in-view",1));i(this,R,new c.CSSProperty(this,"--loop",!1));i(this,Tt,new c.CSSProperty(this,"--damping",20));i(this,Mt,new c.CSSProperty(this,"--mass",0));i(this,At,new c.CSSProperty(this,"--stiffness",0));i(this,Bt,new c.CSSProperty(this,"--mouse-drag",!1));i(this,se,new c.CSSProperty(this,"--section-distance-scale",.5));i(this,K,new c.CSSProperty(this,"--autoplay",0));i(this,_t,new c.CSSProperty(this,"--autoplay-pause-duration",0));i(this,bt,new c.CSSProperty(this,"--autoplay-user-direction",!1));i(this,N,new c.CSSProperty(this,"--classes",0));i(this,mt,new c.CSSProperty(this,"--current-index-start-offset",0));i(this,tt,new c.CSSProperty(this,"--current-index-end-offset",0));i(this,gt,new c.CSSProperty(this,"--focus-delay",0));i(this,Ht,new c.CSSProperty(this,"--focus-duration",3e3));i(this,$t,new c.CSSProperty(this,"--disabled",!1));i(this,Wt,new c.CSSProperty(this,"--hibernated",!1));i(this,b,null);i(this,ge,null);i(this,l,[]);i(this,ye,0);i(this,Ce,0);i(this,w,0);i(this,y,0);i(this,I,0);i(this,Z,null);i(this,yt,null);i(this,et,null);i(this,z,null);i(this,C,new Rt.Store(0));i(this,ie,0);i(this,Ct,0);i(this,Ut,!0);i(this,Gt,!0);i(this,re);i(this,st,new ws.Tweened);i(this,T,()=>{t(this,d).unlistenAnimationFrame();const s=this.currentScrollValue/t(this,y)||0,e=t(this,C).current;if(r(this,ye,this.vertical?kt.getCumulativeOffsetTop(this):kt.getCumulativeOffsetLeft(this)),r(this,Ce,this.vertical?kt.getCumulativeOffsetTop(t(this,b)):kt.getCumulativeOffsetLeft(t(this,b))),r(this,w,this.vertical?this.offsetHeight:this.offsetWidth),this.vertical?r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).rowGap)):r(this,I,Xe.cssUnitParser.parse(getComputedStyle(t(this,b)).columnGap)),t(this,pt).current&&t(this,l).length){const h=t(this,G).current,a=(t(this,w)-t(this,I)*(h-1))/h;t(this,l).forEach(g=>{g.setSize(a)})}else t(this,l).forEach(h=>{h.setSize()});if(t(this,l).forEach(h=>{h.resize()}),t(this,X).current){r(this,y,t(this,w)*t(this,X).current);const h=t(this,y)+t(this,w);this.vertical?(t(this,b).style.width=h+"px",t(this,b).style.height="100%"):(t(this,b).style.height=h+"px",t(this,b).style.width="100%")}else this.vertical?(t(this,b).style.width="100%",t(this,b).style.height="max-content",r(this,y,t(this,b).offsetHeight-t(this,w))):(t(this,b).style.width="max-content",t(this,b).style.height="100%",r(this,y,t(this,b).offsetWidth-t(this,w)));if(!t(this,R).current){const h=getComputedStyle(this),a=this.vertical?parseFloat(h.paddingBlockStart)+parseFloat(h.paddingBlockEnd):parseFloat(h.paddingInlineStart)+parseFloat(h.paddingInlineEnd);r(this,y,t(this,y)+a),t(this,d).max=t(this,y)}if(t(this,R).current&&t(this,l).length){const h=t(this,l)[t(this,l).length-1],a=h.position+h.size-t(this,w),g=t(this,y)-a;r(this,Ct,h.position+h.size+g)}else r(this,Ct,t(this,y));if(t(this,Y).current&&t(this,l).length){const h=t(this,l)[e];t(this,d).set(h.position,{equalize:!0})}else t(this,d).set(s*t(this,y),{equalize:!0})});i(this,ve,()=>{const s=this.currentScrollValue;if(r(this,ie,Math.max(0,s-t(this,y))),t(this,l).length){let e=0;for(let h=0;h<t(this,l).length;h++){const a=t(this,l)[h];a.transform(),this.targetScrollValue+a.size/2>=a.position&&(e=h)}t(this,C).current=e}else this.vertical?t(this,b).style.transform=`translate3d(0px, ${s*-1}px, 0px)`:t(this,b).style.transform=`translate3d(${s*-1}px, 0px, 0px)`;Yt.scrollEntries.update(this,t(this,k).current,s)});i(this,he,(s,e)=>{t(this,It).current&&(t(this,bt).current&&(t(this,z).pauseAndContinue(t(this,_t).current),t(this,z).direction=Math.sign(e)||1),t(this,Pe).call(this,s,e))});i(this,Pe,(s,e)=>{if(t(this,Q).current){if(t(this,Q).current<0&&e>0)return;if(t(this,Q).current>0&&e<0)return}if(t(this,st).unlistenAnimationFrame(),!t(this,K).current&&t(this,gt).current&&(clearInterval(t(this,re)),r(this,re,setTimeout(()=>{const h=o(this,u,We).call(this);h&&this.scrollToSection(h.index,{tween:{duration:t(this,Ht).current,easing:Ps.easeInOutExpo}})},t(this,gt).current))),!(s==="drag"&&!Es.device.isMobile&&!t(this,Bt).current))if(t(this,Y).current){const h=Math.sign(e);t(this,l).length?this.shiftSections(h):t(this,d).shift(h*t(this,w))}else t(this,d).shift(e)});Ge.isBrowser&&(r(this,d,new ts.Damped(0,{damping:.01,min:0,order:be.TICK_ORDER.SCROLL})),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Vs),W.element(this,{tabIndex:0,children:[W.div({class:"static",children:[W.slot({name:"static"})]}),W.div({class:"content",children:[W.slot({ref:e=>r(this,ge,e)})],style:{flexDirection:new vs.Derived(t(this,k),e=>e==="x"?"row":"column")},ref:e=>r(this,b,e)})]}),r(this,Z,new Oe.WheelControls({element:t(this,b)})),t(this,Z).changeEvent.subscribe(t(this,he)),r(this,yt,new Oe.KeyboardControls({element:this})),t(this,yt).changeEvent.subscribe(t(this,he)),r(this,et,new Oe.DragControls({element:t(this,b)})),t(this,et).changeEvent.subscribe(t(this,he)),r(this,z,new Oe.AutoplayControls({culling:this})),t(this,z).changeEvent.subscribe(t(this,Pe)),t(this,k).subscribe(({current:e})=>{t(this,b).style.flexDirection=e==="x"?"row":"column",t(this,Z).axis=t(this,ft).current?"max":e,t(this,yt).dimension=e==="x"?"width":"height",t(this,et).axis=e,e==="x"?this.style.touchAction="pan-y":e==="y"&&(this.style.touchAction="pan-x"),this.isConnected&&t(this,T).call(this)}),t(this,ft).subscribe(e=>{t(this,Z).axis=e.current?"max":t(this,k).current}),t(this,X).subscribe(()=>{this.isConnected&&t(this,T).call(this)}),t(this,U).subscribe(({current:e})=>{this.isConnected&&(e?o(this,u,fe).call(this):o(this,u,ee).call(this))}),t(this,Y).subscribe(e=>{t(this,Z).debounce=e.current,t(this,et).swipe=e.current,t(this,z).interval=e.current,this.isConnected&&(e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,pt).subscribe(e=>{this.isConnected&&(t(this,T).call(this),e.current&&!e.previous&&!t(this,l).length?o(this,u,fe).call(this):!e.current&&e.previous&&t(this,l).length&&o(this,u,ee).call(this))}),t(this,G).subscribe(e=>{this.isConnected&&(t(this,T).call(this),o(this,u,Dt).call(this))}),t(this,R).subscribe(e=>{e.current?(this.isConnected&&(t(this,l).length||(t(this,U).current=!0)),t(this,l).length&&(t(this,d).max=1/0,t(this,d).min=-1/0)):(r(this,ie,0),t(this,d).max=t(this,y),t(this,d).min=0)}),t(this,Tt).subscribe(e=>{t(this,d).damping=e.current}),t(this,Mt).subscribe(e=>{t(this,d).mass=e.current}),t(this,At).subscribe(e=>{t(this,d).stiffness=e.current}),t(this,$t).subscribe(e=>{e.current&&!e.previous?o(this,u,Ae).call(this):!e.current&&e.previous&&o(this,u,Be).call(this)}),t(this,Wt).subscribe(e=>{e.current&&!e.previous?o(this,u,_e).call(this):!e.current&&e.previous&&o(this,u,He).call(this)}),t(this,K).subscribe(e=>{t(this,z).speed=e.current,e.current&&!e.previous?t(this,z).connect():!e.current&&e.previous&&t(this,z).disconnect()}),t(this,bt).subscribe(e=>{e.current||(t(this,z).direction=1)}),t(this,N).subscribe(e=>{this.isConnected&&o(this,u,Dt).call(this)}),t(this,mt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,tt).subscribe(e=>{this.isConnected&&t(this,N).current&&o(this,u,Dt).call(this)}),t(this,d).isRunning.subscribe(e=>{this.classList.toggle("active",e.current)}),t(this,C).subscribe(e=>{t(this,l).length&&o(this,u,Dt).call(this)}),t(this,st).subscribe(e=>{t(this,st).isRunning.current&&t(this,d).set(e.current)}))}get damped(){return t(this,d)}get controlsCSSProperty(){return t(this,It)}get axisCSSProperty(){return t(this,k)}get directionCSSProperty(){return t(this,Q)}get pagesCSSProperty(){return t(this,X)}get splitCSSProperty(){return t(this,U)}get sectionalCSSProperty(){return t(this,Y)}get autoSizeCSSProperty(){return t(this,pt)}get wheelMaxDeltaCSSProperty(){return t(this,ft)}get sectionsInViewCSSProperty(){return t(this,G)}get loopCSSProperty(){return t(this,R)}get dampingCSSProperty(){return t(this,Tt)}get massCSSProperty(){return t(this,Mt)}get stiffnessCSSProperty(){return t(this,At)}get mouseDragCSSProperty(){return t(this,Bt)}get sectionDistanceScaleCSSProperty(){return t(this,se)}get autoplayCSSProperty(){return t(this,K)}get autoplayPauseDurationCSSProperty(){return t(this,_t)}get autoplayUserDirectionCSSProperty(){return t(this,bt)}get classesCSSProperty(){return t(this,N)}get currentIndexStartOffsetCSSProperty(){return t(this,mt)}get currentIndexEndOffsetCSSProperty(){return t(this,tt)}get focusDelayCSSProperty(){return t(this,gt)}get focusDurationCSSProperty(){return t(this,Ht)}get disabledCSSProperty(){return t(this,$t)}get hibernatedCSSProperty(){return t(this,Wt)}get currentScrollValue(){return o(this,u,$e).call(this,"current")}get targetScrollValue(){return o(this,u,$e).call(this,"target")}get contentElement(){return t(this,b)}get sections(){return t(this,l)}get position(){return t(this,ye)}get contentPosition(){return t(this,Ce)}get viewportSize(){return t(this,w)}get scrollSize(){return t(this,y)}get gap(){return t(this,I)}get counter(){return t(this,C)}get limit(){return t(this,l).length-t(this,G).current}get distance(){return t(this,Ct)}get loopDistance(){return t(this,R).current?t(this,Ct)+t(this,I):t(this,Ct)}get overscroll(){return t(this,ie)}get vertical(){return t(this,k).current==="y"}get currentProgress(){return this.currentScrollValue/this.loopDistance||0}get targetProgress(){return this.targetScrollValue/this.loopDistance||0}get scrollWidth(){return t(this,k).current==="y"?0:t(this,d).distance}get scrollHeight(){return t(this,k).current==="x"?0:t(this,d).distance}onScroll(...s){return t(this,d).subscribe(...s)}offScroll(...s){t(this,d).unsubscribe(...s)}range(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress<a?0:this.currentProgress>g?1:(this.currentProgress-a)/(g-a)}curve(s,e,h=0){return Math.sin(this.range(s,e,h)*Math.PI)}visible(s,e,h=0){const a=s-h,g=a+e+h*2;return this.currentProgress>=a&&this.currentProgress<=g}scrollToSection(s,e){if(!t(this,l).length)return;const h=t(this,C).current;o(this,u,ss).call(this,s);const a=t(this,l)[h],g=t(this,l)[t(this,C).current];if(a&&g){let q=0;const te=o(this,u,We).call(this),ms=te?this.targetScrollValue-te.position:0;t(this,R).current?t(this,C).current===0&&h===t(this,l).length-1?q=t(this,y)+t(this,w)-a.position+t(this,I):t(this,C).current===t(this,l).length-1&&h===0?q=g.position-(t(this,y)+t(this,w)+t(this,I)):q=g.position-a.position:q=g.position-a.position,this.shiftPosition(q-ms,e)}}shiftSections(s,e){t(this,l).length&&this.scrollToSection(t(this,C).current+s,e)}setPosition(s,e){e!=null&&e.tween?(t(this,st).set(t(this,d).current,{equalize:!0}),t(this,st).set(s,Qe({},e.tween))):t(this,d).set(s,{equalize:(e==null?void 0:e.behaviour)==="instant"})}shiftPosition(s,e){this.setPosition(t(this,d).target+s,e)}connectedCallback(){t(this,It).observe(),t(this,k).observe(),t(this,Q).observe(),t(this,X).observe(),t(this,U).observe(),t(this,Y).observe(),t(this,pt).observe(),t(this,ft).observe(),t(this,G).observe(),t(this,R).observe(),t(this,Tt).observe(),t(this,Mt).observe(),t(this,At).observe(),t(this,Bt).observe(),t(this,se).observe(),t(this,K).observe(),t(this,K).observe(),t(this,_t).observe(),t(this,bt).observe(),t(this,N).observe(),t(this,mt).observe(),t(this,tt).observe(),t(this,gt).observe(),t(this,Ht).observe(),t(this,$t).observe(),t(this,Wt).observe(),o(this,u,He).call(this)}disconnectedCallback(){t(this,It).unobserve(),t(this,k).unobserve(),t(this,Q).unobserve(),t(this,X).unobserve(),t(this,U).unobserve(),t(this,Y).unobserve(),t(this,pt).unobserve(),t(this,ft).unobserve(),t(this,G).unobserve(),t(this,R).unobserve(),t(this,Tt).unobserve(),t(this,Mt).unobserve(),t(this,At).unobserve(),t(this,Bt).unobserve(),t(this,se).unobserve(),t(this,K).unobserve(),t(this,_t).unobserve(),t(this,bt).unobserve(),t(this,N).unobserve(),t(this,mt).unobserve(),t(this,tt).unobserve(),t(this,gt).unobserve(),t(this,Ht).unobserve(),t(this,$t).unobserve(),t(this,Wt).unobserve(),o(this,u,_e).call(this)}}d=new WeakMap,It=new WeakMap,k=new WeakMap,Q=new WeakMap,X=new WeakMap,U=new WeakMap,Y=new WeakMap,pt=new WeakMap,ft=new WeakMap,G=new WeakMap,R=new WeakMap,Tt=new WeakMap,Mt=new WeakMap,At=new WeakMap,Bt=new WeakMap,se=new WeakMap,K=new WeakMap,_t=new WeakMap,bt=new WeakMap,N=new WeakMap,mt=new WeakMap,tt=new WeakMap,gt=new WeakMap,Ht=new WeakMap,$t=new WeakMap,Wt=new WeakMap,b=new WeakMap,ge=new WeakMap,l=new WeakMap,ye=new WeakMap,Ce=new WeakMap,w=new WeakMap,y=new WeakMap,I=new WeakMap,Z=new WeakMap,yt=new WeakMap,et=new WeakMap,z=new WeakMap,C=new WeakMap,ie=new WeakMap,Ct=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,re=new WeakMap,st=new WeakMap,u=new WeakSet,fe=function(){o(this,u,ee).call(this),t(this,ge).assignedElements().forEach((s,e)=>{s instanceof HTMLElement&&t(this,l).push(new zs(s,e,this))}),t(this,b).style.transform="",this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0})),t(this,T).call(this),o(this,u,Dt).call(this)},ee=function(){t(this,l).forEach(s=>{s.destroy()}),r(this,l,[]),t(this,C).current=0,t(this,d).reset(),this.dispatchEvent(new CustomEvent("sectionsChange",{composed:!0}))},Ae=function(){t(this,Ut)||(r(this,Ut,!0),t(this,d).unsubscribe(t(this,ve)),t(this,d).unlistenAnimationFrame(),t(this,Z).disconnect(),t(this,yt).disconnect(),t(this,et).disconnect(),t(this,z).disconnect(),clearInterval(t(this,re)),t(this,st).unlistenAnimationFrame())},Be=function(){t(this,Ut)&&(r(this,Ut,!1),t(this,d).subscribe(t(this,ve)),t(this,Z).connect(),t(this,yt).connect(),t(this,et).connect(),t(this,K).current&&t(this,z).connect())},_e=function(){t(this,Gt)||(r(this,Gt,!0),pe.windowResizer.unsubscribe(t(this,T)),qe.elementResizer.unsubscribe(t(this,T)),t(this,d).reset(),o(this,u,Ae).call(this),t(this,b).style.transform="",t(this,U).current&&o(this,u,ee).call(this),Yt.scrollEntries.unregister(this))},He=function(){t(this,Gt)&&(r(this,Gt,!1),t(this,U).current&&o(this,u,fe).call(this),Yt.scrollEntries.register(this),pe.windowResizer.subscribe(t(this,T),be.RESIZE_ORDER.SCROLL),qe.elementResizer.subscribe(this,t(this,T)),o(this,u,Be).call(this))},T=new WeakMap,ve=new WeakMap,ss=function(s){t(this,R).current?(t(this,C).current=s%t(this,l).length,t(this,C).current=t(this,C).current<0?t(this,l).length+t(this,C).current:t(this,C).current):t(this,C).current=Ke.clamp(s,0,this.limit)},he=new WeakMap,Pe=new WeakMap,$e=function(s="current"){if(t(this,R).current&&t(this,l).length){const e=t(this,d)[s]%(t(this,y)+t(this,w)+t(this,I));return e<0?t(this,y)+e+t(this,w)+t(this,I):e}else return t(this,d)[s]},Dt=function(){if(t(this,N).current&&t(this,l).length){const s=t(this,C).current+t(this,mt).current;s===0?this.classList.add("start"):this.classList.remove("start"),s===this.limit?this.classList.add("end"):this.classList.remove("end");const e=t(this,G).current+t(this,tt).current;t(this,l).forEach((h,a)=>{const g=s-this.limit-1+t(this,tt).current,q=s+e,te=this.sections.length-q;a>=s&&a<q||a<=g?h.mark("current"):a>=q&&a<q+te/2||a<=g+e?h.mark("next"):h.mark("previous")})}},We=function(){let s=null,e=1/0;for(let h=0;h<t(this,l).length;h++){const a=Math.abs(t(this,l)[h].position-this.targetScrollValue);a<e&&(e=a,s=h)}return s!==null?t(this,l)[s]:null};customElements.get("e-scroll")||customElements.define("e-scroll",Ie);var we;class Te extends HTMLElement{constructor(){super(...arguments);i(this,we,null)}get scrollElement(){return t(this,we)}connectedCallback(){const s=Ls.findParentElement(this,Ie);s instanceof Ie?r(this,we,s):console.error(this,"e-scroll not found")}}we=new WeakMap;const Fs=Ne.createStylesheet({":host":{display:"inline-block",zIndex:"1",backgroundColor:Ye.aptechkaTheme.colorFont.var},':host([axis="y"])':{position:"absolute",right:"0",top:"0",width:"1vmin",height:"100%"},':host([axis="x"])':{position:"absolute",left:"0",bottom:"0",width:"100%",height:"1vmin"},".default-thumb":{backgroundColor:Ye.aptechkaTheme.colorMain.var,borderRadius:"1vmin",touchAction:"none"},"::slotted(*)":{touchAction:"none"}});var ne,D,it,rt,oe,ce,Kt,Ee,xe,Le;class is extends Te{constructor(){super();i(this,ne,null);i(this,D,null);i(this,it,!1);i(this,rt,0);i(this,oe,0);i(this,ce,0);i(this,Kt,()=>{r(this,it,this.offsetWidth>this.offsetHeight);const s=t(this,it)?this.offsetWidth:this.offsetHeight;r(this,rt,s/((this.scrollElement.scrollSize+this.scrollElement.viewportSize)/s)),r(this,rt,Math.max(t(this,rt),30)),t(this,it)?(t(this,D).style.width=t(this,rt)+"px",t(this,D).style.height="100%"):(t(this,D).style.width="100%",t(this,D).style.height=t(this,rt)+"px"),r(this,oe,s-t(this,rt)),this.scrollElement.scrollSize||(this.style.display="none")});i(this,Ee,()=>{r(this,ce,this.scrollElement.currentProgress*t(this,oe)),t(this,it)?t(this,D).style.transform=`translate3d(${t(this,ce)}px, 0px, 0px)`:t(this,D).style.transform=`translate3d(0px, ${t(this,ce)}px, 0px)`});i(this,xe,()=>{this.setAttribute("axis",this.scrollElement.axisCSSProperty.current)});i(this,Le,s=>{document.documentElement.classList.add("grabbing"),xs.setupDrag(a=>{const g=t(this,it)?a.x:a.y,q=this.scrollElement.distance/t(this,oe),te=(g-h)*q;this.scrollElement.setPosition(e+te)},()=>{document.documentElement.classList.remove("grabbing")});const e=this.scrollElement.targetScrollValue,h=t(this,it)?s.x:s.y});Ge.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(Fs),W.element(this,{slot:"static","drag-dead-zone":"",children:[W.slot({ref:e=>r(this,ne,e),children:W.div({class:"default-thumb"})})]}))}get thumbElement(){return t(this,D)}connectedCallback(){super.connectedCallback();const s=t(this,ne).assignedElements()[0]||t(this,ne).firstElementChild;r(this,D,s),t(this,D).addEventListener("pointerdown",t(this,Le)),pe.windowResizer.subscribe(t(this,Kt),be.RESIZE_ORDER.SCROLL+1),qe.elementResizer.subscribe(this,t(this,Kt)),this.scrollElement.onScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.subscribe(t(this,xe))}disconnectedCallback(){t(this,D).removeEventListener("pointerdown",t(this,Le)),pe.windowResizer.unsubscribe(t(this,Kt)),qe.elementResizer.unsubscribe(t(this,Kt)),this.scrollElement.offScroll(t(this,Ee)),this.scrollElement.axisCSSProperty.unsubscribe(t(this,xe))}}ne=new WeakMap,D=new WeakMap,it=new WeakMap,rt=new WeakMap,oe=new WeakMap,ce=new WeakMap,Kt=new WeakMap,Ee=new WeakMap,xe=new WeakMap,Le=new WeakMap;customElements.get("e-scrollbar")||customElements.define("e-scrollbar",is);const ks=Ne.createStylesheet({button:{all:"inherit"}});class rs extends Te{constructor(){super(),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ks),Ge.isBrowser&&W.element(this,{children:[W.button({onClick:()=>{this.handleClick()},children:[W.slot()]})]})}}class hs extends rs{handleClick(){const n=this.getAttribute("index"),s=this.getAttribute("behaviour");this.scrollElement.scrollToSection(parseInt(n||"0"),{behaviour:s})}}customElements.get("e-scroll-set-button")||customElements.define("e-scroll-set-button",hs);class ns extends rs{handleClick(){const n=this.getAttribute("step"),s=this.getAttribute("behaviour");this.scrollElement.shiftSections(parseInt(n||"1"),{behaviour:s})}}customElements.get("e-scroll-step-button")||customElements.define("e-scroll-step-button",ns);var ht,vt,le,ze,Ve,ue;class Rs{constructor(n,s,e){i(this,ht);i(this,vt);i(this,le);i(this,ze);i(this,Ve,()=>{t(this,vt).scrollToSection(t(this,le),{behaviour:t(this,ze)})});i(this,ue,()=>{t(this,ht).classList.toggle("current",t(this,vt).counter.current===t(this,le))});r(this,ht,document.createElement("button")),r(this,vt,n),r(this,ze,e),r(this,le,s),t(this,ht).addEventListener("click",t(this,Ve)),t(this,vt).counter.subscribe(t(this,ue)),t(this,ue).call(this)}get element(){return t(this,ht)}destroy(){t(this,ht).removeEventListener("click",t(this,Ve)),t(this,vt).counter.unsubscribe(t(this,ue)),t(this,ht).remove()}}ht=new WeakMap,vt=new WeakMap,le=new WeakMap,ze=new WeakMap,Ve=new WeakMap,ue=new WeakMap;var Pt,ae;class os extends Te{constructor(){super(...arguments);i(this,Pt,[]);i(this,ae,es.debounce(()=>{t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[]);for(let s=0;s<this.scrollElement.sections.length;s++){const e=new Rs(this.scrollElement,s,this.getAttribute("behaviour")||"smooth");this.appendChild(e.element),t(this,Pt).push(e)}},0))}connectedCallback(){super.connectedCallback(),this.scrollElement.addEventListener("sectionsChange",t(this,ae)),t(this,ae).call(this)}disconnectedCallback(){this.scrollElement.removeEventListener("sectionsChange",t(this,ae)),t(this,Pt).forEach(s=>s.destroy()),r(this,Pt,[])}}Pt=new WeakMap,ae=new WeakMap;customElements.get("e-scroll-bullet-buttons")||customElements.define("e-scroll-bullet-buttons",os);var Nt,Zt,jt,Jt,wt,Et,xt,Lt,V,M,A,B,zt,E,nt,ot,ct,lt,ut,x,_,H,at,St,j,Fe,p,Qt,Xt,ke,L,Vt,O,F,$,Se,Ft,P,f,ls,us,as,Ss,ds,ps,Re,de,Ot,fs,bs,Ue,De;class cs extends Te{constructor(){super();i(this,f);i(this,Nt,new c.CSSProperty(this,"--damping",20));i(this,Zt,new c.CSSProperty(this,"--mass",0));i(this,jt,new c.CSSProperty(this,"--stiffness",0));i(this,Jt,new c.CSSProperty(this,"--target",""));i(this,wt,new c.CSSProperty(this,"--disabled",!1));i(this,Et,new c.CSSProperty(this,"--distance-offset",0,{rawValueCheck:!1}));i(this,xt,new c.CSSProperty(this,"--start-offset",0,{rawValueCheck:!1}));i(this,Lt,new c.CSSProperty(this,"--capture-once",!1));i(this,V,new c.CSSProperty(this,"--captured",""));i(this,M,new c.CSSProperty(this,"--released",""));i(this,A,new c.CSSProperty(this,"--captured-from-start",""));i(this,B,new c.CSSProperty(this,"--captured-from-finish",""));i(this,zt,new c.CSSProperty(this,"--released-from-start",""));i(this,E,new c.CSSProperty(this,"--released-from-finish",""));i(this,nt,new c.CSSProperty(this,"--passed-var",""));i(this,ot,new c.CSSProperty(this,"--progress-var",""));i(this,ct,new c.CSSProperty(this,"--distance-var",""));i(this,lt,new c.CSSProperty(this,"--start-var",""));i(this,ut,new c.CSSProperty(this,"--finish-var",""));i(this,x,new Rt.Store(!1));i(this,_,new Rt.Store(!1));i(this,H,new Rt.Store(!1));i(this,at,new Rt.Store(!1));i(this,St,new Rt.Store(!1));i(this,j,new Rt.Store(!1));i(this,Fe,[]);i(this,p,this);i(this,Qt,0);i(this,Xt,0);i(this,ke,0);i(this,L,new ts.Damped(0,{order:be.TICK_ORDER.SCROLL-1,min:0,max:1}));i(this,Vt,0);i(this,O,0);i(this,F,0);i(this,$,0);i(this,Se,!1);i(this,Ft,!1);i(this,P,!0);i(this,Re,()=>{t(this,P)||(this.resize(),t(this,de).call(this))});i(this,de,()=>{!t(this,P)&&t(this,Se)&&this.tick()});i(this,De,es.debounce(()=>{const s=Yt.scrollEntries.getAll(this).reverse();let e=0;s.forEach((h,a)=>{h.element===this.scrollElement&&(e=a)}),r(this,Fe,s.slice(e+1))},0))}get distanceOffsetCSSProperty(){return t(this,Et)}get startOffsetCSSProperty(){return t(this,xt)}get captureOnceCSSProperty(){return t(this,Lt)}get capturedCSSProperty(){return t(this,V)}get releasedCSSProperty(){return t(this,M)}get capturedFromStartCSSProperty(){return t(this,A)}get capturedFromFinishCSSProperty(){return t(this,B)}get releasedFromStartCSSProperty(){return t(this,zt)}get releasedFromFinishCSSProperty(){return t(this,E)}get passedVarCSSProperty(){return t(this,nt)}get progressVarCSSProperty(){return t(this,ot)}get distanceVarCSSProperty(){return t(this,ct)}get startVarCSSProperty(){return t(this,lt)}get finishVarCSSProperty(){return t(this,ut)}get disabledCSSProperty(){return t(this,wt)}get dampingCSSProperty(){return t(this,Nt)}get massCSSProperty(){return t(this,Zt)}get stiffnessCSSProperty(){return t(this,jt)}get targetCSSProperty(){return t(this,Jt)}get isCaptured(){return t(this,x)}get isReleased(){return t(this,_)}get isCapturedFromStart(){return t(this,H)}get isReleasedFromStart(){return t(this,at)}get isCapturedFromFinish(){return t(this,St)}get isReleasedFromFinish(){return t(this,j)}get directionPosition(){return t(this,Qt)}get directionSize(){return t(this,Xt)}get passed(){return t(this,L)}get progress(){return t(this,Vt)}get start(){return t(this,O)}get finish(){return t(this,$)}get distance(){return t(this,F)}get isCapturedOnce(){return t(this,Ft)}get isDisabled(){return t(this,P)}resize(){r(this,Xt,this.scrollElement.vertical?this.offsetHeight:this.offsetWidth),r(this,Qt,this.scrollElement.vertical?kt.getCumulativeOffsetTop(this,this.scrollElement):kt.getCumulativeOffsetLeft(this,this.scrollElement)),r(this,O,this.getStart()),r(this,F,this.getDistance()),r(this,O,t(this,O)+t(this,xt).current),r(this,F,t(this,F)+t(this,Et).current),r(this,$,t(this,O)+t(this,F)),this.scrollElement.currentScrollValue>t(this,$)&&!t(this,x).current&&!t(this,_).current&&(t(this,x).current=!0),this.setVar(t(this,lt).current,t(this,O)),this.setVar(t(this,ut).current,t(this,$)),this.setVar(t(this,ct).current,t(this,F)),t(this,L).max=t(this,F),r(this,Se,!0)}tick(){let s=this.scrollElement.currentScrollValue;t(this,Fe).forEach(h=>{s+=h.value}),t(this,L).set(s-t(this,O));const e=Math.round(s);t(this,x).current&&(e>t(this,O)?t(this,H).current||o(this,f,as).call(this):t(this,H).current&&!t(this,at).current&&o(this,f,ds).call(this),e<t(this,$)?t(this,j).current&&!t(this,St).current&&o(this,f,Ss).call(this):t(this,H).current&&!t(this,j).current&&o(this,f,ps).call(this)),e>t(this,O)&&e<t(this,$)?t(this,x).current||o(this,f,ls).call(this):t(this,x).current&&(t(this,L).set(Ke.step(t(this,F)/2,t(this,L).current,0,t(this,F))),o(this,f,us).call(this)),t(this,Ft)&&t(this,Lt).current&&(t(this,V).current&&t(this,p).classList.add(t(this,V).current),r(this,P,!0))}disable(){this.style.cssText="",r(this,Qt,0),r(this,Xt,0),t(this,L).reset(),r(this,Vt,0),r(this,O,0),r(this,F,0),r(this,$,0),r(this,Se,!1),t(this,x).current=!1,t(this,_).current=!1,t(this,H).current=!1,t(this,at).current=!1,t(this,St).current=!1,t(this,j).current=!1,r(this,Ft,!1),r(this,P,!0),o(this,f,Ue).call(this)}enable(){r(this,P,!1)}connectedCallback(){super.connectedCallback(),t(this,Nt).observe(),t(this,Zt).observe(),t(this,jt).observe(),t(this,Jt).observe(),t(this,wt).observe(),t(this,Et).observe(),t(this,xt).observe(),t(this,Lt).observe(),t(this,V).observe(),t(this,M).observe(),t(this,A).observe(),t(this,B).observe(),t(this,zt).observe(),t(this,E).observe(),t(this,nt).observe(),t(this,ot).observe(),t(this,ct).observe(),t(this,lt).observe(),t(this,ut).observe();let s=!1;this.scrollElement.addEventListener("sectionsChange",t(this,De)),t(this,De).call(this),t(this,wt).current||this.enable(),t(this,Nt).subscribe(e=>{t(this,L).damping=e.current}),t(this,Zt).subscribe(e=>{t(this,L).mass=e.current}),t(this,jt).subscribe(e=>{t(this,L).stiffness=e.current}),t(this,Jt).subscribe(e=>{e.previous&&o(this,f,Ue).call(this),e.current?e.current==="parent"?r(this,p,this.parentElement||this):r(this,p,document.querySelector(e.current)||this):r(this,p,this)}),t(this,wt).subscribe(e=>{e.current&&!e.previous?this.disable():!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,xt).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,Et).subscribe(()=>{s&&!t(this,P)&&this.resize()}),t(this,V).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,A).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,B).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,M).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,zt).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,E).subscribe(e=>{o(this,f,Ot).call(this,e)}),t(this,Lt).subscribe(e=>{t(this,P)||!e.current&&e.previous&&(this.resize(),this.enable())}),t(this,nt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,this.passed.current))}),t(this,ot).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,Vt)))}),t(this,lt).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,O)))}),t(this,ut).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,$)))}),t(this,ct).subscribe(e=>{t(this,P)||(this.removeVar(e.previous),this.setVar(e.current,t(this,F)))}),t(this,L).subscribe(e=>{r(this,Vt,t(this,L).current/t(this,F)||0),this.setVar(t(this,nt).current,t(this,L).current.toFixed(6)),this.setVar(t(this,ot).current,t(this,Vt).toFixed(6))}),pe.windowResizer.subscribe(t(this,Re),be.RESIZE_ORDER.SEGMENT),this.scrollElement.onScroll(t(this,de)),s=!0}disconnectedCallback(){pe.windowResizer.unsubscribe(t(this,Re)),this.scrollElement.offScroll(t(this,de)),t(this,Nt).close(),t(this,Zt).close(),t(this,jt).close(),t(this,Jt).close(),t(this,wt).close(),t(this,Et).close(),t(this,xt).close(),t(this,Lt).close(),t(this,V).close(),t(this,M).close(),t(this,A).close(),t(this,B).close(),t(this,zt).close(),t(this,E).close(),t(this,nt).close(),t(this,ot).close(),t(this,ct).close(),t(this,lt).close(),t(this,ut).close(),t(this,x).close(),t(this,_).close(),t(this,H).close(),t(this,at).close(),t(this,St).close(),t(this,j).close(),this.disable()}removeVar(s){s&&t(this,p).style.removeProperty(`--${s}`)}setVar(s,e){s&&t(this,p).style.setProperty(`--${s}`,e.toString())}getDistance(){return t(this,Xt)+t(this,ke)}getStart(){return t(this,Qt)-t(this,ke)}}Nt=new WeakMap,Zt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,wt=new WeakMap,Et=new WeakMap,xt=new WeakMap,Lt=new WeakMap,V=new WeakMap,M=new WeakMap,A=new WeakMap,B=new WeakMap,zt=new WeakMap,E=new WeakMap,nt=new WeakMap,ot=new WeakMap,ct=new WeakMap,lt=new WeakMap,ut=new WeakMap,x=new WeakMap,_=new WeakMap,H=new WeakMap,at=new WeakMap,St=new WeakMap,j=new WeakMap,Fe=new WeakMap,p=new WeakMap,Qt=new WeakMap,Xt=new WeakMap,ke=new WeakMap,L=new WeakMap,Vt=new WeakMap,O=new WeakMap,F=new WeakMap,$=new WeakMap,Se=new WeakMap,Ft=new WeakMap,P=new WeakMap,f=new WeakSet,ls=function(){t(this,x).current=!0,t(this,_).current=!1,r(this,Ft,!0),t(this,M).current&&t(this,p).classList.remove(t(this,M).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,E).current&&t(this,p).classList.remove(t(this,E).current),t(this,V).current&&t(this,p).classList.add(t(this,V).current)},us=function(){t(this,_).current=!0,t(this,x).current=!1,r(this,Ft,!0),t(this,V).current&&t(this,p).classList.remove(t(this,V).current),t(this,A).current&&t(this,p).classList.remove(t(this,A).current),t(this,B).current&&t(this,p).classList.remove(t(this,B).current),t(this,M).current&&t(this,p).classList.add(t(this,M).current)},as=function(){t(this,x).current=!0,t(this,H).current=!0,t(this,at).current=!1,t(this,A).current&&t(this,p).classList.add(t(this,A).current)},Ss=function(){t(this,x).current=!0,t(this,St).current=!0,t(this,j).current=!1,t(this,B).current&&t(this,p).classList.add(t(this,B).current)},ds=function(){t(this,_).current=!0,t(this,at).current=!0,t(this,H).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},ps=function(){t(this,_).current=!0,t(this,j).current=!0,t(this,St).current=!1,t(this,E).current&&t(this,p).classList.add(t(this,E).current)},Re=new WeakMap,de=new WeakMap,Ot=function(s){if(t(this,P)){s.previous&&t(this,p).classList.remove(s.previous),s.current&&t(this,p).classList.remove(s.current);return}s.current&&t(this,x).current?(s.previous&&t(this,p).classList.remove(s.previous),t(this,p).classList.add(s.current)):!s.current&&s.previous&&t(this,p).classList.remove(s.previous)},fs=function(...s){s.forEach(e=>{e&&t(this,p).classList.remove(e)})},bs=function(...s){s.forEach(e=>{e&&t(this,p).style.removeProperty(`--${e}`)})},Ue=function(){o(this,f,fs).call(this,t(this,V).current,t(this,A).current,t(this,B).current,t(this,M).current,t(this,zt).current,t(this,E).current),o(this,f,bs).call(this,t(this,nt).current,t(this,ot).current,t(this,ct).current,t(this,lt).current,t(this,ut).current)},De=new WeakMap;customElements.get("e-scroll-segment")||customElements.define("e-scroll-segment",cs);exports.ScrollBulletButtonsElement=os;exports.ScrollElement=Ie;exports.ScrollSegmentElement=cs;exports.ScrollSetButtonElement=hs;exports.ScrollStepButtonElement=ns;exports.ScrollbarElement=is;
|