nhfs
Version:
NHFS — A sleek HTTP file server for the web built with Next.js and HeroUI. (Alpha)
3 lines (2 loc) • 26.8 kB
JavaScript
(globalThis.TURBOPACK=globalThis.TURBOPACK||[]).push(["object"==typeof document?document.currentScript:void 0,{304310:e=>{"use strict";e.s({MotionGlobalConfig:()=>t});let t={skipAnimations:!1,useManualTiming:!1}},576254:[e=>{"use strict";e.s({},576254),e.s({invariant:()=>n,warning:()=>r},61342),e.i(922271),e.s({noop:()=>t},796254);let t=e=>e,r=t,n=t;function i(e){let t;return()=>(void 0===t&&(t=e()),t)}e.s({memo:()=>i},918404),e.s({progress:()=>o},231280);let o=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n};e.s({millisecondsToSeconds:()=>a,secondsToMilliseconds:()=>s},526626);let s=e=>1e3*e,a=e=>e/1e3},[796254,61342,918404,231280,526626]],196648:e=>{"use strict";e.s({isBrowser:()=>t});let t="undefined"!=typeof window},322682:[e=>{"use strict";e.s({optimizedAppearDataAttribute:()=>n,optimizedAppearDataId:()=>r},322682),e.s({camelToDash:()=>t},282936);let t=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),r="framerAppearId",n="data-"+t(r)},[282936]],100680:e=>{"use strict";e.s({createRenderBatcher:()=>n,stepsOrder:()=>r},100680);var t=e.i(304310);let r=["read","resolveKeyframes","update","preRender","render","postRender"];function n(e,n){let i=!1,o=!0,s={delta:0,timestamp:0,isProcessing:!1},a=()=>i=!0,l=r.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=s&&n?t:r;return i&&o.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,n){i=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(a),n=!1,i&&(i=!1,l.process(e))}};return l}(a),e),{}),{read:u,resolveKeyframes:c,update:f,preRender:d,render:p,postRender:m}=l,h=()=>{let r=t.MotionGlobalConfig.useManualTiming?s.timestamp:performance.now();i=!1,s.delta=o?1e3/60:Math.max(Math.min(r-s.timestamp,40),1),s.timestamp=r,s.isProcessing=!0,u.process(s),c.process(s),f.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&n&&(o=!1,e(h))};return{schedule:r.reduce((t,r)=>{let n=l[r];return t[r]=function(t){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!i&&(i=!0,o=!0,s.isProcessing||e(h)),n.schedule(t,r,a)},t},{}),cancel:e=>{for(let t=0;t<r.length;t++)l[r[t]].cancel(e)},state:s,steps:l}}},135715:e=>{"use strict";function t(e){return"string"==typeof e||Array.isArray(e)}e.s({isVariantLabel:()=>t})},187438:e=>{"use strict";function t(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}e.s({isAnimationControls:()=>t})},496487:e=>{"use strict";e.s({variantPriorityOrder:()=>t,variantProps:()=>r});let t=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...t]},384010:[e=>{"use strict";e.s({isControllingVariants:()=>i,isVariantNode:()=>o},384010);var t=e.i(187438),r=e.i(135715),n=e.i(496487);function i(e){return(0,t.isAnimationControls)(e.animate)||n.variantProps.some(t=>(0,r.isVariantLabel)(e[t]))}function o(e){return!!(i(e)||e.variants)}e.s({featureDefinitions:()=>a},977716);let s={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"]},a={};for(let e in s)a[e]={isEnabled:t=>s[e].some(e=>!!t[e])}},[977716]],762342:e=>{"use strict";e.s({isSVGComponent:()=>r},762342);let t=["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 r(e){if("string"!=typeof e||e.includes("-"));else if(t.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},158627:e=>{"use strict";function t(e,t,r,n){let{style:i,vars:o}=t;for(let t in Object.assign(e.style,i,n&&n.getProjectionStyles(r)),o)e.style.setProperty(t,o[t])}e.s({renderHTML:()=>t})},572575:[e=>{"use strict";e.s({renderSVG:()=>i},572575);var t=e.i(282936),r=e.i(158627);e.s({camelCaseAttributes:()=>n},726048);let n=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 i(e,i,o,s){for(let o in(0,r.renderHTML)(e,i,void 0,s),i.attrs)e.setAttribute(n.has(o)?o:(0,t.camelToDash)(o),i.attrs[o])}},[726048]],746581:e=>{"use strict";e.s({isMotionValue:()=>t});let t=e=>!!(e&&e.getVelocity)},656351:e=>{"use strict";e.s({addScaleCorrector:()=>r,scaleCorrectors:()=>t});let t={};function r(e){Object.assign(t,e)}},303868:e=>{"use strict";e.s({transformPropOrder:()=>t,transformProps:()=>r});let t=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(t)},879257:[e=>{"use strict";e.s({scrapeMotionValuesFromProps:()=>o},879257),e.s({isForcedMotionValue:()=>n},370130);var t=e.i(656351),r=e.i(303868);function n(e,n){let{layout:i,layoutId:o}=n;return r.transformProps.has(e)||e.startsWith("origin")||(i||void 0!==o)&&(!!t.scaleCorrectors[e]||"opacity"===e)}var i=e.i(746581);function o(e,t,r){var o;let{style:s}=e,a={};for(let l in s)((0,i.isMotionValue)(s[l])||t.style&&(0,i.isMotionValue)(t.style[l])||n(l,e)||(null==(o=null==r?void 0:r.getValue(l))?void 0:o.liveStyle)!==void 0)&&(a[l]=s[l]);return a}},[370130]],466210:e=>{"use strict";e.s({scrapeMotionValuesFromProps:()=>i});var t=e.i(746581),r=e.i(879257),n=e.i(303868);function i(e,i,o){let s=(0,r.scrapeMotionValuesFromProps)(e,i,o);for(let r in e)((0,t.isMotionValue)(e[r])||(0,t.isMotionValue)(i[r]))&&(s[-1!==n.transformPropOrder.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return s}},624214:e=>{"use strict";function t(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function r(e,r,n,i){if("function"==typeof r){let[o,s]=t(i);r=r(void 0!==n?n:e.custom,o,s)}if("string"==typeof r&&(r=e.variants&&e.variants[r]),"function"==typeof r){let[o,s]=t(i);r=r(void 0!==n?n:e.custom,o,s)}return r}e.s({resolveVariantFromProps:()=>r})},420006:e=>{"use strict";e.s({isKeyframesTarget:()=>t});let t=e=>Array.isArray(e)},497727:e=>{"use strict";e.s({isCustomValue:()=>r,resolveFinalValueInKeyframes:()=>n});var t=e.i(420006);let r=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),n=e=>(0,t.isKeyframesTarget)(e)?e[e.length-1]||0:e},835475:e=>{"use strict";e.s({getValueAsType:()=>t});let t=(e,t)=>t&&"number"==typeof e?t.transform(e):e},122172:[e=>{"use strict";e.s({numberValueTypes:()=>m},122172),e.s({alpha:()=>n,number:()=>r,scale:()=>i},951655),e.s({clamp:()=>t},499228);let t=(e,t,r)=>r>t?t:r<e?e:r,r={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},n={...r,transform:e=>t(0,1,e)},i={...r,default:1};e.s({degrees:()=>s,percent:()=>a,progressPercentage:()=>f,px:()=>l,vh:()=>u,vw:()=>c},623940);let o=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),s=o("deg"),a=o("%"),l=o("px"),u=o("vh"),c=o("vw"),f={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)};e.s({browserNumberValueTypes:()=>d},44454);let d={borderWidth:l,borderTopWidth:l,borderRightWidth:l,borderBottomWidth:l,borderLeftWidth:l,borderRadius:l,radius:l,borderTopLeftRadius:l,borderTopRightRadius:l,borderBottomRightRadius:l,borderBottomLeftRadius:l,width:l,maxWidth:l,height:l,maxHeight:l,top:l,right:l,bottom:l,left:l,padding:l,paddingTop:l,paddingRight:l,paddingBottom:l,paddingLeft:l,margin:l,marginTop:l,marginRight:l,marginBottom:l,marginLeft:l,backgroundPositionX:l,backgroundPositionY:l},p={...r,transform:Math.round},m={...d,rotate:s,rotateX:s,rotateY:s,rotateZ:s,scale:i,scaleX:i,scaleY:i,scaleZ:i,skew:s,skewX:s,skewY:s,distance:l,translateX:l,translateY:l,translateZ:l,x:l,y:l,z:l,perspective:l,transformPerspective:l,opacity:n,originX:f,originY:f,originZ:l,zIndex:p,size:l,fillOpacity:n,strokeOpacity:n,numOctaves:p}},[499228,951655,623940,44454]],294347:e=>{"use strict";e.s({buildTransform:()=>s});var t=e.i(303868),r=e.i(835475),n=e.i(122172);let i={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=t.transformPropOrder.length;function s(e,s,a){let l="",u=!0;for(let c=0;c<o;c++){let o=t.transformPropOrder[c],f=e[o];if(void 0===f)continue;let d=!0;if(!(d="number"==typeof f?f===+!!o.startsWith("scale"):0===parseFloat(f))||a){let e=(0,r.getValueAsType)(f,n.numberValueTypes[o]);if(!d){u=!1;let t=i[o]||o;l+="".concat(t,"(").concat(e,") ")}a&&(s[o]=e)}}return l=l.trim(),a?l=a(s,u?"":l):u&&(l="none"),l}},237152:e=>{"use strict";e.s({isCSSVariableName:()=>r,isCSSVariableToken:()=>i});let t=e=>t=>"string"==typeof t&&t.startsWith(e),r=t("--"),n=t("var(--"),i=e=>!!n(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},765936:e=>{"use strict";e.s({buildHTMLStyles:()=>s});var t=e.i(294347),r=e.i(237152),n=e.i(303868),i=e.i(835475),o=e.i(122172);function s(e,s,a){let{style:l,vars:u,transformOrigin:c}=e,f=!1,d=!1;for(let e in s){let t=s[e];if(n.transformProps.has(e)){f=!0;continue}if((0,r.isCSSVariableName)(e)){u[e]=t;continue}{let r=(0,i.getValueAsType)(t,o.numberValueTypes[e]);e.startsWith("origin")?(d=!0,c[e]=r):l[e]=r}}if(!s.transform&&(f||a?l.transform=(0,t.buildTransform)(s,e.transform,a):l.transform&&(l.transform="none")),d){let{originX:e="50%",originY:t="50%",originZ:r=0}=c;l.transformOrigin="".concat(e," ").concat(t," ").concat(r)}}},782451:e=>{"use strict";e.s({buildSVGAttrs:()=>s},782451);var t=e.i(765936),r=e.i(623940);function n(e,t,n){return"string"==typeof e?e:r.px.transform(t+n*e)}let i={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function s(e,s,a,l){let{attrX:u,attrY:c,attrScale:f,originX:d,originY:p,pathLength:m,pathSpacing:h=1,pathOffset:g=0,...y}=s;if((0,t.buildHTMLStyles)(e,y,l),a){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:C,dimensions:x}=e;v.transform&&(x&&(C.transform=v.transform),delete v.transform),x&&(void 0!==d||void 0!==p||C.transform)&&(C.transformOrigin=function(e,t,r){let i=n(t,e.x,e.width),o=n(r,e.y,e.height);return"".concat(i," ").concat(o)}(x,void 0!==d?d:.5,void 0!==p?p:.5)),void 0!==u&&(v.x=u),void 0!==c&&(v.y=c),void 0!==f&&(v.scale=f),void 0!==m&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=!(arguments.length>4)||void 0===arguments[4]||arguments[4];e.pathLength=1;let l=a?i:o;e[l.offset]=r.px.transform(-s);let u=r.px.transform(t),c=r.px.transform(n);e[l.array]="".concat(u," ").concat(c)}(v,m,h,g,!1)}},556722:e=>{"use strict";e.s({isSVGTag:()=>t});let t=e=>"string"==typeof e&&"svg"===e.toLowerCase()},570119:e=>{"use strict";e.s({cancelFrame:()=>n,frame:()=>r,frameData:()=>i,frameSteps:()=>o}),e.i(576254);var t=e.i(796254);let{schedule:r,cancel:n,state:i,steps:o}=(0,e.i(100680).createRenderBatcher)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:t.noop,!0)},102670:e=>{"use strict";e.s({MotionConfigContext:()=>t});let t=(0,e.i(838653).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},368013:[e=>{"use strict";e.s({filterProps:()=>o,loadExternalIsValidProp:()=>i},368013),e.s({isValidMotionProp:()=>r},398720);let t=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 r(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||t.has(e)}let n=e=>!r(e);function i(e){e&&(n=t=>t.startsWith("on")?!r(t):e(t))}try{i((()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default)}catch(e){}function o(e,t,i){let o={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(n(s)||!0===i&&r(s)||!t&&!r(s)||e.draggable&&s.startsWith("onDrag"))&&(o[s]=e[s]);return o}},[398720]],438998:e=>{"use strict";e.s({useConstant:()=>r});var t=e.i(838653);function r(e){let r=(0,t.useRef)(null);return null===r.current&&(r.current=e()),r.current}},139204:e=>{"use strict";e.s({PresenceContext:()=>t});let t=(0,e.i(838653).createContext)(null)},41916:e=>{"use strict";e.s({PresenceChild:()=>u},41916);var t=e.i(731636),r=e.i(838653),n=e.i(139204),i=e.i(438998),o=r,s=e.i(102670);class a extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function l(e){let{children:r,isPresent:n}=e,i=(0,o.useId)(),l=(0,o.useRef)(null),u=(0,o.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,o.useContext)(s.MotionConfigContext);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:o}=u.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=i;let s=document.createElement("style");return c&&(s.nonce=c),document.head.appendChild(s),s.sheet&&s.sheet.insertRule('\n [data-motion-pop-id="'.concat(i,'"] {\n position: absolute !important;\n width: ').concat(e,"px !important;\n height: ").concat(t,"px !important;\n top: ").concat(r,"px !important;\n left: ").concat(o,"px !important;\n }\n ")),()=>{document.head.removeChild(s)}},[n]),(0,t.jsx)(a,{isPresent:n,childRef:l,sizeRef:u,children:o.cloneElement(r,{ref:l})})}let u=e=>{let{children:o,initial:s,isPresent:a,onExitComplete:u,custom:f,presenceAffectsLayout:d,mode:p}=e,m=(0,i.useConstant)(c),h=(0,r.useId)(),g=(0,r.useCallback)(e=>{for(let t of(m.set(e,!0),m.values()))if(!t)return;u&&u()},[m,u]),y=(0,r.useMemo)(()=>({id:h,initial:s,isPresent:a,custom:f,onExitComplete:g,register:e=>(m.set(e,!1),()=>m.delete(e))}),d?[Math.random(),g]:[a,g]);return(0,r.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[a]),r.useEffect(()=>{a||m.size||!u||u()},[a]),"popLayout"===p&&(o=(0,t.jsx)(l,{isPresent:a,children:o})),(0,t.jsx)(n.PresenceContext.Provider,{value:y,children:o})};function c(){return new Map}},348074:e=>{"use strict";e.s({LayoutGroupContext:()=>t});let t=(0,e.i(838653).createContext)({})},618632:e=>{"use strict";e.s({getChildKey:()=>r,onlyElements:()=>n});var t=e.i(838653);let r=e=>e.key||"";function n(e){let r=[];return t.Children.forEach(e,e=>{(0,t.isValidElement)(e)&&r.push(e)}),r}},517880:e=>{"use strict";e.s({useIsomorphicLayoutEffect:()=>r});var t=e.i(838653);let r=e.i(196648).isBrowser?t.useLayoutEffect:t.useEffect},420909:e=>{"use strict";e.s({AnimatePresence:()=>u});var t=e.i(731636),r=e.i(838653),n=e.i(41916),i=e.i(348074);e.i(576254);var o=e.i(61342),s=e.i(438998),a=e.i(618632),l=e.i(517880);let u=e=>{let{children:u,exitBeforeEnter:c,custom:f,initial:d=!0,onExitComplete:p,presenceAffectsLayout:m=!0,mode:h="sync"}=e;(0,o.invariant)(!c,"Replace exitBeforeEnter with mode='wait'");let g=(0,r.useMemo)(()=>(0,a.onlyElements)(u),[u]),y=g.map(a.getChildKey),v=(0,r.useRef)(!0),C=(0,r.useRef)(g),x=(0,s.useConstant)(()=>new Map),[w,M]=(0,r.useState)(g),[b,V]=(0,r.useState)(g);(0,l.useIsomorphicLayoutEffect)(()=>{v.current=!1,C.current=g;for(let e=0;e<b.length;e++){let t=(0,a.getChildKey)(b[e]);y.includes(t)?x.delete(t):!0!==x.get(t)&&x.set(t,!1)}},[b,y.length,y.join("-")]);let P=[];if(g!==w){let e=[...g];for(let t=0;t<b.length;t++){let r=b[t],n=(0,a.getChildKey)(r);y.includes(n)||(e.splice(t,0,r),P.push(r))}"wait"===h&&P.length&&(e=P),V((0,a.onlyElements)(e)),M(g);return}let{forceRender:S}=(0,r.useContext)(i.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:b.map(e=>{let r=(0,a.getChildKey)(e),i=g===b||y.includes(r);return(0,t.jsx)(n.PresenceChild,{isPresent:i,initial:(!v.current||!!d)&&void 0,custom:i?void 0:f,presenceAffectsLayout:m,mode:h,onExitComplete:i?void 0:()=>{if(!x.has(r))return;x.set(r,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(null==S||S(),V(C.current),p&&p())},children:e},r)})})}},60331:e=>{"use strict";function t(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy(function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e(...r)},{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}e.s({createDOMMotionComponentProxy:()=>t})},580483:e=>{"use strict";e.s({MotionContext:()=>t});let t=(0,e.i(838653).createContext)({})},865286:e=>{"use strict";e.s({LazyContext:()=>t});let t=(0,e.i(838653).createContext)({strict:!1})},786022:e=>{"use strict";e.s({microtask:()=>t});let{schedule:t,cancel:r}=(0,e.i(100680).createRenderBatcher)(queueMicrotask,!1)},366290:e=>{"use strict";function t(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}e.s({isRefObject:()=>t})},584579:e=>{"use strict";e.s({SwitchLayoutGroupContext:()=>t});let t=(0,e.i(838653).createContext)({})},818332:[e=>{"use strict";e.s({useVisualElement:()=>f},818332);var t=e.i(838653),r=e.i(139204),n=e.i(580483),i=e.i(517880),o=e.i(865286),s=e.i(102670),a=e.i(322682),l=e.i(786022),u=e.i(366290),c=e.i(584579);function f(e,f,d,p,m){var h,g;let{visualElement:y}=(0,t.useContext)(n.MotionContext),v=(0,t.useContext)(o.LazyContext),C=(0,t.useContext)(r.PresenceContext),x=(0,t.useContext)(s.MotionConfigContext).reducedMotion,w=(0,t.useRef)();p=p||v.renderer,!w.current&&p&&(w.current=p(e,{visualState:f,parent:y,props:d,presenceContext:C,blockInitialAnimation:!!C&&!1===C.initial,reducedMotionConfig:x}));let M=w.current,b=(0,t.useContext)(c.SwitchLayoutGroupContext);M&&!M.projection&&m&&("html"===M.type||"svg"===M.type)&&function(e,t,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&(0,u.isRefObject)(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}(w.current,d,m,b);let V=(0,t.useRef)(!1);(0,t.useInsertionEffect)(()=>{M&&V.current&&M.update(d,C)});let P=d[a.optimizedAppearDataAttribute],S=(0,t.useRef)(!!P&&!(null==(h=window.MotionHandoffIsComplete)?void 0:h.call(window,P))&&(null==(g=window.MotionHasOptimisedAnimation)?void 0:g.call(window,P)));return(0,i.useIsomorphicLayoutEffect)(()=>{M&&(V.current=!0,window.MotionIsMounted=!0,M.updateFeatures(),l.microtask.render(M.render),S.current&&M.animationState&&M.animationState.animateChanges())}),(0,t.useEffect)(()=>{M&&(!S.current&&M.animationState&&M.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,P)}),S.current=!1))}),M}function d(e,r,n){return(0,t.useCallback)(t=>{t&&e.mount&&e.mount(t),r&&(t?r.mount(t):r.unmount()),n&&("function"==typeof n?n(t):(0,u.isRefObject)(n)&&(n.current=t))},[r])}e.s({useMotionRef:()=>d},907800),e.s({useCreateMotionContext:()=>h},23562);var p=e.i(135715),m=e.i(384010);function h(e){let{initial:r,animate:i}=function(e,t){if((0,m.isControllingVariants)(e)){let{initial:t,animate:r}=e;return{initial:!1===t||(0,p.isVariantLabel)(t)?t:void 0,animate:(0,p.isVariantLabel)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(n.MotionContext));return(0,t.useMemo)(()=>({initial:r,animate:i}),[g(r),g(i)])}function g(e){return Array.isArray(e)?e.join(" "):e}e.s({loadFeatures:()=>v},278845);var y=e.i(977716);function v(e){for(let t in e)y.featureDefinitions[t]={...y.featureDefinitions[t],...e[t]}}},[907800,23562,278845]],584027:[e=>{"use strict";e.s({createRendererMotionComponent:()=>m},584027);var t=e.i(731636),r=e.i(838653),n=e.i(102670),i=e.i(580483),o=e.i(818332),s=e.i(907800),a=e.i(23562),l=e.i(278845),u=e.i(196648),c=e.i(348074),f=e.i(865286);e.s({motionComponentSymbol:()=>d},374511);let d=Symbol.for("motionComponentSymbol");e.i(576254);var p=e.i(977716);function m(e){let{preloadedFeatures:m,createVisualElement:h,useRender:g,useVisualState:y,Component:v}=e;m&&(0,l.loadFeatures)(m);let C=(0,r.forwardRef)(function(e,l){let d,m={...(0,r.useContext)(n.MotionConfigContext),...e,layoutId:function(e){let{layoutId:t}=e,n=(0,r.useContext)(c.LayoutGroupContext).id;return n&&void 0!==t?n+"-"+t:t}(e)},{isStatic:C}=m,x=(0,a.useCreateMotionContext)(e),w=y(e,C);if(!C&&u.isBrowser){(0,r.useContext)(f.LazyContext).strict;let e=function(e){let{drag:t,layout:r}=p.featureDefinitions;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(m);d=e.MeasureLayout,x.visualElement=(0,o.useVisualElement)(v,w,m,h,e.ProjectionNode)}return(0,t.jsxs)(i.MotionContext.Provider,{value:x,children:[d&&x.visualElement?(0,t.jsx)(d,{visualElement:x.visualElement,...m}):null,g(v,e,(0,s.useMotionRef)(w,x.visualElement,l),w,C,x.visualElement)]})});return C[d]=v,C}},[374511]],312379:e=>{"use strict";e.s({resolveMotionValue:()=>n});var t=e.i(497727),r=e.i(746581);function n(e){let n=(0,r.isMotionValue)(e)?e.get():e;return(0,t.isCustomValue)(n)?n.toValue():n}},894853:[e=>{"use strict";e.s({svgMotionConfig:()=>y},894853);var t=e.i(572575),r=e.i(466210);e.s({makeUseVisualState:()=>f},405428);var n=e.i(838653),i=e.i(187438),o=e.i(139204),s=e.i(624214),a=e.i(438998),l=e.i(312379),u=e.i(580483),c=e.i(384010);let f=e=>(t,r)=>{let f=(0,n.useContext)(u.MotionContext),d=(0,n.useContext)(o.PresenceContext),p=()=>(function(e,t,r,n){let{scrapeMotionValuesFromProps:o,createRenderState:a,onMount:u}=e,f={latestValues:function(e,t,r,n){let o={},a=n(e,{});for(let e in a)o[e]=(0,l.resolveMotionValue)(a[e]);let{initial:u,animate:f}=e,d=(0,c.isControllingVariants)(e),p=(0,c.isVariantNode)(e);t&&p&&!d&&!1!==e.inherit&&(void 0===u&&(u=t.initial),void 0===f&&(f=t.animate));let m=!!r&&!1===r.initial,h=(m=m||!1===u)?f:u;if(h&&"boolean"!=typeof h&&!(0,i.isAnimationControls)(h)){let t=Array.isArray(h)?h:[h];for(let r=0;r<t.length;r++){let n=(0,s.resolveVariantFromProps)(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=m?t.length-1:0;t=t[e]}null!==t&&(o[e]=t)}for(let t in e)o[t]=e[t]}}}return o}(t,r,n,o),renderState:a()};return u&&(f.mount=e=>u(t,e,f)),f})(e,t,f,d);return r?p():(0,a.useConstant)(p)};e.s({createSvgRenderState:()=>p},307907);let d=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),p=()=>({...d(),attrs:{}});var m=e.i(782451),h=e.i(556722),g=e.i(570119);let y={useVisualState:f({scrapeMotionValuesFromProps:r.scrapeMotionValuesFromProps,createRenderState:p,onMount:(e,r,n)=>{let{renderState:i,latestValues:o}=n;g.frame.read(()=>{try{i.dimensions="function"==typeof r.getBBox?r.getBBox():r.getBoundingClientRect()}catch(e){i.dimensions={x:0,y:0,width:0,height:0}}}),g.frame.render(()=>{(0,m.buildSVGAttrs)(i,o,(0,h.isSVGTag)(r.tagName),e.transformTemplate),(0,t.renderSVG)(r,i)})}})};e.s({htmlMotionConfig:()=>v},149718);let v={useVisualState:f({scrapeMotionValuesFromProps:e.i(879257).scrapeMotionValuesFromProps,createRenderState:d})};e.s({copyRawValuesOnly:()=>M,useHTMLProps:()=>b},544150);var C=e.i(370130),x=e.i(746581),w=e.i(765936);function M(e,t,r){for(let n in t)(0,x.isMotionValue)(t[n])||(0,C.isForcedMotionValue)(n,r)||(e[n]=t[n])}function b(e,t){let r={},i=function(e,t){let r=e.style||{},i={};return M(i,r,e),Object.assign(i,function(e,t){let{transformTemplate:r}=e;return(0,n.useMemo)(()=>{let e=d();return(0,w.buildHTMLStyles)(e,t,r),Object.assign({},e.vars,e.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}},[405428,307907,149718,544150]],631839:[e=>{"use strict";e.s({m:()=>h},631839);var t=e.i(60331);e.s({createMotionComponentFactory:()=>p},829817);var r=e.i(584027),n=e.i(762342),i=e.i(894853),o=e.i(149718),s=e.i(838653),a=e.i(544150),l=e.i(368013),u=e.i(782451),c=e.i(307907),f=e.i(556722),d=e.i(746581);function p(e,t){return function(p){let{forwardMotionProps:m}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1},h={...(0,n.isSVGComponent)(p)?i.svgMotionConfig:o.htmlMotionConfig,preloadedFeatures:e,useRender:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,r,i,o,p)=>{let{latestValues:m}=o,h=((0,n.isSVGComponent)(t)?function(e,t,r,n){let i=(0,s.useMemo)(()=>{let r=(0,c.createSvgRenderState)();return(0,u.buildSVGAttrs)(r,t,(0,f.isSVGTag)(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};(0,a.copyRawValuesOnly)(t,e.style,e),i.style={...t,...i.style}}return i}:a.useHTMLProps)(r,m,p,t),g=(0,l.filterProps)(r,"string"==typeof t,e),y=t!==s.Fragment?{...g,...h,ref:i}:{},{children:v}=r,C=(0,s.useMemo)(()=>(0,d.isMotionValue)(v)?v.get():v,[v]);return(0,s.createElement)(t,{...y,children:C})}}(m),createVisualElement:t,Component:p};return(0,r.createRendererMotionComponent)(h)}}let m=p(),h=(0,t.createDOMMotionComponentProxy)(m)},[829817]],624977:e=>{"use strict";e.s({LazyMotion:()=>o});var t=e.i(731636),r=e.i(838653),n=e.i(865286),i=e.i(278845);function o(e){let{children:o,features:a,strict:l=!1}=e,[,u]=(0,r.useState)(!s(a)),c=(0,r.useRef)(void 0);if(!s(a)){let{renderer:e,...t}=a;c.current=e,(0,i.loadFeatures)(t)}return(0,r.useEffect)(()=>{s(a)&&a().then(e=>{let{renderer:t,...r}=e;(0,i.loadFeatures)(r),c.current=t,u(!0)})},[]),(0,t.jsx)(n.LazyContext.Provider,{value:{renderer:c.current,strict:l},children:o})}function s(e){return"function"==typeof e}}}]);
//# sourceMappingURL=ee1f739e03e5053e.js.map