@curiouslearning/gdl-player-core 1.5.2 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
- export declare const SwipeNav: ({ isFirst, isLast, activeIndex, textDirection, }: {
1
+ export declare const SwipeNav: ({ isFirst, isLast, activeIndex, }: {
2
2
  isFirst: boolean;
3
3
  isLast: boolean;
4
4
  activeIndex: number;
5
- textDirection?: "LTR" | "RTL";
6
5
  }) => import("react").JSX.Element;
7
6
  export default SwipeNav;
package/dist/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-D2xWCMio.cjs"),t=require("./PlayerImage-D1RCTdBY.cjs");let n=require("react");n=e.o(n,1);let r=require("swiper/react"),i=require("swiper/modules"),a=require("react/jsx-runtime");var o=`: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)=>{if(e.length===0||!t&&!n)return e;if(t){let n=e.filter(e=>e.language&&e.language.includes(t));if(n.length>0)return n}if(n){let t=e.filter(e=>e.script&&e.script===n);if(t.length>0)return t}let r=e.filter(e=>e.unicodeRange);return r.length>0?r:e},l=(e=[])=>e.map(e=>{let t=[`font-family: '${s(e.family)}';`,`src: url('${s(e.url)}');`,`font-display: swap;`];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(``)}}`}).join(``),u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},d=n.default.createContext&&n.default.createContext(u),f=[`attr`,`size`,`title`];function p(e,t){if(e==null)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=b(e,`string`);return typeof t==`symbol`?t:t+``}function b(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function x(e){return e&&e.map((e,t)=>n.default.createElement(e.tag,_({key:t},e.attr),x(e.child)))}function S(e){return t=>n.default.createElement(C,h({attr:_({},e.attr)},t),x(e.child))}function C(e){var t=t=>{var{attr:r,size:i,title:a}=e,o=p(e,f),s=i||t.size||`1em`,c;return t.className&&(c=t.className),e.className&&(c=(c?c+` `:``)+e.className),n.default.createElement(`svg`,h({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,r,o,{className:c,style:_(_({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:`http://www.w3.org/2000/svg`}),a&&n.default.createElement(`title`,null,a),e.children)};return d===void 0?t(u):n.default.createElement(d.Consumer,null,e=>t(e))}function w(e){return S({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M284.9 412.6l138.1-134c6-5.8 9-13.7 9-22.4v-.4c0-8.7-3-16.6-9-22.4l-138.1-134c-12-12.5-31.3-12.5-43.2 0-11.9 12.5-11.9 32.7 0 45.2l83 79.4h-214c-17 0-30.7 14.3-30.7 32 0 18 13.7 32 30.6 32h214l-83 79.4c-11.9 12.5-11.9 32.7 0 45.2 12 12.5 31.3 12.5 43.3 0z`},child:[]}]})(e)}function T(e){return S({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M401.4 224h-214l83-79.4c11.9-12.5 11.9-32.7 0-45.2s-31.2-12.5-43.2 0L89 233.4c-6 5.8-9 13.7-9 22.4v.4c0 8.7 3 16.6 9 22.4l138.1 134c12 12.5 31.3 12.5 43.2 0 11.9-12.5 11.9-32.7 0-45.2l-83-79.4h214c16.9 0 30.6-14.3 30.6-32 .1-18-13.6-32-30.5-32z`},child:[]}]})(e)}var ee=({isFirst:e,isLast:t,activeIndex:n,textDirection:i})=>{let o=(0,r.useSwiper)(),s=i===`RTL`;return(0,a.jsxs)(`div`,{className:`swipernavigation`,"data-index-id":n,children:[(0,a.jsx)(`button`,{className:`ui btn swipe prev ${(s?t:e)?` disabled`:``}`,disabled:s?t:e,"aria-label":s?`Next page`:`Previous page`,onClick:()=>{s?o.slideNext():o.slidePrev()},children:(0,a.jsx)(T,{size:`75%`})}),(0,a.jsx)(`button`,{disabled:s?e:t,"aria-label":s?`Previous page`:`Next page`,onClick:()=>{s?o.slidePrev():o.slideNext()},className:`ui btn swipe next ${(s?e:t)?` disabled`:``}`,children:(0,a.jsx)(w,{size:`75%`})})]})};function te(e){return S({tag:`svg`,attr:{viewBox:`0 0 448 512`},child:[{tag:`path`,attr:{d:`M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z`},child:[]}]})(e)}var ne=function(e){return e[e.BOTTOM=1]=`BOTTOM`,e[e.DYNAMIC=2]=`DYNAMIC`,e}({}),re=({background:n,eager:r=!1})=>{let i=e.a();return(0,a.jsx)(`div`,{className:`background`,style:{backgroundColor:n.color??`transparent`},children:n.type===`image`&&n.url&&(0,a.jsx)(t.t,{src:e.n(i,n.crop?n.crop:n),eager:r})})},E=n.default.memo(({segments:t,pageAudio:r,setIsPlaying:i,onWordSelect:o,highlightIds:s,ref:c,textDirection:l=`LTR`})=>{let u=(0,n.useRef)(null),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)([]),m=e.a(),h=(0,n.useRef)(null),g=(0,n.useRef)(new Audio),_=(0,n.useRef)(null),v=()=>{h.current&&clearInterval(h.current);let e=()=>{g.current.pause(),g.current.src=``,f(!0),i(!1)};_.current?_.current.then(e).catch(()=>{}):e()},y=()=>{if(r&&u?.current){f(!1),i(!0);let n=Array.from(u.current.children);g.current.src=e.r(m,r),_.current=g.current.play(),_.current.catch(e=>{e.name!==`AbortError`&&console.log(`audio play error`,e)}),h.current=setInterval(()=>{let e=t.findIndex(e=>g.current.currentTime>=e.start&&g.current.currentTime<=e.end);if(e>-1){let r=n[e];if(r.tagName===`SPAN`){let n=(t[e].end-t[e].start+.1)*1e3;r.classList.add(`HL`),setTimeout(()=>{r.classList.remove(`HL`)},n)}}},40),g.current.onended=()=>{h.current&&clearInterval(h.current),n?.forEach(e=>{e.classList.remove(`HL`)}),f(!0),i(!1)}}};return(0,n.useEffect)(()=>()=>{clearInterval(h.current),g.current.pause(),g.current.src=``},[]),(0,n.useEffect)(()=>{s&&s?.length>0&&(p?.current[s[0]])?.play()},[s]),(0,n.useImperativeHandle)(c,()=>({onPlay:y,onAbortAudio:v})),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(`span`,{ref:u,dir:l.toLowerCase(),children:t&&t.map((n,r)=>n.word===`\\n`||n.word===`/
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-D2xWCMio.cjs"),t=require("./PlayerImage-D1RCTdBY.cjs");let n=require("react");n=e.o(n,1);let r=require("swiper/react"),i=require("swiper/modules"),a=require("react/jsx-runtime");var o=`: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)=>{if(e.length===0||!t&&!n)return e;if(t){let n=e.filter(e=>e.language&&e.language.includes(t));if(n.length>0)return n}if(n){let t=e.filter(e=>e.script&&e.script===n);if(t.length>0)return t}let r=e.filter(e=>e.unicodeRange);return r.length>0?r:e},l=(e=[])=>e.map(e=>{let t=[`font-family: '${s(e.family)}';`,`src: url('${s(e.url)}');`,`font-display: swap;`];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(``)}}`}).join(``),u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},d=n.default.createContext&&n.default.createContext(u),f=[`attr`,`size`,`title`];function p(e,t){if(e==null)return{};var n,r,i=m(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=b(e,`string`);return typeof t==`symbol`?t:t+``}function b(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function x(e){return e&&e.map((e,t)=>n.default.createElement(e.tag,_({key:t},e.attr),x(e.child)))}function S(e){return t=>n.default.createElement(C,h({attr:_({},e.attr)},t),x(e.child))}function C(e){var t=t=>{var{attr:r,size:i,title:a}=e,o=p(e,f),s=i||t.size||`1em`,c;return t.className&&(c=t.className),e.className&&(c=(c?c+` `:``)+e.className),n.default.createElement(`svg`,h({stroke:`currentColor`,fill:`currentColor`,strokeWidth:`0`},t.attr,r,o,{className:c,style:_(_({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:`http://www.w3.org/2000/svg`}),a&&n.default.createElement(`title`,null,a),e.children)};return d===void 0?t(u):n.default.createElement(d.Consumer,null,e=>t(e))}function w(e){return S({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M284.9 412.6l138.1-134c6-5.8 9-13.7 9-22.4v-.4c0-8.7-3-16.6-9-22.4l-138.1-134c-12-12.5-31.3-12.5-43.2 0-11.9 12.5-11.9 32.7 0 45.2l83 79.4h-214c-17 0-30.7 14.3-30.7 32 0 18 13.7 32 30.6 32h214l-83 79.4c-11.9 12.5-11.9 32.7 0 45.2 12 12.5 31.3 12.5 43.3 0z`},child:[]}]})(e)}function T(e){return S({tag:`svg`,attr:{viewBox:`0 0 512 512`},child:[{tag:`path`,attr:{d:`M401.4 224h-214l83-79.4c11.9-12.5 11.9-32.7 0-45.2s-31.2-12.5-43.2 0L89 233.4c-6 5.8-9 13.7-9 22.4v.4c0 8.7 3 16.6 9 22.4l138.1 134c12 12.5 31.3 12.5 43.2 0 11.9-12.5 11.9-32.7 0-45.2l-83-79.4h214c16.9 0 30.6-14.3 30.6-32 .1-18-13.6-32-30.5-32z`},child:[]}]})(e)}var ee=({isFirst:e,isLast:t,activeIndex:n})=>{let i=(0,r.useSwiper)();return(0,a.jsxs)(`div`,{className:`swipernavigation`,"data-index-id":n,children:[(0,a.jsx)(`button`,{className:`ui btn swipe prev ${e?` disabled`:``}`,disabled:e,"aria-label":`Previous page`,onClick:()=>i.slidePrev(),children:(0,a.jsx)(T,{size:`75%`})}),(0,a.jsx)(`button`,{disabled:t,"aria-label":`Next page`,onClick:()=>i.slideNext(),className:`ui btn swipe next ${t?` disabled`:``}`,children:(0,a.jsx)(w,{size:`75%`})})]})};function te(e){return S({tag:`svg`,attr:{viewBox:`0 0 448 512`},child:[{tag:`path`,attr:{d:`M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z`},child:[]}]})(e)}var ne=function(e){return e[e.BOTTOM=1]=`BOTTOM`,e[e.DYNAMIC=2]=`DYNAMIC`,e}({}),re=({background:n,eager:r=!1})=>{let i=e.a();return(0,a.jsx)(`div`,{className:`background`,style:{backgroundColor:n.color??`transparent`},children:n.type===`image`&&n.url&&(0,a.jsx)(t.t,{src:e.n(i,n.crop?n.crop:n),eager:r})})},E=n.default.memo(({segments:t,pageAudio:r,setIsPlaying:i,onWordSelect:o,highlightIds:s,ref:c,textDirection:l=`LTR`})=>{let u=(0,n.useRef)(null),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)([]),m=e.a(),h=(0,n.useRef)(null),g=(0,n.useRef)(new Audio),_=(0,n.useRef)(null),v=()=>{h.current&&clearInterval(h.current);let e=()=>{g.current.pause(),g.current.src=``,f(!0),i(!1)};_.current?_.current.then(e).catch(()=>{}):e()},y=()=>{if(r&&u?.current){f(!1),i(!0);let n=Array.from(u.current.children);g.current.src=e.r(m,r),_.current=g.current.play(),_.current.catch(e=>{e.name!==`AbortError`&&console.log(`audio play error`,e)}),h.current=setInterval(()=>{let e=t.findIndex(e=>g.current.currentTime>=e.start&&g.current.currentTime<=e.end);if(e>-1){let r=n[e];if(r.tagName===`SPAN`){let n=(t[e].end-t[e].start+.1)*1e3;r.classList.add(`HL`),setTimeout(()=>{r.classList.remove(`HL`)},n)}}},40),g.current.onended=()=>{h.current&&clearInterval(h.current),n?.forEach(e=>{e.classList.remove(`HL`)}),f(!0),i(!1)}}};return(0,n.useEffect)(()=>()=>{clearInterval(h.current),g.current.pause(),g.current.src=``},[]),(0,n.useEffect)(()=>{s&&s?.length>0&&(p?.current[s[0]])?.play()},[s]),(0,n.useImperativeHandle)(c,()=>({onPlay:y,onAbortAudio:v})),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(`span`,{ref:u,dir:l.toLowerCase(),children:t&&t.map((n,r)=>n.word===`\\n`||n.word===`/
2
2
  `?(0,a.jsx)(`br`,{},r):(0,a.jsxs)(`span`,{className:`worditem ${s&&s.includes(r)?`HL`:``}`,onClick:()=>{o&&o(n),p?.current[r]?.play()},children:[n.word===`
3
- `?(0,a.jsx)(`br`,{}):(0,a.jsx)(`span`,{className:`word`,children:n.word}),r<t.length-1&&(0,a.jsx)(a.Fragment,{children:` `}),n.mp3&&(0,a.jsx)(`audio`,{preload:`none`,ref:e=>{p.current[r]=e},children:(0,a.jsx)(`source`,{src:`${e.r(m,n)}`,type:`audio/mpeg`})})]},n.uid))})})}),D=e=>e/600*100,O=e=>e/1280*100,ie=({item:e,screenScale:t,children:n,onActivate:r})=>{let{position:i,scaleSize:o}=e,{top:s,left:c}=i,l=!!e.effect?.type||e.mediaType===`lottie`;return(0,a.jsx)(`div`,{className:`absolute ${e.mirror?`mirror-item`:``}`,style:{zIndex:e.zIndex||10,width:`${e.width*o/100*t/100}px`,height:e.height===0?`auto`:`${e.height*o/100*t/100}px`,top:`${D(s)}%`,left:`${O(c)}%`},...l?{role:`button`,tabIndex:0,"aria-label":e.name,onClick:r,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),r?.())}}:{"aria-hidden":!0},children:n&&n})};ie.displayName=`MediaItemWrapper`;var k={display:`block`,width:`100%`,height:`100%`},A=({item:e,children:t,effectCallback:r,onEffectEnd:i,onEffectStart:o,ref:s})=>{let[c,l]=(0,n.useState)(!1),u=(0,n.useRef)(!1),d=(t=!0)=>{!c&&!u.current&&(u.current=!0,l(!0),o&&o(),!t&&r&&r(e),u.current=!1,l(!1),i&&i())};return(0,n.useImperativeHandle)(s,()=>({triggerEffect:d,setBusy:l,busy:c}),[c]),(0,a.jsx)(`div`,{onClick:e=>{e.stopPropagation(),d(!1)},style:k,children:t})};function j(e){let t=(0,n.useRef)(null);return t.current===null&&(t.current=e()),t.current}function ae(e,t){e.indexOf(t)===-1&&e.push(t)}function oe(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M=(e,t,n)=>n>t?t:n<e?e:n;function se(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var N=()=>{},P=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(N=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(se(t,n))},P=(e,t,n)=>{if(!e)throw Error(se(t,n))});var F={},ce=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),le=e=>typeof e==`object`&&!!e,ue=e=>/^0[^.\s]+$/u.test(e);function de(e){let t;return()=>(t===void 0&&(t=e()),t)}var I=e=>e,fe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),pe=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},me=class{constructor(){this.subscriptions=[]}add(e){return ae(this.subscriptions,e),()=>oe(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},L=e=>e*1e3,R=e=>e/1e3,he=(e,t)=>t?1e3/t*e:0,ge=new Set;function _e(e,t,n){e||ge.has(t)||(console.warn(se(t,n)),ge.add(t))}var ve=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},ye=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,be=1e-7,xe=12;function Se(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ye(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>be&&++s<xe);return o}function Ce(e,t,n,r){if(e===t&&n===r)return I;let i=t=>Se(t,0,1,e,n);return e=>e===0||e===1?e:ye(i(e),t,r)}var we=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Te=e=>t=>1-e(1-t),Ee=Ce(.33,1.53,.69,.99),De=Te(Ee),Oe=we(De),ke=e=>e>=1?1:(e*=2)<1?.5*De(e):.5*(2-2**(-10*(e-1))),Ae=e=>1-Math.sin(Math.acos(e)),je=Te(Ae),Me=we(Ae),Ne=Ce(.42,0,1,1),Pe=Ce(0,0,.58,1),Fe=Ce(.42,0,.58,1),Ie=e=>Array.isArray(e)&&typeof e[0]!=`number`;function Le(e,t){return Ie(e)?e[ve(0,e.length,t)]:e}var Re=e=>Array.isArray(e)&&typeof e[0]==`number`,ze={linear:I,easeIn:Ne,easeInOut:Fe,easeOut:Pe,circIn:Ae,circInOut:Me,circOut:je,backIn:De,backInOut:Oe,backOut:Ee,anticipate:ke},Be=e=>typeof e==`string`,Ve=e=>{if(Re(e)){P(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Ce(t,n,r,i)}return Be(e)?(P(ze[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),ze[e]):e},He=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Ue={value:null,addProjectionMetrics:null};function We(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Ue.value&&Ue.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Ge=40;function Ke(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=He.reduce((e,n)=>(e[n]=We(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=F.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ge),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))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:He.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<He.length;t++)o[He[t]].cancel(e)},state:i,steps:o}}var{schedule:z,cancel:qe,state:Je,steps:Ye}=Ke(typeof requestAnimationFrame<`u`?requestAnimationFrame:I,!0),Xe;function Ze(){Xe=void 0}var B={now:()=>(Xe===void 0&&B.set(Je.isProcessing||F.useManualTiming?Je.timestamp:performance.now()),Xe),set:e=>{Xe=e,queueMicrotask(Ze)}},Qe={layout:0,mainThread:0,waapi:0},$e=e=>t=>typeof t==`string`&&t.startsWith(e),et=$e(`--`),tt=$e(`var(--`),nt=e=>tt(e)?rt.test(e.split(`/*`)[0].trim()):!1,rt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function it(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var V={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},at={...V,transform:e=>M(0,1,e)},ot={...V,default:1},st=e=>Math.round(e*1e5)/1e5,ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lt(e){return e==null}var ut=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dt=(e,t)=>n=>!!(typeof n==`string`&&ut.test(n)&&n.startsWith(e)||t&&!lt(n)&&Object.prototype.hasOwnProperty.call(n,t)),ft=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ct);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},pt=e=>M(0,255,e),mt={...V,transform:e=>Math.round(pt(e))},H={test:dt(`rgb`,`red`),parse:ft(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+mt.transform(e)+`, `+mt.transform(t)+`, `+mt.transform(n)+`, `+st(at.transform(r))+`)`};function ht(e){let t=``,n=``,r=``,i=``;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),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var gt={test:dt(`#`),parse:ht,transform:H.transform},_t=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),U=_t(`deg`),W=_t(`%`),G=_t(`px`),vt=_t(`vh`),yt=_t(`vw`),bt={...W,parse:e=>W.parse(e)/100,transform:e=>W.transform(e*100)},xt={test:dt(`hsl`,`hue`),parse:ft(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+W.transform(st(t))+`, `+W.transform(st(n))+`, `+st(at.transform(r))+`)`},K={test:e=>H.test(e)||gt.test(e)||xt.test(e),parse:e=>H.test(e)?H.parse(e):xt.test(e)?xt.parse(e):gt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?H.transform(e):xt.transform(e),getAnimatableNone:e=>{let t=K.parse(e);return t.alpha=0,K.transform(t)}},St=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ct(e){return isNaN(e)&&typeof e==`string`&&(e.match(ct)?.length||0)+(e.match(St)?.length||0)>0}var wt=`number`,Tt=`color`,Et=`var`,Dt=`var(`,Ot="${}",kt=/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;function At(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(kt,e=>(K.test(e)?(r.color.push(a),i.push(Tt),n.push(K.parse(e))):e.startsWith(Dt)?(r.var.push(a),i.push(Et),n.push(e)):(r.number.push(a),i.push(wt),n.push(parseFloat(e))),++a,Ot)).split(Ot),indexes:r,types:i}}function jt(e){return At(e).values}function Mt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===wt?st(r[a]):e===Tt?K.transform(r[a]):r[a]}return i}}function Nt(e){return Mt(At(e))}var Pt=e=>typeof e==`number`?0:K.test(e)?K.getAnimatableNone(e):e,Ft=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Pt(e);function It(e){let t=At(e);return Mt(t)(t.values.map((e,n)=>Ft(e,t.split[n])))}var q={test:Ct,parse:jt,createTransformer:Nt,getAnimatableNone:It};function Lt(e,t,n){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}function Rt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Lt(s,r,e+1/3),a=Lt(s,r,e),o=Lt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function zt(e,t){return n=>n>0?t:e}var Bt=(e,t,n)=>e+(t-e)*n,Vt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ht=[gt,H,xt],Ut=e=>Ht.find(t=>t.test(e));function Wt(e){let t=Ut(e);if(N(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===xt&&(n=Rt(n)),n}var Gt=(e,t)=>{let n=Wt(e),r=Wt(t);if(!n||!r)return zt(e,t);let i={...n};return e=>(i.red=Vt(n.red,r.red,e),i.green=Vt(n.green,r.green,e),i.blue=Vt(n.blue,r.blue,e),i.alpha=Bt(n.alpha,r.alpha,e),H.transform(i))},Kt=new Set([`none`,`hidden`]);function qt(e,t){return Kt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Jt(e,t){return n=>Bt(e,t,n)}function Yt(e){return typeof e==`number`?Jt:typeof e==`string`?nt(e)?zt:K.test(e)?Gt:$t:Array.isArray(e)?Xt:typeof e==`object`?K.test(e)?Gt:Zt:zt}function Xt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Yt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Zt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Yt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Qt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var $t=(e,t)=>{let n=q.createTransformer(t),r=At(e),i=At(t);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?Kt.has(e)&&!i.values.length||Kt.has(t)&&!r.values.length?qt(e,t):fe(Xt(Qt(r,i),i.values),n):(N(!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`),zt(e,t))};function en(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Bt(e,t,n):Yt(e)(e,t)}var tn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>qe(t),now:()=>Je.isProcessing?Je.timestamp:B.now()}},nn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},rn=2e4;function an(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function on(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(an(r),rn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:R(i)}}var J={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function sn(e,t){return e*Math.sqrt(1-t*t)}var cn=12;function ln(e,t,n){let r=n;for(let n=1;n<cn;n++)r-=e(r)/t(r);return r}var un=.001;function dn({duration:e=J.duration,bounce:t=J.bounce,velocity:n=J.velocity,mass:r=J.mass}){let i,a;N(e<=L(J.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=M(J.minDamping,J.maxDamping,o),e=M(J.minDuration,J.maxDuration,R(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=sn(t,o),c=Math.exp(-i);return un-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=sn(t**2,o);return(-i(t)+un>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=ln(i,a,s);if(e=L(e),isNaN(c))return{stiffness:J.stiffness,damping:J.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var fn=[`duration`,`bounce`],pn=[`stiffness`,`damping`,`mass`];function mn(e,t){return t.some(t=>e[t]!==void 0)}function hn(e){let t={velocity:J.velocity,stiffness:J.stiffness,damping:J.damping,mass:J.mass,isResolvedFromDuration:!1,...e};if(!mn(e,pn)&&mn(e,fn)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:J.mass,stiffness:i,damping:a}}else{let n=dn({...e,velocity:0});t={...t,...n,mass:J.mass},t.isResolvedFromDuration=!0}}return t}function gn(e=J.visualDuration,t=J.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=hn({...n,velocity:-R(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=R(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?J.restSpeed.granular:J.restSpeed.default,i||=v?J.restDelta.granular:J.restDelta.default;let y,b,x,S,C,w;if(h<1)x=sn(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},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));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>L(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=L(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=L(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(an(T),rn),t=nn(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}gn.applyToOptions=e=>{let t=on(e,100,gn);return e.ease=t.ease,e.duration=L(t.duration),e.type=`keyframes`,e};var _n=5;function vn(e,t,n){let r=Math.max(t-_n,0);return he(n-e(r),t-r)}function yn({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}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=gn({keyframes:[f.value,m(f.value)],velocity:vn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function bn(e,t,n){let r=[],i=n||F.mix||en,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=fe(Array.isArray(t)?t[n]||I:t,a)),r.push(a)}return r}function xn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(P(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=bn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=pe(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M(e[0],e[a-1],t)):l}function Sn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=pe(0,t,r);e.push(Bt(n,1,i))}}function Cn(e){let t=[0];return Sn(t,e.length-1),t}function wn(e,t){return e.map(e=>e*t)}function Tn(e,t){return e.map(()=>t||Fe).splice(0,e.length-1)}function En({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ie(r)?r.map(Ve):Ve(r),a={done:!1,value:t[0]},o=xn(wn(n&&n.length===t.length?n:Cn(t),e),t,{ease:Array.isArray(i)?i:Tn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Dn=e=>e!==null;function On(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Dn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var kn={decay:yn,inertia:yn,tween:En,keyframes:En,spring:gn};function An(e){typeof e.type==`string`&&(e.type=kn[e.type])}var jn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Mn=e=>e/100,Nn=class extends jn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==B.now()&&this.tick(B.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Qe.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;An(e);let{type:t=En,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||En;process.env.NODE_ENV!==`production`&&s!==En&&P(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==En&&typeof o[0]!=`number`&&(this.mixKeyframes=fe(Mn,en(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=an(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!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=M(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==yn&&(b.value=On(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return R(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(this.currentTime)}set time(e){e=L(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return vn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(B.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=R(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=tn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();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()}pause(){this.state=`paused`,this.updateTime(B.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Qe.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Pn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Y=e=>e*180/Math.PI,Fn=e=>Ln(Y(Math.atan2(e[1],e[0]))),In={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fn,rotateZ:Fn,skewX:e=>Y(Math.atan(e[1])),skewY:e=>Y(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ln=e=>(e%=360,e<0&&(e+=360),e),Rn=Fn,zn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Vn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zn,scaleY:Bn,scale:e=>(zn(e)+Bn(e))/2,rotateX:e=>Ln(Y(Math.atan2(e[6],e[5]))),rotateY:e=>Ln(Y(Math.atan2(-e[2],e[0]))),rotateZ:Rn,rotate:Rn,skewX:e=>Y(Math.atan(e[4])),skewY:e=>Y(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hn(e){return+!!e.includes(`scale`)}function Un(e,t){if(!e||e===`none`)return Hn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Vn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=In,i=t}if(!i)return Hn(t);let a=r[t],o=i[1].split(`,`).map(Gn);return typeof a==`function`?a(o):o[a]}var Wn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Un(n,t)};function Gn(e){return parseFloat(e.trim())}var Kn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],X=new Set([...Kn,`pathRotation`]),qn=e=>e===V||e===G,Jn=new Set([`x`,`y`,`z`]),Yn=Kn.filter(e=>!Jn.has(e));function Xn(e){let t=[];return Yn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Z={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Un(t,`x`),y:(e,{transform:t})=>Un(t,`y`)};Z.translateX=Z.x,Z.translateY=Z.y;var Q=new Set,Zn=!1,Qn=!1,$n=!1;function er(){if(Qn){let e=Array.from(Q).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Xn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Qn=!1,Zn=!1,Q.forEach(e=>e.complete($n)),Q.clear()}function tr(){Q.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Qn=!0)})}function nr(){$n=!0,tr(),er(),$n=!1}var rr=class{constructor(e,t,n,r,i,a=!1){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}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Q.add(this),Zn||(Zn=!0,z.read(tr),z.resolveKeyframes(er))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Pn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Q.delete(this)}cancel(){this.state===`scheduled`&&(Q.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ir=e=>e.startsWith(`--`);function ar(e,t,n){ir(t)?e.style.setProperty(t,n):e.style[t]=n}var or={};function sr(e,t){let n=de(e);return()=>or[t]??n()}var cr=sr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),lr=sr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ur=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,dr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ur([0,.65,.55,1]),circOut:ur([.55,0,1,.45]),backIn:ur([.31,.01,.66,-.59]),backOut:ur([.33,1.53,.69,.99])};function fr(e,t){if(e)return typeof e==`function`?lr()?nn(e,t):`ease-out`:Re(e)?ur(e):Array.isArray(e)?e.map(e=>fr(e,t)||dr.easeOut):dr[e]}function pr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=fr(s,i);Array.isArray(d)&&(u.easing=d),Ue.value&&Qe.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Ue.value&&p.finished.finally(()=>{Qe.waapi--}),p}function mr(e){return typeof e==`function`&&`applyToOptions`in e}function hr({type:e,...t}){return mr(e)&&lr()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var gr=class extends jn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,P(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=hr(e);this.animation=pr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=On(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ar(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return R(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=L(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&cr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),I):r(this)}},_r={anticipate:ke,backInOut:Oe,circInOut:Me};function vr(e){return e in _r}function yr(e){typeof e.ease==`string`&&vr(e.ease)&&(e.ease=_r[e.ease])}var br=10,xr=class extends gr{constructor(e){yr(e),An(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Nn({...a,autoplay:!1}),s=Math.max(br,B.now()-this.startTime),c=M(0,br,s-br),l=o.sample(s).value,{name:u}=this.options;i&&u&&ar(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Sr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(q.test(e)||e===`0`)&&!e.startsWith(`url(`));function Cr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function wr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Sr(i,t),s=Sr(a,t);return N(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:Cr(e)||(n===`spring`||mr(n))&&r}function Tr(e){e.duration=0,e.type=`keyframes`}var Er=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Dr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Or(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Dr.test(e[t]))return!0;return!1}var kr=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ar=de(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function jr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Ar()&&n&&(Er.has(n)||kr.has(n)&&Or(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Mr=40,Nr=class extends jn{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}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=B.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||rr;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=B.now();let u=!0;wr(e,i,a,o)||(u=!1,(F.instantAnimations||!s)&&l?.(On(e,n,t)),e[0]=e[e.length-1],Tr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Mr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&jr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new xr({...d,element:p})}catch{m=new Nn(d)}else m=new Nn(d);m.finished.then(()=>{this.notifyFinished()}).catch(I),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),nr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Pr=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Fr(this.animations,`duration`)}get iterationDuration(){return Fr(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Fr(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Ir=class extends Pr{then(e,t){return this.finished.finally(e).then(()=>{})}},Lr=30,Rr=e=>!isNaN(parseFloat(e)),zr={current:void 0},Br=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=B.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=B.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Rr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&_e(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new me);let n=this.events[e].add(t);return e===`change`?()=>{n(),z.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return zr.current&&zr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=B.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Lr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Lr);return he(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Vr(e,t){return new Br(e,t)}function Hr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ur(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Hr(n,e)}var Wr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Gr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Kr={type:`keyframes`,duration:.8},qr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Jr=(e,{keyframes:t})=>t.length>2?Kr:X.has(e)?e.startsWith(`scale`)?Gr(t[1]):Wr:qr,Yr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Xr(e){for(let t in e)if(!Yr.has(t))return!0;return!1}var Zr=(e,t,n,r={},i,a)=>o=>{let s=Ur(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=L(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Xr(s)||Object.assign(u,Jr(e,u)),u.duration&&=L(u.duration),u.repeatDelay&&=L(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Tr(u),u.delay===0&&(d=!0)),(F.instantAnimations||F.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Tr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=On(u.keyframes,s);if(e!==void 0){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Nn(u):new Nr(u)},Qr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $r(e){let t=Qr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var ei=4;function ti(e,t,n=1){P(n<=ei,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=$r(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ce(e)?parseFloat(e):e}return nt(i)?ti(i,t,n+1):i}function ni(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ri(e,t,n,r){if(typeof t==`function`){let[i,a]=ni(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ni(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ii(e,t,n){let r=e.getProps();return ri(r,t,n===void 0?r.custom:n,e)}var ai=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Kn]),oi=e=>Array.isArray(e);function si(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vr(n))}function ci(e){return oi(e)?e[e.length-1]||0:e}function li(e,t){let{transitionEnd:n={},transition:r={},...i}=ii(e,t)||{};i={...i,...n};for(let t in i)si(e,t,ci(i[t]))}var $=e=>!!(e&&e.getVelocity);function ui(e){return!!($(e)&&e.add)}function di(e,t){let n=e.getValue(`willChange`);if(ui(n))return n.add(t);if(!n&&F.WillChange){let n=new F.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function fi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var pi=`data-`+fi(`framerAppearId`);function mi(e){return e.props[pi]}function hi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function gi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Hr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&hi(f,t))continue;let o={delay:n,...Ur(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){z.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=mi(e);if(n){let e=window.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}di(e,t);let m=l??e.shouldReduceMotion;r.start(Zr(t,r,i,m&&ai.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>z.update(()=>{o&&li(e,o)});d.length?Promise.all(d).then(t):t()}return d}var _i={test:e=>e===`auto`,parse:e=>e},vi=e=>t=>t.test(e),yi=[V,G,W,U,yt,vt,_i],bi=e=>yi.find(vi(e));function xi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ue(e)}var Si=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ci(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ct)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Si.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var wi=/\b([a-z-]*)\(.*?\)/gu,Ti={...q,getAnimatableNone:e=>{let t=e.match(wi);return t?t.map(Ci).join(` `):e}},Ei={...q,getAnimatableNone:e=>{let t=q.parse(e);return q.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Di={...V,transform:Math.round},Oi={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,rotate:U,pathRotation:U,rotateX:U,rotateY:U,rotateZ:U,scale:ot,scaleX:ot,scaleY:ot,scaleZ:ot,skew:U,skewX:U,skewY:U,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:at,originX:bt,originY:bt,originZ:G,zIndex:Di,fillOpacity:at,strokeOpacity:at,numOctaves:Di},ki={...Oi,color:K,backgroundColor:K,outlineColor:K,fill:K,stroke:K,borderColor:K,borderTopColor:K,borderRightColor:K,borderBottomColor:K,borderLeftColor:K,filter:Ti,WebkitFilter:Ti,mask:Ei,WebkitMask:Ei},Ai=e=>ki[e],ji=new Set([Ti,Ei]);function Mi(e,t){let n=Ai(e);return ji.has(n)||(n=q),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ni=new Set([`auto`,`none`,`0`]);function Pi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ni.has(t)&&At(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Mi(n,i)}var Fi=class extends rr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),nt(r))){let i=ti(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ai.has(n)||e.length!==2)return;let[r,i]=e,a=bi(r),o=bi(i);if(it(r)!==it(i)&&Z[n])this.needsMeasurement=!0;else if(a!==o){if(qn(a)&&qn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Z[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||xi(e[t]))&&n.push(t);n.length&&Pi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Z[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Z[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ii(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Li=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:Ri,cancel:zi}=Ke(queueMicrotask,!1);function Bi(e){return le(e)&&`ownerSVGElement`in e}function Vi(e){return Bi(e)&&e.tagName===`svg`}var Hi=[...yi,K,q],Ui=e=>Hi.find(vi(e)),Wi=()=>({min:0,max:0}),Gi=()=>({x:Wi(),y:Wi()}),Ki=new WeakMap;function qi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ji(e){return typeof e==`string`||Array.isArray(e)}var Yi=[`initial`,`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`];function Xi(e){return qi(e.animate)||Yi.some(t=>Ji(e[t]))}function Zi(e){return!!(Xi(e)||e.variants)}function Qi(e,t,n){for(let r in t){let i=t[r],a=n[r];if($(i))e.addValue(r,i);else if($(a))e.addValue(r,Vr(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Vr(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var $i={current:null},ea={current:!1},ta=typeof window<`u`;function na(){if(ea.current=!0,ta){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>$i.current=e.matches;e.addEventListener(`change`,t),t()}else $i.current=!1}}var ra=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ia={},aa=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=rr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=B.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,z.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;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=Xi(t),this.isVariantNode=Zi(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&$(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ki.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:(ea.current||na(),this.shouldReduceMotion=$i.current),process.env.NODE_ENV!==`production`&&_e(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}unmount(){this.projection&&this.projection.unmount(),qe(this.notifyUpdate),qe(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Er.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new gr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:L(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=X.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ia){let t=ia[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ra.length;t++){let n=ra[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Qi(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Vr(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ce(n)||ue(n))?n=parseFloat(n):!Ui(n)&&q.test(t)&&(n=Mi(e,t)),this.setBaseTarget(e,$(n)?n.get():n)),$(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=ri(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!$(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new me),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ri.render(this.render)}},oa=class extends aa{constructor(){super(...arguments),this.KeyframeResolver=Fi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;$(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function sa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ca(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function la(e,t){return sa(ca(e.getBoundingClientRect(),t))}var ua={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},da=Kn.length;function fa(e,t,n){let r=``,i=!0;for(let a=0;a<da;a++){let o=Kn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Li(s,Oi[o]);if(!c){i=!1;let t=ua[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Li(a,Oi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function pa(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(X.has(e))o=!0;else if(et(e))i[e]=n;else{let t=Li(n,Oi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=fa(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ma(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ha(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ga={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(G.test(e))e=parseFloat(e);else return e}return`${ha(e,t.target.x)}% ${ha(e,t.target.y)}%`}},_a={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=q.parse(e);if(i.length>5)return r;let a=q.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Bt(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},va={borderRadius:{...ga,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ga,borderTopRightRadius:ga,borderBottomLeftRadius:ga,borderBottomRightRadius:ga,boxShadow:_a};function ya(e,{layout:t,layoutId:n}){return X.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!va[e]||e===`opacity`)}function ba(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)($(r[t])||i&&$(i[t])||ya(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function xa(e){return window.getComputedStyle(e)}var Sa=class extends oa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ma}readValueFromInstance(e,t){if(X.has(t))return this.projection?.isProjecting?Hn(t):Wn(e,t);{let n=xa(e),r=(et(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return la(e,t)}build(e,t,n){pa(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ba(e,t,n)}};function Ca(e,t){return e in t}var wa=class extends aa{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Ca(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Gi()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Ta={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ea={offset:`strokeDashoffset`,array:`strokeDasharray`};function Da(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ta:Ea;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Oa=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ka(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(pa(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;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);for(let e of Oa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Da(d,i,a,o,!1)}var Aa=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ja=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ma(e,t,n,r){ma(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Aa.has(n)?n:fi(n),t.attrs[n])}function Na(e,t,n){let r=ba(e,t,n);for(let n in e)if($(e[n])||$(t[n])){let t=Kn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Pa=class extends oa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Gi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(X.has(t)){let e=Ai(t);return e&&e.default||0}return t=Aa.has(t)?t:fi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Na(e,t,n)}build(e,t,n){ka(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ma(e,t,n,r)}mount(e){this.isSVGTag=ja(e.tagName),super.mount(e)}};function Fa(e,t,n){let r=$(e)?e:Vr(e);return r.start(Zr(``,r,t,n)),r.animation}var Ia=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function La(e){return(0,n.useEffect)(()=>()=>e(),[])}function Ra(){!ea.current&&na();let[e]=(0,n.useState)($i.current);return process.env.NODE_ENV!==`production`&&_e(e!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),e}function za(){let e=Ra(),{reducedMotion:t}=(0,n.useContext)(Ia);return t===`never`?!1:t===`always`||e}function Ba(e){return typeof e==`object`&&!Array.isArray(e)}function Va(e,t,n,r){return e==null?[]:typeof e==`string`&&Ba(t)?Ii(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ha(e,t,n){return e*(t+1)+n*t}function Ua(e,t,n,r){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}function Wa(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(oe(e,i),r--)}}function Ga(e,t,n,r,i,a){Wa(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Bt(i,a,r[o]),easing:Le(n,o)})}function Ka(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function qa(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Ja=`easeInOut`,Ya=20;function Xa(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Ua(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Ua(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=$a(e),{delay:l=0,times:u=Cn(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=mr(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&no(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=L(b));let r=on(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Sn(u,T),c.length===1&&c.unshift(null),m&&N(m<Ya,`Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${Ya} or apply repeat at the sequence level instead.`),m&&m<Ya){let e=b>0?_/b:0;b=Ha(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Te(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:Le(f,e-1))}Ka(u,m,e)}let ee=w+b;Ga(r,c,y,u,w,ee),g=Math.max(x+b,g),f=Math.max(ee,f)};if($(p)){let e=Za(p,s);_(m,h,Qa(`default`,e))}else{let e=Va(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Za(r,s);for(let e in m)_(m[e],eo(h,e),Qa(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(qa);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(pe(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Ja)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function Za(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Qa(e,t){return t[e]||(t[e]=[]),t[e]}function $a(e){return Array.isArray(e)?e:[e]}function eo(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var to=e=>typeof e==`number`,no=e=>e.every(to);function ro(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Bi(e)&&!Vi(e)?new Pa(t):new Sa(t);n.mount(e),Ki.set(e,n)}function io(e){let t=new wa({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Ki.set(e,t)}function ao(e,t){return $(e)||typeof e==`number`||typeof e==`string`&&!Ba(t)}function oo(e,t,n,r){let i=[];if(ao(e,t))i.push(Fa(e,Ba(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Va(e,t,r),o=a.length;P(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?ro:io;Ki.has(r)||s(r);let c=Ki.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...gi(c,{...t,transition:l},{}))}}return i}function so(e,t,n){let r=[];return Xa(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Vr(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:gn}).forEach(({keyframes:e,transition:t},n)=>{r.push(...oo(n,e,t))}),r}function co(e){return Array.isArray(e)&&e.some(Array.isArray)}function lo(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),co(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=so(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=oo(e,i,{...c,...r},t)}let l=new Ir(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{oe(t.animations,l)})),l}return i}lo();function uo(){let e=j(()=>({current:null,animations:[]})),t=za()??void 0,{skipAnimations:r}=(0,n.useContext)(Ia),i=(0,n.useMemo)(()=>lo({scope:e,reduceMotion:t,skipAnimations:r}),[e,t,r]);return La(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,i]}var fo={display:`block`,width:`100%`,height:`100%`},po=({item:e,children:t,effectCallback:r,onEffectStart:i,ref:o})=>{let[s,c]=uo(),[l,u]=(0,n.useState)(!1),d=(0,n.useRef)(!1),f=(t=!0)=>{if(!t&&r&&r(e),!l&&!d.current){if(!s.current)return;d.current=!0,u(!0),i&&i(),c(s.current,{y:[0,-55,0],scaleX:[1,1.15,.9,1]},{duration:.8,repeat:1,repeatType:`loop`}).then(()=>{u(!1),d.current=!1}).catch(()=>{u(!1),d.current=!1})}};return(0,n.useImperativeHandle)(o,()=>({triggerEffect:f,setBusy:u,busy:l}),[l]),(0,a.jsx)(`div`,{ref:s,onClick:e=>{e.stopPropagation(),f(!1)},style:fo,children:t})},mo=({children:e,position:t={from:0,to:0},screenScale:r,settings:i,onEffectEnd:o,onEffectStart:s,ref:c})=>{let[l,u]=uo(),d=(0,n.useRef)(!1),f=()=>{if(!l.current)return;s&&s();let e=d.current?0:(t.to-t.from)*r/100;d.current=!d.current,u(l.current,{x:e},{duration:i.duration||2,delay:.1}).then(()=>{o&&o()}).catch(()=>{d.current=!d.current})};return(0,n.useImperativeHandle)(c,()=>({triggerEffect:f})),(0,a.jsx)(`div`,{ref:l,onClick:e=>{e.stopPropagation(),f()},children:e})},ho={display:`block`,width:`100%`,height:`100%`},go=({item:e,children:t,effectCallback:r,onEffectEnd:i,onEffectStart:o,ref:s})=>{let[c,l]=uo(),[u,d]=(0,n.useState)(!1),f=(0,n.useRef)(!1),p=(t=!0)=>{if(!t&&r&&r(e),!u&&!f.current){if(!c.current)return;f.current=!0,d(!0),o&&o(),l(c.current,{boxShadow:[`0px 0px 20px 10px rgba(209, 174, 34, 0)`,`0px 0px 20px 10px rgba(209, 174, 34, 0.8)`,`0px 0px 20px 10px rgba(209, 174, 34, 0)`],scale:[1,1.1,.9,1]},{duration:1}).then(()=>{d(!1),f.current=!1,i&&i()}).catch(()=>{d(!1),f.current=!1})}};return(0,n.useImperativeHandle)(s,()=>({triggerEffect:p,setBusy:d,busy:u}),[u]),(0,a.jsx)(`div`,{ref:c,onClick:e=>{e.stopPropagation(),p(!1)},style:{...ho,borderRadius:`100%`},children:t})},_o={display:`block`,width:`100%`,height:`100%`},vo=({item:e,screenScale:t,children:r,effectCallback:i,onEffectEnd:o,onEffectStart:s,ref:c})=>{let l=e.scaleSize/100*(t-10)/100,[u,d]=uo(),[f,p]=(0,n.useState)(!1),m=(0,n.useRef)(!1),h=(t=!0)=>{if(!t&&i&&i(e),!f&&!m.current){if(!u.current)return;m.current=!0,s&&s(),d(u.current,{rotate:[0,-1*l,1*l,0],x:[0,-2*l,-4*l,0],y:[0,-8*l,-4*l,0]},{repeat:4,duration:.15}).then(()=>{p(!1),m.current=!1,o&&o()}).catch(()=>{p(!1),m.current=!1})}};return(0,n.useImperativeHandle)(c,()=>({triggerEffect:h,setBusy:p,busy:f}),[f]),(0,a.jsx)(`div`,{ref:u,onClick:e=>{e.stopPropagation(),h(!1)},style:_o,children:r})},yo={display:`block`,width:`100%`,height:`100%`},bo=({item:e,children:t,effectCallback:r,onEffectEnd:i,onEffectStart:o,ref:s})=>{let c=e.scaleSize/100,[l,u]=uo(),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)(!1),m=(t=!0)=>{if(!t&&r&&r(e),!d&&!p.current){if(!l.current)return;p.current=!0,f(!0),o&&o(),u(l.current,{y:[0,-10*c,-30*c,-34*c,0],scaleY:[1,1.1,1.2,1.1,1]},{delay:.1,repeatType:`reverse`,duration:.5*c}).then(()=>{f(!1),p.current=!1,i&&i()}).catch(()=>{f(!1),p.current=!1})}};return(0,n.useImperativeHandle)(s,()=>({triggerEffect:m,setBusy:f,busy:d}),[d]),(0,a.jsx)(`div`,{ref:l,onClick:e=>{e.stopPropagation(),m(!1)},style:yo,children:t})},xo=n.default.lazy(()=>Promise.resolve().then(()=>require("./dolottie-FZVaMI-M.cjs"))),So=n.default.lazy(()=>Promise.resolve().then(()=>require("./Image-BolaFg4H.cjs"))),Co=({item:e,screenScale:t,onMediaClick:r,ref:i})=>{let{effect:o,mediaType:s}=e,[c,l]=(0,n.useState)(!1),[u,d]=(0,n.useState)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(!1),m=(0,n.useCallback)(e=>{f.current=e,d(e)},[]),h=(0,n.useCallback)(()=>{let e=f.current;e?c||(l(!0),e.setFrame(0),e.play()):p.current=!0},[c]);(0,n.useEffect)(()=>{if(!u||!p.current)return;let e=()=>{p.current=!1,l(!0),u.setFrame(0),u.play()};if(u.isLoaded)e();else return u.addEventListener(`load`,e),()=>u.removeEventListener(`load`,e)},[u]);let g=(0,n.useCallback)(()=>{let e=f.current;e&&c&&e.stop(),l(!1)},[c]);(0,n.useEffect)(()=>{let e=()=>{o&&o.type||l(!1)};return u&&u.addEventListener(`complete`,e),()=>{u&&u.removeEventListener(`complete`,e)}},[u,o]);let _=()=>s===`lottie`?(0,a.jsx)(xo,{item:e,play:c,setDotLottie:m}):(0,a.jsx)(So,{mediaItem:e});return o?.type?o.type===`highlight`?(0,a.jsx)(go,{item:e,ref:i,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`shake`?(0,a.jsx)(vo,{item:e,ref:i,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`bounce`?(0,a.jsx)(po,{item:e,ref:i,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`jump`?(0,a.jsx)(bo,{item:e,ref:i,onEffectEnd:g,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`move`?(0,a.jsx)(mo,{onEffectEnd:g,onEffectStart:h,ref:i,screenScale:t,position:{from:e.position.left,to:o.settings.to},settings:o.settings,children:_()}):null:(0,a.jsx)(A,{onEffectEnd:g,onEffectStart:h,item:e,ref:i,screenScale:t,effectCallback:r,children:_()})};Co.displayName=`Animation`;var wo=n.default.memo(Co),To=n.default.memo(({path:e,mediaType:n})=>n&&n===`static`?(0,a.jsx)(`span`,{className:`inline-flex`,children:(0,a.jsx)(t.t,{src:e,eager:!0,className:`max-w-full max-h-full w-full h-full -z-10`})}):null);To.displayName=`LazySvg`;var Eo=n.default.memo(To),Do={left:0,top:480},Oo=`clamp(18px, 3.8vmin, 34px)`,ko=2,Ao=({page:t,screenScale:i,isActive:o,isPrev:s=!1,isNext:c=!1,distanceFromActive:l,textDirection:u=`LTR`})=>{let d=(0,r.useSwiper)(),f=e.a(),{bookId:p,slug:m,analytics:h}=f,g=o||s||c||l!==void 0&&l<=ko,_=(0,n.useRef)(!1);g&&(_.current=!0);let v=g||_.current,{audio:y,words:b,background:x,media:S=[],layoutStyle:C=ne.BOTTOM,textPosition:w,textStyle:T}=t,ee=C===ne.BOTTOM?`layout-btm-aligned`:``,[D,O]=(0,n.useState)([]),k=(0,n.useRef)([]),A=(0,n.useRef)(null),[j,ae]=(0,n.useState)(null),oe=(0,n.useRef)(null),M=(0,n.useRef)(!0),se=navigator?.userActivation.hasBeenActive,N=d.activeIndex>(d.previousIndex??-1),P=(0,n.useMemo)(()=>y?.pageAudio?.segments?y.pageAudio.segments:b&&b.length>0?b:[],[y,b]);(0,n.useEffect)(()=>{let e=null;return o&&j===null&&se&&N&&(e=setTimeout(()=>{le()},750)),!o&&j===!0&&(h?.onAudioPaused?.(p,t._id),A.current?.onAbortAudio()),()=>{e&&clearTimeout(e)}},[o,j,se,N]),(0,n.useEffect)(()=>(M.current=!0,()=>{M.current=!1}),[]),(0,n.useEffect)(()=>{oe.current===!0&&j===!1&&o&&h?.onAudioCompleted?.(p,t._id,y?.pageAudio?.mp3??t._id),oe.current=j},[j]);let F=(0,n.useCallback)(async n=>{h?.onWordTapped?.(p,t._id,n.word),k.current.forEach(e=>{e.mediaItem.effect?.timing?.forEach(t=>{n.word===t.word&&e.element?.triggerEffect()})});let r=P.findIndex(e=>e.word===n.word&&e.start===n.start);if(r>-1){let t=P[r];O([r]),await e.t((t.end-t.start)*1e3+500),M.current&&O([])}},[h,p,t._id,P]),ce=(0,n.useCallback)(e=>{if(!e)return;h?.onAnimationTriggered?.(p,t._id,e._id,e.effect?.type);let{effect:n}=e,r=[],i=[];n?.timing?.forEach(e=>{let t=P.findIndex(t=>t.word===e.word&&t.start===e.start);t>-1&&(r.push(t),i.push({...e,index:t}),F(e))})},[h,p,t._id,P,F]),le=(0,n.useCallback)(async()=>{A.current?.isPlaying||(k.current.forEach(e=>{e.mediaItem?.effect?.timing?.forEach(t=>{setTimeout(()=>{e.element?.triggerEffect()},t.start*1e3)})}),A.current?.onPlay(),h?.onAudioPlayed?.(p,t._id,y?.pageAudio?.mp3??t._id))},[h,p,t._id,y]),ue=w??Do,de=ue.left*i/100,I=ue.top*i/100,fe=1200*i/100,pe=P.length>0?C===ne.DYNAMIC?(0,a.jsx)(`div`,{className:`page-text-overlay`,dir:u.toLowerCase(),style:{left:0,top:0,transform:`translate(${de}px, ${I}px)`,width:T?.textWidth?`${T.textWidth*i/100}px`:`fit-content`,maxWidth:`${fe}px`},children:(0,a.jsx)(`div`,{style:{display:`inline-block`,width:T?.textWidth?`100%`:void 0,padding:`6px 8px`,fontSize:T?.fontSize??Oo,lineHeight:1.2,backgroundColor:T?.background??`transparent`,color:T?.color??`inherit`,whiteSpace:T?.textWidth?`normal`:`nowrap`,wordBreak:T?.textWidth?`break-word`:void 0,boxSizing:`border-box`},children:(0,a.jsx)(E,{onWordSelect:F,segments:P,pageAudio:y?.pageAudio?.path?y.pageAudio:null,ref:A,setIsPlaying:ae,highlightIds:D,textDirection:u})})}):(0,a.jsx)(`div`,{className:`pagetext-wrapper`,children:(0,a.jsx)(`div`,{className:`textwrapper-inner`,children:(0,a.jsx)(`div`,{className:`textcontainer`,dir:u.toLowerCase(),children:(0,a.jsx)(E,{onWordSelect:F,segments:P,pageAudio:y?.pageAudio?.path?y.pageAudio:null,ref:A,setIsPlaying:ae,highlightIds:D,textDirection:u})})})}):null;return(0,a.jsxs)(`div`,{className:`pageContentWrapper ${ee}`,dir:u.toLowerCase(),inert:!o||void 0,tabIndex:o?void 0:-1,"aria-hidden":!o||void 0,children:[x&&(0,a.jsx)(re,{background:x,eager:v}),y&&o?(0,a.jsx)(`button`,{disabled:j===!0,onClick:le,"aria-label":j?`Audio is playing`:`Play audio`,className:`ui btn audioplay ${j?`playing`:``}`,children:(0,a.jsx)(te,{size:`50%`,className:`${j?`playing`:``}`})}):null,v&&S&&S.map((t,n)=>t.effect?(0,a.jsx)(ie,{item:t,screenScale:i,children:(0,a.jsx)(wo,{screenScale:i,item:t,onMediaClick:ce,ref:e=>{k.current[n]={element:e,mediaItem:t}}})},t.id):(0,a.jsxs)(ie,{item:t,screenScale:i,children:[t.mediaType===`lottie`&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(wo,{item:t,screenScale:i,onMediaClick:ce,ref:e=>{k.current[n]={element:e,mediaItem:t}}})}),t.mediaType!==`lottie`&&(0,a.jsx)(Eo,{path:e.n(f,t),mediaType:t.mediaType})]},t.id)),pe]})},jo=1280,Mo=600,No=jo/Mo,Po=({id:t,analytics:u,fonts:d=[],bookSource:f={type:`static`,staticFolder:`GDLBookContent`},lottieWasmUrl:p})=>{let[m,h]=(0,n.useState)(null),[g,_]=(0,n.useState)(null),[v,y]=(0,n.useState)(null),[b,x]=(0,n.useState)(null),S=c([...m?.fonts??[],...d],m?.language,m?.script),C=l(S),w=S[0]?.family||`Quicksand`,T=m?.illustration&&m.illustration.path||m?.coverText&&m.coverText!==``,te=m?.credits&&m.credits?.text||m?.credits?.logos&&m.credits?.logos.length>0,[ne,re]=(0,n.useState)({width:0,height:0}),{width:E,height:D}=ne,O=m?.config.textDirection||`LTR`;(0,n.useEffect)(()=>{let e=()=>{re({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]);let ie=100,k={width:jo,height:Mo};return(E<jo||D<Mo)&&(Mo/D>jo/E?(k={height:D,width:D*No},ie=D/Mo*100):(k={width:E,height:E/No},ie=E/jo*100)),(0,n.useEffect)(()=>{!m&&t&&(async e=>{let t=f.type===`api`?`${f.apiHost}/api/book?slug=${e}`:`/${f.staticFolder}/${e}/content.json`;try{let n=await fetch(t,{cache:`no-store`});if(!n.ok)throw Error(`Error fetching data for (${e}): ${n.status}`);let r=await n.json();h(r),_(null),navigator.onLine&&u?.onBookOpened&&u.onBookOpened(r._id,r.title)}catch(t){console.error(t),h(null),_(`Error fetching data for (${e}): ${t instanceof Error?t.message:`Unknown error`}`)}})(t)},[t]),g?(0,a.jsxs)(`p`,{role:`alert`,className:`player`,children:[`Error: `,g]}):!m||!t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`style`,{children:o}),(0,a.jsx)(`div`,{role:`status`,"aria-label":`Loading`,className:`player centered`,children:(0,a.jsx)(`span`,{className:`loader`})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`style`,{children:`:root, :host, .player { --player-font-family: '${s(w)}'; }${C}${o}`}),(0,a.jsx)(e.i,{bookId:m._id,slug:m.slug,assetConfig:f,analytics:u,lottieWasmUrl:p,children:(0,a.jsx)(`div`,{className:`player`,children:(0,a.jsx)(`div`,{className:`view-box`,children:(0,a.jsxs)(r.Swiper,{onSlideChange:e=>{y(e.activeIndex),m&&(u?.onPageTurned&&u.onPageTurned(m._id,e.activeIndex),e.isEnd&&u?.onBookCompleted&&u.onBookCompleted(m._id,m.title))},className:`mySwiper swiper-container`,speed:1200,dir:O.toLowerCase()??`ltr`,modules:[i.Pagination],pagination:{clickable:!1,type:`progressbar`},onSwiper:e=>{x(e)},style:{...k},a11y:{enabled:!0,prevSlideMessage:`Previous page`,nextSlideMessage:`Next page`},children:[T&&(0,a.jsx)(r.SwiperSlide,{"data-hash":`cover`,children:({isActive:t})=>(0,a.jsxs)(`div`,{className:`cover-page`,inert:!t||void 0,children:[(0,a.jsx)(`div`,{className:`cover-illustration`,children:m.illustration?.path&&(0,a.jsx)(`img`,{src:e.n({bookId:m._id,slug:m.slug,assetConfig:f},m.illustration),alt:m.title})}),(0,a.jsxs)(`div`,{className:`cover-text`,dir:O.toLowerCase()||`ltr`,children:[(0,a.jsx)(`h1`,{children:m.title}),m.coverText&&(0,a.jsx)(`small`,{children:m.coverText})]})]})}),m.body.map((e,t)=>{let n=t+ +!!T,i=Math.abs(n-(v??0));return(0,a.jsx)(r.SwiperSlide,{className:`overflow-hidden`,"data-hash":e._id,children:({isActive:t,isPrev:n,isNext:r})=>(0,a.jsx)(Ao,{screenScale:ie,page:e,isActive:t,isPrev:n,isNext:r,distanceFromActive:i,textDirection:O})},e._id)}),te&&(0,a.jsx)(r.SwiperSlide,{"data-hash":`credits`,children:({isActive:e})=>(0,a.jsxs)(`div`,{className:`credits-page`,inert:!e||void 0,children:[(0,a.jsx)(`div`,{className:`credits-page-inner`,children:m.credits?.logos.map(e=>(0,a.jsx)(`div`,{className:`logo-item`,children:(0,a.jsx)(`img`,{src:f.type===`api`?`${f.assetsHost}/logos/${e}.jpg`:`/${f.staticFolder}/${m.slug}/assets/${e}.jpg`,alt:e})},e))}),(0,a.jsxs)(`div`,{className:`credits-page-bottom`,dir:O.toLowerCase()||`ltr`,children:[(0,a.jsxs)(`h1`,{children:[`"`,m.title,`" credits`]}),m.credits?.text&&(0,a.jsx)(`small`,{children:m.credits.text})]})]})}),b&&b.slides.length>1&&(0,a.jsx)(ee,{isFirst:b.isBeginning===!0,isLast:b.isEnd===!0,activeIndex:v,textDirection:O})]})})})})]})},Fo=`1.5.2`;function Io(){return`1.5.2`}exports.PLAYER_VERSION=Fo,exports.Player=Po,exports.getPlayerVersion=Io;
3
+ `?(0,a.jsx)(`br`,{}):(0,a.jsx)(`span`,{className:`word`,children:n.word}),r<t.length-1&&(0,a.jsx)(a.Fragment,{children:` `}),n.mp3&&(0,a.jsx)(`audio`,{preload:`none`,ref:e=>{p.current[r]=e},children:(0,a.jsx)(`source`,{src:`${e.r(m,n)}`,type:`audio/mpeg`})})]},n.uid))})})}),D=e=>e/600*100,ie=e=>e/1280*100,O=({item:e,screenScale:t,children:n,onActivate:r})=>{let{position:i,scaleSize:o}=e,{top:s,left:c}=i,l=!!e.effect?.type||e.mediaType===`lottie`;return(0,a.jsx)(`div`,{className:`absolute ${e.mirror?`mirror-item`:``}`,style:{zIndex:e.zIndex||10,width:`${e.width*o/100*t/100}px`,height:e.height===0?`auto`:`${e.height*o/100*t/100}px`,top:`${D(s)}%`,left:`${ie(c)}%`},...l?{role:`button`,tabIndex:0,"aria-label":e.name,onClick:r,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),r?.())}}:{"aria-hidden":!0},children:n&&n})};O.displayName=`MediaItemWrapper`;var k={display:`block`,width:`100%`,height:`100%`},A=({item:e,children:t,effectCallback:r,onEffectEnd:i,onEffectStart:o,ref:s})=>{let[c,l]=(0,n.useState)(!1),u=(0,n.useRef)(!1),d=(t=!0)=>{!c&&!u.current&&(u.current=!0,l(!0),o&&o(),!t&&r&&r(e),u.current=!1,l(!1),i&&i())};return(0,n.useImperativeHandle)(s,()=>({triggerEffect:d,setBusy:l,busy:c}),[c]),(0,a.jsx)(`div`,{onClick:e=>{e.stopPropagation(),d(!1)},style:k,children:t})};function j(e){let t=(0,n.useRef)(null);return t.current===null&&(t.current=e()),t.current}function ae(e,t){e.indexOf(t)===-1&&e.push(t)}function oe(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M=(e,t,n)=>n>t?t:n<e?e:n;function se(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var N=()=>{},P=()=>{};typeof process<`u`&&process.env.NODE_ENV!==`production`&&(N=(e,t,n)=>{!e&&typeof console<`u`&&console.warn(se(t,n))},P=(e,t,n)=>{if(!e)throw Error(se(t,n))});var F={},ce=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),le=e=>typeof e==`object`&&!!e,ue=e=>/^0[^.\s]+$/u.test(e);function de(e){let t;return()=>(t===void 0&&(t=e()),t)}var I=e=>e,fe=(...e)=>e.reduce((e,t)=>n=>t(e(n))),pe=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},me=class{constructor(){this.subscriptions=[]}add(e){return ae(this.subscriptions,e),()=>oe(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},L=e=>e*1e3,R=e=>e/1e3,he=(e,t)=>t?1e3/t*e:0,ge=new Set;function _e(e,t,n){e||ge.has(t)||(console.warn(se(t,n)),ge.add(t))}var ve=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},ye=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,be=1e-7,xe=12;function Se(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=ye(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>be&&++s<xe);return o}function Ce(e,t,n,r){if(e===t&&n===r)return I;let i=t=>Se(t,0,1,e,n);return e=>e===0||e===1?e:ye(i(e),t,r)}var we=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Te=e=>t=>1-e(1-t),Ee=Ce(.33,1.53,.69,.99),De=Te(Ee),Oe=we(De),ke=e=>e>=1?1:(e*=2)<1?.5*De(e):.5*(2-2**(-10*(e-1))),Ae=e=>1-Math.sin(Math.acos(e)),je=Te(Ae),Me=we(Ae),Ne=Ce(.42,0,1,1),Pe=Ce(0,0,.58,1),Fe=Ce(.42,0,.58,1),Ie=e=>Array.isArray(e)&&typeof e[0]!=`number`;function Le(e,t){return Ie(e)?e[ve(0,e.length,t)]:e}var Re=e=>Array.isArray(e)&&typeof e[0]==`number`,ze={linear:I,easeIn:Ne,easeInOut:Fe,easeOut:Pe,circIn:Ae,circInOut:Me,circOut:je,backIn:De,backInOut:Oe,backOut:Ee,anticipate:ke},Be=e=>typeof e==`string`,Ve=e=>{if(Re(e)){P(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Ce(t,n,r,i)}return Be(e)?(P(ze[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),ze[e]):e},He=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],Ue={value:null,addProjectionMetrics:null};function We(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0;let o=n;n=r,r=o,n.forEach(l),t&&Ue.value&&Ue.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var Ge=40;function Ke(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=He.reduce((e,n)=>(e[n]=We(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=F.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Ge),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))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:He.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<He.length;t++)o[He[t]].cancel(e)},state:i,steps:o}}var{schedule:z,cancel:qe,state:Je,steps:Ye}=Ke(typeof requestAnimationFrame<`u`?requestAnimationFrame:I,!0),Xe;function Ze(){Xe=void 0}var B={now:()=>(Xe===void 0&&B.set(Je.isProcessing||F.useManualTiming?Je.timestamp:performance.now()),Xe),set:e=>{Xe=e,queueMicrotask(Ze)}},Qe={layout:0,mainThread:0,waapi:0},$e=e=>t=>typeof t==`string`&&t.startsWith(e),et=$e(`--`),tt=$e(`var(--`),nt=e=>tt(e)?rt.test(e.split(`/*`)[0].trim()):!1,rt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function it(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var V={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},at={...V,transform:e=>M(0,1,e)},ot={...V,default:1},st=e=>Math.round(e*1e5)/1e5,ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function lt(e){return e==null}var ut=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dt=(e,t)=>n=>!!(typeof n==`string`&&ut.test(n)&&n.startsWith(e)||t&&!lt(n)&&Object.prototype.hasOwnProperty.call(n,t)),ft=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(ct);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},pt=e=>M(0,255,e),mt={...V,transform:e=>Math.round(pt(e))},H={test:dt(`rgb`,`red`),parse:ft(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+mt.transform(e)+`, `+mt.transform(t)+`, `+mt.transform(n)+`, `+st(at.transform(r))+`)`};function ht(e){let t=``,n=``,r=``,i=``;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),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var gt={test:dt(`#`),parse:ht,transform:H.transform},_t=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),U=_t(`deg`),vt=_t(`%`),W=_t(`px`),yt=_t(`vh`),bt=_t(`vw`),xt={...vt,parse:e=>vt.parse(e)/100,transform:e=>vt.transform(e*100)},St={test:dt(`hsl`,`hue`),parse:ft(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+vt.transform(st(t))+`, `+vt.transform(st(n))+`, `+st(at.transform(r))+`)`},G={test:e=>H.test(e)||gt.test(e)||St.test(e),parse:e=>H.test(e)?H.parse(e):St.test(e)?St.parse(e):gt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?H.transform(e):St.transform(e),getAnimatableNone:e=>{let t=G.parse(e);return t.alpha=0,G.transform(t)}},Ct=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wt(e){return isNaN(e)&&typeof e==`string`&&(e.match(ct)?.length||0)+(e.match(Ct)?.length||0)>0}var Tt=`number`,Et=`color`,Dt=`var`,Ot=`var(`,kt="${}",At=/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;function jt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(At,e=>(G.test(e)?(r.color.push(a),i.push(Et),n.push(G.parse(e))):e.startsWith(Ot)?(r.var.push(a),i.push(Dt),n.push(e)):(r.number.push(a),i.push(Tt),n.push(parseFloat(e))),++a,kt)).split(kt),indexes:r,types:i}}function Mt(e){return jt(e).values}function Nt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Tt?st(r[a]):e===Et?G.transform(r[a]):r[a]}return i}}function Pt(e){return Nt(jt(e))}var Ft=e=>typeof e==`number`?0:G.test(e)?G.getAnimatableNone(e):e,It=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ft(e);function Lt(e){let t=jt(e);return Nt(t)(t.values.map((e,n)=>It(e,t.split[n])))}var K={test:wt,parse:Mt,createTransformer:Pt,getAnimatableNone:Lt};function Rt(e,t,n){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}function zt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Rt(s,r,e+1/3),a=Rt(s,r,e),o=Rt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Bt(e,t){return n=>n>0?t:e}var Vt=(e,t,n)=>e+(t-e)*n,Ht=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ut=[gt,H,St],Wt=e=>Ut.find(t=>t.test(e));function Gt(e){let t=Wt(e);if(N(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===St&&(n=zt(n)),n}var Kt=(e,t)=>{let n=Gt(e),r=Gt(t);if(!n||!r)return Bt(e,t);let i={...n};return e=>(i.red=Ht(n.red,r.red,e),i.green=Ht(n.green,r.green,e),i.blue=Ht(n.blue,r.blue,e),i.alpha=Vt(n.alpha,r.alpha,e),H.transform(i))},qt=new Set([`none`,`hidden`]);function Jt(e,t){return qt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yt(e,t){return n=>Vt(e,t,n)}function Xt(e){return typeof e==`number`?Yt:typeof e==`string`?nt(e)?Bt:G.test(e)?Kt:en:Array.isArray(e)?Zt:typeof e==`object`?G.test(e)?Kt:Qt:Bt}function Zt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Xt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Qt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Xt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function $t(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var en=(e,t)=>{let n=K.createTransformer(t),r=jt(e),i=jt(t);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?qt.has(e)&&!i.values.length||qt.has(t)&&!r.values.length?Jt(e,t):fe(Zt($t(r,i),i.values),n):(N(!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`),Bt(e,t))};function tn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Vt(e,t,n):Xt(e)(e,t)}var nn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>z.update(t,e),stop:()=>qe(t),now:()=>Je.isProcessing?Je.timestamp:B.now()}},rn=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},an=2e4;function on(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function sn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(on(r),an);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:R(i)}}var q={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function cn(e,t){return e*Math.sqrt(1-t*t)}var ln=12;function un(e,t,n){let r=n;for(let n=1;n<ln;n++)r-=e(r)/t(r);return r}var dn=.001;function fn({duration:e=q.duration,bounce:t=q.bounce,velocity:n=q.velocity,mass:r=q.mass}){let i,a;N(e<=L(q.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=M(q.minDamping,q.maxDamping,o),e=M(q.minDuration,q.maxDuration,R(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=cn(t,o),c=Math.exp(-i);return dn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=cn(t**2,o);return(-i(t)+dn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=un(i,a,s);if(e=L(e),isNaN(c))return{stiffness:q.stiffness,damping:q.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var pn=[`duration`,`bounce`],mn=[`stiffness`,`damping`,`mass`];function hn(e,t){return t.some(t=>e[t]!==void 0)}function gn(e){let t={velocity:q.velocity,stiffness:q.stiffness,damping:q.damping,mass:q.mass,isResolvedFromDuration:!1,...e};if(!hn(e,mn)&&hn(e,pn)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:q.mass,stiffness:i,damping:a}}else{let n=fn({...e,velocity:0});t={...t,...n,mass:q.mass},t.isResolvedFromDuration=!0}}return t}function _n(e=q.visualDuration,t=q.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=gn({...n,velocity:-R(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=R(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?q.restSpeed.granular:q.restSpeed.default,i||=v?q.restDelta.granular:q.restDelta.default;let y,b,x,S,C,w;if(h<1)x=cn(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},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));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>L(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=L(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=L(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(on(T),an),t=rn(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}_n.applyToOptions=e=>{let t=sn(e,100,_n);return e.ease=t.ease,e.duration=L(t.duration),e.type=`keyframes`,e};var vn=5;function yn(e,t,n){let r=Math.max(t-vn,0);return he(n-e(r),t-r)}function bn({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}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=_n({keyframes:[f.value,m(f.value)],velocity:yn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function xn(e,t,n){let r=[],i=n||F.mix||tn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=fe(Array.isArray(t)?t[n]||I:t,a)),r.push(a)}return r}function Sn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(P(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=xn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=pe(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M(e[0],e[a-1],t)):l}function Cn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=pe(0,t,r);e.push(Vt(n,1,i))}}function wn(e){let t=[0];return Cn(t,e.length-1),t}function Tn(e,t){return e.map(e=>e*t)}function En(e,t){return e.map(()=>t||Fe).splice(0,e.length-1)}function Dn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Ie(r)?r.map(Ve):Ve(r),a={done:!1,value:t[0]},o=Sn(Tn(n&&n.length===t.length?n:wn(t),e),t,{ease:Array.isArray(i)?i:En(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var On=e=>e!==null;function kn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(On),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var An={decay:bn,inertia:bn,tween:Dn,keyframes:Dn,spring:_n};function jn(e){typeof e.type==`string`&&(e.type=An[e.type])}var Mn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Nn=e=>e/100,Pn=class extends Mn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==B.now()&&this.tick(B.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},Qe.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;jn(e);let{type:t=Dn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Dn;process.env.NODE_ENV!==`production`&&s!==Dn&&P(o.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`,`spring-two-frames`),s!==Dn&&typeof o[0]!=`number`&&(this.mixKeyframes=fe(Nn,tn(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=on(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!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=M(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==bn&&(b.value=kn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return R(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(this.currentTime)}set time(e){e=L(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return yn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(B.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=R(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=nn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();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()}pause(){this.state=`paused`,this.updateTime(B.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,Qe.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Fn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var J=e=>e*180/Math.PI,In=e=>Rn(J(Math.atan2(e[1],e[0]))),Ln={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:In,rotateZ:In,skewX:e=>J(Math.atan(e[1])),skewY:e=>J(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Rn=e=>(e%=360,e<0&&(e+=360),e),zn=In,Bn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Vn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Hn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bn,scaleY:Vn,scale:e=>(Bn(e)+Vn(e))/2,rotateX:e=>Rn(J(Math.atan2(e[6],e[5]))),rotateY:e=>Rn(J(Math.atan2(-e[2],e[0]))),rotateZ:zn,rotate:zn,skewX:e=>J(Math.atan(e[4])),skewY:e=>J(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Un(e){return+!!e.includes(`scale`)}function Wn(e,t){if(!e||e===`none`)return Un(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Hn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ln,i=t}if(!i)return Un(t);let a=r[t],o=i[1].split(`,`).map(Kn);return typeof a==`function`?a(o):o[a]}var Gn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Wn(n,t)};function Kn(e){return parseFloat(e.trim())}var qn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Y=new Set([...qn,`pathRotation`]),Jn=e=>e===V||e===W,Yn=new Set([`x`,`y`,`z`]),Xn=qn.filter(e=>!Yn.has(e));function Zn(e){let t=[];return Xn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var X={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Wn(t,`x`),y:(e,{transform:t})=>Wn(t,`y`)};X.translateX=X.x,X.translateY=X.y;var Z=new Set,Qn=!1,$n=!1,er=!1;function tr(){if($n){let e=Array.from(Z).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Zn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}$n=!1,Qn=!1,Z.forEach(e=>e.complete(er)),Z.clear()}function nr(){Z.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($n=!0)})}function rr(){er=!0,nr(),tr(),er=!1}var ir=class{constructor(e,t,n,r,i,a=!1){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}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Z.add(this),Qn||(Qn=!0,z.read(nr),z.resolveKeyframes(tr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Fn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Z.delete(this)}cancel(){this.state===`scheduled`&&(Z.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ar=e=>e.startsWith(`--`);function or(e,t,n){ar(t)?e.style.setProperty(t,n):e.style[t]=n}var sr={};function cr(e,t){let n=de(e);return()=>sr[t]??n()}var lr=cr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ur=cr(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),dr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:dr([0,.65,.55,1]),circOut:dr([.55,0,1,.45]),backIn:dr([.31,.01,.66,-.59]),backOut:dr([.33,1.53,.69,.99])};function pr(e,t){if(e)return typeof e==`function`?ur()?rn(e,t):`ease-out`:Re(e)?dr(e):Array.isArray(e)?e.map(e=>pr(e,t)||fr.easeOut):fr[e]}function mr(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=pr(s,i);Array.isArray(d)&&(u.easing=d),Ue.value&&Qe.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return Ue.value&&p.finished.finally(()=>{Qe.waapi--}),p}function hr(e){return typeof e==`function`&&`applyToOptions`in e}function gr({type:e,...t}){return hr(e)&&ur()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var _r=class extends Mn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,P(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=gr(e);this.animation=mr(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=kn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),or(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return R(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+R(e)}get time(){return R(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=L(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&lr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),I):r(this)}},vr={anticipate:ke,backInOut:Oe,circInOut:Me};function yr(e){return e in vr}function br(e){typeof e.ease==`string`&&yr(e.ease)&&(e.ease=vr[e.ease])}var xr=10,Sr=class extends _r{constructor(e){br(e),jn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Pn({...a,autoplay:!1}),s=Math.max(xr,B.now()-this.startTime),c=M(0,xr,s-xr),l=o.sample(s).value,{name:u}=this.options;i&&u&&or(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Cr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(K.test(e)||e===`0`)&&!e.startsWith(`url(`));function wr(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Tr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Cr(i,t),s=Cr(a,t);return N(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:wr(e)||(n===`spring`||hr(n))&&r}function Er(e){e.duration=0,e.type=`keyframes`}var Dr=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Or=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function kr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Or.test(e[t]))return!0;return!1}var Ar=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),jr=de(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Mr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return jr()&&n&&(Dr.has(n)||Ar.has(n)&&kr(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Nr=40,Pr=class extends Mn{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}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=B.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||ir;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=B.now();let u=!0;Tr(e,i,a,o)||(u=!1,(F.instantAnimations||!s)&&l?.(kn(e,n,t)),e[0]=e[e.length-1],Er(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Nr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Mr(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Sr({...d,element:p})}catch{m=new Pn(d)}else m=new Pn(d);m.finished.then(()=>{this.notifyFinished()}).catch(I),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),rr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},Fr=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return Ir(this.animations,`duration`)}get iterationDuration(){return Ir(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function Ir(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Lr=class extends Fr{then(e,t){return this.finished.finally(e).then(()=>{})}},Rr=30,zr=e=>!isNaN(parseFloat(e)),Br={current:void 0},Vr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=B.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=B.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=zr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!==`production`&&_e(!1,`value.onChange(callback) is deprecated. Switch to value.on("change", callback).`),this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new me);let n=this.events[e].add(t);return e===`change`?()=>{n(),z.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Br.current&&Br.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=B.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Rr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Rr);return he(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Q(e,t){return new Vr(e,t)}function Hr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ur(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Hr(n,e)}var Wr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Gr=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Kr={type:`keyframes`,duration:.8},qr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Jr=(e,{keyframes:t})=>t.length>2?Kr:Y.has(e)?e.startsWith(`scale`)?Gr(t[1]):Wr:qr,Yr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Xr(e){for(let t in e)if(!Yr.has(t))return!0;return!1}var Zr=(e,t,n,r={},i,a)=>o=>{let s=Ur(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=L(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Xr(s)||Object.assign(u,Jr(e,u)),u.duration&&=L(u.duration),u.repeatDelay&&=L(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Er(u),u.delay===0&&(d=!0)),(F.instantAnimations||F.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Er(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=kn(u.keyframes,s);if(e!==void 0){z.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Pn(u):new Pr(u)},Qr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $r(e){let t=Qr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var ei=4;function ti(e,t,n=1){P(n<=ei,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=$r(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return ce(e)?parseFloat(e):e}return nt(i)?ti(i,t,n+1):i}function ni(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ri(e,t,n,r){if(typeof t==`function`){let[i,a]=ni(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=ni(r);t=t(n===void 0?e.custom:n,i,a)}return t}function ii(e,t,n){let r=e.getProps();return ri(r,t,n===void 0?r.custom:n,e)}var ai=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...qn]),oi=e=>Array.isArray(e);function si(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Q(n))}function ci(e){return oi(e)?e[e.length-1]||0:e}function li(e,t){let{transitionEnd:n={},transition:r={},...i}=ii(e,t)||{};i={...i,...n};for(let t in i)si(e,t,ci(i[t]))}var $=e=>!!(e&&e.getVelocity);function ui(e){return!!($(e)&&e.add)}function di(e,t){let n=e.getValue(`willChange`);if(ui(n))return n.add(t);if(!n&&F.WillChange){let n=new F.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function fi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var pi=`data-`+fi(`framerAppearId`);function mi(e){return e.props[pi]}function hi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function gi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Hr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&hi(f,t))continue;let o={delay:n,...Ur(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){z.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=mi(e);if(n){let e=window.MotionHandoffAnimation(n,t,z);e!==null&&(o.startTime=e,p=!0)}}di(e,t);let m=l??e.shouldReduceMotion;r.start(Zr(t,r,i,m&&ai.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>z.update(()=>{o&&li(e,o)});d.length?Promise.all(d).then(t):t()}return d}var _i={test:e=>e===`auto`,parse:e=>e},vi=e=>t=>t.test(e),yi=[V,W,vt,U,bt,yt,_i],bi=e=>yi.find(vi(e));function xi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ue(e)}var Si=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ci(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(ct)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Si.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var wi=/\b([a-z-]*)\(.*?\)/gu,Ti={...K,getAnimatableNone:e=>{let t=e.match(wi);return t?t.map(Ci).join(` `):e}},Ei={...K,getAnimatableNone:e=>{let t=K.parse(e);return K.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Di={...V,transform:Math.round},Oi={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,fontSize:W,backgroundPositionX:W,backgroundPositionY:W,rotate:U,pathRotation:U,rotateX:U,rotateY:U,rotateZ:U,scale:ot,scaleX:ot,scaleY:ot,scaleZ:ot,skew:U,skewX:U,skewY:U,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:at,originX:xt,originY:xt,originZ:W,zIndex:Di,fillOpacity:at,strokeOpacity:at,numOctaves:Di},ki={...Oi,color:G,backgroundColor:G,outlineColor:G,fill:G,stroke:G,borderColor:G,borderTopColor:G,borderRightColor:G,borderBottomColor:G,borderLeftColor:G,filter:Ti,WebkitFilter:Ti,mask:Ei,WebkitMask:Ei},Ai=e=>ki[e],ji=new Set([Ti,Ei]);function Mi(e,t){let n=Ai(e);return ji.has(n)||(n=K),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ni=new Set([`auto`,`none`,`0`]);function Pi(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ni.has(t)&&jt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=Mi(n,i)}var Fi=class extends ir{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),nt(r))){let i=ti(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ai.has(n)||e.length!==2)return;let[r,i]=e,a=bi(r),o=bi(i);if(it(r)!==it(i)&&X[n])this.needsMeasurement=!0;else if(a!==o){if(Jn(a)&&Jn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else X[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||xi(e[t]))&&n.push(t);n.length&&Pi(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=X[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function Ii(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Li=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:Ri,cancel:zi}=Ke(queueMicrotask,!1);function Bi(e){return le(e)&&`ownerSVGElement`in e}function Vi(e){return Bi(e)&&e.tagName===`svg`}var Hi=[...yi,G,K],Ui=e=>Hi.find(vi(e)),Wi=()=>({min:0,max:0}),Gi=()=>({x:Wi(),y:Wi()}),Ki=new WeakMap;function qi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ji(e){return typeof e==`string`||Array.isArray(e)}var Yi=[`initial`,`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`];function Xi(e){return qi(e.animate)||Yi.some(t=>Ji(e[t]))}function Zi(e){return!!(Xi(e)||e.variants)}function Qi(e,t,n){for(let r in t){let i=t[r],a=n[r];if($(i))e.addValue(r,i);else if($(a))e.addValue(r,Q(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Q(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var $i={current:null},ea={current:!1},ta=typeof window<`u`;function na(){if(ea.current=!0,ta){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>$i.current=e.matches;e.addEventListener(`change`,t),t()}else $i.current=!1}}var ra=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ia={},aa=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ir,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=B.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,z.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;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=Xi(t),this.isVariantNode=Zi(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&$(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ki.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:(ea.current||na(),this.shouldReduceMotion=$i.current),process.env.NODE_ENV!==`production`&&_e(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}unmount(){this.projection&&this.projection.unmount(),qe(this.notifyUpdate),qe(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Dr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new _r({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:L(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Y.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&z.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ia){let t=ia[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ra.length;t++){let n=ra[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Qi(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Q(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(ce(n)||ue(n))?n=parseFloat(n):!Ui(n)&&K.test(t)&&(n=Mi(e,t)),this.setBaseTarget(e,$(n)?n.get():n)),$(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=ri(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!$(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new me),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Ri.render(this.render)}},oa=class extends aa{constructor(){super(...arguments),this.KeyframeResolver=Fi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;$(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function sa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ca(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function la(e,t){return sa(ca(e.getBoundingClientRect(),t))}var ua={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},da=qn.length;function fa(e,t,n){let r=``,i=!0;for(let a=0;a<da;a++){let o=qn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Li(s,Oi[o]);if(!c){i=!1;let t=ua[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Li(a,Oi.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function pa(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Y.has(e))o=!0;else if(et(e))i[e]=n;else{let t=Li(n,Oi[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=fa(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ma(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ha(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ga={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(W.test(e))e=parseFloat(e);else return e}return`${ha(e,t.target.x)}% ${ha(e,t.target.y)}%`}},_a={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=K.parse(e);if(i.length>5)return r;let a=K.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Vt(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},va={borderRadius:{...ga,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ga,borderTopRightRadius:ga,borderBottomLeftRadius:ga,borderBottomRightRadius:ga,boxShadow:_a};function ya(e,{layout:t,layoutId:n}){return Y.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!va[e]||e===`opacity`)}function ba(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)($(r[t])||i&&$(i[t])||ya(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function xa(e){return window.getComputedStyle(e)}var Sa=class extends oa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ma}readValueFromInstance(e,t){if(Y.has(t))return this.projection?.isProjecting?Un(t):Gn(e,t);{let n=xa(e),r=(et(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return la(e,t)}build(e,t,n){pa(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ba(e,t,n)}};function Ca(e,t){return e in t}var wa=class extends aa{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Ca(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Gi()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Ta={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ea={offset:`strokeDashoffset`,array:`strokeDasharray`};function Da(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ta:Ea;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Oa=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ka(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(pa(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;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);for(let e of Oa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Da(d,i,a,o,!1)}var Aa=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ja=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ma(e,t,n,r){ma(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Aa.has(n)?n:fi(n),t.attrs[n])}function Na(e,t,n){let r=ba(e,t,n);for(let n in e)if($(e[n])||$(t[n])){let t=qn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Pa=class extends oa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Gi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Y.has(t)){let e=Ai(t);return e&&e.default||0}return t=Aa.has(t)?t:fi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Na(e,t,n)}build(e,t,n){ka(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ma(e,t,n,r)}mount(e){this.isSVGTag=ja(e.tagName),super.mount(e)}};function Fa(e,t,n){let r=$(e)?e:Q(e);return r.start(Zr(``,r,t,n)),r.animation}var Ia=(0,n.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function La(e){return(0,n.useEffect)(()=>()=>e(),[])}function Ra(){!ea.current&&na();let[e]=(0,n.useState)($i.current);return process.env.NODE_ENV!==`production`&&_e(e!==!0,`You have Reduced Motion enabled on your device. Animations may not appear as expected.`,`reduced-motion-disabled`),e}function za(){let e=Ra(),{reducedMotion:t}=(0,n.useContext)(Ia);return t===`never`?!1:t===`always`||e}function Ba(e){return typeof e==`object`&&!Array.isArray(e)}function Va(e,t,n,r){return e==null?[]:typeof e==`string`&&Ba(t)?Ii(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ha(e,t,n){return e*(t+1)+n*t}function Ua(e,t,n,r){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}function Wa(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(oe(e,i),r--)}}function Ga(e,t,n,r,i,a){Wa(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Vt(i,a,r[o]),easing:Le(n,o)})}function Ka(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function qa(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Ja=`easeInOut`,Ya=20;function Xa(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,Ua(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=Ua(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=$a(e),{delay:l=0,times:u=wn(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=hr(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&no(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=L(b));let r=sn(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Cn(u,T),c.length===1&&c.unshift(null),m&&N(m<Ya,`Sequence segments can't repeat ${m} times — ignoring repeat option. Use a value below ${Ya} or apply repeat at the sequence level instead.`),m&&m<Ya){let e=b>0?_/b:0;b=Ha(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?Te(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:Le(f,e-1))}Ka(u,m,e)}let ee=w+b;Ga(r,c,y,u,w,ee),g=Math.max(x+b,g),f=Math.max(ee,f)};if($(p)){let e=Za(p,s);_(m,h,Qa(`default`,e))}else{let e=Va(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=Za(r,s);for(let e in m)_(m[e],eo(h,e),Qa(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(qa);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(pe(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Ja)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function Za(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Qa(e,t){return t[e]||(t[e]=[]),t[e]}function $a(e){return Array.isArray(e)?e:[e]}function eo(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var to=e=>typeof e==`number`,no=e=>e.every(to);function ro(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Bi(e)&&!Vi(e)?new Pa(t):new Sa(t);n.mount(e),Ki.set(e,n)}function io(e){let t=new wa({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Ki.set(e,t)}function ao(e,t){return $(e)||typeof e==`number`||typeof e==`string`&&!Ba(t)}function oo(e,t,n,r){let i=[];if(ao(e,t))i.push(Fa(e,Ba(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=Va(e,t,r),o=a.length;P(!!o,`No valid elements provided.`,`no-valid-elements`);for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?ro:io;Ki.has(r)||s(r);let c=Ki.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...gi(c,{...t,transition:l},{}))}}return i}function so(e,t,n){let r=[];return Xa(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Q(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:_n}).forEach(({keyframes:e,transition:t},n)=>{r.push(...oo(n,e,t))}),r}function co(e){return Array.isArray(e)&&e.some(Array.isArray)}function lo(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),co(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=so(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=oo(e,i,{...c,...r},t)}let l=new Lr(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{oe(t.animations,l)})),l}return i}lo();function uo(){let e=j(()=>({current:null,animations:[]})),t=za()??void 0,{skipAnimations:r}=(0,n.useContext)(Ia),i=(0,n.useMemo)(()=>lo({scope:e,reduceMotion:t,skipAnimations:r}),[e,t,r]);return La(()=>{e.animations.forEach(e=>e.stop()),e.animations.length=0}),[e,i]}var fo={display:`block`,width:`100%`,height:`100%`},po=({item:e,children:t,effectCallback:r,onEffectStart:i,ref:o})=>{let[s,c]=uo(),[l,u]=(0,n.useState)(!1),d=(0,n.useRef)(!1),f=(t=!0)=>{if(!t&&r&&r(e),!l&&!d.current){if(!s.current)return;d.current=!0,u(!0),i&&i(),c(s.current,{y:[0,-55,0],scaleX:[1,1.15,.9,1]},{duration:.8,repeat:1,repeatType:`loop`}).then(()=>{u(!1),d.current=!1}).catch(()=>{u(!1),d.current=!1})}};return(0,n.useImperativeHandle)(o,()=>({triggerEffect:f,setBusy:u,busy:l}),[l]),(0,a.jsx)(`div`,{ref:s,onClick:e=>{e.stopPropagation(),f(!1)},style:fo,children:t})},mo=({children:e,position:t={from:0,to:0},screenScale:r,settings:i,onEffectEnd:o,onEffectStart:s,ref:c})=>{let[l,u]=uo(),d=(0,n.useRef)(!1),f=()=>{if(!l.current)return;s&&s();let e=d.current?0:(t.to-t.from)*r/100;d.current=!d.current,u(l.current,{x:e},{duration:i.duration||2,delay:.1}).then(()=>{o&&o()}).catch(()=>{d.current=!d.current})};return(0,n.useImperativeHandle)(c,()=>({triggerEffect:f})),(0,a.jsx)(`div`,{ref:l,onClick:e=>{e.stopPropagation(),f()},children:e})},ho={display:`block`,width:`100%`,height:`100%`},go=({item:e,children:t,effectCallback:r,onEffectEnd:i,onEffectStart:o,ref:s})=>{let[c,l]=uo(),[u,d]=(0,n.useState)(!1),f=(0,n.useRef)(!1),p=(t=!0)=>{if(!t&&r&&r(e),!u&&!f.current){if(!c.current)return;f.current=!0,d(!0),o&&o(),l(c.current,{boxShadow:[`0px 0px 20px 10px rgba(209, 174, 34, 0)`,`0px 0px 20px 10px rgba(209, 174, 34, 0.8)`,`0px 0px 20px 10px rgba(209, 174, 34, 0)`],scale:[1,1.1,.9,1]},{duration:1}).then(()=>{d(!1),f.current=!1,i&&i()}).catch(()=>{d(!1),f.current=!1})}};return(0,n.useImperativeHandle)(s,()=>({triggerEffect:p,setBusy:d,busy:u}),[u]),(0,a.jsx)(`div`,{ref:c,onClick:e=>{e.stopPropagation(),p(!1)},style:{...ho,borderRadius:`100%`},children:t})},_o={display:`block`,width:`100%`,height:`100%`},vo=({item:e,screenScale:t,children:r,effectCallback:i,onEffectEnd:o,onEffectStart:s,ref:c})=>{let l=e.scaleSize/100*(t-10)/100,[u,d]=uo(),[f,p]=(0,n.useState)(!1),m=(0,n.useRef)(!1),h=(t=!0)=>{if(!t&&i&&i(e),!f&&!m.current){if(!u.current)return;m.current=!0,s&&s(),d(u.current,{rotate:[0,-1*l,1*l,0],x:[0,-2*l,-4*l,0],y:[0,-8*l,-4*l,0]},{repeat:4,duration:.15}).then(()=>{p(!1),m.current=!1,o&&o()}).catch(()=>{p(!1),m.current=!1})}};return(0,n.useImperativeHandle)(c,()=>({triggerEffect:h,setBusy:p,busy:f}),[f]),(0,a.jsx)(`div`,{ref:u,onClick:e=>{e.stopPropagation(),h(!1)},style:_o,children:r})},yo={display:`block`,width:`100%`,height:`100%`},bo=({item:e,children:t,effectCallback:r,onEffectEnd:i,onEffectStart:o,ref:s})=>{let c=e.scaleSize/100,[l,u]=uo(),[d,f]=(0,n.useState)(!1),p=(0,n.useRef)(!1),m=(t=!0)=>{if(!t&&r&&r(e),!d&&!p.current){if(!l.current)return;p.current=!0,f(!0),o&&o(),u(l.current,{y:[0,-10*c,-30*c,-34*c,0],scaleY:[1,1.1,1.2,1.1,1]},{delay:.1,repeatType:`reverse`,duration:.5*c}).then(()=>{f(!1),p.current=!1,i&&i()}).catch(()=>{f(!1),p.current=!1})}};return(0,n.useImperativeHandle)(s,()=>({triggerEffect:m,setBusy:f,busy:d}),[d]),(0,a.jsx)(`div`,{ref:l,onClick:e=>{e.stopPropagation(),m(!1)},style:yo,children:t})},xo=n.default.lazy(()=>Promise.resolve().then(()=>require("./dolottie-FZVaMI-M.cjs"))),So=n.default.lazy(()=>Promise.resolve().then(()=>require("./Image-BolaFg4H.cjs"))),Co=({item:e,screenScale:t,onMediaClick:r,ref:i})=>{let{effect:o,mediaType:s}=e,[c,l]=(0,n.useState)(!1),[u,d]=(0,n.useState)(null),f=(0,n.useRef)(null),p=(0,n.useRef)(!1),m=(0,n.useCallback)(e=>{f.current=e,d(e)},[]),h=(0,n.useCallback)(()=>{let e=f.current;e?c||(l(!0),e.setFrame(0),e.play()):p.current=!0},[c]);(0,n.useEffect)(()=>{if(!u||!p.current)return;let e=()=>{p.current=!1,l(!0),u.setFrame(0),u.play()};if(u.isLoaded)e();else return u.addEventListener(`load`,e),()=>u.removeEventListener(`load`,e)},[u]);let g=(0,n.useCallback)(()=>{let e=f.current;e&&c&&e.stop(),l(!1)},[c]);(0,n.useEffect)(()=>{let e=()=>{o&&o.type||l(!1)};return u&&u.addEventListener(`complete`,e),()=>{u&&u.removeEventListener(`complete`,e)}},[u,o]);let _=()=>s===`lottie`?(0,a.jsx)(xo,{item:e,play:c,setDotLottie:m}):(0,a.jsx)(So,{mediaItem:e});return o?.type?o.type===`highlight`?(0,a.jsx)(go,{item:e,ref:i,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`shake`?(0,a.jsx)(vo,{item:e,ref:i,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`bounce`?(0,a.jsx)(po,{item:e,ref:i,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`jump`?(0,a.jsx)(bo,{item:e,ref:i,onEffectEnd:g,onEffectStart:h,screenScale:t,effectCallback:r,children:_()}):o.type===`move`?(0,a.jsx)(mo,{onEffectEnd:g,onEffectStart:h,ref:i,screenScale:t,position:{from:e.position.left,to:o.settings.to},settings:o.settings,children:_()}):null:(0,a.jsx)(A,{onEffectEnd:g,onEffectStart:h,item:e,ref:i,screenScale:t,effectCallback:r,children:_()})};Co.displayName=`Animation`;var wo=n.default.memo(Co),To=n.default.memo(({path:e,mediaType:n})=>n&&n===`static`?(0,a.jsx)(`span`,{className:`inline-flex`,children:(0,a.jsx)(t.t,{src:e,eager:!0,className:`max-w-full max-h-full w-full h-full -z-10`})}):null);To.displayName=`LazySvg`;var Eo=n.default.memo(To),Do={left:0,top:480},Oo=`clamp(18px, 3.8vmin, 34px)`,ko=2,Ao=({page:t,screenScale:i,isActive:o,isPrev:s=!1,isNext:c=!1,distanceFromActive:l,textDirection:u=`LTR`})=>{let d=(0,r.useSwiper)(),f=e.a(),{bookId:p,slug:m,analytics:h}=f,g=o||s||c||l!==void 0&&l<=ko,_=(0,n.useRef)(!1);g&&(_.current=!0);let v=g||_.current,{audio:y,words:b,background:x,media:S=[],layoutStyle:C=ne.BOTTOM,textPosition:w,textStyle:T}=t,ee=C===ne.BOTTOM?`layout-btm-aligned`:``,[D,ie]=(0,n.useState)([]),k=(0,n.useRef)([]),A=(0,n.useRef)(null),[j,ae]=(0,n.useState)(null),oe=(0,n.useRef)(null),M=(0,n.useRef)(!0),se=navigator?.userActivation.hasBeenActive,N=d.activeIndex>(d.previousIndex??-1),P=(0,n.useMemo)(()=>y?.pageAudio?.segments?y.pageAudio.segments:b&&b.length>0?b:[],[y,b]);(0,n.useEffect)(()=>{let e=null;return o&&j===null&&se&&N&&(e=setTimeout(()=>{le()},750)),!o&&j===!0&&(h?.onAudioPaused?.(p,t._id),A.current?.onAbortAudio()),()=>{e&&clearTimeout(e)}},[o,j,se,N]),(0,n.useEffect)(()=>(M.current=!0,()=>{M.current=!1}),[]),(0,n.useEffect)(()=>{oe.current===!0&&j===!1&&o&&h?.onAudioCompleted?.(p,t._id,y?.pageAudio?.mp3??t._id),oe.current=j},[j]);let F=(0,n.useCallback)(async n=>{h?.onWordTapped?.(p,t._id,n.word),k.current.forEach(e=>{e.mediaItem.effect?.timing?.forEach(t=>{n.word===t.word&&e.element?.triggerEffect()})});let r=P.findIndex(e=>e.word===n.word&&e.start===n.start);if(r>-1){let t=P[r];ie([r]),await e.t((t.end-t.start)*1e3+500),M.current&&ie([])}},[h,p,t._id,P]),ce=(0,n.useCallback)(e=>{if(!e)return;h?.onAnimationTriggered?.(p,t._id,e._id,e.effect?.type);let{effect:n}=e,r=[],i=[];n?.timing?.forEach(e=>{let t=P.findIndex(t=>t.word===e.word&&t.start===e.start);t>-1&&(r.push(t),i.push({...e,index:t}),F(e))})},[h,p,t._id,P,F]),le=(0,n.useCallback)(async()=>{A.current?.isPlaying||(k.current.forEach(e=>{e.mediaItem?.effect?.timing?.forEach(t=>{setTimeout(()=>{e.element?.triggerEffect()},t.start*1e3)})}),A.current?.onPlay(),h?.onAudioPlayed?.(p,t._id,y?.pageAudio?.mp3??t._id))},[h,p,t._id,y]),ue=w??Do,de=ue.left*i/100,I=ue.top*i/100,fe=1200*i/100,pe=P.length>0?C===ne.DYNAMIC?(0,a.jsx)(`div`,{className:`page-text-overlay`,dir:u.toLowerCase(),style:{left:0,top:0,transform:`translate(${de}px, ${I}px)`,width:T?.textWidth?`${T.textWidth*i/100}px`:`fit-content`,maxWidth:`${fe}px`},children:(0,a.jsx)(`div`,{style:{display:`inline-block`,width:T?.textWidth?`100%`:void 0,padding:`6px 8px`,fontSize:T?.fontSize??Oo,lineHeight:1.2,backgroundColor:T?.background??`transparent`,color:T?.color??`inherit`,whiteSpace:T?.textWidth?`normal`:`nowrap`,wordBreak:T?.textWidth?`break-word`:void 0,boxSizing:`border-box`},children:(0,a.jsx)(E,{onWordSelect:F,segments:P,pageAudio:y?.pageAudio?.path?y.pageAudio:null,ref:A,setIsPlaying:ae,highlightIds:D,textDirection:u})})}):(0,a.jsx)(`div`,{className:`pagetext-wrapper`,children:(0,a.jsx)(`div`,{className:`textwrapper-inner`,children:(0,a.jsx)(`div`,{className:`textcontainer`,dir:u.toLowerCase(),children:(0,a.jsx)(E,{onWordSelect:F,segments:P,pageAudio:y?.pageAudio?.path?y.pageAudio:null,ref:A,setIsPlaying:ae,highlightIds:D,textDirection:u})})})}):null;return(0,a.jsxs)(`div`,{className:`pageContentWrapper ${ee}`,dir:u.toLowerCase(),inert:!o||void 0,tabIndex:o?void 0:-1,"aria-hidden":!o||void 0,children:[x&&(0,a.jsx)(re,{background:x,eager:v}),y&&o?(0,a.jsx)(`button`,{disabled:j===!0,onClick:le,"aria-label":j?`Audio is playing`:`Play audio`,className:`ui btn audioplay ${j?`playing`:``}`,children:(0,a.jsx)(te,{size:`50%`,className:`${j?`playing`:``}`})}):null,v&&S&&S.map((t,n)=>t.effect?(0,a.jsx)(O,{item:t,screenScale:i,children:(0,a.jsx)(wo,{screenScale:i,item:t,onMediaClick:ce,ref:e=>{k.current[n]={element:e,mediaItem:t}}})},t.id):(0,a.jsxs)(O,{item:t,screenScale:i,children:[t.mediaType===`lottie`&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(wo,{item:t,screenScale:i,onMediaClick:ce,ref:e=>{k.current[n]={element:e,mediaItem:t}}})}),t.mediaType!==`lottie`&&(0,a.jsx)(Eo,{path:e.n(f,t),mediaType:t.mediaType})]},t.id)),pe]})},jo=1280,Mo=600,No=jo/Mo,Po=({id:t,analytics:u,fonts:d=[],bookSource:f={type:`static`,staticFolder:`GDLBookContent`},lottieWasmUrl:p})=>{let[m,h]=(0,n.useState)(null),[g,_]=(0,n.useState)(null),[v,y]=(0,n.useState)(null),[b,x]=(0,n.useState)(null),S=c([...m?.fonts??[],...d],m?.language,m?.script),C=l(S),w=S[0]?.family||`Quicksand`,T=m?.illustration&&m.illustration.path||m?.coverText&&m.coverText!==``,te=m?.credits&&m.credits?.text||m?.credits?.logos&&m.credits?.logos.length>0,[ne,re]=(0,n.useState)({width:0,height:0}),{width:E,height:D}=ne,ie=m?.config.textDirection||`LTR`;(0,n.useEffect)(()=>{let e=()=>{re({width:window.innerWidth,height:window.innerHeight})};return e(),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`resize`,e)}},[]);let O=100,k={width:jo,height:Mo};return(E<jo||D<Mo)&&(Mo/D>jo/E?(k={height:D,width:D*No},O=D/Mo*100):(k={width:E,height:E/No},O=E/jo*100)),(0,n.useEffect)(()=>{!m&&t&&(async e=>{let t=f.type===`api`?`${f.apiHost}/api/book?slug=${e}`:`/${f.staticFolder}/${e}/content.json`;try{let n=await fetch(t,{cache:`no-store`});if(!n.ok)throw Error(`Error fetching data for (${e}): ${n.status}`);let r=await n.json();h(r),_(null),navigator.onLine&&u?.onBookOpened&&u.onBookOpened(r._id,r.title)}catch(t){console.error(t),h(null),_(`Error fetching data for (${e}): ${t instanceof Error?t.message:`Unknown error`}`)}})(t)},[t]),g?(0,a.jsxs)(`p`,{role:`alert`,className:`player`,children:[`Error: `,g]}):!m||!t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`style`,{children:o}),(0,a.jsx)(`div`,{role:`status`,"aria-label":`Loading`,className:`player centered`,children:(0,a.jsx)(`span`,{className:`loader`})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`style`,{children:`:root, :host, .player { --player-font-family: '${s(w)}'; }${C}${o}`}),(0,a.jsx)(e.i,{bookId:m._id,slug:m.slug,assetConfig:f,analytics:u,lottieWasmUrl:p,children:(0,a.jsx)(`div`,{className:`player`,children:(0,a.jsx)(`div`,{className:`view-box`,children:(0,a.jsxs)(r.Swiper,{onSlideChange:e=>{y(e.activeIndex),m&&(u?.onPageTurned&&u.onPageTurned(m._id,e.activeIndex),e.isEnd&&u?.onBookCompleted&&u.onBookCompleted(m._id,m.title))},className:`mySwiper swiper-container`,speed:1200,dir:`ltr`,modules:[i.Pagination],pagination:{clickable:!1,type:`progressbar`},onSwiper:e=>{x(e)},style:{...k},a11y:{enabled:!0,prevSlideMessage:`Previous page`,nextSlideMessage:`Next page`},children:[T&&(0,a.jsx)(r.SwiperSlide,{"data-hash":`cover`,children:({isActive:t})=>(0,a.jsxs)(`div`,{className:`cover-page`,inert:!t||void 0,children:[(0,a.jsx)(`div`,{className:`cover-illustration`,children:m.illustration?.path&&(0,a.jsx)(`img`,{src:e.n({bookId:m._id,slug:m.slug,assetConfig:f},m.illustration),alt:m.title})}),(0,a.jsxs)(`div`,{className:`cover-text`,dir:ie.toLowerCase()||`ltr`,children:[(0,a.jsx)(`h1`,{children:m.title}),m.coverText&&(0,a.jsx)(`small`,{children:m.coverText})]})]})}),m.body.map((e,t)=>{let n=t+ +!!T,i=Math.abs(n-(v??0));return(0,a.jsx)(r.SwiperSlide,{className:`overflow-hidden`,"data-hash":e._id,children:({isActive:t,isPrev:n,isNext:r})=>(0,a.jsx)(Ao,{screenScale:O,page:e,isActive:t,isPrev:n,isNext:r,distanceFromActive:i,textDirection:ie})},e._id)}),te&&(0,a.jsx)(r.SwiperSlide,{"data-hash":`credits`,children:({isActive:e})=>(0,a.jsxs)(`div`,{className:`credits-page`,inert:!e||void 0,children:[(0,a.jsx)(`div`,{className:`credits-page-inner`,children:m.credits?.logos.map(e=>(0,a.jsx)(`div`,{className:`logo-item`,children:(0,a.jsx)(`img`,{src:f.type===`api`?`${f.assetsHost}/logos/${e}.jpg`:`/${f.staticFolder}/${m.slug}/assets/${e}.jpg`,alt:e})},e))}),(0,a.jsxs)(`div`,{className:`credits-page-bottom`,dir:ie.toLowerCase()||`ltr`,children:[(0,a.jsxs)(`h1`,{children:[`"`,m.title,`" credits`]}),m.credits?.text&&(0,a.jsx)(`small`,{children:m.credits.text})]})]})}),b&&b.slides.length>1&&(0,a.jsx)(ee,{isFirst:b.isBeginning===!0,isLast:b.isEnd===!0,activeIndex:v})]})})})})]})},Fo=`1.5.3`;function Io(){return`1.5.3`}exports.PLAYER_VERSION=Fo,exports.Player=Po,exports.getPlayerVersion=Io;
package/dist/index.js CHANGED
@@ -25,27 +25,27 @@ var S = ":root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;mar
25
25
  "font-display: swap;"
26
26
  ];
27
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("")}}`;
28
- }).join(""), ee = {
28
+ }).join(""), E = {
29
29
  color: void 0,
30
30
  size: void 0,
31
31
  className: void 0,
32
32
  style: void 0,
33
33
  attr: void 0
34
- }, E = o.createContext && /*#__PURE__*/ o.createContext(ee), te = [
34
+ }, D = o.createContext && /*#__PURE__*/ o.createContext(E), ee = [
35
35
  "attr",
36
36
  "size",
37
37
  "title"
38
38
  ];
39
- function ne(e, t) {
39
+ function te(e, t) {
40
40
  if (e == null) return {};
41
- var n, r, i = re(e, t);
41
+ var n, r, i = ne(e, t);
42
42
  if (Object.getOwnPropertySymbols) {
43
43
  var a = Object.getOwnPropertySymbols(e);
44
44
  for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
45
45
  }
46
46
  return i;
47
47
  }
48
- function re(e, t) {
48
+ function ne(e, t) {
49
49
  if (e == null) return {};
50
50
  var n = {};
51
51
  for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
@@ -54,16 +54,16 @@ function re(e, t) {
54
54
  }
55
55
  return n;
56
56
  }
57
- function D() {
58
- return D = Object.assign ? Object.assign.bind() : function(e) {
57
+ function O() {
58
+ return O = Object.assign ? Object.assign.bind() : function(e) {
59
59
  for (var t = 1; t < arguments.length; t++) {
60
60
  var n = arguments[t];
61
61
  for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
62
62
  }
63
63
  return e;
64
- }, D.apply(null, arguments);
64
+ }, O.apply(null, arguments);
65
65
  }
66
- function ie(e, t) {
66
+ function re(e, t) {
67
67
  var n = Object.keys(e);
68
68
  if (Object.getOwnPropertySymbols) {
69
69
  var r = Object.getOwnPropertySymbols(e);
@@ -73,30 +73,30 @@ function ie(e, t) {
73
73
  }
74
74
  return n;
75
75
  }
76
- function O(e) {
76
+ function k(e) {
77
77
  for (var t = 1; t < arguments.length; t++) {
78
78
  var n = arguments[t] == null ? {} : arguments[t];
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) {
79
+ t % 2 ? re(Object(n), !0).forEach(function(t) {
80
+ A(e, t, n[t]);
81
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : re(Object(n)).forEach(function(t) {
82
82
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
83
83
  });
84
84
  }
85
85
  return e;
86
86
  }
87
- function k(e, t, n) {
88
- return (t = A(t)) in e ? Object.defineProperty(e, t, {
87
+ function A(e, t, n) {
88
+ return (t = j(t)) in e ? Object.defineProperty(e, t, {
89
89
  value: n,
90
90
  enumerable: !0,
91
91
  configurable: !0,
92
92
  writable: !0
93
93
  }) : e[t] = n, e;
94
94
  }
95
- function A(e) {
96
- var t = j(e, "string");
95
+ function j(e) {
96
+ var t = ie(e, "string");
97
97
  return typeof t == "symbol" ? t : t + "";
98
98
  }
99
- function j(e, t) {
99
+ function ie(e, t) {
100
100
  if (typeof e != "object" || !e) return e;
101
101
  var n = e[Symbol.toPrimitive];
102
102
  if (n !== void 0) {
@@ -107,27 +107,27 @@ function j(e, t) {
107
107
  return (t === "string" ? String : Number)(e);
108
108
  }
109
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
+ return e && e.map((e, t) => /*#__PURE__*/ o.createElement(e.tag, k({ key: t }, e.attr), M(e.child)));
111
111
  }
112
112
  function N(e) {
113
- return (t) => /*#__PURE__*/ o.createElement(P, D({ attr: O({}, e.attr) }, t), M(e.child));
113
+ return (t) => /*#__PURE__*/ o.createElement(P, O({ attr: k({}, e.attr) }, t), M(e.child));
114
114
  }
115
115
  function P(e) {
116
116
  var t = (t) => {
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({
117
+ var { attr: n, size: r, title: i } = e, a = te(e, ee), s = r || t.size || "1em", c;
118
+ return t.className && (c = t.className), e.className && (c = (c ? c + " " : "") + e.className), /*#__PURE__*/ o.createElement("svg", O({
119
119
  stroke: "currentColor",
120
120
  fill: "currentColor",
121
121
  strokeWidth: "0"
122
122
  }, t.attr, n, a, {
123
123
  className: c,
124
- style: O(O({ color: e.color || t.color }, t.style), e.style),
124
+ style: k(k({ color: e.color || t.color }, t.style), e.style),
125
125
  height: s,
126
126
  width: s,
127
127
  xmlns: "http://www.w3.org/2000/svg"
128
128
  }), i && /*#__PURE__*/ o.createElement("title", null, i), e.children);
129
129
  };
130
- return E === void 0 ? t(ee) : /*#__PURE__*/ o.createElement(E.Consumer, null, (e) => t(e));
130
+ return D === void 0 ? t(E) : /*#__PURE__*/ o.createElement(D.Consumer, null, (e) => t(e));
131
131
  }
132
132
  // node_modules/react-icons/io/index.mjs
133
133
  function ae(e) {
@@ -153,26 +153,22 @@ function oe(e) {
153
153
  })(e);
154
154
  }
155
155
  // src/components/SwipeNav.tsx
156
- var se = ({ isFirst: e, isLast: t, activeIndex: n, textDirection: r }) => {
157
- let i = _(), a = r === "RTL";
156
+ var se = ({ isFirst: e, isLast: t, activeIndex: n }) => {
157
+ let r = _();
158
158
  return /* @__PURE__ */ x("div", {
159
159
  className: "swipernavigation",
160
160
  "data-index-id": n,
161
161
  children: [/* @__PURE__ */ b("button", {
162
- className: `ui btn swipe prev ${(a ? t : e) ? " disabled" : ""}`,
163
- disabled: a ? t : e,
164
- "aria-label": a ? "Next page" : "Previous page",
165
- onClick: () => {
166
- a ? i.slideNext() : i.slidePrev();
167
- },
162
+ className: `ui btn swipe prev ${e ? " disabled" : ""}`,
163
+ disabled: e,
164
+ "aria-label": "Previous page",
165
+ onClick: () => r.slidePrev(),
168
166
  children: /* @__PURE__ */ b(oe, { size: "75%" })
169
167
  }), /* @__PURE__ */ b("button", {
170
- disabled: a ? e : t,
171
- "aria-label": a ? "Previous page" : "Next page",
172
- onClick: () => {
173
- a ? i.slidePrev() : i.slideNext();
174
- },
175
- className: `ui btn swipe next ${(a ? e : t) ? " disabled" : ""}`,
168
+ disabled: t,
169
+ "aria-label": "Next page",
170
+ onClick: () => r.slideNext(),
171
+ className: `ui btn swipe next ${t ? " disabled" : ""}`,
176
172
  children: /* @__PURE__ */ b(ae, { size: "75%" })
177
173
  })]
178
174
  });
@@ -2913,8 +2909,8 @@ function po(e, { defaultTransition: t = {}, ...n } = {}, r, i) {
2913
2909
  }
2914
2910
  co(u, m, e);
2915
2911
  }
2916
- let ee = w + b;
2917
- so(r, c, y, u, w, ee), g = Math.max(x + b, g), f = Math.max(ee, f);
2912
+ let E = w + b;
2913
+ so(r, c, y, u, w, E), g = Math.max(x + b, g), f = Math.max(E, f);
2918
2914
  };
2919
2915
  if ($(p)) {
2920
2916
  let e = mo(p, s);
@@ -3394,7 +3390,7 @@ var Ho = o.memo(Vo), Uo = {
3394
3390
  }, 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
3391
  let h = _(), g = e(), { bookId: v, slug: S, analytics: C } = g, w = a || o || s || l !== void 0 && l <= Go, T = p(!1);
3396
3392
  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]);
3393
+ let E = w || T.current, { audio: D, words: ee, background: te, media: ne = [], layoutStyle: O = le.BOTTOM, textPosition: re, textStyle: k } = t, A = O === le.BOTTOM ? "layout-btm-aligned" : "", [j, ie] = 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(() => D?.pageAudio?.segments ? D.pageAudio.segments : ee && ee.length > 0 ? ee : [], [D, ee]);
3398
3394
  u(() => {
3399
3395
  let e = null;
3400
3396
  return a && P === null && fe && pe && (e = setTimeout(() => {
@@ -3410,7 +3406,7 @@ var Ho = o.memo(Vo), Uo = {
3410
3406
  ]), u(() => (se.current = !0, () => {
3411
3407
  se.current = !1;
3412
3408
  }), []), u(() => {
3413
- oe.current === !0 && P === !1 && a && C?.onAudioCompleted?.(v, t._id, E?.pageAudio?.mp3 ?? t._id), oe.current = P;
3409
+ oe.current === !0 && P === !1 && a && C?.onAudioCompleted?.(v, t._id, D?.pageAudio?.mp3 ?? t._id), oe.current = P;
3414
3410
  }, [P]);
3415
3411
  let he = c(async (e) => {
3416
3412
  C?.onWordTapped?.(v, t._id, e.word), M.current.forEach((t) => {
@@ -3421,7 +3417,7 @@ var Ho = o.memo(Vo), Uo = {
3421
3417
  let n = F.findIndex((t) => t.word === e.word && t.start === e.start);
3422
3418
  if (n > -1) {
3423
3419
  let e = F[n];
3424
- j([n]), await i((e.end - e.start) * 1e3 + 500), se.current && j([]);
3420
+ ie([n]), await i((e.end - e.start) * 1e3 + 500), se.current && ie([]);
3425
3421
  }
3426
3422
  }, [
3427
3423
  C,
@@ -3452,42 +3448,42 @@ var Ho = o.memo(Vo), Uo = {
3452
3448
  e.element?.triggerEffect();
3453
3449
  }, t.start * 1e3);
3454
3450
  });
3455
- }), N.current?.onPlay(), C?.onAudioPlayed?.(v, t._id, E?.pageAudio?.mp3 ?? t._id));
3451
+ }), N.current?.onPlay(), C?.onAudioPlayed?.(v, t._id, D?.pageAudio?.mp3 ?? t._id));
3456
3452
  }, [
3457
3453
  C,
3458
3454
  v,
3459
3455
  t._id,
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", {
3456
+ D
3457
+ ]), ve = re ?? Uo, I = ve.left * r / 100, ye = ve.top * r / 100, L = 1200 * r / 100, R = F.length > 0 ? O === le.DYNAMIC ? /* @__PURE__ */ b("div", {
3462
3458
  className: "page-text-overlay",
3463
3459
  dir: d.toLowerCase(),
3464
3460
  style: {
3465
3461
  left: 0,
3466
3462
  top: 0,
3467
3463
  transform: `translate(${I}px, ${ye}px)`,
3468
- width: O?.textWidth ? `${O.textWidth * r / 100}px` : "fit-content",
3464
+ width: k?.textWidth ? `${k.textWidth * r / 100}px` : "fit-content",
3469
3465
  maxWidth: `${L}px`
3470
3466
  },
3471
3467
  children: /* @__PURE__ */ b("div", {
3472
3468
  style: {
3473
3469
  display: "inline-block",
3474
- width: O?.textWidth ? "100%" : void 0,
3470
+ width: k?.textWidth ? "100%" : void 0,
3475
3471
  padding: "6px 8px",
3476
- fontSize: O?.fontSize ?? Wo,
3472
+ fontSize: k?.fontSize ?? Wo,
3477
3473
  lineHeight: 1.2,
3478
- backgroundColor: O?.background ?? "transparent",
3479
- color: O?.color ?? "inherit",
3480
- whiteSpace: O?.textWidth ? "normal" : "nowrap",
3481
- wordBreak: O?.textWidth ? "break-word" : void 0,
3474
+ backgroundColor: k?.background ?? "transparent",
3475
+ color: k?.color ?? "inherit",
3476
+ whiteSpace: k?.textWidth ? "normal" : "nowrap",
3477
+ wordBreak: k?.textWidth ? "break-word" : void 0,
3482
3478
  boxSizing: "border-box"
3483
3479
  },
3484
3480
  children: /* @__PURE__ */ b(de, {
3485
3481
  onWordSelect: he,
3486
3482
  segments: F,
3487
- pageAudio: E?.pageAudio?.path ? E.pageAudio : null,
3483
+ pageAudio: D?.pageAudio?.path ? D.pageAudio : null,
3488
3484
  ref: N,
3489
3485
  setIsPlaying: ae,
3490
- highlightIds: A,
3486
+ highlightIds: j,
3491
3487
  textDirection: d
3492
3488
  })
3493
3489
  })
@@ -3501,27 +3497,27 @@ var Ho = o.memo(Vo), Uo = {
3501
3497
  children: /* @__PURE__ */ b(de, {
3502
3498
  onWordSelect: he,
3503
3499
  segments: F,
3504
- pageAudio: E?.pageAudio?.path ? E.pageAudio : null,
3500
+ pageAudio: D?.pageAudio?.path ? D.pageAudio : null,
3505
3501
  ref: N,
3506
3502
  setIsPlaying: ae,
3507
- highlightIds: A,
3503
+ highlightIds: j,
3508
3504
  textDirection: d
3509
3505
  })
3510
3506
  })
3511
3507
  })
3512
3508
  }) : null;
3513
3509
  return /* @__PURE__ */ x("div", {
3514
- className: `pageContentWrapper ${k}`,
3510
+ className: `pageContentWrapper ${A}`,
3515
3511
  dir: d.toLowerCase(),
3516
3512
  inert: !a || void 0,
3517
3513
  tabIndex: a ? void 0 : -1,
3518
3514
  "aria-hidden": !a || void 0,
3519
3515
  children: [
3520
- ne && /* @__PURE__ */ b(ue, {
3521
- background: ne,
3522
- eager: ee
3516
+ te && /* @__PURE__ */ b(ue, {
3517
+ background: te,
3518
+ eager: E
3523
3519
  }),
3524
- E && a ? /* @__PURE__ */ b("button", {
3520
+ D && a ? /* @__PURE__ */ b("button", {
3525
3521
  disabled: P === !0,
3526
3522
  onClick: _e,
3527
3523
  "aria-label": P ? "Audio is playing" : "Play audio",
@@ -3531,7 +3527,7 @@ var Ho = o.memo(Vo), Uo = {
3531
3527
  className: `${P ? "playing" : ""}`
3532
3528
  })
3533
3529
  }) : null,
3534
- ee && re && re.map((e, t) => e.effect ? /* @__PURE__ */ b(me, {
3530
+ E && ne && ne.map((e, t) => e.effect ? /* @__PURE__ */ b(me, {
3535
3531
  item: e,
3536
3532
  screenScale: r,
3537
3533
  children: /* @__PURE__ */ b(Bo, {
@@ -3570,13 +3566,13 @@ var Ho = o.memo(Vo), Uo = {
3570
3566
  type: "static",
3571
3567
  staticFolder: "GDLBookContent"
3572
3568
  }, 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({
3569
+ let [s, c] = m(null), [l, d] = m(null), [f, p] = m(null), [_, E] = m(null), D = w([...s?.fonts ?? [], ...i], s?.language, s?.script), ee = T(D), te = D[0]?.family || "Quicksand", ne = s?.illustration && s.illustration.path || s?.coverText && s.coverText !== "", O = s?.credits && s.credits?.text || s?.credits?.logos && s.credits?.logos.length > 0, [re, k] = m({
3574
3570
  width: 0,
3575
3571
  height: 0
3576
- }), { width: k, height: A } = ie, j = s?.config.textDirection || "LTR";
3572
+ }), { width: A, height: j } = re, ie = s?.config.textDirection || "LTR";
3577
3573
  u(() => {
3578
3574
  let e = () => {
3579
- O({
3575
+ k({
3580
3576
  width: window.innerWidth,
3581
3577
  height: window.innerHeight
3582
3578
  });
@@ -3589,13 +3585,13 @@ var Ho = o.memo(Vo), Uo = {
3589
3585
  width: qo,
3590
3586
  height: Jo
3591
3587
  };
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(() => {
3588
+ return (A < qo || j < Jo) && (Jo / j > qo / A ? (N = {
3589
+ height: j,
3590
+ width: j * Yo
3591
+ }, M = j / Jo * 100) : (N = {
3592
+ width: A,
3593
+ height: A / Yo
3594
+ }, M = A / qo * 100)), u(() => {
3599
3595
  !s && e && (async (e) => {
3600
3596
  let t = a.type === "api" ? `${a.apiHost}/api/book?slug=${e}` : `/${a.staticFolder}/${e}/content.json`;
3601
3597
  try {
@@ -3616,7 +3612,7 @@ var Ho = o.memo(Vo), Uo = {
3616
3612
  "aria-label": "Loading",
3617
3613
  className: "player centered",
3618
3614
  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, {
3615
+ })] }) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("style", { children: `:root, :host, .player { --player-font-family: '${C(te)}'; }${ee}${S}` }), /* @__PURE__ */ b(t, {
3620
3616
  bookId: s._id,
3621
3617
  slug: s.slug,
3622
3618
  assetConfig: a,
@@ -3632,14 +3628,14 @@ var Ho = o.memo(Vo), Uo = {
3632
3628
  },
3633
3629
  className: "mySwiper swiper-container",
3634
3630
  speed: 1200,
3635
- dir: j.toLowerCase() ?? "ltr",
3631
+ dir: "ltr",
3636
3632
  modules: [v],
3637
3633
  pagination: {
3638
3634
  clickable: !1,
3639
3635
  type: "progressbar"
3640
3636
  },
3641
3637
  onSwiper: (e) => {
3642
- ee(e);
3638
+ E(e);
3643
3639
  },
3644
3640
  style: { ...N },
3645
3641
  a11y: {
@@ -3648,7 +3644,7 @@ var Ho = o.memo(Vo), Uo = {
3648
3644
  nextSlideMessage: "Next page"
3649
3645
  },
3650
3646
  children: [
3651
- re && /* @__PURE__ */ b(g, {
3647
+ ne && /* @__PURE__ */ b(g, {
3652
3648
  "data-hash": "cover",
3653
3649
  children: ({ isActive: e }) => /* @__PURE__ */ x("div", {
3654
3650
  className: "cover-page",
@@ -3665,13 +3661,13 @@ var Ho = o.memo(Vo), Uo = {
3665
3661
  })
3666
3662
  }), /* @__PURE__ */ x("div", {
3667
3663
  className: "cover-text",
3668
- dir: j.toLowerCase() || "ltr",
3664
+ dir: ie.toLowerCase() || "ltr",
3669
3665
  children: [/* @__PURE__ */ b("h1", { children: s.title }), s.coverText && /* @__PURE__ */ b("small", { children: s.coverText })]
3670
3666
  })]
3671
3667
  })
3672
3668
  }),
3673
3669
  s.body.map((e, t) => {
3674
- let n = t + +!!re, r = Math.abs(n - (f ?? 0));
3670
+ let n = t + +!!ne, r = Math.abs(n - (f ?? 0));
3675
3671
  return /* @__PURE__ */ b(g, {
3676
3672
  className: "overflow-hidden",
3677
3673
  "data-hash": e._id,
@@ -3682,11 +3678,11 @@ var Ho = o.memo(Vo), Uo = {
3682
3678
  isPrev: n,
3683
3679
  isNext: i,
3684
3680
  distanceFromActive: r,
3685
- textDirection: j
3681
+ textDirection: ie
3686
3682
  })
3687
3683
  }, e._id);
3688
3684
  }),
3689
- D && /* @__PURE__ */ b(g, {
3685
+ O && /* @__PURE__ */ b(g, {
3690
3686
  "data-hash": "credits",
3691
3687
  children: ({ isActive: e }) => /* @__PURE__ */ x("div", {
3692
3688
  className: "credits-page",
@@ -3702,7 +3698,7 @@ var Ho = o.memo(Vo), Uo = {
3702
3698
  }, e))
3703
3699
  }), /* @__PURE__ */ x("div", {
3704
3700
  className: "credits-page-bottom",
3705
- dir: j.toLowerCase() || "ltr",
3701
+ dir: ie.toLowerCase() || "ltr",
3706
3702
  children: [/* @__PURE__ */ x("h1", { children: [
3707
3703
  "\"",
3708
3704
  s.title,
@@ -3714,16 +3710,15 @@ var Ho = o.memo(Vo), Uo = {
3714
3710
  _ && _.slides.length > 1 && /* @__PURE__ */ b(se, {
3715
3711
  isFirst: _.isBeginning === !0,
3716
3712
  isLast: _.isEnd === !0,
3717
- activeIndex: f,
3718
- textDirection: j
3713
+ activeIndex: f
3719
3714
  })
3720
3715
  ]
3721
3716
  })
3722
3717
  })
3723
3718
  })
3724
3719
  })] });
3725
- }, Zo = "1.5.2";
3720
+ }, Zo = "1.5.3";
3726
3721
  function Qo() {
3727
- return "1.5.2";
3722
+ return "1.5.3";
3728
3723
  }
3729
3724
  export { Zo as PLAYER_VERSION, Xo as Player, Qo as getPlayerVersion };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curiouslearning/gdl-player-core",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Package containing the core player components for the GDL interactive books",
5
5
  "homepage": "https://github.com/curiouslearning/gdl-player-core#readme",
6
6
  "bugs": {