@epic-web/workshop-app 4.22.0 → 4.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/assets/_exerciseNumber-CpcJsfoV.js +2 -0
- package/build/client/assets/{_exerciseNumber-Cq0nozYz.js.map → _exerciseNumber-CpcJsfoV.js.map} +1 -1
- package/build/client/assets/_exerciseNumber_.finished-Ddb3J5ls.js +2 -0
- package/build/client/assets/{_exerciseNumber_.finished-Q9qnPuZX.js.map → _exerciseNumber_.finished-Ddb3J5ls.js.map} +1 -1
- package/build/client/assets/{_layout-AgYGL72C.js → _layout-BLsKV5zF.js} +2 -2
- package/build/client/assets/{_layout-AgYGL72C.js.map → _layout-BLsKV5zF.js.map} +1 -1
- package/build/client/assets/_layout-CGLKLU3y.js +2 -0
- package/build/client/assets/{_layout-C8uU4Hwj.js.map → _layout-CGLKLU3y.js.map} +1 -1
- package/build/client/assets/_layout-DVR5FOsb.js +2 -0
- package/build/client/assets/_layout-DVR5FOsb.js.map +1 -0
- package/build/client/assets/app-BhrXo-z3.js +2 -0
- package/build/client/assets/{app-BiWJY58g.js.map → app-BhrXo-z3.js.map} +1 -1
- package/build/client/assets/diff-BNr0PhFR.js +2 -0
- package/build/client/assets/{diff-Cw8ktQ1-.js.map → diff-BNr0PhFR.js.map} +1 -1
- package/build/client/assets/{diff-CpFxuKA2.js → diff-Cr4LLBag.js} +2 -2
- package/build/client/assets/{diff-CpFxuKA2.js.map → diff-Cr4LLBag.js.map} +1 -1
- package/build/client/assets/{epic-video-iluUs1-s.js → epic-video-CxZy3iqK.js} +2 -2
- package/build/client/assets/{epic-video-iluUs1-s.js.map → epic-video-CxZy3iqK.js.map} +1 -1
- package/build/client/assets/finished-CU8QBU41.js +2 -0
- package/build/client/assets/{finished-Bm-bCUU2.js.map → finished-CU8QBU41.js.map} +1 -1
- package/build/client/assets/index-6GyYWV9G.js +2 -0
- package/build/client/assets/{index-BATSX33w.js.map → index-6GyYWV9G.js.map} +1 -1
- package/build/client/assets/index-BotyhhDm.js +2 -0
- package/build/client/assets/{index-Tfdnz1AB.js.map → index-BotyhhDm.js.map} +1 -1
- package/build/client/assets/index-c5oITeyN.js +2 -0
- package/build/client/assets/{index-Dm1ll1kT.js.map → index-c5oITeyN.js.map} +1 -1
- package/build/client/assets/manifest-b61acbe0.js +1 -0
- package/build/client/assets/mdx-D7ttfz2V.js +2 -0
- package/build/client/assets/mdx-D7ttfz2V.js.map +1 -0
- package/build/client/assets/onboarding-Co4cldZ0.js +2 -0
- package/build/client/assets/{onboarding-CnmE4HLR.js.map → onboarding-Co4cldZ0.js.map} +1 -1
- package/build/client/assets/pe-CUZaIcdt.js +2 -0
- package/build/client/assets/pe-CUZaIcdt.js.map +1 -0
- package/build/client/assets/preview-CdiZ0d0L.js +2 -0
- package/build/client/assets/preview-CdiZ0d0L.js.map +1 -0
- package/build/client/assets/progress-Biq-ngNF.js +2 -0
- package/build/client/assets/{progress-BsY6hGPp.js.map → progress-Biq-ngNF.js.map} +1 -1
- package/build/client/assets/{root-Tcnfz99O.js → root-D_FY953d.js} +2 -2
- package/build/client/assets/{root-Tcnfz99O.js.map → root-D_FY953d.js.map} +1 -1
- package/build/client/assets/set-playground-BXHckvUG.js +2 -0
- package/build/client/assets/set-playground-BXHckvUG.js.map +1 -0
- package/build/client/assets/test-BRkbo9G9.js +2 -0
- package/build/client/assets/{test-D9HsTvpe.js.map → test-BRkbo9G9.js.map} +1 -1
- package/build/client/assets/tests-DQuoxpDA.js +4 -0
- package/build/client/assets/tests-DQuoxpDA.js.map +1 -0
- package/build/server/index.js +122 -69
- package/build/server/index.js.map +1 -1
- package/package.json +3 -3
- package/build/client/assets/_exerciseNumber-Cq0nozYz.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-Q9qnPuZX.js +0 -2
- package/build/client/assets/_layout-BocZ2xWF.js +0 -2
- package/build/client/assets/_layout-BocZ2xWF.js.map +0 -1
- package/build/client/assets/_layout-C8uU4Hwj.js +0 -2
- package/build/client/assets/app-BiWJY58g.js +0 -2
- package/build/client/assets/diff-Cw8ktQ1-.js +0 -2
- package/build/client/assets/finished-Bm-bCUU2.js +0 -2
- package/build/client/assets/index-BATSX33w.js +0 -2
- package/build/client/assets/index-Dm1ll1kT.js +0 -2
- package/build/client/assets/index-Tfdnz1AB.js +0 -2
- package/build/client/assets/manifest-4a3cf2ec.js +0 -1
- package/build/client/assets/mdx-M0kcP-mP.js +0 -2
- package/build/client/assets/mdx-M0kcP-mP.js.map +0 -1
- package/build/client/assets/onboarding-CnmE4HLR.js +0 -2
- package/build/client/assets/preview-CqrRe2BV.js +0 -2
- package/build/client/assets/preview-CqrRe2BV.js.map +0 -1
- package/build/client/assets/progress-BsY6hGPp.js +0 -2
- package/build/client/assets/set-playground-Cdy8VlVD.js +0 -2
- package/build/client/assets/set-playground-Cdy8VlVD.js.map +0 -1
- package/build/client/assets/test-D9HsTvpe.js +0 -2
- package/build/client/assets/tests-CmNNBElK.js +0 -4
- package/build/client/assets/tests-CmNNBElK.js.map +0 -1
- package/build/client/assets/use-hydrated-Citou692.js +0 -2
- package/build/client/assets/use-hydrated-Citou692.js.map +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{r as P,j as N,u as Ii,c as Ni}from"./index-1cKOJFpX.js";import{c as nn}from"./clsx-B-dksMZM.js";import{e as Ui,d as Ki,a as Wi}from"./components-CME-nGId.js";const ps=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Wt=P.createContext({}),Ve=P.createContext(null),we=typeof document<"u",$i=we?P.useLayoutEffect:P.useEffect,ms=P.createContext({strict:!1}),Ce=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Gi="framerAppearId",gs="data-"+Ce(Gi),_i={skipAnimations:!1,useManualTiming:!1};class sn{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function Hi(t){let e=new sn,n=new sn,s=0,i=!1,o=!1;const r=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const h=u&&i,f=h?e:n;return c&&r.add(l),f.add(l)&&h&&i&&(s=e.order.length),l},cancel:l=>{n.remove(l),r.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),s=e.order.length,s)for(let c=0;c<s;c++){const u=e.order[c];r.has(u)&&(a.schedule(u),t()),u(l)}i=!1,o&&(o=!1,a.process(l))}};return a}const Mt=["read","resolveKeyframes","update","preRender","render","postRender"],zi=40;function ys(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Mt.reduce((h,f)=>(h[f]=Hi(()=>n=!0),h),{}),r=h=>{o[h].process(i)},a=()=>{const h=performance.now();n=!1,i.delta=s?1e3/60:Math.max(Math.min(h-i.timestamp,zi),1),i.timestamp=h,i.isProcessing=!0,Mt.forEach(r),i.isProcessing=!1,n&&e&&(s=!1,t(a))},l=()=>{n=!0,s=!0,i.isProcessing||t(a)};return{schedule:Mt.reduce((h,f)=>{const d=o[f];return h[f]=(p,m=!1,y=!1)=>(n||l(),d.schedule(p,m,y)),h},{}),cancel:h=>Mt.forEach(f=>o[f].cancel(h)),state:i,steps:o}}const{schedule:De,cancel:cu}=ys(queueMicrotask,!1);function lt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const vs=P.createContext({});let rn=!1;function Yi(t,e,n,s,i){const{visualElement:o}=P.useContext(Wt),r=P.useContext(ms),a=P.useContext(Ve),l=P.useContext(ps).reducedMotion,c=P.useRef();s=s||r.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,h=P.useContext(vs);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&qi(c.current,n,i,h),P.useInsertionEffect(()=>{u&&u.update(n,a)});const f=P.useRef(!!(n[gs]&&!window.HandoffComplete));return $i(()=>{u&&(u.updateFeatures(),De.render(u.render),f.current&&u.animationState&&u.animationState.animateChanges())}),P.useEffect(()=>{u&&(!f.current&&u.animationState&&u.animationState.animateChanges(),f.current&&(f.current=!1,rn||(rn=!0,queueMicrotask(Xi))))}),u}function Xi(){window.HandoffComplete=!0}function qi(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:xs(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&<(a),visualElement:t,scheduleRender:()=>t.scheduleRender(),animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,layoutScroll:l,layoutRoot:c})}function xs(t){if(t)return t.options.allowProjection!==!1?t.projection:xs(t.parent)}function Zi(t,e,n){return P.useCallback(s=>{s&&t.mount&&t.mount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):lt(n)&&(n.current=s))},[e])}function Pt(t){return typeof t=="string"||Array.isArray(t)}function $t(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Me=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Re=["initial",...Me];function Gt(t){return $t(t.animate)||Re.some(e=>Pt(t[e]))}function Ts(t){return!!(Gt(t)||t.variants)}function Qi(t,e){if(Gt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Pt(n)?n:void 0,animate:Pt(s)?s:void 0}}return t.inherit!==!1?e:{}}function Ji(t){const{initial:e,animate:n}=Qi(t,P.useContext(Wt));return P.useMemo(()=>({initial:e,animate:n}),[on(e),on(n)])}function on(t){return Array.isArray(t)?t.join(" "):t}const an={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ft={};for(const t in an)ft[t]={isEnabled:e=>an[t].some(n=>!!e[n])};function tr(t){for(const e in t)ft[e]={...ft[e],...t[e]}}const Ps=P.createContext({}),er=Symbol.for("motionComponentSymbol"),E=t=>t;let ce=E;function nr({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:s,Component:i}){t&&tr(t);function o(a,l){let c;const u={...P.useContext(ps),...a,layoutId:sr(a)},{isStatic:h}=u,f=Ji(a),d=s(a,h);if(!h&&we){ir();const p=rr(u);c=p.MeasureLayout,f.visualElement=Yi(i,d,u,e,p.ProjectionNode)}return N.jsxs(Wt.Provider,{value:f,children:[c&&f.visualElement?N.jsx(c,{visualElement:f.visualElement,...u}):null,n(i,a,Zi(d,f.visualElement,l),d,h,f.visualElement)]})}const r=P.forwardRef(o);return r[er]=i,r}function sr({layoutId:t}){const e=P.useContext(Ps).id;return e&&t!==void 0?e+"-"+t:t}function ir(t,e){P.useContext(ms).strict}function rr(t){const{drag:e,layout:n}=ft;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function or(t){function e(s,i={}){return nr(t(s,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(s,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const ar=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Le(t){return typeof t!="string"||t.includes("-")?!1:!!(ar.indexOf(t)>-1||/[A-Z]/u.test(t))}const Bt={};function lr(t){Object.assign(Bt,t)}const Vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ot=new Set(Vt);function bs(t,{layout:e,layoutId:n}){return ot.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Bt[t]||t==="opacity")}const L=t=>!!(t&&t.getVelocity),ur={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cr=Vt.length;function hr(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},s,i){let o="";for(let r=0;r<cr;r++){const a=Vt[r];if(t[a]!==void 0){const l=ur[a]||a;o+=`${l}(${t[a]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,s?"":o):n&&s&&(o="none"),o}const Ss=t=>e=>typeof e=="string"&&e.startsWith(t),As=Ss("--"),fr=Ss("var(--"),Ee=t=>fr(t)?dr.test(t.split("/*")[0].trim()):!1,dr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,pr=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Q=(t,e,n)=>n>e?e:n<t?t:n,pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},yt={...pt,transform:t=>Q(0,1,t)},Rt={...pt,default:1},vt=t=>Math.round(t*1e5)/1e5,Fe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,mr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,gr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function wt(t){return typeof t=="string"}const Ct=t=>({test:e=>wt(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Y=Ct("deg"),U=Ct("%"),T=Ct("px"),yr=Ct("vh"),vr=Ct("vw"),ln={...U,parse:t=>U.parse(t)/100,transform:t=>U.transform(t*100)},un={...pt,transform:Math.round},Vs={borderWidth:T,borderTopWidth:T,borderRightWidth:T,borderBottomWidth:T,borderLeftWidth:T,borderRadius:T,radius:T,borderTopLeftRadius:T,borderTopRightRadius:T,borderBottomRightRadius:T,borderBottomLeftRadius:T,width:T,maxWidth:T,height:T,maxHeight:T,size:T,top:T,right:T,bottom:T,left:T,padding:T,paddingTop:T,paddingRight:T,paddingBottom:T,paddingLeft:T,margin:T,marginTop:T,marginRight:T,marginBottom:T,marginLeft:T,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:Rt,scaleX:Rt,scaleY:Rt,scaleZ:Rt,skew:Y,skewX:Y,skewY:Y,distance:T,translateX:T,translateY:T,translateZ:T,x:T,y:T,z:T,perspective:T,transformPerspective:T,opacity:yt,originX:ln,originY:ln,originZ:T,zIndex:un,backgroundPositionX:T,backgroundPositionY:T,fillOpacity:yt,strokeOpacity:yt,numOctaves:un};function ke(t,e,n,s){const{style:i,vars:o,transform:r,transformOrigin:a}=t;let l=!1,c=!1,u=!0;for(const h in e){const f=e[h];if(As(h)){o[h]=f;continue}const d=Vs[h],p=pr(f,d);if(ot.has(h)){if(l=!0,r[h]=p,!u)continue;f!==(d.default||0)&&(u=!1)}else h.startsWith("origin")?(c=!0,a[h]=p):i[h]=p}if(e.transform||(l||s?i.transform=hr(t.transform,n,u,s):i.transform&&(i.transform="none")),c){const{originX:h="50%",originY:f="50%",originZ:d=0}=a;i.transformOrigin=`${h} ${f} ${d}`}}const Be=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ws(t,e,n){for(const s in e)!L(e[s])&&!bs(s,n)&&(t[s]=e[s])}function xr({transformTemplate:t},e,n){return P.useMemo(()=>{const s=Be();return ke(s,e,{enableHardwareAcceleration:!n},t),Object.assign({},s.vars,s.style)},[e])}function Tr(t,e,n){const s=t.style||{},i={};return ws(i,s,t),Object.assign(i,xr(t,e,n)),i}function Pr(t,e,n){const s={},i=Tr(t,e,n);return t.drag&&t.dragListener!==!1&&(s.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=i,s}const br=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function jt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||br.has(t)}let Cs=t=>!jt(t);function Sr(t){t&&(Cs=e=>e.startsWith("on")?!jt(e):t(e))}try{Sr(require("@emotion/is-prop-valid").default)}catch{}function Ar(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Cs(i)||n===!0&&jt(i)||!e&&!jt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}function cn(t,e,n){return typeof t=="string"?t:T.transform(e+n*t)}function Vr(t,e,n){const s=cn(e,t.x,t.width),i=cn(n,t.y,t.height);return`${s} ${i}`}const wr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Cr={offset:"strokeDashoffset",array:"strokeDasharray"};function Dr(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?wr:Cr;t[o.offset]=T.transform(-s);const r=T.transform(e),a=T.transform(n);t[o.array]=`${r} ${a}`}function je(t,{attrX:e,attrY:n,attrScale:s,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...c},u,h,f){if(ke(t,c,u,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Vr(m,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),r!==void 0&&Dr(d,r,a,l,!1)}const Ds=()=>({...Be(),attrs:{}}),Oe=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Mr(t,e,n,s){const i=P.useMemo(()=>{const o=Ds();return je(o,e,{enableHardwareAcceleration:!1},Oe(s),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ws(o,t.style,t),i.style={...o,...i.style}}return i}function Rr(t=!1){return(n,s,i,{latestValues:o},r)=>{const l=(Le(n)?Mr:Pr)(s,o,r,n),c=Ar(s,typeof n=="string",t),u=n!==P.Fragment?{...c,...l,ref:i}:{},{children:h}=s,f=P.useMemo(()=>L(h)?h.get():h,[h]);return P.createElement(n,{...u,children:f})}}function Ms(t,{style:e,vars:n},s,i){Object.assign(t.style,e,i&&i.getProjectionStyles(s));for(const o in n)t.style.setProperty(o,n[o])}const Rs=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"]);function Ls(t,e,n,s){Ms(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Rs.has(i)?i:Ce(i),e.attrs[i])}function Ie(t,e,n){var s;const{style:i}=t,o={};for(const r in i)(L(i[r])||e.style&&L(e.style[r])||bs(r,t)||((s=n==null?void 0:n.getValue(r))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function Es(t,e,n){const s=Ie(t,e,n);for(const i in t)if(L(t[i])||L(e[i])){const o=Vt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}function hn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ne(t,e,n,s){if(typeof e=="function"){const[i,o]=hn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=hn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Lr(t){const e=P.useRef(null);return e.current===null&&(e.current=t()),e.current}const he=t=>Array.isArray(t),Er=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Fr=t=>he(t)?t[t.length-1]||0:t;function Et(t){const e=L(t)?t.get():t;return Er(e)?e.toValue():e}function kr({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},s,i,o){const r={latestValues:Br(s,i,o,t),renderState:e()};return n&&(r.mount=a=>n(s,a,r)),r}const Fs=t=>(e,n)=>{const s=P.useContext(Wt),i=P.useContext(Ve),o=()=>kr(t,e,s,i);return n?o():Lr(o)};function Br(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Et(o[f]);let{initial:r,animate:a}=t;const l=Gt(t),c=Ts(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;return h&&typeof h!="boolean"&&!$t(h)&&(Array.isArray(h)?h:[h]).forEach(d=>{const p=Ne(t,d);if(!p)return;const{transitionEnd:m,transition:y,...v}=p;for(const x in v){let g=v[x];if(Array.isArray(g)){const b=u?g.length-1:0;g=g[b]}g!==null&&(i[x]=g)}for(const x in m)i[x]=m[x]}),i}const{schedule:V,cancel:H,state:D,steps:qt}=ys(typeof requestAnimationFrame<"u"?requestAnimationFrame:E,!0),jr={useVisualState:Fs({scrapeMotionValuesFromProps:Es,createRenderState:Ds,onMount:(t,e,{renderState:n,latestValues:s})=>{V.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),V.render(()=>{je(n,s,{enableHardwareAcceleration:!1},Oe(e.tagName),t.transformTemplate),Ls(e,n)})}})},Or={useVisualState:Fs({scrapeMotionValuesFromProps:Ie,createRenderState:Be})};function Ir(t,{forwardMotionProps:e=!1},n,s){return{...Le(t)?jr:Or,preloadedFeatures:n,useRender:Rr(e),createVisualElement:s,Component:t}}function W(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const ks=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function _t(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const Nr=t=>e=>ks(e)&&t(e,_t(e));function $(t,e,n,s){return W(t,e,Nr(n),s)}const Ur=(t,e)=>n=>e(t(n)),G=(...t)=>t.reduce(Ur);function Bs(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const fn=Bs("dragHorizontal"),dn=Bs("dragVertical");function js(t){let e=!1;if(t==="y")e=dn();else if(t==="x")e=fn();else{const n=fn(),s=dn();n&&s?e=()=>{n(),s()}:(n&&n(),s&&s())}return e}function Os(){const t=js(!0);return t?(t(),!1):!0}class tt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function pn(t,e){const n=e?"pointerenter":"pointerleave",s=e?"onHoverStart":"onHoverEnd",i=(o,r)=>{if(o.pointerType==="touch"||Os())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e);const l=a[s];l&&V.postRender(()=>l(o,r))};return $(t.current,n,i,{passive:!t.getProps()[s]})}class Kr extends tt{mount(){this.unmount=G(pn(this.node,!0),pn(this.node,!1))}unmount(){}}class Wr extends tt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=G(W(this.node.current,"focus",()=>this.onFocus()),W(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Is=(t,e)=>e?t===e?!0:Is(t,e.parentElement):!1;function Zt(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,_t(n))}class $r extends tt{constructor(){super(...arguments),this.removeStartListeners=E,this.removeEndListeners=E,this.removeAccessibleListeners=E,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const s=this.node.getProps(),o=$(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:u,globalTapTarget:h}=this.node.getProps(),f=!h&&!Is(this.node.current,a.target)?u:c;f&&V.update(()=>f(a,l))},{passive:!(s.onTap||s.onPointerUp)}),r=$(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(s.onTapCancel||s.onPointerCancel)});this.removeEndListeners=G(o,r),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const r=a=>{a.key!=="Enter"||!this.checkPressEnd()||Zt("up",(l,c)=>{const{onTap:u}=this.node.getProps();u&&V.postRender(()=>u(l,c))})};this.removeEndListeners(),this.removeEndListeners=W(this.node.current,"keyup",r),Zt("down",(a,l)=>{this.startPress(a,l)})},n=W(this.node.current,"keydown",e),s=()=>{this.isPressing&&Zt("cancel",(o,r)=>this.cancelPress(o,r))},i=W(this.node.current,"blur",s);this.removeAccessibleListeners=G(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:s,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),s&&V.postRender(()=>s(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Os()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:s}=this.node.getProps();s&&V.postRender(()=>s(e,n))}mount(){const e=this.node.getProps(),n=$(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),s=W(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=G(n,s)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const fe=new WeakMap,Qt=new WeakMap,Gr=t=>{const e=fe.get(t.target);e&&e(t)},_r=t=>{t.forEach(Gr)};function Hr({root:t,...e}){const n=t||document;Qt.has(n)||Qt.set(n,{});const s=Qt.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(_r,{root:t,...e})),s[i]}function zr(t,e,n){const s=Hr(e);return fe.set(t,n),s.observe(t),()=>{fe.delete(t),s.unobserve(t)}}const Yr={some:0,all:1};class Xr extends tt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Yr[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return zr(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(qr(e,n))&&this.startObserver()}unmount(){}}function qr({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Zr={inView:{Feature:Xr},tap:{Feature:$r},focus:{Feature:Wr},hover:{Feature:Kr}};function Ns(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}function Ht(t,e,n){const s=t.getProps();return Ne(s,e,n!==void 0?n:s.custom,t)}const q=t=>t*1e3,_=t=>t/1e3,Qr={type:"spring",stiffness:500,damping:25,restSpeed:10},Jr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),to={type:"keyframes",duration:.8},eo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},no=(t,{keyframes:e})=>e.length>2?to:ot.has(t)?t.startsWith("scale")?Jr(e[1]):Qr:eo;function so({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Ue(t,e){return t[e]||t.default||t}const io=t=>t!==null;function zt(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(io),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||s===void 0?i[o]:s}let Ft;function ro(){Ft=void 0}const Z={now:()=>(Ft===void 0&&Z.set(D.isProcessing||_i.useManualTiming?D.timestamp:performance.now()),Ft),set:t=>{Ft=t,queueMicrotask(ro)}},Us=t=>/^0[^.\s]+$/u.test(t);function oo(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Us(t):!0}const Ks=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ao=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function lo(t){const e=ao.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Ws(t,e,n=1){const[s,i]=lo(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ks(r)?parseFloat(r):r}return Ee(i)?Ws(i,e,n+1):i}const uo=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),mn=t=>t===pt||t===T,gn=(t,e)=>parseFloat(t.split(", ")[e]),yn=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return gn(i[1],e);{const o=s.match(/^matrix\((.+)\)$/u);return o?gn(o[1],t):0}},co=new Set(["x","y","z"]),ho=Vt.filter(t=>!co.has(t));function fo(t){const e=[];return ho.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const dt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:yn(4,13),y:yn(5,14)};dt.translateX=dt.x;dt.translateY=dt.y;const $s=t=>e=>e.test(t),po={test:t=>t==="auto",parse:t=>t},Gs=[pt,T,U,Y,vr,yr,po],vn=t=>Gs.find($s(t)),rt=new Set;let de=!1,pe=!1;function _s(){if(pe){const t=Array.from(rt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=fo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{var a;(a=s.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}pe=!1,de=!1,rt.forEach(t=>t.complete()),rt.clear()}function Hs(){rt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(pe=!0)})}function mo(){Hs(),_s()}class Ke{constructor(e,n,s,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(rt.add(this),de||(de=!0,V.read(Hs),V.resolveKeyframes(_s))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i==null?void 0:i.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),rt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,rt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const We=(t,e)=>n=>!!(wt(n)&&gr.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),zs=(t,e,n)=>s=>{if(!wt(s))return s;const[i,o,r,a]=s.match(Fe);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},go=t=>Q(0,255,t),Jt={...pt,transform:t=>Math.round(go(t))},it={test:We("rgb","red"),parse:zs("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Jt.transform(t)+", "+Jt.transform(e)+", "+Jt.transform(n)+", "+vt(yt.transform(s))+")"};function yo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const me={test:We("#"),parse:yo,transform:it.transform},ut={test:We("hsl","hue"),parse:zs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+U.transform(vt(e))+", "+U.transform(vt(n))+", "+vt(yt.transform(s))+")"},R={test:t=>it.test(t)||me.test(t)||ut.test(t),parse:t=>it.test(t)?it.parse(t):ut.test(t)?ut.parse(t):me.parse(t),transform:t=>wt(t)?t:t.hasOwnProperty("red")?it.transform(t):ut.transform(t)};function vo(t){var e,n;return isNaN(t)&&wt(t)&&(((e=t.match(Fe))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(mr))===null||n===void 0?void 0:n.length)||0)>0}const Ys="number",Xs="color",xo="var",To="var(",xn="${}",Po=/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 bt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Po,l=>(R.test(l)?(s.color.push(o),i.push(Xs),n.push(R.parse(l))):l.startsWith(To)?(s.var.push(o),i.push(xo),n.push(l)):(s.number.push(o),i.push(Ys),n.push(parseFloat(l))),++o,xn)).split(xn);return{values:n,split:a,indexes:s,types:i}}function qs(t){return bt(t).values}function Zs(t){const{split:e,types:n}=bt(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===Ys?o+=vt(i[r]):a===Xs?o+=R.transform(i[r]):o+=i[r]}return o}}const bo=t=>typeof t=="number"?0:t;function So(t){const e=qs(t);return Zs(t)(e.map(bo))}const J={test:vo,parse:qs,createTransformer:Zs,getAnimatableNone:So},Ao=new Set(["brightness","contrast","saturate","opacity"]);function Vo(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Fe)||[];if(!s)return t;const i=n.replace(s,"");let o=Ao.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const wo=/\b([a-z-]*)\(.*?\)/gu,ge={...J,getAnimatableNone:t=>{const e=t.match(wo);return e?e.map(Vo).join(" "):t}},Co={...Vs,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:ge,WebkitFilter:ge},$e=t=>Co[t];function Qs(t,e){let n=$e(t);return n!==ge&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Do=new Set(["auto","none","0"]);function Mo(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Do.has(o)&&bt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Qs(n,i)}class Js extends Ke{constructor(e,n,s,i){super(e,n,s,i,i==null?void 0:i.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Ee(c))){const u=Ws(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!uo.has(s)||e.length!==2)return;const[i,o]=e,r=vn(i),a=vn(o);if(r!==a)if(mn(r)&&mn(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)oo(e[i])&&s.push(i);s.length&&Mo(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dt[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n.current)return;const o=n.getValue(s);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=dt[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function ti(t){let e;return()=>(e===void 0&&(e=t()),e)}const Tn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Ro(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function Lo(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Tn(i,e),a=Tn(o,e);return!r||!a?!1:Ro(t)||n==="spring"&&s}class ei{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&mo(),this._resolved}onKeyframesResolved(e,n){this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:c}=this.options;if(!c&&!Lo(e,s,i,o))if(r)this.options.duration=0;else{l==null||l(zt(e,this.options,n)),a==null||a(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,n);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function ni(t,e){return e?t*(1e3/e):0}const Eo=5;function si(t,e,n){const s=Math.max(e-Eo,0);return ni(n-t(s),e-s)}const te=.001,Fo=.01,ko=10,Bo=.05,jo=1;function Oo({duration:t=800,bounce:e=.25,velocity:n=0,mass:s=1}){let i,o,r=1-e;r=Q(Bo,jo,r),t=Q(Fo,ko,_(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=ye(c,r),p=Math.exp(-h);return te-f/d*p},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,p=Math.exp(-h),m=ye(Math.pow(c,2),r);return(-i(c)+te>0?-1:1)*((f-d)*p)/m}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-te+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=No(i,o,a);if(t=q(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const Io=12;function No(t,e,n){let s=n;for(let i=1;i<Io;i++)s=s-t(s)/e(s);return s}function ye(t,e){return t*Math.sqrt(1-e*e)}const Uo=["duration","bounce"],Ko=["stiffness","damping","mass"];function Pn(t,e){return e.some(n=>t[n]!==void 0)}function Wo(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Pn(t,Ko)&&Pn(t,Uo)){const n=Oo(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function ii({keyframes:t,restDelta:e,restSpeed:n,...s}){const i=t[0],o=t[t.length-1],r={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:h,isResolvedFromDuration:f}=Wo({...s,velocity:-_(s.velocity||0)}),d=h||0,p=l/(2*Math.sqrt(a*c)),m=o-i,y=_(Math.sqrt(a/c)),v=Math.abs(m)<5;n||(n=v?.01:2),e||(e=v?.005:.5);let x;if(p<1){const g=ye(y,p);x=b=>{const A=Math.exp(-p*y*b);return o-A*((d+p*y*m)/g*Math.sin(g*b)+m*Math.cos(g*b))}}else if(p===1)x=g=>o-Math.exp(-y*g)*(m+(d+y*m)*g);else{const g=y*Math.sqrt(p*p-1);x=b=>{const A=Math.exp(-p*y*b),M=Math.min(g*b,300);return o-A*((d+p*y*m)*Math.sinh(M)+g*m*Math.cosh(M))/g}}return{calculatedDuration:f&&u||null,next:g=>{const b=x(g);if(f)r.done=g>=u;else{let A=d;g!==0&&(p<1?A=si(x,g,b):A=0);const M=Math.abs(A)<=n,z=Math.abs(o-b)<=e;r.done=M&&z}return r.value=r.done?o:b,r}}}function bn({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=S=>a!==void 0&&S<a||l!==void 0&&S>l,p=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let m=n*e;const y=h+m,v=r===void 0?y:r(y);v!==y&&(m=v-h);const x=S=>-m*Math.exp(-S/s),g=S=>v+x(S),b=S=>{const B=x(S),j=g(S);f.done=Math.abs(B)<=c,f.value=f.done?v:j};let A,M;const z=S=>{d(f.value)&&(A=S,M=ii({keyframes:[f.value,p(f.value)],velocity:si(g,S,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return z(0),{calculatedDuration:null,next:S=>{let B=!1;return!M&&A===void 0&&(B=!0,b(S),z(S)),A!==void 0&&S>=A?M.next(S-A):(!B&&b(S),f)}}}const ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,$o=1e-7,Go=12;function _o(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=ri(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>$o&&++a<Go);return r}function Dt(t,e,n,s){if(t===e&&n===s)return E;const i=o=>_o(o,0,1,t,n);return o=>o===0||o===1?o:ri(i(o),e,s)}const Ho=Dt(.42,0,1,1),zo=Dt(0,0,.58,1),oi=Dt(.42,0,.58,1),Yo=t=>Array.isArray(t)&&typeof t[0]!="number",ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,li=t=>e=>1-t(1-e),Ge=t=>1-Math.sin(Math.acos(t)),ui=li(Ge),Xo=ai(Ge),ci=Dt(.33,1.53,.69,.99),_e=li(ci),qo=ai(_e),Zo=t=>(t*=2)<1?.5*_e(t):.5*(2-Math.pow(2,-10*(t-1))),Sn={linear:E,easeIn:Ho,easeInOut:oi,easeOut:zo,circIn:Ge,circInOut:Xo,circOut:ui,backIn:_e,backInOut:qo,backOut:ci,anticipate:Zo},An=t=>{if(Array.isArray(t)){ce(t.length===4);const[e,n,s,i]=t;return Dt(e,n,s,i)}else if(typeof t=="string")return ce(Sn[t]!==void 0),Sn[t];return t},St=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},w=(t,e,n)=>t+(e-t)*n;function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Qo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ee(l,a,t+1/3),o=ee(l,a,t),r=ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ot(t,e){return n=>n>0?e:t}const ne=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Jo=[me,it,ut],ta=t=>Jo.find(e=>e.test(t));function Vn(t){const e=ta(t);if(!e)return!1;let n=e.parse(t);return e===ut&&(n=Qo(n)),n}const wn=(t,e)=>{const n=Vn(t),s=Vn(e);if(!n||!s)return Ot(t,e);const i={...n};return o=>(i.red=ne(n.red,s.red,o),i.green=ne(n.green,s.green,o),i.blue=ne(n.blue,s.blue,o),i.alpha=w(n.alpha,s.alpha,o),it.transform(i))},ve=new Set(["none","hidden"]);function ea(t,e){return ve.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function na(t,e){return n=>w(t,e,n)}function He(t){return typeof t=="number"?na:typeof t=="string"?Ee(t)?Ot:R.test(t)?wn:ra:Array.isArray(t)?hi:typeof t=="object"?R.test(t)?wn:sa:Ot}function hi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>He(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function sa(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=He(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function ia(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[o]=l,i[r]++}return s}const ra=(t,e)=>{const n=J.createTransformer(e),s=bt(t),i=bt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?ve.has(t)&&!i.values.length||ve.has(e)&&!s.values.length?ea(t,e):G(hi(ia(s,i),i.values),n):Ot(t,e)};function fi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?w(t,e,n):He(t)(t,e)}function oa(t,e,n){const s=[],i=n||fi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||E:e;a=G(l,a)}s.push(a)}return s}function aa(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(ce(o===e.length),o===1)return()=>e[0];if(o===2&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const r=oa(e,s,i),a=r.length,l=c=>{let u=0;if(a>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const h=St(t[u],t[u+1],c);return r[u](h)};return n?c=>l(Q(t[0],t[o-1],c)):l}function la(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=St(0,e,s);t.push(w(n,1,i))}}function ua(t){const e=[0];return la(e,t.length-1),e}function ca(t,e){return t.map(n=>n*e)}function ha(t,e){return t.map(()=>e||oi).splice(0,t.length-1)}function It({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Yo(s)?s.map(An):An(s),o={done:!1,value:e[0]},r=ca(n&&n.length===e.length?n:ua(e),t),a=aa(r,e,{ease:Array.isArray(i)?i:ha(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Cn=2e4;function fa(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<Cn;)e+=n,s=t.next(e);return e>=Cn?1/0:e}const da=t=>{const e=({timestamp:n})=>t(n);return{start:()=>V.update(e,!0),stop:()=>H(e),now:()=>D.isProcessing?D.timestamp:Z.now()}},pa={decay:bn,inertia:bn,tween:It,keyframes:It,spring:ii},ma=t=>t/100;class ze extends ei{constructor({KeyframeResolver:e=Ke,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:s,motionValue:i,keyframes:o}=this.options,r=(a,l)=>this.onKeyframesResolved(a,l);s&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,r,s,i):this.resolver=new e(o,r,s,i),this.resolver.scheduleResolve()}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=pa[n]||It;let l,c;a!==It&&typeof e[0]!="number"&&(l=G(ma,fi(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});o==="mirror"&&(c=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=fa(u));const{calculatedDuration:h}=u,f=h+i,d=f*(s+1)-i;return{generator:u,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:d}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:c,totalDuration:u,resolvedDuration:h}=s;if(this.startTime===null)return o.next(0);const{delay:f,repeat:d,repeatType:p,repeatDelay:m,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let g=this.currentTime,b=o;if(d){const S=Math.min(this.currentTime,u)/h;let B=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&B--,B=Math.min(B,d+1),!!(B%2)&&(p==="reverse"?(j=1-j,m&&(j-=m/h)):p==="mirror"&&(b=r)),g=Q(0,1,j)*h}const A=x?{done:!1,value:l[0]}:b.next(g);a&&(A.value=a(A.value));let{done:M}=A;!x&&c!==null&&(M=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return z&&i!==void 0&&(A.value=zt(l,this.options,i)),y&&y(A.value),z&&this.finish(),A}get duration(){const{resolved:e}=this;return e?_(e.calculatedDuration):0}get time(){return _(this.currentTime)}set time(e){e=q(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=_(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=da,onPlay:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=s),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const di=t=>Array.isArray(t)&&typeof t[0]=="number";function pi(t){return!!(!t||typeof t=="string"&&t in Ye||di(t)||Array.isArray(t)&&t.every(pi))}const gt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gt([0,.65,.55,1]),circOut:gt([.55,0,1,.45]),backIn:gt([.31,.01,.66,-.59]),backOut:gt([.33,1.53,.69,.99])};function ga(t){return mi(t)||Ye.easeOut}function mi(t){if(t)return di(t)?gt(t):Array.isArray(t)?t.map(ga):Ye[t]}function ya(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a,times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=mi(a);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:s,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const va=ti(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xa=new Set(["opacity","clipPath","filter","transform"]),Nt=10,Ta=2e4;function Pa(t){return t.type==="spring"||t.name==="backgroundColor"||!pi(t.ease)}function ba(t,e){const n=new ze({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let o=0;for(;!s.done&&o<Ta;)s=n.sample(o),i.push(s.value),o+=Nt;return{times:void 0,keyframes:i,duration:o-Nt,ease:"linear"}}class Dn extends ei{constructor(e){super(e);const{name:n,motionValue:s,keyframes:i}=this.options;this.resolver=new Js(i,(o,r)=>this.onKeyframesResolved(o,r),n,s),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:i=300,times:o,ease:r,type:a,motionValue:l,name:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(Pa(this.options)){const{onComplete:h,onUpdate:f,motionValue:d,...p}=this.options,m=ba(e,p);e=m.keyframes,e.length===1&&(e[1]=e[0]),i=m.duration,o=m.times,r=m.ease,a="keyframes"}const u=ya(l.owner.current,c,e,{...this.options,duration:i,times:o,ease:r});return u.startTime=Z.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;l.set(zt(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:i,times:o,type:a,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return _(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return _(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=q(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return E;const{animation:s}=n;s.timeline=e,s.onfinish=null}return E}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:o,ease:r,times:a}=e;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:c,onComplete:u,...h}=this.options,f=new ze({...h,keyframes:s,duration:i,type:o,ease:r,times:a,isGenerator:!0}),d=q(this.time);l.setWithVelocity(f.sample(d-Nt).value,f.sample(d).value,Nt)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:o,damping:r,type:a}=e;return va()&&s&&xa.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}function Sa(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return V.update(s,!0),()=>H(s)}const Aa=ti(()=>window.ScrollTimeline!==void 0);class Va{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>{if(Aa()&&s.attachTimeline)s.attachTimeline(e);else return s.pause(),Sa(i=>{s.time=s.duration*i},e)});return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].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 duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Xe=(t,e,n,s={},i,o)=>r=>{const a=Ue(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-q(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};so(a)||(u={...u,...no(t,u)}),u.duration&&(u.duration=q(u.duration)),u.repeatDelay&&(u.repeatDelay=q(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!o&&e.get()!==void 0){const f=zt(u.keyframes,a);if(f!==void 0)return V.update(()=>{u.onUpdate(f),u.onComplete()}),new Va([])}return!o&&Dn.supports(u)?new Dn(u):new ze(u)};function Ut(t){return!!(L(t)&&t.add)}function qe(t,e){t.indexOf(e)===-1&&t.push(e)}function Ze(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Qe{constructor(){this.subscriptions=[]}add(e){return qe(this.subscriptions,e),()=>Ze(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Mn=30,wa=t=>!isNaN(parseFloat(t));class Ca{constructor(e,n={}){this.version="11.2.12",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,i=!0)=>{const o=Z.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=wa(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Qe);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Mn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mn);return ni(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function At(t,e){return new Ca(t,e)}function Da(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,At(n))}function Ma(t,e){const n=Ht(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Fr(o[r]);Da(t,r,a)}}function gi(t){return t.getProps()[gs]}function Ra({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function yi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;const c=t.getValue("willChange");s&&(r=s);const u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in l){const d=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||h&&Ra(h,f))continue;const m={delay:n,elapsed:0,...Ue(r||{},f)};let y=!1;if(window.HandoffAppearAnimations){const x=gi(t);if(x){const g=window.HandoffAppearAnimations(x,f,d,V);g!==null&&(m.elapsed=g,y=!0)}}d.start(Xe(f,d,p,t.shouldReduceMotion&&ot.has(f)?{type:!1}:m,t,y));const v=d.animation;v&&(Ut(c)&&(c.add(f),v.then(()=>c.remove(f))),u.push(v))}return a&&Promise.all(u).then(()=>{V.update(()=>{a&&Ma(t,a)})}),u}function xe(t,e,n={}){var s;const i=Ht(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const r=i?()=>Promise.all(yi(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:h,staggerDirection:f}=o;return La(t,e,u+c,h,f,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[c,u]=l==="beforeChildren"?[r,a]:[a,r];return c().then(()=>u())}else return Promise.all([r(),a(n.delay)])}function La(t,e,n=0,s=0,i=1,o){const r=[],a=(t.variantChildren.size-1)*s,l=i===1?(c=0)=>c*s:(c=0)=>a-c*s;return Array.from(t.variantChildren).sort(Ea).forEach((c,u)=>{c.notify("AnimationStart",e),r.push(xe(c,e,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(r)}function Ea(t,e){return t.sortNodePosition(e)}function Fa(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>xe(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=xe(t,e,n);else{const i=typeof e=="function"?Ht(t,e,n.custom):e;s=Promise.all(yi(t,i,n))}return s.then(()=>{V.postRender(()=>{t.notify("AnimationComplete",e)})})}const ka=[...Me].reverse(),Ba=Me.length;function ja(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Fa(t,n,s)))}function Oa(t){let e=ja(t),n=Rn(),s=!0;const i=l=>(c,u)=>{var h;const f=Ht(t,u,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:d,transitionEnd:p,...m}=f;c={...c,...m,...p}}return c};function o(l){e=l(t)}function r(l){const c=t.getProps(),u=t.getVariantContext(!0)||{},h=[],f=new Set;let d={},p=1/0;for(let y=0;y<Ba;y++){const v=ka[y],x=n[v],g=c[v]!==void 0?c[v]:u[v],b=Pt(g),A=v===l?x.isActive:null;A===!1&&(p=y);let M=g===u[v]&&g!==c[v]&&b;if(M&&s&&t.manuallyAnimateOnMount&&(M=!1),x.protectedKeys={...d},!x.isActive&&A===null||!g&&!x.prevProp||$t(g)||typeof g=="boolean")continue;let S=Ia(x.prevProp,g)||v===l&&x.isActive&&!M&&b||y>p&&b,B=!1;const j=Array.isArray(g)?g:[g];let at=j.reduce(i(v),{});A===!1&&(at={});const{prevResolvedValues:tn={}}=x,Oi={...tn,...at},en=F=>{S=!0,f.has(F)&&(B=!0,f.delete(F)),x.needsAnimating[F]=!0;const K=t.getValue(F);K&&(K.liveStyle=!1)};for(const F in Oi){const K=at[F],Yt=tn[F];if(d.hasOwnProperty(F))continue;let Xt=!1;he(K)&&he(Yt)?Xt=!Ns(K,Yt):Xt=K!==Yt,Xt?K!=null?en(F):f.add(F):K!==void 0&&f.has(F)?en(F):x.protectedKeys[F]=!0}x.prevProp=g,x.prevResolvedValues=at,x.isActive&&(d={...d,...at}),s&&t.blockInitialAnimation&&(S=!1),S&&(!M||B)&&h.push(...j.map(F=>({animation:F,options:{type:v}})))}if(f.size){const y={};f.forEach(v=>{const x=t.getBaseTarget(v),g=t.getValue(v);g&&(g.liveStyle=!0),y[v]=x??null}),h.push({animation:y})}let m=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(m=!1),s=!1,m?e(h):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(f=>{var d;return(d=f.animationState)===null||d===void 0?void 0:d.setActive(l,c)}),n[l].isActive=c;const h=r(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Rn(),s=!0}}}function Ia(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ns(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rn(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}class Na extends tt{constructor(e){super(e),e.animationState||(e.animationState=Oa(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();$t(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let Ua=0;class Ka extends tt{constructor(){super(...arguments),this.id=Ua++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Wa={animation:{Feature:Na},exit:{Feature:Ka}},Ln=(t,e)=>Math.abs(t-e);function $a(t,e){const n=Ln(t.x,e.x),s=Ln(t.y,e.y);return Math.sqrt(n**2+s**2)}class vi{constructor(e,n,{transformPagePoint:s,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ie(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=$a(h.offset,{x:0,y:0})>=3;if(!f&&!d)return;const{point:p}=h,{timestamp:m}=D;this.history.push({...p,timestamp:m});const{onStart:y,onMove:v}=this.handlers;f||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,h)},this.handlePointerMove=(h,f)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=se(f,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(h,f)=>{this.end();const{onEnd:d,onSessionEnd:p,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ie(h.type==="pointercancel"?this.lastMoveEventInfo:se(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(h,y),p&&p(h,y)},!ks(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.contextWindow=i||window;const r=_t(e),a=se(r,this.transformPagePoint),{point:l}=a,{timestamp:c}=D;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=n;u&&u(e,ie(a,this.history)),this.removeListeners=G($(this.contextWindow,"pointermove",this.handlePointerMove),$(this.contextWindow,"pointerup",this.handlePointerUp),$(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),H(this.updatePoint)}}function se(t,e){return e?{point:e(t.point)}:t}function En(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ie({point:t},e){return{point:t,delta:En(t,xi(e)),offset:En(t,Ga(e)),velocity:_a(e,.1)}}function Ga(t){return t[0]}function xi(t){return t[t.length-1]}function _a(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=xi(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>q(e)));)n--;if(!s)return{x:0,y:0};const o=_(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function k(t){return t.max-t.min}function Te(t,e=0,n=.01){return Math.abs(t-e)<=n}function Fn(t,e,n,s=.5){t.origin=s,t.originPoint=w(e.min,e.max,t.origin),t.scale=k(n)/k(e),(Te(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=w(n.min,n.max,t.origin)-t.originPoint,(Te(t.translate)||isNaN(t.translate))&&(t.translate=0)}function xt(t,e,n,s){Fn(t.x,e.x,n.x,s?s.originX:void 0),Fn(t.y,e.y,n.y,s?s.originY:void 0)}function kn(t,e,n){t.min=n.min+e.min,t.max=t.min+k(e)}function Ha(t,e,n){kn(t.x,e.x,n.x),kn(t.y,e.y,n.y)}function Bn(t,e,n){t.min=e.min-n.min,t.max=t.min+k(e)}function Tt(t,e,n){Bn(t.x,e.x,n.x),Bn(t.y,e.y,n.y)}function za(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?w(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?w(n,t,s.max):Math.min(t,n)),t}function jn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Ya(t,{top:e,left:n,bottom:s,right:i}){return{x:jn(t.x,n,i),y:jn(t.y,e,s)}}function On(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Xa(t,e){return{x:On(t.x,e.x),y:On(t.y,e.y)}}function qa(t,e){let n=.5;const s=k(t),i=k(e);return i>s?n=St(e.min,e.max-s,t.min):s>i&&(n=St(t.min,t.max-i,e.min)),Q(0,1,n)}function Za(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Pe=.35;function Qa(t=Pe){return t===!1?t=0:t===!0&&(t=Pe),{x:In(t,"left","right"),y:In(t,"top","bottom")}}function In(t,e,n){return{min:Nn(t,e),max:Nn(t,n)}}function Nn(t,e){return typeof t=="number"?t:t[e]||0}const Un=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:Un(),y:Un()}),Kn=()=>({min:0,max:0}),C=()=>({x:Kn(),y:Kn()});function I(t){return[t("x"),t("y")]}function Ti({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Ja({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function tl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function re(t){return t===void 0||t===1}function be({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function nt(t){return be(t)||Pi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Pi(t){return Wn(t.x)||Wn(t.y)}function Wn(t){return t&&t!=="0%"}function Kt(t,e,n){const s=t-n,i=e*s;return n+i}function $n(t,e,n,s,i){return i!==void 0&&(t=Kt(t,i,s)),Kt(t,n,s)+e}function Se(t,e=0,n=1,s,i){t.min=$n(t.min,e,n,s,i),t.max=$n(t.max,e,n,s,i)}function bi(t,{x:e,y:n}){Se(t.x,e.translate,e.scale,e.originPoint),Se(t.y,n.translate,n.scale,n.originPoint)}function el(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const l=o.instance;l&&l.style&&l.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ht(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,bi(t,r)),s&&nt(o.latestValues)&&ht(t,o.latestValues))}e.x=Gn(e.x),e.y=Gn(e.y)}function Gn(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function X(t,e){t.min=t.min+e,t.max=t.max+e}function _n(t,e,[n,s,i]){const o=e[i]!==void 0?e[i]:.5,r=w(t.min,t.max,o);Se(t,e[n],e[s],r,e.scale)}const nl=["x","scaleX","originX"],sl=["y","scaleY","originY"];function ht(t,e){_n(t.x,e,nl),_n(t.y,e,sl)}function Si(t,e){return Ti(tl(t.getBoundingClientRect(),e))}function il(t,e,n){const s=Si(t,n),{scroll:i}=e;return i&&(X(s.x,i.offset.x),X(s.y,i.offset.y)),s}const Ai=({current:t})=>t?t.ownerDocument.defaultView:null,rl=new WeakMap;class ol{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=C(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const i=u=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(_t(u,"page").point)},o=(u,h)=>{const{drag:f,dragPropagation:d,onDragStart:p}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=js(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(y=>{let v=this.getAxisMotionValue(y).get()||0;if(U.test(v)){const{projection:x}=this.visualElement;if(x&&x.layout){const g=x.layout.layoutBox[y];g&&(v=k(g)*(parseFloat(v)/100))}}this.originPoint[y]=v}),p&&V.postRender(()=>p(u,h));const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},r=(u,h)=>{const{dragPropagation:f,dragDirectionLock:d,onDirectionLock:p,onDrag:m}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:y}=h;if(d&&this.currentDirection===null){this.currentDirection=al(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),m&&m(u,h)},a=(u,h)=>this.stop(u,h),l=()=>I(u=>{var h;return this.getAnimationState(u)==="paused"&&((h=this.getAxisMotionValue(u).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new vi(e,{onSessionStart:i,onStart:o,onMove:r,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Ai(this.visualElement)})}stop(e,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&V.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!Lt(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=za(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:s}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&<(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Ya(i.layoutBox,n):this.constraints=!1,this.elastic=Qa(s),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=Za(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!lt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=il(s,i.root,this.visualElement.getTransformPagePoint());let r=Xa(i.layout.layoutBox,o);if(n){const a=n(Ja(r));this.hasMutatedConstraints=!!a,a&&(r=Ti(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=I(u=>{if(!Lt(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return s.start(Xe(e,s,0,n,this.visualElement))}stopAnimation(){I(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){I(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){I(n=>{const{drag:s}=this.getProps();if(!Lt(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n];o.set(e[n]-w(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!lt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};I(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=qa({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),I(r=>{if(!Lt(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(w(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;rl.set(this.visualElement,this);const e=this.visualElement.current,n=$(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();lt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),V.read(s);const r=W(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(I(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Pe,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Lt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function al(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class ll extends tt{constructor(e){super(e),this.removeGroupControls=E,this.removeListeners=E,this.controls=new ol(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||E}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hn=t=>(e,n)=>{t&&V.postRender(()=>t(e,n))};class ul extends tt{constructor(){super(...arguments),this.removePointerDownListener=E}onPointerDown(e){this.session=new vi(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ai(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Hn(e),onStart:Hn(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=$(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function cl(){const t=P.useContext(Ve);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:s}=t,i=P.useId();return P.useEffect(()=>s(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const kt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(T.test(t))t=parseFloat(t);else return t;const n=zn(t,e.target.x),s=zn(t,e.target.y);return`${n}% ${s}%`}},hl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=J.parse(t);if(i.length>5)return s;const o=J.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=w(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};class fl extends P.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;lr(dl),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),kt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,r=s.projection;return r&&(r.isPresent=o,i||e.layoutDependency!==n||n===void 0?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),De.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Vi(t){const[e,n]=cl(),s=P.useContext(Ps);return N.jsx(fl,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(vs),isPresent:e,safeToRemove:n})}const dl={borderRadius:{...mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mt,borderTopRightRadius:mt,borderBottomLeftRadius:mt,borderBottomRightRadius:mt,boxShadow:hl},wi=["TopLeft","TopRight","BottomLeft","BottomRight"],pl=wi.length,Yn=t=>typeof t=="string"?parseFloat(t):t,Xn=t=>typeof t=="number"||T.test(t);function ml(t,e,n,s,i,o){i?(t.opacity=w(0,n.opacity!==void 0?n.opacity:1,gl(s)),t.opacityExit=w(e.opacity!==void 0?e.opacity:1,0,yl(s))):o&&(t.opacity=w(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let r=0;r<pl;r++){const a=`border${wi[r]}Radius`;let l=qn(e,a),c=qn(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Xn(l)===Xn(c)?(t[a]=Math.max(w(Yn(l),Yn(c),s),0),(U.test(c)||U.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=w(e.rotate||0,n.rotate||0,s))}function qn(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const gl=Ci(0,.5,ui),yl=Ci(.5,.95,E);function Ci(t,e,n){return s=>s<t?0:s>e?1:n(St(t,e,s))}function Zn(t,e){t.min=e.min,t.max=e.max}function O(t,e){Zn(t.x,e.x),Zn(t.y,e.y)}function Qn(t,e,n,s,i){return t-=e,t=Kt(t,1/n,s),i!==void 0&&(t=Kt(t,1/i,s)),t}function vl(t,e=0,n=1,s=.5,i,o=t,r=t){if(U.test(e)&&(e=parseFloat(e),e=w(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=w(o.min,o.max,s);t===o&&(a-=e),t.min=Qn(t.min,e,n,a,i),t.max=Qn(t.max,e,n,a,i)}function Jn(t,e,[n,s,i],o,r){vl(t,e[n],e[s],e[i],e.scale,o,r)}const xl=["x","scaleX","originX"],Tl=["y","scaleY","originY"];function ts(t,e,n,s){Jn(t.x,e,xl,n?n.x:void 0,s?s.x:void 0),Jn(t.y,e,Tl,n?n.y:void 0,s?s.y:void 0)}function es(t){return t.translate===0&&t.scale===1}function Di(t){return es(t.x)&&es(t.y)}function Pl(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Mi(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function ns(t){return k(t.x)/k(t.y)}class bl{constructor(){this.members=[]}add(e){qe(this.members,e),e.scheduleRender()}remove(e){if(Ze(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ss(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(n==null?void 0:n.z)||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:p}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const Sl=(t,e)=>t.depth-e.depth;class Al{constructor(){this.children=[],this.isDirty=!1}add(e){qe(this.children,e),this.isDirty=!0}remove(e){Ze(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Sl),this.isDirty=!1,this.children.forEach(e)}}function Vl(t,e){const n=Z.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(H(s),t(o-e))};return V.read(s,!0),()=>H(s)}function wl(t){window.MotionDebug&&window.MotionDebug.record(t)}function Cl(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Dl(t,e,n){const s=L(t)?t:At(t);return s.start(Xe("",s,e,n)),s.animation}const oe=["","X","Y","Z"],Ml={visibility:"hidden"},is=1e3;let Rl=0;const st={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ae(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function Ri(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;const{visualElement:e}=t.options;return e?gi(e)?!0:t.parent&&!t.parent.hasCheckedOptimisedAppear?Ri(t.parent):!1:!1}function Li({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=Rl++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,st.totalNodes=st.resolvedTargetDeltas=st.recalculatedProjection=0,this.nodes.forEach(Fl),this.nodes.forEach(Il),this.nodes.forEach(Nl),this.nodes.forEach(kl),wl(st)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Al)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Qe),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Cl(r),this.instance=r;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),t){let h;const f=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Vl(f,250),kt.hasAnimatedSinceResize&&(kt.hasAnimatedSinceResize=!1,this.nodes.forEach(os))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:f,hasRelativeTargetChanged:d,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||Gl,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),x=!this.targetLayout||!Mi(this.targetLayout,p)||d,g=!f&&d;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,g);const b={...Ue(m,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else f||os(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,H(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ul),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Ri(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rs);return}this.isUpdating||this.nodes.forEach(jl),this.isUpdating=!1,this.nodes.forEach(Ol),this.nodes.forEach(Ll),this.nodes.forEach(El),this.clearAllSnapshots();const a=Z.now();D.delta=Q(0,1e3/60,a-D.timestamp),D.timestamp=a,D.isProcessing=!0,qt.update.process(D),qt.preRender.process(D),qt.render.process(D),D.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,De.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Bl),this.sharedNodes.forEach(Kl)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=C(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:r,isRoot:s(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Di(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&(a||nt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),_l(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return C();const a=r.measureViewportBox(),{scroll:l}=this.root;return l&&(X(a.x,l.offset.x),X(a.y,l.offset.y)),a}removeElementScroll(r){const a=C();O(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;if(c!==this.root&&u&&h.layoutScroll){if(u.isRoot){O(a,r);const{scroll:f}=this.root;f&&(X(a.x,-f.offset.x),X(a.y,-f.offset.y))}X(a.x,u.offset.x),X(a.y,u.offset.y)}}return a}applyTransform(r,a=!1){const l=C();O(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ht(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),nt(u.latestValues)&&ht(l,u.latestValues)}return nt(this.latestValues)&&ht(l,this.latestValues),l}removeTransform(r){const a=C();O(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!nt(c.latestValues))continue;be(c.latestValues)&&c.updateSnapshot();const u=C(),h=c.measurePageBox();O(u,h),ts(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return nt(this.latestValues)&&ts(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==D.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:f}=this.options;if(!(!this.layout||!(h||f))){if(this.resolvedRelativeTargetAt=D.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Tt(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),O(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ha(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):O(this.target,this.layout.layoutBox),bi(this.target,this.targetDelta)):O(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const d=this.getClosestProjectingParent();d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Tt(this.relativeTargetOrigin,this.target,d.target),O(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}st.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||be(this.parent.latestValues)||Pi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let c=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===D.timestamp&&(c=!1),c)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;O(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,d=this.treeScale.y;el(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=C());const{target:p}=a;if(!p){this.projectionTransform&&(this.projectionDelta=ct(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct());const m=this.projectionTransform;xt(this.projectionDelta,this.layoutCorrected,p,this.latestValues),this.projectionTransform=ss(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==f||this.treeScale.y!==d)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),st.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=C(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),v=!y||y.members.length<=1,x=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some($l));this.animationProgress=0;let g;this.mixTargetDelta=b=>{const A=b/1e3;as(h.x,r.x,A),as(h.y,r.y,A),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Tt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wl(this.relativeTarget,this.relativeTargetOrigin,f,A),g&&Pl(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=C()),O(g,this.relativeTarget)),m&&(this.animationValues=u,ml(u,c,this.latestValues,A,x,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(H(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{kt.hasAnimatedSinceResize=!0,this.currentAnimation=Dl(0,is,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(is),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&Ei(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||C();const h=k(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=k(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}O(a,l),ht(a,u),xt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new bl),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&ae("z",r,c,this.animationValues);for(let u=0;u<oe.length;u++)ae(`rotate${oe[u]}`,r,c,this.animationValues),ae(`skew${oe[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ml;const c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Et(r==null?void 0:r.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Et(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const f=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=ss(this.projectionDeltaWithTransform,this.treeScale,f),u&&(c.transform=u(f,c.transform));const{x:d,y:p}=this.projectionDelta;c.transformOrigin=`${d.origin*100}% ${p.origin*100}% 0`,h.animationValues?c.opacity=h===this?(l=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:c.opacity=h===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in Bt){if(f[m]===void 0)continue;const{correct:y,applyTo:v}=Bt[m],x=c.transform==="none"?f[m]:y(f[m],h);if(v){const g=v.length;for(let b=0;b<g;b++)c[v[b]]=x}else c[m]=x}return this.options.layoutId&&(c.pointerEvents=h===this?Et(r==null?void 0:r.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(rs),this.root.sharedNodes.clear()}}}function Ll(t){t.updateLayout()}function El(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:o}=t.options,r=n.source!==t.layout.source;o==="size"?I(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=k(f);f.min=s[h].min,f.max=f.min+d}):Ei(o,n.layoutBox,s)&&I(h=>{const f=r?n.measuredBox[h]:n.layoutBox[h],d=k(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=ct();xt(a,s,n.layoutBox);const l=ct();r?xt(l,t.applyTransform(i,!0),n.measuredBox):xt(l,s,n.layoutBox);const c=!Di(a);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const p=C();Tt(p,n.layoutBox,f.layoutBox);const m=C();Tt(m,s,d.layoutBox),Mi(p,m)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function Fl(t){st.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function kl(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Bl(t){t.clearSnapshot()}function rs(t){t.clearMeasurements()}function jl(t){t.isLayoutDirty=!1}function Ol(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function os(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Il(t){t.resolveTargetDelta()}function Nl(t){t.calcProjection()}function Ul(t){t.resetSkewAndRotation()}function Kl(t){t.removeLeadSnapshot()}function as(t,e,n){t.translate=w(e.translate,0,n),t.scale=w(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ls(t,e,n,s){t.min=w(e.min,n.min,s),t.max=w(e.max,n.max,s)}function Wl(t,e,n,s){ls(t.x,e.x,n.x,s),ls(t.y,e.y,n.y,s)}function $l(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Gl={duration:.45,ease:[.4,0,.1,1]},us=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),cs=us("applewebkit/")&&!us("chrome/")?Math.round:E;function hs(t){t.min=cs(t.min),t.max=cs(t.max)}function _l(t){hs(t.x),hs(t.y)}function Ei(t,e,n){return t==="position"||t==="preserve-aspect"&&!Te(ns(e),ns(n),.2)}const Hl=Li({attachResizeListener:(t,e)=>W(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),le={current:void 0},Fi=Li({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!le.current){const t=new Hl({});t.mount(window),t.setOptions({layoutScroll:!0}),le.current=t}return le.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),zl={pan:{Feature:ul},drag:{Feature:ll,ProjectionNode:Fi,MeasureLayout:Vi}},Ae={current:null},ki={current:!1};function Yl(){if(ki.current=!0,!!we)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ae.current=t.matches;t.addListener(e),e()}else Ae.current=!1}function Xl(t,e,n){const{willChange:s}=e;for(const i in e){const o=e[i],r=n[i];if(L(o))t.addValue(i,o),Ut(s)&&s.add(i);else if(L(r))t.addValue(i,At(o,{owner:t})),Ut(s)&&s.remove(i);else if(r!==o)if(t.hasValue(i)){const a=t.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=t.getStaticValue(i);t.addValue(i,At(a!==void 0?a:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const fs=new WeakMap,ql=[...Gs,R,J],Zl=t=>ql.find($s(t)),ds=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ql=Re.length;class Jl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.resolveKeyframes=(f,d,p,m)=>new this.KeyframeResolver(f,d,p,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ke,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>V.render(this.render,!1,!0);const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Gt(n),this.isVariantNode=Ts(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&L(d)&&(d.set(l[f],!1),Ut(u)&&u.add(f))}}mount(e){this.current=e,fs.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((n,s)=>this.bindToMotionValue(s,n)),ki.current||Yl(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ae.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){fs.delete(this.current),this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){const s=ot.has(e),i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o(),n.owner&&n.stop()})}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 ft){const n=ft[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<ds.length;s++){const i=ds[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Xl(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}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const s=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const n={};for(let s=0;s<Ql;s++){const i=Re[s],o=this.props[i];(Pt(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=At(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ks(i)||Us(i))?i=parseFloat(i):!Zl(i)&&J.test(n)&&(i=Qs(e,n)),this.setBaseTarget(e,L(i)?i.get():i)),L(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const r=Ne(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);r&&(i=r[e])}if(s&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!L(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Qe),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Bi extends Jl{constructor(){super(...arguments),this.KeyframeResolver=Js}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}}function tu(t){return window.getComputedStyle(t)}class eu extends Bi{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(ot.has(n)){const s=$e(n);return s&&s.default||0}else{const s=tu(e),i=(As(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Si(e,n)}build(e,n,s,i){ke(e,n,s,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Ie(e,n,s)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;L(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,s,i){Ms(e,n,s,i)}}class nu extends Bi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(ot.has(n)){const s=$e(n);return s&&s.default||0}return n=Rs.has(n)?n:Ce(n),e.getAttribute(n)}measureInstanceViewportBox(){return C()}scrapeMotionValuesFromProps(e,n,s){return Es(e,n,s)}build(e,n,s,i){je(e,n,s,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,s,i){Ls(e,n,s,i)}mount(e){this.isSVGTag=Oe(e.tagName),super.mount(e)}}const su=(t,e)=>Le(t)?new nu(e,{enableHardwareAcceleration:!1}):new eu(e,{allowProjection:t!==P.Fragment,enableHardwareAcceleration:!0}),iu={layout:{ProjectionNode:Fi,MeasureLayout:Vi}},ru={...Wa,...Zr,...zl,...iu},ue=or((t,e)=>Ir(t,e,ru,su));function Je(){const t=Ui("root"),e=Ki().find(n=>{var s;return n.formAction==="/progress"&&((s=n.formData)==null?void 0:s.has("complete"))});return!e||!(t!=null&&t.progress)?(t==null?void 0:t.progress)??null:t.progress.map(n=>{var o,r;const s=((o=e.formData)==null?void 0:o.get("complete"))==="true";return((r=e.formData)==null?void 0:r.get("lessonSlug"))===n.epicLessonSlug?{...n,epicCompletedAt:s?Date.now():null}:n})}function fu(){const t=Je();if(!t)return null;const e=r=>r.type==="workshop-instructions"?0:r.type==="workshop-finished"?1e4:r.type==="instructions"?r.exerciseNumber*100:r.type==="step"?r.exerciseNumber*100+r.stepNumber:r.type==="finished"?r.exerciseNumber*100+100:r.type==="unknown"?1e5:-1,s=t.sort((r,a)=>e(r)-e(a)).find(r=>!r.epicCompletedAt);if(!s||s.type==="unknown")return null;if(s.type==="workshop-instructions")return"/";if(s.type==="workshop-finished")return"/finished";const i=s.exerciseNumber.toString().padStart(2,"0");if(s.type==="instructions")return`/${i}`;if(s.type==="finished")return`/${i}/finished`;const o=s.stepNumber.toString().padStart(2,"0");return s.type==="step"?`/${i}/${o}/problem`:null}const ou={0:"",1:"before:h-[10%]",2:"before:h-[20%]",3:"before:h-[30%]",4:"before:h-[40%]",5:"before:h-[50%]",6:"before:h-[60%]",7:"before:h-[70%]",8:"before:h-[80%]",9:"before:h-[90%]",10:"before:h-[100%]"};function du(t){const e=Je();if(!(e!=null&&e.length))return null;const n=e.filter(o=>(o.type==="instructions"||o.type==="step"||o.type==="finished")&&o.exerciseNumber===t);if(!n.length)return null;const s=n.reduce((o,r)=>r.epicCompletedAt?o+1:o,0)/n.length,i=Math[s>.1?"floor":"ceil"](s*10);return`relative ${ou[i]} before:bg-highlight before:absolute before:left-0 before:top-0 before:w-[4px]`}function pu(t){const e=ji(t);return e!=null&&e.epicCompletedAt?"relative before:h-[100%] before:bg-highlight before:absolute before:left-0 before:top-0 before:w-[4px]":null}function ji({exerciseNumber:t,stepNumber:e,type:n}){const s=Je();return s!=null&&s.length?n==="workshop-finished"||n==="workshop-instructions"?s.find(i=>i.type===n)??null:n==="instructions"||n==="finished"?s.find(i=>i.type===n&&i.exerciseNumber===t)??null:n==="step"?s.find(i=>i.type===n&&i.exerciseNumber===t&&i.stepNumber===e)??null:null:null}function mu({className:t,...e}){var p,m,y,v;const n=Wi(),s=ji(e),i=P.useRef(null),o=P.useRef(null),r=(p=n.formData)!=null&&p.has("complete")?n.formData.get("complete")==="true":!!(s!=null&&s.epicCompletedAt),[a,l]=P.useState(!1),c=Ii(),u=Ni(),h=(y=(m=u.location)==null?void 0:m.state)==null?void 0:y.from,f=(v=u.location)==null?void 0:v.pathname,d=c.pathname;return P.useEffect(()=>{var x;h==="continue next lesson button"&&d===f&&(l(!0),(x=o.current)==null||x.focus())},[c.key,d,f,h]),P.useEffect(()=>{if(!i.current||!a)return;const x=i.current.getAnimations().map(({finished:g})=>g);Promise.allSettled(x).then(()=>{l(!1)})},[a]),ENV.EPICSHOP_DEPLOYED||!s?null:N.jsxs(n.Form,{method:"POST",action:"/progress",children:[N.jsx("input",{type:"hidden",name:"lessonSlug",value:s.epicLessonSlug}),N.jsx("input",{type:"hidden",name:"complete",value:(!r).toString()}),N.jsxs(ue.button,{ref:o,onClick:()=>{l(!r)},type:"submit",className:nn("group relative flex w-full items-center justify-between overflow-hidden transition hover:bg-[hsl(var(--foreground)/0.02)] focus:bg-[hsl(var(--foreground)/0.02)]",t),children:[r?"Mark as incomplete":"Mark as complete",a?N.jsx(ue.div,{ref:i,className:"absolute right-0 h-20 w-20 rounded-full bg-foreground/20",initial:{scale:.5,opacity:0},animate:{scale:[.5,2],opacity:[0,1,0]},transition:{duration:1,ease:"easeInOut"}}):null,N.jsx(ue.div,{"aria-hidden":!0,className:nn("relative flex h-8 w-8 items-center justify-center overflow-hidden rounded-full border transition",{"bg-foreground text-background duration-1000":r,"duration-100 group-hover:bg-background":!r}),children:r?"✓":N.jsx("div",{className:"absolute -translate-y-10 opacity-25 transition group-hover:translate-y-0",children:"✓"})})]})]})}export{mu as P,Je as a,Fa as b,Lr as c,$i as d,fu as e,pu as f,ue as m,Ma as s,du as u};
|
|
2
|
-
//# sourceMappingURL=progress-BsY6hGPp.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./index-1cKOJFpX.js";import{R as m,T as d,V as p,I as x,P as h,C as f,S as j,a as g,G as y,L as N,b,c as S,d as w,e as P}from"./index-hogig2HK.js";import{c}from"./clsx-B-dksMZM.js";import{I as n}from"./misc-ENVX3CWf.js";import{s as v}from"./progress-bar-CSvo1ZXP.js";import{S as I}from"./tooltip-BiHTe_7F.js";import{a as u}from"./components-CME-nGId.js";function C({appName:t,reset:r=!1,tooltipText:a,...l}){var i;const s=u(),o=e.jsx("button",{type:"submit",...l,className:c(l.className,s.state!=="idle"?"cursor-progress":null,((i=s.data)==null?void 0:i.status)==="error"?"cursor-not-allowed":null)});return e.jsxs(s.Form,{action:"/set-playground",method:"POST",className:"inline-flex items-center justify-center",children:[e.jsx("input",{type:"hidden",name:"appName",value:t}),r?e.jsx("input",{type:"hidden",name:"reset",value:"true"}):null,v,a?e.jsx(I,{content:a,children:o}):o]})}function L({playgroundAppName:t,allApps:r}){var l;const a=u();return e.jsxs(m,{name:"appName",value:t,onValueChange:s=>{a.submit({appName:s},{method:"POST",action:"/set-playground"})},children:[e.jsxs(d,{"aria-label":"Select app for playground",className:c("flex h-full w-full items-center justify-between text-left radix-placeholder:text-gray-500 focus-visible:outline-none",a.state!=="idle"?"cursor-progress":null,((l=a.data)==null?void 0:l.status)==="error"?"cursor-not-allowed":null),children:[e.jsx("span",{className:"w-80 flex-1 overflow-hidden text-ellipsis whitespace-nowrap scrollbar-thin scrollbar-thumb-scrollbar",children:e.jsx(p,{placeholder:"Select current app",className:"inline-block w-40 text-ellipsis"})}),e.jsx(x,{children:e.jsx(n,{name:"TriangleDownSmall"})})]}),e.jsx(h,{children:e.jsxs(f,{position:"popper",align:"start",className:"z-20 max-h-[50vh] bg-black text-white lg:max-h-[70vh]",children:[e.jsx(j,{className:"flex h-5 cursor-default items-center justify-center ",children:e.jsx(n,{name:"ChevronUp"})}),e.jsx(g,{className:"p-3",children:e.jsxs(y,{children:[e.jsx(N,{className:"px-5 pb-3 font-mono uppercase",children:"App"}),r.filter(s=>s.name!=="playground").map(s=>e.jsx(T,{value:s.name,children:s.displayName},s.name))]})}),e.jsx(b,{className:"flex h-5 cursor-default items-center justify-center ",children:e.jsx(n,{name:"ChevronDown"})})]})})]})}function T({value:t,children:r}){return e.jsxs(S,{value:t,className:"relative flex cursor-pointer select-none items-center rounded px-10 py-2 leading-none opacity-80 radix-disabled:text-red-500 radix-highlighted:opacity-100 radix-highlighted:outline-none radix-state-checked:opacity-100",children:[e.jsx(w,{children:r}),e.jsx(P,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center",children:e.jsx(n,{name:"CheckSmall"})})]})}function R({appName:t}){return ENV.EPICSHOP_DEPLOYED?null:e.jsx(C,{appName:t,tooltipText:"Playground is not set to the right app. Click to set Playground.",children:e.jsxs("span",{className:"flex items-center justify-center gap-1 text-foreground-danger hover:underline",children:[e.jsx(n,{name:"Unlinked",className:"animate-ping"})," ",e.jsx("span",{className:"uppercase",children:"Set to Playground"})]})})}export{L as P,R as S,C as a};
|
|
2
|
-
//# sourceMappingURL=set-playground-Cdy8VlVD.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-playground-Cdy8VlVD.js","sources":["../../../app/routes/set-playground.tsx"],"sourcesContent":["import {\n\tgetAppByName,\n\tgetApps,\n\tisPlaygroundApp,\n\tisProblemApp,\n\tisSolutionApp,\n\tsetPlayground,\n} from '@epic-web/workshop-utils/apps.server'\nimport * as Select from '@radix-ui/react-select'\nimport { json, type ActionFunctionArgs } from '@remix-run/node'\nimport { useFetcher } from '@remix-run/react'\nimport { clsx } from 'clsx'\nimport { z } from 'zod'\nimport { Icon } from '#app/components/icons.tsx'\nimport { showProgressBarField } from '#app/components/progress-bar.tsx'\nimport { SimpleTooltip } from '#app/components/ui/tooltip.tsx'\nimport { getDiffCode } from '#app/utils/diff.server.ts'\nimport { ensureUndeployed, getErrorMessage } from '#app/utils/misc.tsx'\nimport { createToastHeaders } from '#app/utils/toast.server.ts'\n\nconst SetPlaygroundSchema = z.object({\n\tappName: z.string(),\n\treset: z\n\t\t.string()\n\t\t.nullable()\n\t\t.optional()\n\t\t.transform((v) => v === 'true'),\n})\n\nexport async function action({ request }: ActionFunctionArgs) {\n\tensureUndeployed()\n\tconst formData = await request.formData()\n\tconst rawData = {\n\t\tappName: formData.get('appName'),\n\t}\n\tconst result = SetPlaygroundSchema.safeParse(rawData)\n\tif (!result.success) {\n\t\treturn json({ status: 'error', error: result.error.message } as const, {\n\t\t\tstatus: 400,\n\t\t})\n\t}\n\tconst form = result.data\n\tconst app = await getAppByName(form.appName)\n\tif (!app) {\n\t\treturn json(\n\t\t\t{ status: 'error', error: `App ${form.appName} not found` } as const,\n\t\t\t{ status: 404 },\n\t\t)\n\t}\n\tconst converseApp =\n\t\tisProblemApp(app) && app.solutionName\n\t\t\t? await getAppByName(app.solutionName)\n\t\t\t: isSolutionApp(app) && app.problemName\n\t\t\t\t? await getAppByName(app.problemName)\n\t\t\t\t: undefined\n\ttry {\n\t\tawait setPlayground(app.fullPath, { reset: form.reset })\n\t} catch (error: unknown) {\n\t\tconst message = getErrorMessage(error)\n\t\tconsole.error('Error setting playground', message)\n\t\treturn json({ status: 'error', error: message } as const, {\n\t\t\tstatus: 500,\n\t\t\theaders: await createToastHeaders({\n\t\t\t\ttype: 'error',\n\t\t\t\ttitle: 'Error',\n\t\t\t\tdescription:\n\t\t\t\t\t'There was an error setting the playground. Check the terminal for details.',\n\t\t\t}),\n\t\t})\n\t}\n\tconst apps = await getApps({ forceFresh: true })\n\tconst playground = apps.find(isPlaygroundApp)\n\tif (playground && converseApp) {\n\t\tawait getDiffCode(playground, converseApp, { forceFresh: true })\n\t}\n\treturn json({ status: 'success' } as const)\n}\n\nexport function SetPlayground({\n\tappName,\n\treset = false,\n\ttooltipText,\n\t...buttonProps\n}: {\n\tappName: string\n\ttooltipText?: string\n\treset?: boolean\n} & React.ComponentProps<'button'>) {\n\tconst fetcher = useFetcher<typeof action>()\n\n\tconst submitButton = (\n\t\t<button\n\t\t\ttype=\"submit\"\n\t\t\t{...buttonProps}\n\t\t\tclassName={clsx(\n\t\t\t\tbuttonProps.className,\n\t\t\t\tfetcher.state !== 'idle' ? 'cursor-progress' : null,\n\t\t\t\tfetcher.data?.status === 'error' ? 'cursor-not-allowed' : null,\n\t\t\t)}\n\t\t/>\n\t)\n\treturn (\n\t\t<fetcher.Form\n\t\t\taction=\"/set-playground\"\n\t\t\tmethod=\"POST\"\n\t\t\tclassName=\"inline-flex items-center justify-center\"\n\t\t>\n\t\t\t<input type=\"hidden\" name=\"appName\" value={appName} />\n\t\t\t{reset ? <input type=\"hidden\" name=\"reset\" value=\"true\" /> : null}\n\t\t\t{showProgressBarField}\n\t\t\t{tooltipText ? (\n\t\t\t\t<SimpleTooltip content={tooltipText}>{submitButton}</SimpleTooltip>\n\t\t\t) : (\n\t\t\t\tsubmitButton\n\t\t\t)}\n\t\t</fetcher.Form>\n\t)\n}\n\nexport function PlaygroundChooser({\n\tplaygroundAppName,\n\tallApps,\n}: {\n\tplaygroundAppName?: string\n\tallApps: Array<{ name: string; displayName: string }>\n}) {\n\tconst fetcher = useFetcher<typeof action>()\n\treturn (\n\t\t<Select.Root\n\t\t\tname=\"appName\"\n\t\t\tvalue={playgroundAppName}\n\t\t\tonValueChange={(appName) => {\n\t\t\t\tfetcher.submit(\n\t\t\t\t\t{ appName },\n\t\t\t\t\t{ method: 'POST', action: '/set-playground' },\n\t\t\t\t)\n\t\t\t}}\n\t\t>\n\t\t\t<Select.Trigger\n\t\t\t\taria-label=\"Select app for playground\"\n\t\t\t\tclassName={clsx(\n\t\t\t\t\t'flex h-full w-full items-center justify-between text-left radix-placeholder:text-gray-500 focus-visible:outline-none',\n\t\t\t\t\tfetcher.state !== 'idle' ? 'cursor-progress' : null,\n\t\t\t\t\tfetcher.data?.status === 'error' ? 'cursor-not-allowed' : null,\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t<span className=\"w-80 flex-1 overflow-hidden text-ellipsis whitespace-nowrap scrollbar-thin scrollbar-thumb-scrollbar\">\n\t\t\t\t\t<Select.Value\n\t\t\t\t\t\tplaceholder=\"Select current app\"\n\t\t\t\t\t\tclassName=\"inline-block w-40 text-ellipsis\"\n\t\t\t\t\t/>\n\t\t\t\t</span>\n\t\t\t\t<Select.Icon>\n\t\t\t\t\t<Icon name=\"TriangleDownSmall\" />\n\t\t\t\t</Select.Icon>\n\t\t\t</Select.Trigger>\n\t\t\t<Select.Portal>\n\t\t\t\t<Select.Content\n\t\t\t\t\tposition=\"popper\"\n\t\t\t\t\talign=\"start\"\n\t\t\t\t\tclassName=\"z-20 max-h-[50vh] bg-black text-white lg:max-h-[70vh]\"\n\t\t\t\t>\n\t\t\t\t\t<Select.ScrollUpButton className=\"flex h-5 cursor-default items-center justify-center \">\n\t\t\t\t\t\t<Icon name=\"ChevronUp\" />\n\t\t\t\t\t</Select.ScrollUpButton>\n\t\t\t\t\t<Select.Viewport className=\"p-3\">\n\t\t\t\t\t\t<Select.Group>\n\t\t\t\t\t\t\t<Select.Label className=\"px-5 pb-3 font-mono uppercase\">\n\t\t\t\t\t\t\t\tApp\n\t\t\t\t\t\t\t</Select.Label>\n\t\t\t\t\t\t\t{allApps\n\t\t\t\t\t\t\t\t.filter((app) => app.name !== 'playground')\n\t\t\t\t\t\t\t\t.map((app) => {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t<SelectItem key={app.name} value={app.name}>\n\t\t\t\t\t\t\t\t\t\t\t{app.displayName}\n\t\t\t\t\t\t\t\t\t\t</SelectItem>\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</Select.Group>\n\t\t\t\t\t</Select.Viewport>\n\t\t\t\t\t<Select.ScrollDownButton className=\"flex h-5 cursor-default items-center justify-center \">\n\t\t\t\t\t\t<Icon name=\"ChevronDown\" />\n\t\t\t\t\t</Select.ScrollDownButton>\n\t\t\t\t</Select.Content>\n\t\t\t</Select.Portal>\n\t\t</Select.Root>\n\t)\n}\n\nfunction SelectItem({\n\tvalue,\n\tchildren,\n}: {\n\tvalue: string\n\tchildren: React.ReactNode\n}) {\n\treturn (\n\t\t<Select.Item\n\t\t\tvalue={value}\n\t\t\tclassName=\"relative flex cursor-pointer select-none items-center rounded px-10 py-2 leading-none opacity-80 radix-disabled:text-red-500 radix-highlighted:opacity-100 radix-highlighted:outline-none radix-state-checked:opacity-100\"\n\t\t>\n\t\t\t<Select.ItemText>{children}</Select.ItemText>\n\t\t\t<Select.ItemIndicator className=\"absolute left-0 inline-flex w-[25px] items-center justify-center\">\n\t\t\t\t<Icon name=\"CheckSmall\" />\n\t\t\t</Select.ItemIndicator>\n\t\t</Select.Item>\n\t)\n}\n\nexport function SetAppToPlayground({ appName }: { appName: string }) {\n\tif (ENV.EPICSHOP_DEPLOYED) return null\n\treturn (\n\t\t<SetPlayground\n\t\t\tappName={appName}\n\t\t\ttooltipText=\"Playground is not set to the right app. Click to set Playground.\"\n\t\t>\n\t\t\t<span className=\"flex items-center justify-center gap-1 text-foreground-danger hover:underline\">\n\t\t\t\t<Icon name=\"Unlinked\" className=\"animate-ping\" />{' '}\n\t\t\t\t<span className=\"uppercase\">Set to Playground</span>\n\t\t\t</span>\n\t\t</SetPlayground>\n\t)\n}\n"],"names":["SetPlayground","appName","reset","tooltipText","buttonProps","fetcher","useFetcher","submitButton","jsx","type","className","clsx","state","data","status","jsxs","Form","action","method","children","name","value","showProgressBarField","SimpleTooltip","content","PlaygroundChooser","playgroundAppName","allApps","Select","onValueChange","submit","placeholder","Icon","position","align","filter","app","map","SelectItem","displayName","SetAppToPlayground","ENV","EPICSHOP_DEPLOYED"],"mappings":"qXA8EO,SAASA,EAAc,CAC7BC,QAAAA,EACAC,MAAAA,EAAQ,GACRC,YAAAA,EACA,GAAGC,CACJ,EAIoC,OACnC,MAAMC,EAAUC,IAEVC,EACLC,EAAA,IAAC,SAAA,CACAC,KAAK,SACJ,GAAGL,EACJM,UAAWC,EACVP,EAAYM,UACZL,EAAQO,QAAU,OAAS,kBAAoB,OAC/CP,EAAAA,EAAQQ,OAARR,YAAAA,EAAcS,UAAW,QAAU,qBAAuB,IAC3D,CAAA,CACD,EAGA,OAAAC,EAAA,KAACV,EAAQW,KAAR,CACAC,OAAO,kBACPC,OAAO,OACPR,UAAU,0CAEVS,SAAA,CAAAX,EAAA,IAAC,SAAMC,KAAK,SAASW,KAAK,UAAUC,MAAOpB,EAAS,EACnDC,QAAS,QAAM,CAAAO,KAAK,SAASW,KAAK,QAAQC,MAAM,MAAO,CAAA,EAAK,KAC5DC,EACAnB,EACCK,EAAAA,IAAAe,EAAA,CAAcC,QAASrB,EAAcgB,UAAa,CAAA,EAEnDZ,CAAA,CAAA,CAEF,CAEF,CAEO,SAASkB,EAAkB,CACjCC,kBAAAA,EACAC,QAAAA,CACD,EAGG,OACF,MAAMtB,EAAUC,IAEf,OAAAS,EAAAA,KAACa,EAAA,CACAR,KAAK,UACLC,MAAOK,EACPG,cAAgB5B,GAAY,CACnBI,EAAAyB,OACP,CAAE7B,QAAAA,CAAQ,EACV,CAAEiB,OAAQ,OAAQD,OAAQ,iBAAkB,CAC7C,CACD,EAEAE,SAAA,CAAAJ,EAAA,KAACa,EAAA,CACA,aAAW,4BACXlB,UAAWC,EACV,uHACAN,EAAQO,QAAU,OAAS,kBAAoB,OAC/CP,EAAAA,EAAQQ,OAARR,YAAAA,EAAcS,UAAW,QAAU,qBAAuB,IAC3D,EAEAK,SAAA,CAACX,EAAA,IAAA,OAAA,CAAKE,UAAU,uGACfS,SAAAX,EAAA,IAACoB,EAAA,CACAG,YAAY,qBACZrB,UAAU,kCACX,EACD,EACAF,EAAA,IAACoB,EAAA,CACAT,eAACa,EAAK,CAAAZ,KAAK,oBAAoB,CAChC,CAAA,CAAA,EACD,EACAZ,EAAA,IAACoB,EAAA,CACAT,SAAAJ,EAAA,KAACa,EAAA,CACAK,SAAS,SACTC,MAAM,QACNxB,UAAU,wDAEVS,SAAA,CAACX,EAAA,IAAAoB,EAAA,CAAsBlB,UAAU,uDAChCS,SAACX,EAAA,IAAAwB,EAAA,CAAKZ,KAAK,YAAY,EACxB,EACAZ,EAAA,IAACoB,EAAA,CAAgBlB,UAAU,MAC1BS,SAAAJ,EAAA,KAACa,EAAA,CACAT,SAAA,CAAAX,EAAA,IAACoB,EAAA,CAAalB,UAAU,gCAAgCS,SAExD,KAAA,CAAA,EACCQ,EACCQ,OAAQC,GAAQA,EAAIhB,OAAS,YAAY,EACzCiB,IAAKD,GAEJ5B,EAAAA,IAAC8B,GAA0BjB,MAAOe,EAAIhB,KACpCD,SAAIiB,EAAAG,WAAA,EADWH,EAAIhB,IAErB,CAED,CAAA,EACH,EACD,EACAZ,EAAA,IAACoB,EAAA,CAAwBlB,UAAU,uDAClCS,SAACX,EAAA,IAAAwB,EAAA,CAAKZ,KAAK,cAAc,CAC1B,CAAA,CAAA,EACD,CACD,CAAA,CAAA,CAAA,CACD,CAEF,CAEA,SAASkB,EAAW,CACnBjB,MAAAA,EACAF,SAAAA,CACD,EAGG,CAED,OAAAJ,EAAAA,KAACa,EAAA,CACAP,MAAAA,EACAX,UAAU,4NAEVS,SAAA,CAACX,EAAA,IAAAoB,EAAA,CAAiBT,SAAAA,EAAS,EAC3BX,EAAA,IAACoB,EAAA,CAAqBlB,UAAU,mEAC/BS,SAACX,EAAA,IAAAwB,EAAA,CAAKZ,KAAK,aAAa,CACzB,CAAA,CAAA,CAAA,CACD,CAEF,CAEgB,SAAAoB,EAAmB,CAAEvC,QAAAA,CAAQ,EAAwB,CAChE,OAAAwC,IAAIC,kBAA0B,KAEjClC,EAAAA,IAACR,EAAA,CACAC,QAAAA,EACAE,YAAY,mEAEZgB,SAAAJ,EAAA,KAAC,OAAK,CAAAL,UAAU,gFACfS,SAAA,CAAAX,EAAA,IAACwB,EAAK,CAAAZ,KAAK,WAAWV,UAAU,eAAe,EAAG,IACjDF,EAAA,IAAA,OAAA,CAAKE,UAAU,YAAYS,SAAiB,mBAAA,CAAA,CAAA,EAC9C,CAAA,CACD,CAEF"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./index-1cKOJFpX.js";import{T as r}from"./tests-CmNNBElK.js";import{u as p}from"./components-CME-nGId.js";import"./misc-ENVX3CWf.js";import"./clsx-B-dksMZM.js";import"./accordion-BroSqIct.js";import"./tooltip-BiHTe_7F.js";import"./index-hogig2HK.js";import"./index-BXWoOGxB.js";import"./request-info-CEhUGODY.js";import"./index-BATSX33w.js";import"./client-hints-DNUUFGmB.js";import"./use-event-source-A_0lEOPX.js";import"./set-playground-Cdy8VlVD.js";import"./progress-bar-CSvo1ZXP.js";function L(){const{appInfo:o}=p();return t.jsx(r,{playgroundAppInfo:o})}export{L as default};
|
|
2
|
-
//# sourceMappingURL=test-D9HsTvpe.js.map
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as n,n as S,l as wt,r as m}from"./index-1cKOJFpX.js";import{I as g,b as V}from"./misc-ENVX3CWf.js";import{R as qt,A as yt}from"./accordion-BroSqIct.js";import{z as l}from"./request-info-CEhUGODY.js";import{u as xt}from"./index-BATSX33w.js";import{u as Lt}from"./use-event-source-A_0lEOPX.js";import{S as C}from"./tooltip-BiHTe_7F.js";import{a as B}from"./components-CME-nGId.js";import{a as G,P as Et}from"./set-playground-Cdy8VlVD.js";function Tt({playgroundAppName:t,problemAppName:o,isUpToDate:s,allApps:c,children:r}){const e=t===o,i=e&&s?n.jsx(g,{size:"xl",name:"Linked"}):n.jsx(g,{size:"xl",name:"Unlinked",className:"animate-pulse text-foreground-danger"});let a="Click to reset Playground.";return s||(a="Playground is out of date. Click to reset Playground."),e||(a="Playground is not set to the right app. Click to set Playground."),n.jsxs("div",{className:"flex h-full w-full flex-col justify-between",children:[n.jsxs("div",{className:"flex h-14 flex-shrink-0 items-center justify-start gap-2 border-b px-3",children:[n.jsx("div",{className:"display-alt-up",children:o?n.jsx(G,{appName:o,tooltipText:a,children:i}):n.jsx(C,{content:"No problem app available for this step",children:n.jsx("div",{children:n.jsx(g,{name:"Question"})})})}),n.jsx("div",{className:"display-alt-down",children:t?n.jsx(G,{appName:t,reset:!0,tooltipText:"Reset Playground",children:n.jsx("div",{className:"flex h-7 w-7 items-center justify-center",children:n.jsx(g,{name:"Refresh"})})}):n.jsx("div",{className:"h-7 w-7"})}),n.jsx(Et,{allApps:c,playgroundAppName:t})]}),n.jsx("div",{className:"flex h-full flex-1 flex-grow items-center justify-center",children:r})]})}var K={},L={};const St="Á",Dt="á",At="Ă",kt="ă",Nt="∾",Rt="∿",jt="∾̳",Ct="Â",Ut="â",$t="´",Ht="А",Vt="а",Bt="Æ",Mt="æ",Ot="",Pt="𝔄",Ft="𝔞",Gt="À",It="à",_t="ℵ",zt="ℵ",Xt="Α",Jt="α",Yt="Ā",Zt="ā",Qt="⨿",Kt="&",Wt="&",to="⩕",oo="⩓",so="∧",no="⩜",co="⩘",ro="⩚",eo="∠",ao="⦤",lo="∠",io="⦨",uo="⦩",po="⦪",fo="⦫",go="⦬",mo="⦭",ho="⦮",bo="⦯",vo="∡",wo="∟",qo="⊾",yo="⦝",xo="∢",Lo="Å",Eo="⍼",To="Ą",So="ą",Do="𝔸",Ao="𝕒",ko="⩯",No="≈",Ro="⩰",jo="≊",Co="≋",Uo="'",$o="",Ho="≈",Vo="≊",Bo="Å",Mo="å",Oo="𝒜",Po="𝒶",Fo="≔",Go="*",Io="≈",_o="≍",zo="Ã",Xo="ã",Jo="Ä",Yo="ä",Zo="∳",Qo="⨑",Ko="≌",Wo="϶",ts="‵",os="∽",ss="⋍",ns="∖",cs="⫧",rs="⊽",es="⌅",as="⌆",ls="⌅",is="⎵",us="⎶",ps="≌",ds="Б",fs="б",gs="„",ms="∵",hs="∵",bs="∵",vs="⦰",ws="϶",qs="ℬ",ys="ℬ",xs="Β",Ls="β",Es="ℶ",Ts="≬",Ss="𝔅",Ds="𝔟",As="⋂",ks="◯",Ns="⋃",Rs="⨀",js="⨁",Cs="⨂",Us="⨆",$s="★",Hs="▽",Vs="△",Bs="⨄",Ms="⋁",Os="⋀",Ps="⤍",Fs="⧫",Gs="▪",Is="▴",_s="▾",zs="◂",Xs="▸",Js="␣",Ys="▒",Zs="░",Qs="▓",Ks="█",Ws="=⃥",tn="≡⃥",on="⫭",sn="⌐",nn="𝔹",cn="𝕓",rn="⊥",en="⊥",an="⋈",ln="⧉",un="┐",pn="╕",dn="╖",fn="╗",gn="┌",mn="╒",hn="╓",bn="╔",vn="─",wn="═",qn="┬",yn="╤",xn="╥",Ln="╦",En="┴",Tn="╧",Sn="╨",Dn="╩",An="⊟",kn="⊞",Nn="⊠",Rn="┘",jn="╛",Cn="╜",Un="╝",$n="└",Hn="╘",Vn="╙",Bn="╚",Mn="│",On="║",Pn="┼",Fn="╪",Gn="╫",In="╬",_n="┤",zn="╡",Xn="╢",Jn="╣",Yn="├",Zn="╞",Qn="╟",Kn="╠",Wn="‵",tc="˘",oc="˘",sc="¦",nc="𝒷",cc="ℬ",rc="⁏",ec="∽",ac="⋍",lc="⧅",ic="\\",uc="⟈",pc="•",dc="•",fc="≎",gc="⪮",mc="≏",hc="≎",bc="≏",vc="Ć",wc="ć",qc="⩄",yc="⩉",xc="⩋",Lc="∩",Ec="⋒",Tc="⩇",Sc="⩀",Dc="ⅅ",Ac="∩︀",kc="⁁",Nc="ˇ",Rc="ℭ",jc="⩍",Cc="Č",Uc="č",$c="Ç",Hc="ç",Vc="Ĉ",Bc="ĉ",Mc="∰",Oc="⩌",Pc="⩐",Fc="Ċ",Gc="ċ",Ic="¸",_c="¸",zc="⦲",Xc="¢",Jc="·",Yc="·",Zc="𝔠",Qc="ℭ",Kc="Ч",Wc="ч",tr="✓",or="✓",sr="Χ",nr="χ",cr="ˆ",rr="≗",er="↺",ar="↻",lr="⊛",ir="⊚",ur="⊝",pr="⊙",dr="®",fr="Ⓢ",gr="⊖",mr="⊕",hr="⊗",br="○",vr="⧃",wr="≗",qr="⨐",yr="⫯",xr="⧂",Lr="∲",Er="”",Tr="’",Sr="♣",Dr="♣",Ar=":",kr="∷",Nr="⩴",Rr="≔",jr="≔",Cr=",",Ur="@",$r="∁",Hr="∘",Vr="∁",Br="ℂ",Mr="≅",Or="⩭",Pr="≡",Fr="∮",Gr="∯",Ir="∮",_r="𝕔",zr="ℂ",Xr="∐",Jr="∐",Yr="©",Zr="©",Qr="℗",Kr="∳",Wr="↵",te="✗",oe="⨯",se="𝒞",ne="𝒸",ce="⫏",re="⫑",ee="⫐",ae="⫒",le="⋯",ie="⤸",ue="⤵",pe="⋞",de="⋟",fe="↶",ge="⤽",me="⩈",he="⩆",be="≍",ve="∪",we="⋓",qe="⩊",ye="⊍",xe="⩅",Le="∪︀",Ee="↷",Te="⤼",Se="⋞",De="⋟",Ae="⋎",ke="⋏",Ne="¤",Re="↶",je="↷",Ce="⋎",Ue="⋏",$e="∲",He="∱",Ve="⌭",Be="†",Me="‡",Oe="ℸ",Pe="↓",Fe="↡",Ge="⇓",Ie="‐",_e="⫤",ze="⊣",Xe="⤏",Je="˝",Ye="Ď",Ze="ď",Qe="Д",Ke="д",We="‡",ta="⇊",oa="ⅅ",sa="ⅆ",na="⤑",ca="⩷",ra="°",ea="∇",aa="Δ",la="δ",ia="⦱",ua="⥿",pa="𝔇",da="𝔡",fa="⥥",ga="⇃",ma="⇂",ha="´",ba="˙",va="˝",wa="`",qa="˜",ya="⋄",xa="⋄",La="⋄",Ea="♦",Ta="♦",Sa="¨",Da="ⅆ",Aa="ϝ",ka="⋲",Na="÷",Ra="÷",ja="⋇",Ca="⋇",Ua="Ђ",$a="ђ",Ha="⌞",Va="⌍",Ba="$",Ma="𝔻",Oa="𝕕",Pa="¨",Fa="˙",Ga="⃜",Ia="≐",_a="≑",za="≐",Xa="∸",Ja="∔",Ya="⊡",Za="⌆",Qa="∯",Ka="¨",Wa="⇓",tl="⇐",ol="⇔",sl="⫤",nl="⟸",cl="⟺",rl="⟹",el="⇒",al="⊨",ll="⇑",il="⇕",ul="∥",pl="⤓",dl="↓",fl="↓",gl="⇓",ml="⇵",hl="̑",bl="⇊",vl="⇃",wl="⇂",ql="⥐",yl="⥞",xl="⥖",Ll="↽",El="⥟",Tl="⥗",Sl="⇁",Dl="↧",Al="⊤",kl="⤐",Nl="⌟",Rl="⌌",jl="𝒟",Cl="𝒹",Ul="Ѕ",$l="ѕ",Hl="⧶",Vl="Đ",Bl="đ",Ml="⋱",Ol="▿",Pl="▾",Fl="⇵",Gl="⥯",Il="⦦",_l="Џ",zl="џ",Xl="⟿",Jl="É",Yl="é",Zl="⩮",Ql="Ě",Kl="ě",Wl="Ê",ti="ê",oi="≖",si="≕",ni="Э",ci="э",ri="⩷",ei="Ė",ai="ė",li="≑",ii="ⅇ",ui="≒",pi="𝔈",di="𝔢",fi="⪚",gi="È",mi="è",hi="⪖",bi="⪘",vi="⪙",wi="∈",qi="⏧",yi="ℓ",xi="⪕",Li="⪗",Ei="Ē",Ti="ē",Si="∅",Di="∅",Ai="◻",ki="∅",Ni="▫",Ri=" ",ji=" ",Ci=" ",Ui="Ŋ",$i="ŋ",Hi=" ",Vi="Ę",Bi="ę",Mi="𝔼",Oi="𝕖",Pi="⋕",Fi="⧣",Gi="⩱",Ii="ε",_i="Ε",zi="ε",Xi="ϵ",Ji="≖",Yi="≕",Zi="≂",Qi="⪖",Ki="⪕",Wi="⩵",tu="=",ou="≂",su="≟",nu="⇌",cu="≡",ru="⩸",eu="⧥",au="⥱",lu="≓",iu="ℯ",uu="ℰ",pu="≐",du="⩳",fu="≂",gu="Η",mu="η",hu="Ð",bu="ð",vu="Ë",wu="ë",qu="€",yu="!",xu="∃",Lu="∃",Eu="ℰ",Tu="ⅇ",Su="ⅇ",Du="≒",Au="Ф",ku="ф",Nu="♀",Ru="ffi",ju="ff",Cu="ffl",Uu="𝔉",$u="𝔣",Hu="fi",Vu="◼",Bu="▪",Mu="fj",Ou="♭",Pu="fl",Fu="▱",Gu="ƒ",Iu="𝔽",_u="𝕗",zu="∀",Xu="∀",Ju="⋔",Yu="⫙",Zu="ℱ",Qu="⨍",Ku="½",Wu="⅓",tp="¼",op="⅕",sp="⅙",np="⅛",cp="⅔",rp="⅖",ep="¾",ap="⅗",lp="⅜",ip="⅘",up="⅚",pp="⅝",dp="⅞",fp="⁄",gp="⌢",mp="𝒻",hp="ℱ",bp="ǵ",vp="Γ",wp="γ",qp="Ϝ",yp="ϝ",xp="⪆",Lp="Ğ",Ep="ğ",Tp="Ģ",Sp="Ĝ",Dp="ĝ",Ap="Г",kp="г",Np="Ġ",Rp="ġ",jp="≥",Cp="≧",Up="⪌",$p="⋛",Hp="≥",Vp="≧",Bp="⩾",Mp="⪩",Op="⩾",Pp="⪀",Fp="⪂",Gp="⪄",Ip="⋛︀",_p="⪔",zp="𝔊",Xp="𝔤",Jp="≫",Yp="⋙",Zp="⋙",Qp="ℷ",Kp="Ѓ",Wp="ѓ",td="⪥",od="≷",sd="⪒",nd="⪤",cd="⪊",rd="⪊",ed="⪈",ad="≩",ld="⪈",id="≩",ud="⋧",pd="𝔾",dd="𝕘",fd="`",gd="≥",md="⋛",hd="≧",bd="⪢",vd="≷",wd="⩾",qd="≳",yd="𝒢",xd="ℊ",Ld="≳",Ed="⪎",Td="⪐",Sd="⪧",Dd="⩺",Ad=">",kd=">",Nd="≫",Rd="⋗",jd="⦕",Cd="⩼",Ud="⪆",$d="⥸",Hd="⋗",Vd="⋛",Bd="⪌",Md="≷",Od="≳",Pd="≩︀",Fd="≩︀",Gd="ˇ",Id=" ",_d="½",zd="ℋ",Xd="Ъ",Jd="ъ",Yd="⥈",Zd="↔",Qd="⇔",Kd="↭",Wd="^",tf="ℏ",of="Ĥ",sf="ĥ",nf="♥",cf="♥",rf="…",ef="⊹",af="𝔥",lf="ℌ",uf="ℋ",pf="⤥",df="⤦",ff="⇿",gf="∻",mf="↩",hf="↪",bf="𝕙",vf="ℍ",wf="―",qf="─",yf="𝒽",xf="ℋ",Lf="ℏ",Ef="Ħ",Tf="ħ",Sf="≎",Df="≏",Af="⁃",kf="‐",Nf="Í",Rf="í",jf="",Cf="Î",Uf="î",$f="И",Hf="и",Vf="İ",Bf="Е",Mf="е",Of="¡",Pf="⇔",Ff="𝔦",Gf="ℑ",If="Ì",_f="ì",zf="ⅈ",Xf="⨌",Jf="∭",Yf="⧜",Zf="℩",Qf="IJ",Kf="ij",Wf="Ī",tg="ī",og="ℑ",sg="ⅈ",ng="ℐ",cg="ℑ",rg="ı",eg="ℑ",ag="⊷",lg="Ƶ",ig="⇒",ug="℅",pg="∞",dg="⧝",fg="ı",gg="⊺",mg="∫",hg="∬",bg="ℤ",vg="∫",wg="⊺",qg="⋂",yg="⨗",xg="⨼",Lg="",Eg="",Tg="Ё",Sg="ё",Dg="Į",Ag="į",kg="𝕀",Ng="𝕚",Rg="Ι",jg="ι",Cg="⨼",Ug="¿",$g="𝒾",Hg="ℐ",Vg="∈",Bg="⋵",Mg="⋹",Og="⋴",Pg="⋳",Fg="∈",Gg="",Ig="Ĩ",_g="ĩ",zg="І",Xg="і",Jg="Ï",Yg="ï",Zg="Ĵ",Qg="ĵ",Kg="Й",Wg="й",tm="𝔍",om="𝔧",sm="ȷ",nm="𝕁",cm="𝕛",rm="𝒥",em="𝒿",am="Ј",lm="ј",im="Є",um="є",pm="Κ",dm="κ",fm="ϰ",gm="Ķ",mm="ķ",hm="К",bm="к",vm="𝔎",wm="𝔨",qm="ĸ",ym="Х",xm="х",Lm="Ќ",Em="ќ",Tm="𝕂",Sm="𝕜",Dm="𝒦",Am="𝓀",km="⇚",Nm="Ĺ",Rm="ĺ",jm="⦴",Cm="ℒ",Um="Λ",$m="λ",Hm="⟨",Vm="⟪",Bm="⦑",Mm="⟨",Om="⪅",Pm="ℒ",Fm="«",Gm="⇤",Im="⤟",_m="←",zm="↞",Xm="⇐",Jm="⤝",Ym="↩",Zm="↫",Qm="⤹",Km="⥳",Wm="↢",th="⤙",oh="⤛",sh="⪫",nh="⪭",ch="⪭︀",rh="⤌",eh="⤎",ah="❲",lh="{",ih="[",uh="⦋",ph="⦏",dh="⦍",fh="Ľ",gh="ľ",mh="Ļ",hh="ļ",bh="⌈",vh="{",wh="Л",qh="л",yh="⤶",xh="“",Lh="„",Eh="⥧",Th="⥋",Sh="↲",Dh="≤",Ah="≦",kh="⟨",Nh="⇤",Rh="←",jh="←",Ch="⇐",Uh="⇆",$h="↢",Hh="⌈",Vh="⟦",Bh="⥡",Mh="⥙",Oh="⇃",Ph="⌊",Fh="↽",Gh="↼",Ih="⇇",_h="↔",zh="↔",Xh="⇔",Jh="⇆",Yh="⇋",Zh="↭",Qh="⥎",Kh="↤",Wh="⊣",tb="⥚",ob="⋋",sb="⧏",nb="⊲",cb="⊴",rb="⥑",eb="⥠",ab="⥘",lb="↿",ib="⥒",ub="↼",pb="⪋",db="⋚",fb="≤",gb="≦",mb="⩽",hb="⪨",bb="⩽",vb="⩿",wb="⪁",qb="⪃",yb="⋚︀",xb="⪓",Lb="⪅",Eb="⋖",Tb="⋚",Sb="⪋",Db="⋚",Ab="≦",kb="≶",Nb="≶",Rb="⪡",jb="≲",Cb="⩽",Ub="≲",$b="⥼",Hb="⌊",Vb="𝔏",Bb="𝔩",Mb="≶",Ob="⪑",Pb="⥢",Fb="↽",Gb="↼",Ib="⥪",_b="▄",zb="Љ",Xb="љ",Jb="⇇",Yb="≪",Zb="⋘",Qb="⌞",Kb="⇚",Wb="⥫",tv="◺",ov="Ŀ",sv="ŀ",nv="⎰",cv="⎰",rv="⪉",ev="⪉",av="⪇",lv="≨",iv="⪇",uv="≨",pv="⋦",dv="⟬",fv="⇽",gv="⟦",mv="⟵",hv="⟵",bv="⟸",vv="⟷",wv="⟷",qv="⟺",yv="⟼",xv="⟶",Lv="⟶",Ev="⟹",Tv="↫",Sv="↬",Dv="⦅",Av="𝕃",kv="𝕝",Nv="⨭",Rv="⨴",jv="∗",Cv="_",Uv="↙",$v="↘",Hv="◊",Vv="◊",Bv="⧫",Mv="(",Ov="⦓",Pv="⇆",Fv="⌟",Gv="⇋",Iv="⥭",_v="",zv="⊿",Xv="‹",Jv="𝓁",Yv="ℒ",Zv="↰",Qv="↰",Kv="≲",Wv="⪍",tw="⪏",ow="[",sw="‘",nw="‚",cw="Ł",rw="ł",ew="⪦",aw="⩹",lw="<",iw="<",uw="≪",pw="⋖",dw="⋋",fw="⋉",gw="⥶",mw="⩻",hw="◃",bw="⊴",vw="◂",ww="⦖",qw="⥊",yw="⥦",xw="≨︀",Lw="≨︀",Ew="¯",Tw="♂",Sw="✠",Dw="✠",Aw="↦",kw="↦",Nw="↧",Rw="↤",jw="↥",Cw="▮",Uw="⨩",$w="М",Hw="м",Vw="—",Bw="∺",Mw="∡",Ow=" ",Pw="ℳ",Fw="𝔐",Gw="𝔪",Iw="℧",_w="µ",zw="*",Xw="⫰",Jw="∣",Yw="·",Zw="⊟",Qw="−",Kw="∸",Ww="⨪",tq="∓",oq="⫛",sq="…",nq="∓",cq="⊧",rq="𝕄",eq="𝕞",aq="∓",lq="𝓂",iq="ℳ",uq="∾",pq="Μ",dq="μ",fq="⊸",gq="⊸",mq="∇",hq="Ń",bq="ń",vq="∠⃒",wq="≉",qq="⩰̸",yq="≋̸",xq="ʼn",Lq="≉",Eq="♮",Tq="ℕ",Sq="♮",Dq=" ",Aq="≎̸",kq="≏̸",Nq="⩃",Rq="Ň",jq="ň",Cq="Ņ",Uq="ņ",$q="≇",Hq="⩭̸",Vq="⩂",Bq="Н",Mq="н",Oq="–",Pq="⤤",Fq="↗",Gq="⇗",Iq="↗",_q="≠",zq="≐̸",Xq="",Jq="",Yq="",Zq="",Qq="≢",Kq="⤨",Wq="≂̸",ty="≫",oy="≪",sy=`
|
|
2
|
-
`,ny="∄",cy="∄",ry="𝔑",ey="𝔫",ay="≧̸",ly="≱",iy="≱",uy="≧̸",py="⩾̸",dy="⩾̸",fy="⋙̸",gy="≵",my="≫⃒",hy="≯",by="≯",vy="≫̸",wy="↮",qy="⇎",yy="⫲",xy="∋",Ly="⋼",Ey="⋺",Ty="∋",Sy="Њ",Dy="њ",Ay="↚",ky="⇍",Ny="‥",Ry="≦̸",jy="≰",Cy="↚",Uy="⇍",$y="↮",Hy="⇎",Vy="≰",By="≦̸",My="⩽̸",Oy="⩽̸",Py="≮",Fy="⋘̸",Gy="≴",Iy="≪⃒",_y="≮",zy="⋪",Xy="⋬",Jy="≪̸",Yy="∤",Zy="",Qy=" ",Ky="𝕟",Wy="ℕ",tx="⫬",ox="¬",sx="≢",nx="≭",cx="∦",rx="∉",ex="≠",ax="≂̸",lx="∄",ix="≯",ux="≱",px="≧̸",dx="≫̸",fx="≹",gx="⩾̸",mx="≵",hx="≎̸",bx="≏̸",vx="∉",wx="⋵̸",qx="⋹̸",yx="∉",xx="⋷",Lx="⋶",Ex="⧏̸",Tx="⋪",Sx="⋬",Dx="≮",Ax="≰",kx="≸",Nx="≪̸",Rx="⩽̸",jx="≴",Cx="⪢̸",Ux="⪡̸",$x="∌",Hx="∌",Vx="⋾",Bx="⋽",Mx="⊀",Ox="⪯̸",Px="⋠",Fx="∌",Gx="⧐̸",Ix="⋫",_x="⋭",zx="⊏̸",Xx="⋢",Jx="⊐̸",Yx="⋣",Zx="⊂⃒",Qx="⊈",Kx="⊁",Wx="⪰̸",tL="⋡",oL="≿̸",sL="⊃⃒",nL="⊉",cL="≁",rL="≄",eL="≇",aL="≉",lL="∤",iL="∦",uL="∦",pL="⫽⃥",dL="∂̸",fL="⨔",gL="⊀",mL="⋠",hL="⊀",bL="⪯̸",vL="⪯̸",wL="⤳̸",qL="↛",yL="⇏",xL="↝̸",LL="↛",EL="⇏",TL="⋫",SL="⋭",DL="⊁",AL="⋡",kL="⪰̸",NL="𝒩",RL="𝓃",jL="∤",CL="∦",UL="≁",$L="≄",HL="≄",VL="∤",BL="∦",ML="⋢",OL="⋣",PL="⊄",FL="⫅̸",GL="⊈",IL="⊂⃒",_L="⊈",zL="⫅̸",XL="⊁",JL="⪰̸",YL="⊅",ZL="⫆̸",QL="⊉",KL="⊃⃒",WL="⊉",tE="⫆̸",oE="≹",sE="Ñ",nE="ñ",cE="≸",rE="⋪",eE="⋬",aE="⋫",lE="⋭",iE="Ν",uE="ν",pE="#",dE="№",fE=" ",gE="≍⃒",mE="⊬",hE="⊭",bE="⊮",vE="⊯",wE="≥⃒",qE=">⃒",yE="⤄",xE="⧞",LE="⤂",EE="≤⃒",TE="<⃒",SE="⊴⃒",DE="⤃",AE="⊵⃒",kE="∼⃒",NE="⤣",RE="↖",jE="⇖",CE="↖",UE="⤧",$E="Ó",HE="ó",VE="⊛",BE="Ô",ME="ô",OE="⊚",PE="О",FE="о",GE="⊝",IE="Ő",_E="ő",zE="⨸",XE="⊙",JE="⦼",YE="Œ",ZE="œ",QE="⦿",KE="𝔒",WE="𝔬",tT="˛",oT="Ò",sT="ò",nT="⧁",cT="⦵",rT="Ω",eT="∮",aT="↺",lT="⦾",iT="⦻",uT="‾",pT="⧀",dT="Ō",fT="ō",gT="Ω",mT="ω",hT="Ο",bT="ο",vT="⦶",wT="⊖",qT="𝕆",yT="𝕠",xT="⦷",LT="“",ET="‘",TT="⦹",ST="⊕",DT="↻",AT="⩔",kT="∨",NT="⩝",RT="ℴ",jT="ℴ",CT="ª",UT="º",$T="⊶",HT="⩖",VT="⩗",BT="⩛",MT="Ⓢ",OT="𝒪",PT="ℴ",FT="Ø",GT="ø",IT="⊘",_T="Õ",zT="õ",XT="⨶",JT="⨷",YT="⊗",ZT="Ö",QT="ö",KT="⌽",WT="‾",t1="⏞",o1="⎴",s1="⏜",n1="¶",c1="∥",r1="∥",e1="⫳",a1="⫽",l1="∂",i1="∂",u1="П",p1="п",d1="%",f1=".",g1="‰",m1="⊥",h1="‱",b1="𝔓",v1="𝔭",w1="Φ",q1="φ",y1="ϕ",x1="ℳ",L1="☎",E1="Π",T1="π",S1="⋔",D1="ϖ",A1="ℏ",k1="ℎ",N1="ℏ",R1="⨣",j1="⊞",C1="⨢",U1="+",$1="∔",H1="⨥",V1="⩲",B1="±",M1="±",O1="⨦",P1="⨧",F1="±",G1="ℌ",I1="⨕",_1="𝕡",z1="ℙ",X1="£",J1="⪷",Y1="⪻",Z1="≺",Q1="≼",K1="⪷",W1="≺",tS="≼",oS="≺",sS="⪯",nS="≼",cS="≾",rS="⪯",eS="⪹",aS="⪵",lS="⋨",iS="⪯",uS="⪳",pS="≾",dS="′",fS="″",gS="ℙ",mS="⪹",hS="⪵",bS="⋨",vS="∏",wS="∏",qS="⌮",yS="⌒",xS="⌓",LS="∝",ES="∝",TS="∷",SS="∝",DS="≾",AS="⊰",kS="𝒫",NS="𝓅",RS="Ψ",jS="ψ",CS=" ",US="𝔔",$S="𝔮",HS="⨌",VS="𝕢",BS="ℚ",MS="⁗",OS="𝒬",PS="𝓆",FS="ℍ",GS="⨖",IS="?",_S="≟",zS='"',XS='"',JS="⇛",YS="∽̱",ZS="Ŕ",QS="ŕ",KS="√",WS="⦳",tD="⟩",oD="⟫",sD="⦒",nD="⦥",cD="⟩",rD="»",eD="⥵",aD="⇥",lD="⤠",iD="⤳",uD="→",pD="↠",dD="⇒",fD="⤞",gD="↪",mD="↬",hD="⥅",bD="⥴",vD="⤖",wD="↣",qD="↝",yD="⤚",xD="⤜",LD="∶",ED="ℚ",TD="⤍",SD="⤏",DD="⤐",AD="❳",kD="}",ND="]",RD="⦌",jD="⦎",CD="⦐",UD="Ř",$D="ř",HD="Ŗ",VD="ŗ",BD="⌉",MD="}",OD="Р",PD="р",FD="⤷",GD="⥩",ID="”",_D="”",zD="↳",XD="ℜ",JD="ℛ",YD="ℜ",ZD="ℝ",QD="ℜ",KD="▭",WD="®",tA="®",oA="∋",sA="⇋",nA="⥯",cA="⥽",rA="⌋",eA="𝔯",aA="ℜ",lA="⥤",iA="⇁",uA="⇀",pA="⥬",dA="Ρ",fA="ρ",gA="ϱ",mA="⟩",hA="⇥",bA="→",vA="→",wA="⇒",qA="⇄",yA="↣",xA="⌉",LA="⟧",EA="⥝",TA="⥕",SA="⇂",DA="⌋",AA="⇁",kA="⇀",NA="⇄",RA="⇌",jA="⇉",CA="↝",UA="↦",$A="⊢",HA="⥛",VA="⋌",BA="⧐",MA="⊳",OA="⊵",PA="⥏",FA="⥜",GA="⥔",IA="↾",_A="⥓",zA="⇀",XA="˚",JA="≓",YA="⇄",ZA="⇌",QA="",KA="⎱",WA="⎱",tk="⫮",ok="⟭",sk="⇾",nk="⟧",ck="⦆",rk="𝕣",ek="ℝ",ak="⨮",lk="⨵",ik="⥰",uk=")",pk="⦔",dk="⨒",fk="⇉",gk="⇛",mk="›",hk="𝓇",bk="ℛ",vk="↱",wk="↱",qk="]",yk="’",xk="’",Lk="⋌",Ek="⋊",Tk="▹",Sk="⊵",Dk="▸",Ak="⧎",kk="⧴",Nk="⥨",Rk="℞",jk="Ś",Ck="ś",Uk="‚",$k="⪸",Hk="Š",Vk="š",Bk="⪼",Mk="≻",Ok="≽",Pk="⪰",Fk="⪴",Gk="Ş",Ik="ş",_k="Ŝ",zk="ŝ",Xk="⪺",Jk="⪶",Yk="⋩",Zk="⨓",Qk="≿",Kk="С",Wk="с",tN="⊡",oN="⋅",sN="⩦",nN="⤥",cN="↘",rN="⇘",eN="↘",aN="§",lN=";",iN="⤩",uN="∖",pN="∖",dN="✶",fN="𝔖",gN="𝔰",mN="⌢",hN="♯",bN="Щ",vN="щ",wN="Ш",qN="ш",yN="↓",xN="←",LN="∣",EN="∥",TN="→",SN="↑",DN="",AN="Σ",kN="σ",NN="ς",RN="ς",jN="∼",CN="⩪",UN="≃",$N="≃",HN="⪞",VN="⪠",BN="⪝",MN="⪟",ON="≆",PN="⨤",FN="⥲",GN="←",IN="∘",_N="∖",zN="⨳",XN="⧤",JN="∣",YN="⌣",ZN="⪪",QN="⪬",KN="⪬︀",WN="Ь",tR="ь",oR="⌿",sR="⧄",nR="/",cR="𝕊",rR="𝕤",eR="♠",aR="♠",lR="∥",iR="⊓",uR="⊓︀",pR="⊔",dR="⊔︀",fR="√",gR="⊏",mR="⊑",hR="⊏",bR="⊑",vR="⊐",wR="⊒",qR="⊐",yR="⊒",xR="□",LR="□",ER="⊓",TR="⊏",SR="⊑",DR="⊐",AR="⊒",kR="⊔",NR="▪",RR="□",jR="▪",CR="→",UR="𝒮",$R="𝓈",HR="∖",VR="⌣",BR="⋆",MR="⋆",OR="☆",PR="★",FR="ϵ",GR="ϕ",IR="¯",_R="⊂",zR="⋐",XR="⪽",JR="⫅",YR="⊆",ZR="⫃",QR="⫁",KR="⫋",WR="⊊",tj="⪿",oj="⥹",sj="⊂",nj="⋐",cj="⊆",rj="⫅",ej="⊆",aj="⊊",lj="⫋",ij="⫇",uj="⫕",pj="⫓",dj="⪸",fj="≻",gj="≽",mj="≻",hj="⪰",bj="≽",vj="≿",wj="⪰",qj="⪺",yj="⪶",xj="⋩",Lj="≿",Ej="∋",Tj="∑",Sj="∑",Dj="♪",Aj="¹",kj="²",Nj="³",Rj="⊃",jj="⋑",Cj="⪾",Uj="⫘",$j="⫆",Hj="⊇",Vj="⫄",Bj="⊃",Mj="⊇",Oj="⟉",Pj="⫗",Fj="⥻",Gj="⫂",Ij="⫌",_j="⊋",zj="⫀",Xj="⊃",Jj="⋑",Yj="⊇",Zj="⫆",Qj="⊋",Kj="⫌",Wj="⫈",tC="⫔",oC="⫖",sC="⤦",nC="↙",cC="⇙",rC="↙",eC="⤪",aC="ß",lC=" ",iC="⌖",uC="Τ",pC="τ",dC="⎴",fC="Ť",gC="ť",mC="Ţ",hC="ţ",bC="Т",vC="т",wC="⃛",qC="⌕",yC="𝔗",xC="𝔱",LC="∴",EC="∴",TC="∴",SC="Θ",DC="θ",AC="ϑ",kC="ϑ",NC="≈",RC="∼",jC=" ",CC=" ",UC=" ",$C="≈",HC="∼",VC="Þ",BC="þ",MC="˜",OC="∼",PC="≃",FC="≅",GC="≈",IC="⨱",_C="⊠",zC="×",XC="⨰",JC="∭",YC="⤨",ZC="⌶",QC="⫱",KC="⊤",WC="𝕋",t0="𝕥",o0="⫚",s0="⤩",n0="‴",c0="™",r0="™",e0="▵",a0="▿",l0="◃",i0="⊴",u0="≜",p0="▹",d0="⊵",f0="◬",g0="≜",m0="⨺",h0="⃛",b0="⨹",v0="⧍",w0="⨻",q0="⏢",y0="𝒯",x0="𝓉",L0="Ц",E0="ц",T0="Ћ",S0="ћ",D0="Ŧ",A0="ŧ",k0="≬",N0="↞",R0="↠",j0="Ú",C0="ú",U0="↑",$0="↟",H0="⇑",V0="⥉",B0="Ў",M0="ў",O0="Ŭ",P0="ŭ",F0="Û",G0="û",I0="У",_0="у",z0="⇅",X0="Ű",J0="ű",Y0="⥮",Z0="⥾",Q0="𝔘",K0="𝔲",W0="Ù",tU="ù",oU="⥣",sU="↿",nU="↾",cU="▀",rU="⌜",eU="⌜",aU="⌏",lU="◸",iU="Ū",uU="ū",pU="¨",dU="_",fU="⏟",gU="⎵",mU="⏝",hU="⋃",bU="⊎",vU="Ų",wU="ų",qU="𝕌",yU="𝕦",xU="⤒",LU="↑",EU="↑",TU="⇑",SU="⇅",DU="↕",AU="↕",kU="⇕",NU="⥮",RU="↿",jU="↾",CU="⊎",UU="↖",$U="↗",HU="υ",VU="ϒ",BU="ϒ",MU="Υ",OU="υ",PU="↥",FU="⊥",GU="⇈",IU="⌝",_U="⌝",zU="⌎",XU="Ů",JU="ů",YU="◹",ZU="𝒰",QU="𝓊",KU="⋰",WU="Ũ",t$="ũ",o$="▵",s$="▴",n$="⇈",c$="Ü",r$="ü",e$="⦧",a$="⦜",l$="ϵ",i$="ϰ",u$="∅",p$="ϕ",d$="ϖ",f$="∝",g$="↕",m$="⇕",h$="ϱ",b$="ς",v$="⊊︀",w$="⫋︀",q$="⊋︀",y$="⫌︀",x$="ϑ",L$="⊲",E$="⊳",T$="⫨",S$="⫫",D$="⫩",A$="В",k$="в",N$="⊢",R$="⊨",j$="⊩",C$="⊫",U$="⫦",$$="⊻",H$="∨",V$="⋁",B$="≚",M$="⋮",O$="|",P$="‖",F$="|",G$="‖",I$="∣",_$="|",z$="❘",X$="≀",J$=" ",Y$="𝔙",Z$="𝔳",Q$="⊲",K$="⊂⃒",W$="⊃⃒",tH="𝕍",oH="𝕧",sH="∝",nH="⊳",cH="𝒱",rH="𝓋",eH="⫋︀",aH="⊊︀",lH="⫌︀",iH="⊋︀",uH="⊪",pH="⦚",dH="Ŵ",fH="ŵ",gH="⩟",mH="∧",hH="⋀",bH="≙",vH="℘",wH="𝔚",qH="𝔴",yH="𝕎",xH="𝕨",LH="℘",EH="≀",TH="≀",SH="𝒲",DH="𝓌",AH="⋂",kH="◯",NH="⋃",RH="▽",jH="𝔛",CH="𝔵",UH="⟷",$H="⟺",HH="Ξ",VH="ξ",BH="⟵",MH="⟸",OH="⟼",PH="⋻",FH="⨀",GH="𝕏",IH="𝕩",_H="⨁",zH="⨂",XH="⟶",JH="⟹",YH="𝒳",ZH="𝓍",QH="⨆",KH="⨄",WH="△",tV="⋁",oV="⋀",sV="Ý",nV="ý",cV="Я",rV="я",eV="Ŷ",aV="ŷ",lV="Ы",iV="ы",uV="¥",pV="𝔜",dV="𝔶",fV="Ї",gV="ї",mV="𝕐",hV="𝕪",bV="𝒴",vV="𝓎",wV="Ю",qV="ю",yV="ÿ",xV="Ÿ",LV="Ź",EV="ź",TV="Ž",SV="ž",DV="З",AV="з",kV="Ż",NV="ż",RV="ℨ",jV="",CV="Ζ",UV="ζ",$V="𝔷",HV="ℨ",VV="Ж",BV="ж",MV="⇝",OV="𝕫",PV="ℤ",FV="𝒵",GV="𝓏",IV="",_V="",W={Aacute:St,aacute:Dt,Abreve:At,abreve:kt,ac:Nt,acd:Rt,acE:jt,Acirc:Ct,acirc:Ut,acute:$t,Acy:Ht,acy:Vt,AElig:Bt,aelig:Mt,af:Ot,Afr:Pt,afr:Ft,Agrave:Gt,agrave:It,alefsym:_t,aleph:zt,Alpha:Xt,alpha:Jt,Amacr:Yt,amacr:Zt,amalg:Qt,amp:Kt,AMP:Wt,andand:to,And:oo,and:so,andd:no,andslope:co,andv:ro,ang:eo,ange:ao,angle:lo,angmsdaa:io,angmsdab:uo,angmsdac:po,angmsdad:fo,angmsdae:go,angmsdaf:mo,angmsdag:ho,angmsdah:bo,angmsd:vo,angrt:wo,angrtvb:qo,angrtvbd:yo,angsph:xo,angst:Lo,angzarr:Eo,Aogon:To,aogon:So,Aopf:Do,aopf:Ao,apacir:ko,ap:No,apE:Ro,ape:jo,apid:Co,apos:Uo,ApplyFunction:$o,approx:Ho,approxeq:Vo,Aring:Bo,aring:Mo,Ascr:Oo,ascr:Po,Assign:Fo,ast:Go,asymp:Io,asympeq:_o,Atilde:zo,atilde:Xo,Auml:Jo,auml:Yo,awconint:Zo,awint:Qo,backcong:Ko,backepsilon:Wo,backprime:ts,backsim:os,backsimeq:ss,Backslash:ns,Barv:cs,barvee:rs,barwed:es,Barwed:as,barwedge:ls,bbrk:is,bbrktbrk:us,bcong:ps,Bcy:ds,bcy:fs,bdquo:gs,becaus:ms,because:hs,Because:bs,bemptyv:vs,bepsi:ws,bernou:qs,Bernoullis:ys,Beta:xs,beta:Ls,beth:Es,between:Ts,Bfr:Ss,bfr:Ds,bigcap:As,bigcirc:ks,bigcup:Ns,bigodot:Rs,bigoplus:js,bigotimes:Cs,bigsqcup:Us,bigstar:$s,bigtriangledown:Hs,bigtriangleup:Vs,biguplus:Bs,bigvee:Ms,bigwedge:Os,bkarow:Ps,blacklozenge:Fs,blacksquare:Gs,blacktriangle:Is,blacktriangledown:_s,blacktriangleleft:zs,blacktriangleright:Xs,blank:Js,blk12:Ys,blk14:Zs,blk34:Qs,block:Ks,bne:Ws,bnequiv:tn,bNot:on,bnot:sn,Bopf:nn,bopf:cn,bot:rn,bottom:en,bowtie:an,boxbox:ln,boxdl:un,boxdL:pn,boxDl:dn,boxDL:fn,boxdr:gn,boxdR:mn,boxDr:hn,boxDR:bn,boxh:vn,boxH:wn,boxhd:qn,boxHd:yn,boxhD:xn,boxHD:Ln,boxhu:En,boxHu:Tn,boxhU:Sn,boxHU:Dn,boxminus:An,boxplus:kn,boxtimes:Nn,boxul:Rn,boxuL:jn,boxUl:Cn,boxUL:Un,boxur:$n,boxuR:Hn,boxUr:Vn,boxUR:Bn,boxv:Mn,boxV:On,boxvh:Pn,boxvH:Fn,boxVh:Gn,boxVH:In,boxvl:_n,boxvL:zn,boxVl:Xn,boxVL:Jn,boxvr:Yn,boxvR:Zn,boxVr:Qn,boxVR:Kn,bprime:Wn,breve:tc,Breve:oc,brvbar:sc,bscr:nc,Bscr:cc,bsemi:rc,bsim:ec,bsime:ac,bsolb:lc,bsol:ic,bsolhsub:uc,bull:pc,bullet:dc,bump:fc,bumpE:gc,bumpe:mc,Bumpeq:hc,bumpeq:bc,Cacute:vc,cacute:wc,capand:qc,capbrcup:yc,capcap:xc,cap:Lc,Cap:Ec,capcup:Tc,capdot:Sc,CapitalDifferentialD:Dc,caps:Ac,caret:kc,caron:Nc,Cayleys:Rc,ccaps:jc,Ccaron:Cc,ccaron:Uc,Ccedil:$c,ccedil:Hc,Ccirc:Vc,ccirc:Bc,Cconint:Mc,ccups:Oc,ccupssm:Pc,Cdot:Fc,cdot:Gc,cedil:Ic,Cedilla:_c,cemptyv:zc,cent:Xc,centerdot:Jc,CenterDot:Yc,cfr:Zc,Cfr:Qc,CHcy:Kc,chcy:Wc,check:tr,checkmark:or,Chi:sr,chi:nr,circ:cr,circeq:rr,circlearrowleft:er,circlearrowright:ar,circledast:lr,circledcirc:ir,circleddash:ur,CircleDot:pr,circledR:dr,circledS:fr,CircleMinus:gr,CirclePlus:mr,CircleTimes:hr,cir:br,cirE:vr,cire:wr,cirfnint:qr,cirmid:yr,cirscir:xr,ClockwiseContourIntegral:Lr,CloseCurlyDoubleQuote:Er,CloseCurlyQuote:Tr,clubs:Sr,clubsuit:Dr,colon:Ar,Colon:kr,Colone:Nr,colone:Rr,coloneq:jr,comma:Cr,commat:Ur,comp:$r,compfn:Hr,complement:Vr,complexes:Br,cong:Mr,congdot:Or,Congruent:Pr,conint:Fr,Conint:Gr,ContourIntegral:Ir,copf:_r,Copf:zr,coprod:Xr,Coproduct:Jr,copy:Yr,COPY:Zr,copysr:Qr,CounterClockwiseContourIntegral:Kr,crarr:Wr,cross:te,Cross:oe,Cscr:se,cscr:ne,csub:ce,csube:re,csup:ee,csupe:ae,ctdot:le,cudarrl:ie,cudarrr:ue,cuepr:pe,cuesc:de,cularr:fe,cularrp:ge,cupbrcap:me,cupcap:he,CupCap:be,cup:ve,Cup:we,cupcup:qe,cupdot:ye,cupor:xe,cups:Le,curarr:Ee,curarrm:Te,curlyeqprec:Se,curlyeqsucc:De,curlyvee:Ae,curlywedge:ke,curren:Ne,curvearrowleft:Re,curvearrowright:je,cuvee:Ce,cuwed:Ue,cwconint:$e,cwint:He,cylcty:Ve,dagger:Be,Dagger:Me,daleth:Oe,darr:Pe,Darr:Fe,dArr:Ge,dash:Ie,Dashv:_e,dashv:ze,dbkarow:Xe,dblac:Je,Dcaron:Ye,dcaron:Ze,Dcy:Qe,dcy:Ke,ddagger:We,ddarr:ta,DD:oa,dd:sa,DDotrahd:na,ddotseq:ca,deg:ra,Del:ea,Delta:aa,delta:la,demptyv:ia,dfisht:ua,Dfr:pa,dfr:da,dHar:fa,dharl:ga,dharr:ma,DiacriticalAcute:ha,DiacriticalDot:ba,DiacriticalDoubleAcute:va,DiacriticalGrave:wa,DiacriticalTilde:qa,diam:ya,diamond:xa,Diamond:La,diamondsuit:Ea,diams:Ta,die:Sa,DifferentialD:Da,digamma:Aa,disin:ka,div:Na,divide:Ra,divideontimes:ja,divonx:Ca,DJcy:Ua,djcy:$a,dlcorn:Ha,dlcrop:Va,dollar:Ba,Dopf:Ma,dopf:Oa,Dot:Pa,dot:Fa,DotDot:Ga,doteq:Ia,doteqdot:_a,DotEqual:za,dotminus:Xa,dotplus:Ja,dotsquare:Ya,doublebarwedge:Za,DoubleContourIntegral:Qa,DoubleDot:Ka,DoubleDownArrow:Wa,DoubleLeftArrow:tl,DoubleLeftRightArrow:ol,DoubleLeftTee:sl,DoubleLongLeftArrow:nl,DoubleLongLeftRightArrow:cl,DoubleLongRightArrow:rl,DoubleRightArrow:el,DoubleRightTee:al,DoubleUpArrow:ll,DoubleUpDownArrow:il,DoubleVerticalBar:ul,DownArrowBar:pl,downarrow:dl,DownArrow:fl,Downarrow:gl,DownArrowUpArrow:ml,DownBreve:hl,downdownarrows:bl,downharpoonleft:vl,downharpoonright:wl,DownLeftRightVector:ql,DownLeftTeeVector:yl,DownLeftVectorBar:xl,DownLeftVector:Ll,DownRightTeeVector:El,DownRightVectorBar:Tl,DownRightVector:Sl,DownTeeArrow:Dl,DownTee:Al,drbkarow:kl,drcorn:Nl,drcrop:Rl,Dscr:jl,dscr:Cl,DScy:Ul,dscy:$l,dsol:Hl,Dstrok:Vl,dstrok:Bl,dtdot:Ml,dtri:Ol,dtrif:Pl,duarr:Fl,duhar:Gl,dwangle:Il,DZcy:_l,dzcy:zl,dzigrarr:Xl,Eacute:Jl,eacute:Yl,easter:Zl,Ecaron:Ql,ecaron:Kl,Ecirc:Wl,ecirc:ti,ecir:oi,ecolon:si,Ecy:ni,ecy:ci,eDDot:ri,Edot:ei,edot:ai,eDot:li,ee:ii,efDot:ui,Efr:pi,efr:di,eg:fi,Egrave:gi,egrave:mi,egs:hi,egsdot:bi,el:vi,Element:wi,elinters:qi,ell:yi,els:xi,elsdot:Li,Emacr:Ei,emacr:Ti,empty:Si,emptyset:Di,EmptySmallSquare:Ai,emptyv:ki,EmptyVerySmallSquare:Ni,emsp13:Ri,emsp14:ji,emsp:Ci,ENG:Ui,eng:$i,ensp:Hi,Eogon:Vi,eogon:Bi,Eopf:Mi,eopf:Oi,epar:Pi,eparsl:Fi,eplus:Gi,epsi:Ii,Epsilon:_i,epsilon:zi,epsiv:Xi,eqcirc:Ji,eqcolon:Yi,eqsim:Zi,eqslantgtr:Qi,eqslantless:Ki,Equal:Wi,equals:tu,EqualTilde:ou,equest:su,Equilibrium:nu,equiv:cu,equivDD:ru,eqvparsl:eu,erarr:au,erDot:lu,escr:iu,Escr:uu,esdot:pu,Esim:du,esim:fu,Eta:gu,eta:mu,ETH:hu,eth:bu,Euml:vu,euml:wu,euro:qu,excl:yu,exist:xu,Exists:Lu,expectation:Eu,exponentiale:Tu,ExponentialE:Su,fallingdotseq:Du,Fcy:Au,fcy:ku,female:Nu,ffilig:Ru,fflig:ju,ffllig:Cu,Ffr:Uu,ffr:$u,filig:Hu,FilledSmallSquare:Vu,FilledVerySmallSquare:Bu,fjlig:Mu,flat:Ou,fllig:Pu,fltns:Fu,fnof:Gu,Fopf:Iu,fopf:_u,forall:zu,ForAll:Xu,fork:Ju,forkv:Yu,Fouriertrf:Zu,fpartint:Qu,frac12:Ku,frac13:Wu,frac14:tp,frac15:op,frac16:sp,frac18:np,frac23:cp,frac25:rp,frac34:ep,frac35:ap,frac38:lp,frac45:ip,frac56:up,frac58:pp,frac78:dp,frasl:fp,frown:gp,fscr:mp,Fscr:hp,gacute:bp,Gamma:vp,gamma:wp,Gammad:qp,gammad:yp,gap:xp,Gbreve:Lp,gbreve:Ep,Gcedil:Tp,Gcirc:Sp,gcirc:Dp,Gcy:Ap,gcy:kp,Gdot:Np,gdot:Rp,ge:jp,gE:Cp,gEl:Up,gel:$p,geq:Hp,geqq:Vp,geqslant:Bp,gescc:Mp,ges:Op,gesdot:Pp,gesdoto:Fp,gesdotol:Gp,gesl:Ip,gesles:_p,Gfr:zp,gfr:Xp,gg:Jp,Gg:Yp,ggg:Zp,gimel:Qp,GJcy:Kp,gjcy:Wp,gla:td,gl:od,glE:sd,glj:nd,gnap:cd,gnapprox:rd,gne:ed,gnE:ad,gneq:ld,gneqq:id,gnsim:ud,Gopf:pd,gopf:dd,grave:fd,GreaterEqual:gd,GreaterEqualLess:md,GreaterFullEqual:hd,GreaterGreater:bd,GreaterLess:vd,GreaterSlantEqual:wd,GreaterTilde:qd,Gscr:yd,gscr:xd,gsim:Ld,gsime:Ed,gsiml:Td,gtcc:Sd,gtcir:Dd,gt:Ad,GT:kd,Gt:Nd,gtdot:Rd,gtlPar:jd,gtquest:Cd,gtrapprox:Ud,gtrarr:$d,gtrdot:Hd,gtreqless:Vd,gtreqqless:Bd,gtrless:Md,gtrsim:Od,gvertneqq:Pd,gvnE:Fd,Hacek:Gd,hairsp:Id,half:_d,hamilt:zd,HARDcy:Xd,hardcy:Jd,harrcir:Yd,harr:Zd,hArr:Qd,harrw:Kd,Hat:Wd,hbar:tf,Hcirc:of,hcirc:sf,hearts:nf,heartsuit:cf,hellip:rf,hercon:ef,hfr:af,Hfr:lf,HilbertSpace:uf,hksearow:pf,hkswarow:df,hoarr:ff,homtht:gf,hookleftarrow:mf,hookrightarrow:hf,hopf:bf,Hopf:vf,horbar:wf,HorizontalLine:qf,hscr:yf,Hscr:xf,hslash:Lf,Hstrok:Ef,hstrok:Tf,HumpDownHump:Sf,HumpEqual:Df,hybull:Af,hyphen:kf,Iacute:Nf,iacute:Rf,ic:jf,Icirc:Cf,icirc:Uf,Icy:$f,icy:Hf,Idot:Vf,IEcy:Bf,iecy:Mf,iexcl:Of,iff:Pf,ifr:Ff,Ifr:Gf,Igrave:If,igrave:_f,ii:zf,iiiint:Xf,iiint:Jf,iinfin:Yf,iiota:Zf,IJlig:Qf,ijlig:Kf,Imacr:Wf,imacr:tg,image:og,ImaginaryI:sg,imagline:ng,imagpart:cg,imath:rg,Im:eg,imof:ag,imped:lg,Implies:ig,incare:ug,in:"∈",infin:pg,infintie:dg,inodot:fg,intcal:gg,int:mg,Int:hg,integers:bg,Integral:vg,intercal:wg,Intersection:qg,intlarhk:yg,intprod:xg,InvisibleComma:Lg,InvisibleTimes:Eg,IOcy:Tg,iocy:Sg,Iogon:Dg,iogon:Ag,Iopf:kg,iopf:Ng,Iota:Rg,iota:jg,iprod:Cg,iquest:Ug,iscr:$g,Iscr:Hg,isin:Vg,isindot:Bg,isinE:Mg,isins:Og,isinsv:Pg,isinv:Fg,it:Gg,Itilde:Ig,itilde:_g,Iukcy:zg,iukcy:Xg,Iuml:Jg,iuml:Yg,Jcirc:Zg,jcirc:Qg,Jcy:Kg,jcy:Wg,Jfr:tm,jfr:om,jmath:sm,Jopf:nm,jopf:cm,Jscr:rm,jscr:em,Jsercy:am,jsercy:lm,Jukcy:im,jukcy:um,Kappa:pm,kappa:dm,kappav:fm,Kcedil:gm,kcedil:mm,Kcy:hm,kcy:bm,Kfr:vm,kfr:wm,kgreen:qm,KHcy:ym,khcy:xm,KJcy:Lm,kjcy:Em,Kopf:Tm,kopf:Sm,Kscr:Dm,kscr:Am,lAarr:km,Lacute:Nm,lacute:Rm,laemptyv:jm,lagran:Cm,Lambda:Um,lambda:$m,lang:Hm,Lang:Vm,langd:Bm,langle:Mm,lap:Om,Laplacetrf:Pm,laquo:Fm,larrb:Gm,larrbfs:Im,larr:_m,Larr:zm,lArr:Xm,larrfs:Jm,larrhk:Ym,larrlp:Zm,larrpl:Qm,larrsim:Km,larrtl:Wm,latail:th,lAtail:oh,lat:sh,late:nh,lates:ch,lbarr:rh,lBarr:eh,lbbrk:ah,lbrace:lh,lbrack:ih,lbrke:uh,lbrksld:ph,lbrkslu:dh,Lcaron:fh,lcaron:gh,Lcedil:mh,lcedil:hh,lceil:bh,lcub:vh,Lcy:wh,lcy:qh,ldca:yh,ldquo:xh,ldquor:Lh,ldrdhar:Eh,ldrushar:Th,ldsh:Sh,le:Dh,lE:Ah,LeftAngleBracket:kh,LeftArrowBar:Nh,leftarrow:Rh,LeftArrow:jh,Leftarrow:Ch,LeftArrowRightArrow:Uh,leftarrowtail:$h,LeftCeiling:Hh,LeftDoubleBracket:Vh,LeftDownTeeVector:Bh,LeftDownVectorBar:Mh,LeftDownVector:Oh,LeftFloor:Ph,leftharpoondown:Fh,leftharpoonup:Gh,leftleftarrows:Ih,leftrightarrow:_h,LeftRightArrow:zh,Leftrightarrow:Xh,leftrightarrows:Jh,leftrightharpoons:Yh,leftrightsquigarrow:Zh,LeftRightVector:Qh,LeftTeeArrow:Kh,LeftTee:Wh,LeftTeeVector:tb,leftthreetimes:ob,LeftTriangleBar:sb,LeftTriangle:nb,LeftTriangleEqual:cb,LeftUpDownVector:rb,LeftUpTeeVector:eb,LeftUpVectorBar:ab,LeftUpVector:lb,LeftVectorBar:ib,LeftVector:ub,lEg:pb,leg:db,leq:fb,leqq:gb,leqslant:mb,lescc:hb,les:bb,lesdot:vb,lesdoto:wb,lesdotor:qb,lesg:yb,lesges:xb,lessapprox:Lb,lessdot:Eb,lesseqgtr:Tb,lesseqqgtr:Sb,LessEqualGreater:Db,LessFullEqual:Ab,LessGreater:kb,lessgtr:Nb,LessLess:Rb,lesssim:jb,LessSlantEqual:Cb,LessTilde:Ub,lfisht:$b,lfloor:Hb,Lfr:Vb,lfr:Bb,lg:Mb,lgE:Ob,lHar:Pb,lhard:Fb,lharu:Gb,lharul:Ib,lhblk:_b,LJcy:zb,ljcy:Xb,llarr:Jb,ll:Yb,Ll:Zb,llcorner:Qb,Lleftarrow:Kb,llhard:Wb,lltri:tv,Lmidot:ov,lmidot:sv,lmoustache:nv,lmoust:cv,lnap:rv,lnapprox:ev,lne:av,lnE:lv,lneq:iv,lneqq:uv,lnsim:pv,loang:dv,loarr:fv,lobrk:gv,longleftarrow:mv,LongLeftArrow:hv,Longleftarrow:bv,longleftrightarrow:vv,LongLeftRightArrow:wv,Longleftrightarrow:qv,longmapsto:yv,longrightarrow:xv,LongRightArrow:Lv,Longrightarrow:Ev,looparrowleft:Tv,looparrowright:Sv,lopar:Dv,Lopf:Av,lopf:kv,loplus:Nv,lotimes:Rv,lowast:jv,lowbar:Cv,LowerLeftArrow:Uv,LowerRightArrow:$v,loz:Hv,lozenge:Vv,lozf:Bv,lpar:Mv,lparlt:Ov,lrarr:Pv,lrcorner:Fv,lrhar:Gv,lrhard:Iv,lrm:_v,lrtri:zv,lsaquo:Xv,lscr:Jv,Lscr:Yv,lsh:Zv,Lsh:Qv,lsim:Kv,lsime:Wv,lsimg:tw,lsqb:ow,lsquo:sw,lsquor:nw,Lstrok:cw,lstrok:rw,ltcc:ew,ltcir:aw,lt:lw,LT:iw,Lt:uw,ltdot:pw,lthree:dw,ltimes:fw,ltlarr:gw,ltquest:mw,ltri:hw,ltrie:bw,ltrif:vw,ltrPar:ww,lurdshar:qw,luruhar:yw,lvertneqq:xw,lvnE:Lw,macr:Ew,male:Tw,malt:Sw,maltese:Dw,Map:"⤅",map:Aw,mapsto:kw,mapstodown:Nw,mapstoleft:Rw,mapstoup:jw,marker:Cw,mcomma:Uw,Mcy:$w,mcy:Hw,mdash:Vw,mDDot:Bw,measuredangle:Mw,MediumSpace:Ow,Mellintrf:Pw,Mfr:Fw,mfr:Gw,mho:Iw,micro:_w,midast:zw,midcir:Xw,mid:Jw,middot:Yw,minusb:Zw,minus:Qw,minusd:Kw,minusdu:Ww,MinusPlus:tq,mlcp:oq,mldr:sq,mnplus:nq,models:cq,Mopf:rq,mopf:eq,mp:aq,mscr:lq,Mscr:iq,mstpos:uq,Mu:pq,mu:dq,multimap:fq,mumap:gq,nabla:mq,Nacute:hq,nacute:bq,nang:vq,nap:wq,napE:qq,napid:yq,napos:xq,napprox:Lq,natural:Eq,naturals:Tq,natur:Sq,nbsp:Dq,nbump:Aq,nbumpe:kq,ncap:Nq,Ncaron:Rq,ncaron:jq,Ncedil:Cq,ncedil:Uq,ncong:$q,ncongdot:Hq,ncup:Vq,Ncy:Bq,ncy:Mq,ndash:Oq,nearhk:Pq,nearr:Fq,neArr:Gq,nearrow:Iq,ne:_q,nedot:zq,NegativeMediumSpace:Xq,NegativeThickSpace:Jq,NegativeThinSpace:Yq,NegativeVeryThinSpace:Zq,nequiv:Qq,nesear:Kq,nesim:Wq,NestedGreaterGreater:ty,NestedLessLess:oy,NewLine:sy,nexist:ny,nexists:cy,Nfr:ry,nfr:ey,ngE:ay,nge:ly,ngeq:iy,ngeqq:uy,ngeqslant:py,nges:dy,nGg:fy,ngsim:gy,nGt:my,ngt:hy,ngtr:by,nGtv:vy,nharr:wy,nhArr:qy,nhpar:yy,ni:xy,nis:Ly,nisd:Ey,niv:Ty,NJcy:Sy,njcy:Dy,nlarr:Ay,nlArr:ky,nldr:Ny,nlE:Ry,nle:jy,nleftarrow:Cy,nLeftarrow:Uy,nleftrightarrow:$y,nLeftrightarrow:Hy,nleq:Vy,nleqq:By,nleqslant:My,nles:Oy,nless:Py,nLl:Fy,nlsim:Gy,nLt:Iy,nlt:_y,nltri:zy,nltrie:Xy,nLtv:Jy,nmid:Yy,NoBreak:Zy,NonBreakingSpace:Qy,nopf:Ky,Nopf:Wy,Not:tx,not:ox,NotCongruent:sx,NotCupCap:nx,NotDoubleVerticalBar:cx,NotElement:rx,NotEqual:ex,NotEqualTilde:ax,NotExists:lx,NotGreater:ix,NotGreaterEqual:ux,NotGreaterFullEqual:px,NotGreaterGreater:dx,NotGreaterLess:fx,NotGreaterSlantEqual:gx,NotGreaterTilde:mx,NotHumpDownHump:hx,NotHumpEqual:bx,notin:vx,notindot:wx,notinE:qx,notinva:yx,notinvb:xx,notinvc:Lx,NotLeftTriangleBar:Ex,NotLeftTriangle:Tx,NotLeftTriangleEqual:Sx,NotLess:Dx,NotLessEqual:Ax,NotLessGreater:kx,NotLessLess:Nx,NotLessSlantEqual:Rx,NotLessTilde:jx,NotNestedGreaterGreater:Cx,NotNestedLessLess:Ux,notni:$x,notniva:Hx,notnivb:Vx,notnivc:Bx,NotPrecedes:Mx,NotPrecedesEqual:Ox,NotPrecedesSlantEqual:Px,NotReverseElement:Fx,NotRightTriangleBar:Gx,NotRightTriangle:Ix,NotRightTriangleEqual:_x,NotSquareSubset:zx,NotSquareSubsetEqual:Xx,NotSquareSuperset:Jx,NotSquareSupersetEqual:Yx,NotSubset:Zx,NotSubsetEqual:Qx,NotSucceeds:Kx,NotSucceedsEqual:Wx,NotSucceedsSlantEqual:tL,NotSucceedsTilde:oL,NotSuperset:sL,NotSupersetEqual:nL,NotTilde:cL,NotTildeEqual:rL,NotTildeFullEqual:eL,NotTildeTilde:aL,NotVerticalBar:lL,nparallel:iL,npar:uL,nparsl:pL,npart:dL,npolint:fL,npr:gL,nprcue:mL,nprec:hL,npreceq:bL,npre:vL,nrarrc:wL,nrarr:qL,nrArr:yL,nrarrw:xL,nrightarrow:LL,nRightarrow:EL,nrtri:TL,nrtrie:SL,nsc:DL,nsccue:AL,nsce:kL,Nscr:NL,nscr:RL,nshortmid:jL,nshortparallel:CL,nsim:UL,nsime:$L,nsimeq:HL,nsmid:VL,nspar:BL,nsqsube:ML,nsqsupe:OL,nsub:PL,nsubE:FL,nsube:GL,nsubset:IL,nsubseteq:_L,nsubseteqq:zL,nsucc:XL,nsucceq:JL,nsup:YL,nsupE:ZL,nsupe:QL,nsupset:KL,nsupseteq:WL,nsupseteqq:tE,ntgl:oE,Ntilde:sE,ntilde:nE,ntlg:cE,ntriangleleft:rE,ntrianglelefteq:eE,ntriangleright:aE,ntrianglerighteq:lE,Nu:iE,nu:uE,num:pE,numero:dE,numsp:fE,nvap:gE,nvdash:mE,nvDash:hE,nVdash:bE,nVDash:vE,nvge:wE,nvgt:qE,nvHarr:yE,nvinfin:xE,nvlArr:LE,nvle:EE,nvlt:TE,nvltrie:SE,nvrArr:DE,nvrtrie:AE,nvsim:kE,nwarhk:NE,nwarr:RE,nwArr:jE,nwarrow:CE,nwnear:UE,Oacute:$E,oacute:HE,oast:VE,Ocirc:BE,ocirc:ME,ocir:OE,Ocy:PE,ocy:FE,odash:GE,Odblac:IE,odblac:_E,odiv:zE,odot:XE,odsold:JE,OElig:YE,oelig:ZE,ofcir:QE,Ofr:KE,ofr:WE,ogon:tT,Ograve:oT,ograve:sT,ogt:nT,ohbar:cT,ohm:rT,oint:eT,olarr:aT,olcir:lT,olcross:iT,oline:uT,olt:pT,Omacr:dT,omacr:fT,Omega:gT,omega:mT,Omicron:hT,omicron:bT,omid:vT,ominus:wT,Oopf:qT,oopf:yT,opar:xT,OpenCurlyDoubleQuote:LT,OpenCurlyQuote:ET,operp:TT,oplus:ST,orarr:DT,Or:AT,or:kT,ord:NT,order:RT,orderof:jT,ordf:CT,ordm:UT,origof:$T,oror:HT,orslope:VT,orv:BT,oS:MT,Oscr:OT,oscr:PT,Oslash:FT,oslash:GT,osol:IT,Otilde:_T,otilde:zT,otimesas:XT,Otimes:JT,otimes:YT,Ouml:ZT,ouml:QT,ovbar:KT,OverBar:WT,OverBrace:t1,OverBracket:o1,OverParenthesis:s1,para:n1,parallel:c1,par:r1,parsim:e1,parsl:a1,part:l1,PartialD:i1,Pcy:u1,pcy:p1,percnt:d1,period:f1,permil:g1,perp:m1,pertenk:h1,Pfr:b1,pfr:v1,Phi:w1,phi:q1,phiv:y1,phmmat:x1,phone:L1,Pi:E1,pi:T1,pitchfork:S1,piv:D1,planck:A1,planckh:k1,plankv:N1,plusacir:R1,plusb:j1,pluscir:C1,plus:U1,plusdo:$1,plusdu:H1,pluse:V1,PlusMinus:B1,plusmn:M1,plussim:O1,plustwo:P1,pm:F1,Poincareplane:G1,pointint:I1,popf:_1,Popf:z1,pound:X1,prap:J1,Pr:Y1,pr:Z1,prcue:Q1,precapprox:K1,prec:W1,preccurlyeq:tS,Precedes:oS,PrecedesEqual:sS,PrecedesSlantEqual:nS,PrecedesTilde:cS,preceq:rS,precnapprox:eS,precneqq:aS,precnsim:lS,pre:iS,prE:uS,precsim:pS,prime:dS,Prime:fS,primes:gS,prnap:mS,prnE:hS,prnsim:bS,prod:vS,Product:wS,profalar:qS,profline:yS,profsurf:xS,prop:LS,Proportional:ES,Proportion:TS,propto:SS,prsim:DS,prurel:AS,Pscr:kS,pscr:NS,Psi:RS,psi:jS,puncsp:CS,Qfr:US,qfr:$S,qint:HS,qopf:VS,Qopf:BS,qprime:MS,Qscr:OS,qscr:PS,quaternions:FS,quatint:GS,quest:IS,questeq:_S,quot:zS,QUOT:XS,rAarr:JS,race:YS,Racute:ZS,racute:QS,radic:KS,raemptyv:WS,rang:tD,Rang:oD,rangd:sD,range:nD,rangle:cD,raquo:rD,rarrap:eD,rarrb:aD,rarrbfs:lD,rarrc:iD,rarr:uD,Rarr:pD,rArr:dD,rarrfs:fD,rarrhk:gD,rarrlp:mD,rarrpl:hD,rarrsim:bD,Rarrtl:vD,rarrtl:wD,rarrw:qD,ratail:yD,rAtail:xD,ratio:LD,rationals:ED,rbarr:TD,rBarr:SD,RBarr:DD,rbbrk:AD,rbrace:kD,rbrack:ND,rbrke:RD,rbrksld:jD,rbrkslu:CD,Rcaron:UD,rcaron:$D,Rcedil:HD,rcedil:VD,rceil:BD,rcub:MD,Rcy:OD,rcy:PD,rdca:FD,rdldhar:GD,rdquo:ID,rdquor:_D,rdsh:zD,real:XD,realine:JD,realpart:YD,reals:ZD,Re:QD,rect:KD,reg:WD,REG:tA,ReverseElement:oA,ReverseEquilibrium:sA,ReverseUpEquilibrium:nA,rfisht:cA,rfloor:rA,rfr:eA,Rfr:aA,rHar:lA,rhard:iA,rharu:uA,rharul:pA,Rho:dA,rho:fA,rhov:gA,RightAngleBracket:mA,RightArrowBar:hA,rightarrow:bA,RightArrow:vA,Rightarrow:wA,RightArrowLeftArrow:qA,rightarrowtail:yA,RightCeiling:xA,RightDoubleBracket:LA,RightDownTeeVector:EA,RightDownVectorBar:TA,RightDownVector:SA,RightFloor:DA,rightharpoondown:AA,rightharpoonup:kA,rightleftarrows:NA,rightleftharpoons:RA,rightrightarrows:jA,rightsquigarrow:CA,RightTeeArrow:UA,RightTee:$A,RightTeeVector:HA,rightthreetimes:VA,RightTriangleBar:BA,RightTriangle:MA,RightTriangleEqual:OA,RightUpDownVector:PA,RightUpTeeVector:FA,RightUpVectorBar:GA,RightUpVector:IA,RightVectorBar:_A,RightVector:zA,ring:XA,risingdotseq:JA,rlarr:YA,rlhar:ZA,rlm:QA,rmoustache:KA,rmoust:WA,rnmid:tk,roang:ok,roarr:sk,robrk:nk,ropar:ck,ropf:rk,Ropf:ek,roplus:ak,rotimes:lk,RoundImplies:ik,rpar:uk,rpargt:pk,rppolint:dk,rrarr:fk,Rrightarrow:gk,rsaquo:mk,rscr:hk,Rscr:bk,rsh:vk,Rsh:wk,rsqb:qk,rsquo:yk,rsquor:xk,rthree:Lk,rtimes:Ek,rtri:Tk,rtrie:Sk,rtrif:Dk,rtriltri:Ak,RuleDelayed:kk,ruluhar:Nk,rx:Rk,Sacute:jk,sacute:Ck,sbquo:Uk,scap:$k,Scaron:Hk,scaron:Vk,Sc:Bk,sc:Mk,sccue:Ok,sce:Pk,scE:Fk,Scedil:Gk,scedil:Ik,Scirc:_k,scirc:zk,scnap:Xk,scnE:Jk,scnsim:Yk,scpolint:Zk,scsim:Qk,Scy:Kk,scy:Wk,sdotb:tN,sdot:oN,sdote:sN,searhk:nN,searr:cN,seArr:rN,searrow:eN,sect:aN,semi:lN,seswar:iN,setminus:uN,setmn:pN,sext:dN,Sfr:fN,sfr:gN,sfrown:mN,sharp:hN,SHCHcy:bN,shchcy:vN,SHcy:wN,shcy:qN,ShortDownArrow:yN,ShortLeftArrow:xN,shortmid:LN,shortparallel:EN,ShortRightArrow:TN,ShortUpArrow:SN,shy:DN,Sigma:AN,sigma:kN,sigmaf:NN,sigmav:RN,sim:jN,simdot:CN,sime:UN,simeq:$N,simg:HN,simgE:VN,siml:BN,simlE:MN,simne:ON,simplus:PN,simrarr:FN,slarr:GN,SmallCircle:IN,smallsetminus:_N,smashp:zN,smeparsl:XN,smid:JN,smile:YN,smt:ZN,smte:QN,smtes:KN,SOFTcy:WN,softcy:tR,solbar:oR,solb:sR,sol:nR,Sopf:cR,sopf:rR,spades:eR,spadesuit:aR,spar:lR,sqcap:iR,sqcaps:uR,sqcup:pR,sqcups:dR,Sqrt:fR,sqsub:gR,sqsube:mR,sqsubset:hR,sqsubseteq:bR,sqsup:vR,sqsupe:wR,sqsupset:qR,sqsupseteq:yR,square:xR,Square:LR,SquareIntersection:ER,SquareSubset:TR,SquareSubsetEqual:SR,SquareSuperset:DR,SquareSupersetEqual:AR,SquareUnion:kR,squarf:NR,squ:RR,squf:jR,srarr:CR,Sscr:UR,sscr:$R,ssetmn:HR,ssmile:VR,sstarf:BR,Star:MR,star:OR,starf:PR,straightepsilon:FR,straightphi:GR,strns:IR,sub:_R,Sub:zR,subdot:XR,subE:JR,sube:YR,subedot:ZR,submult:QR,subnE:KR,subne:WR,subplus:tj,subrarr:oj,subset:sj,Subset:nj,subseteq:cj,subseteqq:rj,SubsetEqual:ej,subsetneq:aj,subsetneqq:lj,subsim:ij,subsub:uj,subsup:pj,succapprox:dj,succ:fj,succcurlyeq:gj,Succeeds:mj,SucceedsEqual:hj,SucceedsSlantEqual:bj,SucceedsTilde:vj,succeq:wj,succnapprox:qj,succneqq:yj,succnsim:xj,succsim:Lj,SuchThat:Ej,sum:Tj,Sum:Sj,sung:Dj,sup1:Aj,sup2:kj,sup3:Nj,sup:Rj,Sup:jj,supdot:Cj,supdsub:Uj,supE:$j,supe:Hj,supedot:Vj,Superset:Bj,SupersetEqual:Mj,suphsol:Oj,suphsub:Pj,suplarr:Fj,supmult:Gj,supnE:Ij,supne:_j,supplus:zj,supset:Xj,Supset:Jj,supseteq:Yj,supseteqq:Zj,supsetneq:Qj,supsetneqq:Kj,supsim:Wj,supsub:tC,supsup:oC,swarhk:sC,swarr:nC,swArr:cC,swarrow:rC,swnwar:eC,szlig:aC,Tab:lC,target:iC,Tau:uC,tau:pC,tbrk:dC,Tcaron:fC,tcaron:gC,Tcedil:mC,tcedil:hC,Tcy:bC,tcy:vC,tdot:wC,telrec:qC,Tfr:yC,tfr:xC,there4:LC,therefore:EC,Therefore:TC,Theta:SC,theta:DC,thetasym:AC,thetav:kC,thickapprox:NC,thicksim:RC,ThickSpace:jC,ThinSpace:CC,thinsp:UC,thkap:$C,thksim:HC,THORN:VC,thorn:BC,tilde:MC,Tilde:OC,TildeEqual:PC,TildeFullEqual:FC,TildeTilde:GC,timesbar:IC,timesb:_C,times:zC,timesd:XC,tint:JC,toea:YC,topbot:ZC,topcir:QC,top:KC,Topf:WC,topf:t0,topfork:o0,tosa:s0,tprime:n0,trade:c0,TRADE:r0,triangle:e0,triangledown:a0,triangleleft:l0,trianglelefteq:i0,triangleq:u0,triangleright:p0,trianglerighteq:d0,tridot:f0,trie:g0,triminus:m0,TripleDot:h0,triplus:b0,trisb:v0,tritime:w0,trpezium:q0,Tscr:y0,tscr:x0,TScy:L0,tscy:E0,TSHcy:T0,tshcy:S0,Tstrok:D0,tstrok:A0,twixt:k0,twoheadleftarrow:N0,twoheadrightarrow:R0,Uacute:j0,uacute:C0,uarr:U0,Uarr:$0,uArr:H0,Uarrocir:V0,Ubrcy:B0,ubrcy:M0,Ubreve:O0,ubreve:P0,Ucirc:F0,ucirc:G0,Ucy:I0,ucy:_0,udarr:z0,Udblac:X0,udblac:J0,udhar:Y0,ufisht:Z0,Ufr:Q0,ufr:K0,Ugrave:W0,ugrave:tU,uHar:oU,uharl:sU,uharr:nU,uhblk:cU,ulcorn:rU,ulcorner:eU,ulcrop:aU,ultri:lU,Umacr:iU,umacr:uU,uml:pU,UnderBar:dU,UnderBrace:fU,UnderBracket:gU,UnderParenthesis:mU,Union:hU,UnionPlus:bU,Uogon:vU,uogon:wU,Uopf:qU,uopf:yU,UpArrowBar:xU,uparrow:LU,UpArrow:EU,Uparrow:TU,UpArrowDownArrow:SU,updownarrow:DU,UpDownArrow:AU,Updownarrow:kU,UpEquilibrium:NU,upharpoonleft:RU,upharpoonright:jU,uplus:CU,UpperLeftArrow:UU,UpperRightArrow:$U,upsi:HU,Upsi:VU,upsih:BU,Upsilon:MU,upsilon:OU,UpTeeArrow:PU,UpTee:FU,upuparrows:GU,urcorn:IU,urcorner:_U,urcrop:zU,Uring:XU,uring:JU,urtri:YU,Uscr:ZU,uscr:QU,utdot:KU,Utilde:WU,utilde:t$,utri:o$,utrif:s$,uuarr:n$,Uuml:c$,uuml:r$,uwangle:e$,vangrt:a$,varepsilon:l$,varkappa:i$,varnothing:u$,varphi:p$,varpi:d$,varpropto:f$,varr:g$,vArr:m$,varrho:h$,varsigma:b$,varsubsetneq:v$,varsubsetneqq:w$,varsupsetneq:q$,varsupsetneqq:y$,vartheta:x$,vartriangleleft:L$,vartriangleright:E$,vBar:T$,Vbar:S$,vBarv:D$,Vcy:A$,vcy:k$,vdash:N$,vDash:R$,Vdash:j$,VDash:C$,Vdashl:U$,veebar:$$,vee:H$,Vee:V$,veeeq:B$,vellip:M$,verbar:O$,Verbar:P$,vert:F$,Vert:G$,VerticalBar:I$,VerticalLine:_$,VerticalSeparator:z$,VerticalTilde:X$,VeryThinSpace:J$,Vfr:Y$,vfr:Z$,vltri:Q$,vnsub:K$,vnsup:W$,Vopf:tH,vopf:oH,vprop:sH,vrtri:nH,Vscr:cH,vscr:rH,vsubnE:eH,vsubne:aH,vsupnE:lH,vsupne:iH,Vvdash:uH,vzigzag:pH,Wcirc:dH,wcirc:fH,wedbar:gH,wedge:mH,Wedge:hH,wedgeq:bH,weierp:vH,Wfr:wH,wfr:qH,Wopf:yH,wopf:xH,wp:LH,wr:EH,wreath:TH,Wscr:SH,wscr:DH,xcap:AH,xcirc:kH,xcup:NH,xdtri:RH,Xfr:jH,xfr:CH,xharr:UH,xhArr:$H,Xi:HH,xi:VH,xlarr:BH,xlArr:MH,xmap:OH,xnis:PH,xodot:FH,Xopf:GH,xopf:IH,xoplus:_H,xotime:zH,xrarr:XH,xrArr:JH,Xscr:YH,xscr:ZH,xsqcup:QH,xuplus:KH,xutri:WH,xvee:tV,xwedge:oV,Yacute:sV,yacute:nV,YAcy:cV,yacy:rV,Ycirc:eV,ycirc:aV,Ycy:lV,ycy:iV,yen:uV,Yfr:pV,yfr:dV,YIcy:fV,yicy:gV,Yopf:mV,yopf:hV,Yscr:bV,yscr:vV,YUcy:wV,yucy:qV,yuml:yV,Yuml:xV,Zacute:LV,zacute:EV,Zcaron:TV,zcaron:SV,Zcy:DV,zcy:AV,Zdot:kV,zdot:NV,zeetrf:RV,ZeroWidthSpace:jV,Zeta:CV,zeta:UV,zfr:$V,Zfr:HV,ZHcy:VV,zhcy:BV,zigrarr:MV,zopf:OV,Zopf:PV,Zscr:FV,zscr:GV,zwj:IV,zwnj:_V},zV="Á",XV="á",JV="Â",YV="â",ZV="´",QV="Æ",KV="æ",WV="À",tB="à",oB="&",sB="&",nB="Å",cB="å",rB="Ã",eB="ã",aB="Ä",lB="ä",iB="¦",uB="Ç",pB="ç",dB="¸",fB="¢",gB="©",mB="©",hB="¤",bB="°",vB="÷",wB="É",qB="é",yB="Ê",xB="ê",LB="È",EB="è",TB="Ð",SB="ð",DB="Ë",AB="ë",kB="½",NB="¼",RB="¾",jB=">",CB=">",UB="Í",$B="í",HB="Î",VB="î",BB="¡",MB="Ì",OB="ì",PB="¿",FB="Ï",GB="ï",IB="«",_B="<",zB="<",XB="¯",JB="µ",YB="·",ZB=" ",QB="¬",KB="Ñ",WB="ñ",tM="Ó",oM="ó",sM="Ô",nM="ô",cM="Ò",rM="ò",eM="ª",aM="º",lM="Ø",iM="ø",uM="Õ",pM="õ",dM="Ö",fM="ö",gM="¶",mM="±",hM="£",bM='"',vM='"',wM="»",qM="®",yM="®",xM="§",LM="",EM="¹",TM="²",SM="³",DM="ß",AM="Þ",kM="þ",NM="×",RM="Ú",jM="ú",CM="Û",UM="û",$M="Ù",HM="ù",VM="¨",BM="Ü",MM="ü",OM="Ý",PM="ý",FM="¥",GM="ÿ",IM={Aacute:zV,aacute:XV,Acirc:JV,acirc:YV,acute:ZV,AElig:QV,aelig:KV,Agrave:WV,agrave:tB,amp:oB,AMP:sB,Aring:nB,aring:cB,Atilde:rB,atilde:eB,Auml:aB,auml:lB,brvbar:iB,Ccedil:uB,ccedil:pB,cedil:dB,cent:fB,copy:gB,COPY:mB,curren:hB,deg:bB,divide:vB,Eacute:wB,eacute:qB,Ecirc:yB,ecirc:xB,Egrave:LB,egrave:EB,ETH:TB,eth:SB,Euml:DB,euml:AB,frac12:kB,frac14:NB,frac34:RB,gt:jB,GT:CB,Iacute:UB,iacute:$B,Icirc:HB,icirc:VB,iexcl:BB,Igrave:MB,igrave:OB,iquest:PB,Iuml:FB,iuml:GB,laquo:IB,lt:_B,LT:zB,macr:XB,micro:JB,middot:YB,nbsp:ZB,not:QB,Ntilde:KB,ntilde:WB,Oacute:tM,oacute:oM,Ocirc:sM,ocirc:nM,Ograve:cM,ograve:rM,ordf:eM,ordm:aM,Oslash:lM,oslash:iM,Otilde:uM,otilde:pM,Ouml:dM,ouml:fM,para:gM,plusmn:mM,pound:hM,quot:bM,QUOT:vM,raquo:wM,reg:qM,REG:yM,sect:xM,shy:LM,sup1:EM,sup2:TM,sup3:SM,szlig:DM,THORN:AM,thorn:kM,times:NM,Uacute:RM,uacute:jM,Ucirc:CM,ucirc:UM,Ugrave:$M,ugrave:HM,uml:VM,Uuml:BM,uuml:MM,Yacute:OM,yacute:PM,yen:FM,yuml:GM},_M="&",zM="'",XM=">",JM="<",YM='"',tt={amp:_M,apos:zM,gt:XM,lt:JM,quot:YM};var M={};const ZM={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var QM=S&&S.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(M,"__esModule",{value:!0});var I=QM(ZM),KM=String.fromCodePoint||function(t){var o="";return t>65535&&(t-=65536,o+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),o+=String.fromCharCode(t),o};function WM(t){return t>=55296&&t<=57343||t>1114111?"�":(t in I.default&&(t=I.default[t]),KM(t))}M.default=WM;var U=S&&S.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(L,"__esModule",{value:!0});L.decodeHTML=L.decodeHTMLStrict=L.decodeXML=void 0;var H=U(W),tO=U(IM),oO=U(tt),_=U(M),sO=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;L.decodeXML=ot(oO.default);L.decodeHTMLStrict=ot(H.default);function ot(t){var o=st(t);return function(s){return String(s).replace(sO,o)}}var z=function(t,o){return t<o?1:-1};L.decodeHTML=function(){for(var t=Object.keys(tO.default).sort(z),o=Object.keys(H.default).sort(z),s=0,c=0;s<o.length;s++)t[c]===o[s]?(o[s]+=";?",c++):o[s]+=";";var r=new RegExp("&(?:"+o.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),e=st(H.default);function i(a){return a.substr(-1)!==";"&&(a+=";"),e(a)}return function(a){return String(a).replace(r,i)}}();function st(t){return function(s){if(s.charAt(1)==="#"){var c=s.charAt(2);return c==="X"||c==="x"?_.default(parseInt(s.substr(3),16)):_.default(parseInt(s.substr(2),10))}return t[s.slice(1,-1)]||s}}var b={},nt=S&&S.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(b,"__esModule",{value:!0});b.escapeUTF8=b.escape=b.encodeNonAsciiHTML=b.encodeHTML=b.encodeXML=void 0;var nO=nt(tt),ct=et(nO.default),rt=at(ct);b.encodeXML=ut(ct);var cO=nt(W),O=et(cO.default),rO=at(O);b.encodeHTML=aO(O,rO);b.encodeNonAsciiHTML=ut(O);function et(t){return Object.keys(t).sort().reduce(function(o,s){return o[t[s]]="&"+s+";",o},{})}function at(t){for(var o=[],s=[],c=0,r=Object.keys(t);c<r.length;c++){var e=r[c];e.length===1?o.push("\\"+e):s.push(e)}o.sort();for(var i=0;i<o.length-1;i++){for(var a=i;a<o.length-1&&o[a].charCodeAt(1)+1===o[a+1].charCodeAt(1);)a+=1;var p=1+a-i;p<3||o.splice(i,p,o[i]+"-"+o[a])}return s.unshift("["+o.join("")+"]"),new RegExp(s.join("|"),"g")}var lt=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,eO=String.prototype.codePointAt!=null?function(t){return t.codePointAt(0)}:function(t){return(t.charCodeAt(0)-55296)*1024+t.charCodeAt(1)-56320+65536};function $(t){return"&#x"+(t.length>1?eO(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}function aO(t,o){return function(s){return s.replace(o,function(c){return t[c]}).replace(lt,$)}}var it=new RegExp(rt.source+"|"+lt.source,"g");function lO(t){return t.replace(it,$)}b.escape=lO;function iO(t){return t.replace(rt,$)}b.escapeUTF8=iO;function ut(t){return function(o){return o.replace(it,function(s){return t[s]||$(s)})}}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var o=L,s=b;function c(p,u){return(!u||u<=0?o.decodeXML:o.decodeHTML)(p)}t.decode=c;function r(p,u){return(!u||u<=0?o.decodeXML:o.decodeHTMLStrict)(p)}t.decodeStrict=r;function e(p,u){return(!u||u<=0?s.encodeXML:s.encodeHTML)(p)}t.encode=e;var i=b;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var a=L;Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})})(K);function uO(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function pO(t,o){for(var s=0;s<o.length;s++){var c=o[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}function dO(t,o,s){return o&&pO(t.prototype,o),t}function pt(t,o){var s=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=fO(t))||o){s&&(t=s);var c=0,r=function(){};return{s:r,n:function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}},e:function(u){throw u},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var e=!0,i=!1,a;return{s:function(){s=s.call(t)},n:function(){var u=s.next();return e=u.done,u},e:function(u){i=!0,a=u},f:function(){try{!e&&s.return!=null&&s.return()}finally{if(i)throw a}}}}function fO(t,o){if(t){if(typeof t=="string")return X(t,o);var s=Object.prototype.toString.call(t).slice(8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return Array.from(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return X(t,o)}}function X(t,o){(o==null||o>t.length)&&(o=t.length);for(var s=0,c=new Array(o);s<o;s++)c[s]=t[s];return c}var gO=K,J={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:mO()};function mO(){var t={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return k(0,5).forEach(function(o){k(0,5).forEach(function(s){k(0,5).forEach(function(c){return hO(o,s,c,t)})})}),k(0,23).forEach(function(o){var s=o+232,c=dt(o*10+8);t[s]="#"+c+c+c}),t}function hO(t,o,s,c){var r=16+t*36+o*6+s,e=t>0?t*40+55:0,i=o>0?o*40+55:0,a=s>0?s*40+55:0;c[r]=bO([e,i,a])}function dt(t){for(var o=t.toString(16);o.length<2;)o="0"+o;return o}function bO(t){var o=[],s=pt(t),c;try{for(s.s();!(c=s.n()).done;){var r=c.value;o.push(dt(r))}}catch(e){s.e(e)}finally{s.f()}return"#"+o.join("")}function Y(t,o,s,c){var r;return o==="text"?r=yO(s,c):o==="display"?r=wO(t,s,c):o==="xterm256Foreground"?r=R(t,c.colors[s]):o==="xterm256Background"?r=j(t,c.colors[s]):o==="rgb"&&(r=vO(t,s)),r}function vO(t,o){o=o.substring(2).slice(0,-1);var s=+o.substr(0,2),c=o.substring(5).split(";"),r=c.map(function(e){return("0"+Number(e).toString(16)).substr(-2)}).join("");return N(t,(s===38?"color:#":"background-color:#")+r)}function wO(t,o,s){o=parseInt(o,10);var c={"-1":function(){return"<br/>"},0:function(){return t.length&&ft(t)},1:function(){return T(t,"b")},3:function(){return T(t,"i")},4:function(){return T(t,"u")},8:function(){return N(t,"display:none")},9:function(){return T(t,"strike")},22:function(){return N(t,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(t,"i")},24:function(){return Q(t,"u")},39:function(){return R(t,s.fg)},49:function(){return j(t,s.bg)},53:function(){return N(t,"text-decoration:overline")}},r;return c[o]?r=c[o]():4<o&&o<7?r=T(t,"blink"):29<o&&o<38?r=R(t,s.colors[o-30]):39<o&&o<48?r=j(t,s.colors[o-40]):89<o&&o<98?r=R(t,s.colors[8+(o-90)]):99<o&&o<108&&(r=j(t,s.colors[8+(o-100)])),r}function ft(t){var o=t.slice(0);return t.length=0,o.reverse().map(function(s){return"</"+s+">"}).join("")}function k(t,o){for(var s=[],c=t;c<=o;c++)s.push(c);return s}function qO(t){return function(o){return(t===null||o.category!==t)&&t!=="all"}}function Z(t){t=parseInt(t,10);var o=null;return t===0?o="all":t===1?o="bold":2<t&&t<5?o="underline":4<t&&t<7?o="blink":t===8?o="hide":t===9?o="strike":29<t&&t<38||t===39||89<t&&t<98?o="foreground-color":(39<t&&t<48||t===49||99<t&&t<108)&&(o="background-color"),o}function yO(t,o){return o.escapeXML?gO.encodeXML(t):t}function T(t,o,s){return s||(s=""),t.push(o),"<".concat(o).concat(s?' style="'.concat(s,'"'):"",">")}function N(t,o){return T(t,"span",o)}function R(t,o){return T(t,"span","color:"+o)}function j(t,o){return T(t,"span","background-color:"+o)}function Q(t,o){var s;if(t.slice(-1)[0]===o&&(s=t.pop()),s)return"</"+o+">"}function xO(t,o,s){var c=!1,r=3;function e(){return""}function i(w,q){return s("xterm256Foreground",q),""}function a(w,q){return s("xterm256Background",q),""}function p(w){return o.newline?s("display",-1):s("text",w),""}function u(w,q){c=!0,q.trim().length===0&&(q="0"),q=q.trimRight(";").split(";");var A=pt(q),F;try{for(A.s();!(F=A.n()).done;){var bt=F.value;s("display",bt)}}catch(vt){A.e(vt)}finally{A.f()}return""}function E(w){return s("text",w),""}function f(w){return s("rgb",w),""}var d=[{pattern:/^\x08+/,sub:e},{pattern:/^\x1b\[[012]?K/,sub:e},{pattern:/^\x1b\[\(B/,sub:e},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:f},{pattern:/^\x1b\[38;5;(\d+)m/,sub:i},{pattern:/^\x1b\[48;5;(\d+)m/,sub:a},{pattern:/^\n/,sub:p},{pattern:/^\r+\n/,sub:p},{pattern:/^\r/,sub:p},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:u},{pattern:/^\x1b\[\d?J/,sub:e},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:e},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:e},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:E}];function v(w,q){q>r&&c||(c=!1,t=t.replace(w.pattern,w.sub))}var h=[],y=t,x=y.length;t:for(;x>0;){for(var D=0,P=0,mt=d.length;P<mt;D=++P){var ht=d[D];if(v(ht,D),t.length!==x){x=t.length;continue t}}if(t.length===x)break;h.push(0),x=t.length}return h}function LO(t,o,s){return o!=="text"&&(t=t.filter(qO(Z(s))),t.push({token:o,data:s,category:Z(s)})),t}var EO=function(){function t(o){uO(this,t),o=o||{},o.colors&&(o.colors=Object.assign({},J.colors,o.colors)),this.options=Object.assign({},J,o),this.stack=[],this.stickyStack=[]}return dO(t,[{key:"toHtml",value:function(s){var c=this;s=typeof s=="string"?[s]:s;var r=this.stack,e=this.options,i=[];return this.stickyStack.forEach(function(a){var p=Y(r,a.token,a.data,e);p&&i.push(p)}),xO(s.join(""),e,function(a,p){var u=Y(r,a,p,e);u&&i.push(u),e.stream&&(c.stickyStack=LO(c.stickyStack,a,p))}),r.length&&i.push(ft(r)),i.join("")}}]),t}(),TO=EO;const SO=wt(TO);function gt(){const t=xt();return m.useMemo(()=>new SO(t==="dark"?{fg:"#d6deeb",bg:"#121318",escapeXML:!0}:{fg:"#000000",bg:"#f3f3f3",escapeXML:!0}),[t])}const DO=l.intersection(l.object({type:l.literal("epicshop:test-status-update"),timestamp:l.number()}),l.union([l.object({status:l.literal("pending")}),l.object({status:l.literal("pass")}),l.object({status:l.literal("fail"),error:l.string()})])),AO=l.object({type:l.literal("epicshop:test-step-update"),status:l.literal("pass"),title:l.string(),timestamp:l.number()}),kO=l.union([AO,DO]);function NO({pathname:t,testFile:o}){const s=gt(),c=m.useRef(null),[r,e]=m.useState(null),[i,a]=m.useState([]);m.useEffect(()=>{function f(d){var y;if(d.source!==((y=c.current)==null?void 0:y.contentWindow)||"request"in d.data)return;const v=kO.safeParse(d.data,{path:["messageEvent","data"]});if(!v.success){console.error("Invalid message from test iframe",d.data,v.error);return}const{data:h}=v;h.type==="epicshop:test-status-update"&&(h.status==="pending"&&a([]),e(h)),h.type==="epicshop:test-step-update"&&a(x=>[...x,h])}return window.addEventListener("message",f),()=>{window.removeEventListener("message",f)}},[]);const p={pending:n.jsx(V,{"aria-label":"Pending"}),pass:n.jsx(g,{name:"CheckSmall","aria-label":"Passed",className:"text-emerald-700"}),fail:n.jsx(g,{name:"Remove","aria-label":"Failed",className:"text-foreground-danger"}),unknown:n.jsx(g,{name:"Question","aria-label":"Unknown",className:"animate-pulse"})}[(r==null?void 0:r.status)??"unknown"],u=i.sort((f,d)=>f.timestamp-d.timestamp),E={pass:n.jsx(g,{name:"CheckSmall","aria-label":"Passed"}),fail:n.jsx(g,{name:"Remove","aria-label":"Failed"}),unknown:n.jsx(g,{name:"Question","aria-label":"Unknown",className:"animate-pulse"})};return n.jsx(n.Fragment,{children:n.jsx(qt,{className:"w-full",type:"multiple",children:n.jsx(yt,{icon:p,title:o,forceMount:!0,children:n.jsxs("div",{className:"not-prose",children:[n.jsxs("div",{className:"flex flex-col gap-2 p-5 pt-3",children:[n.jsx("ul",{className:"flex flex-col gap-2",children:u.map((f,d)=>n.jsx("li",{children:n.jsxs("div",{className:"flex items-baseline gap-2 text-emerald-700",children:[n.jsxs("span",{children:[d+1,"."]}),n.jsx("span",{children:E[f.status]}),n.jsx("pre",{className:"max-h-48 overflow-y-auto p-4 scrollbar-thin scrollbar-thumb-scrollbar",children:f.title})]})},f.timestamp+f.title))}),(r==null?void 0:r.status)==="fail"?n.jsxs("div",{className:"flex items-baseline gap-2 text-foreground-danger",children:[n.jsxs("span",{children:[u.length+1,"."]}),n.jsx("span",{children:E.fail}),n.jsx("pre",{className:"max-h-48 overflow-y-auto p-4 scrollbar-thin scrollbar-thumb-scrollbar",dangerouslySetInnerHTML:{__html:s.toHtml(r.error)}})]}):null,n.jsx("iframe",{ref:c,title:o,src:t+o,className:"mt-5 min-h-[420px] w-full border bg-white"})]}),n.jsxs("div",{className:"flex border-y",children:[n.jsx("button",{onClick:()=>{var f,d;return(d=(f=c.current)==null?void 0:f.contentWindow)==null?void 0:d.location.reload()},className:"border-r p-3",children:n.jsx(g,{name:"Refresh","aria-label":"Rerun Tests"})}),n.jsx("a",{href:t+o,target:"_blank",rel:"noreferrer",className:"border-r p-3",children:n.jsx(g,{name:"ExternalLink","aria-label":"Open in New Window"})})]})]})})})})}const RO=l.union([l.object({type:l.literal("init"),exitCode:l.number().nullable().optional(),isRunning:l.boolean(),output:l.array(l.object({type:l.union([l.literal("stdout"),l.literal("stderr")]),content:l.string(),timestamp:l.number()}))}),l.object({type:l.union([l.literal("stdout"),l.literal("stderr")]),data:l.string(),timestamp:l.number()}),l.object({type:l.literal("exit"),isRunning:l.literal(!1),code:l.number().nullable()})]),jO=l.array(RO);function CO(t,o){return o(t)}function UO({name:t}){const[o,s]=m.useReducer(CO,{version:0,isRunning:!1,exitCode:void 0,lines:[]}),c=gt(),{version:r,isRunning:e,exitCode:i,lines:a}=o,p=Lt(`/test?${new URLSearchParams({name:t})}&v=${r}`);return m.useEffect(()=>{if(!p)return;const u=JSON.parse(p),E=jO.safeParse(u);if(!E.success){console.error(E.error.flatten());return}for(const f of E.data)switch(f.type){case"exit":{const{isRunning:d,code:v}=f;s(h=>({...h,isRunning:d,exitCode:v}));break}case"init":{const{output:d,exitCode:v,isRunning:h}=f;s(y=>({...y,lines:d,exitCode:v,isRunning:h}));break}case"stderr":case"stdout":{const{type:d,data:v,timestamp:h}=f;s(y=>({...y,lines:[...y.lines,{type:d,content:v,timestamp:h}].sort((x,D)=>x.timestamp-D.timestamp),isRunning:!0}));break}}},[p]),n.jsxs("div",{className:"relative flex h-full w-full flex-col overflow-y-auto",children:[n.jsxs("div",{className:"flex h-12 w-full flex-shrink-0 items-center justify-between border-b",children:[n.jsxs("div",{className:"flex h-full items-center",children:[!e&&n.jsx($O,{name:t,onRun:()=>{s(u=>({...u,exitCode:void 0,lines:[],version:u.version+1}))}}),e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"flex h-full flex-grow items-center justify-center border-r px-3.5",children:n.jsx(V,{role:"status","aria-label":"Running Tests"})}),n.jsx(VO,{name:t})]}):null]}),!e&&i!==void 0&&n.jsx("p",{className:"pr-3.5 leading-none",children:i===0?"Tests passed":`Test failed (exit code ${String(i)})`}),!e&&i!==void 0&&n.jsx(HO,{name:t,onClear:()=>{s(u=>({...u,exitCode:void 0,lines:[]}))}})]}),n.jsxs("div",{className:"flex h-full flex-col gap-5 p-5",children:[n.jsx("p",{className:"font-mono text-sm font-medium uppercase",children:"Test Output"}),n.jsx("pre",{className:"shadow-on-scrollbox flex-1 overflow-y-scroll scrollbar-thin scrollbar-thumb-scrollbar",children:a.map(u=>n.jsx("code",{"data-type":u.type,dangerouslySetInnerHTML:{__html:c.toHtml(u.content)}},u.timestamp))})]})]})}function $O({name:t,onRun:o}){const s=B(),c=m.useRef(o);return m.useEffect(()=>{c.current=o},[o]),m.useEffect(()=>{var r,e;(r=s.data)!=null&&r.success&&((e=c.current)==null||e.call(c))},[s.data]),n.jsxs(s.Form,{method:"POST",action:"/test",className:"h-full",children:[n.jsx("input",{type:"hidden",name:"name",value:t}),n.jsx(C,{content:s.state==="idle"?"Run Tests":"Running Tests...",children:n.jsx("button",{type:"submit",name:"intent",value:"run",className:"flex h-full flex-grow items-center justify-center border-r px-3.5",children:s.state==="idle"?n.jsx(g,{name:"TriangleSmall"}):n.jsx(V,{role:"status"})})})]})}function HO({name:t,onClear:o}){const s=B(),c=m.useRef(o);return m.useEffect(()=>{c.current=o},[o]),m.useEffect(()=>{var r,e;(r=s.data)!=null&&r.success&&((e=c.current)==null||e.call(c))},[s.data]),n.jsxs(s.Form,{method:"POST",action:"/test",className:"h-full",children:[n.jsx("input",{type:"hidden",name:"name",value:t}),n.jsx(C,{content:s.state==="idle"?"Clear Tests":"Clearing Tests...",children:n.jsx("button",{type:"submit",name:"intent",value:"clear",className:"flex h-full flex-grow items-center justify-center border-l px-3.5",children:s.state==="idle"?n.jsx(g,{name:"Clear"}):n.jsx(g,{name:"Clear",className:"animate-pulse",role:"status"})})})]})}function VO({name:t,onStop:o}){const s=B(),c=m.useRef(o);return m.useEffect(()=>{c.current=o},[o]),m.useEffect(()=>{var r,e;(r=s.data)!=null&&r.success&&((e=c.current)==null||e.call(c))},[s.data]),n.jsxs(s.Form,{method:"POST",action:"/test",className:"h-full",children:[n.jsx("input",{type:"hidden",name:"name",value:t}),n.jsx(C,{content:s.state==="idle"?"Stop Tests":"Stopping Tests...",children:n.jsx("button",{type:"submit",name:"intent",value:"stop",className:"flex h-full flex-grow items-center justify-center border-r px-3.5",children:s.state==="idle"?n.jsx(g,{name:"Stop"}):n.jsx(g,{name:"Stop",className:"animate-pulse",role:"status"})})})]})}function JO({appInfo:t,problemAppName:o,allApps:s,isUpToDate:c}){return n.jsx(Tt,{playgroundAppName:t==null?void 0:t.appName,problemAppName:o,allApps:s,isUpToDate:c,children:n.jsx(BO,{playgroundAppInfo:t})})}function BO({playgroundAppInfo:t}){const[o,s]=m.useState(0);if(!t)return n.jsx("div",{className:"flex h-full items-center justify-center text-lg",children:n.jsx("p",{children:"No tests here 😢 Sorry."})});if(t.test.type==="script")return n.jsx(UO,{name:t.name});if(t.test.type==="browser"){const{pathname:c}=t.test;return n.jsxs("div",{className:"flex h-full w-full flex-grow flex-col overflow-y-auto",children:[t.test.testFiles.map(r=>n.jsx("div",{children:n.jsx(NO,{pathname:c,testFile:r})},r)),n.jsx("div",{className:"px-3 py-[21px]",children:n.jsxs("button",{onClick:()=>s(r=>r+1),className:"flex items-center gap-2 font-mono text-sm uppercase leading-none",children:[n.jsx(g,{name:"Refresh","aria-hidden":!0})," Rerun All Tests"]})})]},o)}return n.jsx("div",{className:"flex h-full items-center justify-center text-lg",children:n.jsx("p",{children:"No tests here 😢 Sorry."})})}export{Tt as P,BO as T,JO as a};
|
|
4
|
-
//# sourceMappingURL=tests-CmNNBElK.js.map
|