@careshiphealth/widget 2.2.4-ela → 2.2.4

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.
@@ -53,7 +53,7 @@ Error generating stack: `+W.message+`
53
53
  `+W.stack}return Object.defineProperty(f,"componentStack",{value:D}),D}}),f}function mn(Q,f,m){if(Q=Q.onError,f=Q(f,m),f==null||typeof f=="string")return f}function rc(Q,f){var m=Q.onShellError,k=Q.onFatalError;m(f),k(f),Q.destination!==null?(Q.status=14,RA(Q.destination,f)):(Q.status=13,Q.fatalError=f)}function vB(Q,f){oG(Q,f.next,f.hoistables)}function oG(Q,f,m){for(;f!==null;){m!==null&&(ic(f.hoistables,m),f.inheritedHoistables=m);var k=f.boundaries;if(k!==null){f.boundaries=null;for(var D=0;D<k.length;D++){var W=k[D];m!==null&&ic(W.contentState,m),ea(Q,W,null,null)}}if(f.pendingTasks--,0<f.pendingTasks)break;m=f.hoistables,f=f.next}}function Ul(Q,f){var m=f.boundaries;if(m!==null&&f.pendingTasks===m.length){for(var k=!0,D=0;D<m.length;D++){var W=m[D];if(W.pendingTasks!==1||W.parentFlushed||da(Q,W)){k=!1;break}}k&&oG(Q,f,f.hoistables)}}function zt(Q){var f={pendingTasks:1,boundaries:null,hoistables:oi(),inheritedHoistables:null,together:!1,next:null};return Q!==null&&0<Q.pendingTasks&&(f.pendingTasks++,f.boundaries=[],Q.next=f),f}function ld(Q,f,m,k,D){var W=f.keyPath,O=f.treeContext,rA=f.row;f.keyPath=m,m=k.length;var AA=null;if(f.replay!==null){var cA=f.replay.slots;if(cA!==null&&typeof cA=="object")for(var hA=0;hA<m;hA++){var vA=D!=="backwards"&&D!=="unstable_legacy-backwards"?hA:m-1-hA,SA=k[vA];f.row=AA=zt(AA),f.treeContext=_(O,m,vA);var WA=cA[vA];typeof WA=="number"?(Qa(Q,f,WA,SA,vA),delete cA[vA]):rn(Q,f,SA,vA),--AA.pendingTasks===0&&vB(Q,AA)}else for(cA=0;cA<m;cA++)hA=D!=="backwards"&&D!=="unstable_legacy-backwards"?cA:m-1-cA,vA=k[hA],f.row=AA=zt(AA),f.treeContext=_(O,m,hA),rn(Q,f,vA,hA),--AA.pendingTasks===0&&vB(Q,AA)}else if(D!=="backwards"&&D!=="unstable_legacy-backwards")for(D=0;D<m;D++)cA=k[D],f.row=AA=zt(AA),f.treeContext=_(O,m,D),rn(Q,f,cA,D),--AA.pendingTasks===0&&vB(Q,AA);else{for(D=f.blockedSegment,cA=D.children.length,hA=D.chunks.length,vA=m-1;0<=vA;vA--){SA=k[vA],f.row=AA=zt(AA),f.treeContext=_(O,m,vA),WA=sB(Q,hA,null,f.formatContext,vA===0?D.lastPushedText:!0,!0),D.children.splice(cA,0,WA),f.blockedSegment=WA;try{rn(Q,f,SA,vA),WA.lastPushedText&&WA.textEmbedded&&WA.chunks.push(ns),WA.status=1,LB(Q,f.blockedBoundary,WA),--AA.pendingTasks===0&&vB(Q,AA)}catch(de){throw WA.status=Q.status===12?3:4,de}}f.blockedSegment=D,D.lastPushedText=!1}rA!==null&&AA!==null&&0<AA.pendingTasks&&(rA.pendingTasks++,AA.next=rA),f.treeContext=O,f.row=rA,f.keyPath=W}function wo(Q,f,m,k,D,W){var O=f.thenableState;for(f.thenableState=null,ye={},st=f,Nt=Q,xe=m,it=un=0,$t=-1,Tt=0,kt=O,Q=k(D,W);Ne;)Ne=!1,it=un=0,$t=-1,Tt=0,gi+=1,ze=null,Q=k(D,W);return VB(),Q}function Ga(Q,f,m,k,D,W,O){var rA=!1;if(W!==0&&Q.formState!==null){var AA=f.blockedSegment;if(AA!==null){rA=!0,AA=AA.chunks;for(var cA=0;cA<W;cA++)cA===O?AA.push(LQ):AA.push($c)}}W=f.keyPath,f.keyPath=m,D?(m=f.treeContext,f.treeContext=_(m,1,0),rn(Q,f,k,-1),f.treeContext=m):rA?rn(Q,f,k,-1):sn(Q,f,k,-1),f.keyPath=W}function Gi(Q,f,m,k,D,W){if(typeof k=="function")if(k.prototype&&k.prototype.isReactComponent){var O=D;if("ref"in D){O={};for(var rA in D)rA!=="ref"&&(O[rA]=D[rA])}var AA=k.defaultProps;if(AA){O===D&&(O=DA({},O,D));for(var cA in AA)O[cA]===void 0&&(O[cA]=AA[cA])}D=O,O=cG,AA=k.contextType,typeof AA=="object"&&AA!==null&&(O=AA._currentValue),O=new k(D,O);var hA=O.state!==void 0?O.state:null;if(O.updater=P,O.props=D,O.state=hA,AA={queue:[],replace:!1},O._reactInternals=AA,W=k.contextType,O.context=typeof W=="object"&&W!==null?W._currentValue:cG,W=k.getDerivedStateFromProps,typeof W=="function"&&(W=W(D,hA),hA=W==null?hA:DA({},hA,W),O.state=hA),typeof k.getDerivedStateFromProps!="function"&&typeof O.getSnapshotBeforeUpdate!="function"&&(typeof O.UNSAFE_componentWillMount=="function"||typeof O.componentWillMount=="function"))if(k=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),k!==O.state&&P.enqueueReplaceState(O,O.state,null),AA.queue!==null&&0<AA.queue.length)if(k=AA.queue,W=AA.replace,AA.queue=null,AA.replace=!1,W&&k.length===1)O.state=k[0];else{for(AA=W?k[0]:O.state,hA=!0,W=W?1:0;W<k.length;W++)cA=k[W],cA=typeof cA=="function"?cA.call(O,AA,D,void 0):cA,cA!=null&&(hA?(hA=!1,AA=DA({},AA,cA)):DA(AA,cA));O.state=AA}else AA.queue=null;if(k=O.render(),Q.status===12)throw null;D=f.keyPath,f.keyPath=m,sn(Q,f,k,-1),f.keyPath=D}else{if(k=wo(Q,f,m,k,D,void 0),Q.status===12)throw null;Ga(Q,f,m,k,un!==0,it,$t)}else if(typeof k=="string")if(O=f.blockedSegment,O===null)O=D.children,AA=f.formatContext,hA=f.keyPath,f.formatContext=ts(AA,k,D),f.keyPath=m,rn(Q,f,O,-1),f.formatContext=AA,f.keyPath=hA;else{if(hA=xB(O.chunks,k,D,Q.resumableState,Q.renderState,f.blockedPreamble,f.hoistableState,f.formatContext,O.lastPushedText),O.lastPushedText=!1,AA=f.formatContext,W=f.keyPath,f.keyPath=m,(f.formatContext=ts(AA,k,D)).insertionMode===3){m=sB(Q,0,null,f.formatContext,!1,!1),O.preambleChildren.push(m),f.blockedSegment=m;try{m.status=6,rn(Q,f,hA,-1),m.lastPushedText&&m.textEmbedded&&m.chunks.push(ns),m.status=1,LB(Q,f.blockedBoundary,m)}finally{f.blockedSegment=O}}else rn(Q,f,hA,-1);f.formatContext=AA,f.keyPath=W;A:{switch(f=O.chunks,Q=Q.resumableState,k){case"title":case"style":case"script":case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break A;case"body":if(1>=AA.insertionMode){Q.hasBody=!0;break A}break;case"html":if(AA.insertionMode===0){Q.hasHtml=!0;break A}break;case"head":if(1>=AA.insertionMode)break A}f.push(ni(k))}O.lastPushedText=!1}else{switch(k){case Z:case i:case c:case a:k=f.keyPath,f.keyPath=m,sn(Q,f,D.children,-1),f.keyPath=k;return;case y:k=f.blockedSegment,k===null?D.mode!=="hidden"&&(k=f.keyPath,f.keyPath=m,rn(Q,f,D.children,-1),f.keyPath=k):D.mode!=="hidden"&&(k.chunks.push(Kr),k.lastPushedText=!1,O=f.keyPath,f.keyPath=m,rn(Q,f,D.children,-1),f.keyPath=O,k.chunks.push(Cl),k.lastPushedText=!1);return;case w:A:{if(k=D.children,D=D.revealOrder,D==="forwards"||D==="backwards"||D==="unstable_legacy-backwards"){if(S(k)){ld(Q,f,m,k,D);break A}if((O=F(k))&&(O=O.call(k))){if(AA=O.next(),!AA.done){do AA=O.next();while(!AA.done);ld(Q,f,m,k,D)}break A}}D==="together"?(D=f.keyPath,O=f.row,AA=f.row=zt(null),AA.boundaries=[],AA.together=!0,f.keyPath=m,sn(Q,f,k,-1),--AA.pendingTasks===0&&vB(Q,AA),f.keyPath=D,f.row=O,O!==null&&0<AA.pendingTasks&&(O.pendingTasks++,AA.next=O)):(D=f.keyPath,f.keyPath=m,sn(Q,f,k,-1),f.keyPath=D)}return;case R:case Y:throw Error(t(343));case u:A:if(f.replay!==null){k=f.keyPath,O=f.formatContext,AA=f.row,f.keyPath=m,f.formatContext=qs(Q.resumableState,O),f.row=null,m=D.children;try{rn(Q,f,m,-1)}finally{f.keyPath=k,f.formatContext=O,f.row=AA}}else{k=f.keyPath,W=f.formatContext;var vA=f.row;cA=f.blockedBoundary,rA=f.blockedPreamble;var SA=f.hoistableState,WA=f.blockedSegment,de=D.fallback;D=D.children;var Ye=new Set,pe=2>f.formatContext.insertionMode?Aa(Q,f.row,Ye,_t(),_t()):Aa(Q,f.row,Ye,null,null);Q.trackedPostpones!==null&&(pe.trackedContentKeyPath=m);var ee=sB(Q,WA.chunks.length,pe,f.formatContext,!1,!1);WA.children.push(ee),WA.lastPushedText=!1;var ue=sB(Q,0,null,f.formatContext,!1,!1);if(ue.parentFlushed=!0,Q.trackedPostpones!==null){O=f.componentStack,AA=[m[0],"Suspense Fallback",m[2]],hA=[AA[1],AA[2],[],null],Q.trackedPostpones.workingMap.set(AA,hA),pe.trackedFallbackNode=hA,f.blockedSegment=ee,f.blockedPreamble=pe.fallbackPreamble,f.keyPath=AA,f.formatContext=zr(Q.resumableState,W),f.componentStack=ua(O),ee.status=6;try{rn(Q,f,de,-1),ee.lastPushedText&&ee.textEmbedded&&ee.chunks.push(ns),ee.status=1,LB(Q,cA,ee)}catch(Re){throw ee.status=Q.status===12?3:4,Re}finally{f.blockedSegment=WA,f.blockedPreamble=rA,f.keyPath=k,f.formatContext=W}f=Ts(Q,null,D,-1,pe,ue,pe.contentPreamble,pe.contentState,f.abortSet,m,qs(Q.resumableState,f.formatContext),f.context,f.treeContext,null,O),os(f),Q.pingedTasks.push(f)}else{f.blockedBoundary=pe,f.blockedPreamble=pe.contentPreamble,f.hoistableState=pe.contentState,f.blockedSegment=ue,f.keyPath=m,f.formatContext=qs(Q.resumableState,W),f.row=null,ue.status=6;try{if(rn(Q,f,D,-1),ue.lastPushedText&&ue.textEmbedded&&ue.chunks.push(ns),ue.status=1,LB(Q,pe,ue),ls(pe,ue),pe.pendingTasks===0&&pe.status===0){if(pe.status=1,!da(Q,pe)){vA!==null&&--vA.pendingTasks===0&&vB(Q,vA),Q.pendingRootTasks===0&&f.blockedPreamble&&Da(Q);break A}}else vA!==null&&vA.together&&Ul(Q,vA)}catch(Re){pe.status=4,Q.status===12?(ue.status=3,O=Q.fatalError):(ue.status=4,O=Re),AA=wt(f.componentStack),hA=mn(Q,O,AA),pe.errorDigest=hA,Qi(Q,pe)}finally{f.blockedBoundary=cA,f.blockedPreamble=rA,f.hoistableState=SA,f.blockedSegment=WA,f.keyPath=k,f.formatContext=W,f.row=vA}f=Ts(Q,null,de,-1,cA,ee,pe.fallbackPreamble,pe.fallbackState,Ye,[m[0],"Suspense Fallback",m[2]],zr(Q.resumableState,f.formatContext),f.context,f.treeContext,f.row,ua(f.componentStack)),os(f),Q.pingedTasks.push(f)}}return}if(typeof k=="object"&&k!==null)switch(k.$$typeof){case d:if("ref"in D)for(WA in O={},D)WA!=="ref"&&(O[WA]=D[WA]);else O=D;k=wo(Q,f,m,k.render,O,W),Ga(Q,f,m,k,un!==0,it,$t);return;case C:Gi(Q,f,m,k.type,D,W);return;case l:if(AA=D.children,O=f.keyPath,D=D.value,hA=k._currentValue,k._currentValue=D,W=hB,hB=k={parent:W,depth:W===null?0:W.depth+1,context:k,parentValue:hA,value:D},f.context=k,f.keyPath=m,sn(Q,f,AA,-1),Q=hB,Q===null)throw Error(t(403));Q.context._currentValue=Q.parentValue,Q=hB=Q.parent,f.context=Q,f.keyPath=O;return;case o:D=D.children,k=D(k._context._currentValue),D=f.keyPath,f.keyPath=m,sn(Q,f,k,-1),f.keyPath=D;return;case H:if(O=k._init,k=O(k._payload),Q.status===12)throw null;Gi(Q,f,m,k,D,W);return}throw Error(t(130,k==null?k:typeof k,""))}}function Qa(Q,f,m,k,D){var W=f.replay,O=f.blockedBoundary,rA=sB(Q,0,null,f.formatContext,!1,!1);rA.id=m,rA.parentFlushed=!0;try{f.replay=null,f.blockedSegment=rA,rn(Q,f,k,D),rA.status=1,LB(Q,O,rA),O===null?Q.completedRootSegment=rA:(ls(O,rA),O.parentFlushed&&Q.partialBoundaries.push(O))}finally{f.replay=W,f.blockedSegment=null}}function sn(Q,f,m,k){f.replay!==null&&typeof f.replay.slots=="number"?Qa(Q,f,f.replay.slots,m,k):(f.node=m,f.childIndex=k,m=f.componentStack,os(f),ho(Q,f),f.componentStack=m)}function ho(Q,f){var m=f.node,k=f.childIndex;if(m!==null){if(typeof m=="object"){switch(m.$$typeof){case n:var D=m.type,W=m.key,O=m.props;m=O.ref;var rA=m!==void 0?m:null,AA=uo(D),cA=W??(k===-1?0:k);if(W=[f.keyPath,AA,cA],f.replay!==null)A:{var hA=f.replay;for(k=hA.nodes,m=0;m<k.length;m++){var vA=k[m];if(cA===vA[1]){if(vA.length===4){if(AA!==null&&AA!==vA[0])throw Error(t(490,vA[0],AA));var SA=vA[2];AA=vA[3],cA=f.node,f.replay={nodes:SA,slots:AA,pendingTasks:1};try{if(Gi(Q,f,W,D,O,rA),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(t(488));f.replay.pendingTasks--}catch(Qe){if(typeof Qe=="object"&&Qe!==null&&(Qe===XA||typeof Qe.then=="function"))throw f.node===cA?f.replay=hA:k.splice(m,1),Qe;f.replay.pendingTasks--,O=wt(f.componentStack),W=Q,Q=f.blockedBoundary,D=Qe,O=mn(W,D,O),or(W,Q,SA,AA,D,O)}f.replay=hA}else{if(D!==u)throw Error(t(490,"Suspense",uo(D)||"Unknown"));e:{hA=void 0,D=vA[5],rA=vA[2],AA=vA[3],cA=vA[4]===null?[]:vA[4][2],vA=vA[4]===null?null:vA[4][3];var WA=f.keyPath,de=f.formatContext,Ye=f.row,pe=f.replay,ee=f.blockedBoundary,ue=f.hoistableState,Re=O.children,iB=O.fallback,rB=new Set;O=2>f.formatContext.insertionMode?Aa(Q,f.row,rB,_t(),_t()):Aa(Q,f.row,rB,null,null),O.parentFlushed=!0,O.rootSegmentID=D,f.blockedBoundary=O,f.hoistableState=O.contentState,f.keyPath=W,f.formatContext=qs(Q.resumableState,de),f.row=null,f.replay={nodes:rA,slots:AA,pendingTasks:1};try{if(rn(Q,f,Re,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(t(488));if(f.replay.pendingTasks--,O.pendingTasks===0&&O.status===0){O.status=1,Q.completedBoundaries.push(O);break e}}catch(Qe){O.status=4,SA=wt(f.componentStack),hA=mn(Q,Qe,SA),O.errorDigest=hA,f.replay.pendingTasks--,Q.clientRenderedBoundaries.push(O)}finally{f.blockedBoundary=ee,f.hoistableState=ue,f.replay=pe,f.keyPath=WA,f.formatContext=de,f.row=Ye}SA=Qo(Q,null,{nodes:cA,slots:vA,pendingTasks:0},iB,-1,ee,O.fallbackState,rB,[W[0],"Suspense Fallback",W[2]],zr(Q.resumableState,f.formatContext),f.context,f.treeContext,f.row,ua(f.componentStack)),os(SA),Q.pingedTasks.push(SA)}}k.splice(m,1);break A}}}else Gi(Q,f,W,D,O,rA);return;case B:throw Error(t(257));case H:if(SA=m._init,m=SA(m._payload),Q.status===12)throw null;sn(Q,f,m,k);return}if(S(m)){cc(Q,f,m,k);return}if((SA=F(m))&&(SA=SA.call(m))){if(m=SA.next(),!m.done){O=[];do O.push(m.value),m=SA.next();while(!m.done);cc(Q,f,O,k)}return}if(typeof m.then=="function")return f.thenableState=null,sn(Q,f,kl(m),k);if(m.$$typeof===l)return sn(Q,f,m._currentValue,k);throw k=Object.prototype.toString.call(m),Error(t(31,k==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":k))}typeof m=="string"?(k=f.blockedSegment,k!==null&&(k.lastPushedText=AG(k.chunks,m,Q.renderState,k.lastPushedText))):(typeof m=="number"||typeof m=="bigint")&&(k=f.blockedSegment,k!==null&&(k.lastPushedText=AG(k.chunks,""+m,Q.renderState,k.lastPushedText)))}}function cc(Q,f,m,k){var D=f.keyPath;if(k!==-1&&(f.keyPath=[f.keyPath,"Fragment",k],f.replay!==null)){for(var W=f.replay,O=W.nodes,rA=0;rA<O.length;rA++){var AA=O[rA];if(AA[1]===k){k=AA[2],AA=AA[3],f.replay={nodes:k,slots:AA,pendingTasks:1};try{if(cc(Q,f,m,-1),f.replay.pendingTasks===1&&0<f.replay.nodes.length)throw Error(t(488));f.replay.pendingTasks--}catch(vA){if(typeof vA=="object"&&vA!==null&&(vA===XA||typeof vA.then=="function"))throw vA;f.replay.pendingTasks--,m=wt(f.componentStack);var cA=f.blockedBoundary,hA=vA;m=mn(Q,hA,m),or(Q,cA,k,AA,hA,m)}f.replay=W,O.splice(rA,1);break}}f.keyPath=D;return}if(W=f.treeContext,O=m.length,f.replay!==null&&(rA=f.replay.slots,rA!==null&&typeof rA=="object")){for(k=0;k<O;k++)AA=m[k],f.treeContext=_(W,O,k),cA=rA[k],typeof cA=="number"?(Qa(Q,f,cA,AA,k),delete rA[k]):rn(Q,f,AA,k);f.treeContext=W,f.keyPath=D;return}for(rA=0;rA<O;rA++)k=m[rA],f.treeContext=_(W,O,rA),rn(Q,f,k,rA);f.treeContext=W,f.keyPath=D}function gd(Q,f,m){if(m.status=5,m.rootSegmentID=Q.nextSegmentId++,Q=m.trackedContentKeyPath,Q===null)throw Error(t(486));var k=m.trackedFallbackNode,D=[],W=f.workingMap.get(Q);return W===void 0?(m=[Q[1],Q[2],D,null,k,m.rootSegmentID],f.workingMap.set(Q,m),vo(m,Q[0],f),m):(W[4]=k,W[5]=m.rootSegmentID,W)}function Dl(Q,f,m,k){k.status=5;var D=m.keyPath,W=m.blockedBoundary;if(W===null)k.id=Q.nextSegmentId++,f.rootSlots=k.id,Q.completedRootSegment!==null&&(Q.completedRootSegment.status=5);else{if(W!==null&&W.status===0){var O=gd(Q,f,W);if(W.trackedContentKeyPath===D&&m.childIndex===-1){k.id===-1&&(k.id=k.parentFlushed?W.rootSegmentID:Q.nextSegmentId++),O[3]=k.id;return}}if(k.id===-1&&(k.id=k.parentFlushed&&W!==null?W.rootSegmentID:Q.nextSegmentId++),m.childIndex===-1)D===null?f.rootSlots=k.id:(m=f.workingMap.get(D),m===void 0?(m=[D[1],D[2],[],k.id],vo(m,D[0],f)):m[3]=k.id);else{if(D===null){if(Q=f.rootSlots,Q===null)Q=f.rootSlots={};else if(typeof Q=="number")throw Error(t(491))}else if(W=f.workingMap,O=W.get(D),O===void 0)Q={},O=[D[1],D[2],[],Q],W.set(D,O),vo(O,D[0],f);else if(Q=O[3],Q===null)Q=O[3]={};else if(typeof Q=="number")throw Error(t(491));Q[m.childIndex]=k.id}}}function Qi(Q,f){Q=Q.trackedPostpones,Q!==null&&(f=f.trackedContentKeyPath,f!==null&&(f=Q.workingMap.get(f),f!==void 0&&(f.length=4,f[2]=[],f[3]=null)))}function fo(Q,f,m){return Qo(Q,m,f.replay,f.node,f.childIndex,f.blockedBoundary,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.row,f.componentStack)}function bo(Q,f,m){var k=f.blockedSegment,D=sB(Q,k.chunks.length,null,f.formatContext,k.lastPushedText,!0);return k.children.push(D),k.lastPushedText=!1,Ts(Q,m,f.node,f.childIndex,f.blockedBoundary,D,f.blockedPreamble,f.hoistableState,f.abortSet,f.keyPath,f.formatContext,f.context,f.treeContext,f.row,f.componentStack)}function rn(Q,f,m,k){var D=f.formatContext,W=f.context,O=f.keyPath,rA=f.treeContext,AA=f.componentStack,cA=f.blockedSegment;if(cA===null){cA=f.replay;try{return sn(Q,f,m,k)}catch(SA){if(VB(),m=SA===XA?me():SA,Q.status!==12&&typeof m=="object"&&m!==null){if(typeof m.then=="function"){k=SA===XA?Gn():null,Q=fo(Q,f,k).ping,m.then(Q,Q),f.formatContext=D,f.context=W,f.keyPath=O,f.treeContext=rA,f.componentStack=AA,f.replay=cA,U(W);return}if(m.message==="Maximum call stack size exceeded"){m=SA===XA?Gn():null,m=fo(Q,f,m),Q.pingedTasks.push(m),f.formatContext=D,f.context=W,f.keyPath=O,f.treeContext=rA,f.componentStack=AA,f.replay=cA,U(W);return}}}}else{var hA=cA.children.length,vA=cA.chunks.length;try{return sn(Q,f,m,k)}catch(SA){if(VB(),cA.children.length=hA,cA.chunks.length=vA,m=SA===XA?me():SA,Q.status!==12&&typeof m=="object"&&m!==null){if(typeof m.then=="function"){cA=m,m=SA===XA?Gn():null,Q=bo(Q,f,m).ping,cA.then(Q,Q),f.formatContext=D,f.context=W,f.keyPath=O,f.treeContext=rA,f.componentStack=AA,U(W);return}if(m.message==="Maximum call stack size exceeded"){cA=SA===XA?Gn():null,cA=bo(Q,f,cA),Q.pingedTasks.push(cA),f.formatContext=D,f.context=W,f.keyPath=O,f.treeContext=rA,f.componentStack=AA,U(W);return}}}}throw f.formatContext=D,f.context=W,f.keyPath=O,f.treeContext=rA,U(W),m}function wi(Q){var f=Q.blockedBoundary,m=Q.blockedSegment;m!==null&&(m.status=3,ea(this,f,Q.row,m))}function or(Q,f,m,k,D,W){for(var O=0;O<m.length;O++){var rA=m[O];if(rA.length===4)or(Q,f,rA[2],rA[3],D,W);else{rA=rA[5];var AA=Q,cA=W,hA=Aa(AA,null,new Set,null,null);hA.parentFlushed=!0,hA.rootSegmentID=rA,hA.status=4,hA.errorDigest=cA,hA.parentFlushed&&AA.clientRenderedBoundaries.push(hA)}}if(m.length=0,k!==null){if(f===null)throw Error(t(487));if(f.status!==4&&(f.status=4,f.errorDigest=W,f.parentFlushed&&Q.clientRenderedBoundaries.push(f)),typeof k=="object")for(var vA in k)delete k[vA]}}function hi(Q,f,m){var k=Q.blockedBoundary,D=Q.blockedSegment;if(D!==null){if(D.status===6)return;D.status=3}var W=wt(Q.componentStack);if(k===null){if(f.status!==13&&f.status!==14){if(k=Q.replay,k===null){f.trackedPostpones!==null&&D!==null?(k=f.trackedPostpones,mn(f,m,W),Dl(f,k,Q,D),ea(f,null,Q.row,D)):(mn(f,m,W),rc(f,m));return}k.pendingTasks--,k.pendingTasks===0&&0<k.nodes.length&&(D=mn(f,m,W),or(f,null,k.nodes,k.slots,m,D)),f.pendingRootTasks--,f.pendingRootTasks===0&&Fl(f)}}else{var O=f.trackedPostpones;if(k.status!==4){if(O!==null&&D!==null)return mn(f,m,W),Dl(f,O,Q,D),k.fallbackAbortableTasks.forEach(function(rA){return hi(rA,f,m)}),k.fallbackAbortableTasks.clear(),ea(f,k,Q.row,D);k.status=4,D=mn(f,m,W),k.status=4,k.errorDigest=D,Qi(f,k),k.parentFlushed&&f.clientRenderedBoundaries.push(k)}k.pendingTasks--,D=k.row,D!==null&&--D.pendingTasks===0&&vB(f,D),k.fallbackAbortableTasks.forEach(function(rA){return hi(rA,f,m)}),k.fallbackAbortableTasks.clear()}Q=Q.row,Q!==null&&--Q.pendingTasks===0&&vB(f,Q),f.allPendingTasks--,f.allPendingTasks===0&&Co(f)}function lr(Q,f){try{var m=Q.renderState,k=m.onHeaders;if(k){var D=m.headers;if(D){m.headers=null;var W=D.preconnects;if(D.fontPreloads&&(W&&(W+=", "),W+=D.fontPreloads),D.highImagePreloads&&(W&&(W+=", "),W+=D.highImagePreloads),!f){var O=m.styles.values(),rA=O.next();A:for(;0<D.remainingCapacity&&!rA.done;rA=O.next())for(var AA=rA.value.sheets.values(),cA=AA.next();0<D.remainingCapacity&&!cA.done;cA=AA.next()){var hA=cA.value,vA=hA.props,SA=vA.href,WA=hA.props,de=BB(WA.href,"style",{crossOrigin:WA.crossOrigin,integrity:WA.integrity,nonce:WA.nonce,type:WA.type,fetchPriority:WA.fetchPriority,referrerPolicy:WA.referrerPolicy,media:WA.media});if(0<=(D.remainingCapacity-=de.length+2))m.resets.style[SA]=wA,W&&(W+=", "),W+=de,m.resets.style[SA]=typeof vA.crossOrigin=="string"||typeof vA.integrity=="string"?[vA.crossOrigin,vA.integrity]:wA;else break A}}k(W?{Link:W}:{})}}}catch(Ye){mn(Q,Ye,{})}}function Fl(Q){Q.trackedPostpones===null&&lr(Q,!0),Q.trackedPostpones===null&&Da(Q),Q.onShellError=pA,Q=Q.onShellReady,Q()}function Co(Q){lr(Q,Q.trackedPostpones===null?!0:Q.completedRootSegment===null||Q.completedRootSegment.status!==5),Da(Q),Q=Q.onAllReady,Q()}function ls(Q,f){if(f.chunks.length===0&&f.children.length===1&&f.children[0].boundary===null&&f.children[0].id===-1){var m=f.children[0];m.id=f.id,m.parentFlushed=!0,m.status!==1&&m.status!==3&&m.status!==4||ls(Q,m)}else Q.completedSegments.push(f)}function LB(Q,f,m){if(uA!==null){m=m.chunks;for(var k=0,D=0;D<m.length;D++)k+=m[D].byteLength;f===null?Q.byteSize+=k:f.byteSize+=k}}function ea(Q,f,m,k){if(m!==null&&(--m.pendingTasks===0?vB(Q,m):m.together&&Ul(Q,m)),Q.allPendingTasks--,f===null){if(k!==null&&k.parentFlushed){if(Q.completedRootSegment!==null)throw Error(t(389));Q.completedRootSegment=k}Q.pendingRootTasks--,Q.pendingRootTasks===0&&Fl(Q)}else if(f.pendingTasks--,f.status!==4)if(f.pendingTasks===0){if(f.status===0&&(f.status=1),k!==null&&k.parentFlushed&&(k.status===1||k.status===3)&&ls(f,k),f.parentFlushed&&Q.completedBoundaries.push(f),f.status===1)m=f.row,m!==null&&ic(m.hoistables,f.contentState),da(Q,f)||(f.fallbackAbortableTasks.forEach(wi,Q),f.fallbackAbortableTasks.clear(),m!==null&&--m.pendingTasks===0&&vB(Q,m)),Q.pendingRootTasks===0&&Q.trackedPostpones===null&&f.contentPreamble!==null&&Da(Q);else if(f.status===5&&(f=f.row,f!==null)){if(Q.trackedPostpones!==null){m=Q.trackedPostpones;var D=f.next;if(D!==null&&(k=D.boundaries,k!==null))for(D.boundaries=null,D=0;D<k.length;D++){var W=k[D];gd(Q,m,W),ea(Q,W,null,null)}}--f.pendingTasks===0&&vB(Q,f)}}else k===null||!k.parentFlushed||k.status!==1&&k.status!==3||(ls(f,k),f.completedSegments.length===1&&f.parentFlushed&&Q.partialBoundaries.push(f)),f=f.row,f!==null&&f.together&&Ul(Q,f);Q.allPendingTasks===0&&Co(Q)}function dd(Q){if(Q.status!==14&&Q.status!==13){var f=hB,m=Gt.H;Gt.H=cd;var k=Gt.A;Gt.A=Ut;var D=pt;pt=Q;var W=Qn;Qn=Q.resumableState;try{var O=Q.pingedTasks,rA;for(rA=0;rA<O.length;rA++){var AA=O[rA],cA=Q,hA=AA.blockedSegment;if(hA===null){var vA=cA;if(AA.replay.pendingTasks!==0){U(AA.context);try{if(typeof AA.replay.slots=="number"?Qa(vA,AA,AA.replay.slots,AA.node,AA.childIndex):ho(vA,AA),AA.replay.pendingTasks===1&&0<AA.replay.nodes.length)throw Error(t(488));AA.replay.pendingTasks--,AA.abortSet.delete(AA),ea(vA,AA.blockedBoundary,AA.row,null)}catch(Ln){VB();var SA=Ln===XA?me():Ln;if(typeof SA=="object"&&SA!==null&&typeof SA.then=="function"){var WA=AA.ping;SA.then(WA,WA),AA.thenableState=Ln===XA?Gn():null}else{AA.replay.pendingTasks--,AA.abortSet.delete(AA);var de=wt(AA.componentStack);cA=void 0;var Ye=vA,pe=AA.blockedBoundary,ee=vA.status===12?vA.fatalError:SA,ue=AA.replay.nodes,Re=AA.replay.slots;cA=mn(Ye,ee,de),or(Ye,pe,ue,Re,ee,cA),vA.pendingRootTasks--,vA.pendingRootTasks===0&&Fl(vA),vA.allPendingTasks--,vA.allPendingTasks===0&&Co(vA)}}}}else if(vA=void 0,Ye=hA,Ye.status===0){Ye.status=6,U(AA.context);var iB=Ye.children.length,rB=Ye.chunks.length;try{ho(cA,AA),Ye.lastPushedText&&Ye.textEmbedded&&Ye.chunks.push(ns),AA.abortSet.delete(AA),Ye.status=1,LB(cA,AA.blockedBoundary,Ye),ea(cA,AA.blockedBoundary,AA.row,Ye)}catch(Ln){VB(),Ye.children.length=iB,Ye.chunks.length=rB;var Qe=Ln===XA?me():cA.status===12?cA.fatalError:Ln;if(cA.status===12&&cA.trackedPostpones!==null){var Dn=cA.trackedPostpones,Dt=wt(AA.componentStack);AA.abortSet.delete(AA),mn(cA,Qe,Dt),Dl(cA,Dn,AA,Ye),ea(cA,AA.blockedBoundary,AA.row,Ye)}else if(typeof Qe=="object"&&Qe!==null&&typeof Qe.then=="function"){Ye.status=0,AA.thenableState=Ln===XA?Gn():null;var En=AA.ping;Qe.then(En,En)}else{var fi=wt(AA.componentStack);AA.abortSet.delete(AA),Ye.status=4;var Ee=AA.blockedBoundary,Ss=AA.row;if(Ss!==null&&--Ss.pendingTasks===0&&vB(cA,Ss),cA.allPendingTasks--,vA=mn(cA,Qe,fi),Ee===null)rc(cA,Qe);else if(Ee.pendingTasks--,Ee.status!==4){Ee.status=4,Ee.errorDigest=vA,Qi(cA,Ee);var Pa=Ee.row;Pa!==null&&--Pa.pendingTasks===0&&vB(cA,Pa),Ee.parentFlushed&&cA.clientRenderedBoundaries.push(Ee),cA.pendingRootTasks===0&&cA.trackedPostpones===null&&Ee.contentPreamble!==null&&Da(cA)}cA.allPendingTasks===0&&Co(cA)}}}}O.splice(0,rA),Q.destination!==null&&gc(Q,Q.destination)}catch(Ln){mn(Q,Ln,{}),rc(Q,Ln)}finally{Qn=W,Gt.H=m,Gt.A=k,m===cd&&U(f),pt=D}}}function wa(Q,f,m){f.preambleChildren.length&&m.push(f.preambleChildren);for(var k=!1,D=0;D<f.children.length;D++)k=oc(Q,f.children[D],m)||k;return k}function oc(Q,f,m){var k=f.boundary;if(k===null)return wa(Q,f,m);var D=k.contentPreamble,W=k.fallbackPreamble;if(D===null||W===null)return!1;switch(k.status){case 1:if(bl(Q.renderState,D),Q.byteSize+=k.byteSize,f=k.completedSegments[0],!f)throw Error(t(391));return wa(Q,f,m);case 5:if(Q.trackedPostpones!==null)return!0;case 4:if(f.status===1)return bl(Q.renderState,W),wa(Q,f,m);default:return!0}}function Da(Q){if(Q.completedRootSegment&&Q.completedPreambleSegments===null){var f=[],m=Q.byteSize,k=oc(Q,Q.completedRootSegment,f),D=Q.renderState.preamble;k===!1||D.headChunks&&D.bodyChunks?Q.completedPreambleSegments=f:Q.byteSize=m}}function gs(Q,f,m,k){switch(m.parentFlushed=!0,m.status){case 0:m.id=Q.nextSegmentId++;case 5:return k=m.id,m.lastPushedText=!1,m.textEmbedded=!1,Q=Q.renderState,L(f,nG),L(f,Q.placeholderPrefix),Q=tA(k.toString(16)),L(f,Q),$(f,eo);case 1:m.status=2;var D=!0,W=m.chunks,O=0;m=m.children;for(var rA=0;rA<m.length;rA++){for(D=m[rA];O<D.index;O++)L(f,W[O]);D=lc(Q,f,D,k)}for(;O<W.length-1;O++)L(f,W[O]);return O<W.length&&(D=$(f,W[O])),D;case 3:return!0;default:throw Error(t(390))}}var Fa=0;function lc(Q,f,m,k){var D=m.boundary;if(D===null)return gs(Q,f,m,k);if(D.parentFlushed=!0,D.status===4){var W=D.row;W!==null&&--W.pendingTasks===0&&vB(Q,W),D=D.errorDigest,$(f,TB),L(f,ai),D&&(L(f,no),L(f,tA(YA(D))),L(f,to)),$(f,Bo),gs(Q,f,m,k)}else if(D.status!==1)D.status===0&&(D.rootSegmentID=Q.nextSegmentId++),0<D.completedSegments.length&&Q.partialBoundaries.push(D),jr(f,Q.renderState,D.rootSegmentID),k&&ic(k,D.fallbackState),gs(Q,f,m,k);else if(!ds&&da(Q,D)&&(Fa+D.byteSize>Q.progressiveChunkSize||Ps(D.contentState)))D.rootSegmentID=Q.nextSegmentId++,Q.completedBoundaries.push(D),jr(f,Q.renderState,D.rootSegmentID),gs(Q,f,m,k);else{if(Fa+=D.byteSize,k&&ic(k,D.contentState),m=D.row,m!==null&&da(Q,D)&&--m.pendingTasks===0&&vB(Q,m),$(f,XQ),m=D.completedSegments,m.length!==1)throw Error(t(391));lc(Q,f,m[0],k)}return $(f,wB)}function XB(Q,f,m,k){return io(f,Q.renderState,m.parentFormatContext,m.id),lc(Q,f,m,k),Hl(f,m.parentFormatContext)}function ud(Q,f,m){Fa=m.byteSize;for(var k=m.completedSegments,D=0;D<k.length;D++)Rs(Q,f,m,k[D]);k.length=0,k=m.row,k!==null&&da(Q,m)&&--k.pendingTasks===0&&vB(Q,k),Ms(f,m.contentState,Q.renderState),k=Q.resumableState,Q=Q.renderState,D=m.rootSegmentID,m=m.contentState;var W=Q.stylesToHoist;return Q.stylesToHoist=!1,L(f,Q.startInlineScript),L(f,ot),W?((k.instructions&4)===0&&(k.instructions|=4,L(f,ro)),(k.instructions&2)===0&&(k.instructions|=2,L(f,pl)),(k.instructions&8)===0?(k.instructions|=8,L(f,yf)):L(f,KQ)):((k.instructions&2)===0&&(k.instructions|=2,L(f,pl)),L(f,JQ)),k=tA(D.toString(16)),L(f,Q.boundaryPrefix),L(f,k),L(f,zg),L(f,Q.segmentPrefix),L(f,k),W?(L(f,Yf),Un(f,m)):L(f,Lg),m=$(f,jQ),er(f,Q)&&m}function Rs(Q,f,m,k){if(k.status===2)return!0;var D=m.contentState,W=k.id;if(W===-1){if((k.id=m.rootSegmentID)===-1)throw Error(t(392));return XB(Q,f,k,D)}return W===m.rootSegmentID?XB(Q,f,k,D):(XB(Q,f,k,D),m=Q.resumableState,Q=Q.renderState,L(f,Q.startInlineScript),L(f,ot),(m.instructions&1)===0?(m.instructions|=1,L(f,OQ)):L(f,pf),L(f,Q.segmentPrefix),W=tA(W.toString(16)),L(f,W),L(f,mf),L(f,Q.placeholderPrefix),L(f,W),f=$(f,Ef),f)}var ds=!1;function gc(Q,f){EA=new Uint8Array(2048),UA=0;try{if(!(0<Q.pendingRootTasks)){var m,k=Q.completedRootSegment;if(k!==null){if(k.status===5)return;var D=Q.completedPreambleSegments;if(D===null)return;Fa=Q.byteSize;var W=Q.resumableState,O=Q.renderState,rA=O.preamble,AA=rA.htmlChunks,cA=rA.headChunks,hA;if(AA){for(hA=0;hA<AA.length;hA++)L(f,AA[hA]);if(cA)for(hA=0;hA<cA.length;hA++)L(f,cA[hA]);else L(f,qt("head")),L(f,ot)}else if(cA)for(hA=0;hA<cA.length;hA++)L(f,cA[hA]);var vA=O.charsetChunks;for(hA=0;hA<vA.length;hA++)L(f,vA[hA]);vA.length=0,O.preconnects.forEach(Yt,f),O.preconnects.clear();var SA=O.viewportChunks;for(hA=0;hA<SA.length;hA++)L(f,SA[hA]);SA.length=0,O.fontPreloads.forEach(Yt,f),O.fontPreloads.clear(),O.highImagePreloads.forEach(Yt,f),O.highImagePreloads.clear(),jA=O,O.styles.forEach(qg,f),jA=null;var WA=O.importMapChunks;for(hA=0;hA<WA.length;hA++)L(f,WA[hA]);WA.length=0,O.bootstrapScripts.forEach(Yt,f),O.scripts.forEach(Yt,f),O.scripts.clear(),O.bulkPreloads.forEach(Yt,f),O.bulkPreloads.clear(),AA||cA||(W.instructions|=32);var de=O.hoistableChunks;for(hA=0;hA<de.length;hA++)L(f,de[hA]);for(W=de.length=0;W<D.length;W++){var Ye=D[W];for(O=0;O<Ye.length;O++)lc(Q,f,Ye[O],null)}var pe=Q.renderState.preamble,ee=pe.headChunks;(pe.htmlChunks||ee)&&L(f,ni("head"));var ue=pe.bodyChunks;if(ue)for(D=0;D<ue.length;D++)L(f,ue[D]);lc(Q,f,k,null),Q.completedRootSegment=null;var Re=Q.renderState;if(Q.allPendingTasks!==0||Q.clientRenderedBoundaries.length!==0||Q.completedBoundaries.length!==0||Q.trackedPostpones!==null&&(Q.trackedPostpones.rootNodes.length!==0||Q.trackedPostpones.rootSlots!==null)){var iB=Q.resumableState;if((iB.instructions&64)===0){if(iB.instructions|=64,L(f,Re.startInlineScript),(iB.instructions&32)===0){iB.instructions|=32;var rB="_"+iB.idPrefix+"R_";L(f,El),L(f,tA(YA(rB))),L(f,Pt)}L(f,ot),L(f,Bi),$(f,LA)}}er(f,Re)}var Qe=Q.renderState;k=0;var Dn=Qe.viewportChunks;for(k=0;k<Dn.length;k++)L(f,Dn[k]);Dn.length=0,Qe.preconnects.forEach(Yt,f),Qe.preconnects.clear(),Qe.fontPreloads.forEach(Yt,f),Qe.fontPreloads.clear(),Qe.highImagePreloads.forEach(Yt,f),Qe.highImagePreloads.clear(),Qe.styles.forEach($g,f),Qe.scripts.forEach(Yt,f),Qe.scripts.clear(),Qe.bulkPreloads.forEach(Yt,f),Qe.bulkPreloads.clear();var Dt=Qe.hoistableChunks;for(k=0;k<Dt.length;k++)L(f,Dt[k]);Dt.length=0;var En=Q.clientRenderedBoundaries;for(m=0;m<En.length;m++){var fi=En[m];Qe=f;var Ee=Q.resumableState,Ss=Q.renderState,Pa=fi.rootSegmentID,Ln=fi.errorDigest;L(Qe,Ss.startInlineScript),L(Qe,ot),(Ee.instructions&4)===0?(Ee.instructions|=4,L(Qe,aG)):L(Qe,Xg),L(Qe,Ss.boundaryPrefix),L(Qe,tA(Pa.toString(16))),L(Qe,Og),Ln&&(L(Qe,co),L(Qe,tA(_Q(Ln||""))));var ha=$(Qe,Zf);if(!ha){Q.destination=null,m++,En.splice(0,m);return}}En.splice(0,m);var Ml=Q.completedBoundaries;for(m=0;m<Ml.length;m++)if(!ud(Q,f,Ml[m])){Q.destination=null,m++,Ml.splice(0,m);return}Ml.splice(0,m),iA(f),EA=new Uint8Array(2048),UA=0,ds=!0;var uc=Q.partialBoundaries;for(m=0;m<uc.length;m++){var bi=uc[m];A:{En=Q,fi=f,Fa=bi.byteSize;var Gc=bi.completedSegments;for(ha=0;ha<Gc.length;ha++)if(!Rs(En,fi,bi,Gc[ha])){ha++,Gc.splice(0,ha);var cB=!1;break A}Gc.splice(0,ha);var ht=bi.row;ht!==null&&ht.together&&bi.pendingTasks===1&&(ht.pendingTasks===1?oG(En,ht,ht.hoistables):ht.pendingTasks--),cB=Ms(fi,bi.contentState,En.renderState)}if(!cB){Q.destination=null,m++,uc.splice(0,m);return}}uc.splice(0,m),ds=!1;var Ci=Q.completedBoundaries;for(m=0;m<Ci.length;m++)if(!ud(Q,f,Ci[m])){Q.destination=null,m++,Ci.splice(0,m);return}Ci.splice(0,m)}}finally{ds=!1,Q.allPendingTasks===0&&Q.clientRenderedBoundaries.length===0&&Q.completedBoundaries.length===0?(Q.flushScheduled=!1,m=Q.resumableState,m.hasBody&&L(f,ni("body")),m.hasHtml&&L(f,ni("html")),iA(f),Q.status=14,f.close(),Q.destination=null):iA(f)}}function ta(Q){Q.flushScheduled=Q.destination!==null,mA(function(){return dd(Q)}),BA(function(){Q.status===10&&(Q.status=11),Q.trackedPostpones===null&&lr(Q,Q.pendingRootTasks===0)})}function IB(Q){Q.flushScheduled===!1&&Q.pingedTasks.length===0&&Q.destination!==null&&(Q.flushScheduled=!0,BA(function(){var f=Q.destination;f?gc(Q,f):Q.flushScheduled=!1}))}function Ma(Q,f){if(Q.status===13)Q.status=14,RA(f,Q.fatalError);else if(Q.status!==14&&Q.destination===null){Q.destination=f;try{gc(Q,f)}catch(m){mn(Q,m,{}),rc(Q,m)}}}function na(Q,f){(Q.status===11||Q.status===10)&&(Q.status=12);try{var m=Q.abortableTasks;if(0<m.size){var k=f===void 0?Error(t(432)):typeof f=="object"&&f!==null&&typeof f.then=="function"?Error(t(530)):f;Q.fatalError=k,m.forEach(function(D){return hi(D,Q,k)}),m.clear()}Q.destination!==null&&gc(Q,Q.destination)}catch(D){mn(Q,D,{}),rc(Q,D)}}function vo(Q,f,m){if(f===null)m.rootNodes.push(Q);else{var k=m.workingMap,D=k.get(f);D===void 0&&(D=[f[1],f[2],[],null],k.set(f,D),vo(D,f[0],m)),D[2].push(Q)}}function dc(Q){var f=Q.trackedPostpones;if(f===null||f.rootNodes.length===0&&f.rootSlots===null)return Q.trackedPostpones=null;if(Q.completedRootSegment===null||Q.completedRootSegment.status!==5&&Q.completedPreambleSegments!==null){var m=Q.nextSegmentId,k=f.rootSlots,D=Q.resumableState;D.bootstrapScriptContent=void 0,D.bootstrapScripts=void 0,D.bootstrapModules=void 0}else{m=0,k=-1,D=Q.resumableState;var W=Q.renderState;D.nextFormID=0,D.hasBody=!1,D.hasHtml=!1,D.unknownResources={font:W.resets.font},D.dnsResources=W.resets.dns,D.connectResources=W.resets.connect,D.imageResources=W.resets.image,D.styleResources=W.resets.style,D.scriptResources={},D.moduleUnknownResources={},D.moduleScriptResources={},D.instructions=0}return{nextSegmentId:m,rootFormatContext:Q.rootFormatContext,progressiveChunkSize:Q.progressiveChunkSize,resumableState:Q.resumableState,replayNodes:f.rootNodes,replaySlots:k}}function Vs(){var Q=e.version;if(Q!=="19.2.4")throw Error(t(527,Q,"19.2.4"))}return Vs(),Vs(),Ld.prerender=function(Q,f){return new Promise(function(m,k){var D=f?f.onHeaders:void 0,W;D&&(W=function(hA){D(new Headers(hA))});var O=$u(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),rA=di(Q,O,xg(O,void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,W,f?f.maxHeadersLength:void 0),Kc(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,function(){var hA=new ReadableStream({type:"bytes",pull:function(vA){Ma(rA,vA)},cancel:function(vA){rA.destination=null,na(rA,vA)}},{highWaterMark:0});hA={postponed:dc(rA),prelude:hA},m(hA)},void 0,void 0,k,f?f.onPostpone:void 0);if(f&&f.signal){var AA=f.signal;if(AA.aborted)na(rA,AA.reason);else{var cA=function(){na(rA,AA.reason),AA.removeEventListener("abort",cA)};AA.addEventListener("abort",cA)}}ta(rA)})},Ld.renderToReadableStream=function(Q,f){return new Promise(function(m,k){var D,W,O=new Promise(function(WA,de){W=WA,D=de}),rA=f?f.onHeaders:void 0,AA;rA&&(AA=function(WA){rA(new Headers(WA))});var cA=$u(f?f.identifierPrefix:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.bootstrapScriptContent:void 0,f?f.bootstrapScripts:void 0,f?f.bootstrapModules:void 0),hA=cr(Q,cA,xg(cA,f?f.nonce:void 0,f?f.unstable_externalRuntimeSrc:void 0,f?f.importMap:void 0,AA,f?f.maxHeadersLength:void 0),Kc(f?f.namespaceURI:void 0),f?f.progressiveChunkSize:void 0,f?f.onError:void 0,W,function(){var WA=new ReadableStream({type:"bytes",pull:function(de){Ma(hA,de)},cancel:function(de){hA.destination=null,na(hA,de)}},{highWaterMark:0});WA.allReady=O,m(WA)},function(WA){O.catch(function(){}),k(WA)},D,f?f.onPostpone:void 0,f?f.formState:void 0);if(f&&f.signal){var vA=f.signal;if(vA.aborted)na(hA,vA.reason);else{var SA=function(){na(hA,vA.reason),vA.removeEventListener("abort",SA)};vA.addEventListener("abort",SA)}}ta(hA)})},Ld.resume=function(Q,f,m){return new Promise(function(k,D){var W,O,rA=new Promise(function(vA,SA){O=vA,W=SA}),AA=cs(Q,f,xg(f.resumableState,m?m.nonce:void 0,void 0,void 0,void 0,void 0),m?m.onError:void 0,O,function(){var vA=new ReadableStream({type:"bytes",pull:function(SA){Ma(AA,SA)},cancel:function(SA){AA.destination=null,na(AA,SA)}},{highWaterMark:0});vA.allReady=rA,k(vA)},function(vA){rA.catch(function(){}),D(vA)},W,m?m.onPostpone:void 0);if(m&&m.signal){var cA=m.signal;if(cA.aborted)na(AA,cA.reason);else{var hA=function(){na(AA,cA.reason),cA.removeEventListener("abort",hA)};cA.addEventListener("abort",hA)}}ta(AA)})},Ld.resumeAndPrerender=function(Q,f,m){return new Promise(function(k,D){var W=ui(Q,f,xg(f.resumableState,void 0,void 0,void 0,void 0,void 0),m?m.onError:void 0,function(){var AA=new ReadableStream({type:"bytes",pull:function(cA){Ma(W,cA)},cancel:function(cA){W.destination=null,na(W,cA)}},{highWaterMark:0});AA={postponed:dc(W),prelude:AA},k(AA)},void 0,void 0,D,m?m.onPostpone:void 0);if(m&&m.signal){var O=m.signal;if(O.aborted)na(W,O.reason);else{var rA=function(){na(W,O.reason),O.removeEventListener("abort",rA)};O.addEventListener("abort",rA)}}ta(W)})},Ld.version="19.2.4",Ld}var CY;function kS(){if(CY)return zd;CY=1;var e,A;return e=YS(),A=ZS(),zd.version=e.version,zd.renderToString=e.renderToString,zd.renderToStaticMarkup=e.renderToStaticMarkup,zd.renderToReadableStream=A.renderToReadableStream,zd.resume=A.resume,zd}var US=kS(),NH={exports:{}},zH,vY;function DS(){if(vY)return zH;vY=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zH=e,zH}var LH,IY;function FS(){if(IY)return LH;IY=1;var e=DS();function A(){}function t(){}return t.resetWarningCache=A,LH=function(){function n(i,c,o,l,d,u){if(u!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}n.isRequired=n;function B(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:B,element:n,elementType:n,instanceOf:B,node:n,objectOf:B,oneOf:B,oneOfType:B,shape:B,exact:B,checkPropTypes:t,resetWarningCache:A};return a.PropTypes=a,a},LH}var HY;function MS(){return HY||(HY=1,NH.exports=FS()()),NH.exports}var PS=MS();const qA=_l(PS);var xS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pY(e,A){return e(A={exports:{}},A.exports),A.exports}var TS=pY((function(e){(function(A){var t=function(y,Z,T){if(!o(Z)||d(Z)||u(Z)||w(Z)||c(Z))return Z;var R,V=0,F=0;if(l(Z))for(R=[],F=Z.length;V<F;V++)R.push(t(y,Z[V],T));else for(var S in R={},Z)Object.prototype.hasOwnProperty.call(Z,S)&&(R[y(S,T)]=t(y,Z[S],T));return R},n=function(y){return C(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,(function(Z,T){return T?T.toUpperCase():""}))).substr(0,1).toLowerCase()+y.substr(1)},B=function(y){var Z=n(y);return Z.substr(0,1).toUpperCase()+Z.substr(1)},a=function(y,Z){return(function(T,R){var V=(R=R||{}).separator||"_",F=R.split||/(?=[A-Z])/;return T.split(F).join(V)})(y,Z).toLowerCase()},i=Object.prototype.toString,c=function(y){return typeof y=="function"},o=function(y){return y===Object(y)},l=function(y){return i.call(y)=="[object Array]"},d=function(y){return i.call(y)=="[object Date]"},u=function(y){return i.call(y)=="[object RegExp]"},w=function(y){return i.call(y)=="[object Boolean]"},C=function(y){return(y-=0)==y},H=function(y,Z){var T=Z&&"process"in Z?Z.process:Z;return typeof T!="function"?y:function(R,V){return T(R,y,V)}},Y={camelize:n,decamelize:a,pascalize:B,depascalize:a,camelizeKeys:function(y,Z){return t(H(n,Z),y)},decamelizeKeys:function(y,Z){return t(H(a,Z),y,Z)},pascalizeKeys:function(y,Z){return t(H(B,Z),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=Y:A.humps=Y})(xS)})).decamelize,RS=function(e){if(Array.isArray(e))return e},VS=function(e,A){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],n=!0,B=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(t.push(i.value),!A||t.length!==A);n=!0);}catch(o){B=!0,a=o}finally{try{n||c.return==null||c.return()}finally{if(B)throw a}}return t}},mY=function(e,A){(A==null||A>e.length)&&(A=e.length);for(var t=0,n=new Array(A);t<A;t++)n[t]=e[t];return n},SS=function(e,A){if(e){if(typeof e=="string")return mY(e,A);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mY(e,A):void 0}},WS=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
54
54
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},NS=function(e,A){return RS(e)||VS(e,A)||SS(e,A)||WS()},EY=pY((function(e){function A(){return e.exports=A=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var B=arguments[n];for(var a in B)Object.prototype.hasOwnProperty.call(B,a)&&(t[a]=B[a])}return t},A.apply(this,arguments)}e.exports=A})),zS=function(e,A){if(e==null)return{};var t,n,B={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],A.indexOf(t)>=0||(B[t]=e[t]);return B},yY=function(e,A){if(e==null)return{};var t,n,B=zS(e,A);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],A.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(B[t]=e[t])}return B},LS=x.createContext(null);function YY(e){var A=e.children,t=A===void 0?"":A,n=yY(e,["children"]);return typeof t!="string"&&(t=US.renderToString(t)),j.createElement("template",EY({},n,{dangerouslySetInnerHTML:{__html:t}}))}function ZY(e){var A=e.root,t=e.children;return WH.createPortal(t===void 0?null:t,A)}function XS(e){var A=x.forwardRef((function(t,n){var B,a,i=t.mode,c=i===void 0?"open":i,o=t.delegatesFocus,l=o!==void 0&&o,d=t.styleSheets,u=d===void 0?[]:d,w=t.ssr,C=w!==void 0&&w,H=t.children,Y=yY(t,["mode","delegatesFocus","styleSheets","ssr","children"]),y=(a=x.useRef((B=n)&&B.current),x.useEffect((function(){B&&(B.current=a.current)}),[B]),a),Z=x.useState(null),T=NS(Z,2),R=T[0],V=T[1],F="node_".concat(c).concat(l);return x.useLayoutEffect((function(){if(y.current)try{if(typeof n=="function"&&n(y.current),C){var S=y.current.shadowRoot;return void V(S)}var K=y.current.attachShadow({mode:c,delegatesFocus:l});u.length>0&&(K.adoptedStyleSheets=u),V(K)}catch(J){(function(eA){var BA=eA.error,oA=eA.styleSheets,gA=eA.root;if(BA.name==="NotSupportedError")oA.length>0&&(gA.adoptedStyleSheets=oA);else throw BA})({error:J,styleSheets:u,root:R})}}),[n,y,u]),j.createElement(j.Fragment,null,j.createElement(e.tag,EY({key:F,ref:y},Y),(R||C)&&j.createElement(LS.Provider,{value:R},C?j.createElement(YY,{shadowroot:c,shadowrootmode:c},e.render({root:R,ssr:C,children:H})):j.createElement(ZY,{root:R},e.render({root:R,ssr:C,children:H})))))}));return A.propTypes={mode:qA.oneOf(["open","closed"]),delegatesFocus:qA.bool,styleSheets:qA.arrayOf(qA.instanceOf(globalThis.CSSStyleSheet)),ssr:qA.bool,children:qA.node},A}YY.propTypes={children:qA.oneOfType([qA.string,qA.node])},ZY.propTypes={root:qA.object.isRequired,children:qA.node};var XH=new Map;function OS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,B){var a=TS(B,{separator:"-"}),i="".concat(A,"-").concat(a);return XH.has(i)||XH.set(i,XS({tag:a,render:t})),XH.get(i)}})}var JS=OS();function kY(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function KS(e={}){let{initialEntries:A=["/"],initialIndex:t,v5Compat:n=!1}=e,B;B=A.map((C,H)=>d(C,typeof C=="string"?null:C.state,H===0?"default":void 0,typeof C=="string"?void 0:C.unstable_mask));let a=o(t??B.length-1),i="POP",c=null;function o(C){return Math.min(Math.max(C,0),B.length-1)}function l(){return B[a]}function d(C,H=null,Y,y){let Z=_S(B?l().pathname:"/",C,H,Y,y);return Gr(Z.pathname.charAt(0)==="/",`relative pathnames are not supported in memory history: ${JSON.stringify(C)}`),Z}function u(C){return typeof C=="string"?C:hb(C)}return{get index(){return a},get action(){return i},get location(){return l()},createHref:u,createURL(C){return new URL(u(C),"http://localhost")},encodeLocation(C){let H=typeof C=="string"?Xd(C):C;return{pathname:H.pathname||"",search:H.search||"",hash:H.hash||""}},push(C,H){i="PUSH";let Y=kY(C)?C:d(C,H);a+=1,B.splice(a,B.length,Y),n&&c&&c({action:i,location:Y,delta:1})},replace(C,H){i="REPLACE";let Y=kY(C)?C:d(C,H);B[a]=Y,n&&c&&c({action:i,location:Y,delta:0})},go(C){i="POP";let H=o(a+C),Y=B[H];a=H,c&&c({action:i,location:Y,delta:C})},listen(C){return c=C,()=>{c=null}}}}function Fn(e,A){if(e===!1||e===null||typeof e>"u")throw new Error(A)}function Gr(e,A){if(!e){typeof console<"u"&&console.warn(A);try{throw new Error(A)}catch{}}}function jS(){return Math.random().toString(36).substring(2,10)}function _S(e,A,t=null,n,B){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof A=="string"?Xd(A):A,state:t,key:A&&A.key||n||jS(),unstable_mask:B}}function hb({pathname:e="/",search:A="",hash:t=""}){return A&&A!=="?"&&(e+=A.charAt(0)==="?"?A:"?"+A),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function Xd(e){let A={};if(e){let t=e.indexOf("#");t>=0&&(A.hash=e.substring(t),e=e.substring(0,t));let n=e.indexOf("?");n>=0&&(A.search=e.substring(n),e=e.substring(0,n)),e&&(A.pathname=e)}return A}function UY(e,A,t="/"){return qS(e,A,t,!1)}function qS(e,A,t,n){let B=typeof A=="string"?Xd(A):A,a=Uo(B.pathname||"/",t);if(a==null)return null;let i=DY(e);$S(i);let c=null;for(let o=0;c==null&&o<i.length;++o){let l=o8(a);c=r8(i[o],l,n)}return c}function DY(e,A=[],t=[],n="",B=!1){let a=(i,c,o=B,l)=>{let d={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:c,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(n)&&o)return;Fn(d.relativePath.startsWith(n),`Absolute route path "${d.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(n.length)}let u=Cc([n,d.relativePath]),w=t.concat(d);i.children&&i.children.length>0&&(Fn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),DY(i.children,A,w,u,o)),!(i.path==null&&!i.index)&&A.push({path:u,score:s8(u,i.index),routesMeta:w})};return e.forEach((i,c)=>{if(i.path===""||!i.path?.includes("?"))a(i,c);else for(let o of FY(i.path))a(i,c,!0,o)}),A}function FY(e){let A=e.split("/");if(A.length===0)return[];let[t,...n]=A,B=t.endsWith("?"),a=t.replace(/\?$/,"");if(n.length===0)return B?[a,""]:[a];let i=FY(n.join("/")),c=[];return c.push(...i.map(o=>o===""?a:[a,o].join("/"))),B&&c.push(...i),c.map(o=>e.startsWith("/")&&o===""?"/":o)}function $S(e){e.sort((A,t)=>A.score!==t.score?t.score-A.score:i8(A.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var A8=/^:[\w-]+$/,e8=3,t8=2,n8=1,B8=10,a8=-2,MY=e=>e==="*";function s8(e,A){let t=e.split("/"),n=t.length;return t.some(MY)&&(n+=a8),A&&(n+=t8),t.filter(B=>!MY(B)).reduce((B,a)=>B+(A8.test(a)?e8:a===""?n8:B8),n)}function i8(e,A){return e.length===A.length&&e.slice(0,-1).every((n,B)=>n===A[B])?e[e.length-1]-A[A.length-1]:0}function r8(e,A,t=!1){let{routesMeta:n}=e,B={},a="/",i=[];for(let c=0;c<n.length;++c){let o=n[c],l=c===n.length-1,d=a==="/"?A:A.slice(a.length)||"/",u=fb({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},d),w=o.route;if(!u&&l&&t&&!n[n.length-1].route.index&&(u=fb({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},d)),!u)return null;Object.assign(B,u.params),i.push({params:B,pathname:Cc([a,u.pathname]),pathnameBase:u8(Cc([a,u.pathnameBase])),route:w}),u.pathnameBase!=="/"&&(a=Cc([a,u.pathnameBase]))}return i}function fb(e,A){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,n]=c8(e.path,e.caseSensitive,e.end),B=A.match(t);if(!B)return null;let a=B[0],i=a.replace(/(.)\/+$/,"$1"),c=B.slice(1);return{params:n.reduce((l,{paramName:d,isOptional:u},w)=>{if(d==="*"){let H=c[w]||"";i=a.slice(0,a.length-H.length).replace(/(.)\/+$/,"$1")}const C=c[w];return u&&!C?l[d]=void 0:l[d]=(C||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:i,pattern:e}}function c8(e,A=!1,t=!0){Gr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],B="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,o,l,d)=>{if(n.push({paramName:c,isOptional:o!=null}),o){let u=d.charAt(l+i.length);return u&&u!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),B+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?B+="\\/*$":e!==""&&e!=="/"&&(B+="(?:(?=\\/|$))"),[new RegExp(B,A?void 0:"i"),n]}function o8(e){try{return e.split("/").map(A=>decodeURIComponent(A).replace(/\//g,"%2F")).join("/")}catch(A){return Gr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${A}).`),e}}function Uo(e,A){if(A==="/")return e;if(!e.toLowerCase().startsWith(A.toLowerCase()))return null;let t=A.endsWith("/")?A.length-1:A.length,n=e.charAt(t);return n&&n!=="/"?null:e.slice(t)||"/"}var l8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function g8(e,A="/"){let{pathname:t,search:n="",hash:B=""}=typeof e=="string"?Xd(e):e,a;return t?(t=t.replace(/\/\/+/g,"/"),t.startsWith("/")?a=PY(t.substring(1),"/"):a=PY(t,A)):a=A,{pathname:a,search:G8(n),hash:Q8(B)}}function PY(e,A){let t=A.replace(/\/+$/,"").split("/");return e.split("/").forEach(B=>{B===".."?t.length>1&&t.pop():B!=="."&&t.push(B)}),t.length>1?t.join("/"):"/"}function OH(e,A,t,n){return`Cannot include a '${e}' character in a manually specified \`to.${A}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function d8(e){return e.filter((A,t)=>t===0||A.route.path&&A.route.path.length>0)}function xY(e){let A=d8(e);return A.map((t,n)=>n===A.length-1?t.pathname:t.pathnameBase)}function JH(e,A,t,n=!1){let B;typeof e=="string"?B=Xd(e):(B={...e},Fn(!B.pathname||!B.pathname.includes("?"),OH("?","pathname","search",B)),Fn(!B.pathname||!B.pathname.includes("#"),OH("#","pathname","hash",B)),Fn(!B.search||!B.search.includes("#"),OH("#","search","hash",B)));let a=e===""||B.pathname==="",i=a?"/":B.pathname,c;if(i==null)c=t;else{let u=A.length-1;if(!n&&i.startsWith("..")){let w=i.split("/");for(;w[0]==="..";)w.shift(),u-=1;B.pathname=w.join("/")}c=u>=0?A[u]:"/"}let o=g8(B,c),l=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&t.endsWith("/");return!o.pathname.endsWith("/")&&(l||d)&&(o.pathname+="/"),o}var Cc=e=>e.join("/").replace(/\/\/+/g,"/"),u8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Q8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,w8=class{constructor(e,A,t,n=!1){this.status=e,this.statusText=A||"",this.internal=n,t instanceof Error?(this.data=t.toString(),this.error=t):this.data=t}};function h8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function f8(e){return e.map(A=>A.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var TY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function RY(e,A){let t=e;if(typeof t!="string"||!l8.test(t))return{absoluteURL:void 0,isExternal:!1,to:t};let n=t,B=!1;if(TY)try{let a=new URL(window.location.href),i=t.startsWith("//")?new URL(a.protocol+t):new URL(t),c=Uo(i.pathname,A);i.origin===a.origin&&c!=null?t=c+i.search+i.hash:B=!0}catch{Gr(!1,`<Link to="${t}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:B,to:t}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var VY=["POST","PUT","PATCH","DELETE"];new Set(VY);var b8=["GET",...VY];new Set(b8);var MG=x.createContext(null);MG.displayName="DataRouter";var bb=x.createContext(null);bb.displayName="DataRouterState";var SY=x.createContext(!1);function C8(){return x.useContext(SY)}var WY=x.createContext({isTransitioning:!1});WY.displayName="ViewTransition";var v8=x.createContext(new Map);v8.displayName="Fetchers";var I8=x.createContext(null);I8.displayName="Await";var yi=x.createContext(null);yi.displayName="Navigation";var pw=x.createContext(null);pw.displayName="Location";var Do=x.createContext({outlet:null,matches:[],isDataRoute:!1});Do.displayName="Route";var KH=x.createContext(null);KH.displayName="RouteError";var NY="REACT_ROUTER_ERROR",H8="REDIRECT",p8="ROUTE_ERROR_RESPONSE";function m8(e){if(e.startsWith(`${NY}:${H8}:{`))try{let A=JSON.parse(e.slice(28));if(typeof A=="object"&&A&&typeof A.status=="number"&&typeof A.statusText=="string"&&typeof A.location=="string"&&typeof A.reloadDocument=="boolean"&&typeof A.replace=="boolean")return A}catch{}}function E8(e){if(e.startsWith(`${NY}:${p8}:{`))try{let A=JSON.parse(e.slice(40));if(typeof A=="object"&&A&&typeof A.status=="number"&&typeof A.statusText=="string")return new w8(A.status,A.statusText,A.data)}catch{}}function y8(e,{relative:A}={}){Fn(mw(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=x.useContext(yi),{hash:B,pathname:a,search:i}=Ew(e,{relative:A}),c=a;return t!=="/"&&(c=a==="/"?t:Cc([t,a])),n.createHref({pathname:c,search:i,hash:B})}function mw(){return x.useContext(pw)!=null}function vc(){return Fn(mw(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(pw).location}var zY="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function LY(e){x.useContext(yi).static||x.useLayoutEffect(e)}function Gs(){let{isDataRoute:e}=x.useContext(Do);return e?S8():Y8()}function Y8(){Fn(mw(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(MG),{basename:A,navigator:t}=x.useContext(yi),{matches:n}=x.useContext(Do),{pathname:B}=vc(),a=JSON.stringify(xY(n)),i=x.useRef(!1);return LY(()=>{i.current=!0}),x.useCallback((o,l={})=>{if(Gr(i.current,zY),!i.current)return;if(typeof o=="number"){t.go(o);return}let d=JH(o,JSON.parse(a),B,l.relative==="path");e==null&&A!=="/"&&(d.pathname=d.pathname==="/"?A:Cc([A,d.pathname])),(l.replace?t.replace:t.push)(d,l.state,l)},[A,t,a,B,e])}x.createContext(null);function Ew(e,{relative:A}={}){let{matches:t}=x.useContext(Do),{pathname:n}=vc(),B=JSON.stringify(xY(t));return x.useMemo(()=>JH(e,JSON.parse(B),n,A==="path"),[e,B,n,A])}function Z8(e,A){return XY(e,A)}function XY(e,A,t){Fn(mw(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=x.useContext(yi),{matches:B}=x.useContext(Do),a=B[B.length-1],i=a?a.params:{},c=a?a.pathname:"/",o=a?a.pathnameBase:"/",l=a&&a.route;{let y=l&&l.path||"";KY(c,!l||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
55
55
 
56
- Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let d=vc(),u;if(A){let y=typeof A=="string"?Xd(A):A;Fn(o==="/"||y.pathname?.startsWith(o),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${o}" but pathname "${y.pathname}" was given in the \`location\` prop.`),u=y}else u=d;let w=u.pathname||"/",C=w;if(o!=="/"){let y=o.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let H=UY(e,{pathname:C});Gr(l||H!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),Gr(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Y=M8(H&&H.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:Cc([o,n.encodeLocation?n.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?o:Cc([o,n.encodeLocation?n.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),B,t);return A&&Y?x.createElement(pw.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},Y):Y}function k8(){let e=V8(),A=h8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",B={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:a},"ErrorBoundary")," or"," ",x.createElement("code",{style:a},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},A),t?x.createElement("pre",{style:B},t):null,i)}var U8=x.createElement(k8,null),OY=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,A){return A.location!==e.location||A.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:A.error,location:A.location,revalidation:e.revalidation||A.revalidation}}componentDidCatch(e,A){this.props.onError?this.props.onError(e,A):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const t=E8(e.digest);t&&(e=t)}let A=e!==void 0?x.createElement(Do.Provider,{value:this.props.routeContext},x.createElement(KH.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(D8,{error:e},A):A}};OY.contextType=SY;var jH=new WeakMap;function D8({children:e,error:A}){let{basename:t}=x.useContext(yi);if(typeof A=="object"&&A&&"digest"in A&&typeof A.digest=="string"){let n=m8(A.digest);if(n){let B=jH.get(A);if(B)throw B;let a=RY(n.location,t);if(TY&&!jH.get(A))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw jH.set(A,i),i}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function F8({routeContext:e,match:A,children:t}){let n=x.useContext(MG);return n&&n.static&&n.staticContext&&(A.route.errorElement||A.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=A.route.id),x.createElement(Do.Provider,{value:e},t)}function M8(e,A=[],t){let n=t?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(A.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let B=e,a=n?.errors;if(a!=null){let d=B.findIndex(u=>u.route.id&&a?.[u.route.id]!==void 0);Fn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),B=B.slice(0,Math.min(B.length,d+1))}let i=!1,c=-1;if(t&&n){i=n.renderFallback;for(let d=0;d<B.length;d++){let u=B[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:w,errors:C}=n,H=u.route.loader&&!w.hasOwnProperty(u.route.id)&&(!C||C[u.route.id]===void 0);if(u.route.lazy||H){t.isStatic&&(i=!0),c>=0?B=B.slice(0,c+1):B=[B[0]];break}}}}let o=t?.onError,l=n&&o?(d,u)=>{o(d,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:f8(n.matches),errorInfo:u})}:void 0;return B.reduceRight((d,u,w)=>{let C,H=!1,Y=null,y=null;n&&(C=a&&u.route.id?a[u.route.id]:void 0,Y=u.route.errorElement||U8,i&&(c<0&&w===0?(KY("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,y=null):c===w&&(H=!0,y=u.route.hydrateFallbackElement||null)));let Z=A.concat(B.slice(0,w+1)),T=()=>{let R;return C?R=Y:H?R=y:u.route.Component?R=x.createElement(u.route.Component,null):u.route.element?R=u.route.element:R=d,x.createElement(F8,{match:u,routeContext:{outlet:d,matches:Z,isDataRoute:n!=null},children:R})};return n&&(u.route.ErrorBoundary||u.route.errorElement||w===0)?x.createElement(OY,{location:n.location,revalidation:n.revalidation,component:Y,error:C,children:T(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:l}):T()},null)}function _H(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function P8(e){let A=x.useContext(MG);return Fn(A,_H(e)),A}function x8(e){let A=x.useContext(bb);return Fn(A,_H(e)),A}function T8(e){let A=x.useContext(Do);return Fn(A,_H(e)),A}function qH(e){let A=T8(e),t=A.matches[A.matches.length-1];return Fn(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function R8(){return qH("useRouteId")}function V8(){let e=x.useContext(KH),A=x8("useRouteError"),t=qH("useRouteError");return e!==void 0?e:A.errors?.[t]}function S8(){let{router:e}=P8("useNavigate"),A=qH("useNavigate"),t=x.useRef(!1);return LY(()=>{t.current=!0}),x.useCallback(async(B,a={})=>{Gr(t.current,zY),t.current&&(typeof B=="number"?await e.navigate(B):await e.navigate(B,{fromRouteId:A,...a}))},[e,A])}var JY={};function KY(e,A,t){!A&&!JY[e]&&(JY[e]=!0,Gr(!1,t))}x.memo(W8);function W8({routes:e,future:A,state:t,isStatic:n,onError:B}){return XY(e,void 0,{state:t,isStatic:n,onError:B})}function N8({basename:e,children:A,initialEntries:t,initialIndex:n,unstable_useTransitions:B}){let a=x.useRef();a.current==null&&(a.current=KS({initialEntries:t,initialIndex:n,v5Compat:!0}));let i=a.current,[c,o]=x.useState({action:i.action,location:i.location}),l=x.useCallback(d=>{B===!1?o(d):x.startTransition(()=>o(d))},[B]);return x.useLayoutEffect(()=>i.listen(l),[i,l]),x.createElement(z8,{basename:e,children:A,location:c.location,navigationType:c.action,navigator:i,unstable_useTransitions:B})}function Ic(e){Fn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function z8({basename:e="/",children:A=null,location:t,navigationType:n="POP",navigator:B,static:a=!1,unstable_useTransitions:i}){Fn(!mw(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),o=x.useMemo(()=>({basename:c,navigator:B,static:a,unstable_useTransitions:i,future:{}}),[c,B,a,i]);typeof t=="string"&&(t=Xd(t));let{pathname:l="/",search:d="",hash:u="",state:w=null,key:C="default",unstable_mask:H}=t,Y=x.useMemo(()=>{let y=Uo(l,c);return y==null?null:{location:{pathname:y,search:d,hash:u,state:w,key:C,unstable_mask:H},navigationType:n}},[c,l,d,u,w,C,n,H]);return Gr(Y!=null,`<Router basename="${c}"> is not able to match the URL "${l}${d}${u}" because it does not start with the basename, so the <Router> won't render anything.`),Y==null?null:x.createElement(yi.Provider,{value:o},x.createElement(pw.Provider,{children:A,value:Y}))}function L8({children:e,location:A}){return Z8($H(e),A)}function $H(e,A=[]){let t=[];return x.Children.forEach(e,(n,B)=>{if(!x.isValidElement(n))return;let a=[...A,B];if(n.type===x.Fragment){t.push.apply(t,$H(n.props.children,a));return}Fn(n.type===Ic,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fn(!n.props.index||!n.props.children,"An index route cannot have child routes.");let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=$H(n.props.children,a)),t.push(i)}),t}var Cb="get",vb="application/x-www-form-urlencoded";function Ib(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function X8(e){return Ib(e)&&e.tagName.toLowerCase()==="button"}function O8(e){return Ib(e)&&e.tagName.toLowerCase()==="form"}function J8(e){return Ib(e)&&e.tagName.toLowerCase()==="input"}function K8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function j8(e,A){return e.button===0&&(!A||A==="_self")&&!K8(e)}var Hb=null;function _8(){if(Hb===null)try{new FormData(document.createElement("form"),0),Hb=!1}catch{Hb=!0}return Hb}var q8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function A0(e){return e!=null&&!q8.has(e)?(Gr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vb}"`),null):e}function $8(e,A){let t,n,B,a,i;if(O8(e)){let c=e.getAttribute("action");n=c?Uo(c,A):null,t=e.getAttribute("method")||Cb,B=A0(e.getAttribute("enctype"))||vb,a=new FormData(e)}else if(X8(e)||J8(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||c.getAttribute("action");if(n=o?Uo(o,A):null,t=e.getAttribute("formmethod")||c.getAttribute("method")||Cb,B=A0(e.getAttribute("formenctype"))||A0(c.getAttribute("enctype"))||vb,a=new FormData(c,e),!_8()){let{name:l,type:d,value:u}=e;if(d==="image"){let w=l?`${l}.`:"";a.append(`${w}x`,"0"),a.append(`${w}y`,"0")}else l&&a.append(l,u)}}else{if(Ib(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=Cb,n=null,B=vb,i=e}return a&&B==="text/plain"&&(i=a,a=void 0),{action:n,method:t.toLowerCase(),encType:B,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function e0(e,A){if(e===!1||e===null||typeof e>"u")throw new Error(A)}function jY(e,A,t,n){let B=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t?B.pathname.endsWith("/")?B.pathname=`${B.pathname}_.${n}`:B.pathname=`${B.pathname}.${n}`:B.pathname==="/"?B.pathname=`_root.${n}`:A&&Uo(B.pathname,A)==="/"?B.pathname=`${A.replace(/\/$/,"")}/_root.${n}`:B.pathname=`${B.pathname.replace(/\/$/,"")}.${n}`,B}async function AW(e,A){if(e.id in A)return A[e.id];try{let t=await import(e.module);return A[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eW(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tW(e,A,t){let n=await Promise.all(e.map(async B=>{let a=A.routes[B.route.id];if(a){let i=await AW(a,t);return i.links?i.links():[]}return[]}));return sW(n.flat(1).filter(eW).filter(B=>B.rel==="stylesheet"||B.rel==="preload").map(B=>B.rel==="stylesheet"?{...B,rel:"prefetch",as:"style"}:{...B,rel:"prefetch"}))}function _Y(e,A,t,n,B,a){let i=(o,l)=>t[l]?o.route.id!==t[l].route.id:!0,c=(o,l)=>t[l].pathname!==o.pathname||t[l].route.path?.endsWith("*")&&t[l].params["*"]!==o.params["*"];return a==="assets"?A.filter((o,l)=>i(o,l)||c(o,l)):a==="data"?A.filter((o,l)=>{let d=n.routes[o.route.id];if(!d||!d.hasLoader)return!1;if(i(o,l)||c(o,l))return!0;if(o.route.shouldRevalidate){let u=o.route.shouldRevalidate({currentUrl:new URL(B.pathname+B.search+B.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:o.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function nW(e,A,{includeHydrateFallback:t}={}){return BW(e.map(n=>{let B=A.routes[n.route.id];if(!B)return[];let a=[B.module];return B.clientActionModule&&(a=a.concat(B.clientActionModule)),B.clientLoaderModule&&(a=a.concat(B.clientLoaderModule)),t&&B.hydrateFallbackModule&&(a=a.concat(B.hydrateFallbackModule)),B.imports&&(a=a.concat(B.imports)),a}).flat(1))}function BW(e){return[...new Set(e)]}function aW(e){let A={},t=Object.keys(e).sort();for(let n of t)A[n]=e[n];return A}function sW(e,A){let t=new Set;return new Set(A),e.reduce((n,B)=>{let a=JSON.stringify(aW(B));return t.has(a)||(t.add(a),n.push({key:a,link:B})),n},[])}function t0(){let e=x.useContext(MG);return e0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function iW(){let e=x.useContext(bb);return e0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var n0=x.createContext(void 0);n0.displayName="FrameworkContext";function B0(){let e=x.useContext(n0);return e0(e,"You must render this element inside a <HydratedRouter> element"),e}function rW(e,A){let t=x.useContext(n0),[n,B]=x.useState(!1),[a,i]=x.useState(!1),{onFocus:c,onBlur:o,onMouseEnter:l,onMouseLeave:d,onTouchStart:u}=A,w=x.useRef(null);x.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let Y=Z=>{Z.forEach(T=>{i(T.isIntersecting)})},y=new IntersectionObserver(Y,{threshold:.5});return w.current&&y.observe(w.current),()=>{y.disconnect()}}},[e]),x.useEffect(()=>{if(n){let Y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(Y)}}},[n]);let C=()=>{B(!0)},H=()=>{B(!1),i(!1)};return t?e!=="intent"?[a,w,{}]:[a,w,{onFocus:yw(c,C),onBlur:yw(o,H),onMouseEnter:yw(l,C),onMouseLeave:yw(d,H),onTouchStart:yw(u,C)}]:[!1,w,{}]}function yw(e,A){return t=>{e&&e(t),t.defaultPrevented||A(t)}}function cW({page:e,...A}){let t=C8(),{router:n}=t0(),B=x.useMemo(()=>UY(n.routes,e,n.basename),[n.routes,e,n.basename]);return B?t?x.createElement(lW,{page:e,matches:B,...A}):x.createElement(gW,{page:e,matches:B,...A}):null}function oW(e){let{manifest:A,routeModules:t}=B0(),[n,B]=x.useState([]);return x.useEffect(()=>{let a=!1;return tW(e,A,t).then(i=>{a||B(i)}),()=>{a=!0}},[e,A,t]),n}function lW({page:e,matches:A,...t}){let n=vc(),{future:B}=B0(),{basename:a}=t0(),i=x.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let c=jY(e,a,B.unstable_trailingSlashAwareDataRequests,"rsc"),o=!1,l=[];for(let d of A)typeof d.route.shouldRevalidate=="function"?o=!0:l.push(d.route.id);return o&&l.length>0&&c.searchParams.set("_routes",l.join(",")),[c.pathname+c.search]},[a,B.unstable_trailingSlashAwareDataRequests,e,n,A]);return x.createElement(x.Fragment,null,i.map(c=>x.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...t})))}function gW({page:e,matches:A,...t}){let n=vc(),{future:B,manifest:a,routeModules:i}=B0(),{basename:c}=t0(),{loaderData:o,matches:l}=iW(),d=x.useMemo(()=>_Y(e,A,l,a,n,"data"),[e,A,l,a,n]),u=x.useMemo(()=>_Y(e,A,l,a,n,"assets"),[e,A,l,a,n]),w=x.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let Y=new Set,y=!1;if(A.forEach(T=>{let R=a.routes[T.route.id];!R||!R.hasLoader||(!d.some(V=>V.route.id===T.route.id)&&T.route.id in o&&i[T.route.id]?.shouldRevalidate||R.hasClientLoader?y=!0:Y.add(T.route.id))}),Y.size===0)return[];let Z=jY(e,c,B.unstable_trailingSlashAwareDataRequests,"data");return y&&Y.size>0&&Z.searchParams.set("_routes",A.filter(T=>Y.has(T.route.id)).map(T=>T.route.id).join(",")),[Z.pathname+Z.search]},[c,B.unstable_trailingSlashAwareDataRequests,o,n,a,d,A,e,i]),C=x.useMemo(()=>nW(u,a),[u,a]),H=oW(u);return x.createElement(x.Fragment,null,w.map(Y=>x.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...t})),C.map(Y=>x.createElement("link",{key:Y,rel:"modulepreload",href:Y,...t})),H.map(({key:Y,link:y})=>x.createElement("link",{key:Y,nonce:t.nonce,...y,crossOrigin:y.crossOrigin??t.crossOrigin})))}function dW(...e){return A=>{e.forEach(t=>{typeof t=="function"?t(A):t!=null&&(t.current=A)})}}var uW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{uW&&(window.__reactRouterVersion="7.14.0")}catch{}var qY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pb=x.forwardRef(function({onClick:A,discover:t="render",prefetch:n="none",relative:B,reloadDocument:a,replace:i,unstable_mask:c,state:o,target:l,to:d,preventScrollReset:u,viewTransition:w,unstable_defaultShouldRevalidate:C,...H},Y){let{basename:y,navigator:Z,unstable_useTransitions:T}=x.useContext(yi),R=typeof d=="string"&&qY.test(d),V=RY(d,y);d=V.to;let F=y8(d,{relative:B}),S=vc(),K=null;if(c){let UA=JH(c,[],S.unstable_mask?S.unstable_mask.pathname:"/",!0);y!=="/"&&(UA.pathname=UA.pathname==="/"?y:Cc([y,UA.pathname])),K=Z.createHref(UA)}let[J,eA,BA]=rW(n,H),oA=hW(d,{replace:i,unstable_mask:c,state:o,target:l,preventScrollReset:u,relative:B,viewTransition:w,unstable_defaultShouldRevalidate:C,unstable_useTransitions:T});function gA(UA){A&&A(UA),UA.defaultPrevented||oA(UA)}let mA=!(V.isExternal||a),EA=x.createElement("a",{...H,...BA,href:(mA?K:void 0)||V.absoluteURL||F,onClick:mA?gA:A,ref:dW(Y,eA),target:l,"data-discover":!R&&t==="render"?"true":void 0});return J&&!R?x.createElement(x.Fragment,null,EA,x.createElement(cW,{page:F})):EA});pb.displayName="Link";var GW=x.forwardRef(function({"aria-current":A="page",caseSensitive:t=!1,className:n="",end:B=!1,style:a,to:i,viewTransition:c,children:o,...l},d){let u=Ew(i,{relative:l.relative}),w=vc(),C=x.useContext(bb),{navigator:H,basename:Y}=x.useContext(yi),y=C!=null&&IW(u)&&c===!0,Z=H.encodeLocation?H.encodeLocation(u).pathname:u.pathname,T=w.pathname,R=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;t||(T=T.toLowerCase(),R=R?R.toLowerCase():null,Z=Z.toLowerCase()),R&&Y&&(R=Uo(R,Y)||R);const V=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let F=T===Z||!B&&T.startsWith(Z)&&T.charAt(V)==="/",S=R!=null&&(R===Z||!B&&R.startsWith(Z)&&R.charAt(Z.length)==="/"),K={isActive:F,isPending:S,isTransitioning:y},J=F?A:void 0,eA;typeof n=="function"?eA=n(K):eA=[n,F?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let BA=typeof a=="function"?a(K):a;return x.createElement(pb,{...l,"aria-current":J,className:eA,ref:d,style:BA,to:i,viewTransition:c},typeof o=="function"?o(K):o)});GW.displayName="NavLink";var QW=x.forwardRef(({discover:e="render",fetcherKey:A,navigate:t,reloadDocument:n,replace:B,state:a,method:i=Cb,action:c,onSubmit:o,relative:l,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:w,...C},H)=>{let{unstable_useTransitions:Y}=x.useContext(yi),y=CW(),Z=vW(c,{relative:l}),T=i.toLowerCase()==="get"?"get":"post",R=typeof c=="string"&&qY.test(c),V=F=>{if(o&&o(F),F.defaultPrevented)return;F.preventDefault();let S=F.nativeEvent.submitter,K=S?.getAttribute("formmethod")||i,J=()=>y(S||F.currentTarget,{fetcherKey:A,method:K,navigate:t,replace:B,state:a,relative:l,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:w});Y&&t!==!1?x.startTransition(()=>J()):J()};return x.createElement("form",{ref:H,method:T,action:Z,onSubmit:n?o:V,...C,"data-discover":!R&&e==="render"?"true":void 0})});QW.displayName="Form";function wW(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $Y(e){let A=x.useContext(MG);return Fn(A,wW(e)),A}function hW(e,{target:A,replace:t,unstable_mask:n,state:B,preventScrollReset:a,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:o,unstable_useTransitions:l}={}){let d=Gs(),u=vc(),w=Ew(e,{relative:i});return x.useCallback(C=>{if(j8(C,A)){C.preventDefault();let H=t!==void 0?t:hb(u)===hb(w),Y=()=>d(e,{replace:H,unstable_mask:n,state:B,preventScrollReset:a,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:o});l?x.startTransition(()=>Y()):Y()}},[u,d,w,t,n,B,A,e,a,i,c,o,l])}var fW=0,bW=()=>`__${String(++fW)}__`;function CW(){let{router:e}=$Y("useSubmit"),{basename:A}=x.useContext(yi),t=R8(),n=e.fetch,B=e.navigate;return x.useCallback(async(a,i={})=>{let{action:c,method:o,encType:l,formData:d,body:u}=$8(a,A);if(i.navigate===!1){let w=i.fetcherKey||bW();await n(w,t,i.action||c,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await B(i.action||c,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:t,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,B,A,t])}function vW(e,{relative:A}={}){let{basename:t}=x.useContext(yi),n=x.useContext(Do);Fn(n,"useFormAction must be used inside a RouteContext");let[B]=n.matches.slice(-1),a={...Ew(e||".",{relative:A})},i=vc();if(e==null){a.search=i.search;let c=new URLSearchParams(a.search),o=c.getAll("index");if(o.some(d=>d==="")){c.delete("index"),o.filter(u=>u).forEach(u=>c.append("index",u));let d=c.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&B.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(a.pathname=a.pathname==="/"?t:Cc([t,a.pathname])),hb(a)}function IW(e,{relative:A}={}){let t=x.useContext(WY);Fn(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=$Y("useViewTransitionState"),B=Ew(e,{relative:A});if(!t.isTransitioning)return!1;let a=Uo(t.currentLocation.pathname,n)||t.currentLocation.pathname,i=Uo(t.nextLocation.pathname,n)||t.nextLocation.pathname;return fb(B.pathname,i)!=null||fb(B.pathname,a)!=null}const a0="ela@careshiphealth.com",Od="https://ela.careshiphealth.com",s0="https://api.ela.careshiphealth.com",mb=`${s0}/rt`,i0=420,Yw=530,HW=520,Qr={FACE_LG_ICON:`${Od}/bolt/faceLg.svg`,AI_ASSISTANT_TALK_ICON:`${Od}/bolt/new/ai-assistant-talk-icon.svg`,AI_ASSISTANT_CHAT_ICON:`${Od}/bolt/new/ai-assistant-chat-icon.svg`,AI_ASSISTANT__CALL_ICON:`${Od}/bolt/new/ai-assistant-call-icon.svg`,AI_ASSISTANT_ICON_BW:`${Od}/bolt/new/ai-assistant-icon-bw.svg`,MINIMIZE_ICON:`${Od}/bolt/new/minimize-icon.svg`,MAXIMIZE_ICON:`${Od}/bolt/new/maximize-icon.svg`},r0="Ela",pW=e=>p.jsxs("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M14.788 9.48971C14.5248 9.05746 14.1061 8.74231 13.6179 8.60892C13.1297 8.47552 12.609 8.53399 12.1625 8.77233C10.0479 9.9113 8.85588 12.1545 9.63525 14.3233C10.5054 16.7288 11.8175 18.9504 13.5041 20.8736C15.178 22.7934 17.1908 24.3887 19.4421 25.5799C21.4658 26.6469 23.8375 25.7746 25.2439 23.8137C25.5398 23.4011 25.6681 22.8917 25.603 22.3882C25.538 21.8848 25.2843 21.4247 24.8933 21.1009L23.3591 19.8338C23.0516 19.5788 22.6745 19.4221 22.2768 19.384C21.8791 19.346 21.4792 19.4283 21.1288 19.6203L18.456 21.0859L17.857 20.6704C17.1019 20.1437 16.411 19.5305 15.7985 18.8432C15.1987 18.1437 14.6865 17.3736 14.2732 16.55L13.9463 15.9052L15.7449 13.4461C15.9827 13.1198 16.1177 12.73 16.1327 12.3265C16.1477 11.923 16.042 11.5243 15.829 11.1813L14.788 9.48971ZM11.0452 6.69431C12.0219 6.171 13.1616 6.041 14.231 6.33095C15.3004 6.6209 16.2184 7.30884 16.797 8.2538L17.8352 9.94349C18.2934 10.6853 18.5203 11.5468 18.4868 12.4181C18.4533 13.2893 18.161 14.1309 17.6471 14.8353L16.7193 16.1029C16.9446 16.4768 17.2323 16.8985 17.575 17.2949C17.9164 17.6843 18.2917 18.0262 18.6269 18.299L19.9935 17.5482C20.7578 17.1299 21.63 16.9506 22.4973 17.0335C23.3646 17.1164 24.1871 17.4578 24.8582 18.0133L26.3925 19.2804C27.2451 19.9846 27.7986 20.9863 27.9411 22.0829C28.0836 23.1796 27.8044 24.2894 27.1601 25.1881C25.2861 27.8016 21.707 29.439 18.3439 27.665C15.8368 26.3392 13.5952 24.5633 11.7308 22.4261C9.84914 20.2812 8.38523 17.8032 7.41459 15.1201C6.13111 11.5432 8.22187 8.21369 11.0457 6.69662",fill:e?.color||"black"}),p.jsx("path",{d:"M25.026 11.6502L25.3027 11.0139C25.7888 9.88815 26.6795 8.9853 27.7991 8.48354L28.6541 8.10358C28.7574 8.05583 28.8449 7.97955 28.9061 7.88374C28.9674 7.78793 29 7.67659 29 7.56288C29 7.44918 28.9674 7.33784 28.9061 7.24203C28.8449 7.14622 28.7574 7.06993 28.6541 7.02218L27.8464 6.66247C26.6986 6.14642 25.7927 5.21019 25.3151 4.04664L25.0305 3.36093C24.9887 3.25454 24.9158 3.1632 24.8213 3.09882C24.7267 3.03444 24.615 3 24.5006 3C24.3862 3 24.2745 3.03444 24.18 3.09882C24.0854 3.1632 24.0125 3.25454 23.9707 3.36093L23.6861 4.04777C23.208 5.2111 22.3017 6.14692 21.1537 6.66247L20.3471 7.02106C20.2435 7.06867 20.1557 7.14497 20.0942 7.2409C20.0327 7.33684 20 7.44838 20 7.56232C20 7.67626 20.0327 7.78781 20.0942 7.88374C20.1557 7.97967 20.2435 8.05597 20.3471 8.10358L21.201 8.48466C22.3208 8.98593 23.2119 9.88837 23.6985 11.0139L23.9752 11.6502C24.0185 11.7538 24.0914 11.8423 24.1849 11.9045C24.2784 11.9668 24.3883 12 24.5006 12C24.613 12 24.7228 11.9668 24.8163 11.9045C24.9098 11.8423 24.9827 11.7538 25.026 11.6502Z",fill:e?.color||"black"})]}),c0=x.createContext({});function Eb(e){const A=x.useRef(null);return A.current===null&&(A.current=e()),A.current}const o0=typeof window<"u"?x.useLayoutEffect:x.useEffect,yb=x.createContext(null);function l0(e,A){e.indexOf(A)===-1&&e.push(A)}function Yb(e,A){const t=e.indexOf(A);t>-1&&e.splice(t,1)}const Hc=(e,A,t)=>t>A?A:t<e?e:t;let g0=()=>{};const ql={},AZ=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function eZ(e){return typeof e=="object"&&e!==null}const tZ=e=>/^0[^.\s]+$/u.test(e);function nZ(e){let A;return()=>(A===void 0&&(A=e()),A)}const Yi=e=>e,mW=(e,A)=>t=>A(e(t)),Zw=(...e)=>e.reduce(mW),kw=(e,A,t)=>{const n=A-e;return n===0?1:(t-e)/n};class d0{constructor(){this.subscriptions=[]}add(A){return l0(this.subscriptions,A),()=>Yb(this.subscriptions,A)}notify(A,t,n){const B=this.subscriptions.length;if(B)if(B===1)this.subscriptions[0](A,t,n);else for(let a=0;a<B;a++){const i=this.subscriptions[a];i&&i(A,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Os=e=>e*1e3,Zi=e=>e/1e3;function BZ(e,A){return A?e*(1e3/A):0}const aZ=(e,A,t)=>(((1-3*t+3*A)*e+(3*t-6*A))*e+3*A)*e,EW=1e-7,yW=12;function YW(e,A,t,n,B){let a,i,c=0;do i=A+(t-A)/2,a=aZ(i,n,B)-e,a>0?t=i:A=i;while(Math.abs(a)>EW&&++c<yW);return i}function Uw(e,A,t,n){if(e===A&&t===n)return Yi;const B=a=>YW(a,0,1,e,t);return a=>a===0||a===1?a:aZ(B(a),A,n)}const sZ=e=>A=>A<=.5?e(2*A)/2:(2-e(2*(1-A)))/2,iZ=e=>A=>1-e(1-A),rZ=Uw(.33,1.53,.69,.99),u0=iZ(rZ),cZ=sZ(u0),oZ=e=>e>=1?1:(e*=2)<1?.5*u0(e):.5*(2-Math.pow(2,-10*(e-1))),G0=e=>1-Math.sin(Math.acos(e)),lZ=iZ(G0),gZ=sZ(G0),ZW=Uw(.42,0,1,1),kW=Uw(0,0,.58,1),dZ=Uw(.42,0,.58,1),UW=e=>Array.isArray(e)&&typeof e[0]!="number",uZ=e=>Array.isArray(e)&&typeof e[0]=="number",DW={linear:Yi,easeIn:ZW,easeInOut:dZ,easeOut:kW,circIn:G0,circInOut:gZ,circOut:lZ,backIn:u0,backInOut:cZ,backOut:rZ,anticipate:oZ},FW=e=>typeof e=="string",GZ=e=>{if(uZ(e)){g0(e.length===4);const[A,t,n,B]=e;return Uw(A,t,n,B)}else if(FW(e))return DW[e];return e},Zb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function MW(e,A){let t=new Set,n=new Set,B=!1,a=!1;const i=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function o(d){i.has(d)&&(l.schedule(d),e()),d(c)}const l={schedule:(d,u=!1,w=!1)=>{const H=w&&B?t:n;return u&&i.add(d),H.add(d),d},cancel:d=>{n.delete(d),i.delete(d)},process:d=>{if(c=d,B){a=!0;return}B=!0;const u=t;t=n,n=u,t.forEach(o),t.clear(),B=!1,a&&(a=!1,l.process(d))}};return l}const PW=40;function QZ(e,A){let t=!1,n=!0;const B={delta:0,timestamp:0,isProcessing:!1},a=()=>t=!0,i=Zb.reduce((R,V)=>(R[V]=MW(a),R),{}),{setup:c,read:o,resolveKeyframes:l,preUpdate:d,update:u,preRender:w,render:C,postRender:H}=i,Y=()=>{const R=ql.useManualTiming,V=R?B.timestamp:performance.now();t=!1,R||(B.delta=n?1e3/60:Math.max(Math.min(V-B.timestamp,PW),1)),B.timestamp=V,B.isProcessing=!0,c.process(B),o.process(B),l.process(B),d.process(B),u.process(B),w.process(B),C.process(B),H.process(B),B.isProcessing=!1,t&&A&&(n=!1,e(Y))},y=()=>{t=!0,n=!0,B.isProcessing||e(Y)};return{schedule:Zb.reduce((R,V)=>{const F=i[V];return R[V]=(S,K=!1,J=!1)=>(t||y(),F.schedule(S,K,J)),R},{}),cancel:R=>{for(let V=0;V<Zb.length;V++)i[Zb[V]].cancel(R)},state:B,steps:i}}const{schedule:Ot,cancel:$l,state:aa,steps:Q0}=QZ(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yi,!0);let kb;function xW(){kb=void 0}const Ta={now:()=>(kb===void 0&&Ta.set(aa.isProcessing||ql.useManualTiming?aa.timestamp:performance.now()),kb),set:e=>{kb=e,queueMicrotask(xW)}},wZ=e=>A=>typeof A=="string"&&A.startsWith(e),hZ=wZ("--"),TW=wZ("var(--"),w0=e=>TW(e)?RW.test(e.split("/*")[0].trim()):!1,RW=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function fZ(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const PG={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dw={...PG,transform:e=>Hc(0,1,e)},Ub={...PG,default:1},Fw=e=>Math.round(e*1e5)/1e5,h0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VW(e){return e==null}const SW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f0=(e,A)=>t=>!!(typeof t=="string"&&SW.test(t)&&t.startsWith(e)||A&&!VW(t)&&Object.prototype.hasOwnProperty.call(t,A)),bZ=(e,A,t)=>n=>{if(typeof n!="string")return n;const[B,a,i,c]=n.match(h0);return{[e]:parseFloat(B),[A]:parseFloat(a),[t]:parseFloat(i),alpha:c!==void 0?parseFloat(c):1}},WW=e=>Hc(0,255,e),b0={...PG,transform:e=>Math.round(WW(e))},Jd={test:f0("rgb","red"),parse:bZ("red","green","blue"),transform:({red:e,green:A,blue:t,alpha:n=1})=>"rgba("+b0.transform(e)+", "+b0.transform(A)+", "+b0.transform(t)+", "+Fw(Dw.transform(n))+")"};function NW(e){let A="",t="",n="",B="";return e.length>5?(A=e.substring(1,3),t=e.substring(3,5),n=e.substring(5,7),B=e.substring(7,9)):(A=e.substring(1,2),t=e.substring(2,3),n=e.substring(3,4),B=e.substring(4,5),A+=A,t+=t,n+=n,B+=B),{red:parseInt(A,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:B?parseInt(B,16)/255:1}}const C0={test:f0("#"),parse:NW,transform:Jd.transform},Mw=e=>({test:A=>typeof A=="string"&&A.endsWith(e)&&A.split(" ").length===1,parse:parseFloat,transform:A=>`${A}${e}`}),Ag=Mw("deg"),pc=Mw("%"),ae=Mw("px"),zW=Mw("vh"),LW=Mw("vw"),CZ={...pc,parse:e=>pc.parse(e)/100,transform:e=>pc.transform(e*100)},xG={test:f0("hsl","hue"),parse:bZ("hue","saturation","lightness"),transform:({hue:e,saturation:A,lightness:t,alpha:n=1})=>"hsla("+Math.round(e)+", "+pc.transform(Fw(A))+", "+pc.transform(Fw(t))+", "+Fw(Dw.transform(n))+")"},gB={test:e=>Jd.test(e)||C0.test(e)||xG.test(e),parse:e=>Jd.test(e)?Jd.parse(e):xG.test(e)?xG.parse(e):C0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jd.transform(e):xG.transform(e),getAnimatableNone:e=>{const A=gB.parse(e);return A.alpha=0,gB.transform(A)}},XW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function OW(e){return isNaN(e)&&typeof e=="string"&&(e.match(h0)?.length||0)+(e.match(XW)?.length||0)>0}const vZ="number",IZ="color",JW="var",KW="var(",HZ="${}",jW=/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 TG(e){const A=e.toString(),t=[],n={color:[],number:[],var:[]},B=[];let a=0;const c=A.replace(jW,o=>(gB.test(o)?(n.color.push(a),B.push(IZ),t.push(gB.parse(o))):o.startsWith(KW)?(n.var.push(a),B.push(JW),t.push(o)):(n.number.push(a),B.push(vZ),t.push(parseFloat(o))),++a,HZ)).split(HZ);return{values:t,split:c,indexes:n,types:B}}function _W(e){return TG(e).values}function pZ({split:e,types:A}){const t=e.length;return n=>{let B="";for(let a=0;a<t;a++)if(B+=e[a],n[a]!==void 0){const i=A[a];i===vZ?B+=Fw(n[a]):i===IZ?B+=gB.transform(n[a]):B+=n[a]}return B}}function qW(e){return pZ(TG(e))}const $W=e=>typeof e=="number"?0:gB.test(e)?gB.getAnimatableNone(e):e,A5=(e,A)=>typeof e=="number"?A?.trim().endsWith("/")?e:0:$W(e);function e5(e){const A=TG(e);return pZ(A)(A.values.map((n,B)=>A5(n,A.split[B])))}const wr={test:OW,parse:_W,createTransformer:qW,getAnimatableNone:e5};function v0(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(A-e)*6*t:t<1/2?A:t<2/3?e+(A-e)*(2/3-t)*6:e}function t5({hue:e,saturation:A,lightness:t,alpha:n}){e/=360,A/=100,t/=100;let B=0,a=0,i=0;if(!A)B=a=i=t;else{const c=t<.5?t*(1+A):t+A-t*A,o=2*t-c;B=v0(o,c,e+1/3),a=v0(o,c,e),i=v0(o,c,e-1/3)}return{red:Math.round(B*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}function Db(e,A){return t=>t>0?A:e}const cn=(e,A,t)=>e+(A-e)*t,I0=(e,A,t)=>{const n=e*e,B=t*(A*A-n)+n;return B<0?0:Math.sqrt(B)},n5=[C0,Jd,xG],B5=e=>n5.find(A=>A.test(e));function mZ(e){const A=B5(e);if(!A)return!1;let t=A.parse(e);return A===xG&&(t=t5(t)),t}const EZ=(e,A)=>{const t=mZ(e),n=mZ(A);if(!t||!n)return Db(e,A);const B={...t};return a=>(B.red=I0(t.red,n.red,a),B.green=I0(t.green,n.green,a),B.blue=I0(t.blue,n.blue,a),B.alpha=cn(t.alpha,n.alpha,a),Jd.transform(B))},H0=new Set(["none","hidden"]);function a5(e,A){return H0.has(e)?t=>t<=0?e:A:t=>t>=1?A:e}function s5(e,A){return t=>cn(e,A,t)}function p0(e){return typeof e=="number"?s5:typeof e=="string"?w0(e)?Db:gB.test(e)?EZ:c5:Array.isArray(e)?yZ:typeof e=="object"?gB.test(e)?EZ:i5:Db}function yZ(e,A){const t=[...e],n=t.length,B=e.map((a,i)=>p0(a)(a,A[i]));return a=>{for(let i=0;i<n;i++)t[i]=B[i](a);return t}}function i5(e,A){const t={...e,...A},n={};for(const B in t)e[B]!==void 0&&A[B]!==void 0&&(n[B]=p0(e[B])(e[B],A[B]));return B=>{for(const a in n)t[a]=n[a](B);return t}}function r5(e,A){const t=[],n={color:0,var:0,number:0};for(let B=0;B<A.values.length;B++){const a=A.types[B],i=e.indexes[a][n[a]],c=e.values[i]??0;t[B]=c,n[a]++}return t}const c5=(e,A)=>{const t=wr.createTransformer(A),n=TG(e),B=TG(A);return n.indexes.var.length===B.indexes.var.length&&n.indexes.color.length===B.indexes.color.length&&n.indexes.number.length>=B.indexes.number.length?H0.has(e)&&!B.values.length||H0.has(A)&&!n.values.length?a5(e,A):Zw(yZ(r5(n,B),B.values),t):Db(e,A)};function YZ(e,A,t){return typeof e=="number"&&typeof A=="number"&&typeof t=="number"?cn(e,A,t):p0(e)(e,A)}const o5=e=>{const A=({timestamp:t})=>e(t);return{start:(t=!0)=>Ot.update(A,t),stop:()=>$l(A),now:()=>aa.isProcessing?aa.timestamp:Ta.now()}},ZZ=(e,A,t=10)=>{let n="";const B=Math.max(Math.round(A/t),2);for(let a=0;a<B;a++)n+=Math.round(e(a/(B-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Fb=2e4;function m0(e){let A=0;const t=50;let n=e.next(A);for(;!n.done&&A<Fb;)A+=t,n=e.next(A);return A>=Fb?1/0:A}function l5(e,A=100,t){const n=t({...e,keyframes:[0,A]}),B=Math.min(m0(n),Fb);return{type:"keyframes",ease:a=>n.next(B*a).value/A,duration:Zi(B)}}const Mn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function E0(e,A){return e*Math.sqrt(1-A*A)}const g5=12;function d5(e,A,t){let n=t;for(let B=1;B<g5;B++)n=n-e(n)/A(n);return n}const y0=.001;function u5({duration:e=Mn.duration,bounce:A=Mn.bounce,velocity:t=Mn.velocity,mass:n=Mn.mass}){let B,a,i=1-A;i=Hc(Mn.minDamping,Mn.maxDamping,i),e=Hc(Mn.minDuration,Mn.maxDuration,Zi(e)),i<1?(B=l=>{const d=l*i,u=d*e,w=d-t,C=E0(l,i),H=Math.exp(-u);return y0-w/C*H},a=l=>{const u=l*i*e,w=u*t+t,C=Math.pow(i,2)*Math.pow(l,2)*e,H=Math.exp(-u),Y=E0(Math.pow(l,2),i);return(-B(l)+y0>0?-1:1)*((w-C)*H)/Y}):(B=l=>{const d=Math.exp(-l*e),u=(l-t)*e+1;return-y0+d*u},a=l=>{const d=Math.exp(-l*e),u=(t-l)*(e*e);return d*u});const c=5/e,o=d5(B,a,c);if(e=Os(e),isNaN(o))return{stiffness:Mn.stiffness,damping:Mn.damping,duration:e};{const l=Math.pow(o,2)*n;return{stiffness:l,damping:i*2*Math.sqrt(n*l),duration:e}}}const G5=["duration","bounce"],Q5=["stiffness","damping","mass"];function kZ(e,A){return A.some(t=>e[t]!==void 0)}function w5(e){let A={velocity:Mn.velocity,stiffness:Mn.stiffness,damping:Mn.damping,mass:Mn.mass,isResolvedFromDuration:!1,...e};if(!kZ(e,Q5)&&kZ(e,G5))if(A.velocity=0,e.visualDuration){const t=e.visualDuration,n=2*Math.PI/(t*1.2),B=n*n,a=2*Hc(.05,1,1-(e.bounce||0))*Math.sqrt(B);A={...A,mass:Mn.mass,stiffness:B,damping:a}}else{const t=u5({...e,velocity:0});A={...A,...t,mass:Mn.mass},A.isResolvedFromDuration=!0}return A}function Mb(e=Mn.visualDuration,A=Mn.bounce){const t=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:A}:e;let{restSpeed:n,restDelta:B}=t;const a=t.keyframes[0],i=t.keyframes[t.keyframes.length-1],c={done:!1,value:a},{stiffness:o,damping:l,mass:d,duration:u,velocity:w,isResolvedFromDuration:C}=w5({...t,velocity:-Zi(t.velocity||0)}),H=w||0,Y=l/(2*Math.sqrt(o*d)),y=i-a,Z=Zi(Math.sqrt(o/d)),T=Math.abs(y)<5;n||(n=T?Mn.restSpeed.granular:Mn.restSpeed.default),B||(B=T?Mn.restDelta.granular:Mn.restDelta.default);let R,V,F,S,K,J;if(Y<1)F=E0(Z,Y),S=(H+Y*Z*y)/F,R=BA=>{const oA=Math.exp(-Y*Z*BA);return i-oA*(S*Math.sin(F*BA)+y*Math.cos(F*BA))},K=Y*Z*S+y*F,J=Y*Z*y-S*F,V=BA=>Math.exp(-Y*Z*BA)*(K*Math.sin(F*BA)+J*Math.cos(F*BA));else if(Y===1){R=oA=>i-Math.exp(-Z*oA)*(y+(H+Z*y)*oA);const BA=H+Z*y;V=oA=>Math.exp(-Z*oA)*(Z*BA*oA-H)}else{const BA=Z*Math.sqrt(Y*Y-1);R=EA=>{const UA=Math.exp(-Y*Z*EA),L=Math.min(BA*EA,300);return i-UA*((H+Y*Z*y)*Math.sinh(L)+BA*y*Math.cosh(L))/BA};const oA=(H+Y*Z*y)/BA,gA=Y*Z*oA-y*BA,mA=Y*Z*y-oA*BA;V=EA=>{const UA=Math.exp(-Y*Z*EA),L=Math.min(BA*EA,300);return UA*(gA*Math.sinh(L)+mA*Math.cosh(L))}}const eA={calculatedDuration:C&&u||null,velocity:BA=>Os(V(BA)),next:BA=>{if(!C&&Y<1){const gA=Math.exp(-Y*Z*BA),mA=Math.sin(F*BA),EA=Math.cos(F*BA),UA=i-gA*(S*mA+y*EA),L=Os(gA*(K*mA+J*EA));return c.done=Math.abs(L)<=n&&Math.abs(i-UA)<=B,c.value=c.done?i:UA,c}const oA=R(BA);if(C)c.done=BA>=u;else{const gA=Os(V(BA));c.done=Math.abs(gA)<=n&&Math.abs(i-oA)<=B}return c.value=c.done?i:oA,c},toString:()=>{const BA=Math.min(m0(eA),Fb),oA=ZZ(gA=>eA.next(BA*gA).value,BA,30);return BA+"ms "+oA},toTransition:()=>{}};return eA}Mb.applyToOptions=e=>{const A=l5(e,100,Mb);return e.ease=A.ease,e.duration=Os(A.duration),e.type="keyframes",e};const h5=5;function UZ(e,A,t){const n=Math.max(A-h5,0);return BZ(t-e(n),A-n)}function Y0({keyframes:e,velocity:A=0,power:t=.8,timeConstant:n=325,bounceDamping:B=10,bounceStiffness:a=500,modifyTarget:i,min:c,max:o,restDelta:l=.5,restSpeed:d}){const u=e[0],w={done:!1,value:u},C=J=>c!==void 0&&J<c||o!==void 0&&J>o,H=J=>c===void 0?o:o===void 0||Math.abs(c-J)<Math.abs(o-J)?c:o;let Y=t*A;const y=u+Y,Z=i===void 0?y:i(y);Z!==y&&(Y=Z-u);const T=J=>-Y*Math.exp(-J/n),R=J=>Z+T(J),V=J=>{const eA=T(J),BA=R(J);w.done=Math.abs(eA)<=l,w.value=w.done?Z:BA};let F,S;const K=J=>{C(w.value)&&(F=J,S=Mb({keyframes:[w.value,H(w.value)],velocity:UZ(R,J,w.value),damping:B,stiffness:a,restDelta:l,restSpeed:d}))};return K(0),{calculatedDuration:null,next:J=>{let eA=!1;return!S&&F===void 0&&(eA=!0,V(J),K(J)),F!==void 0&&J>=F?S.next(J-F):(!eA&&V(J),w)}}}function f5(e,A,t){const n=[],B=t||ql.mix||YZ,a=e.length-1;for(let i=0;i<a;i++){let c=B(e[i],e[i+1]);if(A){const o=Array.isArray(A)?A[i]||Yi:A;c=Zw(o,c)}n.push(c)}return n}function b5(e,A,{clamp:t=!0,ease:n,mixer:B}={}){const a=e.length;if(g0(a===A.length),a===1)return()=>A[0];if(a===2&&A[0]===A[1])return()=>A[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),A=[...A].reverse());const c=f5(A,n,B),o=c.length,l=d=>{if(i&&d<e[0])return A[0];let u=0;if(o>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const w=kw(e[u],e[u+1],d);return c[u](w)};return t?d=>l(Hc(e[0],e[a-1],d)):l}function C5(e,A){const t=e[e.length-1];for(let n=1;n<=A;n++){const B=kw(0,A,n);e.push(cn(t,1,B))}}function v5(e){const A=[0];return C5(A,e.length-1),A}function I5(e,A){return e.map(t=>t*A)}function H5(e,A){return e.map(()=>A||dZ).splice(0,e.length-1)}function Pw({duration:e=300,keyframes:A,times:t,ease:n="easeInOut"}){const B=UW(n)?n.map(GZ):GZ(n),a={done:!1,value:A[0]},i=I5(t&&t.length===A.length?t:v5(A),e),c=b5(i,A,{ease:Array.isArray(B)?B:H5(A,B)});return{calculatedDuration:e,next:o=>(a.value=c(o),a.done=o>=e,a)}}const p5=e=>e!==null;function Pb(e,{repeat:A,repeatType:t="loop"},n,B=1){const a=e.filter(p5),c=B<0||A&&t!=="loop"&&A%2===1?0:a.length-1;return!c||n===void 0?a[c]:n}const m5={decay:Y0,inertia:Y0,tween:Pw,keyframes:Pw,spring:Mb};function DZ(e){typeof e.type=="string"&&(e.type=m5[e.type])}class Z0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(A=>{this.resolve=A})}notifyFinished(){this.resolve()}then(A,t){return this.finished.then(A,t)}}const E5=e=>e/100;class xb extends Z0{constructor(A){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Ta.now()&&this.tick(Ta.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=A,this.initAnimation(),this.play(),A.autoplay===!1&&this.pause()}initAnimation(){const{options:A}=this;DZ(A);const{type:t=Pw,repeat:n=0,repeatDelay:B=0,repeatType:a,velocity:i=0}=A;let{keyframes:c}=A;const o=t||Pw;o!==Pw&&typeof c[0]!="number"&&(this.mixKeyframes=Zw(E5,YZ(c[0],c[1])),c=[0,100]);const l=o({...A,keyframes:c});a==="mirror"&&(this.mirroredGenerator=o({...A,keyframes:[...c].reverse(),velocity:-i})),l.calculatedDuration===null&&(l.calculatedDuration=m0(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+B,this.totalDuration=this.resolvedDuration*(n+1)-B,this.generator=l}updateTime(A){const t=Math.round(A-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(A,t=!1){const{generator:n,totalDuration:B,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:c,calculatedDuration:o}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:d,repeat:u,repeatType:w,repeatDelay:C,type:H,onUpdate:Y,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,A):this.speed<0&&(this.startTime=Math.min(A-B/this.speed,this.startTime)),t?this.currentTime=A:this.updateTime(A);const Z=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?Z<0:Z>B;this.currentTime=Math.max(Z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=B);let R=this.currentTime,V=n;if(u){const J=Math.min(this.currentTime,B)/c;let eA=Math.floor(J),BA=J%1;!BA&&J>=1&&(BA=1),BA===1&&eA--,eA=Math.min(eA,u+1),eA%2&&(w==="reverse"?(BA=1-BA,C&&(BA-=C/c)):w==="mirror"&&(V=i)),R=Hc(0,1,BA)*c}let F;T?(this.delayState.value=d[0],F=this.delayState):F=V.next(R),a&&!T&&(F.value=a(F.value));let{done:S}=F;!T&&o!==null&&(S=this.playbackSpeed>=0?this.currentTime>=B:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return K&&H!==Y0&&(F.value=Pb(d,this.options,y,this.speed)),Y&&Y(F.value),K&&this.finish(),F}then(A,t){return this.finished.then(A,t)}get duration(){return Zi(this.calculatedDuration)}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+Zi(A)}get time(){return Zi(this.currentTime)}set time(A){A=Os(A),this.currentTime=A,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=A:this.driver&&(this.startTime=this.driver.now()-A/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=A,this.tick(A))}getGeneratorVelocity(){const A=this.currentTime;if(A<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(A);const t=this.generator.next(A).value;return UZ(n=>this.generator.next(n).value,A,t)}get speed(){return this.playbackSpeed}set speed(A){const t=this.playbackSpeed!==A;t&&this.driver&&this.updateTime(Ta.now()),this.playbackSpeed=A,t&&this.driver&&(this.time=Zi(this.currentTime))}play(){if(this.isStopped)return;const{driver:A=o5,startTime:t}=this.options;this.driver||(this.driver=A(B=>this.tick(B))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ta.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(A){return this.startTime=0,this.tick(A,!0)}attachTimeline(A){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),A.observe(this)}}function y5(e){for(let A=1;A<e.length;A++)e[A]??(e[A]=e[A-1])}const Kd=e=>e*180/Math.PI,k0=e=>{const A=Kd(Math.atan2(e[1],e[0]));return U0(A)},Y5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:k0,rotateZ:k0,skewX:e=>Kd(Math.atan(e[1])),skewY:e=>Kd(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},U0=e=>(e=e%360,e<0&&(e+=360),e),FZ=k0,MZ=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PZ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Z5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:MZ,scaleY:PZ,scale:e=>(MZ(e)+PZ(e))/2,rotateX:e=>U0(Kd(Math.atan2(e[6],e[5]))),rotateY:e=>U0(Kd(Math.atan2(-e[2],e[0]))),rotateZ:FZ,rotate:FZ,skewX:e=>Kd(Math.atan(e[4])),skewY:e=>Kd(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function D0(e){return e.includes("scale")?1:0}function F0(e,A){if(!e||e==="none")return D0(A);const t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,B;if(t)n=Z5,B=t;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Y5,B=c}if(!B)return D0(A);const a=n[A],i=B[1].split(",").map(U5);return typeof a=="function"?a(i):i[a]}const k5=(e,A)=>{const{transform:t="none"}=getComputedStyle(e);return F0(t,A)};function U5(e){return parseFloat(e.trim())}const RG=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],VG=new Set(RG),xZ=e=>e===PG||e===ae,D5=new Set(["x","y","z"]),F5=RG.filter(e=>!D5.has(e));function M5(e){const A=[];return F5.forEach(t=>{const n=e.getValue(t);n!==void 0&&(A.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),A}const eg={width:({x:e},{paddingLeft:A="0",paddingRight:t="0",boxSizing:n})=>{const B=e.max-e.min;return n==="border-box"?B:B-parseFloat(A)-parseFloat(t)},height:({y:e},{paddingTop:A="0",paddingBottom:t="0",boxSizing:n})=>{const B=e.max-e.min;return n==="border-box"?B:B-parseFloat(A)-parseFloat(t)},top:(e,{top:A})=>parseFloat(A),left:(e,{left:A})=>parseFloat(A),bottom:({y:e},{top:A})=>parseFloat(A)+(e.max-e.min),right:({x:e},{left:A})=>parseFloat(A)+(e.max-e.min),x:(e,{transform:A})=>F0(A,"x"),y:(e,{transform:A})=>F0(A,"y")};eg.translateX=eg.x,eg.translateY=eg.y;const jd=new Set;let M0=!1,P0=!1,x0=!1;function TZ(){if(P0){const e=Array.from(jd).filter(n=>n.needsMeasurement),A=new Set(e.map(n=>n.element)),t=new Map;A.forEach(n=>{const B=M5(n);B.length&&(t.set(n,B),n.render())}),e.forEach(n=>n.measureInitialState()),A.forEach(n=>{n.render();const B=t.get(n);B&&B.forEach(([a,i])=>{n.getValue(a)?.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}P0=!1,M0=!1,jd.forEach(e=>e.complete(x0)),jd.clear()}function RZ(){jd.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(P0=!0)})}function P5(){x0=!0,RZ(),TZ(),x0=!1}class T0{constructor(A,t,n,B,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...A],this.onComplete=t,this.name=n,this.motionValue=B,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(jd.add(this),M0||(M0=!0,Ot.read(RZ),Ot.resolveKeyframes(TZ))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:A,name:t,element:n,motionValue:B}=this;if(A[0]===null){const a=B?.get(),i=A[A.length-1];if(a!==void 0)A[0]=a;else if(n&&t){const c=n.readValue(t,i);c!=null&&(A[0]=c)}A[0]===void 0&&(A[0]=i),B&&a===void 0&&B.set(A[0])}y5(A)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(A=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,A),jd.delete(this)}cancel(){this.state==="scheduled"&&(jd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const x5=e=>e.startsWith("--");function VZ(e,A,t){x5(A)?e.style.setProperty(A,t):e.style[A]=t}const T5={};function SZ(e,A){const t=nZ(e);return()=>T5[A]??t()}const R5=SZ(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),WZ=SZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xw=([e,A,t,n])=>`cubic-bezier(${e}, ${A}, ${t}, ${n})`,NZ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xw([0,.65,.55,1]),circOut:xw([.55,0,1,.45]),backIn:xw([.31,.01,.66,-.59]),backOut:xw([.33,1.53,.69,.99])};function zZ(e,A){if(e)return typeof e=="function"?WZ()?ZZ(e,A):"ease-out":uZ(e)?xw(e):Array.isArray(e)?e.map(t=>zZ(t,A)||NZ.easeOut):NZ[e]}function V5(e,A,t,{delay:n=0,duration:B=300,repeat:a=0,repeatType:i="loop",ease:c="easeOut",times:o}={},l=void 0){const d={[A]:t};o&&(d.offset=o);const u=zZ(c,B);Array.isArray(u)&&(d.easing=u);const w={delay:n,duration:B,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"};return l&&(w.pseudoElement=l),e.animate(d,w)}function LZ(e){return typeof e=="function"&&"applyToOptions"in e}function S5({type:e,...A}){return LZ(e)&&WZ()?e.applyToOptions(A):(A.duration??(A.duration=300),A.ease??(A.ease="easeOut"),A)}class XZ extends Z0{constructor(A){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!A)return;const{element:t,name:n,keyframes:B,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:c,onComplete:o}=A;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=A,g0(typeof A.type!="string");const l=S5(A);this.animation=V5(t,n,B,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=Pb(B,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(d),VZ(t,n,d),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:A}=this;A==="idle"||A==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const A=this.options?.element;!this.isPseudoElement&&A?.isConnected&&this.animation.commitStyles?.()}get duration(){const A=this.animation.effect?.getComputedTiming?.().duration||0;return Zi(Number(A))}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+Zi(A)}get time(){return Zi(Number(this.animation.currentTime)||0)}set time(A){const t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Os(A),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(A){A<0&&(this.finishedTime=null),this.animation.playbackRate=A}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(A){this.manualStartTime=this.animation.startTime=A}attachTimeline({timeline:A,rangeStart:t,rangeEnd:n,observe:B}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,A&&R5()?(this.animation.timeline=A,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Yi):B(this)}}const OZ={anticipate:oZ,backInOut:cZ,circInOut:gZ};function W5(e){return e in OZ}function N5(e){typeof e.ease=="string"&&W5(e.ease)&&(e.ease=OZ[e.ease])}const R0=10;class z5 extends XZ{constructor(A){N5(A),DZ(A),super(A),A.startTime!==void 0&&A.autoplay!==!1&&(this.startTime=A.startTime),this.options=A}updateMotionValue(A){const{motionValue:t,onUpdate:n,onComplete:B,element:a,...i}=this.options;if(!t)return;if(A!==void 0){t.set(A);return}const c=new xb({...i,autoplay:!1}),o=Math.max(R0,Ta.now()-this.startTime),l=Hc(0,R0,o-R0),d=c.sample(o).value,{name:u}=this.options;a&&u&&VZ(a,u,d),t.setWithVelocity(c.sample(Math.max(0,o-l)).value,d,l),c.stop()}}const JZ=(e,A)=>A==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function L5(e){const A=e[0];if(e.length===1)return!0;for(let t=0;t<e.length;t++)if(e[t]!==A)return!0}function X5(e,A,t,n){const B=e[0];if(B===null)return!1;if(A==="display"||A==="visibility")return!0;const a=e[e.length-1],i=JZ(B,A),c=JZ(a,A);return!i||!c?!1:L5(e)||(t==="spring"||LZ(t))&&n}function V0(e){e.duration=0,e.type="keyframes"}const KZ=new Set(["opacity","clipPath","filter","transform"]),O5=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function J5(e){for(let A=0;A<e.length;A++)if(typeof e[A]=="string"&&O5.test(e[A]))return!0;return!1}const K5=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),j5=nZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _5(e){const{motionValue:A,name:t,repeatDelay:n,repeatType:B,damping:a,type:i,keyframes:c}=e;if(!(A?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=A.owner.getProps();return j5()&&t&&(KZ.has(t)||K5.has(t)&&J5(c))&&(t!=="transform"||!d)&&!l&&!n&&B!=="mirror"&&a!==0&&i!=="inertia"}const q5=40;class $5 extends Z0{constructor({autoplay:A=!0,delay:t=0,type:n="keyframes",repeat:B=0,repeatDelay:a=0,repeatType:i="loop",keyframes:c,name:o,motionValue:l,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ta.now();const w={autoplay:A,delay:t,type:n,repeat:B,repeatDelay:a,repeatType:i,name:o,motionValue:l,element:d,...u},C=d?.KeyframeResolver||T0;this.keyframeResolver=new C(c,(H,Y,y)=>this.onKeyframesResolved(H,Y,w,!y),o,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(A,t,n,B){this.keyframeResolver=void 0;const{name:a,type:i,velocity:c,delay:o,isHandoff:l,onUpdate:d}=n;this.resolvedAt=Ta.now();let u=!0;X5(A,a,i,c)||(u=!1,(ql.instantAnimations||!o)&&d?.(Pb(A,n,t)),A[0]=A[A.length-1],V0(n),n.repeat=0);const C={startTime:B?this.resolvedAt?this.resolvedAt-this.createdAt>q5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:A},H=u&&!l&&_5(C),Y=C.motionValue?.owner?.current;let y;if(H)try{y=new z5({...C,element:Y})}catch{y=new xb(C)}else y=new xb(C);y.finished.then(()=>{this.notifyFinished()}).catch(Yi),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(A,t){return this.finished.finally(A).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),P5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(A){this.animation.time=A}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(A){this.animation.speed=A}get startTime(){return this.animation.startTime}attachTimeline(A){return this._animation?this.stopTimeline=this.animation.attachTimeline(A):this.pendingTimeline=A,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function jZ(e,A,t,n=0,B=1){const a=Array.from(e).sort((l,d)=>l.sortNodePosition(d)).indexOf(A),i=e.size,c=(i-1)*n;return typeof t=="function"?t(a,i):B===1?a*n:c-a*n}const AN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eN(e){const A=AN.exec(e);if(!A)return[,];const[,t,n,B]=A;return[`--${t??n}`,B]}function _Z(e,A,t=1){const[n,B]=eN(e);if(!n)return;const a=window.getComputedStyle(A).getPropertyValue(n);if(a){const i=a.trim();return AZ(i)?parseFloat(i):i}return w0(B)?_Z(B,A,t+1):B}const tN={type:"spring",stiffness:500,damping:25,restSpeed:10},nN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BN={type:"keyframes",duration:.8},aN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sN=(e,{keyframes:A})=>A.length>2?BN:VG.has(e)?e.startsWith("scale")?nN(A[1]):tN:aN;function qZ(e,A){if(e?.inherit&&A){const{inherit:t,...n}=e;return{...A,...n}}return e}function S0(e,A){const t=e?.[A]??e?.default??e;return t!==e?qZ(t,e):t}const iN=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function rN(e){for(const A in e)if(!iN.has(A))return!0;return!1}const W0=(e,A,t,n={},B,a)=>i=>{const c=S0(n,e)||{},o=c.delay||n.delay||0;let{elapsed:l=0}=n;l=l-Os(o);const d={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:A.getVelocity(),...c,delay:-l,onUpdate:w=>{A.set(w),c.onUpdate&&c.onUpdate(w)},onComplete:()=>{i(),c.onComplete&&c.onComplete()},name:e,motionValue:A,element:a?void 0:B};rN(c)||Object.assign(d,sN(e,d)),d.duration&&(d.duration=Os(d.duration)),d.repeatDelay&&(d.repeatDelay=Os(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(V0(d),d.delay===0&&(u=!0)),(ql.instantAnimations||ql.skipAnimations||B?.shouldSkipAnimations)&&(u=!0,V0(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,u&&!a&&A.get()!==void 0){const w=Pb(d.keyframes,c);if(w!==void 0){Ot.update(()=>{d.onUpdate(w),d.onComplete()});return}}return c.isSync?new xb(d):new $5(d)};function $Z(e){const A=[{},{}];return e?.values.forEach((t,n)=>{A[0][n]=t.get(),A[1][n]=t.getVelocity()}),A}function N0(e,A,t,n){if(typeof A=="function"){const[B,a]=$Z(n);A=A(t!==void 0?t:e.custom,B,a)}if(typeof A=="string"&&(A=e.variants&&e.variants[A]),typeof A=="function"){const[B,a]=$Z(n);A=A(t!==void 0?t:e.custom,B,a)}return A}function _d(e,A,t){const n=e.getProps();return N0(n,A,t!==void 0?t:n.custom,e)}const Ak=new Set(["width","height","top","left","right","bottom",...RG]),ek=30,cN=e=>!isNaN(parseFloat(e));class oN{constructor(A,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const B=Ta.now();if(this.updatedAt!==B&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(A),this.owner=t.owner}setCurrent(A){this.current=A,this.updatedAt=Ta.now(),this.canTrackVelocity===null&&A!==void 0&&(this.canTrackVelocity=cN(this.current))}setPrevFrameValue(A=this.current){this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt}onChange(A){return this.on("change",A)}on(A,t){this.events[A]||(this.events[A]=new d0);const n=this.events[A].add(t);return A==="change"?()=>{n(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const A in this.events)this.events[A].clear()}attach(A,t){this.passiveEffect=A,this.stopPassiveEffect=t}set(A){this.passiveEffect?this.passiveEffect(A,this.updateAndNotify):this.updateAndNotify(A)}setWithVelocity(A,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt-n}jump(A,t=!0){this.updateAndNotify(A),this.prev=A,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(A){this.dependents||(this.dependents=new Set),this.dependents.add(A)}removeDependent(A){this.dependents&&this.dependents.delete(A)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const A=Ta.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||A-this.updatedAt>ek)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,ek);return BZ(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(A){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=A(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function SG(e,A){return new oN(e,A)}const z0=e=>Array.isArray(e);function lN(e,A,t){e.hasValue(A)?e.getValue(A).set(t):e.addValue(A,SG(t))}function gN(e){return z0(e)?e[e.length-1]||0:e}function L0(e,A){const t=_d(e,A);let{transitionEnd:n={},transition:B={},...a}=t||{};a={...a,...n};for(const i in a){const c=gN(a[i]);lN(e,i,c)}}const sa=e=>!!(e&&e.getVelocity);function dN(e){return!!(sa(e)&&e.add)}function X0(e,A){const t=e.getValue("willChange");if(dN(t))return t.add(A);if(!t&&ql.WillChange){const n=new ql.WillChange("auto");e.addValue("willChange",n),n.add(A)}}function O0(e){return e.replace(/([A-Z])/g,A=>`-${A.toLowerCase()}`)}const tk="data-"+O0("framerAppearId");function nk(e){return e.props[tk]}function uN({protectedKeys:e,needsAnimating:A},t){const n=e.hasOwnProperty(t)&&A[t]!==!0;return A[t]=!1,n}function Bk(e,A,{delay:t=0,transitionOverride:n,type:B}={}){let{transition:a,transitionEnd:i,...c}=A;const o=e.getDefaultTransition();a=a?qZ(a,o):o;const l=a?.reduceMotion;n&&(a=n);const d=[],u=B&&e.animationState&&e.animationState.getState()[B];for(const w in c){const C=e.getValue(w,e.latestValues[w]??null),H=c[w];if(H===void 0||u&&uN(u,w))continue;const Y={delay:t,...S0(a||{},w)},y=C.get();if(y!==void 0&&!C.isAnimating()&&!Array.isArray(H)&&H===y&&!Y.velocity){Ot.update(()=>C.set(H));continue}let Z=!1;if(window.MotionHandoffAnimation){const V=nk(e);if(V){const F=window.MotionHandoffAnimation(V,w,Ot);F!==null&&(Y.startTime=F,Z=!0)}}X0(e,w);const T=l??e.shouldReduceMotion;C.start(W0(w,C,H,T&&Ak.has(w)?{type:!1}:Y,e,Z));const R=C.animation;R&&d.push(R)}if(i){const w=()=>Ot.update(()=>{i&&L0(e,i)});d.length?Promise.all(d).then(w):w()}return d}function J0(e,A,t={}){const n=_d(e,A,t.type==="exit"?e.presenceContext?.custom:void 0);let{transition:B=e.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(B=t.transitionOverride);const a=n?()=>Promise.all(Bk(e,n,t)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:u}=B;return GN(e,A,o,l,d,u,t)}:()=>Promise.resolve(),{when:c}=B;if(c){const[o,l]=c==="beforeChildren"?[a,i]:[i,a];return o().then(()=>l())}else return Promise.all([a(),i(t.delay)])}function GN(e,A,t=0,n=0,B=0,a=1,i){const c=[];for(const o of e.variantChildren)o.notify("AnimationStart",A),c.push(J0(o,A,{...i,delay:t+(typeof n=="function"?0:n)+jZ(e.variantChildren,o,n,B,a)}).then(()=>o.notify("AnimationComplete",A)));return Promise.all(c)}function ak(e,A,t={}){e.notify("AnimationStart",A);let n;if(Array.isArray(A)){const B=A.map(a=>J0(e,a,t));n=Promise.all(B)}else if(typeof A=="string")n=J0(e,A,t);else{const B=typeof A=="function"?_d(e,A,t.custom):A;n=Promise.all(Bk(e,B,t))}return n.then(()=>{e.notify("AnimationComplete",A)})}const QN={test:e=>e==="auto",parse:e=>e},sk=e=>A=>A.test(e),ik=[PG,ae,pc,Ag,LW,zW,QN],rk=e=>ik.find(sk(e));function wN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tZ(e):!0}const hN=new Set(["brightness","contrast","saturate","opacity"]);function fN(e){const[A,t]=e.slice(0,-1).split("(");if(A==="drop-shadow")return e;const[n]=t.match(h0)||[];if(!n)return e;const B=t.replace(n,"");let a=hN.has(A)?1:0;return n!==t&&(a*=100),A+"("+a+B+")"}const bN=/\b([a-z-]*)\(.*?\)/gu,K0={...wr,getAnimatableNone:e=>{const A=e.match(bN);return A?A.map(fN).join(" "):e}},j0={...wr,getAnimatableNone:e=>{const A=wr.parse(e);return wr.createTransformer(e)(A.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},ck={...PG,transform:Math.round},_0={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...{rotate:Ag,rotateX:Ag,rotateY:Ag,rotateZ:Ag,scale:Ub,scaleX:Ub,scaleY:Ub,scaleZ:Ub,skew:Ag,skewX:Ag,skewY:Ag,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Dw,originX:CZ,originY:CZ,originZ:ae},zIndex:ck,fillOpacity:Dw,strokeOpacity:Dw,numOctaves:ck},CN={..._0,color:gB,backgroundColor:gB,outlineColor:gB,fill:gB,stroke:gB,borderColor:gB,borderTopColor:gB,borderRightColor:gB,borderBottomColor:gB,borderLeftColor:gB,filter:K0,WebkitFilter:K0,mask:j0,WebkitMask:j0},ok=e=>CN[e],vN=new Set([K0,j0]);function lk(e,A){let t=ok(e);return vN.has(t)||(t=wr),t.getAnimatableNone?t.getAnimatableNone(A):void 0}const IN=new Set(["auto","none","0"]);function HN(e,A,t){let n=0,B;for(;n<e.length&&!B;){const a=e[n];typeof a=="string"&&!IN.has(a)&&TG(a).values.length&&(B=e[n]),n++}if(B&&t)for(const a of A)e[a]=lk(t,B)}class pN extends T0{constructor(A,t,n,B,a){super(A,t,n,B,a,!0)}readKeyframes(){const{unresolvedKeyframes:A,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d<A.length;d++){let u=A[d];if(typeof u=="string"&&(u=u.trim(),w0(u))){const w=_Z(u,t.current);w!==void 0&&(A[d]=w),d===A.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ak.has(n)||A.length!==2)return;const[B,a]=A,i=rk(B),c=rk(a),o=fZ(B),l=fZ(a);if(o!==l&&eg[n]){this.needsMeasurement=!0;return}if(i!==c)if(xZ(i)&&xZ(c))for(let d=0;d<A.length;d++){const u=A[d];typeof u=="string"&&(A[d]=parseFloat(u))}else eg[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:A,name:t}=this,n=[];for(let B=0;B<A.length;B++)(A[B]===null||wN(A[B]))&&n.push(B);n.length&&HN(A,n,t)}measureInitialState(){const{element:A,unresolvedKeyframes:t,name:n}=this;if(!A||!A.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eg[n](A.measureViewportBox(),window.getComputedStyle(A.current)),t[0]=this.measuredOrigin;const B=t[t.length-1];B!==void 0&&A.getValue(n,B).jump(B,!1)}measureEndState(){const{element:A,name:t,unresolvedKeyframes:n}=this;if(!A||!A.current)return;const B=A.getValue(t);B&&B.jump(this.measuredOrigin,!1);const a=n.length-1,i=n[a];n[a]=eg[t](A.measureViewportBox(),window.getComputedStyle(A.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,o])=>{A.getValue(c).set(o)}),this.resolveNoneKeyframes()}}function gk(e,A,t){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const B=t?.[e]??n.querySelectorAll(e);return B?Array.from(B):[]}return Array.from(e).filter(n=>n!=null)}const dk=(e,A)=>A&&typeof e=="number"?A.transform(e):e;function Tb(e){return eZ(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:q0}=QZ(queueMicrotask,!1),hr={x:!1,y:!1};function uk(){return hr.x||hr.y}function mN(e){return e==="x"||e==="y"?hr[e]?null:(hr[e]=!0,()=>{hr[e]=!1}):hr.x||hr.y?null:(hr.x=hr.y=!0,()=>{hr.x=hr.y=!1})}function Gk(e,A){const t=gk(e),n=new AbortController,B={passive:!0,...A,signal:n.signal};return[t,B,()=>n.abort()]}function EN(e){return!(e.pointerType==="touch"||uk())}function yN(e,A,t={}){const[n,B,a]=Gk(e,t);return n.forEach(i=>{let c=!1,o=!1,l;const d=()=>{i.removeEventListener("pointerleave",H)},u=y=>{l&&(l(y),l=void 0),d()},w=y=>{c=!1,window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),o&&(o=!1,u(y))},C=()=>{c=!0,window.addEventListener("pointerup",w,B),window.addEventListener("pointercancel",w,B)},H=y=>{if(y.pointerType!=="touch"){if(c){o=!0;return}u(y)}},Y=y=>{if(!EN(y))return;o=!1;const Z=A(i,y);typeof Z=="function"&&(l=Z,i.addEventListener("pointerleave",H,B))};i.addEventListener("pointerenter",Y,B),i.addEventListener("pointerdown",C,B)}),a}const Qk=(e,A)=>A?e===A?!0:Qk(e,A.parentElement):!1,$0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ZN(e){return YN.has(e.tagName)||e.isContentEditable===!0}const kN=new Set(["INPUT","SELECT","TEXTAREA"]);function UN(e){return kN.has(e.tagName)||e.isContentEditable===!0}const Rb=new WeakSet;function wk(e){return A=>{A.key==="Enter"&&e(A)}}function Ap(e,A){e.dispatchEvent(new PointerEvent("pointer"+A,{isPrimary:!0,bubbles:!0}))}const DN=(e,A)=>{const t=e.currentTarget;if(!t)return;const n=wk(()=>{if(Rb.has(t))return;Ap(t,"down");const B=wk(()=>{Ap(t,"up")}),a=()=>Ap(t,"cancel");t.addEventListener("keyup",B,A),t.addEventListener("blur",a,A)});t.addEventListener("keydown",n,A),t.addEventListener("blur",()=>t.removeEventListener("keydown",n),A)};function hk(e){return $0(e)&&!uk()}const fk=new WeakSet;function FN(e,A,t={}){const[n,B,a]=Gk(e,t),i=c=>{const o=c.currentTarget;if(!hk(c)||fk.has(c))return;Rb.add(o),t.stopPropagation&&fk.add(c);const l=A(o,c),d=(C,H)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",w),Rb.has(o)&&Rb.delete(o),hk(C)&&typeof l=="function"&&l(C,{success:H})},u=C=>{d(C,o===window||o===document||t.useGlobalTarget||Qk(o,C.target))},w=C=>{d(C,!1)};window.addEventListener("pointerup",u,B),window.addEventListener("pointercancel",w,B)};return n.forEach(c=>{(t.useGlobalTarget?window:c).addEventListener("pointerdown",i,B),Tb(c)&&(c.addEventListener("focus",l=>DN(l,B)),!ZN(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),a}function ep(e){return eZ(e)&&"ownerSVGElement"in e}const Vb=new WeakMap;let Sb;const bk=(e,A,t)=>(n,B)=>B&&B[0]?B[0][e+"Size"]:ep(n)&&"getBBox"in n?n.getBBox()[A]:n[t],MN=bk("inline","width","offsetWidth"),PN=bk("block","height","offsetHeight");function xN({target:e,borderBoxSize:A}){Vb.get(e)?.forEach(t=>{t(e,{get width(){return MN(e,A)},get height(){return PN(e,A)}})})}function TN(e){e.forEach(xN)}function RN(){typeof ResizeObserver>"u"||(Sb=new ResizeObserver(TN))}function VN(e,A){Sb||RN();const t=gk(e);return t.forEach(n=>{let B=Vb.get(n);B||(B=new Set,Vb.set(n,B)),B.add(A),Sb?.observe(n)}),()=>{t.forEach(n=>{const B=Vb.get(n);B?.delete(A),B?.size||Sb?.unobserve(n)})}}const Wb=new Set;let WG;function SN(){WG=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Wb.forEach(A=>A(e))},window.addEventListener("resize",WG)}function WN(e){return Wb.add(e),WG||SN(),()=>{Wb.delete(e),!Wb.size&&typeof WG=="function"&&(window.removeEventListener("resize",WG),WG=void 0)}}function Ck(e,A){return typeof e=="function"?WN(e):VN(e,A)}function NN(e){return ep(e)&&e.tagName==="svg"}const zN=[...ik,gB,wr],LN=e=>zN.find(sk(e)),vk=()=>({translate:0,scale:1,origin:0,originPoint:0}),NG=()=>({x:vk(),y:vk()}),Ik=()=>({min:0,max:0}),EB=()=>({x:Ik(),y:Ik()}),XN=new WeakMap;function Nb(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Tw(e){return typeof e=="string"||Array.isArray(e)}const tp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],np=["initial",...tp];function zb(e){return Nb(e.animate)||np.some(A=>Tw(e[A]))}function Hk(e){return!!(zb(e)||e.variants)}function ON(e,A,t){for(const n in A){const B=A[n],a=t[n];if(sa(B))e.addValue(n,B);else if(sa(a))e.addValue(n,SG(B,{owner:e}));else if(a!==B)if(e.hasValue(n)){const i=e.getValue(n);i.liveStyle===!0?i.jump(B):i.hasAnimated||i.set(B)}else{const i=e.getStaticValue(n);e.addValue(n,SG(i!==void 0?i:B,{owner:e}))}}for(const n in t)A[n]===void 0&&e.removeValue(n);return A}const Bp={current:null},pk={current:!1},JN=typeof window<"u";function KN(){if(pk.current=!0,!!JN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),A=()=>Bp.current=e.matches;e.addEventListener("change",A),A()}else Bp.current=!1}const mk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Lb={};function Ek(e){Lb=e}function jN(){return Lb}class _N{scrapeMotionValuesFromProps(A,t,n){return{}}constructor({parent:A,props:t,presenceContext:n,reducedMotionConfig:B,skipAnimations:a,blockInitialAnimation:i,visualState:c},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=T0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const C=Ta.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,Ot.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=c;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=d,this.parent=A,this.props=t,this.presenceContext=n,this.depth=A?A.depth+1:0,this.reducedMotionConfig=B,this.skipAnimationsConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=zb(t),this.isVariantNode=Hk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(A&&A.current);const{willChange:u,...w}=this.scrapeMotionValuesFromProps(t,{},this);for(const C in w){const H=w[C];l[C]!==void 0&&sa(H)&&H.set(l[C])}}mount(A){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=A,XN.set(A,this),this.projection&&!this.projection.instance&&this.projection.mount(A),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(pk.current||KN(),this.shouldReduceMotion=Bp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),$l(this.notifyUpdate),$l(this.render),this.valueSubscriptions.forEach(A=>A()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const A in this.events)this.events[A].clear();for(const A in this.features){const t=this.features[A];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(A){this.children.add(A),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(A)}removeChild(A){this.children.delete(A),this.enteringChildren&&this.enteringChildren.delete(A)}bindToMotionValue(A,t){if(this.valueSubscriptions.has(A)&&this.valueSubscriptions.get(A)(),t.accelerate&&KZ.has(A)&&this.current instanceof HTMLElement){const{factory:i,keyframes:c,times:o,ease:l,duration:d}=t.accelerate,u=new XZ({element:this.current,name:A,keyframes:c,times:o,ease:l,duration:Os(d)}),w=i(u);this.valueSubscriptions.set(A,()=>{w(),u.cancel()});return}const n=VG.has(A);n&&this.onBindTransform&&this.onBindTransform();const B=t.on("change",i=>{this.latestValues[A]=i,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,A,t)),this.valueSubscriptions.set(A,()=>{B(),a&&a(),t.owner&&t.stop()})}sortNodePosition(A){return!this.current||!this.sortInstanceNodePosition||this.type!==A.type?0:this.sortInstanceNodePosition(this.current,A.current)}updateFeatures(){let A="animation";for(A in Lb){const t=Lb[A];if(!t)continue;const{isEnabled:n,Feature:B}=t;if(!this.features[A]&&B&&n(this.props)&&(this.features[A]=new B(this)),this.features[A]){const a=this.features[A];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):EB()}getStaticValue(A){return this.latestValues[A]}setStaticValue(A,t){this.latestValues[A]=t}update(A,t){(A.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=A,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<mk.length;n++){const B=mk[n];this.propEventSubscriptions[B]&&(this.propEventSubscriptions[B](),delete this.propEventSubscriptions[B]);const a="on"+B,i=A[a];i&&(this.propEventSubscriptions[B]=this.on(B,i))}this.prevMotionValues=ON(this,this.scrapeMotionValuesFromProps(A,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(A){return this.props.variants?this.props.variants[A]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(A){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(A),()=>t.variantChildren.delete(A)}addValue(A,t){const n=this.values.get(A);t!==n&&(n&&this.removeValue(A),this.bindToMotionValue(A,t),this.values.set(A,t),this.latestValues[A]=t.get())}removeValue(A){this.values.delete(A);const t=this.valueSubscriptions.get(A);t&&(t(),this.valueSubscriptions.delete(A)),delete this.latestValues[A],this.removeValueFromRenderState(A,this.renderState)}hasValue(A){return this.values.has(A)}getValue(A,t){if(this.props.values&&this.props.values[A])return this.props.values[A];let n=this.values.get(A);return n===void 0&&t!==void 0&&(n=SG(t===null?void 0:t,{owner:this}),this.addValue(A,n)),n}readValue(A,t){let n=this.latestValues[A]!==void 0||!this.current?this.latestValues[A]:this.getBaseTargetFromProps(this.props,A)??this.readValueFromInstance(this.current,A,this.options);return n!=null&&(typeof n=="string"&&(AZ(n)||tZ(n))?n=parseFloat(n):!LN(n)&&wr.test(t)&&(n=lk(A,t)),this.setBaseTarget(A,sa(n)?n.get():n)),sa(n)?n.get():n}setBaseTarget(A,t){this.baseTarget[A]=t}getBaseTarget(A){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const a=N0(this.props,t,this.presenceContext?.custom);a&&(n=a[A])}if(t&&n!==void 0)return n;const B=this.getBaseTargetFromProps(this.props,A);return B!==void 0&&!sa(B)?B:this.initialValues[A]!==void 0&&n===void 0?void 0:this.baseTarget[A]}on(A,t){return this.events[A]||(this.events[A]=new d0),this.events[A].add(t)}notify(A,...t){this.events[A]&&this.events[A].notify(...t)}scheduleRenderMicrotask(){q0.render(this.render)}}class yk extends _N{constructor(){super(...arguments),this.KeyframeResolver=pN}sortInstanceNodePosition(A,t){return A.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(A,t){const n=A.style;return n?n[t]:void 0}removeValueFromRenderState(A,{vars:t,style:n}){delete t[A],delete n[A]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:A}=this.props;sa(A)&&(this.childSubscription=A.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class tg{constructor(A){this.isMounted=!1,this.node=A}update(){}}function Yk({top:e,left:A,right:t,bottom:n}){return{x:{min:A,max:t},y:{min:e,max:n}}}function qN({x:e,y:A}){return{top:A.min,right:e.max,bottom:A.max,left:e.min}}function $N(e,A){if(!A)return e;const t=A({x:e.left,y:e.top}),n=A({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function ap(e){return e===void 0||e===1}function sp({scale:e,scaleX:A,scaleY:t}){return!ap(e)||!ap(A)||!ap(t)}function qd(e){return sp(e)||Zk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zk(e){return kk(e.x)||kk(e.y)}function kk(e){return e&&e!=="0%"}function Xb(e,A,t){const n=e-t,B=A*n;return t+B}function Uk(e,A,t,n,B){return B!==void 0&&(e=Xb(e,B,n)),Xb(e,t,n)+A}function ip(e,A=0,t=1,n,B){e.min=Uk(e.min,A,t,n,B),e.max=Uk(e.max,A,t,n,B)}function Dk(e,{x:A,y:t}){ip(e.x,A.translate,A.scale,A.originPoint),ip(e.y,t.translate,t.scale,t.originPoint)}const Fk=.999999999999,Mk=1.0000000000001;function Az(e,A,t,n=!1){const B=t.length;if(!B)return;A.x=A.y=1;let a,i;for(let c=0;c<B;c++){a=t[c],i=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&o.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(mc(e.x,-a.scroll.offset.x),mc(e.y,-a.scroll.offset.y)),i&&(A.x*=i.x.scale,A.y*=i.y.scale,Dk(e,i)),n&&qd(a.latestValues)&&Ob(e,a.latestValues,a.layout?.layoutBox))}A.x<Mk&&A.x>Fk&&(A.x=1),A.y<Mk&&A.y>Fk&&(A.y=1)}function mc(e,A){e.min+=A,e.max+=A}function Pk(e,A,t,n,B=.5){const a=cn(e.min,e.max,B);ip(e,A,t,a,n)}function xk(e,A){return typeof e=="string"?parseFloat(e)/100*(A.max-A.min):e}function Ob(e,A,t){const n=t??e;Pk(e.x,xk(A.x,n.x),A.scaleX,A.scale,A.originX),Pk(e.y,xk(A.y,n.y),A.scaleY,A.scale,A.originY)}function Tk(e,A){return Yk($N(e.getBoundingClientRect(),A))}function ez(e,A,t){const n=Tk(e,t),{scroll:B}=A;return B&&(mc(n.x,B.offset.x),mc(n.y,B.offset.y)),n}const tz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nz=RG.length;function Bz(e,A,t){let n="",B=!0;for(let a=0;a<nz;a++){const i=RG[a],c=e[i];if(c===void 0)continue;let o=!0;if(typeof c=="number")o=c===(i.startsWith("scale")?1:0);else{const l=parseFloat(c);o=i.startsWith("scale")?l===1:l===0}if(!o||t){const l=dk(c,_0[i]);if(!o){B=!1;const d=tz[i]||i;n+=`${d}(${l}) `}t&&(A[i]=l)}}return n=n.trim(),t?n=t(A,B?"":n):B&&(n="none"),n}function rp(e,A,t){const{style:n,vars:B,transformOrigin:a}=e;let i=!1,c=!1;for(const o in A){const l=A[o];if(VG.has(o)){i=!0;continue}else if(hZ(o)){B[o]=l;continue}else{const d=dk(l,_0[o]);o.startsWith("origin")?(c=!0,a[o]=d):n[o]=d}}if(A.transform||(i||t?n.transform=Bz(A,e.transform,t):n.transform&&(n.transform="none")),c){const{originX:o="50%",originY:l="50%",originZ:d=0}=a;n.transformOrigin=`${o} ${l} ${d}`}}function Rk(e,{style:A,vars:t},n,B){const a=e.style;let i;for(i in A)a[i]=A[i];B?.applyProjectionStyles(a,n);for(i in t)a.setProperty(i,t[i])}function Vk(e,A){return A.max===A.min?0:e/(A.max-A.min)*100}const Rw={correct:(e,A)=>{if(!A.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const t=Vk(e,A.target.x),n=Vk(e,A.target.y);return`${t}% ${n}%`}},az={correct:(e,{treeScale:A,projectionDelta:t})=>{const n=e,B=wr.parse(e);if(B.length>5)return n;const a=wr.createTransformer(e),i=typeof B[0]!="number"?1:0,c=t.x.scale*A.x,o=t.y.scale*A.y;B[0+i]/=c,B[1+i]/=o;const l=cn(c,o,.5);return typeof B[2+i]=="number"&&(B[2+i]/=l),typeof B[3+i]=="number"&&(B[3+i]/=l),a(B)}},cp={borderRadius:{...Rw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rw,borderTopRightRadius:Rw,borderBottomLeftRadius:Rw,borderBottomRightRadius:Rw,boxShadow:az};function Sk(e,{layout:A,layoutId:t}){return VG.has(e)||e.startsWith("origin")||(A||t!==void 0)&&(!!cp[e]||e==="opacity")}function op(e,A,t){const n=e.style,B=A?.style,a={};if(!n)return a;for(const i in n)(sa(n[i])||B&&sa(B[i])||Sk(i,e)||t?.getValue(i)?.liveStyle!==void 0)&&(a[i]=n[i]);return a}function sz(e){return window.getComputedStyle(e)}class iz extends yk{constructor(){super(...arguments),this.type="html",this.renderInstance=Rk}readValueFromInstance(A,t){if(VG.has(t))return this.projection?.isProjecting?D0(t):k5(A,t);{const n=sz(A),B=(hZ(t)?n.getPropertyValue(t):n[t])||0;return typeof B=="string"?B.trim():B}}measureInstanceViewportBox(A,{transformPagePoint:t}){return Tk(A,t)}build(A,t,n){rp(A,t,n.transformTemplate)}scrapeMotionValuesFromProps(A,t,n){return op(A,t,n)}}const rz={offset:"stroke-dashoffset",array:"stroke-dasharray"},cz={offset:"strokeDashoffset",array:"strokeDasharray"};function oz(e,A,t=1,n=0,B=!0){e.pathLength=1;const a=B?rz:cz;e[a.offset]=`${-n}`,e[a.array]=`${A} ${t}`}const lz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wk(e,{attrX:A,attrY:t,attrScale:n,pathLength:B,pathSpacing:a=1,pathOffset:i=0,...c},o,l,d){if(rp(e,c,l),o){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:w}=e;u.transform&&(w.transform=u.transform,delete u.transform),(w.transform||u.transformOrigin)&&(w.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),w.transform&&(w.transformBox=d?.transformBox??"fill-box",delete u.transformBox);for(const C of lz)u[C]!==void 0&&(w[C]=u[C],delete u[C]);A!==void 0&&(u.x=A),t!==void 0&&(u.y=t),n!==void 0&&(u.scale=n),B!==void 0&&oz(u,B,a,i,!1)}const Nk=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"]),zk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gz(e,A,t,n){Rk(e,A,void 0,n);for(const B in A.attrs)e.setAttribute(Nk.has(B)?B:O0(B),A.attrs[B])}function Lk(e,A,t){const n=op(e,A,t);for(const B in e)if(sa(e[B])||sa(A[B])){const a=RG.indexOf(B)!==-1?"attr"+B.charAt(0).toUpperCase()+B.substring(1):B;n[a]=e[B]}return n}class dz extends yk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=EB}getBaseTargetFromProps(A,t){return A[t]}readValueFromInstance(A,t){if(VG.has(t)){const n=ok(t);return n&&n.default||0}return t=Nk.has(t)?t:O0(t),A.getAttribute(t)}scrapeMotionValuesFromProps(A,t,n){return Lk(A,t,n)}build(A,t,n){Wk(A,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(A,t,n,B){gz(A,t,n,B)}mount(A){this.isSVGTag=zk(A.tagName),super.mount(A)}}const uz=np.length;function Xk(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent?Xk(e.parent)||{}:{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}const A={};for(let t=0;t<uz;t++){const n=np[t],B=e.props[n];(Tw(B)||B===!1)&&(A[n]=B)}return A}function Ok(e,A){if(!Array.isArray(A))return!1;const t=A.length;if(t!==e.length)return!1;for(let n=0;n<t;n++)if(A[n]!==e[n])return!1;return!0}const Gz=[...tp].reverse(),Qz=tp.length;function wz(e){return A=>Promise.all(A.map(({animation:t,options:n})=>ak(e,t,n)))}function hz(e){let A=wz(e),t=Jk(),n=!0,B=!1;const a=l=>(d,u)=>{const w=_d(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(w){const{transition:C,transitionEnd:H,...Y}=w;d={...d,...Y,...H}}return d};function i(l){A=l(e)}function c(l){const{props:d}=e,u=Xk(e.parent)||{},w=[],C=new Set;let H={},Y=1/0;for(let Z=0;Z<Qz;Z++){const T=Gz[Z],R=t[T],V=d[T]!==void 0?d[T]:u[T],F=Tw(V),S=T===l?R.isActive:null;S===!1&&(Y=Z);let K=V===u[T]&&V!==d[T]&&F;if(K&&(n||B)&&e.manuallyAnimateOnMount&&(K=!1),R.protectedKeys={...H},!R.isActive&&S===null||!V&&!R.prevProp||Nb(V)||typeof V=="boolean")continue;if(T==="exit"&&R.isActive&&S!==!0){R.prevResolvedValues&&(H={...H,...R.prevResolvedValues});continue}const J=fz(R.prevProp,V);let eA=J||T===l&&R.isActive&&!K&&F||Z>Y&&F,BA=!1;const oA=Array.isArray(V)?V:[V];let gA=oA.reduce(a(T),{});S===!1&&(gA={});const{prevResolvedValues:mA={}}=R,EA={...mA,...gA},UA=iA=>{eA=!0,C.has(iA)&&(BA=!0,C.delete(iA)),R.needsAnimating[iA]=!0;const OA=e.getValue(iA);OA&&(OA.liveStyle=!1)};for(const iA in EA){const OA=gA[iA],tA=mA[iA];if(H.hasOwnProperty(iA))continue;let N=!1;z0(OA)&&z0(tA)?N=!Ok(OA,tA):N=OA!==tA,N?OA!=null?UA(iA):C.add(iA):OA!==void 0&&C.has(iA)?UA(iA):R.protectedKeys[iA]=!0}R.prevProp=V,R.prevResolvedValues=gA,R.isActive&&(H={...H,...gA}),(n||B)&&e.blockInitialAnimation&&(eA=!1);const L=K&&J;eA&&(!L||BA)&&w.push(...oA.map(iA=>{const OA={type:T};if(typeof iA=="string"&&(n||B)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:tA}=e,N=_d(tA,iA);if(tA.enteringChildren&&N){const{delayChildren:uA}=N.transition||{};OA.delay=jZ(tA.enteringChildren,e,uA)}}return{animation:iA,options:OA}}))}if(C.size){const Z={};if(typeof d.initial!="boolean"){const T=_d(e,Array.isArray(d.initial)?d.initial[0]:d.initial);T&&T.transition&&(Z.transition=T.transition)}C.forEach(T=>{const R=e.getBaseTarget(T),V=e.getValue(T);V&&(V.liveStyle=!0),Z[T]=R??null}),w.push({animation:Z})}let y=!!w.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,B=!1,y?A(w):Promise.resolve()}function o(l,d){if(t[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(w=>w.animationState?.setActive(l,d)),t[l].isActive=d;const u=c(l);for(const w in t)t[w].protectedKeys={};return u}return{animateChanges:c,setActive:o,setAnimateFunction:i,getState:()=>t,reset:()=>{t=Jk(),B=!0}}}function fz(e,A){return typeof A=="string"?A!==e:Array.isArray(A)?!Ok(A,e):!1}function $d(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jk(){return{animate:$d(!0),whileInView:$d(),whileHover:$d(),whileTap:$d(),whileDrag:$d(),whileFocus:$d(),exit:$d()}}function lp(e,A){e.min=A.min,e.max=A.max}function fr(e,A){lp(e.x,A.x),lp(e.y,A.y)}function Kk(e,A){e.translate=A.translate,e.scale=A.scale,e.originPoint=A.originPoint,e.origin=A.origin}const jk=1e-4,bz=1-jk,Cz=1+jk,_k=.01,vz=0-_k,Iz=0+_k;function Ra(e){return e.max-e.min}function Hz(e,A,t){return Math.abs(e-A)<=t}function qk(e,A,t,n=.5){e.origin=n,e.originPoint=cn(A.min,A.max,e.origin),e.scale=Ra(t)/Ra(A),e.translate=cn(t.min,t.max,e.origin)-e.originPoint,(e.scale>=bz&&e.scale<=Cz||isNaN(e.scale))&&(e.scale=1),(e.translate>=vz&&e.translate<=Iz||isNaN(e.translate))&&(e.translate=0)}function Vw(e,A,t,n){qk(e.x,A.x,t.x,n?n.originX:void 0),qk(e.y,A.y,t.y,n?n.originY:void 0)}function $k(e,A,t,n=0){const B=n?cn(t.min,t.max,n):t.min;e.min=B+A.min,e.max=e.min+Ra(A)}function pz(e,A,t,n){$k(e.x,A.x,t.x,n?.x),$k(e.y,A.y,t.y,n?.y)}function AU(e,A,t,n=0){const B=n?cn(t.min,t.max,n):t.min;e.min=A.min-B,e.max=e.min+Ra(A)}function Jb(e,A,t,n){AU(e.x,A.x,t.x,n?.x),AU(e.y,A.y,t.y,n?.y)}function eU(e,A,t,n,B){return e-=A,e=Xb(e,1/t,n),B!==void 0&&(e=Xb(e,1/B,n)),e}function mz(e,A=0,t=1,n=.5,B,a=e,i=e){if(pc.test(A)&&(A=parseFloat(A),A=cn(i.min,i.max,A/100)-i.min),typeof A!="number")return;let c=cn(a.min,a.max,n);e===a&&(c-=A),e.min=eU(e.min,A,t,c,B),e.max=eU(e.max,A,t,c,B)}function tU(e,A,[t,n,B],a,i){mz(e,A[t],A[n],A[B],A.scale,a,i)}const Ez=["x","scaleX","originX"],yz=["y","scaleY","originY"];function nU(e,A,t,n){tU(e.x,A,Ez,t?t.x:void 0,n?n.x:void 0),tU(e.y,A,yz,t?t.y:void 0,n?n.y:void 0)}function BU(e){return e.translate===0&&e.scale===1}function aU(e){return BU(e.x)&&BU(e.y)}function sU(e,A){return e.min===A.min&&e.max===A.max}function Yz(e,A){return sU(e.x,A.x)&&sU(e.y,A.y)}function iU(e,A){return Math.round(e.min)===Math.round(A.min)&&Math.round(e.max)===Math.round(A.max)}function rU(e,A){return iU(e.x,A.x)&&iU(e.y,A.y)}function cU(e){return Ra(e.x)/Ra(e.y)}function oU(e,A){return e.translate===A.translate&&e.scale===A.scale&&e.originPoint===A.originPoint}function Ec(e){return[e("x"),e("y")]}function Zz(e,A,t){let n="";const B=e.x.translate/A.x,a=e.y.translate/A.y,i=t?.z||0;if((B||a||i)&&(n=`translate3d(${B}px, ${a}px, ${i}px) `),(A.x!==1||A.y!==1)&&(n+=`scale(${1/A.x}, ${1/A.y}) `),t){const{transformPerspective:l,rotate:d,rotateX:u,rotateY:w,skewX:C,skewY:H}=t;l&&(n=`perspective(${l}px) ${n}`),d&&(n+=`rotate(${d}deg) `),u&&(n+=`rotateX(${u}deg) `),w&&(n+=`rotateY(${w}deg) `),C&&(n+=`skewX(${C}deg) `),H&&(n+=`skewY(${H}deg) `)}const c=e.x.scale*A.x,o=e.y.scale*A.y;return(c!==1||o!==1)&&(n+=`scale(${c}, ${o})`),n||"none"}const lU=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],kz=lU.length,gU=e=>typeof e=="string"?parseFloat(e):e,dU=e=>typeof e=="number"||ae.test(e);function Uz(e,A,t,n,B,a){B?(e.opacity=cn(0,t.opacity??1,Dz(n)),e.opacityExit=cn(A.opacity??1,0,Fz(n))):a&&(e.opacity=cn(A.opacity??1,t.opacity??1,n));for(let i=0;i<kz;i++){const c=lU[i];let o=uU(A,c),l=uU(t,c);if(o===void 0&&l===void 0)continue;o||(o=0),l||(l=0),o===0||l===0||dU(o)===dU(l)?(e[c]=Math.max(cn(gU(o),gU(l),n),0),(pc.test(l)||pc.test(o))&&(e[c]+="%")):e[c]=l}(A.rotate||t.rotate)&&(e.rotate=cn(A.rotate||0,t.rotate||0,n))}function uU(e,A){return e[A]!==void 0?e[A]:e.borderRadius}const Dz=GU(0,.5,lZ),Fz=GU(.5,.95,Yi);function GU(e,A,t){return n=>n<e?0:n>A?1:t(kw(e,A,n))}function Mz(e,A,t){const n=sa(e)?e:SG(e);return n.start(W0("",n,A,t)),n.animation}function Sw(e,A,t,n={passive:!0}){return e.addEventListener(A,t,n),()=>e.removeEventListener(A,t)}const Pz=(e,A)=>e.depth-A.depth;class xz{constructor(){this.children=[],this.isDirty=!1}add(A){l0(this.children,A),this.isDirty=!0}remove(A){Yb(this.children,A),this.isDirty=!0}forEach(A){this.isDirty&&this.children.sort(Pz),this.isDirty=!1,this.children.forEach(A)}}function Tz(e,A){const t=Ta.now(),n=({timestamp:B})=>{const a=B-t;a>=A&&($l(n),e(a-A))};return Ot.setup(n,!0),()=>$l(n)}function Kb(e){return sa(e)?e.get():e}class Rz{constructor(){this.members=[]}add(A){l0(this.members,A);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===A||n===this.lead||n===this.prevLead)continue;const B=n.instance;(!B||B.isConnected===!1)&&!n.snapshot&&(Yb(this.members,n),n.unmount())}A.scheduleRender()}remove(A){if(Yb(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(A){for(let t=this.members.indexOf(A)-1;t>=0;t--){const n=this.members[t];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(A,t){const n=this.lead;if(A!==n&&(this.prevLead=n,this.lead=A,A.show(),n)){n.updateSnapshot(),A.scheduleRender();const{layoutDependency:B}=n.options,{layoutDependency:a}=A.options;(B===void 0||B!==a)&&(A.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(A.snapshot=n.snapshot,A.snapshot.latestValues=n.animationValues||n.latestValues),A.root?.isUpdating&&(A.isLayoutDirty=!0)),A.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(A=>{A.options.onExitComplete?.(),A.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(A=>A.instance&&A.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const jb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gp=["","X","Y","Z"],Vz=1e3;let Sz=0;function dp(e,A,t,n){const{latestValues:B}=A;B[e]&&(t[e]=B[e],A.setStaticValue(e,0),n&&(n[e]=0))}function QU(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:A}=e.options;if(!A)return;const t=nk(A);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:B,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(t,"transform",Ot,!(B||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&QU(n)}function wU({attachResizeListener:e,defaultParent:A,measureScroll:t,checkIsScrollRoot:n,resetTransform:B}){return class{constructor(i={},c=A?.()){this.id=Sz++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zz),this.nodes.forEach(jz),this.nodes.forEach(_z),this.nodes.forEach(Lz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new xz)}addEventListener(i,c){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new d0),this.eventHandlers.get(i).add(c)}notifyListeners(i,...c){const o=this.eventHandlers.get(i);o&&o.notify(...c)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=ep(i)&&!NN(i),this.instance=i;const{layoutId:c,layout:o,visualElement:l}=this.options;if(l&&!l.current&&l.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||c)&&(this.isLayoutDirty=!0),e){let d,u=0;const w=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{u=window.innerWidth}),e(i,()=>{const C=window.innerWidth;C!==u&&(u=C,this.root.updateBlockedByResize=!0,d&&d(),d=Tz(w,250),jb.hasAnimatedSinceResize&&(jb.hasAnimatedSinceResize=!1,this.nodes.forEach(bU)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&l&&(c||o)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:w,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const H=this.options.transition||l.getDefaultTransition()||tL,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:y}=l.getProps(),Z=!this.targetLayout||!rU(this.targetLayout,C),T=!u&&w;if(this.options.layoutRoot||this.resumeFrom||T||u&&(Z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...S0(H,"layout"),onPlay:Y,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(d,T)}else u||bU(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$l(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(qz),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&QU(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,(typeof u.latestValues.x=="string"||typeof u.latestValues.y=="string")&&(u.isLayoutDirty=!0),u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:c,layout:o}=this.options;if(c===void 0&&!o)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const o=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),o&&this.nodes.forEach(Oz),this.nodes.forEach(hU);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fU);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Jz),this.nodes.forEach(Kz),this.nodes.forEach(Wz),this.nodes.forEach(Nz)):this.nodes.forEach(fU),this.clearAllSnapshots();const c=Ta.now();aa.delta=Hc(0,1e3/60,c-aa.timestamp),aa.timestamp=c,aa.isProcessing=!0,Q0.update.process(aa),Q0.preRender.process(aa),Q0.render.process(aa),aa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,q0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xz),this.sharedNodes.forEach($z)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ra(this.snapshot.measuredBox.x)&&!Ra(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let o=0;o<this.path.length;o++)this.path[o].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=EB()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(c=!1),c&&this.instance){const o=n(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:o,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:o}}}resetTransform(){if(!B)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!aU(this.projectionDelta),o=this.getTransformTemplate(),l=o?o(this.latestValues,""):void 0,d=l!==this.prevTransformTemplateValue;i&&this.instance&&(c||qd(this.latestValues)||d)&&(B(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const c=this.measurePageBox();let o=this.removeElementScroll(c);return i&&(o=this.removeTransform(o)),nL(o),{animationId:this.root.animationId,measuredBox:c,layoutBox:o,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return EB();const c=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(BL))){const{scroll:l}=this.root;l&&(mc(c.x,l.offset.x),mc(c.y,l.offset.y))}return c}removeElementScroll(i){const c=EB();if(fr(c,i),this.scroll?.wasRoot)return c;for(let o=0;o<this.path.length;o++){const l=this.path[o],{scroll:d,options:u}=l;l!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&fr(c,i),mc(c.x,d.offset.x),mc(c.y,d.offset.y))}return c}applyTransform(i,c=!1,o){const l=o||EB();fr(l,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!c&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(mc(l.x,-u.scroll.offset.x),mc(l.y,-u.scroll.offset.y)),qd(u.latestValues)&&Ob(l,u.latestValues,u.layout?.layoutBox)}return qd(this.latestValues)&&Ob(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(i){const c=EB();fr(c,i);for(let o=0;o<this.path.length;o++){const l=this.path[o];if(!qd(l.latestValues))continue;let d;l.instance&&(sp(l.latestValues)&&l.updateSnapshot(),d=EB(),fr(d,l.measurePageBox())),nU(c,l.latestValues,l.snapshot?.layoutBox,d)}return qd(this.latestValues)&&nU(c,this.latestValues),c}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==aa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const o=!!this.resumingFrom||this!==c;if(!(i||o&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=aa.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=EB(),this.targetWithTransforms=EB()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pz(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):fr(this.target,this.layout.layoutBox),Dk(this.target,this.targetDelta)):fr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||sp(this.parent.latestValues)||Zk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,c,o){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=EB(),this.relativeTargetOrigin=EB(),Jb(this.relativeTargetOrigin,c,o,this.options.layoutAnchor||void 0),fr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),c=!!this.resumingFrom||this!==i;let o=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(o=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===aa.timestamp&&(o=!1),o)return;const{layout:l,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||d))return;fr(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,w=this.treeScale.y;Az(this.layoutCorrected,this.treeScale,this.path,c),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=EB());const{target:C}=i;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Kk(this.prevProjectionDelta.x,this.projectionDelta.x),Kk(this.prevProjectionDelta.y,this.projectionDelta.y)),Vw(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==w||!oU(this.projectionDelta.x,this.prevProjectionDelta.x)||!oU(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=NG(),this.projectionDelta=NG(),this.projectionDeltaWithTransform=NG()}setAnimationOrigin(i,c=!1){const o=this.snapshot,l=o?o.latestValues:{},d={...this.latestValues},u=NG();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const w=EB(),C=o?o.source:void 0,H=this.layout?this.layout.source:void 0,Y=C!==H,y=this.getStack(),Z=!y||y.members.length<=1,T=!!(Y&&!Z&&this.options.crossfade===!0&&!this.path.some(eL));this.animationProgress=0;let R;this.mixTargetDelta=V=>{const F=V/1e3;CU(u.x,i.x,F),CU(u.y,i.y,F),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jb(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),AL(this.relativeTarget,this.relativeTargetOrigin,w,F),R&&Yz(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=EB()),fr(R,this.relativeTarget)),Y&&(this.animationValues=d,Uz(d,l,this.latestValues,F,T,Z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&($l(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{jb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=SG(0)),this.motionValue.jump(0,!1),this.currentAnimation=Mz(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),i.onUpdate&&i.onUpdate(c)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:c,target:o,layout:l,latestValues:d}=i;if(!(!c||!o||!l)){if(this!==i&&this.layout&&l&&mU(this.options.animationType,this.layout.layoutBox,l.layoutBox)){o=this.target||EB();const u=Ra(this.layout.layoutBox.x);o.x.min=i.target.x.min,o.x.max=o.x.min+u;const w=Ra(this.layout.layoutBox.y);o.y.min=i.target.y.min,o.y.max=o.y.min+w}fr(c,o),Ob(c,d),Vw(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(i,c){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Rz),this.sharedNodes.get(i).add(c);const l=c.options.initialPromotionConfig;c.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(c):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:c,preserveFollowOpacity:o}={}){const l=this.getStack();l&&l.promote(this,o),i&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let c=!1;const{latestValues:o}=i;if((o.z||o.rotate||o.rotateX||o.rotateY||o.rotateZ||o.skewX||o.skewY)&&(c=!0),!c)return;const l={};o.z&&dp("z",i,l,this.animationValues);for(let d=0;d<gp.length;d++)dp(`rotate${gp[d]}`,i,l,this.animationValues),dp(`skew${gp[d]}`,i,l,this.animationValues);i.render();for(const d in l)i.setStaticValue(d,l[d]),this.animationValues&&(this.animationValues[d]=l[d]);i.scheduleRender()}applyProjectionStyles(i,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const o=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Kb(c?.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Kb(c?.pointerEvents)||""),this.hasProjected&&!qd(this.latestValues)&&(i.transform=o?o({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=l.animationValues||l.latestValues;this.applyTransformsToTarget();let u=Zz(this.projectionDeltaWithTransform,this.treeScale,d);o&&(u=o(d,u)),i.transform=u;const{x:w,y:C}=this.projectionDelta;i.transformOrigin=`${w.origin*100}% ${C.origin*100}% 0`,l.animationValues?i.opacity=l===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=l===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const H in cp){if(d[H]===void 0)continue;const{correct:Y,applyTo:y,isCSSVariable:Z}=cp[H],T=u==="none"?d[H]:Y(d[H],l);if(y){const R=y.length;for(let V=0;V<R;V++)i[y[V]]=T}else Z?this.options.visualElement.renderState.vars[H]=T:i[H]=T}this.options.layoutId&&(i.pointerEvents=l===this?Kb(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(hU),this.root.sharedNodes.clear()}}}function Wz(e){e.updateLayout()}function Nz(e){const A=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&A&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:B}=e.options,a=A.source!==e.layout.source;if(B==="size")Ec(d=>{const u=a?A.measuredBox[d]:A.layoutBox[d],w=Ra(u);u.min=t[d].min,u.max=u.min+w});else if(B==="x"||B==="y"){const d=B==="x"?"y":"x";lp(a?A.measuredBox[d]:A.layoutBox[d],t[d])}else mU(B,A.layoutBox,t)&&Ec(d=>{const u=a?A.measuredBox[d]:A.layoutBox[d],w=Ra(t[d]);u.max=u.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+w)});const i=NG();Vw(i,t,A.layoutBox);const c=NG();a?Vw(c,e.applyTransform(n,!0),A.measuredBox):Vw(c,t,A.layoutBox);const o=!aU(i);let l=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:w}=d;if(u&&w){const C=e.options.layoutAnchor||void 0,H=EB();Jb(H,A.layoutBox,u.layoutBox,C);const Y=EB();Jb(Y,t,w.layoutBox,C),rU(H,Y)||(l=!0),d.options.layoutRoot&&(e.relativeTarget=Y,e.relativeTargetOrigin=H,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:A,delta:c,layoutDelta:i,hasLayoutChanged:o,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function zz(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Lz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xz(e){e.clearSnapshot()}function hU(e){e.clearMeasurements()}function Oz(e){e.isLayoutDirty=!0,e.updateLayout()}function fU(e){e.isLayoutDirty=!1}function Jz(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Kz(e){const{visualElement:A}=e.options;A&&A.getProps().onBeforeLayoutMeasure&&A.notify("BeforeLayoutMeasure"),e.resetTransform()}function bU(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jz(e){e.resolveTargetDelta()}function _z(e){e.calcProjection()}function qz(e){e.resetSkewAndRotation()}function $z(e){e.removeLeadSnapshot()}function CU(e,A,t){e.translate=cn(A.translate,0,t),e.scale=cn(A.scale,1,t),e.origin=A.origin,e.originPoint=A.originPoint}function vU(e,A,t,n){e.min=cn(A.min,t.min,n),e.max=cn(A.max,t.max,n)}function AL(e,A,t,n){vU(e.x,A.x,t.x,n),vU(e.y,A.y,t.y,n)}function eL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tL={duration:.45,ease:[.4,0,.1,1]},IU=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),HU=IU("applewebkit/")&&!IU("chrome/")?Math.round:Yi;function pU(e){e.min=HU(e.min),e.max=HU(e.max)}function nL(e){pU(e.x),pU(e.y)}function mU(e,A,t){return e==="position"||e==="preserve-aspect"&&!Hz(cU(A),cU(t),.2)}function BL(e){return e!==e.root&&e.scroll?.wasRoot}const aL=wU({attachResizeListener:(e,A)=>Sw(e,"resize",A),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),up={current:void 0},EU=wU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!up.current){const e=new aL({});e.mount(window),e.setOptions({layoutScroll:!0}),up.current=e}return up.current},resetTransform:(e,A)=>{e.style.transform=A!==void 0?A:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gp=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yU(e,A){if(typeof e=="function")return e(A);e!=null&&(e.current=A)}function sL(...e){return A=>{let t=!1;const n=e.map(B=>{const a=yU(B,A);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let B=0;B<n.length;B++){const a=n[B];typeof a=="function"?a():yU(e[B],null)}}}}function iL(...e){return x.useCallback(sL(...e),e)}class rL extends x.Component{getSnapshotBeforeUpdate(A){const t=this.props.childRef.current;if(Tb(t)&&A.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=t.offsetParent,B=Tb(n)&&n.offsetWidth||0,a=Tb(n)&&n.offsetHeight||0,i=getComputedStyle(t),c=this.props.sizeRef.current;c.height=parseFloat(i.height),c.width=parseFloat(i.width),c.top=t.offsetTop,c.left=t.offsetLeft,c.right=B-c.width-c.left,c.bottom=a-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}}function cL({children:e,isPresent:A,anchorX:t,anchorY:n,root:B,pop:a}){const i=x.useId(),c=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=x.useContext(Gp),d=e.props?.ref??e?.ref,u=iL(c,d);return x.useInsertionEffect(()=>{const{width:w,height:C,top:H,left:Y,right:y,bottom:Z}=o.current;if(A||a===!1||!c.current||!w||!C)return;const T=t==="left"?`left: ${Y}`:`right: ${y}`,R=n==="bottom"?`bottom: ${Z}`:`top: ${H}`;c.current.dataset.motionPopId=i;const V=document.createElement("style");l&&(V.nonce=l);const F=B??document.head;return F.appendChild(V),V.sheet&&V.sheet.insertRule(`
56
+ Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let d=vc(),u;if(A){let y=typeof A=="string"?Xd(A):A;Fn(o==="/"||y.pathname?.startsWith(o),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${o}" but pathname "${y.pathname}" was given in the \`location\` prop.`),u=y}else u=d;let w=u.pathname||"/",C=w;if(o!=="/"){let y=o.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(y.length).join("/")}let H=UY(e,{pathname:C});Gr(l||H!=null,`No routes matched location "${u.pathname}${u.search}${u.hash}" `),Gr(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${u.pathname}${u.search}${u.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let Y=M8(H&&H.map(y=>Object.assign({},y,{params:Object.assign({},i,y.params),pathname:Cc([o,n.encodeLocation?n.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?o:Cc([o,n.encodeLocation?n.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),B,t);return A&&Y?x.createElement(pw.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...u},navigationType:"POP"}},Y):Y}function k8(){let e=V8(),A=h8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",B={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:a},"ErrorBoundary")," or"," ",x.createElement("code",{style:a},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},A),t?x.createElement("pre",{style:B},t):null,i)}var U8=x.createElement(k8,null),OY=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,A){return A.location!==e.location||A.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:A.error,location:A.location,revalidation:e.revalidation||A.revalidation}}componentDidCatch(e,A){this.props.onError?this.props.onError(e,A):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const t=E8(e.digest);t&&(e=t)}let A=e!==void 0?x.createElement(Do.Provider,{value:this.props.routeContext},x.createElement(KH.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(D8,{error:e},A):A}};OY.contextType=SY;var jH=new WeakMap;function D8({children:e,error:A}){let{basename:t}=x.useContext(yi);if(typeof A=="object"&&A&&"digest"in A&&typeof A.digest=="string"){let n=m8(A.digest);if(n){let B=jH.get(A);if(B)throw B;let a=RY(n.location,t);if(TY&&!jH.get(A))if(a.isExternal||n.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const i=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:n.replace}));throw jH.set(A,i),i}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function F8({routeContext:e,match:A,children:t}){let n=x.useContext(MG);return n&&n.static&&n.staticContext&&(A.route.errorElement||A.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=A.route.id),x.createElement(Do.Provider,{value:e},t)}function M8(e,A=[],t){let n=t?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(A.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let B=e,a=n?.errors;if(a!=null){let d=B.findIndex(u=>u.route.id&&a?.[u.route.id]!==void 0);Fn(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),B=B.slice(0,Math.min(B.length,d+1))}let i=!1,c=-1;if(t&&n){i=n.renderFallback;for(let d=0;d<B.length;d++){let u=B[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:w,errors:C}=n,H=u.route.loader&&!w.hasOwnProperty(u.route.id)&&(!C||C[u.route.id]===void 0);if(u.route.lazy||H){t.isStatic&&(i=!0),c>=0?B=B.slice(0,c+1):B=[B[0]];break}}}}let o=t?.onError,l=n&&o?(d,u)=>{o(d,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:f8(n.matches),errorInfo:u})}:void 0;return B.reduceRight((d,u,w)=>{let C,H=!1,Y=null,y=null;n&&(C=a&&u.route.id?a[u.route.id]:void 0,Y=u.route.errorElement||U8,i&&(c<0&&w===0?(KY("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,y=null):c===w&&(H=!0,y=u.route.hydrateFallbackElement||null)));let Z=A.concat(B.slice(0,w+1)),T=()=>{let R;return C?R=Y:H?R=y:u.route.Component?R=x.createElement(u.route.Component,null):u.route.element?R=u.route.element:R=d,x.createElement(F8,{match:u,routeContext:{outlet:d,matches:Z,isDataRoute:n!=null},children:R})};return n&&(u.route.ErrorBoundary||u.route.errorElement||w===0)?x.createElement(OY,{location:n.location,revalidation:n.revalidation,component:Y,error:C,children:T(),routeContext:{outlet:null,matches:Z,isDataRoute:!0},onError:l}):T()},null)}function _H(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function P8(e){let A=x.useContext(MG);return Fn(A,_H(e)),A}function x8(e){let A=x.useContext(bb);return Fn(A,_H(e)),A}function T8(e){let A=x.useContext(Do);return Fn(A,_H(e)),A}function qH(e){let A=T8(e),t=A.matches[A.matches.length-1];return Fn(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function R8(){return qH("useRouteId")}function V8(){let e=x.useContext(KH),A=x8("useRouteError"),t=qH("useRouteError");return e!==void 0?e:A.errors?.[t]}function S8(){let{router:e}=P8("useNavigate"),A=qH("useNavigate"),t=x.useRef(!1);return LY(()=>{t.current=!0}),x.useCallback(async(B,a={})=>{Gr(t.current,zY),t.current&&(typeof B=="number"?await e.navigate(B):await e.navigate(B,{fromRouteId:A,...a}))},[e,A])}var JY={};function KY(e,A,t){!A&&!JY[e]&&(JY[e]=!0,Gr(!1,t))}x.memo(W8);function W8({routes:e,future:A,state:t,isStatic:n,onError:B}){return XY(e,void 0,{state:t,isStatic:n,onError:B})}function N8({basename:e,children:A,initialEntries:t,initialIndex:n,unstable_useTransitions:B}){let a=x.useRef();a.current==null&&(a.current=KS({initialEntries:t,initialIndex:n,v5Compat:!0}));let i=a.current,[c,o]=x.useState({action:i.action,location:i.location}),l=x.useCallback(d=>{B===!1?o(d):x.startTransition(()=>o(d))},[B]);return x.useLayoutEffect(()=>i.listen(l),[i,l]),x.createElement(z8,{basename:e,children:A,location:c.location,navigationType:c.action,navigator:i,unstable_useTransitions:B})}function Ic(e){Fn(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function z8({basename:e="/",children:A=null,location:t,navigationType:n="POP",navigator:B,static:a=!1,unstable_useTransitions:i}){Fn(!mw(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),o=x.useMemo(()=>({basename:c,navigator:B,static:a,unstable_useTransitions:i,future:{}}),[c,B,a,i]);typeof t=="string"&&(t=Xd(t));let{pathname:l="/",search:d="",hash:u="",state:w=null,key:C="default",unstable_mask:H}=t,Y=x.useMemo(()=>{let y=Uo(l,c);return y==null?null:{location:{pathname:y,search:d,hash:u,state:w,key:C,unstable_mask:H},navigationType:n}},[c,l,d,u,w,C,n,H]);return Gr(Y!=null,`<Router basename="${c}"> is not able to match the URL "${l}${d}${u}" because it does not start with the basename, so the <Router> won't render anything.`),Y==null?null:x.createElement(yi.Provider,{value:o},x.createElement(pw.Provider,{children:A,value:Y}))}function L8({children:e,location:A}){return Z8($H(e),A)}function $H(e,A=[]){let t=[];return x.Children.forEach(e,(n,B)=>{if(!x.isValidElement(n))return;let a=[...A,B];if(n.type===x.Fragment){t.push.apply(t,$H(n.props.children,a));return}Fn(n.type===Ic,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fn(!n.props.index||!n.props.children,"An index route cannot have child routes.");let i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=$H(n.props.children,a)),t.push(i)}),t}var Cb="get",vb="application/x-www-form-urlencoded";function Ib(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function X8(e){return Ib(e)&&e.tagName.toLowerCase()==="button"}function O8(e){return Ib(e)&&e.tagName.toLowerCase()==="form"}function J8(e){return Ib(e)&&e.tagName.toLowerCase()==="input"}function K8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function j8(e,A){return e.button===0&&(!A||A==="_self")&&!K8(e)}var Hb=null;function _8(){if(Hb===null)try{new FormData(document.createElement("form"),0),Hb=!1}catch{Hb=!0}return Hb}var q8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function A0(e){return e!=null&&!q8.has(e)?(Gr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vb}"`),null):e}function $8(e,A){let t,n,B,a,i;if(O8(e)){let c=e.getAttribute("action");n=c?Uo(c,A):null,t=e.getAttribute("method")||Cb,B=A0(e.getAttribute("enctype"))||vb,a=new FormData(e)}else if(X8(e)||J8(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||c.getAttribute("action");if(n=o?Uo(o,A):null,t=e.getAttribute("formmethod")||c.getAttribute("method")||Cb,B=A0(e.getAttribute("formenctype"))||A0(c.getAttribute("enctype"))||vb,a=new FormData(c,e),!_8()){let{name:l,type:d,value:u}=e;if(d==="image"){let w=l?`${l}.`:"";a.append(`${w}x`,"0"),a.append(`${w}y`,"0")}else l&&a.append(l,u)}}else{if(Ib(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=Cb,n=null,B=vb,i=e}return a&&B==="text/plain"&&(i=a,a=void 0),{action:n,method:t.toLowerCase(),encType:B,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function e0(e,A){if(e===!1||e===null||typeof e>"u")throw new Error(A)}function jY(e,A,t,n){let B=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t?B.pathname.endsWith("/")?B.pathname=`${B.pathname}_.${n}`:B.pathname=`${B.pathname}.${n}`:B.pathname==="/"?B.pathname=`_root.${n}`:A&&Uo(B.pathname,A)==="/"?B.pathname=`${A.replace(/\/$/,"")}/_root.${n}`:B.pathname=`${B.pathname.replace(/\/$/,"")}.${n}`,B}async function AW(e,A){if(e.id in A)return A[e.id];try{let t=await import(e.module);return A[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eW(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tW(e,A,t){let n=await Promise.all(e.map(async B=>{let a=A.routes[B.route.id];if(a){let i=await AW(a,t);return i.links?i.links():[]}return[]}));return sW(n.flat(1).filter(eW).filter(B=>B.rel==="stylesheet"||B.rel==="preload").map(B=>B.rel==="stylesheet"?{...B,rel:"prefetch",as:"style"}:{...B,rel:"prefetch"}))}function _Y(e,A,t,n,B,a){let i=(o,l)=>t[l]?o.route.id!==t[l].route.id:!0,c=(o,l)=>t[l].pathname!==o.pathname||t[l].route.path?.endsWith("*")&&t[l].params["*"]!==o.params["*"];return a==="assets"?A.filter((o,l)=>i(o,l)||c(o,l)):a==="data"?A.filter((o,l)=>{let d=n.routes[o.route.id];if(!d||!d.hasLoader)return!1;if(i(o,l)||c(o,l))return!0;if(o.route.shouldRevalidate){let u=o.route.shouldRevalidate({currentUrl:new URL(B.pathname+B.search+B.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:o.params,defaultShouldRevalidate:!0});if(typeof u=="boolean")return u}return!0}):[]}function nW(e,A,{includeHydrateFallback:t}={}){return BW(e.map(n=>{let B=A.routes[n.route.id];if(!B)return[];let a=[B.module];return B.clientActionModule&&(a=a.concat(B.clientActionModule)),B.clientLoaderModule&&(a=a.concat(B.clientLoaderModule)),t&&B.hydrateFallbackModule&&(a=a.concat(B.hydrateFallbackModule)),B.imports&&(a=a.concat(B.imports)),a}).flat(1))}function BW(e){return[...new Set(e)]}function aW(e){let A={},t=Object.keys(e).sort();for(let n of t)A[n]=e[n];return A}function sW(e,A){let t=new Set;return new Set(A),e.reduce((n,B)=>{let a=JSON.stringify(aW(B));return t.has(a)||(t.add(a),n.push({key:a,link:B})),n},[])}function t0(){let e=x.useContext(MG);return e0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function iW(){let e=x.useContext(bb);return e0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var n0=x.createContext(void 0);n0.displayName="FrameworkContext";function B0(){let e=x.useContext(n0);return e0(e,"You must render this element inside a <HydratedRouter> element"),e}function rW(e,A){let t=x.useContext(n0),[n,B]=x.useState(!1),[a,i]=x.useState(!1),{onFocus:c,onBlur:o,onMouseEnter:l,onMouseLeave:d,onTouchStart:u}=A,w=x.useRef(null);x.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let Y=Z=>{Z.forEach(T=>{i(T.isIntersecting)})},y=new IntersectionObserver(Y,{threshold:.5});return w.current&&y.observe(w.current),()=>{y.disconnect()}}},[e]),x.useEffect(()=>{if(n){let Y=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(Y)}}},[n]);let C=()=>{B(!0)},H=()=>{B(!1),i(!1)};return t?e!=="intent"?[a,w,{}]:[a,w,{onFocus:yw(c,C),onBlur:yw(o,H),onMouseEnter:yw(l,C),onMouseLeave:yw(d,H),onTouchStart:yw(u,C)}]:[!1,w,{}]}function yw(e,A){return t=>{e&&e(t),t.defaultPrevented||A(t)}}function cW({page:e,...A}){let t=C8(),{router:n}=t0(),B=x.useMemo(()=>UY(n.routes,e,n.basename),[n.routes,e,n.basename]);return B?t?x.createElement(lW,{page:e,matches:B,...A}):x.createElement(gW,{page:e,matches:B,...A}):null}function oW(e){let{manifest:A,routeModules:t}=B0(),[n,B]=x.useState([]);return x.useEffect(()=>{let a=!1;return tW(e,A,t).then(i=>{a||B(i)}),()=>{a=!0}},[e,A,t]),n}function lW({page:e,matches:A,...t}){let n=vc(),{future:B}=B0(),{basename:a}=t0(),i=x.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let c=jY(e,a,B.unstable_trailingSlashAwareDataRequests,"rsc"),o=!1,l=[];for(let d of A)typeof d.route.shouldRevalidate=="function"?o=!0:l.push(d.route.id);return o&&l.length>0&&c.searchParams.set("_routes",l.join(",")),[c.pathname+c.search]},[a,B.unstable_trailingSlashAwareDataRequests,e,n,A]);return x.createElement(x.Fragment,null,i.map(c=>x.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...t})))}function gW({page:e,matches:A,...t}){let n=vc(),{future:B,manifest:a,routeModules:i}=B0(),{basename:c}=t0(),{loaderData:o,matches:l}=iW(),d=x.useMemo(()=>_Y(e,A,l,a,n,"data"),[e,A,l,a,n]),u=x.useMemo(()=>_Y(e,A,l,a,n,"assets"),[e,A,l,a,n]),w=x.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let Y=new Set,y=!1;if(A.forEach(T=>{let R=a.routes[T.route.id];!R||!R.hasLoader||(!d.some(V=>V.route.id===T.route.id)&&T.route.id in o&&i[T.route.id]?.shouldRevalidate||R.hasClientLoader?y=!0:Y.add(T.route.id))}),Y.size===0)return[];let Z=jY(e,c,B.unstable_trailingSlashAwareDataRequests,"data");return y&&Y.size>0&&Z.searchParams.set("_routes",A.filter(T=>Y.has(T.route.id)).map(T=>T.route.id).join(",")),[Z.pathname+Z.search]},[c,B.unstable_trailingSlashAwareDataRequests,o,n,a,d,A,e,i]),C=x.useMemo(()=>nW(u,a),[u,a]),H=oW(u);return x.createElement(x.Fragment,null,w.map(Y=>x.createElement("link",{key:Y,rel:"prefetch",as:"fetch",href:Y,...t})),C.map(Y=>x.createElement("link",{key:Y,rel:"modulepreload",href:Y,...t})),H.map(({key:Y,link:y})=>x.createElement("link",{key:Y,nonce:t.nonce,...y,crossOrigin:y.crossOrigin??t.crossOrigin})))}function dW(...e){return A=>{e.forEach(t=>{typeof t=="function"?t(A):t!=null&&(t.current=A)})}}var uW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{uW&&(window.__reactRouterVersion="7.14.0")}catch{}var qY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pb=x.forwardRef(function({onClick:A,discover:t="render",prefetch:n="none",relative:B,reloadDocument:a,replace:i,unstable_mask:c,state:o,target:l,to:d,preventScrollReset:u,viewTransition:w,unstable_defaultShouldRevalidate:C,...H},Y){let{basename:y,navigator:Z,unstable_useTransitions:T}=x.useContext(yi),R=typeof d=="string"&&qY.test(d),V=RY(d,y);d=V.to;let F=y8(d,{relative:B}),S=vc(),K=null;if(c){let UA=JH(c,[],S.unstable_mask?S.unstable_mask.pathname:"/",!0);y!=="/"&&(UA.pathname=UA.pathname==="/"?y:Cc([y,UA.pathname])),K=Z.createHref(UA)}let[J,eA,BA]=rW(n,H),oA=hW(d,{replace:i,unstable_mask:c,state:o,target:l,preventScrollReset:u,relative:B,viewTransition:w,unstable_defaultShouldRevalidate:C,unstable_useTransitions:T});function gA(UA){A&&A(UA),UA.defaultPrevented||oA(UA)}let mA=!(V.isExternal||a),EA=x.createElement("a",{...H,...BA,href:(mA?K:void 0)||V.absoluteURL||F,onClick:mA?gA:A,ref:dW(Y,eA),target:l,"data-discover":!R&&t==="render"?"true":void 0});return J&&!R?x.createElement(x.Fragment,null,EA,x.createElement(cW,{page:F})):EA});pb.displayName="Link";var GW=x.forwardRef(function({"aria-current":A="page",caseSensitive:t=!1,className:n="",end:B=!1,style:a,to:i,viewTransition:c,children:o,...l},d){let u=Ew(i,{relative:l.relative}),w=vc(),C=x.useContext(bb),{navigator:H,basename:Y}=x.useContext(yi),y=C!=null&&IW(u)&&c===!0,Z=H.encodeLocation?H.encodeLocation(u).pathname:u.pathname,T=w.pathname,R=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;t||(T=T.toLowerCase(),R=R?R.toLowerCase():null,Z=Z.toLowerCase()),R&&Y&&(R=Uo(R,Y)||R);const V=Z!=="/"&&Z.endsWith("/")?Z.length-1:Z.length;let F=T===Z||!B&&T.startsWith(Z)&&T.charAt(V)==="/",S=R!=null&&(R===Z||!B&&R.startsWith(Z)&&R.charAt(Z.length)==="/"),K={isActive:F,isPending:S,isTransitioning:y},J=F?A:void 0,eA;typeof n=="function"?eA=n(K):eA=[n,F?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let BA=typeof a=="function"?a(K):a;return x.createElement(pb,{...l,"aria-current":J,className:eA,ref:d,style:BA,to:i,viewTransition:c},typeof o=="function"?o(K):o)});GW.displayName="NavLink";var QW=x.forwardRef(({discover:e="render",fetcherKey:A,navigate:t,reloadDocument:n,replace:B,state:a,method:i=Cb,action:c,onSubmit:o,relative:l,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:w,...C},H)=>{let{unstable_useTransitions:Y}=x.useContext(yi),y=CW(),Z=vW(c,{relative:l}),T=i.toLowerCase()==="get"?"get":"post",R=typeof c=="string"&&qY.test(c),V=F=>{if(o&&o(F),F.defaultPrevented)return;F.preventDefault();let S=F.nativeEvent.submitter,K=S?.getAttribute("formmethod")||i,J=()=>y(S||F.currentTarget,{fetcherKey:A,method:K,navigate:t,replace:B,state:a,relative:l,preventScrollReset:d,viewTransition:u,unstable_defaultShouldRevalidate:w});Y&&t!==!1?x.startTransition(()=>J()):J()};return x.createElement("form",{ref:H,method:T,action:Z,onSubmit:n?o:V,...C,"data-discover":!R&&e==="render"?"true":void 0})});QW.displayName="Form";function wW(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $Y(e){let A=x.useContext(MG);return Fn(A,wW(e)),A}function hW(e,{target:A,replace:t,unstable_mask:n,state:B,preventScrollReset:a,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:o,unstable_useTransitions:l}={}){let d=Gs(),u=vc(),w=Ew(e,{relative:i});return x.useCallback(C=>{if(j8(C,A)){C.preventDefault();let H=t!==void 0?t:hb(u)===hb(w),Y=()=>d(e,{replace:H,unstable_mask:n,state:B,preventScrollReset:a,relative:i,viewTransition:c,unstable_defaultShouldRevalidate:o});l?x.startTransition(()=>Y()):Y()}},[u,d,w,t,n,B,A,e,a,i,c,o,l])}var fW=0,bW=()=>`__${String(++fW)}__`;function CW(){let{router:e}=$Y("useSubmit"),{basename:A}=x.useContext(yi),t=R8(),n=e.fetch,B=e.navigate;return x.useCallback(async(a,i={})=>{let{action:c,method:o,encType:l,formData:d,body:u}=$8(a,A);if(i.navigate===!1){let w=i.fetcherKey||bW();await n(w,t,i.action||c,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await B(i.action||c,{unstable_defaultShouldRevalidate:i.unstable_defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:t,flushSync:i.flushSync,viewTransition:i.viewTransition})},[n,B,A,t])}function vW(e,{relative:A}={}){let{basename:t}=x.useContext(yi),n=x.useContext(Do);Fn(n,"useFormAction must be used inside a RouteContext");let[B]=n.matches.slice(-1),a={...Ew(e||".",{relative:A})},i=vc();if(e==null){a.search=i.search;let c=new URLSearchParams(a.search),o=c.getAll("index");if(o.some(d=>d==="")){c.delete("index"),o.filter(u=>u).forEach(u=>c.append("index",u));let d=c.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&B.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(a.pathname=a.pathname==="/"?t:Cc([t,a.pathname])),hb(a)}function IW(e,{relative:A}={}){let t=x.useContext(WY);Fn(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=$Y("useViewTransitionState"),B=Ew(e,{relative:A});if(!t.isTransitioning)return!1;let a=Uo(t.currentLocation.pathname,n)||t.currentLocation.pathname,i=Uo(t.nextLocation.pathname,n)||t.nextLocation.pathname;return fb(B.pathname,i)!=null||fb(B.pathname,a)!=null}const a0="beta@careshiphealth.com",Od="https://beta.careshiphealth.com",s0="https://api.beta.careshiphealth.com",mb=`${s0}/rt`,i0=420,Yw=530,HW=520,Qr={FACE_LG_ICON:`${Od}/bolt/faceLg.svg`,AI_ASSISTANT_TALK_ICON:`${Od}/bolt/new/ai-assistant-talk-icon.svg`,AI_ASSISTANT_CHAT_ICON:`${Od}/bolt/new/ai-assistant-chat-icon.svg`,AI_ASSISTANT__CALL_ICON:`${Od}/bolt/new/ai-assistant-call-icon.svg`,AI_ASSISTANT_ICON_BW:`${Od}/bolt/new/ai-assistant-icon-bw.svg`,MINIMIZE_ICON:`${Od}/bolt/new/minimize-icon.svg`,MAXIMIZE_ICON:`${Od}/bolt/new/maximize-icon.svg`},r0="Ela",pW=e=>p.jsxs("svg",{width:"34",height:"34",viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.jsx("path",{d:"M14.788 9.48971C14.5248 9.05746 14.1061 8.74231 13.6179 8.60892C13.1297 8.47552 12.609 8.53399 12.1625 8.77233C10.0479 9.9113 8.85588 12.1545 9.63525 14.3233C10.5054 16.7288 11.8175 18.9504 13.5041 20.8736C15.178 22.7934 17.1908 24.3887 19.4421 25.5799C21.4658 26.6469 23.8375 25.7746 25.2439 23.8137C25.5398 23.4011 25.6681 22.8917 25.603 22.3882C25.538 21.8848 25.2843 21.4247 24.8933 21.1009L23.3591 19.8338C23.0516 19.5788 22.6745 19.4221 22.2768 19.384C21.8791 19.346 21.4792 19.4283 21.1288 19.6203L18.456 21.0859L17.857 20.6704C17.1019 20.1437 16.411 19.5305 15.7985 18.8432C15.1987 18.1437 14.6865 17.3736 14.2732 16.55L13.9463 15.9052L15.7449 13.4461C15.9827 13.1198 16.1177 12.73 16.1327 12.3265C16.1477 11.923 16.042 11.5243 15.829 11.1813L14.788 9.48971ZM11.0452 6.69431C12.0219 6.171 13.1616 6.041 14.231 6.33095C15.3004 6.6209 16.2184 7.30884 16.797 8.2538L17.8352 9.94349C18.2934 10.6853 18.5203 11.5468 18.4868 12.4181C18.4533 13.2893 18.161 14.1309 17.6471 14.8353L16.7193 16.1029C16.9446 16.4768 17.2323 16.8985 17.575 17.2949C17.9164 17.6843 18.2917 18.0262 18.6269 18.299L19.9935 17.5482C20.7578 17.1299 21.63 16.9506 22.4973 17.0335C23.3646 17.1164 24.1871 17.4578 24.8582 18.0133L26.3925 19.2804C27.2451 19.9846 27.7986 20.9863 27.9411 22.0829C28.0836 23.1796 27.8044 24.2894 27.1601 25.1881C25.2861 27.8016 21.707 29.439 18.3439 27.665C15.8368 26.3392 13.5952 24.5633 11.7308 22.4261C9.84914 20.2812 8.38523 17.8032 7.41459 15.1201C6.13111 11.5432 8.22187 8.21369 11.0457 6.69662",fill:e?.color||"black"}),p.jsx("path",{d:"M25.026 11.6502L25.3027 11.0139C25.7888 9.88815 26.6795 8.9853 27.7991 8.48354L28.6541 8.10358C28.7574 8.05583 28.8449 7.97955 28.9061 7.88374C28.9674 7.78793 29 7.67659 29 7.56288C29 7.44918 28.9674 7.33784 28.9061 7.24203C28.8449 7.14622 28.7574 7.06993 28.6541 7.02218L27.8464 6.66247C26.6986 6.14642 25.7927 5.21019 25.3151 4.04664L25.0305 3.36093C24.9887 3.25454 24.9158 3.1632 24.8213 3.09882C24.7267 3.03444 24.615 3 24.5006 3C24.3862 3 24.2745 3.03444 24.18 3.09882C24.0854 3.1632 24.0125 3.25454 23.9707 3.36093L23.6861 4.04777C23.208 5.2111 22.3017 6.14692 21.1537 6.66247L20.3471 7.02106C20.2435 7.06867 20.1557 7.14497 20.0942 7.2409C20.0327 7.33684 20 7.44838 20 7.56232C20 7.67626 20.0327 7.78781 20.0942 7.88374C20.1557 7.97967 20.2435 8.05597 20.3471 8.10358L21.201 8.48466C22.3208 8.98593 23.2119 9.88837 23.6985 11.0139L23.9752 11.6502C24.0185 11.7538 24.0914 11.8423 24.1849 11.9045C24.2784 11.9668 24.3883 12 24.5006 12C24.613 12 24.7228 11.9668 24.8163 11.9045C24.9098 11.8423 24.9827 11.7538 25.026 11.6502Z",fill:e?.color||"black"})]}),c0=x.createContext({});function Eb(e){const A=x.useRef(null);return A.current===null&&(A.current=e()),A.current}const o0=typeof window<"u"?x.useLayoutEffect:x.useEffect,yb=x.createContext(null);function l0(e,A){e.indexOf(A)===-1&&e.push(A)}function Yb(e,A){const t=e.indexOf(A);t>-1&&e.splice(t,1)}const Hc=(e,A,t)=>t>A?A:t<e?e:t;let g0=()=>{};const ql={},AZ=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function eZ(e){return typeof e=="object"&&e!==null}const tZ=e=>/^0[^.\s]+$/u.test(e);function nZ(e){let A;return()=>(A===void 0&&(A=e()),A)}const Yi=e=>e,mW=(e,A)=>t=>A(e(t)),Zw=(...e)=>e.reduce(mW),kw=(e,A,t)=>{const n=A-e;return n===0?1:(t-e)/n};class d0{constructor(){this.subscriptions=[]}add(A){return l0(this.subscriptions,A),()=>Yb(this.subscriptions,A)}notify(A,t,n){const B=this.subscriptions.length;if(B)if(B===1)this.subscriptions[0](A,t,n);else for(let a=0;a<B;a++){const i=this.subscriptions[a];i&&i(A,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Os=e=>e*1e3,Zi=e=>e/1e3;function BZ(e,A){return A?e*(1e3/A):0}const aZ=(e,A,t)=>(((1-3*t+3*A)*e+(3*t-6*A))*e+3*A)*e,EW=1e-7,yW=12;function YW(e,A,t,n,B){let a,i,c=0;do i=A+(t-A)/2,a=aZ(i,n,B)-e,a>0?t=i:A=i;while(Math.abs(a)>EW&&++c<yW);return i}function Uw(e,A,t,n){if(e===A&&t===n)return Yi;const B=a=>YW(a,0,1,e,t);return a=>a===0||a===1?a:aZ(B(a),A,n)}const sZ=e=>A=>A<=.5?e(2*A)/2:(2-e(2*(1-A)))/2,iZ=e=>A=>1-e(1-A),rZ=Uw(.33,1.53,.69,.99),u0=iZ(rZ),cZ=sZ(u0),oZ=e=>e>=1?1:(e*=2)<1?.5*u0(e):.5*(2-Math.pow(2,-10*(e-1))),G0=e=>1-Math.sin(Math.acos(e)),lZ=iZ(G0),gZ=sZ(G0),ZW=Uw(.42,0,1,1),kW=Uw(0,0,.58,1),dZ=Uw(.42,0,.58,1),UW=e=>Array.isArray(e)&&typeof e[0]!="number",uZ=e=>Array.isArray(e)&&typeof e[0]=="number",DW={linear:Yi,easeIn:ZW,easeInOut:dZ,easeOut:kW,circIn:G0,circInOut:gZ,circOut:lZ,backIn:u0,backInOut:cZ,backOut:rZ,anticipate:oZ},FW=e=>typeof e=="string",GZ=e=>{if(uZ(e)){g0(e.length===4);const[A,t,n,B]=e;return Uw(A,t,n,B)}else if(FW(e))return DW[e];return e},Zb=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function MW(e,A){let t=new Set,n=new Set,B=!1,a=!1;const i=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function o(d){i.has(d)&&(l.schedule(d),e()),d(c)}const l={schedule:(d,u=!1,w=!1)=>{const H=w&&B?t:n;return u&&i.add(d),H.add(d),d},cancel:d=>{n.delete(d),i.delete(d)},process:d=>{if(c=d,B){a=!0;return}B=!0;const u=t;t=n,n=u,t.forEach(o),t.clear(),B=!1,a&&(a=!1,l.process(d))}};return l}const PW=40;function QZ(e,A){let t=!1,n=!0;const B={delta:0,timestamp:0,isProcessing:!1},a=()=>t=!0,i=Zb.reduce((R,V)=>(R[V]=MW(a),R),{}),{setup:c,read:o,resolveKeyframes:l,preUpdate:d,update:u,preRender:w,render:C,postRender:H}=i,Y=()=>{const R=ql.useManualTiming,V=R?B.timestamp:performance.now();t=!1,R||(B.delta=n?1e3/60:Math.max(Math.min(V-B.timestamp,PW),1)),B.timestamp=V,B.isProcessing=!0,c.process(B),o.process(B),l.process(B),d.process(B),u.process(B),w.process(B),C.process(B),H.process(B),B.isProcessing=!1,t&&A&&(n=!1,e(Y))},y=()=>{t=!0,n=!0,B.isProcessing||e(Y)};return{schedule:Zb.reduce((R,V)=>{const F=i[V];return R[V]=(S,K=!1,J=!1)=>(t||y(),F.schedule(S,K,J)),R},{}),cancel:R=>{for(let V=0;V<Zb.length;V++)i[Zb[V]].cancel(R)},state:B,steps:i}}const{schedule:Ot,cancel:$l,state:aa,steps:Q0}=QZ(typeof requestAnimationFrame<"u"?requestAnimationFrame:Yi,!0);let kb;function xW(){kb=void 0}const Ta={now:()=>(kb===void 0&&Ta.set(aa.isProcessing||ql.useManualTiming?aa.timestamp:performance.now()),kb),set:e=>{kb=e,queueMicrotask(xW)}},wZ=e=>A=>typeof A=="string"&&A.startsWith(e),hZ=wZ("--"),TW=wZ("var(--"),w0=e=>TW(e)?RW.test(e.split("/*")[0].trim()):!1,RW=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function fZ(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const PG={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dw={...PG,transform:e=>Hc(0,1,e)},Ub={...PG,default:1},Fw=e=>Math.round(e*1e5)/1e5,h0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function VW(e){return e==null}const SW=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f0=(e,A)=>t=>!!(typeof t=="string"&&SW.test(t)&&t.startsWith(e)||A&&!VW(t)&&Object.prototype.hasOwnProperty.call(t,A)),bZ=(e,A,t)=>n=>{if(typeof n!="string")return n;const[B,a,i,c]=n.match(h0);return{[e]:parseFloat(B),[A]:parseFloat(a),[t]:parseFloat(i),alpha:c!==void 0?parseFloat(c):1}},WW=e=>Hc(0,255,e),b0={...PG,transform:e=>Math.round(WW(e))},Jd={test:f0("rgb","red"),parse:bZ("red","green","blue"),transform:({red:e,green:A,blue:t,alpha:n=1})=>"rgba("+b0.transform(e)+", "+b0.transform(A)+", "+b0.transform(t)+", "+Fw(Dw.transform(n))+")"};function NW(e){let A="",t="",n="",B="";return e.length>5?(A=e.substring(1,3),t=e.substring(3,5),n=e.substring(5,7),B=e.substring(7,9)):(A=e.substring(1,2),t=e.substring(2,3),n=e.substring(3,4),B=e.substring(4,5),A+=A,t+=t,n+=n,B+=B),{red:parseInt(A,16),green:parseInt(t,16),blue:parseInt(n,16),alpha:B?parseInt(B,16)/255:1}}const C0={test:f0("#"),parse:NW,transform:Jd.transform},Mw=e=>({test:A=>typeof A=="string"&&A.endsWith(e)&&A.split(" ").length===1,parse:parseFloat,transform:A=>`${A}${e}`}),Ag=Mw("deg"),pc=Mw("%"),ae=Mw("px"),zW=Mw("vh"),LW=Mw("vw"),CZ={...pc,parse:e=>pc.parse(e)/100,transform:e=>pc.transform(e*100)},xG={test:f0("hsl","hue"),parse:bZ("hue","saturation","lightness"),transform:({hue:e,saturation:A,lightness:t,alpha:n=1})=>"hsla("+Math.round(e)+", "+pc.transform(Fw(A))+", "+pc.transform(Fw(t))+", "+Fw(Dw.transform(n))+")"},gB={test:e=>Jd.test(e)||C0.test(e)||xG.test(e),parse:e=>Jd.test(e)?Jd.parse(e):xG.test(e)?xG.parse(e):C0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jd.transform(e):xG.transform(e),getAnimatableNone:e=>{const A=gB.parse(e);return A.alpha=0,gB.transform(A)}},XW=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function OW(e){return isNaN(e)&&typeof e=="string"&&(e.match(h0)?.length||0)+(e.match(XW)?.length||0)>0}const vZ="number",IZ="color",JW="var",KW="var(",HZ="${}",jW=/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 TG(e){const A=e.toString(),t=[],n={color:[],number:[],var:[]},B=[];let a=0;const c=A.replace(jW,o=>(gB.test(o)?(n.color.push(a),B.push(IZ),t.push(gB.parse(o))):o.startsWith(KW)?(n.var.push(a),B.push(JW),t.push(o)):(n.number.push(a),B.push(vZ),t.push(parseFloat(o))),++a,HZ)).split(HZ);return{values:t,split:c,indexes:n,types:B}}function _W(e){return TG(e).values}function pZ({split:e,types:A}){const t=e.length;return n=>{let B="";for(let a=0;a<t;a++)if(B+=e[a],n[a]!==void 0){const i=A[a];i===vZ?B+=Fw(n[a]):i===IZ?B+=gB.transform(n[a]):B+=n[a]}return B}}function qW(e){return pZ(TG(e))}const $W=e=>typeof e=="number"?0:gB.test(e)?gB.getAnimatableNone(e):e,A5=(e,A)=>typeof e=="number"?A?.trim().endsWith("/")?e:0:$W(e);function e5(e){const A=TG(e);return pZ(A)(A.values.map((n,B)=>A5(n,A.split[B])))}const wr={test:OW,parse:_W,createTransformer:qW,getAnimatableNone:e5};function v0(e,A,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(A-e)*6*t:t<1/2?A:t<2/3?e+(A-e)*(2/3-t)*6:e}function t5({hue:e,saturation:A,lightness:t,alpha:n}){e/=360,A/=100,t/=100;let B=0,a=0,i=0;if(!A)B=a=i=t;else{const c=t<.5?t*(1+A):t+A-t*A,o=2*t-c;B=v0(o,c,e+1/3),a=v0(o,c,e),i=v0(o,c,e-1/3)}return{red:Math.round(B*255),green:Math.round(a*255),blue:Math.round(i*255),alpha:n}}function Db(e,A){return t=>t>0?A:e}const cn=(e,A,t)=>e+(A-e)*t,I0=(e,A,t)=>{const n=e*e,B=t*(A*A-n)+n;return B<0?0:Math.sqrt(B)},n5=[C0,Jd,xG],B5=e=>n5.find(A=>A.test(e));function mZ(e){const A=B5(e);if(!A)return!1;let t=A.parse(e);return A===xG&&(t=t5(t)),t}const EZ=(e,A)=>{const t=mZ(e),n=mZ(A);if(!t||!n)return Db(e,A);const B={...t};return a=>(B.red=I0(t.red,n.red,a),B.green=I0(t.green,n.green,a),B.blue=I0(t.blue,n.blue,a),B.alpha=cn(t.alpha,n.alpha,a),Jd.transform(B))},H0=new Set(["none","hidden"]);function a5(e,A){return H0.has(e)?t=>t<=0?e:A:t=>t>=1?A:e}function s5(e,A){return t=>cn(e,A,t)}function p0(e){return typeof e=="number"?s5:typeof e=="string"?w0(e)?Db:gB.test(e)?EZ:c5:Array.isArray(e)?yZ:typeof e=="object"?gB.test(e)?EZ:i5:Db}function yZ(e,A){const t=[...e],n=t.length,B=e.map((a,i)=>p0(a)(a,A[i]));return a=>{for(let i=0;i<n;i++)t[i]=B[i](a);return t}}function i5(e,A){const t={...e,...A},n={};for(const B in t)e[B]!==void 0&&A[B]!==void 0&&(n[B]=p0(e[B])(e[B],A[B]));return B=>{for(const a in n)t[a]=n[a](B);return t}}function r5(e,A){const t=[],n={color:0,var:0,number:0};for(let B=0;B<A.values.length;B++){const a=A.types[B],i=e.indexes[a][n[a]],c=e.values[i]??0;t[B]=c,n[a]++}return t}const c5=(e,A)=>{const t=wr.createTransformer(A),n=TG(e),B=TG(A);return n.indexes.var.length===B.indexes.var.length&&n.indexes.color.length===B.indexes.color.length&&n.indexes.number.length>=B.indexes.number.length?H0.has(e)&&!B.values.length||H0.has(A)&&!n.values.length?a5(e,A):Zw(yZ(r5(n,B),B.values),t):Db(e,A)};function YZ(e,A,t){return typeof e=="number"&&typeof A=="number"&&typeof t=="number"?cn(e,A,t):p0(e)(e,A)}const o5=e=>{const A=({timestamp:t})=>e(t);return{start:(t=!0)=>Ot.update(A,t),stop:()=>$l(A),now:()=>aa.isProcessing?aa.timestamp:Ta.now()}},ZZ=(e,A,t=10)=>{let n="";const B=Math.max(Math.round(A/t),2);for(let a=0;a<B;a++)n+=Math.round(e(a/(B-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},Fb=2e4;function m0(e){let A=0;const t=50;let n=e.next(A);for(;!n.done&&A<Fb;)A+=t,n=e.next(A);return A>=Fb?1/0:A}function l5(e,A=100,t){const n=t({...e,keyframes:[0,A]}),B=Math.min(m0(n),Fb);return{type:"keyframes",ease:a=>n.next(B*a).value/A,duration:Zi(B)}}const Mn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function E0(e,A){return e*Math.sqrt(1-A*A)}const g5=12;function d5(e,A,t){let n=t;for(let B=1;B<g5;B++)n=n-e(n)/A(n);return n}const y0=.001;function u5({duration:e=Mn.duration,bounce:A=Mn.bounce,velocity:t=Mn.velocity,mass:n=Mn.mass}){let B,a,i=1-A;i=Hc(Mn.minDamping,Mn.maxDamping,i),e=Hc(Mn.minDuration,Mn.maxDuration,Zi(e)),i<1?(B=l=>{const d=l*i,u=d*e,w=d-t,C=E0(l,i),H=Math.exp(-u);return y0-w/C*H},a=l=>{const u=l*i*e,w=u*t+t,C=Math.pow(i,2)*Math.pow(l,2)*e,H=Math.exp(-u),Y=E0(Math.pow(l,2),i);return(-B(l)+y0>0?-1:1)*((w-C)*H)/Y}):(B=l=>{const d=Math.exp(-l*e),u=(l-t)*e+1;return-y0+d*u},a=l=>{const d=Math.exp(-l*e),u=(t-l)*(e*e);return d*u});const c=5/e,o=d5(B,a,c);if(e=Os(e),isNaN(o))return{stiffness:Mn.stiffness,damping:Mn.damping,duration:e};{const l=Math.pow(o,2)*n;return{stiffness:l,damping:i*2*Math.sqrt(n*l),duration:e}}}const G5=["duration","bounce"],Q5=["stiffness","damping","mass"];function kZ(e,A){return A.some(t=>e[t]!==void 0)}function w5(e){let A={velocity:Mn.velocity,stiffness:Mn.stiffness,damping:Mn.damping,mass:Mn.mass,isResolvedFromDuration:!1,...e};if(!kZ(e,Q5)&&kZ(e,G5))if(A.velocity=0,e.visualDuration){const t=e.visualDuration,n=2*Math.PI/(t*1.2),B=n*n,a=2*Hc(.05,1,1-(e.bounce||0))*Math.sqrt(B);A={...A,mass:Mn.mass,stiffness:B,damping:a}}else{const t=u5({...e,velocity:0});A={...A,...t,mass:Mn.mass},A.isResolvedFromDuration=!0}return A}function Mb(e=Mn.visualDuration,A=Mn.bounce){const t=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:A}:e;let{restSpeed:n,restDelta:B}=t;const a=t.keyframes[0],i=t.keyframes[t.keyframes.length-1],c={done:!1,value:a},{stiffness:o,damping:l,mass:d,duration:u,velocity:w,isResolvedFromDuration:C}=w5({...t,velocity:-Zi(t.velocity||0)}),H=w||0,Y=l/(2*Math.sqrt(o*d)),y=i-a,Z=Zi(Math.sqrt(o/d)),T=Math.abs(y)<5;n||(n=T?Mn.restSpeed.granular:Mn.restSpeed.default),B||(B=T?Mn.restDelta.granular:Mn.restDelta.default);let R,V,F,S,K,J;if(Y<1)F=E0(Z,Y),S=(H+Y*Z*y)/F,R=BA=>{const oA=Math.exp(-Y*Z*BA);return i-oA*(S*Math.sin(F*BA)+y*Math.cos(F*BA))},K=Y*Z*S+y*F,J=Y*Z*y-S*F,V=BA=>Math.exp(-Y*Z*BA)*(K*Math.sin(F*BA)+J*Math.cos(F*BA));else if(Y===1){R=oA=>i-Math.exp(-Z*oA)*(y+(H+Z*y)*oA);const BA=H+Z*y;V=oA=>Math.exp(-Z*oA)*(Z*BA*oA-H)}else{const BA=Z*Math.sqrt(Y*Y-1);R=EA=>{const UA=Math.exp(-Y*Z*EA),L=Math.min(BA*EA,300);return i-UA*((H+Y*Z*y)*Math.sinh(L)+BA*y*Math.cosh(L))/BA};const oA=(H+Y*Z*y)/BA,gA=Y*Z*oA-y*BA,mA=Y*Z*y-oA*BA;V=EA=>{const UA=Math.exp(-Y*Z*EA),L=Math.min(BA*EA,300);return UA*(gA*Math.sinh(L)+mA*Math.cosh(L))}}const eA={calculatedDuration:C&&u||null,velocity:BA=>Os(V(BA)),next:BA=>{if(!C&&Y<1){const gA=Math.exp(-Y*Z*BA),mA=Math.sin(F*BA),EA=Math.cos(F*BA),UA=i-gA*(S*mA+y*EA),L=Os(gA*(K*mA+J*EA));return c.done=Math.abs(L)<=n&&Math.abs(i-UA)<=B,c.value=c.done?i:UA,c}const oA=R(BA);if(C)c.done=BA>=u;else{const gA=Os(V(BA));c.done=Math.abs(gA)<=n&&Math.abs(i-oA)<=B}return c.value=c.done?i:oA,c},toString:()=>{const BA=Math.min(m0(eA),Fb),oA=ZZ(gA=>eA.next(BA*gA).value,BA,30);return BA+"ms "+oA},toTransition:()=>{}};return eA}Mb.applyToOptions=e=>{const A=l5(e,100,Mb);return e.ease=A.ease,e.duration=Os(A.duration),e.type="keyframes",e};const h5=5;function UZ(e,A,t){const n=Math.max(A-h5,0);return BZ(t-e(n),A-n)}function Y0({keyframes:e,velocity:A=0,power:t=.8,timeConstant:n=325,bounceDamping:B=10,bounceStiffness:a=500,modifyTarget:i,min:c,max:o,restDelta:l=.5,restSpeed:d}){const u=e[0],w={done:!1,value:u},C=J=>c!==void 0&&J<c||o!==void 0&&J>o,H=J=>c===void 0?o:o===void 0||Math.abs(c-J)<Math.abs(o-J)?c:o;let Y=t*A;const y=u+Y,Z=i===void 0?y:i(y);Z!==y&&(Y=Z-u);const T=J=>-Y*Math.exp(-J/n),R=J=>Z+T(J),V=J=>{const eA=T(J),BA=R(J);w.done=Math.abs(eA)<=l,w.value=w.done?Z:BA};let F,S;const K=J=>{C(w.value)&&(F=J,S=Mb({keyframes:[w.value,H(w.value)],velocity:UZ(R,J,w.value),damping:B,stiffness:a,restDelta:l,restSpeed:d}))};return K(0),{calculatedDuration:null,next:J=>{let eA=!1;return!S&&F===void 0&&(eA=!0,V(J),K(J)),F!==void 0&&J>=F?S.next(J-F):(!eA&&V(J),w)}}}function f5(e,A,t){const n=[],B=t||ql.mix||YZ,a=e.length-1;for(let i=0;i<a;i++){let c=B(e[i],e[i+1]);if(A){const o=Array.isArray(A)?A[i]||Yi:A;c=Zw(o,c)}n.push(c)}return n}function b5(e,A,{clamp:t=!0,ease:n,mixer:B}={}){const a=e.length;if(g0(a===A.length),a===1)return()=>A[0];if(a===2&&A[0]===A[1])return()=>A[1];const i=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),A=[...A].reverse());const c=f5(A,n,B),o=c.length,l=d=>{if(i&&d<e[0])return A[0];let u=0;if(o>1)for(;u<e.length-2&&!(d<e[u+1]);u++);const w=kw(e[u],e[u+1],d);return c[u](w)};return t?d=>l(Hc(e[0],e[a-1],d)):l}function C5(e,A){const t=e[e.length-1];for(let n=1;n<=A;n++){const B=kw(0,A,n);e.push(cn(t,1,B))}}function v5(e){const A=[0];return C5(A,e.length-1),A}function I5(e,A){return e.map(t=>t*A)}function H5(e,A){return e.map(()=>A||dZ).splice(0,e.length-1)}function Pw({duration:e=300,keyframes:A,times:t,ease:n="easeInOut"}){const B=UW(n)?n.map(GZ):GZ(n),a={done:!1,value:A[0]},i=I5(t&&t.length===A.length?t:v5(A),e),c=b5(i,A,{ease:Array.isArray(B)?B:H5(A,B)});return{calculatedDuration:e,next:o=>(a.value=c(o),a.done=o>=e,a)}}const p5=e=>e!==null;function Pb(e,{repeat:A,repeatType:t="loop"},n,B=1){const a=e.filter(p5),c=B<0||A&&t!=="loop"&&A%2===1?0:a.length-1;return!c||n===void 0?a[c]:n}const m5={decay:Y0,inertia:Y0,tween:Pw,keyframes:Pw,spring:Mb};function DZ(e){typeof e.type=="string"&&(e.type=m5[e.type])}class Z0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(A=>{this.resolve=A})}notifyFinished(){this.resolve()}then(A,t){return this.finished.then(A,t)}}const E5=e=>e/100;class xb extends Z0{constructor(A){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:t}=this.options;t&&t.updatedAt!==Ta.now()&&this.tick(Ta.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=A,this.initAnimation(),this.play(),A.autoplay===!1&&this.pause()}initAnimation(){const{options:A}=this;DZ(A);const{type:t=Pw,repeat:n=0,repeatDelay:B=0,repeatType:a,velocity:i=0}=A;let{keyframes:c}=A;const o=t||Pw;o!==Pw&&typeof c[0]!="number"&&(this.mixKeyframes=Zw(E5,YZ(c[0],c[1])),c=[0,100]);const l=o({...A,keyframes:c});a==="mirror"&&(this.mirroredGenerator=o({...A,keyframes:[...c].reverse(),velocity:-i})),l.calculatedDuration===null&&(l.calculatedDuration=m0(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+B,this.totalDuration=this.resolvedDuration*(n+1)-B,this.generator=l}updateTime(A){const t=Math.round(A-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(A,t=!1){const{generator:n,totalDuration:B,mixKeyframes:a,mirroredGenerator:i,resolvedDuration:c,calculatedDuration:o}=this;if(this.startTime===null)return n.next(0);const{delay:l=0,keyframes:d,repeat:u,repeatType:w,repeatDelay:C,type:H,onUpdate:Y,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,A):this.speed<0&&(this.startTime=Math.min(A-B/this.speed,this.startTime)),t?this.currentTime=A:this.updateTime(A);const Z=this.currentTime-l*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?Z<0:Z>B;this.currentTime=Math.max(Z,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=B);let R=this.currentTime,V=n;if(u){const J=Math.min(this.currentTime,B)/c;let eA=Math.floor(J),BA=J%1;!BA&&J>=1&&(BA=1),BA===1&&eA--,eA=Math.min(eA,u+1),eA%2&&(w==="reverse"?(BA=1-BA,C&&(BA-=C/c)):w==="mirror"&&(V=i)),R=Hc(0,1,BA)*c}let F;T?(this.delayState.value=d[0],F=this.delayState):F=V.next(R),a&&!T&&(F.value=a(F.value));let{done:S}=F;!T&&o!==null&&(S=this.playbackSpeed>=0?this.currentTime>=B:this.currentTime<=0);const K=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return K&&H!==Y0&&(F.value=Pb(d,this.options,y,this.speed)),Y&&Y(F.value),K&&this.finish(),F}then(A,t){return this.finished.then(A,t)}get duration(){return Zi(this.calculatedDuration)}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+Zi(A)}get time(){return Zi(this.currentTime)}set time(A){A=Os(A),this.currentTime=A,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=A:this.driver&&(this.startTime=this.driver.now()-A/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=A,this.tick(A))}getGeneratorVelocity(){const A=this.currentTime;if(A<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(A);const t=this.generator.next(A).value;return UZ(n=>this.generator.next(n).value,A,t)}get speed(){return this.playbackSpeed}set speed(A){const t=this.playbackSpeed!==A;t&&this.driver&&this.updateTime(Ta.now()),this.playbackSpeed=A,t&&this.driver&&(this.time=Zi(this.currentTime))}play(){if(this.isStopped)return;const{driver:A=o5,startTime:t}=this.options;this.driver||(this.driver=A(B=>this.tick(B))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ta.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(A){return this.startTime=0,this.tick(A,!0)}attachTimeline(A){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),A.observe(this)}}function y5(e){for(let A=1;A<e.length;A++)e[A]??(e[A]=e[A-1])}const Kd=e=>e*180/Math.PI,k0=e=>{const A=Kd(Math.atan2(e[1],e[0]));return U0(A)},Y5={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:k0,rotateZ:k0,skewX:e=>Kd(Math.atan(e[1])),skewY:e=>Kd(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},U0=e=>(e=e%360,e<0&&(e+=360),e),FZ=k0,MZ=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PZ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Z5={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:MZ,scaleY:PZ,scale:e=>(MZ(e)+PZ(e))/2,rotateX:e=>U0(Kd(Math.atan2(e[6],e[5]))),rotateY:e=>U0(Kd(Math.atan2(-e[2],e[0]))),rotateZ:FZ,rotate:FZ,skewX:e=>Kd(Math.atan(e[4])),skewY:e=>Kd(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function D0(e){return e.includes("scale")?1:0}function F0(e,A){if(!e||e==="none")return D0(A);const t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,B;if(t)n=Z5,B=t;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Y5,B=c}if(!B)return D0(A);const a=n[A],i=B[1].split(",").map(U5);return typeof a=="function"?a(i):i[a]}const k5=(e,A)=>{const{transform:t="none"}=getComputedStyle(e);return F0(t,A)};function U5(e){return parseFloat(e.trim())}const RG=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],VG=new Set(RG),xZ=e=>e===PG||e===ae,D5=new Set(["x","y","z"]),F5=RG.filter(e=>!D5.has(e));function M5(e){const A=[];return F5.forEach(t=>{const n=e.getValue(t);n!==void 0&&(A.push([t,n.get()]),n.set(t.startsWith("scale")?1:0))}),A}const eg={width:({x:e},{paddingLeft:A="0",paddingRight:t="0",boxSizing:n})=>{const B=e.max-e.min;return n==="border-box"?B:B-parseFloat(A)-parseFloat(t)},height:({y:e},{paddingTop:A="0",paddingBottom:t="0",boxSizing:n})=>{const B=e.max-e.min;return n==="border-box"?B:B-parseFloat(A)-parseFloat(t)},top:(e,{top:A})=>parseFloat(A),left:(e,{left:A})=>parseFloat(A),bottom:({y:e},{top:A})=>parseFloat(A)+(e.max-e.min),right:({x:e},{left:A})=>parseFloat(A)+(e.max-e.min),x:(e,{transform:A})=>F0(A,"x"),y:(e,{transform:A})=>F0(A,"y")};eg.translateX=eg.x,eg.translateY=eg.y;const jd=new Set;let M0=!1,P0=!1,x0=!1;function TZ(){if(P0){const e=Array.from(jd).filter(n=>n.needsMeasurement),A=new Set(e.map(n=>n.element)),t=new Map;A.forEach(n=>{const B=M5(n);B.length&&(t.set(n,B),n.render())}),e.forEach(n=>n.measureInitialState()),A.forEach(n=>{n.render();const B=t.get(n);B&&B.forEach(([a,i])=>{n.getValue(a)?.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}P0=!1,M0=!1,jd.forEach(e=>e.complete(x0)),jd.clear()}function RZ(){jd.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(P0=!0)})}function P5(){x0=!0,RZ(),TZ(),x0=!1}class T0{constructor(A,t,n,B,a,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...A],this.onComplete=t,this.name=n,this.motionValue=B,this.element=a,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(jd.add(this),M0||(M0=!0,Ot.read(RZ),Ot.resolveKeyframes(TZ))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:A,name:t,element:n,motionValue:B}=this;if(A[0]===null){const a=B?.get(),i=A[A.length-1];if(a!==void 0)A[0]=a;else if(n&&t){const c=n.readValue(t,i);c!=null&&(A[0]=c)}A[0]===void 0&&(A[0]=i),B&&a===void 0&&B.set(A[0])}y5(A)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(A=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,A),jd.delete(this)}cancel(){this.state==="scheduled"&&(jd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const x5=e=>e.startsWith("--");function VZ(e,A,t){x5(A)?e.style.setProperty(A,t):e.style[A]=t}const T5={};function SZ(e,A){const t=nZ(e);return()=>T5[A]??t()}const R5=SZ(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),WZ=SZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xw=([e,A,t,n])=>`cubic-bezier(${e}, ${A}, ${t}, ${n})`,NZ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xw([0,.65,.55,1]),circOut:xw([.55,0,1,.45]),backIn:xw([.31,.01,.66,-.59]),backOut:xw([.33,1.53,.69,.99])};function zZ(e,A){if(e)return typeof e=="function"?WZ()?ZZ(e,A):"ease-out":uZ(e)?xw(e):Array.isArray(e)?e.map(t=>zZ(t,A)||NZ.easeOut):NZ[e]}function V5(e,A,t,{delay:n=0,duration:B=300,repeat:a=0,repeatType:i="loop",ease:c="easeOut",times:o}={},l=void 0){const d={[A]:t};o&&(d.offset=o);const u=zZ(c,B);Array.isArray(u)&&(d.easing=u);const w={delay:n,duration:B,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:a+1,direction:i==="reverse"?"alternate":"normal"};return l&&(w.pseudoElement=l),e.animate(d,w)}function LZ(e){return typeof e=="function"&&"applyToOptions"in e}function S5({type:e,...A}){return LZ(e)&&WZ()?e.applyToOptions(A):(A.duration??(A.duration=300),A.ease??(A.ease="easeOut"),A)}class XZ extends Z0{constructor(A){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!A)return;const{element:t,name:n,keyframes:B,pseudoElement:a,allowFlatten:i=!1,finalKeyframe:c,onComplete:o}=A;this.isPseudoElement=!!a,this.allowFlatten=i,this.options=A,g0(typeof A.type!="string");const l=S5(A);this.animation=V5(t,n,B,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const d=Pb(B,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(d),VZ(t,n,d),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:A}=this;A==="idle"||A==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const A=this.options?.element;!this.isPseudoElement&&A?.isConnected&&this.animation.commitStyles?.()}get duration(){const A=this.animation.effect?.getComputedTiming?.().duration||0;return Zi(Number(A))}get iterationDuration(){const{delay:A=0}=this.options||{};return this.duration+Zi(A)}get time(){return Zi(Number(this.animation.currentTime)||0)}set time(A){const t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Os(A),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(A){A<0&&(this.finishedTime=null),this.animation.playbackRate=A}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(A){this.manualStartTime=this.animation.startTime=A}attachTimeline({timeline:A,rangeStart:t,rangeEnd:n,observe:B}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,A&&R5()?(this.animation.timeline=A,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Yi):B(this)}}const OZ={anticipate:oZ,backInOut:cZ,circInOut:gZ};function W5(e){return e in OZ}function N5(e){typeof e.ease=="string"&&W5(e.ease)&&(e.ease=OZ[e.ease])}const R0=10;class z5 extends XZ{constructor(A){N5(A),DZ(A),super(A),A.startTime!==void 0&&A.autoplay!==!1&&(this.startTime=A.startTime),this.options=A}updateMotionValue(A){const{motionValue:t,onUpdate:n,onComplete:B,element:a,...i}=this.options;if(!t)return;if(A!==void 0){t.set(A);return}const c=new xb({...i,autoplay:!1}),o=Math.max(R0,Ta.now()-this.startTime),l=Hc(0,R0,o-R0),d=c.sample(o).value,{name:u}=this.options;a&&u&&VZ(a,u,d),t.setWithVelocity(c.sample(Math.max(0,o-l)).value,d,l),c.stop()}}const JZ=(e,A)=>A==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wr.test(e)||e==="0")&&!e.startsWith("url("));function L5(e){const A=e[0];if(e.length===1)return!0;for(let t=0;t<e.length;t++)if(e[t]!==A)return!0}function X5(e,A,t,n){const B=e[0];if(B===null)return!1;if(A==="display"||A==="visibility")return!0;const a=e[e.length-1],i=JZ(B,A),c=JZ(a,A);return!i||!c?!1:L5(e)||(t==="spring"||LZ(t))&&n}function V0(e){e.duration=0,e.type="keyframes"}const KZ=new Set(["opacity","clipPath","filter","transform"]),O5=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function J5(e){for(let A=0;A<e.length;A++)if(typeof e[A]=="string"&&O5.test(e[A]))return!0;return!1}const K5=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),j5=nZ(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _5(e){const{motionValue:A,name:t,repeatDelay:n,repeatType:B,damping:a,type:i,keyframes:c}=e;if(!(A?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=A.owner.getProps();return j5()&&t&&(KZ.has(t)||K5.has(t)&&J5(c))&&(t!=="transform"||!d)&&!l&&!n&&B!=="mirror"&&a!==0&&i!=="inertia"}const q5=40;class $5 extends Z0{constructor({autoplay:A=!0,delay:t=0,type:n="keyframes",repeat:B=0,repeatDelay:a=0,repeatType:i="loop",keyframes:c,name:o,motionValue:l,element:d,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ta.now();const w={autoplay:A,delay:t,type:n,repeat:B,repeatDelay:a,repeatType:i,name:o,motionValue:l,element:d,...u},C=d?.KeyframeResolver||T0;this.keyframeResolver=new C(c,(H,Y,y)=>this.onKeyframesResolved(H,Y,w,!y),o,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(A,t,n,B){this.keyframeResolver=void 0;const{name:a,type:i,velocity:c,delay:o,isHandoff:l,onUpdate:d}=n;this.resolvedAt=Ta.now();let u=!0;X5(A,a,i,c)||(u=!1,(ql.instantAnimations||!o)&&d?.(Pb(A,n,t)),A[0]=A[A.length-1],V0(n),n.repeat=0);const C={startTime:B?this.resolvedAt?this.resolvedAt-this.createdAt>q5?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:A},H=u&&!l&&_5(C),Y=C.motionValue?.owner?.current;let y;if(H)try{y=new z5({...C,element:Y})}catch{y=new xb(C)}else y=new xb(C);y.finished.then(()=>{this.notifyFinished()}).catch(Yi),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(A,t){return this.finished.finally(A).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),P5()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(A){this.animation.time=A}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(A){this.animation.speed=A}get startTime(){return this.animation.startTime}attachTimeline(A){return this._animation?this.stopTimeline=this.animation.attachTimeline(A):this.pendingTimeline=A,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function jZ(e,A,t,n=0,B=1){const a=Array.from(e).sort((l,d)=>l.sortNodePosition(d)).indexOf(A),i=e.size,c=(i-1)*n;return typeof t=="function"?t(a,i):B===1?a*n:c-a*n}const AN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function eN(e){const A=AN.exec(e);if(!A)return[,];const[,t,n,B]=A;return[`--${t??n}`,B]}function _Z(e,A,t=1){const[n,B]=eN(e);if(!n)return;const a=window.getComputedStyle(A).getPropertyValue(n);if(a){const i=a.trim();return AZ(i)?parseFloat(i):i}return w0(B)?_Z(B,A,t+1):B}const tN={type:"spring",stiffness:500,damping:25,restSpeed:10},nN=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),BN={type:"keyframes",duration:.8},aN={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},sN=(e,{keyframes:A})=>A.length>2?BN:VG.has(e)?e.startsWith("scale")?nN(A[1]):tN:aN;function qZ(e,A){if(e?.inherit&&A){const{inherit:t,...n}=e;return{...A,...n}}return e}function S0(e,A){const t=e?.[A]??e?.default??e;return t!==e?qZ(t,e):t}const iN=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function rN(e){for(const A in e)if(!iN.has(A))return!0;return!1}const W0=(e,A,t,n={},B,a)=>i=>{const c=S0(n,e)||{},o=c.delay||n.delay||0;let{elapsed:l=0}=n;l=l-Os(o);const d={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:A.getVelocity(),...c,delay:-l,onUpdate:w=>{A.set(w),c.onUpdate&&c.onUpdate(w)},onComplete:()=>{i(),c.onComplete&&c.onComplete()},name:e,motionValue:A,element:a?void 0:B};rN(c)||Object.assign(d,sN(e,d)),d.duration&&(d.duration=Os(d.duration)),d.repeatDelay&&(d.repeatDelay=Os(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let u=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(V0(d),d.delay===0&&(u=!0)),(ql.instantAnimations||ql.skipAnimations||B?.shouldSkipAnimations)&&(u=!0,V0(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,u&&!a&&A.get()!==void 0){const w=Pb(d.keyframes,c);if(w!==void 0){Ot.update(()=>{d.onUpdate(w),d.onComplete()});return}}return c.isSync?new xb(d):new $5(d)};function $Z(e){const A=[{},{}];return e?.values.forEach((t,n)=>{A[0][n]=t.get(),A[1][n]=t.getVelocity()}),A}function N0(e,A,t,n){if(typeof A=="function"){const[B,a]=$Z(n);A=A(t!==void 0?t:e.custom,B,a)}if(typeof A=="string"&&(A=e.variants&&e.variants[A]),typeof A=="function"){const[B,a]=$Z(n);A=A(t!==void 0?t:e.custom,B,a)}return A}function _d(e,A,t){const n=e.getProps();return N0(n,A,t!==void 0?t:n.custom,e)}const Ak=new Set(["width","height","top","left","right","bottom",...RG]),ek=30,cN=e=>!isNaN(parseFloat(e));class oN{constructor(A,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const B=Ta.now();if(this.updatedAt!==B&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(A),this.owner=t.owner}setCurrent(A){this.current=A,this.updatedAt=Ta.now(),this.canTrackVelocity===null&&A!==void 0&&(this.canTrackVelocity=cN(this.current))}setPrevFrameValue(A=this.current){this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt}onChange(A){return this.on("change",A)}on(A,t){this.events[A]||(this.events[A]=new d0);const n=this.events[A].add(t);return A==="change"?()=>{n(),Ot.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const A in this.events)this.events[A].clear()}attach(A,t){this.passiveEffect=A,this.stopPassiveEffect=t}set(A){this.passiveEffect?this.passiveEffect(A,this.updateAndNotify):this.updateAndNotify(A)}setWithVelocity(A,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=A,this.prevUpdatedAt=this.updatedAt-n}jump(A,t=!0){this.updateAndNotify(A),this.prev=A,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(A){this.dependents||(this.dependents=new Set),this.dependents.add(A)}removeDependent(A){this.dependents&&this.dependents.delete(A)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const A=Ta.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||A-this.updatedAt>ek)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,ek);return BZ(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(A){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=A(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function SG(e,A){return new oN(e,A)}const z0=e=>Array.isArray(e);function lN(e,A,t){e.hasValue(A)?e.getValue(A).set(t):e.addValue(A,SG(t))}function gN(e){return z0(e)?e[e.length-1]||0:e}function L0(e,A){const t=_d(e,A);let{transitionEnd:n={},transition:B={},...a}=t||{};a={...a,...n};for(const i in a){const c=gN(a[i]);lN(e,i,c)}}const sa=e=>!!(e&&e.getVelocity);function dN(e){return!!(sa(e)&&e.add)}function X0(e,A){const t=e.getValue("willChange");if(dN(t))return t.add(A);if(!t&&ql.WillChange){const n=new ql.WillChange("auto");e.addValue("willChange",n),n.add(A)}}function O0(e){return e.replace(/([A-Z])/g,A=>`-${A.toLowerCase()}`)}const tk="data-"+O0("framerAppearId");function nk(e){return e.props[tk]}function uN({protectedKeys:e,needsAnimating:A},t){const n=e.hasOwnProperty(t)&&A[t]!==!0;return A[t]=!1,n}function Bk(e,A,{delay:t=0,transitionOverride:n,type:B}={}){let{transition:a,transitionEnd:i,...c}=A;const o=e.getDefaultTransition();a=a?qZ(a,o):o;const l=a?.reduceMotion;n&&(a=n);const d=[],u=B&&e.animationState&&e.animationState.getState()[B];for(const w in c){const C=e.getValue(w,e.latestValues[w]??null),H=c[w];if(H===void 0||u&&uN(u,w))continue;const Y={delay:t,...S0(a||{},w)},y=C.get();if(y!==void 0&&!C.isAnimating()&&!Array.isArray(H)&&H===y&&!Y.velocity){Ot.update(()=>C.set(H));continue}let Z=!1;if(window.MotionHandoffAnimation){const V=nk(e);if(V){const F=window.MotionHandoffAnimation(V,w,Ot);F!==null&&(Y.startTime=F,Z=!0)}}X0(e,w);const T=l??e.shouldReduceMotion;C.start(W0(w,C,H,T&&Ak.has(w)?{type:!1}:Y,e,Z));const R=C.animation;R&&d.push(R)}if(i){const w=()=>Ot.update(()=>{i&&L0(e,i)});d.length?Promise.all(d).then(w):w()}return d}function J0(e,A,t={}){const n=_d(e,A,t.type==="exit"?e.presenceContext?.custom:void 0);let{transition:B=e.getDefaultTransition()||{}}=n||{};t.transitionOverride&&(B=t.transitionOverride);const a=n?()=>Promise.all(Bk(e,n,t)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:u}=B;return GN(e,A,o,l,d,u,t)}:()=>Promise.resolve(),{when:c}=B;if(c){const[o,l]=c==="beforeChildren"?[a,i]:[i,a];return o().then(()=>l())}else return Promise.all([a(),i(t.delay)])}function GN(e,A,t=0,n=0,B=0,a=1,i){const c=[];for(const o of e.variantChildren)o.notify("AnimationStart",A),c.push(J0(o,A,{...i,delay:t+(typeof n=="function"?0:n)+jZ(e.variantChildren,o,n,B,a)}).then(()=>o.notify("AnimationComplete",A)));return Promise.all(c)}function ak(e,A,t={}){e.notify("AnimationStart",A);let n;if(Array.isArray(A)){const B=A.map(a=>J0(e,a,t));n=Promise.all(B)}else if(typeof A=="string")n=J0(e,A,t);else{const B=typeof A=="function"?_d(e,A,t.custom):A;n=Promise.all(Bk(e,B,t))}return n.then(()=>{e.notify("AnimationComplete",A)})}const QN={test:e=>e==="auto",parse:e=>e},sk=e=>A=>A.test(e),ik=[PG,ae,pc,Ag,LW,zW,QN],rk=e=>ik.find(sk(e));function wN(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||tZ(e):!0}const hN=new Set(["brightness","contrast","saturate","opacity"]);function fN(e){const[A,t]=e.slice(0,-1).split("(");if(A==="drop-shadow")return e;const[n]=t.match(h0)||[];if(!n)return e;const B=t.replace(n,"");let a=hN.has(A)?1:0;return n!==t&&(a*=100),A+"("+a+B+")"}const bN=/\b([a-z-]*)\(.*?\)/gu,K0={...wr,getAnimatableNone:e=>{const A=e.match(bN);return A?A.map(fN).join(" "):e}},j0={...wr,getAnimatableNone:e=>{const A=wr.parse(e);return wr.createTransformer(e)(A.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}},ck={...PG,transform:Math.round},_0={borderWidth:ae,borderTopWidth:ae,borderRightWidth:ae,borderBottomWidth:ae,borderLeftWidth:ae,borderRadius:ae,borderTopLeftRadius:ae,borderTopRightRadius:ae,borderBottomRightRadius:ae,borderBottomLeftRadius:ae,width:ae,maxWidth:ae,height:ae,maxHeight:ae,top:ae,right:ae,bottom:ae,left:ae,inset:ae,insetBlock:ae,insetBlockStart:ae,insetBlockEnd:ae,insetInline:ae,insetInlineStart:ae,insetInlineEnd:ae,padding:ae,paddingTop:ae,paddingRight:ae,paddingBottom:ae,paddingLeft:ae,paddingBlock:ae,paddingBlockStart:ae,paddingBlockEnd:ae,paddingInline:ae,paddingInlineStart:ae,paddingInlineEnd:ae,margin:ae,marginTop:ae,marginRight:ae,marginBottom:ae,marginLeft:ae,marginBlock:ae,marginBlockStart:ae,marginBlockEnd:ae,marginInline:ae,marginInlineStart:ae,marginInlineEnd:ae,fontSize:ae,backgroundPositionX:ae,backgroundPositionY:ae,...{rotate:Ag,rotateX:Ag,rotateY:Ag,rotateZ:Ag,scale:Ub,scaleX:Ub,scaleY:Ub,scaleZ:Ub,skew:Ag,skewX:Ag,skewY:Ag,distance:ae,translateX:ae,translateY:ae,translateZ:ae,x:ae,y:ae,z:ae,perspective:ae,transformPerspective:ae,opacity:Dw,originX:CZ,originY:CZ,originZ:ae},zIndex:ck,fillOpacity:Dw,strokeOpacity:Dw,numOctaves:ck},CN={..._0,color:gB,backgroundColor:gB,outlineColor:gB,fill:gB,stroke:gB,borderColor:gB,borderTopColor:gB,borderRightColor:gB,borderBottomColor:gB,borderLeftColor:gB,filter:K0,WebkitFilter:K0,mask:j0,WebkitMask:j0},ok=e=>CN[e],vN=new Set([K0,j0]);function lk(e,A){let t=ok(e);return vN.has(t)||(t=wr),t.getAnimatableNone?t.getAnimatableNone(A):void 0}const IN=new Set(["auto","none","0"]);function HN(e,A,t){let n=0,B;for(;n<e.length&&!B;){const a=e[n];typeof a=="string"&&!IN.has(a)&&TG(a).values.length&&(B=e[n]),n++}if(B&&t)for(const a of A)e[a]=lk(t,B)}class pN extends T0{constructor(A,t,n,B,a){super(A,t,n,B,a,!0)}readKeyframes(){const{unresolvedKeyframes:A,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d<A.length;d++){let u=A[d];if(typeof u=="string"&&(u=u.trim(),w0(u))){const w=_Z(u,t.current);w!==void 0&&(A[d]=w),d===A.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Ak.has(n)||A.length!==2)return;const[B,a]=A,i=rk(B),c=rk(a),o=fZ(B),l=fZ(a);if(o!==l&&eg[n]){this.needsMeasurement=!0;return}if(i!==c)if(xZ(i)&&xZ(c))for(let d=0;d<A.length;d++){const u=A[d];typeof u=="string"&&(A[d]=parseFloat(u))}else eg[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:A,name:t}=this,n=[];for(let B=0;B<A.length;B++)(A[B]===null||wN(A[B]))&&n.push(B);n.length&&HN(A,n,t)}measureInitialState(){const{element:A,unresolvedKeyframes:t,name:n}=this;if(!A||!A.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eg[n](A.measureViewportBox(),window.getComputedStyle(A.current)),t[0]=this.measuredOrigin;const B=t[t.length-1];B!==void 0&&A.getValue(n,B).jump(B,!1)}measureEndState(){const{element:A,name:t,unresolvedKeyframes:n}=this;if(!A||!A.current)return;const B=A.getValue(t);B&&B.jump(this.measuredOrigin,!1);const a=n.length-1,i=n[a];n[a]=eg[t](A.measureViewportBox(),window.getComputedStyle(A.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,o])=>{A.getValue(c).set(o)}),this.resolveNoneKeyframes()}}function gk(e,A,t){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const B=t?.[e]??n.querySelectorAll(e);return B?Array.from(B):[]}return Array.from(e).filter(n=>n!=null)}const dk=(e,A)=>A&&typeof e=="number"?A.transform(e):e;function Tb(e){return eZ(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:q0}=QZ(queueMicrotask,!1),hr={x:!1,y:!1};function uk(){return hr.x||hr.y}function mN(e){return e==="x"||e==="y"?hr[e]?null:(hr[e]=!0,()=>{hr[e]=!1}):hr.x||hr.y?null:(hr.x=hr.y=!0,()=>{hr.x=hr.y=!1})}function Gk(e,A){const t=gk(e),n=new AbortController,B={passive:!0,...A,signal:n.signal};return[t,B,()=>n.abort()]}function EN(e){return!(e.pointerType==="touch"||uk())}function yN(e,A,t={}){const[n,B,a]=Gk(e,t);return n.forEach(i=>{let c=!1,o=!1,l;const d=()=>{i.removeEventListener("pointerleave",H)},u=y=>{l&&(l(y),l=void 0),d()},w=y=>{c=!1,window.removeEventListener("pointerup",w),window.removeEventListener("pointercancel",w),o&&(o=!1,u(y))},C=()=>{c=!0,window.addEventListener("pointerup",w,B),window.addEventListener("pointercancel",w,B)},H=y=>{if(y.pointerType!=="touch"){if(c){o=!0;return}u(y)}},Y=y=>{if(!EN(y))return;o=!1;const Z=A(i,y);typeof Z=="function"&&(l=Z,i.addEventListener("pointerleave",H,B))};i.addEventListener("pointerenter",Y,B),i.addEventListener("pointerdown",C,B)}),a}const Qk=(e,A)=>A?e===A?!0:Qk(e,A.parentElement):!1,$0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ZN(e){return YN.has(e.tagName)||e.isContentEditable===!0}const kN=new Set(["INPUT","SELECT","TEXTAREA"]);function UN(e){return kN.has(e.tagName)||e.isContentEditable===!0}const Rb=new WeakSet;function wk(e){return A=>{A.key==="Enter"&&e(A)}}function Ap(e,A){e.dispatchEvent(new PointerEvent("pointer"+A,{isPrimary:!0,bubbles:!0}))}const DN=(e,A)=>{const t=e.currentTarget;if(!t)return;const n=wk(()=>{if(Rb.has(t))return;Ap(t,"down");const B=wk(()=>{Ap(t,"up")}),a=()=>Ap(t,"cancel");t.addEventListener("keyup",B,A),t.addEventListener("blur",a,A)});t.addEventListener("keydown",n,A),t.addEventListener("blur",()=>t.removeEventListener("keydown",n),A)};function hk(e){return $0(e)&&!uk()}const fk=new WeakSet;function FN(e,A,t={}){const[n,B,a]=Gk(e,t),i=c=>{const o=c.currentTarget;if(!hk(c)||fk.has(c))return;Rb.add(o),t.stopPropagation&&fk.add(c);const l=A(o,c),d=(C,H)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",w),Rb.has(o)&&Rb.delete(o),hk(C)&&typeof l=="function"&&l(C,{success:H})},u=C=>{d(C,o===window||o===document||t.useGlobalTarget||Qk(o,C.target))},w=C=>{d(C,!1)};window.addEventListener("pointerup",u,B),window.addEventListener("pointercancel",w,B)};return n.forEach(c=>{(t.useGlobalTarget?window:c).addEventListener("pointerdown",i,B),Tb(c)&&(c.addEventListener("focus",l=>DN(l,B)),!ZN(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),a}function ep(e){return eZ(e)&&"ownerSVGElement"in e}const Vb=new WeakMap;let Sb;const bk=(e,A,t)=>(n,B)=>B&&B[0]?B[0][e+"Size"]:ep(n)&&"getBBox"in n?n.getBBox()[A]:n[t],MN=bk("inline","width","offsetWidth"),PN=bk("block","height","offsetHeight");function xN({target:e,borderBoxSize:A}){Vb.get(e)?.forEach(t=>{t(e,{get width(){return MN(e,A)},get height(){return PN(e,A)}})})}function TN(e){e.forEach(xN)}function RN(){typeof ResizeObserver>"u"||(Sb=new ResizeObserver(TN))}function VN(e,A){Sb||RN();const t=gk(e);return t.forEach(n=>{let B=Vb.get(n);B||(B=new Set,Vb.set(n,B)),B.add(A),Sb?.observe(n)}),()=>{t.forEach(n=>{const B=Vb.get(n);B?.delete(A),B?.size||Sb?.unobserve(n)})}}const Wb=new Set;let WG;function SN(){WG=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Wb.forEach(A=>A(e))},window.addEventListener("resize",WG)}function WN(e){return Wb.add(e),WG||SN(),()=>{Wb.delete(e),!Wb.size&&typeof WG=="function"&&(window.removeEventListener("resize",WG),WG=void 0)}}function Ck(e,A){return typeof e=="function"?WN(e):VN(e,A)}function NN(e){return ep(e)&&e.tagName==="svg"}const zN=[...ik,gB,wr],LN=e=>zN.find(sk(e)),vk=()=>({translate:0,scale:1,origin:0,originPoint:0}),NG=()=>({x:vk(),y:vk()}),Ik=()=>({min:0,max:0}),EB=()=>({x:Ik(),y:Ik()}),XN=new WeakMap;function Nb(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Tw(e){return typeof e=="string"||Array.isArray(e)}const tp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],np=["initial",...tp];function zb(e){return Nb(e.animate)||np.some(A=>Tw(e[A]))}function Hk(e){return!!(zb(e)||e.variants)}function ON(e,A,t){for(const n in A){const B=A[n],a=t[n];if(sa(B))e.addValue(n,B);else if(sa(a))e.addValue(n,SG(B,{owner:e}));else if(a!==B)if(e.hasValue(n)){const i=e.getValue(n);i.liveStyle===!0?i.jump(B):i.hasAnimated||i.set(B)}else{const i=e.getStaticValue(n);e.addValue(n,SG(i!==void 0?i:B,{owner:e}))}}for(const n in t)A[n]===void 0&&e.removeValue(n);return A}const Bp={current:null},pk={current:!1},JN=typeof window<"u";function KN(){if(pk.current=!0,!!JN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),A=()=>Bp.current=e.matches;e.addEventListener("change",A),A()}else Bp.current=!1}const mk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Lb={};function Ek(e){Lb=e}function jN(){return Lb}class _N{scrapeMotionValuesFromProps(A,t,n){return{}}constructor({parent:A,props:t,presenceContext:n,reducedMotionConfig:B,skipAnimations:a,blockInitialAnimation:i,visualState:c},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=T0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const C=Ta.now();this.renderScheduledAt<C&&(this.renderScheduledAt=C,Ot.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=c;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=d,this.parent=A,this.props=t,this.presenceContext=n,this.depth=A?A.depth+1:0,this.reducedMotionConfig=B,this.skipAnimationsConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=zb(t),this.isVariantNode=Hk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(A&&A.current);const{willChange:u,...w}=this.scrapeMotionValuesFromProps(t,{},this);for(const C in w){const H=w[C];l[C]!==void 0&&sa(H)&&H.set(l[C])}}mount(A){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=A,XN.set(A,this),this.projection&&!this.projection.instance&&this.projection.mount(A),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(pk.current||KN(),this.shouldReduceMotion=Bp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),$l(this.notifyUpdate),$l(this.render),this.valueSubscriptions.forEach(A=>A()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const A in this.events)this.events[A].clear();for(const A in this.features){const t=this.features[A];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(A){this.children.add(A),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(A)}removeChild(A){this.children.delete(A),this.enteringChildren&&this.enteringChildren.delete(A)}bindToMotionValue(A,t){if(this.valueSubscriptions.has(A)&&this.valueSubscriptions.get(A)(),t.accelerate&&KZ.has(A)&&this.current instanceof HTMLElement){const{factory:i,keyframes:c,times:o,ease:l,duration:d}=t.accelerate,u=new XZ({element:this.current,name:A,keyframes:c,times:o,ease:l,duration:Os(d)}),w=i(u);this.valueSubscriptions.set(A,()=>{w(),u.cancel()});return}const n=VG.has(A);n&&this.onBindTransform&&this.onBindTransform();const B=t.on("change",i=>{this.latestValues[A]=i,this.props.onUpdate&&Ot.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,A,t)),this.valueSubscriptions.set(A,()=>{B(),a&&a(),t.owner&&t.stop()})}sortNodePosition(A){return!this.current||!this.sortInstanceNodePosition||this.type!==A.type?0:this.sortInstanceNodePosition(this.current,A.current)}updateFeatures(){let A="animation";for(A in Lb){const t=Lb[A];if(!t)continue;const{isEnabled:n,Feature:B}=t;if(!this.features[A]&&B&&n(this.props)&&(this.features[A]=new B(this)),this.features[A]){const a=this.features[A];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):EB()}getStaticValue(A){return this.latestValues[A]}setStaticValue(A,t){this.latestValues[A]=t}update(A,t){(A.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=A,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<mk.length;n++){const B=mk[n];this.propEventSubscriptions[B]&&(this.propEventSubscriptions[B](),delete this.propEventSubscriptions[B]);const a="on"+B,i=A[a];i&&(this.propEventSubscriptions[B]=this.on(B,i))}this.prevMotionValues=ON(this,this.scrapeMotionValuesFromProps(A,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(A){return this.props.variants?this.props.variants[A]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(A){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(A),()=>t.variantChildren.delete(A)}addValue(A,t){const n=this.values.get(A);t!==n&&(n&&this.removeValue(A),this.bindToMotionValue(A,t),this.values.set(A,t),this.latestValues[A]=t.get())}removeValue(A){this.values.delete(A);const t=this.valueSubscriptions.get(A);t&&(t(),this.valueSubscriptions.delete(A)),delete this.latestValues[A],this.removeValueFromRenderState(A,this.renderState)}hasValue(A){return this.values.has(A)}getValue(A,t){if(this.props.values&&this.props.values[A])return this.props.values[A];let n=this.values.get(A);return n===void 0&&t!==void 0&&(n=SG(t===null?void 0:t,{owner:this}),this.addValue(A,n)),n}readValue(A,t){let n=this.latestValues[A]!==void 0||!this.current?this.latestValues[A]:this.getBaseTargetFromProps(this.props,A)??this.readValueFromInstance(this.current,A,this.options);return n!=null&&(typeof n=="string"&&(AZ(n)||tZ(n))?n=parseFloat(n):!LN(n)&&wr.test(t)&&(n=lk(A,t)),this.setBaseTarget(A,sa(n)?n.get():n)),sa(n)?n.get():n}setBaseTarget(A,t){this.baseTarget[A]=t}getBaseTarget(A){const{initial:t}=this.props;let n;if(typeof t=="string"||typeof t=="object"){const a=N0(this.props,t,this.presenceContext?.custom);a&&(n=a[A])}if(t&&n!==void 0)return n;const B=this.getBaseTargetFromProps(this.props,A);return B!==void 0&&!sa(B)?B:this.initialValues[A]!==void 0&&n===void 0?void 0:this.baseTarget[A]}on(A,t){return this.events[A]||(this.events[A]=new d0),this.events[A].add(t)}notify(A,...t){this.events[A]&&this.events[A].notify(...t)}scheduleRenderMicrotask(){q0.render(this.render)}}class yk extends _N{constructor(){super(...arguments),this.KeyframeResolver=pN}sortInstanceNodePosition(A,t){return A.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(A,t){const n=A.style;return n?n[t]:void 0}removeValueFromRenderState(A,{vars:t,style:n}){delete t[A],delete n[A]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:A}=this.props;sa(A)&&(this.childSubscription=A.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class tg{constructor(A){this.isMounted=!1,this.node=A}update(){}}function Yk({top:e,left:A,right:t,bottom:n}){return{x:{min:A,max:t},y:{min:e,max:n}}}function qN({x:e,y:A}){return{top:A.min,right:e.max,bottom:A.max,left:e.min}}function $N(e,A){if(!A)return e;const t=A({x:e.left,y:e.top}),n=A({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:n.y,right:n.x}}function ap(e){return e===void 0||e===1}function sp({scale:e,scaleX:A,scaleY:t}){return!ap(e)||!ap(A)||!ap(t)}function qd(e){return sp(e)||Zk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Zk(e){return kk(e.x)||kk(e.y)}function kk(e){return e&&e!=="0%"}function Xb(e,A,t){const n=e-t,B=A*n;return t+B}function Uk(e,A,t,n,B){return B!==void 0&&(e=Xb(e,B,n)),Xb(e,t,n)+A}function ip(e,A=0,t=1,n,B){e.min=Uk(e.min,A,t,n,B),e.max=Uk(e.max,A,t,n,B)}function Dk(e,{x:A,y:t}){ip(e.x,A.translate,A.scale,A.originPoint),ip(e.y,t.translate,t.scale,t.originPoint)}const Fk=.999999999999,Mk=1.0000000000001;function Az(e,A,t,n=!1){const B=t.length;if(!B)return;A.x=A.y=1;let a,i;for(let c=0;c<B;c++){a=t[c],i=a.projectionDelta;const{visualElement:o}=a.options;o&&o.props.style&&o.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(mc(e.x,-a.scroll.offset.x),mc(e.y,-a.scroll.offset.y)),i&&(A.x*=i.x.scale,A.y*=i.y.scale,Dk(e,i)),n&&qd(a.latestValues)&&Ob(e,a.latestValues,a.layout?.layoutBox))}A.x<Mk&&A.x>Fk&&(A.x=1),A.y<Mk&&A.y>Fk&&(A.y=1)}function mc(e,A){e.min+=A,e.max+=A}function Pk(e,A,t,n,B=.5){const a=cn(e.min,e.max,B);ip(e,A,t,a,n)}function xk(e,A){return typeof e=="string"?parseFloat(e)/100*(A.max-A.min):e}function Ob(e,A,t){const n=t??e;Pk(e.x,xk(A.x,n.x),A.scaleX,A.scale,A.originX),Pk(e.y,xk(A.y,n.y),A.scaleY,A.scale,A.originY)}function Tk(e,A){return Yk($N(e.getBoundingClientRect(),A))}function ez(e,A,t){const n=Tk(e,t),{scroll:B}=A;return B&&(mc(n.x,B.offset.x),mc(n.y,B.offset.y)),n}const tz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nz=RG.length;function Bz(e,A,t){let n="",B=!0;for(let a=0;a<nz;a++){const i=RG[a],c=e[i];if(c===void 0)continue;let o=!0;if(typeof c=="number")o=c===(i.startsWith("scale")?1:0);else{const l=parseFloat(c);o=i.startsWith("scale")?l===1:l===0}if(!o||t){const l=dk(c,_0[i]);if(!o){B=!1;const d=tz[i]||i;n+=`${d}(${l}) `}t&&(A[i]=l)}}return n=n.trim(),t?n=t(A,B?"":n):B&&(n="none"),n}function rp(e,A,t){const{style:n,vars:B,transformOrigin:a}=e;let i=!1,c=!1;for(const o in A){const l=A[o];if(VG.has(o)){i=!0;continue}else if(hZ(o)){B[o]=l;continue}else{const d=dk(l,_0[o]);o.startsWith("origin")?(c=!0,a[o]=d):n[o]=d}}if(A.transform||(i||t?n.transform=Bz(A,e.transform,t):n.transform&&(n.transform="none")),c){const{originX:o="50%",originY:l="50%",originZ:d=0}=a;n.transformOrigin=`${o} ${l} ${d}`}}function Rk(e,{style:A,vars:t},n,B){const a=e.style;let i;for(i in A)a[i]=A[i];B?.applyProjectionStyles(a,n);for(i in t)a.setProperty(i,t[i])}function Vk(e,A){return A.max===A.min?0:e/(A.max-A.min)*100}const Rw={correct:(e,A)=>{if(!A.target)return e;if(typeof e=="string")if(ae.test(e))e=parseFloat(e);else return e;const t=Vk(e,A.target.x),n=Vk(e,A.target.y);return`${t}% ${n}%`}},az={correct:(e,{treeScale:A,projectionDelta:t})=>{const n=e,B=wr.parse(e);if(B.length>5)return n;const a=wr.createTransformer(e),i=typeof B[0]!="number"?1:0,c=t.x.scale*A.x,o=t.y.scale*A.y;B[0+i]/=c,B[1+i]/=o;const l=cn(c,o,.5);return typeof B[2+i]=="number"&&(B[2+i]/=l),typeof B[3+i]=="number"&&(B[3+i]/=l),a(B)}},cp={borderRadius:{...Rw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Rw,borderTopRightRadius:Rw,borderBottomLeftRadius:Rw,borderBottomRightRadius:Rw,boxShadow:az};function Sk(e,{layout:A,layoutId:t}){return VG.has(e)||e.startsWith("origin")||(A||t!==void 0)&&(!!cp[e]||e==="opacity")}function op(e,A,t){const n=e.style,B=A?.style,a={};if(!n)return a;for(const i in n)(sa(n[i])||B&&sa(B[i])||Sk(i,e)||t?.getValue(i)?.liveStyle!==void 0)&&(a[i]=n[i]);return a}function sz(e){return window.getComputedStyle(e)}class iz extends yk{constructor(){super(...arguments),this.type="html",this.renderInstance=Rk}readValueFromInstance(A,t){if(VG.has(t))return this.projection?.isProjecting?D0(t):k5(A,t);{const n=sz(A),B=(hZ(t)?n.getPropertyValue(t):n[t])||0;return typeof B=="string"?B.trim():B}}measureInstanceViewportBox(A,{transformPagePoint:t}){return Tk(A,t)}build(A,t,n){rp(A,t,n.transformTemplate)}scrapeMotionValuesFromProps(A,t,n){return op(A,t,n)}}const rz={offset:"stroke-dashoffset",array:"stroke-dasharray"},cz={offset:"strokeDashoffset",array:"strokeDasharray"};function oz(e,A,t=1,n=0,B=!0){e.pathLength=1;const a=B?rz:cz;e[a.offset]=`${-n}`,e[a.array]=`${A} ${t}`}const lz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wk(e,{attrX:A,attrY:t,attrScale:n,pathLength:B,pathSpacing:a=1,pathOffset:i=0,...c},o,l,d){if(rp(e,c,l),o){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:u,style:w}=e;u.transform&&(w.transform=u.transform,delete u.transform),(w.transform||u.transformOrigin)&&(w.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),w.transform&&(w.transformBox=d?.transformBox??"fill-box",delete u.transformBox);for(const C of lz)u[C]!==void 0&&(w[C]=u[C],delete u[C]);A!==void 0&&(u.x=A),t!==void 0&&(u.y=t),n!==void 0&&(u.scale=n),B!==void 0&&oz(u,B,a,i,!1)}const Nk=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"]),zk=e=>typeof e=="string"&&e.toLowerCase()==="svg";function gz(e,A,t,n){Rk(e,A,void 0,n);for(const B in A.attrs)e.setAttribute(Nk.has(B)?B:O0(B),A.attrs[B])}function Lk(e,A,t){const n=op(e,A,t);for(const B in e)if(sa(e[B])||sa(A[B])){const a=RG.indexOf(B)!==-1?"attr"+B.charAt(0).toUpperCase()+B.substring(1):B;n[a]=e[B]}return n}class dz extends yk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=EB}getBaseTargetFromProps(A,t){return A[t]}readValueFromInstance(A,t){if(VG.has(t)){const n=ok(t);return n&&n.default||0}return t=Nk.has(t)?t:O0(t),A.getAttribute(t)}scrapeMotionValuesFromProps(A,t,n){return Lk(A,t,n)}build(A,t,n){Wk(A,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(A,t,n,B){gz(A,t,n,B)}mount(A){this.isSVGTag=zk(A.tagName),super.mount(A)}}const uz=np.length;function Xk(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent?Xk(e.parent)||{}:{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}const A={};for(let t=0;t<uz;t++){const n=np[t],B=e.props[n];(Tw(B)||B===!1)&&(A[n]=B)}return A}function Ok(e,A){if(!Array.isArray(A))return!1;const t=A.length;if(t!==e.length)return!1;for(let n=0;n<t;n++)if(A[n]!==e[n])return!1;return!0}const Gz=[...tp].reverse(),Qz=tp.length;function wz(e){return A=>Promise.all(A.map(({animation:t,options:n})=>ak(e,t,n)))}function hz(e){let A=wz(e),t=Jk(),n=!0,B=!1;const a=l=>(d,u)=>{const w=_d(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(w){const{transition:C,transitionEnd:H,...Y}=w;d={...d,...Y,...H}}return d};function i(l){A=l(e)}function c(l){const{props:d}=e,u=Xk(e.parent)||{},w=[],C=new Set;let H={},Y=1/0;for(let Z=0;Z<Qz;Z++){const T=Gz[Z],R=t[T],V=d[T]!==void 0?d[T]:u[T],F=Tw(V),S=T===l?R.isActive:null;S===!1&&(Y=Z);let K=V===u[T]&&V!==d[T]&&F;if(K&&(n||B)&&e.manuallyAnimateOnMount&&(K=!1),R.protectedKeys={...H},!R.isActive&&S===null||!V&&!R.prevProp||Nb(V)||typeof V=="boolean")continue;if(T==="exit"&&R.isActive&&S!==!0){R.prevResolvedValues&&(H={...H,...R.prevResolvedValues});continue}const J=fz(R.prevProp,V);let eA=J||T===l&&R.isActive&&!K&&F||Z>Y&&F,BA=!1;const oA=Array.isArray(V)?V:[V];let gA=oA.reduce(a(T),{});S===!1&&(gA={});const{prevResolvedValues:mA={}}=R,EA={...mA,...gA},UA=iA=>{eA=!0,C.has(iA)&&(BA=!0,C.delete(iA)),R.needsAnimating[iA]=!0;const OA=e.getValue(iA);OA&&(OA.liveStyle=!1)};for(const iA in EA){const OA=gA[iA],tA=mA[iA];if(H.hasOwnProperty(iA))continue;let N=!1;z0(OA)&&z0(tA)?N=!Ok(OA,tA):N=OA!==tA,N?OA!=null?UA(iA):C.add(iA):OA!==void 0&&C.has(iA)?UA(iA):R.protectedKeys[iA]=!0}R.prevProp=V,R.prevResolvedValues=gA,R.isActive&&(H={...H,...gA}),(n||B)&&e.blockInitialAnimation&&(eA=!1);const L=K&&J;eA&&(!L||BA)&&w.push(...oA.map(iA=>{const OA={type:T};if(typeof iA=="string"&&(n||B)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:tA}=e,N=_d(tA,iA);if(tA.enteringChildren&&N){const{delayChildren:uA}=N.transition||{};OA.delay=jZ(tA.enteringChildren,e,uA)}}return{animation:iA,options:OA}}))}if(C.size){const Z={};if(typeof d.initial!="boolean"){const T=_d(e,Array.isArray(d.initial)?d.initial[0]:d.initial);T&&T.transition&&(Z.transition=T.transition)}C.forEach(T=>{const R=e.getBaseTarget(T),V=e.getValue(T);V&&(V.liveStyle=!0),Z[T]=R??null}),w.push({animation:Z})}let y=!!w.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),n=!1,B=!1,y?A(w):Promise.resolve()}function o(l,d){if(t[l].isActive===d)return Promise.resolve();e.variantChildren?.forEach(w=>w.animationState?.setActive(l,d)),t[l].isActive=d;const u=c(l);for(const w in t)t[w].protectedKeys={};return u}return{animateChanges:c,setActive:o,setAnimateFunction:i,getState:()=>t,reset:()=>{t=Jk(),B=!0}}}function fz(e,A){return typeof A=="string"?A!==e:Array.isArray(A)?!Ok(A,e):!1}function $d(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jk(){return{animate:$d(!0),whileInView:$d(),whileHover:$d(),whileTap:$d(),whileDrag:$d(),whileFocus:$d(),exit:$d()}}function lp(e,A){e.min=A.min,e.max=A.max}function fr(e,A){lp(e.x,A.x),lp(e.y,A.y)}function Kk(e,A){e.translate=A.translate,e.scale=A.scale,e.originPoint=A.originPoint,e.origin=A.origin}const jk=1e-4,bz=1-jk,Cz=1+jk,_k=.01,vz=0-_k,Iz=0+_k;function Ra(e){return e.max-e.min}function Hz(e,A,t){return Math.abs(e-A)<=t}function qk(e,A,t,n=.5){e.origin=n,e.originPoint=cn(A.min,A.max,e.origin),e.scale=Ra(t)/Ra(A),e.translate=cn(t.min,t.max,e.origin)-e.originPoint,(e.scale>=bz&&e.scale<=Cz||isNaN(e.scale))&&(e.scale=1),(e.translate>=vz&&e.translate<=Iz||isNaN(e.translate))&&(e.translate=0)}function Vw(e,A,t,n){qk(e.x,A.x,t.x,n?n.originX:void 0),qk(e.y,A.y,t.y,n?n.originY:void 0)}function $k(e,A,t,n=0){const B=n?cn(t.min,t.max,n):t.min;e.min=B+A.min,e.max=e.min+Ra(A)}function pz(e,A,t,n){$k(e.x,A.x,t.x,n?.x),$k(e.y,A.y,t.y,n?.y)}function AU(e,A,t,n=0){const B=n?cn(t.min,t.max,n):t.min;e.min=A.min-B,e.max=e.min+Ra(A)}function Jb(e,A,t,n){AU(e.x,A.x,t.x,n?.x),AU(e.y,A.y,t.y,n?.y)}function eU(e,A,t,n,B){return e-=A,e=Xb(e,1/t,n),B!==void 0&&(e=Xb(e,1/B,n)),e}function mz(e,A=0,t=1,n=.5,B,a=e,i=e){if(pc.test(A)&&(A=parseFloat(A),A=cn(i.min,i.max,A/100)-i.min),typeof A!="number")return;let c=cn(a.min,a.max,n);e===a&&(c-=A),e.min=eU(e.min,A,t,c,B),e.max=eU(e.max,A,t,c,B)}function tU(e,A,[t,n,B],a,i){mz(e,A[t],A[n],A[B],A.scale,a,i)}const Ez=["x","scaleX","originX"],yz=["y","scaleY","originY"];function nU(e,A,t,n){tU(e.x,A,Ez,t?t.x:void 0,n?n.x:void 0),tU(e.y,A,yz,t?t.y:void 0,n?n.y:void 0)}function BU(e){return e.translate===0&&e.scale===1}function aU(e){return BU(e.x)&&BU(e.y)}function sU(e,A){return e.min===A.min&&e.max===A.max}function Yz(e,A){return sU(e.x,A.x)&&sU(e.y,A.y)}function iU(e,A){return Math.round(e.min)===Math.round(A.min)&&Math.round(e.max)===Math.round(A.max)}function rU(e,A){return iU(e.x,A.x)&&iU(e.y,A.y)}function cU(e){return Ra(e.x)/Ra(e.y)}function oU(e,A){return e.translate===A.translate&&e.scale===A.scale&&e.originPoint===A.originPoint}function Ec(e){return[e("x"),e("y")]}function Zz(e,A,t){let n="";const B=e.x.translate/A.x,a=e.y.translate/A.y,i=t?.z||0;if((B||a||i)&&(n=`translate3d(${B}px, ${a}px, ${i}px) `),(A.x!==1||A.y!==1)&&(n+=`scale(${1/A.x}, ${1/A.y}) `),t){const{transformPerspective:l,rotate:d,rotateX:u,rotateY:w,skewX:C,skewY:H}=t;l&&(n=`perspective(${l}px) ${n}`),d&&(n+=`rotate(${d}deg) `),u&&(n+=`rotateX(${u}deg) `),w&&(n+=`rotateY(${w}deg) `),C&&(n+=`skewX(${C}deg) `),H&&(n+=`skewY(${H}deg) `)}const c=e.x.scale*A.x,o=e.y.scale*A.y;return(c!==1||o!==1)&&(n+=`scale(${c}, ${o})`),n||"none"}const lU=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],kz=lU.length,gU=e=>typeof e=="string"?parseFloat(e):e,dU=e=>typeof e=="number"||ae.test(e);function Uz(e,A,t,n,B,a){B?(e.opacity=cn(0,t.opacity??1,Dz(n)),e.opacityExit=cn(A.opacity??1,0,Fz(n))):a&&(e.opacity=cn(A.opacity??1,t.opacity??1,n));for(let i=0;i<kz;i++){const c=lU[i];let o=uU(A,c),l=uU(t,c);if(o===void 0&&l===void 0)continue;o||(o=0),l||(l=0),o===0||l===0||dU(o)===dU(l)?(e[c]=Math.max(cn(gU(o),gU(l),n),0),(pc.test(l)||pc.test(o))&&(e[c]+="%")):e[c]=l}(A.rotate||t.rotate)&&(e.rotate=cn(A.rotate||0,t.rotate||0,n))}function uU(e,A){return e[A]!==void 0?e[A]:e.borderRadius}const Dz=GU(0,.5,lZ),Fz=GU(.5,.95,Yi);function GU(e,A,t){return n=>n<e?0:n>A?1:t(kw(e,A,n))}function Mz(e,A,t){const n=sa(e)?e:SG(e);return n.start(W0("",n,A,t)),n.animation}function Sw(e,A,t,n={passive:!0}){return e.addEventListener(A,t,n),()=>e.removeEventListener(A,t)}const Pz=(e,A)=>e.depth-A.depth;class xz{constructor(){this.children=[],this.isDirty=!1}add(A){l0(this.children,A),this.isDirty=!0}remove(A){Yb(this.children,A),this.isDirty=!0}forEach(A){this.isDirty&&this.children.sort(Pz),this.isDirty=!1,this.children.forEach(A)}}function Tz(e,A){const t=Ta.now(),n=({timestamp:B})=>{const a=B-t;a>=A&&($l(n),e(a-A))};return Ot.setup(n,!0),()=>$l(n)}function Kb(e){return sa(e)?e.get():e}class Rz{constructor(){this.members=[]}add(A){l0(this.members,A);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===A||n===this.lead||n===this.prevLead)continue;const B=n.instance;(!B||B.isConnected===!1)&&!n.snapshot&&(Yb(this.members,n),n.unmount())}A.scheduleRender()}remove(A){if(Yb(this.members,A),A===this.prevLead&&(this.prevLead=void 0),A===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(A){for(let t=this.members.indexOf(A)-1;t>=0;t--){const n=this.members[t];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(A,t){const n=this.lead;if(A!==n&&(this.prevLead=n,this.lead=A,A.show(),n)){n.updateSnapshot(),A.scheduleRender();const{layoutDependency:B}=n.options,{layoutDependency:a}=A.options;(B===void 0||B!==a)&&(A.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(A.snapshot=n.snapshot,A.snapshot.latestValues=n.animationValues||n.latestValues),A.root?.isUpdating&&(A.isLayoutDirty=!0)),A.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(A=>{A.options.onExitComplete?.(),A.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(A=>A.instance&&A.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const jb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},gp=["","X","Y","Z"],Vz=1e3;let Sz=0;function dp(e,A,t,n){const{latestValues:B}=A;B[e]&&(t[e]=B[e],A.setStaticValue(e,0),n&&(n[e]=0))}function QU(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:A}=e.options;if(!A)return;const t=nk(A);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:B,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(t,"transform",Ot,!(B||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&QU(n)}function wU({attachResizeListener:e,defaultParent:A,measureScroll:t,checkIsScrollRoot:n,resetTransform:B}){return class{constructor(i={},c=A?.()){this.id=Sz++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(zz),this.nodes.forEach(jz),this.nodes.forEach(_z),this.nodes.forEach(Lz)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new xz)}addEventListener(i,c){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new d0),this.eventHandlers.get(i).add(c)}notifyListeners(i,...c){const o=this.eventHandlers.get(i);o&&o.notify(...c)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=ep(i)&&!NN(i),this.instance=i;const{layoutId:c,layout:o,visualElement:l}=this.options;if(l&&!l.current&&l.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||c)&&(this.isLayoutDirty=!0),e){let d,u=0;const w=()=>this.root.updateBlockedByResize=!1;Ot.read(()=>{u=window.innerWidth}),e(i,()=>{const C=window.innerWidth;C!==u&&(u=C,this.root.updateBlockedByResize=!0,d&&d(),d=Tz(w,250),jb.hasAnimatedSinceResize&&(jb.hasAnimatedSinceResize=!1,this.nodes.forEach(bU)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&l&&(c||o)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:w,layout:C})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const H=this.options.transition||l.getDefaultTransition()||tL,{onLayoutAnimationStart:Y,onLayoutAnimationComplete:y}=l.getProps(),Z=!this.targetLayout||!rU(this.targetLayout,C),T=!u&&w;if(this.options.layoutRoot||this.resumeFrom||T||u&&(Z||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...S0(H,"layout"),onPlay:Y,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(d,T)}else u||bU(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=C})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$l(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(qz),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&QU(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const u=this.path[d];u.shouldResetTransform=!0,(typeof u.latestValues.x=="string"||typeof u.latestValues.y=="string")&&(u.isLayoutDirty=!0),u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:c,layout:o}=this.options;if(c===void 0&&!o)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const o=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),o&&this.nodes.forEach(Oz),this.nodes.forEach(hU);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(fU);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Jz),this.nodes.forEach(Kz),this.nodes.forEach(Wz),this.nodes.forEach(Nz)):this.nodes.forEach(fU),this.clearAllSnapshots();const c=Ta.now();aa.delta=Hc(0,1e3/60,c-aa.timestamp),aa.timestamp=c,aa.isProcessing=!0,Q0.update.process(aa),Q0.preRender.process(aa),Q0.render.process(aa),aa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,q0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Xz),this.sharedNodes.forEach($z)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ra(this.snapshot.measuredBox.x)&&!Ra(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let o=0;o<this.path.length;o++)this.path[o].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=EB()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(c=!1),c&&this.instance){const o=n(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:o,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:o}}}resetTransform(){if(!B)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!aU(this.projectionDelta),o=this.getTransformTemplate(),l=o?o(this.latestValues,""):void 0,d=l!==this.prevTransformTemplateValue;i&&this.instance&&(c||qd(this.latestValues)||d)&&(B(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const c=this.measurePageBox();let o=this.removeElementScroll(c);return i&&(o=this.removeTransform(o)),nL(o),{animationId:this.root.animationId,measuredBox:c,layoutBox:o,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return EB();const c=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(BL))){const{scroll:l}=this.root;l&&(mc(c.x,l.offset.x),mc(c.y,l.offset.y))}return c}removeElementScroll(i){const c=EB();if(fr(c,i),this.scroll?.wasRoot)return c;for(let o=0;o<this.path.length;o++){const l=this.path[o],{scroll:d,options:u}=l;l!==this.root&&d&&u.layoutScroll&&(d.wasRoot&&fr(c,i),mc(c.x,d.offset.x),mc(c.y,d.offset.y))}return c}applyTransform(i,c=!1,o){const l=o||EB();fr(l,i);for(let d=0;d<this.path.length;d++){const u=this.path[d];!c&&u.options.layoutScroll&&u.scroll&&u!==u.root&&(mc(l.x,-u.scroll.offset.x),mc(l.y,-u.scroll.offset.y)),qd(u.latestValues)&&Ob(l,u.latestValues,u.layout?.layoutBox)}return qd(this.latestValues)&&Ob(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(i){const c=EB();fr(c,i);for(let o=0;o<this.path.length;o++){const l=this.path[o];if(!qd(l.latestValues))continue;let d;l.instance&&(sp(l.latestValues)&&l.updateSnapshot(),d=EB(),fr(d,l.measurePageBox())),nU(c,l.latestValues,l.snapshot?.layoutBox,d)}return qd(this.latestValues)&&nU(c,this.latestValues),c}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==aa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const o=!!this.resumingFrom||this!==c;if(!(i||o&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:u}=this.options;if(!this.layout||!(d||u))return;this.resolvedRelativeTargetAt=aa.timestamp;const w=this.getClosestProjectingParent();w&&this.linkedParentVersion!==w.layoutVersion&&!w.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&w&&w.layout?this.createRelativeTarget(w,this.layout.layoutBox,w.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=EB(),this.targetWithTransforms=EB()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pz(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):fr(this.target,this.layout.layoutBox),Dk(this.target,this.targetDelta)):fr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?this.createRelativeTarget(w,this.target,w.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||sp(this.parent.latestValues)||Zk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,c,o){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=EB(),this.relativeTargetOrigin=EB(),Jb(this.relativeTargetOrigin,c,o,this.options.layoutAnchor||void 0),fr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),c=!!this.resumingFrom||this!==i;let o=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(o=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===aa.timestamp&&(o=!1),o)return;const{layout:l,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||d))return;fr(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,w=this.treeScale.y;Az(this.layoutCorrected,this.treeScale,this.path,c),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=EB());const{target:C}=i;if(!C){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Kk(this.prevProjectionDelta.x,this.projectionDelta.x),Kk(this.prevProjectionDelta.y,this.projectionDelta.y)),Vw(this.projectionDelta,this.layoutCorrected,C,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==w||!oU(this.projectionDelta.x,this.prevProjectionDelta.x)||!oU(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",C))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=NG(),this.projectionDelta=NG(),this.projectionDeltaWithTransform=NG()}setAnimationOrigin(i,c=!1){const o=this.snapshot,l=o?o.latestValues:{},d={...this.latestValues},u=NG();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const w=EB(),C=o?o.source:void 0,H=this.layout?this.layout.source:void 0,Y=C!==H,y=this.getStack(),Z=!y||y.members.length<=1,T=!!(Y&&!Z&&this.options.crossfade===!0&&!this.path.some(eL));this.animationProgress=0;let R;this.mixTargetDelta=V=>{const F=V/1e3;CU(u.x,i.x,F),CU(u.y,i.y,F),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Jb(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),AL(this.relativeTarget,this.relativeTargetOrigin,w,F),R&&Yz(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=EB()),fr(R,this.relativeTarget)),Y&&(this.animationValues=d,Uz(d,l,this.latestValues,F,T,Z)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&($l(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ot.update(()=>{jb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=SG(0)),this.motionValue.jump(0,!1),this.currentAnimation=Mz(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),i.onUpdate&&i.onUpdate(c)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vz),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:c,target:o,layout:l,latestValues:d}=i;if(!(!c||!o||!l)){if(this!==i&&this.layout&&l&&mU(this.options.animationType,this.layout.layoutBox,l.layoutBox)){o=this.target||EB();const u=Ra(this.layout.layoutBox.x);o.x.min=i.target.x.min,o.x.max=o.x.min+u;const w=Ra(this.layout.layoutBox.y);o.y.min=i.target.y.min,o.y.max=o.y.min+w}fr(c,o),Ob(c,d),Vw(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(i,c){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Rz),this.sharedNodes.get(i).add(c);const l=c.options.initialPromotionConfig;c.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(c):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:c,preserveFollowOpacity:o}={}){const l=this.getStack();l&&l.promote(this,o),i&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let c=!1;const{latestValues:o}=i;if((o.z||o.rotate||o.rotateX||o.rotateY||o.rotateZ||o.skewX||o.skewY)&&(c=!0),!c)return;const l={};o.z&&dp("z",i,l,this.animationValues);for(let d=0;d<gp.length;d++)dp(`rotate${gp[d]}`,i,l,this.animationValues),dp(`skew${gp[d]}`,i,l,this.animationValues);i.render();for(const d in l)i.setStaticValue(d,l[d]),this.animationValues&&(this.animationValues[d]=l[d]);i.scheduleRender()}applyProjectionStyles(i,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const o=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Kb(c?.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Kb(c?.pointerEvents)||""),this.hasProjected&&!qd(this.latestValues)&&(i.transform=o?o({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=l.animationValues||l.latestValues;this.applyTransformsToTarget();let u=Zz(this.projectionDeltaWithTransform,this.treeScale,d);o&&(u=o(d,u)),i.transform=u;const{x:w,y:C}=this.projectionDelta;i.transformOrigin=`${w.origin*100}% ${C.origin*100}% 0`,l.animationValues?i.opacity=l===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=l===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const H in cp){if(d[H]===void 0)continue;const{correct:Y,applyTo:y,isCSSVariable:Z}=cp[H],T=u==="none"?d[H]:Y(d[H],l);if(y){const R=y.length;for(let V=0;V<R;V++)i[y[V]]=T}else Z?this.options.visualElement.renderState.vars[H]=T:i[H]=T}this.options.layoutId&&(i.pointerEvents=l===this?Kb(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(hU),this.root.sharedNodes.clear()}}}function Wz(e){e.updateLayout()}function Nz(e){const A=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&A&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:B}=e.options,a=A.source!==e.layout.source;if(B==="size")Ec(d=>{const u=a?A.measuredBox[d]:A.layoutBox[d],w=Ra(u);u.min=t[d].min,u.max=u.min+w});else if(B==="x"||B==="y"){const d=B==="x"?"y":"x";lp(a?A.measuredBox[d]:A.layoutBox[d],t[d])}else mU(B,A.layoutBox,t)&&Ec(d=>{const u=a?A.measuredBox[d]:A.layoutBox[d],w=Ra(t[d]);u.max=u.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+w)});const i=NG();Vw(i,t,A.layoutBox);const c=NG();a?Vw(c,e.applyTransform(n,!0),A.measuredBox):Vw(c,t,A.layoutBox);const o=!aU(i);let l=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:u,layout:w}=d;if(u&&w){const C=e.options.layoutAnchor||void 0,H=EB();Jb(H,A.layoutBox,u.layoutBox,C);const Y=EB();Jb(Y,t,w.layoutBox,C),rU(H,Y)||(l=!0),d.options.layoutRoot&&(e.relativeTarget=Y,e.relativeTargetOrigin=H,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:A,delta:c,layoutDelta:i,hasLayoutChanged:o,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function zz(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Lz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Xz(e){e.clearSnapshot()}function hU(e){e.clearMeasurements()}function Oz(e){e.isLayoutDirty=!0,e.updateLayout()}function fU(e){e.isLayoutDirty=!1}function Jz(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Kz(e){const{visualElement:A}=e.options;A&&A.getProps().onBeforeLayoutMeasure&&A.notify("BeforeLayoutMeasure"),e.resetTransform()}function bU(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function jz(e){e.resolveTargetDelta()}function _z(e){e.calcProjection()}function qz(e){e.resetSkewAndRotation()}function $z(e){e.removeLeadSnapshot()}function CU(e,A,t){e.translate=cn(A.translate,0,t),e.scale=cn(A.scale,1,t),e.origin=A.origin,e.originPoint=A.originPoint}function vU(e,A,t,n){e.min=cn(A.min,t.min,n),e.max=cn(A.max,t.max,n)}function AL(e,A,t,n){vU(e.x,A.x,t.x,n),vU(e.y,A.y,t.y,n)}function eL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tL={duration:.45,ease:[.4,0,.1,1]},IU=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),HU=IU("applewebkit/")&&!IU("chrome/")?Math.round:Yi;function pU(e){e.min=HU(e.min),e.max=HU(e.max)}function nL(e){pU(e.x),pU(e.y)}function mU(e,A,t){return e==="position"||e==="preserve-aspect"&&!Hz(cU(A),cU(t),.2)}function BL(e){return e!==e.root&&e.scroll?.wasRoot}const aL=wU({attachResizeListener:(e,A)=>Sw(e,"resize",A),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),up={current:void 0},EU=wU({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!up.current){const e=new aL({});e.mount(window),e.setOptions({layoutScroll:!0}),up.current=e}return up.current},resetTransform:(e,A)=>{e.style.transform=A!==void 0?A:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Gp=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yU(e,A){if(typeof e=="function")return e(A);e!=null&&(e.current=A)}function sL(...e){return A=>{let t=!1;const n=e.map(B=>{const a=yU(B,A);return!t&&typeof a=="function"&&(t=!0),a});if(t)return()=>{for(let B=0;B<n.length;B++){const a=n[B];typeof a=="function"?a():yU(e[B],null)}}}}function iL(...e){return x.useCallback(sL(...e),e)}class rL extends x.Component{getSnapshotBeforeUpdate(A){const t=this.props.childRef.current;if(Tb(t)&&A.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const n=t.offsetParent,B=Tb(n)&&n.offsetWidth||0,a=Tb(n)&&n.offsetHeight||0,i=getComputedStyle(t),c=this.props.sizeRef.current;c.height=parseFloat(i.height),c.width=parseFloat(i.width),c.top=t.offsetTop,c.left=t.offsetLeft,c.right=B-c.width-c.left,c.bottom=a-c.height-c.top}return null}componentDidUpdate(){}render(){return this.props.children}}function cL({children:e,isPresent:A,anchorX:t,anchorY:n,root:B,pop:a}){const i=x.useId(),c=x.useRef(null),o=x.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=x.useContext(Gp),d=e.props?.ref??e?.ref,u=iL(c,d);return x.useInsertionEffect(()=>{const{width:w,height:C,top:H,left:Y,right:y,bottom:Z}=o.current;if(A||a===!1||!c.current||!w||!C)return;const T=t==="left"?`left: ${Y}`:`right: ${y}`,R=n==="bottom"?`bottom: ${Z}`:`top: ${H}`;c.current.dataset.motionPopId=i;const V=document.createElement("style");l&&(V.nonce=l);const F=B??document.head;return F.appendChild(V),V.sheet&&V.sheet.insertRule(`
57
57
  [data-motion-pop-id="${i}"] {
58
58
  position: absolute !important;
59
59
  width: ${w}px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careshiphealth/widget",
3
- "version": "2.2.4-ela",
3
+ "version": "2.2.4",
4
4
  "type": "module",
5
5
  "module": "dist/widget.iife.js",
6
6
  "exports": {