@curiouslearning/gdl-player-core 1.5.0 → 1.5.2
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/README.md +2 -1
- package/dist/Image-BolaFg4H.cjs +1 -0
- package/dist/Image-BvZmqug_.js +14 -0
- package/dist/PlayerImage-D1RCTdBY.cjs +1 -0
- package/dist/PlayerImage-Do7_VfFo.js +26 -0
- package/dist/components/Background.d.ts +3 -1
- package/dist/components/LazySvg.d.ts +2 -2
- package/dist/components/Page.d.ts +7 -1
- package/dist/components/Player.d.ts +9 -1
- package/dist/components/PlayerImage.d.ts +20 -0
- package/dist/context/BookProvider.d.ts +2 -1
- package/dist/{dolottie-BJIvntzd.js → dolottie-C0XP7-PK.js} +42 -53
- package/dist/dolottie-FZVaMI-M.cjs +5 -0
- package/dist/dotlottie-player.wasm +0 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +1230 -1345
- package/dist/types/context.d.ts +2 -0
- package/dist/utils-D2xWCMio.cjs +1 -0
- package/dist/{utils-B8vKMuMn.js → utils-D36WDE-a.js} +5 -5
- package/package.json +1 -2
- package/dist/Image-D8mWyc98.js +0 -12
- package/dist/Image-DBMEc_qA.cjs +0 -1
- package/dist/dolottie-C7QXtKyz.cjs +0 -5
- package/dist/utils-Cu46IIpo.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, i as t, n, r, t as i } from "./utils-
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}:host,:root{all:initial;--player-font-family:\"Quicksand\";--swiper-theme-color:#007aff}*,:before,:after{box-sizing:border-box}html,body,div,span,object,iframe,figure,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,small,strike,strong,sub,sup,tt,b,u,i,ol,ul,li,fieldset,form,label,table,caption,tbody,tfoot,thead,tr,th,td,main,canvas,embed,footer,header,nav,section,video{font-size:100%;font:inherit;vertical-align:baseline;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;color:initial;border:0;margin:0;padding:0}footer,header,nav,section,main{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}input{appearance:none;border-radius:0}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #d7d8e4}.swiper{width:100%;height:100%}.swiper-slide{background:#fff;justify-content:center;align-items:center;font-size:18px;display:flex}.swiper-slide img{object-fit:cover;width:100%;height:100%;display:block}.player{width:100%;height:100dvh;font-family:var(--player-font-family), sans-serif;background:#fff;font-style:normal;font-weight:700;line-height:1.5;position:relative;overflow:hidden}.player.centered{justify-content:center;align-items:center;display:flex}.player .loader{border:.25rem solid #0000001a;border-top-color:var(--swiper-theme-color,#007aff);border-radius:50%;width:2.5rem;height:2.5rem;animation:.8s linear infinite player-loader-spin}.player .view-box{align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.player .view-box .bg{object-fit:contain;place-self:center;max-width:100%;max-height:100%;display:flex}.player .view-box .pagetext-wrapper{opacity:.8;color:#161e33;z-index:999;background:#e7e9ff;flex-direction:row;justify-content:center;align-items:center;height:clamp(1.875rem,6.9231vw - .6635rem,4.875rem);min-height:max-content;font-size:clamp(1rem,.375rem + 2vw,1.5rem);line-height:1;display:flex;position:absolute;bottom:0;left:0;right:0}.worditem.HL .word{will-change:transform;color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow;transform:scale(1.15)}.worditem .word{cursor:pointer;letter-spacing:0;border-bottom:2px solid #dcdcdc00;margin:0 2px;padding:0 2px;transition:all .25s ease-in-out;display:inline-block}.worditem :hover{color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow}.cover-page{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.cover-page .cover-illustration{max-width:20rem;overflow:hidden}.cover-page .cover-illustration img{object-fit:cover;object-position:center}.cover-page .cover-text h1{color:#000;font-size:clamp(1rem,4vw - .25rem,1.75rem);font-weight:700}.cover-page .cover-text small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.credits-page{background-color:#f5f3ff;flex-direction:column;align-items:center;width:100%;height:100%;display:flex;overflow:auto}.credits-page .credits-page-inner{background-color:#fff;flex-flow:wrap;justify-content:center;align-items:center;gap:2rem;width:100%;padding:clamp(1.5rem,.25rem + 4vw,2.5rem) clamp(1rem,3vw,3rem);display:flex}.credits-page .credits-page-inner .logo-item{height:clamp(3rem,1.0916rem + 6.1069vw,5rem)}.credits-page .credits-page-inner .logo-item img{max-height:100%}.credits-page .credits-page-bottom{text-align:center;margin-top:.5rem;padding-left:clamp(2.5rem,16.7939vw - 2.7481rem,8rem);padding-right:clamp(2.5rem,16.7939vw - 2.7481rem,8rem)}.credits-page .credits-page-bottom h1{color:#000;padding-top:1rem;padding-bottom:1rem;font-size:clamp(1rem,4vw - .25rem,2rem);font-weight:700}.credits-page .credits-page-bottom small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.absolute{position:absolute}.mirror-item{transform:scaleX(-1)}.pageContentWrapper{width:100%;height:100%;display:flex;position:relative;overflow:hidden}.pageContentWrapper.layout-btm-aligned .pagetext-wrapper{width:100%;bottom:0}.page-text-overlay{z-index:10;position:absolute}.pagetext-wrapper{text-align:center;font-weight:700}.pagetext-wrapper .textwrapper-inner{flex:auto;min-width:0;max-width:100%;margin:0 auto;position:relative}.pagetext-wrapper .textcontainer{white-space:normal;word-break:break-word;width:100%;display:block}.page-text-overlay *,.pagetext-wrapper *{color:inherit}.background{width:100%;height:100%}.background img{object-fit:cover;width:100%;height:100%}.lazysvg{display:inline-block}.lazysvg img{z-index:-10;width:100%;max-width:100%;height:100%;max-height:100%}.ui.btn{z-index:50;border-radius:100%;justify-content:center;align-items:center;transition:background-color .1s linear;display:flex;position:absolute;box-shadow:0 12px 16px -8px #3f265833}.ui.btn.audioplay{color:#fff;background:#007737;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:1.5%;right:1.5%}.ui.btn.audioplay>svg{margin-left:.25rem}.ui.btn.audioplay:disabled{background:#d7d8e4}.ui.btn.audioplay:active{background:#018d41}.ui.btn.audioplay.playing{color:#9391ac;cursor:default}.ui.btn:active{box-shadow:none}.ui.btn.swipe{color:#5968ec;cursor:pointer;background:#f2f4ff;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:45%}.ui.btn.swipe:active{background-color:#dde0ff}.ui.btn:focus-visible{outline-color:#161e33}.ui.btn.swipe.prev{left:1%}.ui.btn.swipe.next{right:1%}.ui.btn.swipe:disabled{cursor:default;background-color:#d7d8e4;transition:background-color .1s linear}.ui.btn.swipe:disabled svg{stroke:#9391ac;fill:#9391ac}[dir=rtl] .ui.btn.audioplay{left:1.5%;right:auto}@keyframes player-loader-spin{to{transform:rotate(360deg)}}", S = (e) => e.replace(/\\/g, "\\\\").replace(/'/g, "\\'"), C = (e = [], t, n) => {
|
|
2
|
+
import { a as e, i as t, n, r, t as i } from "./utils-D36WDE-a.js";
|
|
3
|
+
import { t as a } from "./PlayerImage-Do7_VfFo.js";
|
|
4
|
+
import o, { createContext as s, useCallback as c, useContext as l, useEffect as u, useImperativeHandle as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
5
|
+
import { Swiper as h, SwiperSlide as g, useSwiper as _ } from "swiper/react";
|
|
6
|
+
import { Pagination as v } from "swiper/modules";
|
|
7
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
8
|
+
// src/components/Player.scss?inline
|
|
9
|
+
var S = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{z-index:1;width:100%;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate(0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:\"\";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.swiper-3d .swiper-slide-shadow{background:#00000026}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}.swiper-lazy-preloader{z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-top-color:#0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}:is(.swiper:not(.swiper-watch-progress),.swiper-watch-progress .swiper-slide-visible) .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translate(0,0)}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);width:100%;left:0}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{position:relative;transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);display:inline-block}button.swiper-pagination-bullet{box-shadow:none;appearance:none;border:none;margin:0;padding:0}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity,1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets) .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%)}:is(.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets) .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%)}:is(.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets).swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,left .2s}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:100% 0}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size,4px);height:100%;top:0;left:0}.swiper-pagination-lock{display:none}:host,:root{all:initial;--player-font-family:\"Quicksand\";--swiper-theme-color:#007aff}*,:before,:after{box-sizing:border-box}html,body,div,span,object,iframe,figure,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,code,em,img,small,strike,strong,sub,sup,tt,b,u,i,ol,ul,li,fieldset,form,label,table,caption,tbody,tfoot,thead,tr,th,td,main,canvas,embed,footer,header,nav,section,video{font-size:100%;font:inherit;vertical-align:baseline;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;color:initial;border:0;margin:0;padding:0}footer,header,nav,section,main{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:\"\";content:none}table{border-collapse:collapse;border-spacing:0}input{appearance:none;border-radius:0}audio,canvas,embed,iframe,img,object,svg,video{vertical-align:middle;display:block}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}*,:after,:before{box-sizing:border-box;border:0 solid #d7d8e4}.swiper{width:100%;height:100%}.swiper-slide{background:#fff;justify-content:center;align-items:center;font-size:18px;display:flex}.swiper-slide img{object-fit:cover;width:100%;height:100%;display:block}.player{width:100%;height:100dvh;font-family:var(--player-font-family), sans-serif;background:#fff;font-style:normal;font-weight:700;line-height:1.5;position:relative;overflow:hidden}.player.centered{justify-content:center;align-items:center;display:flex}.player .loader{border:.25rem solid #0000001a;border-top-color:var(--swiper-theme-color,#007aff);border-radius:50%;width:2.5rem;height:2.5rem;animation:.8s linear infinite player-loader-spin}.player .view-box{align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}.player .view-box .bg{object-fit:contain;place-self:center;max-width:100%;max-height:100%;display:flex}.player .view-box .pagetext-wrapper{opacity:.8;color:#161e33;z-index:999;background:#e7e9ff;flex-direction:row;justify-content:center;align-items:center;height:clamp(1.875rem,6.9231vw - .6635rem,4.875rem);min-height:max-content;font-size:clamp(1rem,.375rem + 2vw,1.5rem);line-height:1;display:flex;position:absolute;bottom:0;left:0;right:0}.worditem.HL .word{will-change:transform;color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow;transform:scale(1.15)}.worditem .word{cursor:pointer;letter-spacing:0;border-bottom:2px solid #dcdcdc00;margin:0 2px;padding:0 2px;transition:all .25s ease-in-out;display:inline-block}.worditem :hover{color:#3345e0;border-color:#3345e0;animation:1s ease-in-out infinite alternate glow}.cover-page{flex-direction:column;justify-content:center;align-items:center;height:100%;display:flex}.cover-page .cover-illustration{max-width:20rem;overflow:hidden}.cover-page .cover-illustration img{object-fit:cover;object-position:center}.cover-page .cover-text h1{color:#000;font-size:clamp(1rem,4vw - .25rem,1.75rem);font-weight:700}.cover-page .cover-text small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.credits-page{background-color:#f5f3ff;flex-direction:column;align-items:center;width:100%;height:100%;display:flex;overflow:auto}.credits-page .credits-page-inner{background-color:#fff;flex-flow:wrap;justify-content:center;align-items:center;gap:2rem;width:100%;padding:clamp(1.5rem,.25rem + 4vw,2.5rem) clamp(1rem,3vw,3rem);display:flex}.credits-page .credits-page-inner .logo-item{height:clamp(3rem,1.0916rem + 6.1069vw,5rem)}.credits-page .credits-page-inner .logo-item img{max-height:100%}.credits-page .credits-page-bottom{text-align:center;margin-top:.5rem;padding-left:clamp(2.5rem,16.7939vw - 2.7481rem,8rem);padding-right:clamp(2.5rem,16.7939vw - 2.7481rem,8rem)}.credits-page .credits-page-bottom h1{color:#000;padding-top:1rem;padding-bottom:1rem;font-size:clamp(1rem,4vw - .25rem,2rem);font-weight:700}.credits-page .credits-page-bottom small{white-space:pre-wrap;font-size:clamp(.8rem,2vw - .2rem,1rem)}.absolute{position:absolute}.mirror-item{transform:scaleX(-1)}.pageContentWrapper{width:100%;height:100%;display:flex;position:relative;overflow:hidden}.pageContentWrapper.layout-btm-aligned .pagetext-wrapper{width:100%;bottom:0}.page-text-overlay{z-index:10;position:absolute}.pagetext-wrapper{text-align:center;font-weight:700}.pagetext-wrapper .textwrapper-inner{flex:auto;min-width:0;max-width:100%;margin:0 auto;position:relative}.pagetext-wrapper .textcontainer{white-space:normal;word-break:break-word;width:100%;display:block}.page-text-overlay *,.pagetext-wrapper *{color:inherit}.background{width:100%;height:100%}.background img{object-fit:cover;width:100%;height:100%}.lazysvg{display:inline-block}.lazysvg img{z-index:-10;width:100%;max-width:100%;height:100%;max-height:100%}.ui.btn{z-index:50;border-radius:100%;justify-content:center;align-items:center;transition:background-color .1s linear;display:flex;position:absolute;box-shadow:0 12px 16px -8px #3f265833}.ui.btn.audioplay{color:#fff;background:#007737;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:1.5%;right:1.5%}.ui.btn.audioplay>svg{margin-left:.25rem}.ui.btn.audioplay:disabled{background:#d7d8e4}.ui.btn.audioplay:active{background:#018d41}.ui.btn.audioplay.playing{color:#9391ac;cursor:default}.ui.btn:active{box-shadow:none}.ui.btn.swipe{color:#5968ec;cursor:pointer;background:#f2f4ff;width:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);height:clamp(2.25rem,.2188rem + 6.5vw,3.875rem);top:45%}.ui.btn.swipe:active{background-color:#dde0ff}.ui.btn:focus-visible{outline-color:#161e33}.ui.btn.swipe.prev{left:1%}.ui.btn.swipe.next{right:1%}.ui.btn.swipe:disabled{cursor:default;background-color:#d7d8e4;transition:background-color .1s linear}.ui.btn.swipe:disabled svg{stroke:#9391ac;fill:#9391ac}[dir=rtl] .ui.btn.audioplay{left:1.5%;right:auto}@keyframes player-loader-spin{to{transform:rotate(360deg)}}", C = (e) => e.replace(/\\/g, "\\\\").replace(/'/g, "\\'"), w = (e = [], t, n) => {
|
|
9
10
|
if (e.length === 0 || !t && !n) return e;
|
|
10
11
|
if (t) {
|
|
11
12
|
let n = e.filter((e) => e.language && e.language.includes(t));
|
|
@@ -17,34 +18,34 @@ var x = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;mar
|
|
|
17
18
|
}
|
|
18
19
|
let r = e.filter((e) => e.unicodeRange);
|
|
19
20
|
return r.length > 0 ? r : e;
|
|
20
|
-
},
|
|
21
|
+
}, T = (e = []) => e.map((e) => {
|
|
21
22
|
let t = [
|
|
22
|
-
`font-family: '${
|
|
23
|
-
`src: url('${
|
|
23
|
+
`font-family: '${C(e.family)}';`,
|
|
24
|
+
`src: url('${C(e.url)}');`,
|
|
24
25
|
"font-display: swap;"
|
|
25
26
|
];
|
|
26
27
|
return e.weight && t.push(`font-weight: ${e.weight};`), e.style && t.push(`font-style: ${e.style};`), e.unicodeRange && t.push(`unicode-range: ${e.unicodeRange};`), `@font-face {${t.join("")}}`;
|
|
27
|
-
}).join(""),
|
|
28
|
+
}).join(""), ee = {
|
|
28
29
|
color: void 0,
|
|
29
30
|
size: void 0,
|
|
30
31
|
className: void 0,
|
|
31
32
|
style: void 0,
|
|
32
33
|
attr: void 0
|
|
33
|
-
}, E =
|
|
34
|
+
}, E = o.createContext && /*#__PURE__*/ o.createContext(ee), te = [
|
|
34
35
|
"attr",
|
|
35
36
|
"size",
|
|
36
37
|
"title"
|
|
37
38
|
];
|
|
38
|
-
function
|
|
39
|
+
function ne(e, t) {
|
|
39
40
|
if (e == null) return {};
|
|
40
|
-
var n, r, i =
|
|
41
|
+
var n, r, i = re(e, t);
|
|
41
42
|
if (Object.getOwnPropertySymbols) {
|
|
42
43
|
var a = Object.getOwnPropertySymbols(e);
|
|
43
44
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
44
45
|
}
|
|
45
46
|
return i;
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function re(e, t) {
|
|
48
49
|
if (e == null) return {};
|
|
49
50
|
var n = {};
|
|
50
51
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -53,16 +54,16 @@ function te(e, t) {
|
|
|
53
54
|
}
|
|
54
55
|
return n;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
57
|
+
function D() {
|
|
58
|
+
return D = Object.assign ? Object.assign.bind() : function(e) {
|
|
58
59
|
for (var t = 1; t < arguments.length; t++) {
|
|
59
60
|
var n = arguments[t];
|
|
60
61
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
61
62
|
}
|
|
62
63
|
return e;
|
|
63
|
-
},
|
|
64
|
+
}, D.apply(null, arguments);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function ie(e, t) {
|
|
66
67
|
var n = Object.keys(e);
|
|
67
68
|
if (Object.getOwnPropertySymbols) {
|
|
68
69
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -72,30 +73,30 @@ function k(e, t) {
|
|
|
72
73
|
}
|
|
73
74
|
return n;
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function O(e) {
|
|
76
77
|
for (var t = 1; t < arguments.length; t++) {
|
|
77
78
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
78
|
-
t % 2 ?
|
|
79
|
-
|
|
80
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
79
|
+
t % 2 ? ie(Object(n), !0).forEach(function(t) {
|
|
80
|
+
k(e, t, n[t]);
|
|
81
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ie(Object(n)).forEach(function(t) {
|
|
81
82
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
return e;
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
-
return (t =
|
|
87
|
+
function k(e, t, n) {
|
|
88
|
+
return (t = A(t)) in e ? Object.defineProperty(e, t, {
|
|
88
89
|
value: n,
|
|
89
90
|
enumerable: !0,
|
|
90
91
|
configurable: !0,
|
|
91
92
|
writable: !0
|
|
92
93
|
}) : e[t] = n, e;
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
-
var t =
|
|
95
|
+
function A(e) {
|
|
96
|
+
var t = j(e, "string");
|
|
96
97
|
return typeof t == "symbol" ? t : t + "";
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
+
function j(e, t) {
|
|
99
100
|
if (typeof e != "object" || !e) return e;
|
|
100
101
|
var n = e[Symbol.toPrimitive];
|
|
101
102
|
if (n !== void 0) {
|
|
@@ -105,33 +106,32 @@ function N(e, t) {
|
|
|
105
106
|
}
|
|
106
107
|
return (t === "string" ? String : Number)(e);
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
return e && e.map((e, t) => /*#__PURE__*/
|
|
109
|
+
function M(e) {
|
|
110
|
+
return e && e.map((e, t) => /*#__PURE__*/ o.createElement(e.tag, O({ key: t }, e.attr), M(e.child)));
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
return (t) => /*#__PURE__*/
|
|
112
|
+
function N(e) {
|
|
113
|
+
return (t) => /*#__PURE__*/ o.createElement(P, D({ attr: O({}, e.attr) }, t), M(e.child));
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function P(e) {
|
|
115
116
|
var t = (t) => {
|
|
116
|
-
var { attr: n, size: r, title: i } = e,
|
|
117
|
-
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/
|
|
117
|
+
var { attr: n, size: r, title: i } = e, a = ne(e, te), s = r || t.size || "1em", c;
|
|
118
|
+
return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/ o.createElement("svg", D({
|
|
118
119
|
stroke: "currentColor",
|
|
119
120
|
fill: "currentColor",
|
|
120
121
|
strokeWidth: "0"
|
|
121
|
-
}, t.attr, n,
|
|
122
|
+
}, t.attr, n, a, {
|
|
122
123
|
className: c,
|
|
123
|
-
style:
|
|
124
|
+
style: O(O({ color: e.color || t.color }, t.style), e.style),
|
|
124
125
|
height: s,
|
|
125
126
|
width: s,
|
|
126
127
|
xmlns: "http://www.w3.org/2000/svg"
|
|
127
|
-
}), i && /*#__PURE__*/
|
|
128
|
+
}), i && /*#__PURE__*/ o.createElement("title", null, i), e.children);
|
|
128
129
|
};
|
|
129
|
-
return E === void 0 ? t(
|
|
130
|
+
return E === void 0 ? t(ee) : /*#__PURE__*/ o.createElement(E.Consumer, null, (e) => t(e));
|
|
130
131
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
return F({
|
|
132
|
+
// node_modules/react-icons/io/index.mjs
|
|
133
|
+
function ae(e) {
|
|
134
|
+
return N({
|
|
135
135
|
tag: "svg",
|
|
136
136
|
attr: { viewBox: "0 0 512 512" },
|
|
137
137
|
child: [{
|
|
@@ -141,8 +141,8 @@ function I(e) {
|
|
|
141
141
|
}]
|
|
142
142
|
})(e);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
144
|
+
function oe(e) {
|
|
145
|
+
return N({
|
|
146
146
|
tag: "svg",
|
|
147
147
|
attr: { viewBox: "0 0 512 512" },
|
|
148
148
|
child: [{
|
|
@@ -152,36 +152,34 @@ function re(e) {
|
|
|
152
152
|
}]
|
|
153
153
|
})(e);
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return /* @__PURE__ */ b("div", {
|
|
155
|
+
// src/components/SwipeNav.tsx
|
|
156
|
+
var se = ({ isFirst: e, isLast: t, activeIndex: n, textDirection: r }) => {
|
|
157
|
+
let i = _(), a = r === "RTL";
|
|
158
|
+
return /* @__PURE__ */ x("div", {
|
|
160
159
|
className: "swipernavigation",
|
|
161
160
|
"data-index-id": n,
|
|
162
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ b("button", {
|
|
163
162
|
className: `ui btn swipe prev ${(a ? t : e) ? " disabled" : ""}`,
|
|
164
163
|
disabled: a ? t : e,
|
|
165
164
|
"aria-label": a ? "Next page" : "Previous page",
|
|
166
165
|
onClick: () => {
|
|
167
166
|
a ? i.slideNext() : i.slidePrev();
|
|
168
167
|
},
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
-
}), /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ b(oe, { size: "75%" })
|
|
169
|
+
}), /* @__PURE__ */ b("button", {
|
|
171
170
|
disabled: a ? e : t,
|
|
172
171
|
"aria-label": a ? "Previous page" : "Next page",
|
|
173
172
|
onClick: () => {
|
|
174
173
|
a ? i.slidePrev() : i.slideNext();
|
|
175
174
|
},
|
|
176
175
|
className: `ui btn swipe next ${(a ? e : t) ? " disabled" : ""}`,
|
|
177
|
-
children: /* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ b(ae, { size: "75%" })
|
|
178
177
|
})]
|
|
179
178
|
});
|
|
180
179
|
};
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
return F({
|
|
180
|
+
// node_modules/react-icons/fa/index.mjs
|
|
181
|
+
function ce(e) {
|
|
182
|
+
return N({
|
|
185
183
|
tag: "svg",
|
|
186
184
|
attr: { viewBox: "0 0 448 512" },
|
|
187
185
|
child: [{
|
|
@@ -191,35 +189,33 @@ function ae(e) {
|
|
|
191
189
|
}]
|
|
192
190
|
})(e);
|
|
193
191
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
var oe = /* @__PURE__ */ function(e) {
|
|
192
|
+
// src/types/book.ts
|
|
193
|
+
var le = /* @__PURE__ */ function(e) {
|
|
197
194
|
return e[e.BOTTOM = 1] = "BOTTOM", e[e.DYNAMIC = 2] = "DYNAMIC", e;
|
|
198
|
-
}({}),
|
|
199
|
-
let
|
|
200
|
-
return /* @__PURE__ */
|
|
195
|
+
}({}), ue = ({ background: t, eager: r = !1 }) => {
|
|
196
|
+
let i = e();
|
|
197
|
+
return /* @__PURE__ */ b("div", {
|
|
201
198
|
className: "background",
|
|
202
|
-
style: { backgroundColor:
|
|
203
|
-
children:
|
|
204
|
-
src: n(i,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}), /* @__PURE__ */ y("div", { className: "swiper-lazy-preloader" })] })
|
|
199
|
+
style: { backgroundColor: t.color ?? "transparent" },
|
|
200
|
+
children: t.type === "image" && t.url && /* @__PURE__ */ b(a, {
|
|
201
|
+
src: n(i, t.crop ? t.crop : t),
|
|
202
|
+
eager: r
|
|
203
|
+
})
|
|
208
204
|
});
|
|
209
|
-
},
|
|
210
|
-
let
|
|
211
|
-
|
|
205
|
+
}, de = o.memo(({ segments: t, pageAudio: n, setIsPlaying: i, onWordSelect: a, highlightIds: o, ref: s, textDirection: c = "LTR" }) => {
|
|
206
|
+
let l = p(null), [f, h] = m(!1), g = p([]), _ = e(), v = p(null), S = p(new Audio()), C = p(null), w = () => {
|
|
207
|
+
v.current && clearInterval(v.current);
|
|
212
208
|
let e = () => {
|
|
213
209
|
S.current.pause(), S.current.src = "", h(!0), i(!1);
|
|
214
210
|
};
|
|
215
211
|
C.current ? C.current.then(e).catch(() => {}) : e();
|
|
216
212
|
}, T = () => {
|
|
217
|
-
if (n &&
|
|
213
|
+
if (n && l?.current) {
|
|
218
214
|
h(!1), i(!0);
|
|
219
|
-
let e = Array.from(
|
|
215
|
+
let e = Array.from(l.current.children);
|
|
220
216
|
S.current.src = r(_, n), C.current = S.current.play(), C.current.catch((e) => {
|
|
221
217
|
e.name !== "AbortError" && console.log("audio play error", e);
|
|
222
|
-
}),
|
|
218
|
+
}), v.current = setInterval(() => {
|
|
223
219
|
let n = t.findIndex((e) => S.current.currentTime >= e.start && S.current.currentTime <= e.end);
|
|
224
220
|
if (n > -1) {
|
|
225
221
|
let r = e[n];
|
|
@@ -231,39 +227,39 @@ var oe = /* @__PURE__ */ function(e) {
|
|
|
231
227
|
}
|
|
232
228
|
}
|
|
233
229
|
}, 40), S.current.onended = () => {
|
|
234
|
-
|
|
230
|
+
v.current && clearInterval(v.current), e?.forEach((e) => {
|
|
235
231
|
e.classList.remove("HL");
|
|
236
232
|
}), h(!0), i(!1);
|
|
237
233
|
};
|
|
238
234
|
}
|
|
239
235
|
};
|
|
240
|
-
return
|
|
241
|
-
clearInterval(
|
|
242
|
-
}, []),
|
|
236
|
+
return u(() => () => {
|
|
237
|
+
clearInterval(v.current), S.current.pause(), S.current.src = "";
|
|
238
|
+
}, []), u(() => {
|
|
243
239
|
o && o?.length > 0 && (g?.current[o[0]])?.play();
|
|
244
|
-
}, [o]),
|
|
240
|
+
}, [o]), d(s, () => ({
|
|
245
241
|
onPlay: T,
|
|
246
242
|
onAbortAudio: w
|
|
247
|
-
})), /* @__PURE__ */ y
|
|
248
|
-
ref:
|
|
243
|
+
})), /* @__PURE__ */ b(y, { children: /* @__PURE__ */ b("span", {
|
|
244
|
+
ref: l,
|
|
249
245
|
dir: c.toLowerCase(),
|
|
250
|
-
children: t && t.map((e, n) => e.word === "\\n" || e.word === "/\n" ? /* @__PURE__ */
|
|
246
|
+
children: t && t.map((e, n) => e.word === "\\n" || e.word === "/\n" ? /* @__PURE__ */ b("br", {}, n) : /* @__PURE__ */ x("span", {
|
|
251
247
|
className: `worditem ${o && o.includes(n) ? "HL" : ""}`,
|
|
252
248
|
onClick: () => {
|
|
253
249
|
a && a(e), g?.current[n]?.play();
|
|
254
250
|
},
|
|
255
251
|
children: [
|
|
256
|
-
e.word === "\n" ? /* @__PURE__ */
|
|
252
|
+
e.word === "\n" ? /* @__PURE__ */ b("br", {}) : /* @__PURE__ */ b("span", {
|
|
257
253
|
className: "word",
|
|
258
254
|
children: e.word
|
|
259
255
|
}),
|
|
260
|
-
n < t.length - 1 && /* @__PURE__ */ y
|
|
261
|
-
e.mp3 && /* @__PURE__ */
|
|
256
|
+
n < t.length - 1 && /* @__PURE__ */ b(y, { children: " " }),
|
|
257
|
+
e.mp3 && /* @__PURE__ */ b("audio", {
|
|
262
258
|
preload: "none",
|
|
263
259
|
ref: (e) => {
|
|
264
260
|
g.current[n] = e;
|
|
265
261
|
},
|
|
266
|
-
children: /* @__PURE__ */
|
|
262
|
+
children: /* @__PURE__ */ b("source", {
|
|
267
263
|
src: `${r(_, e)}`,
|
|
268
264
|
type: "audio/mpeg"
|
|
269
265
|
})
|
|
@@ -271,16 +267,16 @@ var oe = /* @__PURE__ */ function(e) {
|
|
|
271
267
|
]
|
|
272
268
|
}, e.uid))
|
|
273
269
|
}) });
|
|
274
|
-
}),
|
|
270
|
+
}), fe = (e) => e / 600 * 100, pe = (e) => e / 1280 * 100, me = ({ item: e, screenScale: t, children: n, onActivate: r }) => {
|
|
275
271
|
let { position: i, scaleSize: a } = e, { top: o, left: s } = i, c = !!e.effect?.type || e.mediaType === "lottie";
|
|
276
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ b("div", {
|
|
277
273
|
className: `absolute ${e.mirror ? "mirror-item" : ""}`,
|
|
278
274
|
style: {
|
|
279
275
|
zIndex: e.zIndex || 10,
|
|
280
276
|
width: `${e.width * a / 100 * t / 100}px`,
|
|
281
277
|
height: e.height === 0 ? "auto" : `${e.height * a / 100 * t / 100}px`,
|
|
282
|
-
top: `${
|
|
283
|
-
left: `${
|
|
278
|
+
top: `${fe(o)}%`,
|
|
279
|
+
left: `${pe(s)}%`
|
|
284
280
|
},
|
|
285
281
|
...c ? {
|
|
286
282
|
role: "button",
|
|
@@ -294,88 +290,81 @@ var oe = /* @__PURE__ */ function(e) {
|
|
|
294
290
|
children: n && n
|
|
295
291
|
});
|
|
296
292
|
};
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
var fe = {
|
|
293
|
+
me.displayName = "MediaItemWrapper";
|
|
294
|
+
// src/components/effectlib/noeffect.tsx
|
|
295
|
+
var F = {
|
|
301
296
|
display: "block",
|
|
302
297
|
width: "100%",
|
|
303
298
|
height: "100%"
|
|
304
|
-
},
|
|
305
|
-
let [o, s] =
|
|
299
|
+
}, he = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
300
|
+
let [o, s] = m(!1), c = p(!1), l = (t = !0) => {
|
|
306
301
|
!o && !c.current && (c.current = !0, s(!0), i && i(), !t && n && n(e), c.current = !1, s(!1), r && r());
|
|
307
302
|
};
|
|
308
|
-
return
|
|
303
|
+
return d(a, () => ({
|
|
309
304
|
triggerEffect: l,
|
|
310
305
|
setBusy: s,
|
|
311
306
|
busy: o
|
|
312
|
-
}), [o]), /* @__PURE__ */
|
|
307
|
+
}), [o]), /* @__PURE__ */ b("div", {
|
|
313
308
|
onClick: (e) => {
|
|
314
309
|
e.stopPropagation(), l(!1);
|
|
315
310
|
},
|
|
316
|
-
style:
|
|
311
|
+
style: F,
|
|
317
312
|
children: t
|
|
318
313
|
});
|
|
319
314
|
};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
let t = f(null);
|
|
315
|
+
// node_modules/framer-motion/dist/es/utils/use-constant.mjs
|
|
316
|
+
function ge(e) {
|
|
317
|
+
let t = p(null);
|
|
324
318
|
return t.current === null && (t.current = e()), t.current;
|
|
325
319
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
function he(e, t) {
|
|
320
|
+
// node_modules/motion-utils/dist/es/array.mjs
|
|
321
|
+
function _e(e, t) {
|
|
329
322
|
e.indexOf(t) === -1 && e.push(t);
|
|
330
323
|
}
|
|
331
|
-
function
|
|
324
|
+
function ve(e, t) {
|
|
332
325
|
let n = e.indexOf(t);
|
|
333
326
|
n > -1 && e.splice(n, 1);
|
|
334
327
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
//#region node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
340
|
-
function _e(e, t) {
|
|
328
|
+
// node_modules/motion-utils/dist/es/clamp.mjs
|
|
329
|
+
var I = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
330
|
+
// node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
331
|
+
function ye(e, t) {
|
|
341
332
|
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
342
333
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
typeof
|
|
347
|
-
!e && typeof console < "u" && console.warn(_e(t, n));
|
|
334
|
+
// node_modules/motion-utils/dist/es/errors.mjs
|
|
335
|
+
var L = () => {}, R = () => {};
|
|
336
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && (L = (e, t, n) => {
|
|
337
|
+
!e && typeof console < "u" && console.warn(ye(t, n));
|
|
348
338
|
}, R = (e, t, n) => {
|
|
349
|
-
if (!e) throw Error(
|
|
339
|
+
if (!e) throw Error(ye(t, n));
|
|
350
340
|
});
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
//#endregion
|
|
355
|
-
//#region node_modules/motion-utils/dist/es/memo.mjs
|
|
341
|
+
// node_modules/motion-utils/dist/es/global-config.mjs
|
|
342
|
+
var z = {}, be = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), xe = (e) => typeof e == "object" && !!e, Se = (e) => /^0[^.\s]+$/u.test(e);
|
|
343
|
+
// node_modules/motion-utils/dist/es/memo.mjs
|
|
356
344
|
/*#__NO_SIDE_EFFECTS__*/
|
|
357
|
-
function
|
|
345
|
+
function Ce(e) {
|
|
358
346
|
let t;
|
|
359
347
|
return () => (t === void 0 && (t = e()), t);
|
|
360
348
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
var Ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, we = (...e) => e.reduce((e, t) => (n) => t(e(n))), Te = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
349
|
+
// node_modules/motion-utils/dist/es/noop.mjs
|
|
350
|
+
var we = /* @__NO_SIDE_EFFECTS__ */ (e) => e, Te = (...e) => e.reduce((e, t) => (n) => t(e(n))), Ee = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
364
351
|
let r = t - e;
|
|
365
352
|
return r ? (n - e) / r : 1;
|
|
366
|
-
},
|
|
353
|
+
}, De = class {
|
|
367
354
|
constructor() {
|
|
368
355
|
this.subscriptions = [];
|
|
369
356
|
}
|
|
370
357
|
add(e) {
|
|
371
|
-
return
|
|
358
|
+
return _e(this.subscriptions, e), () => ve(this.subscriptions, e);
|
|
372
359
|
}
|
|
373
360
|
notify(e, t, n) {
|
|
374
361
|
let r = this.subscriptions.length;
|
|
375
|
-
if (r)
|
|
376
|
-
|
|
377
|
-
let
|
|
378
|
-
|
|
362
|
+
if (r) {
|
|
363
|
+
if (r === 1) this.subscriptions[0](e, t, n);
|
|
364
|
+
else for (let i = 0; i < r; i++) {
|
|
365
|
+
let r = this.subscriptions[i];
|
|
366
|
+
r && r(e, t, n);
|
|
367
|
+
}
|
|
379
368
|
}
|
|
380
369
|
}
|
|
381
370
|
getSize() {
|
|
@@ -384,60 +373,56 @@ var Ce = /* @__NO_SIDE_EFFECTS__ */ (e) => e, we = (...e) => e.reduce((e, t) =>
|
|
|
384
373
|
clear() {
|
|
385
374
|
this.subscriptions.length = 0;
|
|
386
375
|
}
|
|
387
|
-
}, B = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, V = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3,
|
|
388
|
-
function
|
|
389
|
-
e ||
|
|
376
|
+
}, B = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, V = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, Oe = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, ke = /* @__PURE__ */ new Set();
|
|
377
|
+
function Ae(e, t, n) {
|
|
378
|
+
e || ke.has(t) || (console.warn(ye(t, n)), ke.add(t));
|
|
390
379
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
var Ae = (e, t, n) => {
|
|
380
|
+
// node_modules/motion-utils/dist/es/wrap.mjs
|
|
381
|
+
var je = (e, t, n) => {
|
|
394
382
|
let r = t - e;
|
|
395
383
|
return ((n - e) % r + r) % r + e;
|
|
396
|
-
},
|
|
397
|
-
function
|
|
384
|
+
}, Me = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, Ne = 1e-7, Pe = 12;
|
|
385
|
+
function Fe(e, t, n, r, i) {
|
|
398
386
|
let a, o, s = 0;
|
|
399
387
|
do
|
|
400
|
-
o = t + (n - t) / 2, a =
|
|
401
|
-
while (Math.abs(a) >
|
|
388
|
+
o = t + (n - t) / 2, a = Me(o, r, i) - e, a > 0 ? n = o : t = o;
|
|
389
|
+
while (Math.abs(a) > Ne && ++s < Pe);
|
|
402
390
|
return o;
|
|
403
391
|
}
|
|
404
392
|
/*#__NO_SIDE_EFFECTS__*/
|
|
405
|
-
function
|
|
406
|
-
if (e === t && n === r) return
|
|
407
|
-
let i = (t) =>
|
|
408
|
-
return (e) => e === 0 || e === 1 ? e :
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
//#endregion
|
|
414
|
-
//#region node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
393
|
+
function Ie(e, t, n, r) {
|
|
394
|
+
if (e === t && n === r) return we;
|
|
395
|
+
let i = (t) => Fe(t, 0, 1, e, n);
|
|
396
|
+
return (e) => e === 0 || e === 1 ? e : Me(i(e), t, r);
|
|
397
|
+
}
|
|
398
|
+
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
399
|
+
var Le = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Re = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), ze = /*@__PURE__*/ Ie(.33, 1.53, .69, .99), Be = /*@__PURE__*/ Re(ze), Ve = /*@__PURE__*/ Le(Be), He = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * Be(e) : .5 * (2 - 2 ** (-10 * (e - 1))), Ue = (e) => 1 - Math.sin(Math.acos(e)), We = /* @__PURE__ */ Re(Ue), Ge = /* @__PURE__ */ Le(Ue), Ke = /*@__PURE__*/ Ie(.42, 0, 1, 1), qe = /*@__PURE__*/ Ie(0, 0, .58, 1), Je = /*@__PURE__*/ Ie(.42, 0, .58, 1), Ye = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number";
|
|
400
|
+
// node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.mjs
|
|
415
401
|
/*#__NO_SIDE_EFFECTS__*/
|
|
416
|
-
function
|
|
417
|
-
return /* @__PURE__ */
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
if (/* @__PURE__ */ Xe(e)) {
|
|
402
|
+
function Xe(e, t) {
|
|
403
|
+
return /* @__PURE__ */ Ye(e) ? e[je(0, e.length, t)] : e;
|
|
404
|
+
}
|
|
405
|
+
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
|
|
406
|
+
var Ze = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", Qe = {
|
|
407
|
+
linear: we,
|
|
408
|
+
easeIn: Ke,
|
|
409
|
+
easeInOut: Je,
|
|
410
|
+
easeOut: qe,
|
|
411
|
+
circIn: Ue,
|
|
412
|
+
circInOut: Ge,
|
|
413
|
+
circOut: We,
|
|
414
|
+
backIn: Be,
|
|
415
|
+
backInOut: Ve,
|
|
416
|
+
backOut: ze,
|
|
417
|
+
anticipate: He
|
|
418
|
+
}, $e = (e) => typeof e == "string", et = (e) => {
|
|
419
|
+
if (/* @__PURE__ */ Ze(e)) {
|
|
435
420
|
R(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
436
421
|
let [t, n, r, i] = e;
|
|
437
|
-
return /* @__PURE__ */
|
|
438
|
-
}
|
|
439
|
-
return e;
|
|
440
|
-
},
|
|
422
|
+
return /* @__PURE__ */ Ie(t, n, r, i);
|
|
423
|
+
}
|
|
424
|
+
return $e(e) ? (R(Qe[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), Qe[e]) : e;
|
|
425
|
+
}, tt = [
|
|
441
426
|
"setup",
|
|
442
427
|
"read",
|
|
443
428
|
"resolveKeyframes",
|
|
@@ -446,13 +431,12 @@ var Xe = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "n
|
|
|
446
431
|
"preRender",
|
|
447
432
|
"render",
|
|
448
433
|
"postRender"
|
|
449
|
-
],
|
|
434
|
+
], nt = {
|
|
450
435
|
value: null,
|
|
451
436
|
addProjectionMetrics: null
|
|
452
437
|
};
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
function nt(e, t) {
|
|
438
|
+
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
439
|
+
function rt(e, t) {
|
|
456
440
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
|
|
457
441
|
delta: 0,
|
|
458
442
|
timestamp: 0,
|
|
@@ -476,96 +460,90 @@ function nt(e, t) {
|
|
|
476
460
|
}
|
|
477
461
|
i = !0;
|
|
478
462
|
let o = n;
|
|
479
|
-
n = r, r = o, n.forEach(l), t &&
|
|
463
|
+
n = r, r = o, n.forEach(l), t && nt.value && nt.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
|
|
480
464
|
}
|
|
481
465
|
};
|
|
482
466
|
return u;
|
|
483
467
|
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
function it(e, t) {
|
|
468
|
+
// node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
469
|
+
var it = 40;
|
|
470
|
+
function at(e, t) {
|
|
488
471
|
let n = !1, r = !0, i = {
|
|
489
472
|
delta: 0,
|
|
490
473
|
timestamp: 0,
|
|
491
474
|
isProcessing: !1
|
|
492
|
-
}, a = () => n = !0, o =
|
|
475
|
+
}, a = () => n = !0, o = tt.reduce((e, n) => (e[n] = rt(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: u, update: d, preRender: f, render: p, postRender: m } = o, h = () => {
|
|
493
476
|
let a = z.useManualTiming, o = a ? i.timestamp : performance.now();
|
|
494
|
-
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp,
|
|
477
|
+
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, it), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), u.process(i), d.process(i), f.process(i), p.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(h));
|
|
495
478
|
}, g = () => {
|
|
496
479
|
n = !0, r = !0, i.isProcessing || e(h);
|
|
497
480
|
};
|
|
498
481
|
return {
|
|
499
|
-
schedule:
|
|
482
|
+
schedule: tt.reduce((e, t) => {
|
|
500
483
|
let r = o[t];
|
|
501
484
|
return e[t] = (e, t = !1, i = !1) => (n || g(), r.schedule(e, t, i)), e;
|
|
502
485
|
}, {}),
|
|
503
486
|
cancel: (e) => {
|
|
504
|
-
for (let t = 0; t <
|
|
487
|
+
for (let t = 0; t < tt.length; t++) o[tt[t]].cancel(e);
|
|
505
488
|
},
|
|
506
489
|
state: i,
|
|
507
490
|
steps: o
|
|
508
491
|
};
|
|
509
492
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
ct = void 0;
|
|
493
|
+
// node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
494
|
+
var { schedule: H, cancel: ot, state: st, steps: ct } = /* @__PURE__ */ at(typeof requestAnimationFrame < "u" ? requestAnimationFrame : we, !0), lt;
|
|
495
|
+
function ut() {
|
|
496
|
+
lt = void 0;
|
|
515
497
|
}
|
|
516
498
|
var U = {
|
|
517
|
-
now: () => (
|
|
499
|
+
now: () => (lt === void 0 && U.set(st.isProcessing || z.useManualTiming ? st.timestamp : performance.now()), lt),
|
|
518
500
|
set: (e) => {
|
|
519
|
-
|
|
501
|
+
lt = e, queueMicrotask(ut);
|
|
520
502
|
}
|
|
521
|
-
},
|
|
503
|
+
}, dt = {
|
|
522
504
|
layout: 0,
|
|
523
505
|
mainThread: 0,
|
|
524
506
|
waapi: 0
|
|
525
|
-
},
|
|
526
|
-
function
|
|
527
|
-
return typeof e == "string"
|
|
507
|
+
}, ft = (e) => (t) => typeof t == "string" && t.startsWith(e), pt = /*@__PURE__*/ ft("--"), mt = /*@__PURE__*/ ft("var(--"), ht = (e) => mt(e) ? gt.test(e.split("/*")[0].trim()) : !1, gt = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
508
|
+
function _t(e) {
|
|
509
|
+
return typeof e == "string" && e.split("/*")[0].includes("var(--");
|
|
528
510
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
var _t = {
|
|
511
|
+
// node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
512
|
+
var vt = {
|
|
532
513
|
test: (e) => typeof e == "number",
|
|
533
514
|
parse: parseFloat,
|
|
534
515
|
transform: (e) => e
|
|
535
|
-
}, vt = {
|
|
536
|
-
..._t,
|
|
537
|
-
transform: (e) => L(0, 1, e)
|
|
538
516
|
}, yt = {
|
|
539
|
-
...
|
|
517
|
+
...vt,
|
|
518
|
+
transform: (e) => I(0, 1, e)
|
|
519
|
+
}, bt = {
|
|
520
|
+
...vt,
|
|
540
521
|
default: 1
|
|
541
|
-
},
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
function St(e) {
|
|
522
|
+
}, xt = (e) => Math.round(e * 1e5) / 1e5, St = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
523
|
+
// node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
524
|
+
function Ct(e) {
|
|
545
525
|
return e == null;
|
|
546
526
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
var Ct = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, wt = (e, t) => (n) => !!(typeof n == "string" && Ct.test(n) && n.startsWith(e) || t && !St(n) && Object.prototype.hasOwnProperty.call(n, t)), Tt = (e, t, n) => (r) => {
|
|
527
|
+
// node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
528
|
+
var wt = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, Tt = (e, t) => (n) => !!(typeof n == "string" && wt.test(n) && n.startsWith(e) || t && !Ct(n) && Object.prototype.hasOwnProperty.call(n, t)), Et = (e, t, n) => (r) => {
|
|
550
529
|
if (typeof r != "string") return r;
|
|
551
|
-
let [i, a, o, s] = r.match(
|
|
530
|
+
let [i, a, o, s] = r.match(St);
|
|
552
531
|
return {
|
|
553
532
|
[e]: parseFloat(i),
|
|
554
533
|
[t]: parseFloat(a),
|
|
555
534
|
[n]: parseFloat(o),
|
|
556
535
|
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
557
536
|
};
|
|
558
|
-
},
|
|
559
|
-
...
|
|
560
|
-
transform: (e) => Math.round(
|
|
537
|
+
}, Dt = (e) => I(0, 255, e), Ot = {
|
|
538
|
+
...vt,
|
|
539
|
+
transform: (e) => Math.round(Dt(e))
|
|
561
540
|
}, W = {
|
|
562
|
-
test: /*@__PURE__*/
|
|
563
|
-
parse: /*@__PURE__*/
|
|
564
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
541
|
+
test: /*@__PURE__*/ Tt("rgb", "red"),
|
|
542
|
+
parse: /*@__PURE__*/ Et("red", "green", "blue"),
|
|
543
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Ot.transform(e) + ", " + Ot.transform(t) + ", " + Ot.transform(n) + ", " + xt(yt.transform(r)) + ")"
|
|
565
544
|
};
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
function Ot(e) {
|
|
545
|
+
// node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
546
|
+
function kt(e) {
|
|
569
547
|
let t = "", n = "", r = "", i = "";
|
|
570
548
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
571
549
|
red: parseInt(t, 16),
|
|
@@ -574,38 +552,37 @@ function Ot(e) {
|
|
|
574
552
|
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
575
553
|
};
|
|
576
554
|
}
|
|
577
|
-
var
|
|
578
|
-
test: /*@__PURE__*/
|
|
579
|
-
parse:
|
|
555
|
+
var At = {
|
|
556
|
+
test: /*@__PURE__*/ Tt("#"),
|
|
557
|
+
parse: kt,
|
|
580
558
|
transform: W.transform
|
|
581
|
-
},
|
|
559
|
+
}, jt = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
582
560
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
583
561
|
parse: parseFloat,
|
|
584
562
|
transform: (t) => `${t}${e}`
|
|
585
|
-
}), G = /*@__PURE__*/
|
|
586
|
-
...
|
|
587
|
-
parse: (e) =>
|
|
588
|
-
transform: (e) =>
|
|
589
|
-
},
|
|
590
|
-
test: /*@__PURE__*/
|
|
591
|
-
parse: /*@__PURE__*/
|
|
592
|
-
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " +
|
|
563
|
+
}), G = /*@__PURE__*/ jt("deg"), Mt = /*@__PURE__*/ jt("%"), K = /*@__PURE__*/ jt("px"), Nt = /*@__PURE__*/ jt("vh"), Pt = /*@__PURE__*/ jt("vw"), Ft = {
|
|
564
|
+
...Mt,
|
|
565
|
+
parse: (e) => Mt.parse(e) / 100,
|
|
566
|
+
transform: (e) => Mt.transform(e * 100)
|
|
567
|
+
}, It = {
|
|
568
|
+
test: /*@__PURE__*/ Tt("hsl", "hue"),
|
|
569
|
+
parse: /*@__PURE__*/ Et("hue", "saturation", "lightness"),
|
|
570
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + Mt.transform(xt(t)) + ", " + Mt.transform(xt(n)) + ", " + xt(yt.transform(r)) + ")"
|
|
593
571
|
}, q = {
|
|
594
|
-
test: (e) => W.test(e) ||
|
|
595
|
-
parse: (e) => W.test(e) ? W.parse(e) :
|
|
596
|
-
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? W.transform(e) :
|
|
572
|
+
test: (e) => W.test(e) || At.test(e) || It.test(e),
|
|
573
|
+
parse: (e) => W.test(e) ? W.parse(e) : It.test(e) ? It.parse(e) : At.parse(e),
|
|
574
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? W.transform(e) : It.transform(e),
|
|
597
575
|
getAnimatableNone: (e) => {
|
|
598
576
|
let t = q.parse(e);
|
|
599
577
|
return t.alpha = 0, q.transform(t);
|
|
600
578
|
}
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
return isNaN(e) && typeof e == "string" && (e.match(xt)?.length || 0) + (e.match(It)?.length || 0) > 0;
|
|
579
|
+
}, Lt = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
580
|
+
// node_modules/motion-dom/dist/es/value/types/complex/index.mjs
|
|
581
|
+
function Rt(e) {
|
|
582
|
+
return isNaN(e) && typeof e == "string" && (e.match(St)?.length || 0) + (e.match(Lt)?.length || 0) > 0;
|
|
606
583
|
}
|
|
607
|
-
var
|
|
608
|
-
function
|
|
584
|
+
var zt = "number", Bt = "color", Vt = "var", Ht = "var(", Ut = "${}", Wt = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
585
|
+
function Gt(e) {
|
|
609
586
|
let t = e.toString(), n = [], r = {
|
|
610
587
|
color: [],
|
|
611
588
|
number: [],
|
|
@@ -613,51 +590,50 @@ function Wt(e) {
|
|
|
613
590
|
}, i = [], a = 0;
|
|
614
591
|
return {
|
|
615
592
|
values: n,
|
|
616
|
-
split: t.replace(
|
|
593
|
+
split: t.replace(Wt, (e) => (q.test(e) ? (r.color.push(a), i.push(Bt), n.push(q.parse(e))) : e.startsWith(Ht) ? (r.var.push(a), i.push(Vt), n.push(e)) : (r.number.push(a), i.push(zt), n.push(parseFloat(e))), ++a, Ut)).split(Ut),
|
|
617
594
|
indexes: r,
|
|
618
595
|
types: i
|
|
619
596
|
};
|
|
620
597
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
598
|
+
function Kt(e) {
|
|
599
|
+
return Gt(e).values;
|
|
623
600
|
}
|
|
624
|
-
function
|
|
601
|
+
function qt({ split: e, types: t }) {
|
|
625
602
|
let n = e.length;
|
|
626
603
|
return (r) => {
|
|
627
604
|
let i = "";
|
|
628
605
|
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
|
|
629
606
|
let e = t[a];
|
|
630
|
-
e ===
|
|
607
|
+
i += e === zt ? xt(r[a]) : e === Bt ? q.transform(r[a]) : r[a];
|
|
631
608
|
}
|
|
632
609
|
return i;
|
|
633
610
|
};
|
|
634
611
|
}
|
|
635
|
-
function
|
|
636
|
-
return
|
|
612
|
+
function Jt(e) {
|
|
613
|
+
return qt(Gt(e));
|
|
637
614
|
}
|
|
638
|
-
var
|
|
639
|
-
function
|
|
640
|
-
let t =
|
|
641
|
-
return
|
|
615
|
+
var Yt = (e) => typeof e == "number" ? 0 : q.test(e) ? q.getAnimatableNone(e) : e, Xt = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : Yt(e);
|
|
616
|
+
function Zt(e) {
|
|
617
|
+
let t = Gt(e);
|
|
618
|
+
return qt(t)(t.values.map((e, n) => Xt(e, t.split[n])));
|
|
642
619
|
}
|
|
643
620
|
var J = {
|
|
644
|
-
test:
|
|
645
|
-
parse:
|
|
646
|
-
createTransformer:
|
|
647
|
-
getAnimatableNone:
|
|
621
|
+
test: Rt,
|
|
622
|
+
parse: Kt,
|
|
623
|
+
createTransformer: Jt,
|
|
624
|
+
getAnimatableNone: Zt
|
|
648
625
|
};
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
function Zt(e, t, n) {
|
|
626
|
+
// node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
627
|
+
function Qt(e, t, n) {
|
|
652
628
|
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
653
629
|
}
|
|
654
|
-
function
|
|
630
|
+
function $t({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
655
631
|
e /= 360, t /= 100, n /= 100;
|
|
656
632
|
let i = 0, a = 0, o = 0;
|
|
657
633
|
if (!t) i = a = o = n;
|
|
658
634
|
else {
|
|
659
635
|
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
660
|
-
i =
|
|
636
|
+
i = Qt(s, r, e + 1 / 3), a = Qt(s, r, e), o = Qt(s, r, e - 1 / 3);
|
|
661
637
|
}
|
|
662
638
|
return {
|
|
663
639
|
red: Math.round(i * 255),
|
|
@@ -666,117 +642,110 @@ function Qt({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
666
642
|
alpha: r
|
|
667
643
|
};
|
|
668
644
|
}
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
function $t(e, t) {
|
|
645
|
+
// node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
646
|
+
function en(e, t) {
|
|
672
647
|
return (n) => n > 0 ? t : e;
|
|
673
648
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
var en = (e, t, n) => e + (t - e) * n, tn = (e, t, n) => {
|
|
649
|
+
// node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
650
|
+
var tn = (e, t, n) => e + (t - e) * n, nn = (e, t, n) => {
|
|
677
651
|
let r = e * e, i = n * (t * t - r) + r;
|
|
678
652
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
679
|
-
},
|
|
680
|
-
|
|
653
|
+
}, rn = [
|
|
654
|
+
At,
|
|
681
655
|
W,
|
|
682
|
-
|
|
683
|
-
],
|
|
684
|
-
function
|
|
685
|
-
let t =
|
|
686
|
-
if (
|
|
656
|
+
It
|
|
657
|
+
], an = (e) => rn.find((t) => t.test(e));
|
|
658
|
+
function on(e) {
|
|
659
|
+
let t = an(e);
|
|
660
|
+
if (L(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
|
|
687
661
|
let n = t.parse(e);
|
|
688
|
-
return t ===
|
|
662
|
+
return t === It && (n = $t(n)), n;
|
|
689
663
|
}
|
|
690
|
-
var
|
|
691
|
-
let n =
|
|
692
|
-
if (!n || !r) return
|
|
664
|
+
var sn = (e, t) => {
|
|
665
|
+
let n = on(e), r = on(t);
|
|
666
|
+
if (!n || !r) return en(e, t);
|
|
693
667
|
let i = { ...n };
|
|
694
|
-
return (e) => (i.red =
|
|
695
|
-
},
|
|
696
|
-
function cn(e, t) {
|
|
697
|
-
return sn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
698
|
-
}
|
|
699
|
-
//#endregion
|
|
700
|
-
//#region node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
668
|
+
return (e) => (i.red = nn(n.red, r.red, e), i.green = nn(n.green, r.green, e), i.blue = nn(n.blue, r.blue, e), i.alpha = tn(n.alpha, r.alpha, e), W.transform(i));
|
|
669
|
+
}, cn = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
701
670
|
function ln(e, t) {
|
|
702
|
-
return (n) =>
|
|
671
|
+
return cn.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
672
|
+
}
|
|
673
|
+
// node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
674
|
+
function un(e, t) {
|
|
675
|
+
return (n) => tn(e, t, n);
|
|
703
676
|
}
|
|
704
|
-
function
|
|
705
|
-
return typeof e == "number" ?
|
|
677
|
+
function dn(e) {
|
|
678
|
+
return typeof e == "number" ? un : typeof e == "string" ? ht(e) ? en : q.test(e) ? sn : hn : Array.isArray(e) ? fn : typeof e == "object" ? q.test(e) ? sn : pn : en;
|
|
706
679
|
}
|
|
707
|
-
function
|
|
708
|
-
let n = [...e], r = n.length, i = e.map((e, n) =>
|
|
680
|
+
function fn(e, t) {
|
|
681
|
+
let n = [...e], r = n.length, i = e.map((e, n) => dn(e)(e, t[n]));
|
|
709
682
|
return (e) => {
|
|
710
683
|
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
711
684
|
return n;
|
|
712
685
|
};
|
|
713
686
|
}
|
|
714
|
-
function
|
|
687
|
+
function pn(e, t) {
|
|
715
688
|
let n = {
|
|
716
689
|
...e,
|
|
717
690
|
...t
|
|
718
691
|
}, r = {};
|
|
719
|
-
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] =
|
|
692
|
+
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = dn(e[i])(e[i], t[i]));
|
|
720
693
|
return (e) => {
|
|
721
694
|
for (let t in r) n[t] = r[t](e);
|
|
722
695
|
return n;
|
|
723
696
|
};
|
|
724
697
|
}
|
|
725
|
-
function
|
|
698
|
+
function mn(e, t) {
|
|
726
699
|
let n = [], r = {
|
|
727
700
|
color: 0,
|
|
728
701
|
var: 0,
|
|
729
702
|
number: 0
|
|
730
703
|
};
|
|
731
704
|
for (let i = 0; i < t.values.length; i++) {
|
|
732
|
-
let a = t.types[i], o = e.indexes[a][r[a]];
|
|
733
|
-
n[i] =
|
|
705
|
+
let a = t.types[i], o = e.indexes[a][r[a]], s = e.values[o] ?? 0;
|
|
706
|
+
n[i] = s, r[a]++;
|
|
734
707
|
}
|
|
735
708
|
return n;
|
|
736
709
|
}
|
|
737
|
-
var
|
|
738
|
-
let n = J.createTransformer(t), r =
|
|
739
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ?
|
|
710
|
+
var hn = (e, t) => {
|
|
711
|
+
let n = J.createTransformer(t), r = Gt(e), i = Gt(t);
|
|
712
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? cn.has(e) && !i.values.length || cn.has(t) && !r.values.length ? ln(e, t) : Te(fn(mn(r, i), i.values), n) : (L(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), en(e, t));
|
|
740
713
|
};
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
//#region node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
748
|
-
var gn = (e) => {
|
|
714
|
+
// node_modules/motion-dom/dist/es/utils/mix/index.mjs
|
|
715
|
+
function gn(e, t, n) {
|
|
716
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? tn(e, t, n) : dn(e)(e, t);
|
|
717
|
+
}
|
|
718
|
+
// node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
719
|
+
var _n = (e) => {
|
|
749
720
|
let t = ({ timestamp: t }) => e(t);
|
|
750
721
|
return {
|
|
751
722
|
start: (e = !0) => H.update(t, e),
|
|
752
|
-
stop: () =>
|
|
753
|
-
now: () =>
|
|
723
|
+
stop: () => ot(t),
|
|
724
|
+
now: () => st.isProcessing ? st.timestamp : U.now()
|
|
754
725
|
};
|
|
755
|
-
},
|
|
726
|
+
}, vn = (e, t, n = 10) => {
|
|
756
727
|
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
757
728
|
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
758
729
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
759
|
-
},
|
|
760
|
-
function
|
|
730
|
+
}, yn = 2e4;
|
|
731
|
+
function bn(e) {
|
|
761
732
|
let t = 0, n = e.next(t);
|
|
762
733
|
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
763
734
|
return t >= 2e4 ? Infinity : t;
|
|
764
735
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
function bn(e, t = 100, n) {
|
|
736
|
+
// node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
737
|
+
function xn(e, t = 100, n) {
|
|
768
738
|
let r = n({
|
|
769
739
|
...e,
|
|
770
740
|
keyframes: [0, t]
|
|
771
|
-
}), i = Math.min(
|
|
741
|
+
}), i = Math.min(bn(r), yn);
|
|
772
742
|
return {
|
|
773
743
|
type: "keyframes",
|
|
774
744
|
ease: (e) => r.next(i * e).value / t,
|
|
775
745
|
duration: /* @__PURE__ */ V(i)
|
|
776
746
|
};
|
|
777
747
|
}
|
|
778
|
-
|
|
779
|
-
//#region node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
748
|
+
// node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
780
749
|
var Y = {
|
|
781
750
|
stiffness: 100,
|
|
782
751
|
damping: 10,
|
|
@@ -798,28 +767,28 @@ var Y = {
|
|
|
798
767
|
minDamping: .05,
|
|
799
768
|
maxDamping: 1
|
|
800
769
|
};
|
|
801
|
-
function
|
|
770
|
+
function Sn(e, t) {
|
|
802
771
|
return e * Math.sqrt(1 - t * t);
|
|
803
772
|
}
|
|
804
|
-
var
|
|
805
|
-
function
|
|
773
|
+
var Cn = 12;
|
|
774
|
+
function wn(e, t, n) {
|
|
806
775
|
let r = n;
|
|
807
|
-
for (let n = 1; n <
|
|
776
|
+
for (let n = 1; n < Cn; n++) r -= e(r) / t(r);
|
|
808
777
|
return r;
|
|
809
778
|
}
|
|
810
|
-
var
|
|
811
|
-
function
|
|
779
|
+
var Tn = .001;
|
|
780
|
+
function En({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.velocity, mass: r = Y.mass }) {
|
|
812
781
|
let i, a;
|
|
813
|
-
|
|
782
|
+
L(e <= /* @__PURE__ */ B(Y.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
814
783
|
let o = 1 - t;
|
|
815
|
-
o =
|
|
816
|
-
let r = t * o, i = r * e, a = r - n, s =
|
|
817
|
-
return
|
|
784
|
+
o = I(Y.minDamping, Y.maxDamping, o), e = I(Y.minDuration, Y.maxDuration, /* @__PURE__ */ V(e)), o < 1 ? (i = (t) => {
|
|
785
|
+
let r = t * o, i = r * e, a = r - n, s = Sn(t, o), c = Math.exp(-i);
|
|
786
|
+
return Tn - a / s * c;
|
|
818
787
|
}, a = (t) => {
|
|
819
|
-
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l =
|
|
820
|
-
return (-i(t) +
|
|
788
|
+
let r = t * o * e, a = r * n + n, s = o ** 2 * t ** 2 * e, c = Math.exp(-r), l = Sn(t ** 2, o);
|
|
789
|
+
return (-i(t) + Tn > 0 ? -1 : 1) * ((a - s) * c) / l;
|
|
821
790
|
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
|
|
822
|
-
let s = 5 / e, c =
|
|
791
|
+
let s = 5 / e, c = wn(i, a, s);
|
|
823
792
|
if (e = /* @__PURE__ */ B(e), isNaN(c)) return {
|
|
824
793
|
stiffness: Y.stiffness,
|
|
825
794
|
damping: Y.damping,
|
|
@@ -834,15 +803,15 @@ function Tn({ duration: e = Y.duration, bounce: t = Y.bounce, velocity: n = Y.ve
|
|
|
834
803
|
};
|
|
835
804
|
}
|
|
836
805
|
}
|
|
837
|
-
var
|
|
806
|
+
var Dn = ["duration", "bounce"], On = [
|
|
838
807
|
"stiffness",
|
|
839
808
|
"damping",
|
|
840
809
|
"mass"
|
|
841
810
|
];
|
|
842
|
-
function
|
|
811
|
+
function kn(e, t) {
|
|
843
812
|
return t.some((t) => e[t] !== void 0);
|
|
844
813
|
}
|
|
845
|
-
function
|
|
814
|
+
function An(e) {
|
|
846
815
|
let t = {
|
|
847
816
|
velocity: Y.velocity,
|
|
848
817
|
stiffness: Y.stiffness,
|
|
@@ -851,28 +820,30 @@ function kn(e) {
|
|
|
851
820
|
isResolvedFromDuration: !1,
|
|
852
821
|
...e
|
|
853
822
|
};
|
|
854
|
-
if (!
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
823
|
+
if (!kn(e, On) && kn(e, Dn)) {
|
|
824
|
+
if (t.velocity = 0, e.visualDuration) {
|
|
825
|
+
let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * I(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
826
|
+
t = {
|
|
827
|
+
...t,
|
|
828
|
+
mass: Y.mass,
|
|
829
|
+
stiffness: i,
|
|
830
|
+
damping: a
|
|
831
|
+
};
|
|
832
|
+
} else {
|
|
833
|
+
let n = En({
|
|
834
|
+
...e,
|
|
835
|
+
velocity: 0
|
|
836
|
+
});
|
|
837
|
+
t = {
|
|
838
|
+
...t,
|
|
839
|
+
...n,
|
|
840
|
+
mass: Y.mass
|
|
841
|
+
}, t.isResolvedFromDuration = !0;
|
|
842
|
+
}
|
|
872
843
|
}
|
|
873
844
|
return t;
|
|
874
845
|
}
|
|
875
|
-
function
|
|
846
|
+
function jn(e = Y.visualDuration, t = Y.bounce) {
|
|
876
847
|
let n = typeof e == "object" ? e : {
|
|
877
848
|
visualDuration: e,
|
|
878
849
|
keyframes: [0, 1],
|
|
@@ -880,13 +851,16 @@ function An(e = Y.visualDuration, t = Y.bounce) {
|
|
|
880
851
|
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
|
|
881
852
|
done: !1,
|
|
882
853
|
value: a
|
|
883
|
-
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } =
|
|
854
|
+
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = An({
|
|
884
855
|
...n,
|
|
885
856
|
velocity: -/* @__PURE__ */ V(n.velocity || 0)
|
|
886
857
|
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ V(Math.sqrt(c / u)), v = Math.abs(g) < 5;
|
|
887
858
|
r ||= v ? Y.restSpeed.granular : Y.restSpeed.default, i ||= v ? Y.restDelta.granular : Y.restDelta.default;
|
|
888
859
|
let y, b, x, S, C, w;
|
|
889
|
-
if (h < 1) x =
|
|
860
|
+
if (h < 1) x = Sn(_, h), S = (m + h * _ * g) / x, y = (e) => {
|
|
861
|
+
let t = Math.exp(-h * _ * e);
|
|
862
|
+
return o - t * (S * Math.sin(x * e) + g * Math.cos(x * e));
|
|
863
|
+
}, C = h * _ * S + g * x, w = h * _ * g - S * x, b = (e) => Math.exp(-h * _ * e) * (C * Math.sin(x * e) + w * Math.cos(x * e));
|
|
890
864
|
else if (h === 1) {
|
|
891
865
|
y = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
|
|
892
866
|
let e = m + _ * g;
|
|
@@ -920,27 +894,25 @@ function An(e = Y.visualDuration, t = Y.bounce) {
|
|
|
920
894
|
return s.value = s.done ? o : t, s;
|
|
921
895
|
},
|
|
922
896
|
toString: () => {
|
|
923
|
-
let e = Math.min(
|
|
897
|
+
let e = Math.min(bn(T), yn), t = vn((t) => T.next(e * t).value, e, 30);
|
|
924
898
|
return e + "ms " + t;
|
|
925
899
|
},
|
|
926
900
|
toTransition: () => {}
|
|
927
901
|
};
|
|
928
902
|
return T;
|
|
929
903
|
}
|
|
930
|
-
|
|
931
|
-
let t =
|
|
904
|
+
jn.applyToOptions = (e) => {
|
|
905
|
+
let t = xn(e, 100, jn);
|
|
932
906
|
return e.ease = t.ease, e.duration = /* @__PURE__ */ B(t.duration), e.type = "keyframes", e;
|
|
933
907
|
};
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
//#region node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
943
|
-
function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
908
|
+
// node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
909
|
+
var Mn = 5;
|
|
910
|
+
function Nn(e, t, n) {
|
|
911
|
+
let r = Math.max(t - Mn, 0);
|
|
912
|
+
return /* @__PURE__ */ Oe(n - e(r), t - r);
|
|
913
|
+
}
|
|
914
|
+
// node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
915
|
+
function Pn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
944
916
|
let d = e[0], f = {
|
|
945
917
|
done: !1,
|
|
946
918
|
value: d
|
|
@@ -950,9 +922,9 @@ function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
|
|
|
950
922
|
let t = v(e), n = y(e);
|
|
951
923
|
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
|
|
952
924
|
}, x, S, C = (e) => {
|
|
953
|
-
p(f.value) && (x = e, S =
|
|
925
|
+
p(f.value) && (x = e, S = jn({
|
|
954
926
|
keyframes: [f.value, m(f.value)],
|
|
955
|
-
velocity:
|
|
927
|
+
velocity: Nn(y, e, f.value),
|
|
956
928
|
damping: i,
|
|
957
929
|
stiffness: a,
|
|
958
930
|
restDelta: l,
|
|
@@ -967,88 +939,80 @@ function Nn({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 32
|
|
|
967
939
|
}
|
|
968
940
|
};
|
|
969
941
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
let r = [], i = n || z.mix || hn, a = e.length - 1;
|
|
942
|
+
// node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
943
|
+
function Fn(e, t, n) {
|
|
944
|
+
let r = [], i = n || z.mix || gn, a = e.length - 1;
|
|
974
945
|
for (let n = 0; n < a; n++) {
|
|
975
946
|
let a = i(e[n], e[n + 1]);
|
|
976
|
-
t && (a =
|
|
947
|
+
t && (a = Te(Array.isArray(t) ? t[n] || we : t, a)), r.push(a);
|
|
977
948
|
}
|
|
978
949
|
return r;
|
|
979
950
|
}
|
|
980
|
-
function
|
|
951
|
+
function In(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
981
952
|
let a = e.length;
|
|
982
953
|
if (R(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
|
|
983
954
|
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
984
955
|
let o = e[0] === e[1];
|
|
985
956
|
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
986
|
-
let s =
|
|
957
|
+
let s = Fn(t, r, i), c = s.length, l = (n) => {
|
|
987
958
|
if (o && n < e[0]) return t[0];
|
|
988
959
|
let r = 0;
|
|
989
960
|
if (c > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
990
|
-
let i = /* @__PURE__ */
|
|
961
|
+
let i = /* @__PURE__ */ Ee(e[r], e[r + 1], n);
|
|
991
962
|
return s[r](i);
|
|
992
963
|
};
|
|
993
|
-
return n ? (t) => l(
|
|
964
|
+
return n ? (t) => l(I(e[0], e[a - 1], t)) : l;
|
|
994
965
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
function In(e, t) {
|
|
966
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
967
|
+
function Ln(e, t) {
|
|
998
968
|
let n = e[e.length - 1];
|
|
999
969
|
for (let r = 1; r <= t; r++) {
|
|
1000
|
-
let i = /* @__PURE__ */
|
|
1001
|
-
e.push(
|
|
970
|
+
let i = /* @__PURE__ */ Ee(0, t, r);
|
|
971
|
+
e.push(tn(n, 1, i));
|
|
1002
972
|
}
|
|
1003
973
|
}
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
function Ln(e) {
|
|
974
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
975
|
+
function Rn(e) {
|
|
1007
976
|
let t = [0];
|
|
1008
|
-
return
|
|
977
|
+
return Ln(t, e.length - 1), t;
|
|
1009
978
|
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
function Rn(e, t) {
|
|
979
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
980
|
+
function zn(e, t) {
|
|
1013
981
|
return e.map((e) => e * t);
|
|
1014
982
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
return e.map(() => t || qe).splice(0, e.length - 1);
|
|
983
|
+
// node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
984
|
+
function Bn(e, t) {
|
|
985
|
+
return e.map(() => t || Je).splice(0, e.length - 1);
|
|
1019
986
|
}
|
|
1020
|
-
function
|
|
1021
|
-
let i = /* @__PURE__ */
|
|
987
|
+
function Vn({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
988
|
+
let i = /* @__PURE__ */ Ye(r) ? r.map(et) : et(r), a = {
|
|
1022
989
|
done: !1,
|
|
1023
990
|
value: t[0]
|
|
1024
|
-
}, o =
|
|
991
|
+
}, o = In(zn(n && n.length === t.length ? n : Rn(t), e), t, { ease: Array.isArray(i) ? i : Bn(t, i) });
|
|
1025
992
|
return {
|
|
1026
993
|
calculatedDuration: e,
|
|
1027
994
|
next: (t) => (a.value = o(t), a.done = t >= e, a)
|
|
1028
995
|
};
|
|
1029
996
|
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
let a = e.filter(Vn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
997
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
998
|
+
var Hn = (e) => e !== null;
|
|
999
|
+
function Un(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
1000
|
+
let a = e.filter(Hn), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
1035
1001
|
return !o || r === void 0 ? a[o] : r;
|
|
1036
1002
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
spring: An
|
|
1003
|
+
// node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
1004
|
+
var Wn = {
|
|
1005
|
+
decay: Pn,
|
|
1006
|
+
inertia: Pn,
|
|
1007
|
+
tween: Vn,
|
|
1008
|
+
keyframes: Vn,
|
|
1009
|
+
spring: jn
|
|
1045
1010
|
};
|
|
1046
|
-
function
|
|
1047
|
-
typeof e.type == "string" && (e.type =
|
|
1011
|
+
function Gn(e) {
|
|
1012
|
+
typeof e.type == "string" && (e.type = Wn[e.type]);
|
|
1048
1013
|
}
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
var Gn = class {
|
|
1014
|
+
// node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
1015
|
+
var Kn = class {
|
|
1052
1016
|
constructor() {
|
|
1053
1017
|
this.updateFinished();
|
|
1054
1018
|
}
|
|
@@ -1066,7 +1030,7 @@ var Gn = class {
|
|
|
1066
1030
|
then(e, t) {
|
|
1067
1031
|
return this.finished.then(e, t);
|
|
1068
1032
|
}
|
|
1069
|
-
},
|
|
1033
|
+
}, qn = (e) => e / 100, Jn = class extends Kn {
|
|
1070
1034
|
constructor(e) {
|
|
1071
1035
|
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
1072
1036
|
done: !1,
|
|
@@ -1074,13 +1038,13 @@ var Gn = class {
|
|
|
1074
1038
|
}, this.stop = () => {
|
|
1075
1039
|
let { motionValue: e } = this.options;
|
|
1076
1040
|
e && e.updatedAt !== U.now() && this.tick(U.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
1077
|
-
},
|
|
1041
|
+
}, dt.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
1078
1042
|
}
|
|
1079
1043
|
initAnimation() {
|
|
1080
1044
|
let { options: e } = this;
|
|
1081
|
-
|
|
1082
|
-
let { type: t =
|
|
1083
|
-
process.env.NODE_ENV !== "production" && s !==
|
|
1045
|
+
Gn(e);
|
|
1046
|
+
let { type: t = Vn, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || Vn;
|
|
1047
|
+
process.env.NODE_ENV !== "production" && s !== Vn && R(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== Vn && typeof o[0] != "number" && (this.mixKeyframes = Te(qn, gn(o[0], o[1])), o = [0, 100]);
|
|
1084
1048
|
let c = s({
|
|
1085
1049
|
...e,
|
|
1086
1050
|
keyframes: o
|
|
@@ -1089,13 +1053,13 @@ var Gn = class {
|
|
|
1089
1053
|
...e,
|
|
1090
1054
|
keyframes: [...o].reverse(),
|
|
1091
1055
|
velocity: -a
|
|
1092
|
-
})), c.calculatedDuration === null && (c.calculatedDuration =
|
|
1056
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = bn(c));
|
|
1093
1057
|
let { calculatedDuration: l } = c;
|
|
1094
1058
|
this.calculatedDuration = l, this.resolvedDuration = l + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
1095
1059
|
}
|
|
1096
1060
|
updateTime(e) {
|
|
1097
1061
|
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
1098
|
-
this.holdTime === null ?
|
|
1062
|
+
this.currentTime = this.holdTime === null ? t : this.holdTime;
|
|
1099
1063
|
}
|
|
1100
1064
|
tick(e, t = !1) {
|
|
1101
1065
|
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: o, calculatedDuration: s } = this;
|
|
@@ -1107,14 +1071,14 @@ var Gn = class {
|
|
|
1107
1071
|
let v = this.currentTime, y = n;
|
|
1108
1072
|
if (u) {
|
|
1109
1073
|
let e = Math.min(this.currentTime, r) / o, t = Math.floor(e), n = e % 1;
|
|
1110
|
-
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v =
|
|
1074
|
+
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, u + 1), t % 2 && (d === "reverse" ? (n = 1 - n, f && (n -= f / o)) : d === "mirror" && (y = a)), v = I(0, 1, n) * o;
|
|
1111
1075
|
}
|
|
1112
1076
|
let b;
|
|
1113
1077
|
_ ? (this.delayState.value = l[0], b = this.delayState) : b = y.next(v), i && !_ && (b.value = i(b.value));
|
|
1114
1078
|
let { done: x } = b;
|
|
1115
1079
|
!_ && s !== null && (x = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
1116
1080
|
let S = this.holdTime === null && (this.state === "finished" || this.state === "running" && x);
|
|
1117
|
-
return S && p !==
|
|
1081
|
+
return S && p !== Pn && (b.value = Un(l, this.options, h, this.speed)), m && m(b.value), S && this.finish(), b;
|
|
1118
1082
|
}
|
|
1119
1083
|
then(e, t) {
|
|
1120
1084
|
return this.finished.then(e, t);
|
|
@@ -1137,7 +1101,7 @@ var Gn = class {
|
|
|
1137
1101
|
if (e <= 0) return this.options.velocity || 0;
|
|
1138
1102
|
if (this.generator.velocity) return this.generator.velocity(e);
|
|
1139
1103
|
let t = this.generator.next(e).value;
|
|
1140
|
-
return
|
|
1104
|
+
return Nn((e) => this.generator.next(e).value, e, t);
|
|
1141
1105
|
}
|
|
1142
1106
|
get speed() {
|
|
1143
1107
|
return this.playbackSpeed;
|
|
@@ -1148,7 +1112,7 @@ var Gn = class {
|
|
|
1148
1112
|
}
|
|
1149
1113
|
play() {
|
|
1150
1114
|
if (this.isStopped) return;
|
|
1151
|
-
let { driver: e =
|
|
1115
|
+
let { driver: e = _n, startTime: t } = this.options;
|
|
1152
1116
|
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
1153
1117
|
let n = this.driver.now();
|
|
1154
1118
|
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -1166,7 +1130,7 @@ var Gn = class {
|
|
|
1166
1130
|
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
1167
1131
|
}
|
|
1168
1132
|
teardown() {
|
|
1169
|
-
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null,
|
|
1133
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, dt.mainThread--;
|
|
1170
1134
|
}
|
|
1171
1135
|
stopDriver() {
|
|
1172
1136
|
this.driver &&= (this.driver.stop(), void 0);
|
|
@@ -1178,14 +1142,12 @@ var Gn = class {
|
|
|
1178
1142
|
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
1179
1143
|
}
|
|
1180
1144
|
};
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
function Jn(e) {
|
|
1145
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
1146
|
+
function Yn(e) {
|
|
1184
1147
|
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
1185
1148
|
}
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
var X = (e) => e * 180 / Math.PI, Yn = (e) => Zn(X(Math.atan2(e[1], e[0]))), Xn = {
|
|
1149
|
+
// node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
1150
|
+
var X = (e) => e * 180 / Math.PI, Xn = (e) => Qn(X(Math.atan2(e[1], e[0]))), Zn = {
|
|
1189
1151
|
x: 4,
|
|
1190
1152
|
y: 5,
|
|
1191
1153
|
translateX: 4,
|
|
@@ -1193,54 +1155,53 @@ var X = (e) => e * 180 / Math.PI, Yn = (e) => Zn(X(Math.atan2(e[1], e[0]))), Xn
|
|
|
1193
1155
|
scaleX: 0,
|
|
1194
1156
|
scaleY: 3,
|
|
1195
1157
|
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
1196
|
-
rotate:
|
|
1197
|
-
rotateZ:
|
|
1158
|
+
rotate: Xn,
|
|
1159
|
+
rotateZ: Xn,
|
|
1198
1160
|
skewX: (e) => X(Math.atan(e[1])),
|
|
1199
1161
|
skewY: (e) => X(Math.atan(e[2])),
|
|
1200
1162
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
1201
|
-
},
|
|
1163
|
+
}, Qn = (e) => (e %= 360, e < 0 && (e += 360), e), $n = Xn, er = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), tr = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), nr = {
|
|
1202
1164
|
x: 12,
|
|
1203
1165
|
y: 13,
|
|
1204
1166
|
z: 14,
|
|
1205
1167
|
translateX: 12,
|
|
1206
1168
|
translateY: 13,
|
|
1207
1169
|
translateZ: 14,
|
|
1208
|
-
scaleX:
|
|
1209
|
-
scaleY:
|
|
1210
|
-
scale: (e) => (
|
|
1211
|
-
rotateX: (e) =>
|
|
1212
|
-
rotateY: (e) =>
|
|
1213
|
-
rotateZ:
|
|
1214
|
-
rotate:
|
|
1170
|
+
scaleX: er,
|
|
1171
|
+
scaleY: tr,
|
|
1172
|
+
scale: (e) => (er(e) + tr(e)) / 2,
|
|
1173
|
+
rotateX: (e) => Qn(X(Math.atan2(e[6], e[5]))),
|
|
1174
|
+
rotateY: (e) => Qn(X(Math.atan2(-e[2], e[0]))),
|
|
1175
|
+
rotateZ: $n,
|
|
1176
|
+
rotate: $n,
|
|
1215
1177
|
skewX: (e) => X(Math.atan(e[4])),
|
|
1216
1178
|
skewY: (e) => X(Math.atan(e[1])),
|
|
1217
1179
|
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
1218
1180
|
};
|
|
1219
|
-
function
|
|
1181
|
+
function rr(e) {
|
|
1220
1182
|
return +!!e.includes("scale");
|
|
1221
1183
|
}
|
|
1222
|
-
function
|
|
1223
|
-
if (!e || e === "none") return
|
|
1184
|
+
function ir(e, t) {
|
|
1185
|
+
if (!e || e === "none") return rr(t);
|
|
1224
1186
|
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
1225
|
-
if (n) r =
|
|
1187
|
+
if (n) r = nr, i = n;
|
|
1226
1188
|
else {
|
|
1227
1189
|
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
1228
|
-
r =
|
|
1190
|
+
r = Zn, i = t;
|
|
1229
1191
|
}
|
|
1230
|
-
if (!i) return
|
|
1231
|
-
let a = r[t], o = i[1].split(",").map(
|
|
1192
|
+
if (!i) return rr(t);
|
|
1193
|
+
let a = r[t], o = i[1].split(",").map(or);
|
|
1232
1194
|
return typeof a == "function" ? a(o) : o[a];
|
|
1233
1195
|
}
|
|
1234
|
-
var
|
|
1196
|
+
var ar = (e, t) => {
|
|
1235
1197
|
let { transform: n = "none" } = getComputedStyle(e);
|
|
1236
|
-
return
|
|
1198
|
+
return ir(n, t);
|
|
1237
1199
|
};
|
|
1238
|
-
function
|
|
1200
|
+
function or(e) {
|
|
1239
1201
|
return parseFloat(e.trim());
|
|
1240
1202
|
}
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
var or = [
|
|
1203
|
+
// node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
1204
|
+
var sr = [
|
|
1244
1205
|
"transformPerspective",
|
|
1245
1206
|
"x",
|
|
1246
1207
|
"y",
|
|
@@ -1258,14 +1219,14 @@ var or = [
|
|
|
1258
1219
|
"skew",
|
|
1259
1220
|
"skewX",
|
|
1260
1221
|
"skewY"
|
|
1261
|
-
],
|
|
1222
|
+
], cr = /* @__PURE__ */ new Set([...sr, "pathRotation"]), lr = (e) => e === vt || e === K, ur = /* @__PURE__ */ new Set([
|
|
1262
1223
|
"x",
|
|
1263
1224
|
"y",
|
|
1264
1225
|
"z"
|
|
1265
|
-
]),
|
|
1266
|
-
function
|
|
1226
|
+
]), dr = sr.filter((e) => !ur.has(e));
|
|
1227
|
+
function fr(e) {
|
|
1267
1228
|
let t = [];
|
|
1268
|
-
return
|
|
1229
|
+
return dr.forEach((n) => {
|
|
1269
1230
|
let r = e.getValue(n);
|
|
1270
1231
|
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
1271
1232
|
}), t;
|
|
@@ -1283,18 +1244,17 @@ var Z = {
|
|
|
1283
1244
|
left: (e, { left: t }) => parseFloat(t),
|
|
1284
1245
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
1285
1246
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
1286
|
-
x: (e, { transform: t }) =>
|
|
1287
|
-
y: (e, { transform: t }) =>
|
|
1247
|
+
x: (e, { transform: t }) => ir(t, "x"),
|
|
1248
|
+
y: (e, { transform: t }) => ir(t, "y")
|
|
1288
1249
|
};
|
|
1289
1250
|
Z.translateX = Z.x, Z.translateY = Z.y;
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
if (pr) {
|
|
1251
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
1252
|
+
var Q = /* @__PURE__ */ new Set(), pr = !1, mr = !1, hr = !1;
|
|
1253
|
+
function gr() {
|
|
1254
|
+
if (mr) {
|
|
1295
1255
|
let e = Array.from(Q).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
|
|
1296
1256
|
t.forEach((e) => {
|
|
1297
|
-
let t =
|
|
1257
|
+
let t = fr(e);
|
|
1298
1258
|
t.length && (n.set(e, t), e.render());
|
|
1299
1259
|
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
1300
1260
|
e.render();
|
|
@@ -1306,22 +1266,22 @@ function hr() {
|
|
|
1306
1266
|
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
1307
1267
|
});
|
|
1308
1268
|
}
|
|
1309
|
-
|
|
1269
|
+
mr = !1, pr = !1, Q.forEach((e) => e.complete(hr)), Q.clear();
|
|
1310
1270
|
}
|
|
1311
|
-
function
|
|
1271
|
+
function _r() {
|
|
1312
1272
|
Q.forEach((e) => {
|
|
1313
|
-
e.readKeyframes(), e.needsMeasurement && (
|
|
1273
|
+
e.readKeyframes(), e.needsMeasurement && (mr = !0);
|
|
1314
1274
|
});
|
|
1315
1275
|
}
|
|
1316
|
-
function
|
|
1317
|
-
|
|
1276
|
+
function vr() {
|
|
1277
|
+
hr = !0, _r(), gr(), hr = !1;
|
|
1318
1278
|
}
|
|
1319
|
-
var
|
|
1279
|
+
var yr = class {
|
|
1320
1280
|
constructor(e, t, n, r, i, a = !1) {
|
|
1321
1281
|
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
1322
1282
|
}
|
|
1323
1283
|
scheduleResolve() {
|
|
1324
|
-
this.state = "scheduled", this.isAsync ? (Q.add(this),
|
|
1284
|
+
this.state = "scheduled", this.isAsync ? (Q.add(this), pr || (pr = !0, H.read(_r), H.resolveKeyframes(gr))) : (this.readKeyframes(), this.complete());
|
|
1325
1285
|
}
|
|
1326
1286
|
readKeyframes() {
|
|
1327
1287
|
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
@@ -1334,7 +1294,7 @@ var vr = class {
|
|
|
1334
1294
|
}
|
|
1335
1295
|
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1336
1296
|
}
|
|
1337
|
-
|
|
1297
|
+
Yn(e);
|
|
1338
1298
|
}
|
|
1339
1299
|
setFinalKeyframe() {}
|
|
1340
1300
|
measureInitialState() {}
|
|
@@ -1349,73 +1309,67 @@ var vr = class {
|
|
|
1349
1309
|
resume() {
|
|
1350
1310
|
this.state === "pending" && this.scheduleResolve();
|
|
1351
1311
|
}
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
}
|
|
1367
|
-
//#endregion
|
|
1368
|
-
//#region node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1369
|
-
var Cr = /* @__PURE__ */ Sr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), wr = /*@__PURE__*/ Sr(() => {
|
|
1312
|
+
}, br = (e) => e.startsWith("--");
|
|
1313
|
+
// node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1314
|
+
function xr(e, t, n) {
|
|
1315
|
+
br(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1316
|
+
}
|
|
1317
|
+
// node_modules/motion-dom/dist/es/utils/supports/flags.mjs
|
|
1318
|
+
var Sr = {};
|
|
1319
|
+
// node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1320
|
+
function Cr(e, t) {
|
|
1321
|
+
let n = /* @__PURE__ */ Ce(e);
|
|
1322
|
+
return () => Sr[t] ?? n();
|
|
1323
|
+
}
|
|
1324
|
+
// node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1325
|
+
var wr = /* @__PURE__ */ Cr(() => window.ScrollTimeline !== void 0, "scrollTimeline"), Tr = /*@__PURE__*/ Cr(() => {
|
|
1370
1326
|
try {
|
|
1371
1327
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1372
1328
|
} catch {
|
|
1373
1329
|
return !1;
|
|
1374
1330
|
}
|
|
1375
1331
|
return !0;
|
|
1376
|
-
}, "linearEasing"),
|
|
1332
|
+
}, "linearEasing"), Er = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, Dr = {
|
|
1377
1333
|
linear: "linear",
|
|
1378
1334
|
ease: "ease",
|
|
1379
1335
|
easeIn: "ease-in",
|
|
1380
1336
|
easeOut: "ease-out",
|
|
1381
1337
|
easeInOut: "ease-in-out",
|
|
1382
|
-
circIn: /*@__PURE__*/
|
|
1338
|
+
circIn: /*@__PURE__*/ Er([
|
|
1383
1339
|
0,
|
|
1384
1340
|
.65,
|
|
1385
1341
|
.55,
|
|
1386
1342
|
1
|
|
1387
1343
|
]),
|
|
1388
|
-
circOut: /*@__PURE__*/
|
|
1344
|
+
circOut: /*@__PURE__*/ Er([
|
|
1389
1345
|
.55,
|
|
1390
1346
|
0,
|
|
1391
1347
|
1,
|
|
1392
1348
|
.45
|
|
1393
1349
|
]),
|
|
1394
|
-
backIn: /*@__PURE__*/
|
|
1350
|
+
backIn: /*@__PURE__*/ Er([
|
|
1395
1351
|
.31,
|
|
1396
1352
|
.01,
|
|
1397
1353
|
.66,
|
|
1398
1354
|
-.59
|
|
1399
1355
|
]),
|
|
1400
|
-
backOut: /*@__PURE__*/
|
|
1356
|
+
backOut: /*@__PURE__*/ Er([
|
|
1401
1357
|
.33,
|
|
1402
1358
|
1.53,
|
|
1403
1359
|
.69,
|
|
1404
1360
|
.99
|
|
1405
1361
|
])
|
|
1406
1362
|
};
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
function
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
//#region node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1414
|
-
function Or(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1363
|
+
// node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1364
|
+
function Or(e, t) {
|
|
1365
|
+
if (e) return typeof e == "function" ? Tr() ? vn(e, t) : "ease-out" : /* @__PURE__ */ Ze(e) ? Er(e) : Array.isArray(e) ? e.map((e) => Or(e, t) || Dr.easeOut) : Dr[e];
|
|
1366
|
+
}
|
|
1367
|
+
// node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1368
|
+
function kr(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1415
1369
|
let u = { [t]: n };
|
|
1416
1370
|
c && (u.offset = c);
|
|
1417
|
-
let d =
|
|
1418
|
-
Array.isArray(d) && (u.easing = d),
|
|
1371
|
+
let d = Or(s, i);
|
|
1372
|
+
Array.isArray(d) && (u.easing = d), nt.value && dt.waapi++;
|
|
1419
1373
|
let f = {
|
|
1420
1374
|
delay: r,
|
|
1421
1375
|
duration: i,
|
|
@@ -1426,32 +1380,29 @@ function Or(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatTyp
|
|
|
1426
1380
|
};
|
|
1427
1381
|
l && (f.pseudoElement = l);
|
|
1428
1382
|
let p = e.animate(u, f);
|
|
1429
|
-
return
|
|
1430
|
-
|
|
1383
|
+
return nt.value && p.finished.finally(() => {
|
|
1384
|
+
dt.waapi--;
|
|
1431
1385
|
}), p;
|
|
1432
1386
|
}
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
function kr(e) {
|
|
1387
|
+
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1388
|
+
function Ar(e) {
|
|
1436
1389
|
return typeof e == "function" && "applyToOptions" in e;
|
|
1437
1390
|
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
return kr(e) && wr() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1391
|
+
// node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1392
|
+
function jr({ type: e, ...t }) {
|
|
1393
|
+
return Ar(e) && Tr() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1442
1394
|
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
var jr = class extends Gn {
|
|
1395
|
+
// node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1396
|
+
var Mr = class extends Kn {
|
|
1446
1397
|
constructor(e) {
|
|
1447
1398
|
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1448
1399
|
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1449
1400
|
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, R(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
1450
|
-
let c =
|
|
1451
|
-
this.animation =
|
|
1401
|
+
let c = jr(e);
|
|
1402
|
+
this.animation = kr(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1452
1403
|
if (this.finishedTime = this.time, !i) {
|
|
1453
|
-
let e =
|
|
1454
|
-
this.updateMotionValue && this.updateMotionValue(e),
|
|
1404
|
+
let e = Un(r, this.options, o, this.speed);
|
|
1405
|
+
this.updateMotionValue && this.updateMotionValue(e), xr(t, n, e), this.animation.cancel();
|
|
1455
1406
|
}
|
|
1456
1407
|
s?.(), this.notifyFinished();
|
|
1457
1408
|
};
|
|
@@ -1474,7 +1425,7 @@ var jr = class extends Gn {
|
|
|
1474
1425
|
if (this.isStopped) return;
|
|
1475
1426
|
this.isStopped = !0;
|
|
1476
1427
|
let { state: e } = this;
|
|
1477
|
-
e
|
|
1428
|
+
e !== "idle" && e !== "finished" && (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
|
|
1478
1429
|
}
|
|
1479
1430
|
commitStyles() {
|
|
1480
1431
|
let e = this.options?.element;
|
|
@@ -1511,24 +1462,23 @@ var jr = class extends Gn {
|
|
|
1511
1462
|
this.manualStartTime = this.animation.startTime = e;
|
|
1512
1463
|
}
|
|
1513
1464
|
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
|
|
1514
|
-
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e &&
|
|
1465
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && wr() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), we) : r(this);
|
|
1515
1466
|
}
|
|
1516
|
-
},
|
|
1517
|
-
anticipate:
|
|
1518
|
-
backInOut:
|
|
1519
|
-
circInOut:
|
|
1467
|
+
}, Nr = {
|
|
1468
|
+
anticipate: He,
|
|
1469
|
+
backInOut: Ve,
|
|
1470
|
+
circInOut: Ge
|
|
1520
1471
|
};
|
|
1521
|
-
function Nr(e) {
|
|
1522
|
-
return e in Mr;
|
|
1523
|
-
}
|
|
1524
1472
|
function Pr(e) {
|
|
1525
|
-
|
|
1473
|
+
return e in Nr;
|
|
1474
|
+
}
|
|
1475
|
+
function Fr(e) {
|
|
1476
|
+
typeof e.ease == "string" && Pr(e.ease) && (e.ease = Nr[e.ease]);
|
|
1526
1477
|
}
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
var Fr = 10, Ir = class extends jr {
|
|
1478
|
+
// node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
1479
|
+
var Ir = 10, Lr = class extends Mr {
|
|
1530
1480
|
constructor(e) {
|
|
1531
|
-
|
|
1481
|
+
Fr(e), Gn(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
1532
1482
|
}
|
|
1533
1483
|
updateMotionValue(e) {
|
|
1534
1484
|
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
|
|
@@ -1537,47 +1487,43 @@ var Fr = 10, Ir = class extends jr {
|
|
|
1537
1487
|
t.set(e);
|
|
1538
1488
|
return;
|
|
1539
1489
|
}
|
|
1540
|
-
let o = new
|
|
1490
|
+
let o = new Jn({
|
|
1541
1491
|
...a,
|
|
1542
1492
|
autoplay: !1
|
|
1543
|
-
}), s = Math.max(
|
|
1544
|
-
i && u &&
|
|
1493
|
+
}), s = Math.max(Ir, U.now() - this.startTime), c = I(0, Ir, s - Ir), l = o.sample(s).value, { name: u } = this.options;
|
|
1494
|
+
i && u && xr(i, u, l), t.setWithVelocity(o.sample(Math.max(0, s - c)).value, l, c), o.stop();
|
|
1545
1495
|
}
|
|
1546
|
-
},
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
function Rr(e) {
|
|
1496
|
+
}, Rr = (e, t) => t !== "zIndex" && !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (J.test(e) || e === "0") && !e.startsWith("url("));
|
|
1497
|
+
// node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1498
|
+
function zr(e) {
|
|
1550
1499
|
let t = e[0];
|
|
1551
1500
|
if (e.length === 1) return !0;
|
|
1552
1501
|
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1553
1502
|
}
|
|
1554
|
-
function
|
|
1503
|
+
function Br(e, t, n, r) {
|
|
1555
1504
|
let i = e[0];
|
|
1556
1505
|
if (i === null) return !1;
|
|
1557
1506
|
if (t === "display" || t === "visibility") return !0;
|
|
1558
|
-
let a = e[e.length - 1], o =
|
|
1559
|
-
return
|
|
1507
|
+
let a = e[e.length - 1], o = Rr(i, t), s = Rr(a, t);
|
|
1508
|
+
return L(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : zr(e) || (n === "spring" || Ar(n)) && r;
|
|
1560
1509
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
function Br(e) {
|
|
1510
|
+
// node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1511
|
+
function Vr(e) {
|
|
1564
1512
|
e.duration = 0, e.type = "keyframes";
|
|
1565
1513
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
var Vr = new Set([
|
|
1514
|
+
// node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
|
|
1515
|
+
var Hr = /* @__PURE__ */ new Set([
|
|
1569
1516
|
"opacity",
|
|
1570
1517
|
"clipPath",
|
|
1571
1518
|
"filter",
|
|
1572
1519
|
"transform"
|
|
1573
|
-
]),
|
|
1574
|
-
function
|
|
1575
|
-
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" &&
|
|
1520
|
+
]), Ur = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1521
|
+
function Wr(e) {
|
|
1522
|
+
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && Ur.test(e[t])) return !0;
|
|
1576
1523
|
return !1;
|
|
1577
1524
|
}
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
var Wr = new Set([
|
|
1525
|
+
// node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1526
|
+
var Gr = /* @__PURE__ */ new Set([
|
|
1581
1527
|
"color",
|
|
1582
1528
|
"backgroundColor",
|
|
1583
1529
|
"outlineColor",
|
|
@@ -1588,16 +1534,15 @@ var Wr = new Set([
|
|
|
1588
1534
|
"borderRightColor",
|
|
1589
1535
|
"borderBottomColor",
|
|
1590
1536
|
"borderLeftColor"
|
|
1591
|
-
]),
|
|
1592
|
-
function
|
|
1537
|
+
]), Kr = /*@__PURE__*/ Ce(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1538
|
+
function qr(e) {
|
|
1593
1539
|
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1594
1540
|
if (!(t?.owner?.current instanceof HTMLElement)) return !1;
|
|
1595
1541
|
let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
|
|
1596
|
-
return
|
|
1542
|
+
return Kr() && n && (Hr.has(n) || Gr.has(n) && Wr(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1597
1543
|
}
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
var qr = 40, Jr = class extends Gn {
|
|
1544
|
+
// node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1545
|
+
var Jr = 40, Yr = class extends Kn {
|
|
1601
1546
|
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
|
|
1602
1547
|
super(), this.stop = () => {
|
|
1603
1548
|
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
@@ -1613,7 +1558,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1613
1558
|
motionValue: c,
|
|
1614
1559
|
element: l,
|
|
1615
1560
|
...u
|
|
1616
|
-
}, f = l?.KeyframeResolver ||
|
|
1561
|
+
}, f = l?.KeyframeResolver || yr;
|
|
1617
1562
|
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1618
1563
|
}
|
|
1619
1564
|
onKeyframesResolved(e, t, n, r) {
|
|
@@ -1621,25 +1566,25 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1621
1566
|
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
|
|
1622
1567
|
this.resolvedAt = U.now();
|
|
1623
1568
|
let u = !0;
|
|
1624
|
-
|
|
1569
|
+
Br(e, i, a, o) || (u = !1, (z.instantAnimations || !s) && l?.(Un(e, n, t)), e[0] = e[e.length - 1], Vr(n), n.repeat = 0);
|
|
1625
1570
|
let d = {
|
|
1626
|
-
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt >
|
|
1571
|
+
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Jr ? this.resolvedAt : this.createdAt : void 0,
|
|
1627
1572
|
finalKeyframe: t,
|
|
1628
1573
|
...n,
|
|
1629
1574
|
keyframes: e
|
|
1630
|
-
}, f = u && !c &&
|
|
1575
|
+
}, f = u && !c && qr(d), p = d.motionValue?.owner?.current, m;
|
|
1631
1576
|
if (f) try {
|
|
1632
|
-
m = new
|
|
1577
|
+
m = new Lr({
|
|
1633
1578
|
...d,
|
|
1634
1579
|
element: p
|
|
1635
1580
|
});
|
|
1636
1581
|
} catch {
|
|
1637
|
-
m = new
|
|
1582
|
+
m = new Jn(d);
|
|
1638
1583
|
}
|
|
1639
|
-
else m = new
|
|
1584
|
+
else m = new Jn(d);
|
|
1640
1585
|
m.finished.then(() => {
|
|
1641
1586
|
this.notifyFinished();
|
|
1642
|
-
}).catch(
|
|
1587
|
+
}).catch(we), this.pendingTimeline &&= (this.stopTimeline = m.attachTimeline(this.pendingTimeline), void 0), this._animation = m;
|
|
1643
1588
|
}
|
|
1644
1589
|
get finished() {
|
|
1645
1590
|
return this._animation ? this.animation.finished : this._finished;
|
|
@@ -1648,7 +1593,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1648
1593
|
return this.finished.finally(e).then(() => {});
|
|
1649
1594
|
}
|
|
1650
1595
|
get animation() {
|
|
1651
|
-
return this._animation || (this.keyframeResolver?.resume(),
|
|
1596
|
+
return this._animation || (this.keyframeResolver?.resume(), vr()), this._animation;
|
|
1652
1597
|
}
|
|
1653
1598
|
get duration() {
|
|
1654
1599
|
return this.animation.duration;
|
|
@@ -1689,7 +1634,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1689
1634
|
cancel() {
|
|
1690
1635
|
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1691
1636
|
}
|
|
1692
|
-
},
|
|
1637
|
+
}, Xr = class {
|
|
1693
1638
|
constructor(e) {
|
|
1694
1639
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
1695
1640
|
}
|
|
@@ -1729,10 +1674,10 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1729
1674
|
return this.getAll("startTime");
|
|
1730
1675
|
}
|
|
1731
1676
|
get duration() {
|
|
1732
|
-
return
|
|
1677
|
+
return Zr(this.animations, "duration");
|
|
1733
1678
|
}
|
|
1734
1679
|
get iterationDuration() {
|
|
1735
|
-
return
|
|
1680
|
+
return Zr(this.animations, "iterationDuration");
|
|
1736
1681
|
}
|
|
1737
1682
|
runAll(e) {
|
|
1738
1683
|
this.animations.forEach((t) => t[e]());
|
|
@@ -1750,7 +1695,7 @@ var qr = 40, Jr = class extends Gn {
|
|
|
1750
1695
|
this.runAll("complete");
|
|
1751
1696
|
}
|
|
1752
1697
|
};
|
|
1753
|
-
function
|
|
1698
|
+
function Zr(e, t) {
|
|
1754
1699
|
let n = 0;
|
|
1755
1700
|
for (let r = 0; r < e.length; r++) {
|
|
1756
1701
|
let i = e[r][t];
|
|
@@ -1758,13 +1703,12 @@ function Xr(e, t) {
|
|
|
1758
1703
|
}
|
|
1759
1704
|
return n;
|
|
1760
1705
|
}
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
var Zr = class extends Yr {
|
|
1706
|
+
// node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.mjs
|
|
1707
|
+
var Qr = class extends Xr {
|
|
1764
1708
|
then(e, t) {
|
|
1765
1709
|
return this.finished.finally(e).then(() => {});
|
|
1766
1710
|
}
|
|
1767
|
-
},
|
|
1711
|
+
}, $r = 30, ei = (e) => !isNaN(parseFloat(e)), ti = { current: void 0 }, ni = class {
|
|
1768
1712
|
constructor(e, t = {}) {
|
|
1769
1713
|
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1770
1714
|
let t = U.now();
|
|
@@ -1772,16 +1716,16 @@ var Zr = class extends Yr {
|
|
|
1772
1716
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1773
1717
|
}
|
|
1774
1718
|
setCurrent(e) {
|
|
1775
|
-
this.current = e, this.updatedAt = U.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
1719
|
+
this.current = e, this.updatedAt = U.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = ei(this.current));
|
|
1776
1720
|
}
|
|
1777
1721
|
setPrevFrameValue(e = this.current) {
|
|
1778
1722
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1779
1723
|
}
|
|
1780
1724
|
onChange(e) {
|
|
1781
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1725
|
+
return process.env.NODE_ENV !== "production" && Ae(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
1782
1726
|
}
|
|
1783
1727
|
on(e, t) {
|
|
1784
|
-
this.events[e] || (this.events[e] = new
|
|
1728
|
+
this.events[e] || (this.events[e] = new De());
|
|
1785
1729
|
let n = this.events[e].add(t);
|
|
1786
1730
|
return e === "change" ? () => {
|
|
1787
1731
|
n(), H.read(() => {
|
|
@@ -1814,16 +1758,16 @@ var Zr = class extends Yr {
|
|
|
1814
1758
|
this.dependents && this.dependents.delete(e);
|
|
1815
1759
|
}
|
|
1816
1760
|
get() {
|
|
1817
|
-
return
|
|
1761
|
+
return ti.current && ti.current.push(this), this.current;
|
|
1818
1762
|
}
|
|
1819
1763
|
getPrevious() {
|
|
1820
1764
|
return this.prev;
|
|
1821
1765
|
}
|
|
1822
1766
|
getVelocity() {
|
|
1823
1767
|
let e = U.now();
|
|
1824
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt >
|
|
1825
|
-
let t = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
1826
|
-
return /* @__PURE__ */
|
|
1768
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > $r) return 0;
|
|
1769
|
+
let t = Math.min(this.updatedAt - this.prevUpdatedAt, $r);
|
|
1770
|
+
return /* @__PURE__ */ Oe(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
1827
1771
|
}
|
|
1828
1772
|
start(e) {
|
|
1829
1773
|
return this.stop(), new Promise((t) => {
|
|
@@ -1845,12 +1789,11 @@ var Zr = class extends Yr {
|
|
|
1845
1789
|
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1846
1790
|
}
|
|
1847
1791
|
};
|
|
1848
|
-
function ni(e, t) {
|
|
1849
|
-
return new ti(e, t);
|
|
1850
|
-
}
|
|
1851
|
-
//#endregion
|
|
1852
|
-
//#region node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
1853
1792
|
function ri(e, t) {
|
|
1793
|
+
return new ni(e, t);
|
|
1794
|
+
}
|
|
1795
|
+
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
1796
|
+
function ii(e, t) {
|
|
1854
1797
|
if (e?.inherit && t) {
|
|
1855
1798
|
let { inherit: n, ...r } = e;
|
|
1856
1799
|
return {
|
|
@@ -1860,28 +1803,26 @@ function ri(e, t) {
|
|
|
1860
1803
|
}
|
|
1861
1804
|
return e;
|
|
1862
1805
|
}
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
function ii(e, t) {
|
|
1806
|
+
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
1807
|
+
function ai(e, t) {
|
|
1866
1808
|
let n = e?.[t] ?? e?.default ?? e;
|
|
1867
|
-
return n === e ? n :
|
|
1809
|
+
return n === e ? n : ii(n, e);
|
|
1868
1810
|
}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
var ai = {
|
|
1811
|
+
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
1812
|
+
var oi = {
|
|
1872
1813
|
type: "spring",
|
|
1873
1814
|
stiffness: 500,
|
|
1874
1815
|
damping: 25,
|
|
1875
1816
|
restSpeed: 10
|
|
1876
|
-
},
|
|
1817
|
+
}, si = (e) => ({
|
|
1877
1818
|
type: "spring",
|
|
1878
1819
|
stiffness: 550,
|
|
1879
1820
|
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
1880
1821
|
restSpeed: 10
|
|
1881
|
-
}),
|
|
1822
|
+
}), ci = {
|
|
1882
1823
|
type: "keyframes",
|
|
1883
1824
|
duration: .8
|
|
1884
|
-
},
|
|
1825
|
+
}, li = {
|
|
1885
1826
|
type: "keyframes",
|
|
1886
1827
|
ease: [
|
|
1887
1828
|
.25,
|
|
@@ -1890,7 +1831,7 @@ var ai = {
|
|
|
1890
1831
|
1
|
|
1891
1832
|
],
|
|
1892
1833
|
duration: .3
|
|
1893
|
-
},
|
|
1834
|
+
}, ui = (e, { keyframes: t }) => t.length > 2 ? ci : cr.has(e) ? e.startsWith("scale") ? si(t[1]) : oi : li, di = /* @__PURE__ */ new Set([
|
|
1894
1835
|
"when",
|
|
1895
1836
|
"delay",
|
|
1896
1837
|
"delayChildren",
|
|
@@ -1902,14 +1843,13 @@ var ai = {
|
|
|
1902
1843
|
"from",
|
|
1903
1844
|
"elapsed"
|
|
1904
1845
|
]);
|
|
1905
|
-
function
|
|
1906
|
-
for (let t in e) if (!
|
|
1846
|
+
function fi(e) {
|
|
1847
|
+
for (let t in e) if (!di.has(t)) return !0;
|
|
1907
1848
|
return !1;
|
|
1908
1849
|
}
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
let s = ii(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1850
|
+
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
1851
|
+
var pi = (e, t, n, r = {}, i, a) => (o) => {
|
|
1852
|
+
let s = ai(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1913
1853
|
l -= /* @__PURE__ */ B(c);
|
|
1914
1854
|
let u = {
|
|
1915
1855
|
keyframes: Array.isArray(n) ? n : [null, n],
|
|
@@ -1927,10 +1867,10 @@ var fi = (e, t, n, r = {}, i, a) => (o) => {
|
|
|
1927
1867
|
motionValue: t,
|
|
1928
1868
|
element: a ? void 0 : i
|
|
1929
1869
|
};
|
|
1930
|
-
|
|
1870
|
+
fi(s) || Object.assign(u, ui(e, u)), u.duration &&= /* @__PURE__ */ B(u.duration), u.repeatDelay &&= /* @__PURE__ */ B(u.repeatDelay), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
1931
1871
|
let d = !1;
|
|
1932
|
-
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (
|
|
1933
|
-
let e =
|
|
1872
|
+
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (Vr(u), u.delay === 0 && (d = !0)), (z.instantAnimations || z.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (d = !0, Vr(u), u.delay = 0), u.allowFlatten = !s.type && !s.ease, d && !a && t.get() !== void 0) {
|
|
1873
|
+
let e = Un(u.keyframes, s);
|
|
1934
1874
|
if (e !== void 0) {
|
|
1935
1875
|
H.update(() => {
|
|
1936
1876
|
u.onUpdate(e), u.onComplete();
|
|
@@ -1938,126 +1878,116 @@ var fi = (e, t, n, r = {}, i, a) => (o) => {
|
|
|
1938
1878
|
return;
|
|
1939
1879
|
}
|
|
1940
1880
|
}
|
|
1941
|
-
return s.isSync ? new
|
|
1942
|
-
},
|
|
1943
|
-
function
|
|
1944
|
-
let t =
|
|
1881
|
+
return s.isSync ? new Jn(u) : new Yr(u);
|
|
1882
|
+
}, mi = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1883
|
+
function hi(e) {
|
|
1884
|
+
let t = mi.exec(e);
|
|
1945
1885
|
if (!t) return [,];
|
|
1946
1886
|
let [, n, r, i] = t;
|
|
1947
1887
|
return [`--${n ?? r}`, i];
|
|
1948
1888
|
}
|
|
1949
|
-
var
|
|
1950
|
-
function
|
|
1951
|
-
R(n <=
|
|
1952
|
-
let [r, i] =
|
|
1889
|
+
var gi = 4;
|
|
1890
|
+
function _i(e, t, n = 1) {
|
|
1891
|
+
R(n <= gi, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1892
|
+
let [r, i] = hi(e);
|
|
1953
1893
|
if (!r) return;
|
|
1954
1894
|
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
1955
1895
|
if (a) {
|
|
1956
1896
|
let e = a.trim();
|
|
1957
|
-
return
|
|
1897
|
+
return be(e) ? parseFloat(e) : e;
|
|
1958
1898
|
}
|
|
1959
|
-
return
|
|
1899
|
+
return ht(i) ? _i(i, t, n + 1) : i;
|
|
1960
1900
|
}
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
function _i(e) {
|
|
1901
|
+
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
1902
|
+
function vi(e) {
|
|
1964
1903
|
let t = [{}, {}];
|
|
1965
1904
|
return e?.values.forEach((e, n) => {
|
|
1966
1905
|
t[0][n] = e.get(), t[1][n] = e.getVelocity();
|
|
1967
1906
|
}), t;
|
|
1968
1907
|
}
|
|
1969
|
-
function
|
|
1908
|
+
function yi(e, t, n, r) {
|
|
1970
1909
|
if (typeof t == "function") {
|
|
1971
|
-
let [i, a] =
|
|
1910
|
+
let [i, a] = vi(r);
|
|
1972
1911
|
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1973
1912
|
}
|
|
1974
1913
|
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
1975
|
-
let [i, a] =
|
|
1914
|
+
let [i, a] = vi(r);
|
|
1976
1915
|
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1977
1916
|
}
|
|
1978
1917
|
return t;
|
|
1979
1918
|
}
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
function yi(e, t, n) {
|
|
1919
|
+
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
1920
|
+
function bi(e, t, n) {
|
|
1983
1921
|
let r = e.getProps();
|
|
1984
|
-
return
|
|
1922
|
+
return yi(r, t, n === void 0 ? r.custom : n, e);
|
|
1985
1923
|
}
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
var bi = new Set([
|
|
1924
|
+
// node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
1925
|
+
var xi = /* @__PURE__ */ new Set([
|
|
1989
1926
|
"width",
|
|
1990
1927
|
"height",
|
|
1991
1928
|
"top",
|
|
1992
1929
|
"left",
|
|
1993
1930
|
"right",
|
|
1994
1931
|
"bottom",
|
|
1995
|
-
...
|
|
1996
|
-
]),
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
let { transitionEnd: n = {}, transition: r = {}, ...i } = yi(e, t) || {};
|
|
1932
|
+
...sr
|
|
1933
|
+
]), Si = (e) => Array.isArray(e);
|
|
1934
|
+
// node_modules/motion-dom/dist/es/render/utils/setters.mjs
|
|
1935
|
+
function Ci(e, t, n) {
|
|
1936
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, ri(n));
|
|
1937
|
+
}
|
|
1938
|
+
function wi(e) {
|
|
1939
|
+
return Si(e) ? e[e.length - 1] || 0 : e;
|
|
1940
|
+
}
|
|
1941
|
+
function Ti(e, t) {
|
|
1942
|
+
let { transitionEnd: n = {}, transition: r = {}, ...i } = bi(e, t) || {};
|
|
2007
1943
|
i = {
|
|
2008
1944
|
...i,
|
|
2009
1945
|
...n
|
|
2010
1946
|
};
|
|
2011
|
-
for (let t in i)
|
|
1947
|
+
for (let t in i) Ci(e, t, wi(i[t]));
|
|
2012
1948
|
}
|
|
2013
|
-
|
|
2014
|
-
//#region node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
1949
|
+
// node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
2015
1950
|
var $ = (e) => !!(e && e.getVelocity);
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
function Ti(e) {
|
|
1951
|
+
// node_modules/motion-dom/dist/es/value/will-change/is.mjs
|
|
1952
|
+
function Ei(e) {
|
|
2019
1953
|
return !!($(e) && e.add);
|
|
2020
1954
|
}
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
function Ei(e, t) {
|
|
1955
|
+
// node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
|
|
1956
|
+
function Di(e, t) {
|
|
2024
1957
|
let n = e.getValue("willChange");
|
|
2025
|
-
if (
|
|
1958
|
+
if (Ei(n)) return n.add(t);
|
|
2026
1959
|
if (!n && z.WillChange) {
|
|
2027
1960
|
let n = new z.WillChange("auto");
|
|
2028
1961
|
e.addValue("willChange", n), n.add(t);
|
|
2029
1962
|
}
|
|
2030
1963
|
}
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
function Di(e) {
|
|
1964
|
+
// node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
|
|
1965
|
+
function Oi(e) {
|
|
2034
1966
|
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
2035
1967
|
}
|
|
2036
|
-
var
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
return e.props[Oi];
|
|
1968
|
+
var ki = "data-" + Oi("framerAppearId");
|
|
1969
|
+
// node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
|
|
1970
|
+
function Ai(e) {
|
|
1971
|
+
return e.props[ki];
|
|
2041
1972
|
}
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
function Ai({ protectedKeys: e, needsAnimating: t }, n) {
|
|
1973
|
+
// node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
1974
|
+
function ji({ protectedKeys: e, needsAnimating: t }, n) {
|
|
2045
1975
|
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
2046
1976
|
return t[n] = !1, r;
|
|
2047
1977
|
}
|
|
2048
|
-
function
|
|
1978
|
+
function Mi(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
2049
1979
|
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
|
|
2050
|
-
a = a ?
|
|
1980
|
+
a = a ? ii(a, c) : c;
|
|
2051
1981
|
let l = a?.reduceMotion, u = a?.skipAnimations;
|
|
2052
1982
|
r && (a = r);
|
|
2053
1983
|
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
|
|
2054
1984
|
p && p.animateVisualElement(e, s, a, n, d);
|
|
2055
1985
|
for (let t in s) {
|
|
2056
1986
|
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
|
|
2057
|
-
if (i === void 0 || f &&
|
|
1987
|
+
if (i === void 0 || f && ji(f, t)) continue;
|
|
2058
1988
|
let o = {
|
|
2059
1989
|
delay: n,
|
|
2060
|
-
...
|
|
1990
|
+
...ai(a || {}, t)
|
|
2061
1991
|
};
|
|
2062
1992
|
u && (o.skipAnimations = !0);
|
|
2063
1993
|
let c = r.get();
|
|
@@ -2067,68 +1997,65 @@ function ji(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2067
1997
|
}
|
|
2068
1998
|
let p = !1;
|
|
2069
1999
|
if (window.MotionHandoffAnimation) {
|
|
2070
|
-
let n =
|
|
2000
|
+
let n = Ai(e);
|
|
2071
2001
|
if (n) {
|
|
2072
2002
|
let e = window.MotionHandoffAnimation(n, t, H);
|
|
2073
2003
|
e !== null && (o.startTime = e, p = !0);
|
|
2074
2004
|
}
|
|
2075
2005
|
}
|
|
2076
|
-
|
|
2006
|
+
Di(e, t);
|
|
2077
2007
|
let m = l ?? e.shouldReduceMotion;
|
|
2078
|
-
r.start(
|
|
2008
|
+
r.start(pi(t, r, i, m && xi.has(t) ? { type: !1 } : o, e, p));
|
|
2079
2009
|
let h = r.animation;
|
|
2080
2010
|
h && d.push(h);
|
|
2081
2011
|
}
|
|
2082
2012
|
if (o) {
|
|
2083
2013
|
let t = () => H.update(() => {
|
|
2084
|
-
o &&
|
|
2014
|
+
o && Ti(e, o);
|
|
2085
2015
|
});
|
|
2086
2016
|
d.length ? Promise.all(d).then(t) : t();
|
|
2087
2017
|
}
|
|
2088
2018
|
return d;
|
|
2089
2019
|
}
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
var Mi = {
|
|
2020
|
+
// node_modules/motion-dom/dist/es/value/types/auto.mjs
|
|
2021
|
+
var Ni = {
|
|
2093
2022
|
test: (e) => e === "auto",
|
|
2094
2023
|
parse: (e) => e
|
|
2095
|
-
},
|
|
2096
|
-
|
|
2024
|
+
}, Pi = (e) => (t) => t.test(e), Fi = [
|
|
2025
|
+
vt,
|
|
2097
2026
|
K,
|
|
2098
|
-
|
|
2027
|
+
Mt,
|
|
2099
2028
|
G,
|
|
2029
|
+
Pt,
|
|
2100
2030
|
Nt,
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
//#endregion
|
|
2110
|
-
//#region node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
2111
|
-
var Li = new Set([
|
|
2031
|
+
Ni
|
|
2032
|
+
], Ii = (e) => Fi.find(Pi(e));
|
|
2033
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
2034
|
+
function Li(e) {
|
|
2035
|
+
return typeof e == "number" ? e === 0 : e === null || e === "none" || e === "0" || Se(e);
|
|
2036
|
+
}
|
|
2037
|
+
// node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
2038
|
+
var Ri = /* @__PURE__ */ new Set([
|
|
2112
2039
|
"brightness",
|
|
2113
2040
|
"contrast",
|
|
2114
2041
|
"saturate",
|
|
2115
2042
|
"opacity"
|
|
2116
2043
|
]);
|
|
2117
|
-
function
|
|
2044
|
+
function zi(e) {
|
|
2118
2045
|
let [t, n] = e.slice(0, -1).split("(");
|
|
2119
2046
|
if (t === "drop-shadow") return e;
|
|
2120
|
-
let [r] = n.match(
|
|
2047
|
+
let [r] = n.match(St) || [];
|
|
2121
2048
|
if (!r) return e;
|
|
2122
|
-
let i = n.replace(r, ""), a = +!!
|
|
2049
|
+
let i = n.replace(r, ""), a = +!!Ri.has(t);
|
|
2123
2050
|
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
2124
2051
|
}
|
|
2125
|
-
var
|
|
2052
|
+
var Bi = /\b([a-z-]*)\(.*?\)/gu, Vi = {
|
|
2126
2053
|
...J,
|
|
2127
2054
|
getAnimatableNone: (e) => {
|
|
2128
|
-
let t = e.match(
|
|
2129
|
-
return t ? t.map(
|
|
2055
|
+
let t = e.match(Bi);
|
|
2056
|
+
return t ? t.map(zi).join(" ") : e;
|
|
2130
2057
|
}
|
|
2131
|
-
},
|
|
2058
|
+
}, Hi = {
|
|
2132
2059
|
...J,
|
|
2133
2060
|
getAnimatableNone: (e) => {
|
|
2134
2061
|
let t = J.parse(e);
|
|
@@ -2137,10 +2064,10 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2137
2064
|
alpha: 1
|
|
2138
2065
|
} : e));
|
|
2139
2066
|
}
|
|
2140
|
-
}, Hi = {
|
|
2141
|
-
..._t,
|
|
2142
|
-
transform: Math.round
|
|
2143
2067
|
}, Ui = {
|
|
2068
|
+
...vt,
|
|
2069
|
+
transform: Math.round
|
|
2070
|
+
}, Wi = {
|
|
2144
2071
|
borderWidth: K,
|
|
2145
2072
|
borderTopWidth: K,
|
|
2146
2073
|
borderRightWidth: K,
|
|
@@ -2196,10 +2123,10 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2196
2123
|
rotateX: G,
|
|
2197
2124
|
rotateY: G,
|
|
2198
2125
|
rotateZ: G,
|
|
2199
|
-
scale:
|
|
2200
|
-
scaleX:
|
|
2201
|
-
scaleY:
|
|
2202
|
-
scaleZ:
|
|
2126
|
+
scale: bt,
|
|
2127
|
+
scaleX: bt,
|
|
2128
|
+
scaleY: bt,
|
|
2129
|
+
scaleZ: bt,
|
|
2203
2130
|
skew: G,
|
|
2204
2131
|
skewX: G,
|
|
2205
2132
|
skewY: G,
|
|
@@ -2212,16 +2139,16 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2212
2139
|
z: K,
|
|
2213
2140
|
perspective: K,
|
|
2214
2141
|
transformPerspective: K,
|
|
2215
|
-
opacity:
|
|
2216
|
-
originX:
|
|
2217
|
-
originY:
|
|
2142
|
+
opacity: yt,
|
|
2143
|
+
originX: Ft,
|
|
2144
|
+
originY: Ft,
|
|
2218
2145
|
originZ: K,
|
|
2219
|
-
zIndex:
|
|
2220
|
-
fillOpacity:
|
|
2221
|
-
strokeOpacity:
|
|
2222
|
-
numOctaves:
|
|
2223
|
-
},
|
|
2224
|
-
...
|
|
2146
|
+
zIndex: Ui,
|
|
2147
|
+
fillOpacity: yt,
|
|
2148
|
+
strokeOpacity: yt,
|
|
2149
|
+
numOctaves: Ui
|
|
2150
|
+
}, Gi = {
|
|
2151
|
+
...Wi,
|
|
2225
2152
|
color: q,
|
|
2226
2153
|
backgroundColor: q,
|
|
2227
2154
|
outlineColor: q,
|
|
@@ -2232,33 +2159,31 @@ var zi = /\b([a-z-]*)\(.*?\)/gu, Bi = {
|
|
|
2232
2159
|
borderRightColor: q,
|
|
2233
2160
|
borderBottomColor: q,
|
|
2234
2161
|
borderLeftColor: q,
|
|
2235
|
-
filter:
|
|
2236
|
-
WebkitFilter:
|
|
2237
|
-
mask:
|
|
2238
|
-
WebkitMask:
|
|
2239
|
-
},
|
|
2240
|
-
function
|
|
2241
|
-
let n =
|
|
2242
|
-
return
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
var Ji = new Set([
|
|
2162
|
+
filter: Vi,
|
|
2163
|
+
WebkitFilter: Vi,
|
|
2164
|
+
mask: Hi,
|
|
2165
|
+
WebkitMask: Hi
|
|
2166
|
+
}, Ki = (e) => Gi[e], qi = /*@__PURE__*/ new Set([Vi, Hi]);
|
|
2167
|
+
function Ji(e, t) {
|
|
2168
|
+
let n = Ki(e);
|
|
2169
|
+
return qi.has(n) || (n = J), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
2170
|
+
}
|
|
2171
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
2172
|
+
var Yi = /* @__PURE__ */ new Set([
|
|
2247
2173
|
"auto",
|
|
2248
2174
|
"none",
|
|
2249
2175
|
"0"
|
|
2250
2176
|
]);
|
|
2251
|
-
function
|
|
2177
|
+
function Xi(e, t, n) {
|
|
2252
2178
|
let r = 0, i;
|
|
2253
2179
|
for (; r < e.length && !i;) {
|
|
2254
2180
|
let t = e[r];
|
|
2255
|
-
typeof t == "string" && !
|
|
2181
|
+
typeof t == "string" && !Yi.has(t) && Gt(t).values.length && (i = e[r]), r++;
|
|
2256
2182
|
}
|
|
2257
|
-
if (i && n) for (let r of t) e[r] =
|
|
2183
|
+
if (i && n) for (let r of t) e[r] = Ji(n, i);
|
|
2258
2184
|
}
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
var Xi = class extends vr {
|
|
2185
|
+
// node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
2186
|
+
var Zi = class extends yr {
|
|
2262
2187
|
constructor(e, t, n, r, i) {
|
|
2263
2188
|
super(e, t, n, r, i, !0);
|
|
2264
2189
|
}
|
|
@@ -2268,27 +2193,26 @@ var Xi = class extends vr {
|
|
|
2268
2193
|
super.readKeyframes();
|
|
2269
2194
|
for (let n = 0; n < e.length; n++) {
|
|
2270
2195
|
let r = e[n];
|
|
2271
|
-
if (typeof r == "string" && (r = r.trim(),
|
|
2272
|
-
let i =
|
|
2196
|
+
if (typeof r == "string" && (r = r.trim(), ht(r))) {
|
|
2197
|
+
let i = _i(r, t.current);
|
|
2273
2198
|
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
2274
2199
|
}
|
|
2275
2200
|
}
|
|
2276
|
-
if (this.resolveNoneKeyframes(), !
|
|
2277
|
-
let [r, i] = e, a =
|
|
2278
|
-
if (
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2201
|
+
if (this.resolveNoneKeyframes(), !xi.has(n) || e.length !== 2) return;
|
|
2202
|
+
let [r, i] = e, a = Ii(r), o = Ii(i);
|
|
2203
|
+
if (_t(r) !== _t(i) && Z[n]) this.needsMeasurement = !0;
|
|
2204
|
+
else if (a !== o) {
|
|
2205
|
+
if (lr(a) && lr(o)) for (let t = 0; t < e.length; t++) {
|
|
2206
|
+
let n = e[t];
|
|
2207
|
+
typeof n == "string" && (e[t] = parseFloat(n));
|
|
2208
|
+
}
|
|
2209
|
+
else Z[n] && (this.needsMeasurement = !0);
|
|
2285
2210
|
}
|
|
2286
|
-
else Z[n] && (this.needsMeasurement = !0);
|
|
2287
2211
|
}
|
|
2288
2212
|
resolveNoneKeyframes() {
|
|
2289
2213
|
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
2290
|
-
for (let t = 0; t < e.length; t++) (e[t] === null ||
|
|
2291
|
-
n.length &&
|
|
2214
|
+
for (let t = 0; t < e.length; t++) (e[t] === null || Li(e[t])) && n.push(t);
|
|
2215
|
+
n.length && Xi(e, n, t);
|
|
2292
2216
|
}
|
|
2293
2217
|
measureInitialState() {
|
|
2294
2218
|
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
@@ -2308,9 +2232,8 @@ var Xi = class extends vr {
|
|
|
2308
2232
|
}), this.resolveNoneKeyframes();
|
|
2309
2233
|
}
|
|
2310
2234
|
};
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
function Zi(e, t, n) {
|
|
2235
|
+
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
2236
|
+
function Qi(e, t, n) {
|
|
2314
2237
|
if (e == null) return [];
|
|
2315
2238
|
if (e instanceof EventTarget) return [e];
|
|
2316
2239
|
if (typeof e == "string") {
|
|
@@ -2321,43 +2244,37 @@ function Zi(e, t, n) {
|
|
|
2321
2244
|
}
|
|
2322
2245
|
return Array.from(e).filter((e) => e != null);
|
|
2323
2246
|
}
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
//#endregion
|
|
2328
|
-
//#region node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2329
|
-
function ta(e) {
|
|
2330
|
-
return be(e) && "ownerSVGElement" in e;
|
|
2331
|
-
}
|
|
2332
|
-
//#endregion
|
|
2333
|
-
//#region node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
2247
|
+
// node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
2248
|
+
var $i = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: ea, cancel: ta } = /* @__PURE__ */ at(queueMicrotask, !1);
|
|
2249
|
+
// node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
2334
2250
|
function na(e) {
|
|
2335
|
-
return
|
|
2251
|
+
return xe(e) && "ownerSVGElement" in e;
|
|
2252
|
+
}
|
|
2253
|
+
// node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
2254
|
+
function ra(e) {
|
|
2255
|
+
return na(e) && e.tagName === "svg";
|
|
2336
2256
|
}
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
...Pi,
|
|
2257
|
+
// node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
2258
|
+
var ia = [
|
|
2259
|
+
...Fi,
|
|
2341
2260
|
q,
|
|
2342
2261
|
J
|
|
2343
|
-
],
|
|
2262
|
+
], aa = (e) => ia.find(Pi(e)), oa = () => ({
|
|
2344
2263
|
min: 0,
|
|
2345
2264
|
max: 0
|
|
2346
|
-
}),
|
|
2347
|
-
x:
|
|
2348
|
-
y:
|
|
2349
|
-
}),
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
function ca(e) {
|
|
2265
|
+
}), sa = () => ({
|
|
2266
|
+
x: oa(),
|
|
2267
|
+
y: oa()
|
|
2268
|
+
}), ca = /* @__PURE__ */ new WeakMap();
|
|
2269
|
+
// node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
|
|
2270
|
+
function la(e) {
|
|
2353
2271
|
return typeof e == "object" && !!e && typeof e.start == "function";
|
|
2354
2272
|
}
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
function la(e) {
|
|
2273
|
+
// node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
|
|
2274
|
+
function ua(e) {
|
|
2358
2275
|
return typeof e == "string" || Array.isArray(e);
|
|
2359
2276
|
}
|
|
2360
|
-
var
|
|
2277
|
+
var da = [
|
|
2361
2278
|
"initial",
|
|
2362
2279
|
"animate",
|
|
2363
2280
|
"whileInView",
|
|
@@ -2367,44 +2284,44 @@ var ua = [
|
|
|
2367
2284
|
"whileDrag",
|
|
2368
2285
|
"exit"
|
|
2369
2286
|
];
|
|
2370
|
-
|
|
2371
|
-
//#region node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
2372
|
-
function da(e) {
|
|
2373
|
-
return ca(e.animate) || ua.some((t) => la(e[t]));
|
|
2374
|
-
}
|
|
2287
|
+
// node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
2375
2288
|
function fa(e) {
|
|
2376
|
-
return
|
|
2289
|
+
return la(e.animate) || da.some((t) => ua(e[t]));
|
|
2290
|
+
}
|
|
2291
|
+
function pa(e) {
|
|
2292
|
+
return !!(fa(e) || e.variants);
|
|
2377
2293
|
}
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
function pa(e, t, n) {
|
|
2294
|
+
// node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
|
|
2295
|
+
function ma(e, t, n) {
|
|
2381
2296
|
for (let r in t) {
|
|
2382
2297
|
let i = t[r], a = n[r];
|
|
2383
2298
|
if ($(i)) e.addValue(r, i);
|
|
2384
|
-
else if ($(a)) e.addValue(r,
|
|
2385
|
-
else if (a !== i)
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2299
|
+
else if ($(a)) e.addValue(r, ri(i, { owner: e }));
|
|
2300
|
+
else if (a !== i) {
|
|
2301
|
+
if (e.hasValue(r)) {
|
|
2302
|
+
let t = e.getValue(r);
|
|
2303
|
+
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
2304
|
+
} else {
|
|
2305
|
+
let t = e.getStaticValue(r);
|
|
2306
|
+
e.addValue(r, ri(t === void 0 ? i : t, { owner: e }));
|
|
2307
|
+
}
|
|
2391
2308
|
}
|
|
2392
2309
|
}
|
|
2393
2310
|
for (let r in n) t[r] === void 0 && e.removeValue(r);
|
|
2394
2311
|
return t;
|
|
2395
2312
|
}
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
var
|
|
2313
|
+
// node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
|
|
2314
|
+
var ha = { current: null }, ga = { current: !1 }, _a = typeof window < "u";
|
|
2315
|
+
function va() {
|
|
2316
|
+
if (ga.current = !0, _a) {
|
|
2317
|
+
if (window.matchMedia) {
|
|
2318
|
+
let e = window.matchMedia("(prefers-reduced-motion)"), t = () => ha.current = e.matches;
|
|
2319
|
+
e.addEventListener("change", t), t();
|
|
2320
|
+
} else ha.current = !1;
|
|
2321
|
+
}
|
|
2322
|
+
}
|
|
2323
|
+
// node_modules/motion-dom/dist/es/render/VisualElement.mjs
|
|
2324
|
+
var ya = [
|
|
2408
2325
|
"AnimationStart",
|
|
2409
2326
|
"AnimationComplete",
|
|
2410
2327
|
"Update",
|
|
@@ -2412,19 +2329,19 @@ var va = [
|
|
|
2412
2329
|
"LayoutMeasure",
|
|
2413
2330
|
"LayoutAnimationStart",
|
|
2414
2331
|
"LayoutAnimationComplete"
|
|
2415
|
-
],
|
|
2332
|
+
], ba = {}, xa = class {
|
|
2416
2333
|
scrapeMotionValuesFromProps(e, t, n) {
|
|
2417
2334
|
return {};
|
|
2418
2335
|
}
|
|
2419
2336
|
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
|
|
2420
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver =
|
|
2337
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = yr, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2421
2338
|
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2422
2339
|
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2423
2340
|
let e = U.now();
|
|
2424
2341
|
this.renderScheduledAt < e && (this.renderScheduledAt = e, H.render(this.render, !1, !0));
|
|
2425
2342
|
};
|
|
2426
2343
|
let { latestValues: c, renderState: l } = o;
|
|
2427
|
-
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants =
|
|
2344
|
+
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = fa(t), this.isVariantNode = pa(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2428
2345
|
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
|
|
2429
2346
|
for (let e in d) {
|
|
2430
2347
|
let t = d[e];
|
|
@@ -2433,10 +2350,10 @@ var va = [
|
|
|
2433
2350
|
}
|
|
2434
2351
|
mount(e) {
|
|
2435
2352
|
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
|
|
2436
|
-
this.current = e,
|
|
2353
|
+
this.current = e, ca.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (ga.current || va(), this.shouldReduceMotion = ha.current), process.env.NODE_ENV !== "production" && Ae(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
2437
2354
|
}
|
|
2438
2355
|
unmount() {
|
|
2439
|
-
this.projection && this.projection.unmount(),
|
|
2356
|
+
this.projection && this.projection.unmount(), ot(this.notifyUpdate), ot(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2440
2357
|
for (let e in this.events) this.events[e].clear();
|
|
2441
2358
|
for (let e in this.features) {
|
|
2442
2359
|
let t = this.features[e];
|
|
@@ -2451,8 +2368,8 @@ var va = [
|
|
|
2451
2368
|
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2452
2369
|
}
|
|
2453
2370
|
bindToMotionValue(e, t) {
|
|
2454
|
-
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate &&
|
|
2455
|
-
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new
|
|
2371
|
+
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Hr.has(e) && this.current instanceof HTMLElement) {
|
|
2372
|
+
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new Mr({
|
|
2456
2373
|
element: this.current,
|
|
2457
2374
|
name: e,
|
|
2458
2375
|
keyframes: r,
|
|
@@ -2465,7 +2382,7 @@ var va = [
|
|
|
2465
2382
|
});
|
|
2466
2383
|
return;
|
|
2467
2384
|
}
|
|
2468
|
-
let n =
|
|
2385
|
+
let n = cr.has(e);
|
|
2469
2386
|
n && this.onBindTransform && this.onBindTransform();
|
|
2470
2387
|
let r = t.on("change", (t) => {
|
|
2471
2388
|
this.latestValues[e] = t, this.props.onUpdate && H.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
@@ -2479,8 +2396,8 @@ var va = [
|
|
|
2479
2396
|
}
|
|
2480
2397
|
updateFeatures() {
|
|
2481
2398
|
let e = "animation";
|
|
2482
|
-
for (e in
|
|
2483
|
-
let t =
|
|
2399
|
+
for (e in ba) {
|
|
2400
|
+
let t = ba[e];
|
|
2484
2401
|
if (!t) continue;
|
|
2485
2402
|
let { isEnabled: n, Feature: r } = t;
|
|
2486
2403
|
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
|
|
@@ -2493,7 +2410,7 @@ var va = [
|
|
|
2493
2410
|
this.build(this.renderState, this.latestValues, this.props);
|
|
2494
2411
|
}
|
|
2495
2412
|
measureViewportBox() {
|
|
2496
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) :
|
|
2413
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : sa();
|
|
2497
2414
|
}
|
|
2498
2415
|
getStaticValue(e) {
|
|
2499
2416
|
return this.latestValues[e];
|
|
@@ -2503,13 +2420,13 @@ var va = [
|
|
|
2503
2420
|
}
|
|
2504
2421
|
update(e, t) {
|
|
2505
2422
|
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
|
|
2506
|
-
for (let t = 0; t <
|
|
2507
|
-
let n =
|
|
2423
|
+
for (let t = 0; t < ya.length; t++) {
|
|
2424
|
+
let n = ya[t];
|
|
2508
2425
|
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
|
|
2509
2426
|
let r = e["on" + n];
|
|
2510
2427
|
r && (this.propEventSubscriptions[n] = this.on(n, r));
|
|
2511
2428
|
}
|
|
2512
|
-
this.prevMotionValues =
|
|
2429
|
+
this.prevMotionValues = ma(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2513
2430
|
}
|
|
2514
2431
|
getProps() {
|
|
2515
2432
|
return this.props;
|
|
@@ -2545,11 +2462,11 @@ var va = [
|
|
|
2545
2462
|
getValue(e, t) {
|
|
2546
2463
|
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
2547
2464
|
let n = this.values.get(e);
|
|
2548
|
-
return n === void 0 && t !== void 0 && (n =
|
|
2465
|
+
return n === void 0 && t !== void 0 && (n = ri(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
2549
2466
|
}
|
|
2550
2467
|
readValue(e, t) {
|
|
2551
2468
|
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2552
|
-
return n != null && (typeof n == "string" && (
|
|
2469
|
+
return n != null && (typeof n == "string" && (be(n) || Se(n)) ? n = parseFloat(n) : !aa(n) && J.test(t) && (n = Ji(e, t)), this.setBaseTarget(e, $(n) ? n.get() : n)), $(n) ? n.get() : n;
|
|
2553
2470
|
}
|
|
2554
2471
|
setBaseTarget(e, t) {
|
|
2555
2472
|
this.baseTarget[e] = t;
|
|
@@ -2557,7 +2474,7 @@ var va = [
|
|
|
2557
2474
|
getBaseTarget(e) {
|
|
2558
2475
|
let { initial: t } = this.props, n;
|
|
2559
2476
|
if (typeof t == "string" || typeof t == "object") {
|
|
2560
|
-
let r =
|
|
2477
|
+
let r = yi(this.props, t, this.presenceContext?.custom);
|
|
2561
2478
|
r && (n = r[e]);
|
|
2562
2479
|
}
|
|
2563
2480
|
if (t && n !== void 0) return n;
|
|
@@ -2565,17 +2482,17 @@ var va = [
|
|
|
2565
2482
|
return r !== void 0 && !$(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
2566
2483
|
}
|
|
2567
2484
|
on(e, t) {
|
|
2568
|
-
return this.events[e] || (this.events[e] = new
|
|
2485
|
+
return this.events[e] || (this.events[e] = new De()), this.events[e].add(t);
|
|
2569
2486
|
}
|
|
2570
2487
|
notify(e, ...t) {
|
|
2571
2488
|
this.events[e] && this.events[e].notify(...t);
|
|
2572
2489
|
}
|
|
2573
2490
|
scheduleRenderMicrotask() {
|
|
2574
|
-
|
|
2491
|
+
ea.render(this.render);
|
|
2575
2492
|
}
|
|
2576
|
-
},
|
|
2493
|
+
}, Sa = class extends xa {
|
|
2577
2494
|
constructor() {
|
|
2578
|
-
super(...arguments), this.KeyframeResolver =
|
|
2495
|
+
super(...arguments), this.KeyframeResolver = Zi;
|
|
2579
2496
|
}
|
|
2580
2497
|
sortInstanceNodePosition(e, t) {
|
|
2581
2498
|
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
|
|
@@ -2595,9 +2512,8 @@ var va = [
|
|
|
2595
2512
|
}));
|
|
2596
2513
|
}
|
|
2597
2514
|
};
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
function Sa({ top: e, left: t, right: n, bottom: r }) {
|
|
2515
|
+
// node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2516
|
+
function Ca({ top: e, left: t, right: n, bottom: r }) {
|
|
2601
2517
|
return {
|
|
2602
2518
|
x: {
|
|
2603
2519
|
min: t,
|
|
@@ -2609,7 +2525,7 @@ function Sa({ top: e, left: t, right: n, bottom: r }) {
|
|
|
2609
2525
|
}
|
|
2610
2526
|
};
|
|
2611
2527
|
}
|
|
2612
|
-
function
|
|
2528
|
+
function wa(e, t) {
|
|
2613
2529
|
if (!t) return e;
|
|
2614
2530
|
let n = t({
|
|
2615
2531
|
x: e.left,
|
|
@@ -2625,23 +2541,21 @@ function Ca(e, t) {
|
|
|
2625
2541
|
right: r.x
|
|
2626
2542
|
};
|
|
2627
2543
|
}
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
return Sa(Ca(e.getBoundingClientRect(), t));
|
|
2544
|
+
// node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
2545
|
+
function Ta(e, t) {
|
|
2546
|
+
return Ca(wa(e.getBoundingClientRect(), t));
|
|
2632
2547
|
}
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
var Ta = {
|
|
2548
|
+
// node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
|
|
2549
|
+
var Ea = {
|
|
2636
2550
|
x: "translateX",
|
|
2637
2551
|
y: "translateY",
|
|
2638
2552
|
z: "translateZ",
|
|
2639
2553
|
transformPerspective: "perspective"
|
|
2640
|
-
},
|
|
2641
|
-
function
|
|
2554
|
+
}, Da = sr.length;
|
|
2555
|
+
function Oa(e, t, n) {
|
|
2642
2556
|
let r = "", i = !0;
|
|
2643
|
-
for (let a = 0; a <
|
|
2644
|
-
let o =
|
|
2557
|
+
for (let a = 0; a < Da; a++) {
|
|
2558
|
+
let o = sr[a], s = e[o];
|
|
2645
2559
|
if (s === void 0) continue;
|
|
2646
2560
|
let c = !0;
|
|
2647
2561
|
if (typeof s == "number") c = s === +!!o.startsWith("scale");
|
|
@@ -2650,67 +2564,62 @@ function Da(e, t, n) {
|
|
|
2650
2564
|
c = o.startsWith("scale") ? e === 1 : e === 0;
|
|
2651
2565
|
}
|
|
2652
2566
|
if (!c || n) {
|
|
2653
|
-
let e =
|
|
2567
|
+
let e = $i(s, Wi[o]);
|
|
2654
2568
|
if (!c) {
|
|
2655
2569
|
i = !1;
|
|
2656
|
-
let t =
|
|
2570
|
+
let t = Ea[o] || o;
|
|
2657
2571
|
r += `${t}(${e}) `;
|
|
2658
2572
|
}
|
|
2659
2573
|
n && (t[o] = e);
|
|
2660
2574
|
}
|
|
2661
2575
|
}
|
|
2662
2576
|
let a = e.pathRotation;
|
|
2663
|
-
return a && (i = !1, r += `rotate(${
|
|
2577
|
+
return a && (i = !1, r += `rotate(${$i(a, Wi.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
|
|
2664
2578
|
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
function Oa(e, t, n) {
|
|
2579
|
+
// node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
|
|
2580
|
+
function ka(e, t, n) {
|
|
2668
2581
|
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
|
|
2669
2582
|
for (let e in t) {
|
|
2670
2583
|
let n = t[e];
|
|
2671
|
-
if (
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
i[e] = n;
|
|
2676
|
-
continue;
|
|
2677
|
-
} else {
|
|
2678
|
-
let t = Qi(n, Ui[e]);
|
|
2584
|
+
if (cr.has(e)) o = !0;
|
|
2585
|
+
else if (pt(e)) i[e] = n;
|
|
2586
|
+
else {
|
|
2587
|
+
let t = $i(n, Wi[e]);
|
|
2679
2588
|
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
|
|
2680
2589
|
}
|
|
2681
2590
|
}
|
|
2682
|
-
if (t.transform || (o || n ? r.transform =
|
|
2591
|
+
if (t.transform || (o || n ? r.transform = Oa(t, e.transform, n) : r.transform &&= "none"), s) {
|
|
2683
2592
|
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
|
|
2684
2593
|
r.transformOrigin = `${e} ${t} ${n}`;
|
|
2685
2594
|
}
|
|
2686
2595
|
}
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
function ka(e, { style: t, vars: n }, r, i) {
|
|
2596
|
+
// node_modules/motion-dom/dist/es/render/html/utils/render.mjs
|
|
2597
|
+
function Aa(e, { style: t, vars: n }, r, i) {
|
|
2690
2598
|
let a = e.style, o;
|
|
2691
2599
|
for (o in t) a[o] = t[o];
|
|
2692
2600
|
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
|
|
2693
2601
|
}
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
function Aa(e, t) {
|
|
2602
|
+
// node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
|
|
2603
|
+
function ja(e, t) {
|
|
2697
2604
|
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
2698
2605
|
}
|
|
2699
|
-
var
|
|
2606
|
+
var Ma = { correct: (e, t) => {
|
|
2700
2607
|
if (!t.target) return e;
|
|
2701
|
-
if (typeof e == "string")
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
}
|
|
2608
|
+
if (typeof e == "string") {
|
|
2609
|
+
if (K.test(e)) e = parseFloat(e);
|
|
2610
|
+
else return e;
|
|
2611
|
+
}
|
|
2612
|
+
return `${ja(e, t.target.x)}% ${ja(e, t.target.y)}%`;
|
|
2613
|
+
} }, Na = { correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2705
2614
|
let r = e, i = J.parse(e);
|
|
2706
2615
|
if (i.length > 5) return r;
|
|
2707
2616
|
let a = J.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
2708
2617
|
i[0 + o] /= s, i[1 + o] /= c;
|
|
2709
|
-
let l =
|
|
2618
|
+
let l = tn(s, c, .5);
|
|
2710
2619
|
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
|
|
2711
|
-
} },
|
|
2620
|
+
} }, Pa = {
|
|
2712
2621
|
borderRadius: {
|
|
2713
|
-
...
|
|
2622
|
+
...Ma,
|
|
2714
2623
|
applyTo: [
|
|
2715
2624
|
"borderTopLeftRadius",
|
|
2716
2625
|
"borderTopRightRadius",
|
|
@@ -2718,62 +2627,58 @@ var ja = { correct: (e, t) => {
|
|
|
2718
2627
|
"borderBottomRightRadius"
|
|
2719
2628
|
]
|
|
2720
2629
|
},
|
|
2721
|
-
borderTopLeftRadius:
|
|
2722
|
-
borderTopRightRadius:
|
|
2723
|
-
borderBottomLeftRadius:
|
|
2724
|
-
borderBottomRightRadius:
|
|
2725
|
-
boxShadow:
|
|
2630
|
+
borderTopLeftRadius: Ma,
|
|
2631
|
+
borderTopRightRadius: Ma,
|
|
2632
|
+
borderBottomLeftRadius: Ma,
|
|
2633
|
+
borderBottomRightRadius: Ma,
|
|
2634
|
+
boxShadow: Na
|
|
2726
2635
|
};
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
//#region node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2734
|
-
function Fa(e, t, n) {
|
|
2636
|
+
// node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
|
|
2637
|
+
function Fa(e, { layout: t, layoutId: n }) {
|
|
2638
|
+
return cr.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Pa[e] || e === "opacity");
|
|
2639
|
+
}
|
|
2640
|
+
// node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2641
|
+
function Ia(e, t, n) {
|
|
2735
2642
|
let r = e.style, i = t?.style, a = {};
|
|
2736
2643
|
if (!r) return a;
|
|
2737
|
-
for (let t in r) ($(r[t]) || i && $(i[t]) ||
|
|
2644
|
+
for (let t in r) ($(r[t]) || i && $(i[t]) || Fa(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
|
|
2738
2645
|
return a;
|
|
2739
2646
|
}
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
function Ia(e) {
|
|
2647
|
+
// node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
|
|
2648
|
+
function La(e) {
|
|
2743
2649
|
return window.getComputedStyle(e);
|
|
2744
2650
|
}
|
|
2745
|
-
var
|
|
2651
|
+
var Ra = class extends Sa {
|
|
2746
2652
|
constructor() {
|
|
2747
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
2653
|
+
super(...arguments), this.type = "html", this.renderInstance = Aa;
|
|
2748
2654
|
}
|
|
2749
2655
|
readValueFromInstance(e, t) {
|
|
2750
|
-
if (
|
|
2656
|
+
if (cr.has(t)) return this.projection?.isProjecting ? rr(t) : ar(e, t);
|
|
2751
2657
|
{
|
|
2752
|
-
let n =
|
|
2658
|
+
let n = La(e), r = (pt(t) ? n.getPropertyValue(t) : n[t]) || 0;
|
|
2753
2659
|
return typeof r == "string" ? r.trim() : r;
|
|
2754
2660
|
}
|
|
2755
2661
|
}
|
|
2756
2662
|
measureInstanceViewportBox(e, { transformPagePoint: t }) {
|
|
2757
|
-
return
|
|
2663
|
+
return Ta(e, t);
|
|
2758
2664
|
}
|
|
2759
2665
|
build(e, t, n) {
|
|
2760
|
-
|
|
2666
|
+
ka(e, t, n.transformTemplate);
|
|
2761
2667
|
}
|
|
2762
2668
|
scrapeMotionValuesFromProps(e, t, n) {
|
|
2763
|
-
return
|
|
2669
|
+
return Ia(e, t, n);
|
|
2764
2670
|
}
|
|
2765
2671
|
};
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
function Ra(e, t) {
|
|
2672
|
+
// node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.mjs
|
|
2673
|
+
function za(e, t) {
|
|
2769
2674
|
return e in t;
|
|
2770
2675
|
}
|
|
2771
|
-
var
|
|
2676
|
+
var Ba = class extends xa {
|
|
2772
2677
|
constructor() {
|
|
2773
2678
|
super(...arguments), this.type = "object";
|
|
2774
2679
|
}
|
|
2775
2680
|
readValueFromInstance(e, t) {
|
|
2776
|
-
if (
|
|
2681
|
+
if (za(t, e)) {
|
|
2777
2682
|
let n = e[t];
|
|
2778
2683
|
if (typeof n == "string" || typeof n == "number") return n;
|
|
2779
2684
|
}
|
|
@@ -2783,7 +2688,7 @@ var za = class extends ba {
|
|
|
2783
2688
|
delete t.output[e];
|
|
2784
2689
|
}
|
|
2785
2690
|
measureInstanceViewportBox() {
|
|
2786
|
-
return
|
|
2691
|
+
return sa();
|
|
2787
2692
|
}
|
|
2788
2693
|
build(e, t) {
|
|
2789
2694
|
Object.assign(e.output, t);
|
|
@@ -2794,40 +2699,38 @@ var za = class extends ba {
|
|
|
2794
2699
|
sortInstanceNodePosition() {
|
|
2795
2700
|
return 0;
|
|
2796
2701
|
}
|
|
2797
|
-
},
|
|
2702
|
+
}, Va = {
|
|
2798
2703
|
offset: "stroke-dashoffset",
|
|
2799
2704
|
array: "stroke-dasharray"
|
|
2800
|
-
},
|
|
2705
|
+
}, Ha = {
|
|
2801
2706
|
offset: "strokeDashoffset",
|
|
2802
2707
|
array: "strokeDasharray"
|
|
2803
2708
|
};
|
|
2804
|
-
function
|
|
2709
|
+
function Ua(e, t, n = 1, r = 0, i = !0) {
|
|
2805
2710
|
e.pathLength = 1;
|
|
2806
|
-
let a = i ?
|
|
2711
|
+
let a = i ? Va : Ha;
|
|
2807
2712
|
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
|
|
2808
2713
|
}
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
var Ua = [
|
|
2714
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
2715
|
+
var Wa = [
|
|
2812
2716
|
"offsetDistance",
|
|
2813
2717
|
"offsetPath",
|
|
2814
2718
|
"offsetRotate",
|
|
2815
2719
|
"offsetAnchor"
|
|
2816
2720
|
];
|
|
2817
|
-
function
|
|
2818
|
-
if (
|
|
2721
|
+
function Ga(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
|
|
2722
|
+
if (ka(e, s, l), c) {
|
|
2819
2723
|
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
2820
2724
|
return;
|
|
2821
2725
|
}
|
|
2822
2726
|
e.attrs = e.style, e.style = {};
|
|
2823
2727
|
let { attrs: d, style: f } = e;
|
|
2824
2728
|
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
|
|
2825
|
-
for (let e of
|
|
2826
|
-
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 &&
|
|
2729
|
+
for (let e of Wa) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
|
|
2730
|
+
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && Ua(d, i, a, o, !1);
|
|
2827
2731
|
}
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
var Ga = new Set([
|
|
2732
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
|
|
2733
|
+
var Ka = /* @__PURE__ */ new Set([
|
|
2831
2734
|
"baseFrequency",
|
|
2832
2735
|
"diffuseConstant",
|
|
2833
2736
|
"kernelMatrix",
|
|
@@ -2851,151 +2754,136 @@ var Ga = new Set([
|
|
|
2851
2754
|
"startOffset",
|
|
2852
2755
|
"textLength",
|
|
2853
2756
|
"lengthAdjust"
|
|
2854
|
-
]),
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
function Ja(e, t, n) {
|
|
2864
|
-
let r = Fa(e, t, n);
|
|
2757
|
+
]), qa = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
2758
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
|
|
2759
|
+
function Ja(e, t, n, r) {
|
|
2760
|
+
Aa(e, t, void 0, r);
|
|
2761
|
+
for (let n in t.attrs) e.setAttribute(Ka.has(n) ? n : Oi(n), t.attrs[n]);
|
|
2762
|
+
}
|
|
2763
|
+
// node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
|
|
2764
|
+
function Ya(e, t, n) {
|
|
2765
|
+
let r = Ia(e, t, n);
|
|
2865
2766
|
for (let n in e) if ($(e[n]) || $(t[n])) {
|
|
2866
|
-
let t =
|
|
2767
|
+
let t = sr.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
|
|
2867
2768
|
r[t] = e[n];
|
|
2868
2769
|
}
|
|
2869
2770
|
return r;
|
|
2870
2771
|
}
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
var Ya = class extends xa {
|
|
2772
|
+
// node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
|
|
2773
|
+
var Xa = class extends Sa {
|
|
2874
2774
|
constructor() {
|
|
2875
|
-
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox =
|
|
2775
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = sa;
|
|
2876
2776
|
}
|
|
2877
2777
|
getBaseTargetFromProps(e, t) {
|
|
2878
2778
|
return e[t];
|
|
2879
2779
|
}
|
|
2880
2780
|
readValueFromInstance(e, t) {
|
|
2881
|
-
if (
|
|
2882
|
-
let e =
|
|
2781
|
+
if (cr.has(t)) {
|
|
2782
|
+
let e = Ki(t);
|
|
2883
2783
|
return e && e.default || 0;
|
|
2884
2784
|
}
|
|
2885
|
-
return t =
|
|
2785
|
+
return t = Ka.has(t) ? t : Oi(t), e.getAttribute(t);
|
|
2886
2786
|
}
|
|
2887
2787
|
scrapeMotionValuesFromProps(e, t, n) {
|
|
2888
|
-
return
|
|
2788
|
+
return Ya(e, t, n);
|
|
2889
2789
|
}
|
|
2890
2790
|
build(e, t, n) {
|
|
2891
|
-
|
|
2791
|
+
Ga(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
2892
2792
|
}
|
|
2893
2793
|
renderInstance(e, t, n, r) {
|
|
2894
|
-
|
|
2794
|
+
Ja(e, t, n, r);
|
|
2895
2795
|
}
|
|
2896
2796
|
mount(e) {
|
|
2897
|
-
this.isSVGTag =
|
|
2797
|
+
this.isSVGTag = qa(e.tagName), super.mount(e);
|
|
2898
2798
|
}
|
|
2899
2799
|
};
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
//#region node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
|
2908
|
-
var Za = o({
|
|
2800
|
+
// node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
2801
|
+
function Za(e, t, n) {
|
|
2802
|
+
let r = $(e) ? e : ri(e);
|
|
2803
|
+
return r.start(pi("", r, t, n)), r.animation;
|
|
2804
|
+
}
|
|
2805
|
+
// node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs
|
|
2806
|
+
var Qa = s({
|
|
2909
2807
|
transformPagePoint: (e) => e,
|
|
2910
2808
|
isStatic: !1,
|
|
2911
2809
|
reducedMotion: "never"
|
|
2912
2810
|
});
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
//#endregion
|
|
2919
|
-
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
|
|
2920
|
-
function $a() {
|
|
2921
|
-
!ha.current && _a();
|
|
2922
|
-
let [e] = p(ma.current);
|
|
2923
|
-
return process.env.NODE_ENV !== "production" && ke(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), e;
|
|
2924
|
-
}
|
|
2925
|
-
//#endregion
|
|
2926
|
-
//#region node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs
|
|
2811
|
+
// node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs
|
|
2812
|
+
function $a(e) {
|
|
2813
|
+
return u(() => () => e(), []);
|
|
2814
|
+
}
|
|
2815
|
+
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.mjs
|
|
2927
2816
|
function eo() {
|
|
2928
|
-
|
|
2929
|
-
|
|
2817
|
+
!ga.current && va();
|
|
2818
|
+
let [e] = m(ha.current);
|
|
2819
|
+
return process.env.NODE_ENV !== "production" && Ae(e !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), e;
|
|
2930
2820
|
}
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2821
|
+
// node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion-config.mjs
|
|
2822
|
+
function to() {
|
|
2823
|
+
let e = eo(), { reducedMotion: t } = l(Qa);
|
|
2824
|
+
return t === "never" ? !1 : t === "always" || e;
|
|
2825
|
+
}
|
|
2826
|
+
// node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.mjs
|
|
2827
|
+
function no(e) {
|
|
2934
2828
|
return typeof e == "object" && !Array.isArray(e);
|
|
2935
2829
|
}
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
return e == null ? [] : typeof e == "string" && to(t) ? Zi(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2830
|
+
// node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.mjs
|
|
2831
|
+
function ro(e, t, n, r) {
|
|
2832
|
+
return e == null ? [] : typeof e == "string" && no(t) ? Qi(e, n, r) : e instanceof NodeList ? Array.from(e) : Array.isArray(e) ? e.filter((e) => e != null) : [e];
|
|
2940
2833
|
}
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
function ro(e, t, n) {
|
|
2834
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.mjs
|
|
2835
|
+
function io(e, t, n) {
|
|
2944
2836
|
return e * (t + 1) + n * t;
|
|
2945
2837
|
}
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
function io(e, t, n, r) {
|
|
2838
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.mjs
|
|
2839
|
+
function ao(e, t, n, r) {
|
|
2949
2840
|
return typeof t == "number" ? t : t.startsWith("-") || t.startsWith("+") ? Math.max(0, e + parseFloat(t)) : t === "<" ? n : t.startsWith("<") ? Math.max(0, n + parseFloat(t.slice(1))) : r.get(t) ?? e;
|
|
2950
2841
|
}
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
function ao(e, t, n) {
|
|
2842
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/edit.mjs
|
|
2843
|
+
function oo(e, t, n) {
|
|
2954
2844
|
for (let r = 0; r < e.length; r++) {
|
|
2955
2845
|
let i = e[r];
|
|
2956
|
-
i.at > t && i.at < n && (
|
|
2846
|
+
i.at > t && i.at < n && (ve(e, i), r--);
|
|
2957
2847
|
}
|
|
2958
2848
|
}
|
|
2959
|
-
function
|
|
2960
|
-
|
|
2849
|
+
function so(e, t, n, r, i, a) {
|
|
2850
|
+
oo(e, i, a);
|
|
2961
2851
|
for (let o = 0; o < t.length; o++) e.push({
|
|
2962
2852
|
value: t[o],
|
|
2963
|
-
at:
|
|
2964
|
-
easing: /* @__PURE__ */
|
|
2853
|
+
at: tn(i, a, r[o]),
|
|
2854
|
+
easing: /* @__PURE__ */ Xe(n, o)
|
|
2965
2855
|
});
|
|
2966
2856
|
}
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
function so(e, t, n = 0) {
|
|
2857
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.mjs
|
|
2858
|
+
function co(e, t, n = 0) {
|
|
2970
2859
|
let r = t + 1 + t * n;
|
|
2971
2860
|
for (let t = 0; t < e.length; t++) e[t] = e[t] / r;
|
|
2972
2861
|
}
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
function co(e, t) {
|
|
2862
|
+
// node_modules/framer-motion/dist/es/animation/sequence/utils/sort.mjs
|
|
2863
|
+
function lo(e, t) {
|
|
2976
2864
|
return e.at === t.at ? e.value === null ? 1 : t.value === null ? -1 : 0 : e.at - t.at;
|
|
2977
2865
|
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
2866
|
+
// node_modules/framer-motion/dist/es/animation/sequence/create.mjs
|
|
2867
|
+
var uo = "easeInOut", fo = 20;
|
|
2868
|
+
function po(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
2982
2869
|
let a = t.duration || .3, o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = {}, l = /* @__PURE__ */ new Map(), u = 0, d = 0, f = 0;
|
|
2983
2870
|
for (let n = 0; n < e.length; n++) {
|
|
2984
2871
|
let o = e[n];
|
|
2985
2872
|
if (typeof o == "string") {
|
|
2986
2873
|
l.set(o, d);
|
|
2987
2874
|
continue;
|
|
2988
|
-
}
|
|
2989
|
-
|
|
2875
|
+
}
|
|
2876
|
+
if (!Array.isArray(o)) {
|
|
2877
|
+
l.set(o.name, ao(d, o.at, u, l));
|
|
2990
2878
|
continue;
|
|
2991
2879
|
}
|
|
2992
2880
|
let [p, m, h = {}] = o;
|
|
2993
|
-
h.at !== void 0 && (d =
|
|
2881
|
+
h.at !== void 0 && (d = ao(d, h.at, u, l));
|
|
2994
2882
|
let g = 0, _ = (e, n, r, o = 0, s = 0) => {
|
|
2995
|
-
let c =
|
|
2883
|
+
let c = go(e), { delay: l = 0, times: u = Rn(c), type: p = t.type || "keyframes", repeat: m, repeatType: h, repeatDelay: _ = 0, ...v } = n, { ease: y = t.ease || "easeOut", duration: b } = n, x = typeof l == "function" ? l(o, s) : l, S = c.length, C = Ar(p) ? p : i?.[p || "keyframes"];
|
|
2996
2884
|
if (S <= 2 && C) {
|
|
2997
2885
|
let e = 100;
|
|
2998
|
-
if (S === 2 &&
|
|
2886
|
+
if (S === 2 && yo(c)) {
|
|
2999
2887
|
let t = c[1] - c[0];
|
|
3000
2888
|
e = Math.abs(t);
|
|
3001
2889
|
}
|
|
@@ -3004,39 +2892,39 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3004
2892
|
...v
|
|
3005
2893
|
};
|
|
3006
2894
|
b !== void 0 && (n.duration = /* @__PURE__ */ B(b));
|
|
3007
|
-
let r =
|
|
2895
|
+
let r = xn(n, e, C);
|
|
3008
2896
|
y = r.ease, b = r.duration;
|
|
3009
2897
|
}
|
|
3010
2898
|
b ??= a;
|
|
3011
2899
|
let w = d + x;
|
|
3012
2900
|
u.length === 1 && u[0] === 0 && (u[1] = 1);
|
|
3013
2901
|
let T = u.length - c.length;
|
|
3014
|
-
if (T > 0 &&
|
|
2902
|
+
if (T > 0 && Ln(u, T), c.length === 1 && c.unshift(null), m && L(m < fo, `Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${fo} or apply repeat at the sequence level instead.`), m && m < fo) {
|
|
3015
2903
|
let e = b > 0 ? _ / b : 0;
|
|
3016
|
-
b =
|
|
2904
|
+
b = io(b, m, _);
|
|
3017
2905
|
let t = [...c], n = [...u];
|
|
3018
2906
|
y = Array.isArray(y) ? [...y] : [y];
|
|
3019
2907
|
let r = [...y], i = h === "reverse" || h === "mirror", a = t, o = r;
|
|
3020
|
-
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */
|
|
2908
|
+
i && (a = [...t].reverse(), h === "reverse" && (o = [...r].reverse().map((e) => typeof e == "function" ? /* @__PURE__ */ Re(e) : e)));
|
|
3021
2909
|
for (let s = 0; s < m; s++) {
|
|
3022
2910
|
let l = i && s % 2 == 0, d = l ? a : t, f = l ? o : r, p = (s + 1) * (1 + e);
|
|
3023
2911
|
e > 0 && (c.push(c[c.length - 1]), u.push(p), y.push("linear")), c.push(...d);
|
|
3024
|
-
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */
|
|
2912
|
+
for (let e = 0; e < d.length; e++) u.push(n[e] + p), y.push(e === 0 ? "linear" : /* @__PURE__ */ Xe(f, e - 1));
|
|
3025
2913
|
}
|
|
3026
|
-
|
|
2914
|
+
co(u, m, e);
|
|
3027
2915
|
}
|
|
3028
|
-
let
|
|
3029
|
-
|
|
2916
|
+
let ee = w + b;
|
|
2917
|
+
so(r, c, y, u, w, ee), g = Math.max(x + b, g), f = Math.max(ee, f);
|
|
3030
2918
|
};
|
|
3031
2919
|
if ($(p)) {
|
|
3032
|
-
let e =
|
|
3033
|
-
_(m, h,
|
|
2920
|
+
let e = mo(p, s);
|
|
2921
|
+
_(m, h, ho("default", e));
|
|
3034
2922
|
} else {
|
|
3035
|
-
let e =
|
|
2923
|
+
let e = ro(p, m, r, c), t = e.length;
|
|
3036
2924
|
for (let n = 0; n < t; n++) {
|
|
3037
2925
|
m = m, h = h;
|
|
3038
|
-
let r = e[n], i =
|
|
3039
|
-
for (let e in m) _(m[e],
|
|
2926
|
+
let r = e[n], i = mo(r, s);
|
|
2927
|
+
for (let e in m) _(m[e], _o(h, e), ho(e, i), n, t);
|
|
3040
2928
|
}
|
|
3041
2929
|
}
|
|
3042
2930
|
u = d, d += g;
|
|
@@ -3044,13 +2932,13 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3044
2932
|
return s.forEach((e, r) => {
|
|
3045
2933
|
for (let i in e) {
|
|
3046
2934
|
let a = e[i];
|
|
3047
|
-
a.sort(
|
|
2935
|
+
a.sort(lo);
|
|
3048
2936
|
let s = [], c = [], l = [];
|
|
3049
2937
|
for (let e = 0; e < a.length; e++) {
|
|
3050
2938
|
let { at: t, value: n, easing: r } = a[e];
|
|
3051
|
-
s.push(n), c.push(/* @__PURE__ */
|
|
2939
|
+
s.push(n), c.push(/* @__PURE__ */ Ee(0, f, t)), l.push(r || "easeOut");
|
|
3052
2940
|
}
|
|
3053
|
-
c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(
|
|
2941
|
+
c[0] !== 0 && (c.unshift(0), s.unshift(s[0]), l.unshift(uo)), c[c.length - 1] !== 1 && (c.push(1), s.push(null)), o.has(r) || o.set(r, {
|
|
3054
2942
|
keyframes: {},
|
|
3055
2943
|
transition: {}
|
|
3056
2944
|
});
|
|
@@ -3067,25 +2955,24 @@ function fo(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
|
|
|
3067
2955
|
}
|
|
3068
2956
|
}), o;
|
|
3069
2957
|
}
|
|
3070
|
-
function
|
|
2958
|
+
function mo(e, t) {
|
|
3071
2959
|
return !t.has(e) && t.set(e, {}), t.get(e);
|
|
3072
2960
|
}
|
|
3073
|
-
function
|
|
2961
|
+
function ho(e, t) {
|
|
3074
2962
|
return t[e] || (t[e] = []), t[e];
|
|
3075
2963
|
}
|
|
3076
|
-
function
|
|
2964
|
+
function go(e) {
|
|
3077
2965
|
return Array.isArray(e) ? e : [e];
|
|
3078
2966
|
}
|
|
3079
|
-
function
|
|
2967
|
+
function _o(e, t) {
|
|
3080
2968
|
return e && e[t] ? {
|
|
3081
2969
|
...e,
|
|
3082
2970
|
...e[t]
|
|
3083
2971
|
} : { ...e };
|
|
3084
2972
|
}
|
|
3085
|
-
var
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
function yo(e) {
|
|
2973
|
+
var vo = (e) => typeof e == "number", yo = (e) => e.every(vo);
|
|
2974
|
+
// node_modules/framer-motion/dist/es/animation/utils/create-visual-element.mjs
|
|
2975
|
+
function bo(e) {
|
|
3089
2976
|
let t = {
|
|
3090
2977
|
presenceContext: null,
|
|
3091
2978
|
props: {},
|
|
@@ -3099,11 +2986,11 @@ function yo(e) {
|
|
|
3099
2986
|
},
|
|
3100
2987
|
latestValues: {}
|
|
3101
2988
|
}
|
|
3102
|
-
}, n =
|
|
3103
|
-
n.mount(e),
|
|
2989
|
+
}, n = na(e) && !ra(e) ? new Xa(t) : new Ra(t);
|
|
2990
|
+
n.mount(e), ca.set(e, n);
|
|
3104
2991
|
}
|
|
3105
|
-
function
|
|
3106
|
-
let t = new
|
|
2992
|
+
function xo(e) {
|
|
2993
|
+
let t = new Ba({
|
|
3107
2994
|
presenceContext: null,
|
|
3108
2995
|
props: {},
|
|
3109
2996
|
visualState: {
|
|
@@ -3111,25 +2998,24 @@ function bo(e) {
|
|
|
3111
2998
|
latestValues: {}
|
|
3112
2999
|
}
|
|
3113
3000
|
});
|
|
3114
|
-
t.mount(e),
|
|
3001
|
+
t.mount(e), ca.set(e, t);
|
|
3115
3002
|
}
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
return $(e) || typeof e == "number" || typeof e == "string" && !to(t);
|
|
3003
|
+
// node_modules/framer-motion/dist/es/animation/animate/subject.mjs
|
|
3004
|
+
function So(e, t) {
|
|
3005
|
+
return $(e) || typeof e == "number" || typeof e == "string" && !no(t);
|
|
3120
3006
|
}
|
|
3121
|
-
function
|
|
3007
|
+
function Co(e, t, n, r) {
|
|
3122
3008
|
let i = [];
|
|
3123
|
-
if (
|
|
3009
|
+
if (So(e, t)) i.push(Za(e, no(t) && t.default || t, n && (n.default || n)));
|
|
3124
3010
|
else {
|
|
3125
3011
|
if (e == null) return i;
|
|
3126
|
-
let a =
|
|
3012
|
+
let a = ro(e, t, r), o = a.length;
|
|
3127
3013
|
R(!!o, "No valid elements provided.", "no-valid-elements");
|
|
3128
3014
|
for (let e = 0; e < o; e++) {
|
|
3129
|
-
let r = a[e], s = r instanceof Element ?
|
|
3130
|
-
|
|
3131
|
-
let c =
|
|
3132
|
-
"delay" in l && typeof l.delay == "function" && (l.delay = l.delay(e, o)), i.push(...
|
|
3015
|
+
let r = a[e], s = r instanceof Element ? bo : xo;
|
|
3016
|
+
ca.has(r) || s(r);
|
|
3017
|
+
let c = ca.get(r), l = { ...n };
|
|
3018
|
+
"delay" in l && typeof l.delay == "function" && (l.delay = l.delay(e, o)), i.push(...Mi(c, {
|
|
3133
3019
|
...t,
|
|
3134
3020
|
transition: l
|
|
3135
3021
|
}, {}));
|
|
@@ -3137,13 +3023,12 @@ function So(e, t, n, r) {
|
|
|
3137
3023
|
}
|
|
3138
3024
|
return i;
|
|
3139
3025
|
}
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
function Co(e, t, n) {
|
|
3026
|
+
// node_modules/framer-motion/dist/es/animation/animate/sequence.mjs
|
|
3027
|
+
function wo(e, t, n) {
|
|
3143
3028
|
let r = [];
|
|
3144
|
-
return
|
|
3029
|
+
return po(e.map((e) => {
|
|
3145
3030
|
if (Array.isArray(e) && typeof e[0] == "function") {
|
|
3146
|
-
let t = e[0], n =
|
|
3031
|
+
let t = e[0], n = ri(0);
|
|
3147
3032
|
return n.on("change", t), e.length === 1 ? [n, [0, 1]] : e.length === 2 ? [
|
|
3148
3033
|
n,
|
|
3149
3034
|
[0, 1],
|
|
@@ -3155,47 +3040,45 @@ function Co(e, t, n) {
|
|
|
3155
3040
|
];
|
|
3156
3041
|
}
|
|
3157
3042
|
return e;
|
|
3158
|
-
}), t, n, { spring:
|
|
3159
|
-
r.push(...
|
|
3043
|
+
}), t, n, { spring: jn }).forEach(({ keyframes: e, transition: t }, n) => {
|
|
3044
|
+
r.push(...Co(n, e, t));
|
|
3160
3045
|
}), r;
|
|
3161
3046
|
}
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
function wo(e) {
|
|
3047
|
+
// node_modules/framer-motion/dist/es/animation/animate/index.mjs
|
|
3048
|
+
function To(e) {
|
|
3165
3049
|
return Array.isArray(e) && e.some(Array.isArray);
|
|
3166
3050
|
}
|
|
3167
|
-
function
|
|
3051
|
+
function Eo(e = {}) {
|
|
3168
3052
|
let { scope: t, reduceMotion: n, skipAnimations: r } = e;
|
|
3169
3053
|
function i(e, i, a) {
|
|
3170
3054
|
let o = [], s, c = {};
|
|
3171
|
-
if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r),
|
|
3055
|
+
if (n !== void 0 && (c.reduceMotion = n), r !== void 0 && (c.skipAnimations = r), To(e)) {
|
|
3172
3056
|
let { onComplete: n, ...r } = i || {};
|
|
3173
|
-
typeof n == "function" && (s = n), o =
|
|
3057
|
+
typeof n == "function" && (s = n), o = wo(e, {
|
|
3174
3058
|
...c,
|
|
3175
3059
|
...r
|
|
3176
3060
|
}, t);
|
|
3177
3061
|
} else {
|
|
3178
3062
|
let { onComplete: n, ...r } = a || {};
|
|
3179
|
-
typeof n == "function" && (s = n), o =
|
|
3063
|
+
typeof n == "function" && (s = n), o = Co(e, i, {
|
|
3180
3064
|
...c,
|
|
3181
3065
|
...r
|
|
3182
3066
|
}, t);
|
|
3183
3067
|
}
|
|
3184
|
-
let l = new
|
|
3068
|
+
let l = new Qr(o);
|
|
3185
3069
|
return s && l.finished.then(s), t && (t.animations.push(l), l.finished.then(() => {
|
|
3186
|
-
|
|
3070
|
+
ve(t.animations, l);
|
|
3187
3071
|
})), l;
|
|
3188
3072
|
}
|
|
3189
3073
|
return i;
|
|
3190
3074
|
}
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
let e = me(() => ({
|
|
3075
|
+
Eo();
|
|
3076
|
+
// node_modules/framer-motion/dist/es/animation/hooks/use-animate.mjs
|
|
3077
|
+
function Do() {
|
|
3078
|
+
let e = ge(() => ({
|
|
3196
3079
|
current: null,
|
|
3197
3080
|
animations: []
|
|
3198
|
-
})), t =
|
|
3081
|
+
})), t = to() ?? void 0, { skipAnimations: n } = l(Qa), r = f(() => Eo({
|
|
3199
3082
|
scope: e,
|
|
3200
3083
|
reduceMotion: t,
|
|
3201
3084
|
skipAnimations: n
|
|
@@ -3204,18 +3087,17 @@ function Eo() {
|
|
|
3204
3087
|
t,
|
|
3205
3088
|
n
|
|
3206
3089
|
]);
|
|
3207
|
-
return
|
|
3090
|
+
return $a(() => {
|
|
3208
3091
|
e.animations.forEach((e) => e.stop()), e.animations.length = 0;
|
|
3209
3092
|
}), [e, r];
|
|
3210
3093
|
}
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
var Do = {
|
|
3094
|
+
// src/components/effectlib/bounce.tsx
|
|
3095
|
+
var Oo = {
|
|
3214
3096
|
display: "block",
|
|
3215
3097
|
width: "100%",
|
|
3216
3098
|
height: "100%"
|
|
3217
|
-
},
|
|
3218
|
-
let [a, o] =
|
|
3099
|
+
}, ko = ({ item: e, children: t, effectCallback: n, onEffectStart: r, ref: i }) => {
|
|
3100
|
+
let [a, o] = Do(), [s, c] = m(!1), l = p(!1), u = (t = !0) => {
|
|
3219
3101
|
if (!t && n && n(e), !s && !l.current) {
|
|
3220
3102
|
if (!a.current) return;
|
|
3221
3103
|
l.current = !0, c(!0), r && r(), o(a.current, {
|
|
@@ -3241,23 +3123,23 @@ var Do = {
|
|
|
3241
3123
|
});
|
|
3242
3124
|
}
|
|
3243
3125
|
};
|
|
3244
|
-
return
|
|
3245
|
-
triggerEffect:
|
|
3126
|
+
return d(i, () => ({
|
|
3127
|
+
triggerEffect: u,
|
|
3246
3128
|
setBusy: c,
|
|
3247
3129
|
busy: s
|
|
3248
|
-
}), [s]), /* @__PURE__ */
|
|
3130
|
+
}), [s]), /* @__PURE__ */ b("div", {
|
|
3249
3131
|
ref: a,
|
|
3250
3132
|
onClick: (e) => {
|
|
3251
|
-
e.stopPropagation(),
|
|
3133
|
+
e.stopPropagation(), u(!1);
|
|
3252
3134
|
},
|
|
3253
|
-
style:
|
|
3135
|
+
style: Oo,
|
|
3254
3136
|
children: t
|
|
3255
3137
|
});
|
|
3256
|
-
},
|
|
3138
|
+
}, Ao = ({ children: e, position: t = {
|
|
3257
3139
|
from: 0,
|
|
3258
3140
|
to: 0
|
|
3259
3141
|
}, screenScale: n, settings: r, onEffectEnd: i, onEffectStart: a, ref: o }) => {
|
|
3260
|
-
let [s, c] =
|
|
3142
|
+
let [s, c] = Do(), l = p(!1), u = () => {
|
|
3261
3143
|
if (!s.current) return;
|
|
3262
3144
|
a && a();
|
|
3263
3145
|
let e = l.current ? 0 : (t.to - t.from) * n / 100;
|
|
@@ -3270,22 +3152,22 @@ var Do = {
|
|
|
3270
3152
|
l.current = !l.current;
|
|
3271
3153
|
});
|
|
3272
3154
|
};
|
|
3273
|
-
return
|
|
3155
|
+
return d(o, () => ({ triggerEffect: u })), /* @__PURE__ */ b("div", {
|
|
3274
3156
|
ref: s,
|
|
3275
3157
|
onClick: (e) => {
|
|
3276
|
-
e.stopPropagation(),
|
|
3158
|
+
e.stopPropagation(), u();
|
|
3277
3159
|
},
|
|
3278
3160
|
children: e
|
|
3279
3161
|
});
|
|
3280
|
-
},
|
|
3162
|
+
}, jo = {
|
|
3281
3163
|
display: "block",
|
|
3282
3164
|
width: "100%",
|
|
3283
3165
|
height: "100%"
|
|
3284
|
-
},
|
|
3285
|
-
let [o, s] =
|
|
3286
|
-
if (!t && n && n(e), !c && !
|
|
3166
|
+
}, Mo = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
3167
|
+
let [o, s] = Do(), [c, l] = m(!1), u = p(!1), f = (t = !0) => {
|
|
3168
|
+
if (!t && n && n(e), !c && !u.current) {
|
|
3287
3169
|
if (!o.current) return;
|
|
3288
|
-
|
|
3170
|
+
u.current = !0, l(!0), i && i(), s(o.current, {
|
|
3289
3171
|
boxShadow: [
|
|
3290
3172
|
"0px 0px 20px 10px rgba(209, 174, 34, 0)",
|
|
3291
3173
|
"0px 0px 20px 10px rgba(209, 174, 34, 0.8)",
|
|
@@ -3298,34 +3180,34 @@ var Do = {
|
|
|
3298
3180
|
1
|
|
3299
3181
|
]
|
|
3300
3182
|
}, { duration: 1 }).then(() => {
|
|
3301
|
-
l(!1),
|
|
3183
|
+
l(!1), u.current = !1, r && r();
|
|
3302
3184
|
}).catch(() => {
|
|
3303
|
-
l(!1),
|
|
3185
|
+
l(!1), u.current = !1;
|
|
3304
3186
|
});
|
|
3305
3187
|
}
|
|
3306
3188
|
};
|
|
3307
|
-
return
|
|
3308
|
-
triggerEffect:
|
|
3189
|
+
return d(a, () => ({
|
|
3190
|
+
triggerEffect: f,
|
|
3309
3191
|
setBusy: l,
|
|
3310
3192
|
busy: c
|
|
3311
|
-
}), [c]), /* @__PURE__ */
|
|
3193
|
+
}), [c]), /* @__PURE__ */ b("div", {
|
|
3312
3194
|
ref: o,
|
|
3313
3195
|
onClick: (e) => {
|
|
3314
|
-
e.stopPropagation(),
|
|
3196
|
+
e.stopPropagation(), f(!1);
|
|
3315
3197
|
},
|
|
3316
3198
|
style: {
|
|
3317
|
-
...
|
|
3199
|
+
...jo,
|
|
3318
3200
|
borderRadius: "100%"
|
|
3319
3201
|
},
|
|
3320
3202
|
children: t
|
|
3321
3203
|
});
|
|
3322
|
-
},
|
|
3204
|
+
}, No = {
|
|
3323
3205
|
display: "block",
|
|
3324
3206
|
width: "100%",
|
|
3325
3207
|
height: "100%"
|
|
3326
|
-
},
|
|
3327
|
-
let s = e.scaleSize / 100 * (t - 10) / 100, [c, l] =
|
|
3328
|
-
if (!t && r && r(e), !
|
|
3208
|
+
}, Po = ({ item: e, screenScale: t, children: n, effectCallback: r, onEffectEnd: i, onEffectStart: a, ref: o }) => {
|
|
3209
|
+
let s = e.scaleSize / 100 * (t - 10) / 100, [c, l] = Do(), [u, f] = m(!1), h = p(!1), g = (t = !0) => {
|
|
3210
|
+
if (!t && r && r(e), !u && !h.current) {
|
|
3329
3211
|
if (!c.current) return;
|
|
3330
3212
|
h.current = !0, a && a(), l(c.current, {
|
|
3331
3213
|
rotate: [
|
|
@@ -3350,33 +3232,33 @@ var Do = {
|
|
|
3350
3232
|
repeat: 4,
|
|
3351
3233
|
duration: .15
|
|
3352
3234
|
}).then(() => {
|
|
3353
|
-
|
|
3235
|
+
f(!1), h.current = !1, i && i();
|
|
3354
3236
|
}).catch(() => {
|
|
3355
|
-
|
|
3237
|
+
f(!1), h.current = !1;
|
|
3356
3238
|
});
|
|
3357
3239
|
}
|
|
3358
3240
|
};
|
|
3359
|
-
return
|
|
3241
|
+
return d(o, () => ({
|
|
3360
3242
|
triggerEffect: g,
|
|
3361
|
-
setBusy:
|
|
3362
|
-
busy:
|
|
3363
|
-
}), [
|
|
3243
|
+
setBusy: f,
|
|
3244
|
+
busy: u
|
|
3245
|
+
}), [u]), /* @__PURE__ */ b("div", {
|
|
3364
3246
|
ref: c,
|
|
3365
3247
|
onClick: (e) => {
|
|
3366
3248
|
e.stopPropagation(), g(!1);
|
|
3367
3249
|
},
|
|
3368
|
-
style:
|
|
3250
|
+
style: No,
|
|
3369
3251
|
children: n
|
|
3370
3252
|
});
|
|
3371
|
-
},
|
|
3253
|
+
}, Fo = {
|
|
3372
3254
|
display: "block",
|
|
3373
3255
|
width: "100%",
|
|
3374
3256
|
height: "100%"
|
|
3375
|
-
},
|
|
3376
|
-
let o = e.scaleSize / 100, [s, c] =
|
|
3377
|
-
if (!t && n && n(e), !l && !
|
|
3257
|
+
}, Io = ({ item: e, children: t, effectCallback: n, onEffectEnd: r, onEffectStart: i, ref: a }) => {
|
|
3258
|
+
let o = e.scaleSize / 100, [s, c] = Do(), [l, u] = m(!1), f = p(!1), h = (t = !0) => {
|
|
3259
|
+
if (!t && n && n(e), !l && !f.current) {
|
|
3378
3260
|
if (!s.current) return;
|
|
3379
|
-
|
|
3261
|
+
f.current = !0, u(!0), i && i(), c(s.current, {
|
|
3380
3262
|
y: [
|
|
3381
3263
|
0,
|
|
3382
3264
|
-10 * o,
|
|
@@ -3396,90 +3278,86 @@ var Do = {
|
|
|
3396
3278
|
repeatType: "reverse",
|
|
3397
3279
|
duration: .5 * o
|
|
3398
3280
|
}).then(() => {
|
|
3399
|
-
|
|
3281
|
+
u(!1), f.current = !1, r && r();
|
|
3400
3282
|
}).catch(() => {
|
|
3401
|
-
|
|
3283
|
+
u(!1), f.current = !1;
|
|
3402
3284
|
});
|
|
3403
3285
|
}
|
|
3404
3286
|
};
|
|
3405
|
-
return
|
|
3287
|
+
return d(a, () => ({
|
|
3406
3288
|
triggerEffect: h,
|
|
3407
|
-
setBusy:
|
|
3289
|
+
setBusy: u,
|
|
3408
3290
|
busy: l
|
|
3409
|
-
}), [l]), /* @__PURE__ */
|
|
3291
|
+
}), [l]), /* @__PURE__ */ b("div", {
|
|
3410
3292
|
ref: s,
|
|
3411
3293
|
onClick: (e) => {
|
|
3412
3294
|
e.stopPropagation(), h(!1);
|
|
3413
3295
|
},
|
|
3414
|
-
style:
|
|
3296
|
+
style: Fo,
|
|
3415
3297
|
children: t
|
|
3416
3298
|
});
|
|
3417
|
-
},
|
|
3418
|
-
let { effect: i, mediaType: a } = e, [o,
|
|
3419
|
-
|
|
3420
|
-
}, []), _ =
|
|
3421
|
-
let e =
|
|
3422
|
-
|
|
3423
|
-
h.current = !0;
|
|
3424
|
-
return;
|
|
3425
|
-
}
|
|
3426
|
-
o || (c(!0), e.setFrame(0), e.play());
|
|
3299
|
+
}, Lo = o.lazy(() => import("./dolottie-C0XP7-PK.js")), Ro = o.lazy(() => import("./Image-BvZmqug_.js")), zo = ({ item: e, screenScale: t, onMediaClick: n, ref: r }) => {
|
|
3300
|
+
let { effect: i, mediaType: a } = e, [o, s] = m(!1), [l, d] = m(null), f = p(null), h = p(!1), g = c((e) => {
|
|
3301
|
+
f.current = e, d(e);
|
|
3302
|
+
}, []), _ = c(() => {
|
|
3303
|
+
let e = f.current;
|
|
3304
|
+
e ? o || (s(!0), e.setFrame(0), e.play()) : h.current = !0;
|
|
3427
3305
|
}, [o]);
|
|
3428
|
-
|
|
3429
|
-
if (!
|
|
3306
|
+
u(() => {
|
|
3307
|
+
if (!l || !h.current) return;
|
|
3430
3308
|
let e = () => {
|
|
3431
|
-
h.current = !1,
|
|
3309
|
+
h.current = !1, s(!0), l.setFrame(0), l.play();
|
|
3432
3310
|
};
|
|
3433
|
-
if (
|
|
3434
|
-
else return
|
|
3435
|
-
}, [
|
|
3436
|
-
let v =
|
|
3437
|
-
let e =
|
|
3438
|
-
e && o && e.stop(),
|
|
3311
|
+
if (l.isLoaded) e();
|
|
3312
|
+
else return l.addEventListener("load", e), () => l.removeEventListener("load", e);
|
|
3313
|
+
}, [l]);
|
|
3314
|
+
let v = c(() => {
|
|
3315
|
+
let e = f.current;
|
|
3316
|
+
e && o && e.stop(), s(!1);
|
|
3439
3317
|
}, [o]);
|
|
3440
|
-
|
|
3318
|
+
u(() => {
|
|
3441
3319
|
let e = () => {
|
|
3442
|
-
|
|
3320
|
+
i && i.type || s(!1);
|
|
3443
3321
|
};
|
|
3444
|
-
return
|
|
3445
|
-
|
|
3322
|
+
return l && l.addEventListener("complete", e), () => {
|
|
3323
|
+
l && l.removeEventListener("complete", e);
|
|
3446
3324
|
};
|
|
3447
|
-
}, [
|
|
3448
|
-
let
|
|
3325
|
+
}, [l, i]);
|
|
3326
|
+
let y = () => a === "lottie" ? /* @__PURE__ */ b(Lo, {
|
|
3449
3327
|
item: e,
|
|
3450
3328
|
play: o,
|
|
3451
3329
|
setDotLottie: g
|
|
3452
|
-
}) : /* @__PURE__ */
|
|
3453
|
-
return i?.type ? i.type === "highlight" ? /* @__PURE__ */
|
|
3330
|
+
}) : /* @__PURE__ */ b(Ro, { mediaItem: e });
|
|
3331
|
+
return i?.type ? i.type === "highlight" ? /* @__PURE__ */ b(Mo, {
|
|
3454
3332
|
item: e,
|
|
3455
3333
|
ref: r,
|
|
3456
3334
|
onEffectStart: _,
|
|
3457
3335
|
screenScale: t,
|
|
3458
3336
|
effectCallback: n,
|
|
3459
|
-
children:
|
|
3460
|
-
}) : i.type === "shake" ? /* @__PURE__ */
|
|
3337
|
+
children: y()
|
|
3338
|
+
}) : i.type === "shake" ? /* @__PURE__ */ b(Po, {
|
|
3461
3339
|
item: e,
|
|
3462
3340
|
ref: r,
|
|
3463
3341
|
onEffectStart: _,
|
|
3464
3342
|
screenScale: t,
|
|
3465
3343
|
effectCallback: n,
|
|
3466
|
-
children:
|
|
3467
|
-
}) : i.type === "bounce" ? /* @__PURE__ */
|
|
3344
|
+
children: y()
|
|
3345
|
+
}) : i.type === "bounce" ? /* @__PURE__ */ b(ko, {
|
|
3468
3346
|
item: e,
|
|
3469
3347
|
ref: r,
|
|
3470
3348
|
onEffectStart: _,
|
|
3471
3349
|
screenScale: t,
|
|
3472
3350
|
effectCallback: n,
|
|
3473
|
-
children:
|
|
3474
|
-
}) : i.type === "jump" ? /* @__PURE__ */
|
|
3351
|
+
children: y()
|
|
3352
|
+
}) : i.type === "jump" ? /* @__PURE__ */ b(Io, {
|
|
3475
3353
|
item: e,
|
|
3476
3354
|
ref: r,
|
|
3477
3355
|
onEffectEnd: v,
|
|
3478
3356
|
onEffectStart: _,
|
|
3479
3357
|
screenScale: t,
|
|
3480
3358
|
effectCallback: n,
|
|
3481
|
-
children:
|
|
3482
|
-
}) : i.type === "move" ? /* @__PURE__ */
|
|
3359
|
+
children: y()
|
|
3360
|
+
}) : i.type === "move" ? /* @__PURE__ */ b(Ao, {
|
|
3483
3361
|
onEffectEnd: v,
|
|
3484
3362
|
onEffectStart: _,
|
|
3485
3363
|
ref: r,
|
|
@@ -3489,215 +3367,216 @@ var Do = {
|
|
|
3489
3367
|
to: i.settings.to
|
|
3490
3368
|
},
|
|
3491
3369
|
settings: i.settings,
|
|
3492
|
-
children:
|
|
3493
|
-
}) : null : /* @__PURE__ */
|
|
3370
|
+
children: y()
|
|
3371
|
+
}) : null : /* @__PURE__ */ b(he, {
|
|
3494
3372
|
onEffectEnd: v,
|
|
3495
3373
|
onEffectStart: _,
|
|
3496
3374
|
item: e,
|
|
3497
3375
|
ref: r,
|
|
3498
3376
|
screenScale: t,
|
|
3499
3377
|
effectCallback: n,
|
|
3500
|
-
children:
|
|
3378
|
+
children: y()
|
|
3501
3379
|
});
|
|
3502
3380
|
};
|
|
3503
|
-
|
|
3504
|
-
var
|
|
3381
|
+
zo.displayName = "Animation";
|
|
3382
|
+
var Bo = o.memo(zo), Vo = o.memo(({ path: e, mediaType: t }) => t && t === "static" ? /* @__PURE__ */ b("span", {
|
|
3505
3383
|
className: "inline-flex",
|
|
3506
|
-
children:
|
|
3507
|
-
src:
|
|
3508
|
-
|
|
3509
|
-
loading: "lazy",
|
|
3384
|
+
children: /* @__PURE__ */ b(a, {
|
|
3385
|
+
src: e,
|
|
3386
|
+
eager: !0,
|
|
3510
3387
|
className: "max-w-full max-h-full w-full h-full -z-10"
|
|
3511
|
-
})
|
|
3388
|
+
})
|
|
3512
3389
|
}) : null);
|
|
3513
|
-
|
|
3514
|
-
var
|
|
3390
|
+
Vo.displayName = "LazySvg";
|
|
3391
|
+
var Ho = o.memo(Vo), Uo = {
|
|
3515
3392
|
left: 0,
|
|
3516
3393
|
top: 480
|
|
3517
|
-
},
|
|
3518
|
-
let
|
|
3519
|
-
|
|
3394
|
+
}, Wo = "clamp(18px, 3.8vmin, 34px)", Go = 2, Ko = ({ page: t, screenScale: r, isActive: a, isPrev: o = !1, isNext: s = !1, distanceFromActive: l, textDirection: d = "LTR" }) => {
|
|
3395
|
+
let h = _(), g = e(), { bookId: v, slug: S, analytics: C } = g, w = a || o || s || l !== void 0 && l <= Go, T = p(!1);
|
|
3396
|
+
w && (T.current = !0);
|
|
3397
|
+
let ee = w || T.current, { audio: E, words: te, background: ne, media: re = [], layoutStyle: D = le.BOTTOM, textPosition: ie, textStyle: O } = t, k = D === le.BOTTOM ? "layout-btm-aligned" : "", [A, j] = m([]), M = p([]), N = p(null), [P, ae] = m(null), oe = p(null), se = p(!0), fe = navigator?.userActivation.hasBeenActive, pe = h.activeIndex > (h.previousIndex ?? -1), F = f(() => E?.pageAudio?.segments ? E.pageAudio.segments : te && te.length > 0 ? te : [], [E, te]);
|
|
3398
|
+
u(() => {
|
|
3520
3399
|
let e = null;
|
|
3521
|
-
return a &&
|
|
3522
|
-
|
|
3523
|
-
}, 750)), !a &&
|
|
3400
|
+
return a && P === null && fe && pe && (e = setTimeout(() => {
|
|
3401
|
+
_e();
|
|
3402
|
+
}, 750)), !a && P === !0 && (C?.onAudioPaused?.(v, t._id), N.current?.onAbortAudio()), () => {
|
|
3524
3403
|
e && clearTimeout(e);
|
|
3525
3404
|
};
|
|
3526
3405
|
}, [
|
|
3527
3406
|
a,
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
]),
|
|
3532
|
-
|
|
3533
|
-
}), []),
|
|
3534
|
-
|
|
3535
|
-
}, [
|
|
3536
|
-
let
|
|
3537
|
-
|
|
3407
|
+
P,
|
|
3408
|
+
fe,
|
|
3409
|
+
pe
|
|
3410
|
+
]), u(() => (se.current = !0, () => {
|
|
3411
|
+
se.current = !1;
|
|
3412
|
+
}), []), u(() => {
|
|
3413
|
+
oe.current === !0 && P === !1 && a && C?.onAudioCompleted?.(v, t._id, E?.pageAudio?.mp3 ?? t._id), oe.current = P;
|
|
3414
|
+
}, [P]);
|
|
3415
|
+
let he = c(async (e) => {
|
|
3416
|
+
C?.onWordTapped?.(v, t._id, e.word), M.current.forEach((t) => {
|
|
3538
3417
|
t.mediaItem.effect?.timing?.forEach((n) => {
|
|
3539
|
-
e.word === n.word && t.element
|
|
3418
|
+
e.word === n.word && t.element?.triggerEffect();
|
|
3540
3419
|
});
|
|
3541
3420
|
});
|
|
3542
|
-
let n =
|
|
3421
|
+
let n = F.findIndex((t) => t.word === e.word && t.start === e.start);
|
|
3543
3422
|
if (n > -1) {
|
|
3544
|
-
let e =
|
|
3545
|
-
|
|
3423
|
+
let e = F[n];
|
|
3424
|
+
j([n]), await i((e.end - e.start) * 1e3 + 500), se.current && j([]);
|
|
3546
3425
|
}
|
|
3547
3426
|
}, [
|
|
3548
|
-
|
|
3549
|
-
|
|
3427
|
+
C,
|
|
3428
|
+
v,
|
|
3550
3429
|
t._id,
|
|
3551
|
-
|
|
3552
|
-
]),
|
|
3430
|
+
F
|
|
3431
|
+
]), ge = c((e) => {
|
|
3553
3432
|
if (!e) return;
|
|
3554
|
-
|
|
3433
|
+
C?.onAnimationTriggered?.(v, t._id, e._id, e.effect?.type);
|
|
3555
3434
|
let { effect: n } = e, r = [], i = [];
|
|
3556
3435
|
n?.timing?.forEach((e) => {
|
|
3557
|
-
let t =
|
|
3436
|
+
let t = F.findIndex((t) => t.word === e.word && t.start === e.start);
|
|
3558
3437
|
t > -1 && (r.push(t), i.push({
|
|
3559
3438
|
...e,
|
|
3560
3439
|
index: t
|
|
3561
|
-
}),
|
|
3440
|
+
}), he(e));
|
|
3562
3441
|
});
|
|
3563
3442
|
}, [
|
|
3564
|
-
|
|
3565
|
-
|
|
3443
|
+
C,
|
|
3444
|
+
v,
|
|
3566
3445
|
t._id,
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
]),
|
|
3570
|
-
|
|
3446
|
+
F,
|
|
3447
|
+
he
|
|
3448
|
+
]), _e = c(async () => {
|
|
3449
|
+
N.current?.isPlaying || (M.current.forEach((e) => {
|
|
3571
3450
|
e.mediaItem?.effect?.timing?.forEach((t) => {
|
|
3572
3451
|
setTimeout(() => {
|
|
3573
3452
|
e.element?.triggerEffect();
|
|
3574
3453
|
}, t.start * 1e3);
|
|
3575
3454
|
});
|
|
3576
|
-
}),
|
|
3455
|
+
}), N.current?.onPlay(), C?.onAudioPlayed?.(v, t._id, E?.pageAudio?.mp3 ?? t._id));
|
|
3577
3456
|
}, [
|
|
3578
|
-
|
|
3579
|
-
|
|
3457
|
+
C,
|
|
3458
|
+
v,
|
|
3580
3459
|
t._id,
|
|
3581
|
-
|
|
3582
|
-
]),
|
|
3460
|
+
E
|
|
3461
|
+
]), ve = ie ?? Uo, I = ve.left * r / 100, ye = ve.top * r / 100, L = 1200 * r / 100, R = F.length > 0 ? D === le.DYNAMIC ? /* @__PURE__ */ b("div", {
|
|
3583
3462
|
className: "page-text-overlay",
|
|
3584
|
-
dir:
|
|
3463
|
+
dir: d.toLowerCase(),
|
|
3585
3464
|
style: {
|
|
3586
3465
|
left: 0,
|
|
3587
3466
|
top: 0,
|
|
3588
|
-
transform: `translate(${
|
|
3589
|
-
width:
|
|
3590
|
-
maxWidth: `${
|
|
3467
|
+
transform: `translate(${I}px, ${ye}px)`,
|
|
3468
|
+
width: O?.textWidth ? `${O.textWidth * r / 100}px` : "fit-content",
|
|
3469
|
+
maxWidth: `${L}px`
|
|
3591
3470
|
},
|
|
3592
|
-
children: /* @__PURE__ */
|
|
3471
|
+
children: /* @__PURE__ */ b("div", {
|
|
3593
3472
|
style: {
|
|
3594
3473
|
display: "inline-block",
|
|
3595
|
-
width:
|
|
3474
|
+
width: O?.textWidth ? "100%" : void 0,
|
|
3596
3475
|
padding: "6px 8px",
|
|
3597
|
-
fontSize:
|
|
3476
|
+
fontSize: O?.fontSize ?? Wo,
|
|
3598
3477
|
lineHeight: 1.2,
|
|
3599
|
-
backgroundColor:
|
|
3600
|
-
color:
|
|
3601
|
-
whiteSpace:
|
|
3602
|
-
wordBreak:
|
|
3478
|
+
backgroundColor: O?.background ?? "transparent",
|
|
3479
|
+
color: O?.color ?? "inherit",
|
|
3480
|
+
whiteSpace: O?.textWidth ? "normal" : "nowrap",
|
|
3481
|
+
wordBreak: O?.textWidth ? "break-word" : void 0,
|
|
3603
3482
|
boxSizing: "border-box"
|
|
3604
3483
|
},
|
|
3605
|
-
children: /* @__PURE__ */
|
|
3606
|
-
onWordSelect:
|
|
3607
|
-
segments:
|
|
3608
|
-
pageAudio:
|
|
3609
|
-
ref:
|
|
3610
|
-
setIsPlaying:
|
|
3611
|
-
highlightIds:
|
|
3612
|
-
textDirection:
|
|
3484
|
+
children: /* @__PURE__ */ b(de, {
|
|
3485
|
+
onWordSelect: he,
|
|
3486
|
+
segments: F,
|
|
3487
|
+
pageAudio: E?.pageAudio?.path ? E.pageAudio : null,
|
|
3488
|
+
ref: N,
|
|
3489
|
+
setIsPlaying: ae,
|
|
3490
|
+
highlightIds: A,
|
|
3491
|
+
textDirection: d
|
|
3613
3492
|
})
|
|
3614
3493
|
})
|
|
3615
|
-
}) : /* @__PURE__ */
|
|
3494
|
+
}) : /* @__PURE__ */ b("div", {
|
|
3616
3495
|
className: "pagetext-wrapper",
|
|
3617
|
-
children: /* @__PURE__ */
|
|
3496
|
+
children: /* @__PURE__ */ b("div", {
|
|
3618
3497
|
className: "textwrapper-inner",
|
|
3619
|
-
children: /* @__PURE__ */
|
|
3498
|
+
children: /* @__PURE__ */ b("div", {
|
|
3620
3499
|
className: "textcontainer",
|
|
3621
|
-
dir:
|
|
3622
|
-
children: /* @__PURE__ */
|
|
3623
|
-
onWordSelect:
|
|
3624
|
-
segments:
|
|
3625
|
-
pageAudio:
|
|
3626
|
-
ref:
|
|
3627
|
-
setIsPlaying:
|
|
3628
|
-
highlightIds:
|
|
3629
|
-
textDirection:
|
|
3500
|
+
dir: d.toLowerCase(),
|
|
3501
|
+
children: /* @__PURE__ */ b(de, {
|
|
3502
|
+
onWordSelect: he,
|
|
3503
|
+
segments: F,
|
|
3504
|
+
pageAudio: E?.pageAudio?.path ? E.pageAudio : null,
|
|
3505
|
+
ref: N,
|
|
3506
|
+
setIsPlaying: ae,
|
|
3507
|
+
highlightIds: A,
|
|
3508
|
+
textDirection: d
|
|
3630
3509
|
})
|
|
3631
3510
|
})
|
|
3632
3511
|
})
|
|
3633
3512
|
}) : null;
|
|
3634
|
-
return
|
|
3635
|
-
className: `
|
|
3636
|
-
dir:
|
|
3513
|
+
return /* @__PURE__ */ x("div", {
|
|
3514
|
+
className: `pageContentWrapper ${k}`,
|
|
3515
|
+
dir: d.toLowerCase(),
|
|
3516
|
+
inert: !a || void 0,
|
|
3517
|
+
tabIndex: a ? void 0 : -1,
|
|
3518
|
+
"aria-hidden": !a || void 0,
|
|
3637
3519
|
children: [
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3520
|
+
ne && /* @__PURE__ */ b(ue, {
|
|
3521
|
+
background: ne,
|
|
3522
|
+
eager: ee
|
|
3523
|
+
}),
|
|
3524
|
+
E && a ? /* @__PURE__ */ b("button", {
|
|
3525
|
+
disabled: P === !0,
|
|
3526
|
+
onClick: _e,
|
|
3527
|
+
"aria-label": P ? "Audio is playing" : "Play audio",
|
|
3528
|
+
className: `ui btn audioplay ${P ? "playing" : ""}`,
|
|
3529
|
+
children: /* @__PURE__ */ b(ce, {
|
|
3645
3530
|
size: "50%",
|
|
3646
|
-
className: `${
|
|
3531
|
+
className: `${P ? "playing" : ""}`
|
|
3647
3532
|
})
|
|
3648
|
-
}),
|
|
3649
|
-
|
|
3533
|
+
}) : null,
|
|
3534
|
+
ee && re && re.map((e, t) => e.effect ? /* @__PURE__ */ b(me, {
|
|
3650
3535
|
item: e,
|
|
3651
3536
|
screenScale: r,
|
|
3652
|
-
children: /* @__PURE__ */
|
|
3537
|
+
children: /* @__PURE__ */ b(Bo, {
|
|
3653
3538
|
screenScale: r,
|
|
3654
3539
|
item: e,
|
|
3655
|
-
onMediaClick:
|
|
3540
|
+
onMediaClick: ge,
|
|
3656
3541
|
ref: (n) => {
|
|
3657
|
-
|
|
3542
|
+
M.current[t] = {
|
|
3658
3543
|
element: n,
|
|
3659
3544
|
mediaItem: e
|
|
3660
3545
|
};
|
|
3661
3546
|
}
|
|
3662
3547
|
})
|
|
3663
|
-
}, e.id) : /* @__PURE__ */
|
|
3548
|
+
}, e.id) : /* @__PURE__ */ x(me, {
|
|
3664
3549
|
item: e,
|
|
3665
3550
|
screenScale: r,
|
|
3666
|
-
children: [e.mediaType === "lottie" && /* @__PURE__ */ y
|
|
3551
|
+
children: [e.mediaType === "lottie" && /* @__PURE__ */ b(y, { children: /* @__PURE__ */ b(Bo, {
|
|
3667
3552
|
item: e,
|
|
3668
3553
|
screenScale: r,
|
|
3669
|
-
onMediaClick:
|
|
3554
|
+
onMediaClick: ge,
|
|
3670
3555
|
ref: (n) => {
|
|
3671
|
-
|
|
3556
|
+
M.current[t] = {
|
|
3672
3557
|
element: n,
|
|
3673
3558
|
mediaItem: e
|
|
3674
3559
|
};
|
|
3675
3560
|
}
|
|
3676
|
-
}) }), e.mediaType !== "lottie" && /* @__PURE__ */
|
|
3677
|
-
path: n(
|
|
3561
|
+
}) }), e.mediaType !== "lottie" && /* @__PURE__ */ b(Ho, {
|
|
3562
|
+
path: n(g, e),
|
|
3678
3563
|
mediaType: e.mediaType
|
|
3679
3564
|
})]
|
|
3680
3565
|
}, e.id)),
|
|
3681
|
-
|
|
3566
|
+
R
|
|
3682
3567
|
]
|
|
3683
|
-
}) : /* @__PURE__ */ b("div", {
|
|
3684
|
-
className: `pageContentWrapper ${ee}`,
|
|
3685
|
-
inert: !0,
|
|
3686
|
-
tabIndex: -1,
|
|
3687
|
-
"aria-hidden": "true",
|
|
3688
|
-
children: [C && /* @__PURE__ */ y(se, { background: C }), he]
|
|
3689
3568
|
});
|
|
3690
|
-
},
|
|
3569
|
+
}, qo = 1280, Jo = 600, Yo = qo / Jo, Xo = ({ id: e, analytics: r, fonts: i = [], bookSource: a = {
|
|
3691
3570
|
type: "static",
|
|
3692
3571
|
staticFolder: "GDLBookContent"
|
|
3693
|
-
} }) => {
|
|
3694
|
-
let [
|
|
3572
|
+
}, lottieWasmUrl: o }) => {
|
|
3573
|
+
let [s, c] = m(null), [l, d] = m(null), [f, p] = m(null), [_, ee] = m(null), E = w([...s?.fonts ?? [], ...i], s?.language, s?.script), te = T(E), ne = E[0]?.family || "Quicksand", re = s?.illustration && s.illustration.path || s?.coverText && s.coverText !== "", D = s?.credits && s.credits?.text || s?.credits?.logos && s.credits?.logos.length > 0, [ie, O] = m({
|
|
3695
3574
|
width: 0,
|
|
3696
3575
|
height: 0
|
|
3697
|
-
}), { width:
|
|
3698
|
-
|
|
3576
|
+
}), { width: k, height: A } = ie, j = s?.config.textDirection || "LTR";
|
|
3577
|
+
u(() => {
|
|
3699
3578
|
let e = () => {
|
|
3700
|
-
|
|
3579
|
+
O({
|
|
3701
3580
|
width: window.innerWidth,
|
|
3702
3581
|
height: window.innerHeight
|
|
3703
3582
|
});
|
|
@@ -3706,139 +3585,145 @@ var Vo = a.memo(Bo), Ho = {
|
|
|
3706
3585
|
window.removeEventListener("resize", e);
|
|
3707
3586
|
};
|
|
3708
3587
|
}, []);
|
|
3709
|
-
let
|
|
3710
|
-
width:
|
|
3711
|
-
height:
|
|
3588
|
+
let M = 100, N = {
|
|
3589
|
+
width: qo,
|
|
3590
|
+
height: Jo
|
|
3712
3591
|
};
|
|
3713
|
-
return (
|
|
3714
|
-
height:
|
|
3715
|
-
width:
|
|
3716
|
-
},
|
|
3717
|
-
width:
|
|
3718
|
-
height:
|
|
3719
|
-
},
|
|
3720
|
-
!
|
|
3592
|
+
return (k < qo || A < Jo) && (Jo / A > qo / k ? (N = {
|
|
3593
|
+
height: A,
|
|
3594
|
+
width: A * Yo
|
|
3595
|
+
}, M = A / Jo * 100) : (N = {
|
|
3596
|
+
width: k,
|
|
3597
|
+
height: k / Yo
|
|
3598
|
+
}, M = k / qo * 100)), u(() => {
|
|
3599
|
+
!s && e && (async (e) => {
|
|
3721
3600
|
let t = a.type === "api" ? `${a.apiHost}/api/book?slug=${e}` : `/${a.staticFolder}/${e}/content.json`;
|
|
3722
3601
|
try {
|
|
3723
3602
|
let n = await fetch(t, { cache: "no-store" });
|
|
3724
3603
|
if (!n.ok) throw Error(`Error fetching data for (${e}): ${n.status}`);
|
|
3725
3604
|
let i = await n.json();
|
|
3726
|
-
|
|
3605
|
+
c(i), d(null), navigator.onLine && r?.onBookOpened && r.onBookOpened(i._id, i.title);
|
|
3727
3606
|
} catch (t) {
|
|
3728
|
-
console.error(t),
|
|
3607
|
+
console.error(t), c(null), d(`Error fetching data for (${e}): ${t instanceof Error ? t.message : "Unknown error"}`);
|
|
3729
3608
|
}
|
|
3730
3609
|
})(e);
|
|
3731
|
-
}, [e]),
|
|
3610
|
+
}, [e]), l ? /* @__PURE__ */ x("p", {
|
|
3732
3611
|
role: "alert",
|
|
3733
3612
|
className: "player",
|
|
3734
|
-
children: ["Error: ",
|
|
3735
|
-
}) : !
|
|
3613
|
+
children: ["Error: ", l]
|
|
3614
|
+
}) : !s || !e ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("style", { children: S }), /* @__PURE__ */ b("div", {
|
|
3736
3615
|
role: "status",
|
|
3737
3616
|
"aria-label": "Loading",
|
|
3738
3617
|
className: "player centered",
|
|
3739
|
-
children: /* @__PURE__ */
|
|
3740
|
-
})] }) : /* @__PURE__ */
|
|
3741
|
-
bookId:
|
|
3742
|
-
slug:
|
|
3618
|
+
children: /* @__PURE__ */ b("span", { className: "loader" })
|
|
3619
|
+
})] }) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("style", { children: `:root, :host, .player { --player-font-family: '${C(ne)}'; }${te}${S}` }), /* @__PURE__ */ b(t, {
|
|
3620
|
+
bookId: s._id,
|
|
3621
|
+
slug: s.slug,
|
|
3743
3622
|
assetConfig: a,
|
|
3744
3623
|
analytics: r,
|
|
3745
|
-
|
|
3624
|
+
lottieWasmUrl: o,
|
|
3625
|
+
children: /* @__PURE__ */ b("div", {
|
|
3746
3626
|
className: "player",
|
|
3747
|
-
children: /* @__PURE__ */
|
|
3627
|
+
children: /* @__PURE__ */ b("div", {
|
|
3748
3628
|
className: "view-box",
|
|
3749
|
-
children: /* @__PURE__ */
|
|
3629
|
+
children: /* @__PURE__ */ x(h, {
|
|
3750
3630
|
onSlideChange: (e) => {
|
|
3751
|
-
|
|
3631
|
+
p(e.activeIndex), s && (r?.onPageTurned && r.onPageTurned(s._id, e.activeIndex), e.isEnd && r?.onBookCompleted && r.onBookCompleted(s._id, s.title));
|
|
3752
3632
|
},
|
|
3753
3633
|
className: "mySwiper swiper-container",
|
|
3754
3634
|
speed: 1200,
|
|
3755
|
-
dir:
|
|
3756
|
-
modules: [
|
|
3635
|
+
dir: j.toLowerCase() ?? "ltr",
|
|
3636
|
+
modules: [v],
|
|
3757
3637
|
pagination: {
|
|
3758
3638
|
clickable: !1,
|
|
3759
3639
|
type: "progressbar"
|
|
3760
3640
|
},
|
|
3761
3641
|
onSwiper: (e) => {
|
|
3762
|
-
|
|
3642
|
+
ee(e);
|
|
3763
3643
|
},
|
|
3764
|
-
style: { ...
|
|
3644
|
+
style: { ...N },
|
|
3765
3645
|
a11y: {
|
|
3766
3646
|
enabled: !0,
|
|
3767
3647
|
prevSlideMessage: "Previous page",
|
|
3768
3648
|
nextSlideMessage: "Next page"
|
|
3769
3649
|
},
|
|
3770
3650
|
children: [
|
|
3771
|
-
|
|
3651
|
+
re && /* @__PURE__ */ b(g, {
|
|
3772
3652
|
"data-hash": "cover",
|
|
3773
|
-
children: ({ isActive: e }) => /* @__PURE__ */
|
|
3653
|
+
children: ({ isActive: e }) => /* @__PURE__ */ x("div", {
|
|
3774
3654
|
className: "cover-page",
|
|
3775
|
-
inert: e
|
|
3776
|
-
children: [/* @__PURE__ */
|
|
3655
|
+
inert: !e || void 0,
|
|
3656
|
+
children: [/* @__PURE__ */ b("div", {
|
|
3777
3657
|
className: "cover-illustration",
|
|
3778
|
-
children:
|
|
3658
|
+
children: s.illustration?.path && /* @__PURE__ */ b("img", {
|
|
3779
3659
|
src: n({
|
|
3780
|
-
bookId:
|
|
3781
|
-
slug:
|
|
3660
|
+
bookId: s._id,
|
|
3661
|
+
slug: s.slug,
|
|
3782
3662
|
assetConfig: a
|
|
3783
|
-
},
|
|
3784
|
-
alt:
|
|
3663
|
+
}, s.illustration),
|
|
3664
|
+
alt: s.title
|
|
3785
3665
|
})
|
|
3786
|
-
}), /* @__PURE__ */
|
|
3666
|
+
}), /* @__PURE__ */ x("div", {
|
|
3787
3667
|
className: "cover-text",
|
|
3788
|
-
dir:
|
|
3789
|
-
children: [/* @__PURE__ */
|
|
3668
|
+
dir: j.toLowerCase() || "ltr",
|
|
3669
|
+
children: [/* @__PURE__ */ b("h1", { children: s.title }), s.coverText && /* @__PURE__ */ b("small", { children: s.coverText })]
|
|
3790
3670
|
})]
|
|
3791
3671
|
})
|
|
3792
3672
|
}),
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3673
|
+
s.body.map((e, t) => {
|
|
3674
|
+
let n = t + +!!re, r = Math.abs(n - (f ?? 0));
|
|
3675
|
+
return /* @__PURE__ */ b(g, {
|
|
3676
|
+
className: "overflow-hidden",
|
|
3677
|
+
"data-hash": e._id,
|
|
3678
|
+
children: ({ isActive: t, isPrev: n, isNext: i }) => /* @__PURE__ */ b(Ko, {
|
|
3679
|
+
screenScale: M,
|
|
3680
|
+
page: e,
|
|
3681
|
+
isActive: t,
|
|
3682
|
+
isPrev: n,
|
|
3683
|
+
isNext: i,
|
|
3684
|
+
distanceFromActive: r,
|
|
3685
|
+
textDirection: j
|
|
3686
|
+
})
|
|
3687
|
+
}, e._id);
|
|
3688
|
+
}),
|
|
3689
|
+
D && /* @__PURE__ */ b(g, {
|
|
3804
3690
|
"data-hash": "credits",
|
|
3805
|
-
children: ({ isActive: e }) => /* @__PURE__ */
|
|
3691
|
+
children: ({ isActive: e }) => /* @__PURE__ */ x("div", {
|
|
3806
3692
|
className: "credits-page",
|
|
3807
|
-
inert: e
|
|
3808
|
-
children: [/* @__PURE__ */
|
|
3693
|
+
inert: !e || void 0,
|
|
3694
|
+
children: [/* @__PURE__ */ b("div", {
|
|
3809
3695
|
className: "credits-page-inner",
|
|
3810
|
-
children:
|
|
3696
|
+
children: s.credits?.logos.map((e) => /* @__PURE__ */ b("div", {
|
|
3811
3697
|
className: "logo-item",
|
|
3812
|
-
children: /* @__PURE__ */
|
|
3813
|
-
src: a.type === "api" ? `${a.assetsHost}/logos/${e}.jpg` : `/${a.staticFolder}/${
|
|
3698
|
+
children: /* @__PURE__ */ b("img", {
|
|
3699
|
+
src: a.type === "api" ? `${a.assetsHost}/logos/${e}.jpg` : `/${a.staticFolder}/${s.slug}/assets/${e}.jpg`,
|
|
3814
3700
|
alt: e
|
|
3815
3701
|
})
|
|
3816
3702
|
}, e))
|
|
3817
|
-
}), /* @__PURE__ */
|
|
3703
|
+
}), /* @__PURE__ */ x("div", {
|
|
3818
3704
|
className: "credits-page-bottom",
|
|
3819
|
-
dir:
|
|
3820
|
-
children: [/* @__PURE__ */
|
|
3705
|
+
dir: j.toLowerCase() || "ltr",
|
|
3706
|
+
children: [/* @__PURE__ */ x("h1", { children: [
|
|
3821
3707
|
"\"",
|
|
3822
|
-
|
|
3708
|
+
s.title,
|
|
3823
3709
|
"\" credits"
|
|
3824
|
-
] }),
|
|
3710
|
+
] }), s.credits?.text && /* @__PURE__ */ b("small", { children: s.credits.text })]
|
|
3825
3711
|
})]
|
|
3826
3712
|
})
|
|
3827
3713
|
}),
|
|
3828
|
-
|
|
3829
|
-
isFirst:
|
|
3830
|
-
isLast:
|
|
3831
|
-
activeIndex:
|
|
3832
|
-
textDirection:
|
|
3714
|
+
_ && _.slides.length > 1 && /* @__PURE__ */ b(se, {
|
|
3715
|
+
isFirst: _.isBeginning === !0,
|
|
3716
|
+
isLast: _.isEnd === !0,
|
|
3717
|
+
activeIndex: f,
|
|
3718
|
+
textDirection: j
|
|
3833
3719
|
})
|
|
3834
3720
|
]
|
|
3835
3721
|
})
|
|
3836
3722
|
})
|
|
3837
3723
|
})
|
|
3838
3724
|
})] });
|
|
3839
|
-
},
|
|
3840
|
-
function
|
|
3841
|
-
return "1.5.
|
|
3725
|
+
}, Zo = "1.5.2";
|
|
3726
|
+
function Qo() {
|
|
3727
|
+
return "1.5.2";
|
|
3842
3728
|
}
|
|
3843
|
-
|
|
3844
|
-
export { Yo as PLAYER_VERSION, Jo as Player, Xo as getPlayerVersion };
|
|
3729
|
+
export { Zo as PLAYER_VERSION, Xo as Player, Qo as getPlayerVersion };
|