28 lines
110 KiB
JavaScript
28 lines
110 KiB
JavaScript
|
import{r as m,R as we}from"./vendor.38e754a4.js";/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */var Ae=function(t,e){return Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ae(t,e)};function _r(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Ae(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var g=function(){return g=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},g.apply(this,arguments)};function U(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Ri(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function R(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,a=[],i;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function K(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}var Q=function(t){return{isEnabled:function(e){return t.some(function(r){return!!e[r]})}}},Rt={measureLayout:Q(["layout","layoutId","drag"]),animation:Q(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Q(["exit"]),drag:Q(["drag","dragControls"]),focus:Q(["whileFocus"]),hover:Q(["whileHover","onHoverStart","onHoverEnd"]),tap:Q(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Q(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Q(["whileInView","onViewportEnter","onViewportLeave"])};function Me(t){for(var e in t)t[e]!==null&&(e==="projectionNodeConstructor"?Rt.projectionNodeConstructor=t[e]:Rt[e].Component=t[e])}var Oi=function(){},Jt=function(){},Re=m.exports.createContext({strict:!1}),Ur=Object.keys(Rt),Li=Ur.length;function Di(t,e,r){var n=[];if(m.exports.useContext(Re),!e)return null;for(var o=0;o<Li;o++){var a=Ur[o],i=Rt[a],s=i.isEnabled,u=i.Component;s(t)&&u&&n.push(m.exports.createElement(u,g({key:a},t,{visualElement:e})))}return n}var gt=m.exports.createContext({transformPagePoint:function(t){return t},isStatic:!1}),Qt=m.exports.createContext({});function Nr(){return m.exports.useContext(Qt).visualElement}var yt=m.exports.createContext(null),Ot=typeof window!="undefined",te=Ot?m.exports.useLayoutEffect:m.exports.useEffect;function Ii(t,e,r,n){var o=m.exports.useContext(Re),a=Nr(),i=m.exports.useContext(yt),s=m.exports.useRef(void 0);n||(n=o.renderer),!s.current&&n&&(s.current=n(t,{visualState:e,parent:a,props:r,presenceId:i==null?void 0:i.id,blockInitialAnimation:(i==null?void 0:i.initial)===!1}));var u=s.current;return te(function(){u==null||u.syncRender()}),m.exports.useEffect(function(){var l;(l=u==null?void 0:u.animationState)===null||l===void 0||l.animateChanges()}),te(function(){return function(){return u==null?void 0:u.notifyUnmount()}},[]),u}function xt(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Fi(t,e,r){return m.exports.useCallback(function(n){var o;n&&((o=t.mount)===null||o===void 0||o.call(t,n)),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):xt(r)&&(r.current=n))},[e])}function Hr(t){return Array.isArray(t)}function X(t){return typeof t=="string"||Hr(t)}function ji(t){var e={};return t.forEachValue(function(r,n){return e[n]=r.get()}),e}function Bi(t){var e={};return t.fo
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */function Xr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}const ie=(t,e,r)=>Math.min(Math.max(r,t),e),Ie=.001,Ki=.01,$r=10,Yi=.05,Wi=1;function Xi({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let o,a;Oi(t<=$r*1e3);let i=1-e;i=ie(Yi,Wi,i),t=ie(Ki,$r,t/1e3),i<1?(o=l=>{const c=l*i,v=c*t,d=c-r,f=Fe(l,i),p=Math.exp(-v);return Ie-d/f*p},a=l=>{const v=l*i*t,d=v*r+r,f=Math.pow(i,2)*Math.pow(l,2)*t,p=Math.exp(-v),h=Fe(Math.pow(l,2),i);return(-o(l)+Ie>0?-1:1)*((d-f)*p)/h}):(o=l=>{const c=Math.exp(-l*t),v=(l-r)*t+1;return-Ie+c*v},a=l=>{const c=Math.exp(-l*t),v=(r-l)*(t*t);return c*v});const s=5/t,u=Zi(o,a,s);if(t=t*1e3,isNaN(u))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:i*2*Math.sqrt(n*l),duration:t}}}const $i=12;function Zi(t,e,r){let n=r;for(let o=1;o<$i;o++)n=n-t(n)/e(n);return n}function Fe(t,e){return t*Math.sqrt(1-e*e)}const qi=["duration","bounce"],Ji=["stiffness","damping","mass"];function Zr(t,e){return e.some(r=>t[r]!==void 0)}function Qi(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!Zr(t,Ji)&&Zr(t,qi)){const r=Xi(t);e=Object.assign(Object.assign(Object.assign({},e),r),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function je(t){var{from:e=0,to:r=1,restSpeed:n=2,restDelta:o}=t,a=Xr(t,["from","to","restSpeed","restDelta"]);const i={done:!1,value:e};let{stiffness:s,damping:u,mass:l,velocity:c,duration:v,isResolvedFromDuration:d}=Qi(a),f=qr,p=qr;function h(){const x=c?-(c/1e3):0,y=r-e,b=u/(2*Math.sqrt(s*l)),S=Math.sqrt(s/l)/1e3;if(o!=null||(o=Math.abs(r-e)<=1?.01:.4),b<1){const P=Fe(S,b);f=V=>{const A=Math.exp(-b*S*V);return r-A*((x+b*S*y)/P*Math.sin(P*V)+y*Math.cos(P*V))},p=V=>{const A=Math.exp(-b*S*V);return b*S*A*(Math.sin(P*V)*(x+b*S*y)/P+y*Math.cos(P*V))-A*(Math.cos(P*V)*(x+b*S*y)-P*y*Math.sin(P*V))}}else if(b===1)f=P=>r-Math.exp(-S*P)*(y+(x+S*y)*P);else{const P=S*Math.sqrt(b*b-1);f=V=>{const A=Math.exp(-b*S*V),O=Math.min(P*V,300);return r-A*((x+b*S*y)*Math.sinh(O)+P*y*Math.cosh(O))/P}}}return h(),{next:x=>{const y=f(x);if(d)i.done=x>=v;else{const b=p(x)*1e3,S=Math.abs(b)<=n,P=Math.abs(r-y)<=o;i.done=S&&P}return i.value=i.done?r:y,i},flipTarget:()=>{c=-c,[e,r]=[r,e],h()}}}je.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const qr=t=>0,It=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},I=(t,e,r)=>-r*t+r*e+t,Jr=(t,e)=>r=>Math.max(Math.min(r,e),t),Ft=t=>t%1?Number(t.toFixed(5)):t,jt=/(-)?([\d]*\.?[\d])+/g,Be=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ta=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Bt(t){return typeof t=="string"}const lt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},_t=Object.assign(Object.assign({},lt),{transform:Jr(0,1)}),ae=Object.assign(Object.assign({},lt),{default:1}),Ut=t=>({test:e=>Bt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Ut("deg"),ot=Ut("%"),C=Ut("px"),ea=Ut("vh"),ra=Ut("vw"),Qr=Object.assign(Object.assign({},ot),{parse:t=>ot.parse(t)/100,transform:t=>ot.transform(t*100)}),_e=(t,e)=>r=>Boolean(Bt(r)&&ta.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),tn=(t,e,r)=>n=>{if(!Bt(n))return n;const[o,a,i,s]=n.match(jt);return{[t]:parseFloat(o),[e]:parseFloat(a),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}},ct={test:_e("hsl","hue"),parse:tn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+ot.transform(Ft(e))+", "+ot.transform(Ft(r))+", "+Ft(_t.transform(n))+")"},na=Jr(0,255),Ue=Object.assign(Object.assign({},lt),{transform:t=>M
|