Accessories

Showing all 13 results

";t=t.removeChild(t.firstChild);break;case"select":t="string"===typeof i.is?u.createElement("select",{is:i.is}):u.createElement("select");i.multiple?t.multiple=true:i.size&&(t.size=i.size);break;default:t="string"===typeof i.is?u.createElement(n,{is:i.is}):u.createElement(n)}}t[It]=e;t[le]=i;t:for(u=e.child;null!==u;){if(5===u.tag||6===u.tag)t.appendChild(u.stateNode);else if(4!==u.tag&&27!==u.tag&&null!==u.child){u.child.return=u;u=u.child;continue}if(u===e)break t;for(;null===u.sibling;){if(null===u.return||u.return===e)break t;u=u.return}u.sibling.return=u.return;u=u.sibling}e.stateNode=t;t:switch(Wt(t,n,i),n){case"button":case"input":case"select":case"textarea":t=!!i.autoFocus;break t;case"img":t=true;break t;default:t=false}t&&on(e)}}Ct(e);e.flags&=-16777217;return null;case 6:if(t&&null!=e.stateNode)t.memoizedProps!==i&&on(e);else{if("string"!==typeof i&&null===e.stateNode)throw Error(o(166));t=lt.current;if(Ri(e)){t=e.stateNode;n=e.memoizedProps;i=null;u=ae;if(null!==u)switch(u.tag){case 27:case 5:i=u.memoizedProps}t[It]=e;t=t.nodeValue===n||null!==i&&true===i.suppressHydrationWarning||Ep(t.nodeValue,n)?true:false;t||In(e)}else t=qs(t).createTextNode(i),t[It]=e,e.stateNode=t}Ct(e);return null;case 13:i=e.memoizedState;if(null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){u=Ri(e);if(null!==i&&null!==i.dehydrated){if(null===t){if(!u)throw Error(o(318));u=e.memoizedState;u=null!==u?u.dehydrated:null;if(!u)throw Error(o(317));u[It]=e}else Oi(),0===(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Ct(e);u=false}else u=od(),null!==t&&null!==t.memoizedState&&(t.memoizedState.hydrationErrors=u),u=true;if(!u){if(e.flags&256)return un(e),e;un(e);return null}}un(e);if(0!==(e.flags&128))return e.lanes=n,e;n=null!==i;t=null!==t&&null!==t.memoizedState;if(n){i=e.child;u=null;null!==i.alternate&&null!==i.alternate.memoizedState&&null!==i.alternate.memoizedState.cachePool&&(u=i.alternate.memoizedState.cachePool.pool);var c=null;null!==i.memoizedState&&null!==i.memoizedState.cachePool&&(c=i.memoizedState.cachePool.pool);c!==u&&(i.flags|=2048)}n!==t&&n&&(e.child.flags|=8192);Rs(e,e.updateQueue);Ct(e);return null;case 4:return yn(),null===t&&bo(e.stateNode.containerInfo),Ct(e),null;case 10:return ln(e.type),Ct(e),null;case 19:k(Zt);u=e.memoizedState;if(null===u)return Ct(e),null;i=0!==(e.flags&128);c=u.rendering;if(null===c)if(i)Zi(u,false);else{if(0!==Vt||null!==t&&0!==(t.flags&128))for(t=e.child;null!==t;){c=xs(t);if(null!==c){e.flags|=128;Zi(u,false);t=c.updateQueue;e.updateQueue=t;Rs(e,t);e.subtreeFlags=0;t=n;for(n=e.child;null!==n;)ld(n,t),n=n.sibling;Q(Zt,Zt.current&1|2);return e.child}t=t.sibling}null!==u.tail&&Ye()>ws&&(e.flags|=128,i=true,Zi(u,false),e.lanes=4194304)}else{if(!i)if(t=xs(c),null!==t){if(e.flags|=128,i=true,t=t.updateQueue,e.updateQueue=t,Rs(e,t),Zi(u,true),null===u.tail&&"hidden"===u.tailMode&&!c.alternate&&!gt)return Ct(e),null}else 2*Ye()-u.renderingStartTime>ws&&536870912!==n&&(e.flags|=128,i=true,Zi(u,false),e.lanes=4194304);u.isBackwards?(c.sibling=e.child,e.child=c):(t=u.last,null!==t?t.sibling=c:e.child=c,u.last=c)}if(null!==u.tail)return e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Ye(),e.sibling=null,t=Zt.current,Q(Zt,i?t&1|2:t&1),e;Ct(e);return null;case 22:case 23:return un(e),Sr(),i=null!==e.memoizedState,null!==t?null!==t.memoizedState!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?0!==(n&536870912)&&0===(e.flags&128)&&(Ct(e),e.subtreeFlags&6&&(e.flags|=8192)):Ct(e),n=e.updateQueue,null!==n&&Rs(e,n.retryQueue),n=null,null!==t&&null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(n=t.memoizedState.cachePool.pool),i=null,null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),null!==t&&k(na),null;case 24:return n=null,null!==t&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),ln(Xt),Ct(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}s(K1,"completeWork");function Q1(t,e){sr(e);switch(e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ln(Xt),yn(),t=e.flags,0!==(t&65536)&&0===(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ll(e),null;case 13:un(e);t=e.memoizedState;if(null!==t&&null!==t.dehydrated){if(null===e.alternate)throw Error(o(340));Oi()}t=e.flags;return t&65536?(e.flags=t&-65537|128,e):null;case 19:return k(Zt),null;case 4:return yn(),null;case 10:return ln(e.type),null;case 22:case 23:return un(e),Sr(),null!==t&&k(na),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ln(Xt),null;case 25:return null;default:return null}}s(Q1,"unwindWork");function Vm(t,e){sr(e);switch(e.tag){case 3:ln(Xt);yn();break;case 26:case 27:case 5:Ll(e);break;case 4:yn();break;case 13:un(e);break;case 19:k(Zt);break;case 10:ln(e.type);break;case 22:case 23:un(e);Sr();null!==t&&k(na);break;case 24:ln(Xt)}}s(Vm,"unwindInterruptedWork");function Ki(t,e){try{var n=e.updateQueue,i=null!==n?n.lastEffect:null;if(null!==i){var u=i.next;n=u;do{if((n.tag&t)===t){i=void 0;var c=n.create,h=n.inst;i=c();h.destroy=i}n=n.next}while(n!==u)}}catch(v){Et(e,e.return,v)}}s(Ki,"commitHookEffectListMount");function Rn(t,e,n){try{var i=e.updateQueue,u=null!==i?i.lastEffect:null;if(null!==u){var c=u.next;i=c;do{if((i.tag&t)===t){var h=i.inst,v=h.destroy;if(void 0!==v){h.destroy=void 0;u=e;var T=n,O=v;try{O()}catch(V){Et(u,T,V)}}}i=i.next}while(i!==c)}}catch(V){Et(e,e.return,V)}}s(Rn,"commitHookEffectListUnmount");function Um(t){var e=t.updateQueue;if(null!==e){var n=t.stateNode;try{Sd(e,n)}catch(i){Et(t,t.return,i)}}}s(Um,"commitClassCallbacks");function _m(t,e,n){n.props=ia(t.type,t.memoizedProps);n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Et(t,e,i)}}s(_m,"safelyCallComponentWillUnmount");function Qi(t,e){try{var n=t.ref;if(null!==n){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}"function"===typeof n?t.refCleanup=n(i):n.current=i}}catch(u){Et(t,e,u)}}s(Qi,"safelyAttachRef");function Ze(t,e){var n=t.ref,i=t.refCleanup;if(null!==n)if("function"===typeof i)try{i()}catch(u){Et(t,e,u)}finally{t.refCleanup=null,t=t.alternate,null!=t&&(t.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(u){Et(t,e,u)}else n.current=null}s(Ze,"safelyDetachRef");function Nm(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(u){Et(t,t.return,u)}}s(Nm,"commitHostMount");function Pr(t,e,n){try{var i=t.stateNode;db(i,t.type,n,e);i[le]=e}catch(u){Et(t,t.return,u)}}s(Pr,"commitHostUpdate");function jm(t){return 5===t.tag||3===t.tag||26===t.tag||27===t.tag&&Nn(t.type)||4===t.tag}s(jm,"isHostParent");function Jr(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||jm(t.return))return null;t=t.return}t.sibling.return=t.return;for(t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(27===t.tag&&Nn(t.type))continue t;if(t.flags&2)continue t;if(null===t.child||4===t.tag)continue t;else t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}s(Jr,"getHostSibling");function Fr(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(t,e):(e=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,null!==n&&void 0!==n||null!==e.onclick||(e.onclick=Hs));else if(4!==i&&(27===i&&Nn(t.type)&&(n=t.stateNode,e=null),t=t.child,null!==t))for(Fr(t,e,n),t=t.sibling;null!==t;)Fr(t,e,n),t=t.sibling}s(Fr,"insertOrAppendPlacementNodeIntoContainer");function Os(t,e,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==i&&(27===i&&Nn(t.type)&&(n=t.stateNode),t=t.child,null!==t))for(Os(t,e,n),t=t.sibling;null!==t;)Os(t,e,n),t=t.sibling}s(Os,"insertOrAppendPlacementNode");function Bm(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);Wt(e,i,n);e[It]=t;e[le]=n}catch(c){Et(t,t.return,c)}}s(Bm,"commitHostSingletonAcquisition");var cn=false,Nt=false,Wr=false,Lm="function"===typeof WeakSet?WeakSet:Set,kt=null;function k1(t,e){t=t.containerInfo;xo=Qs;t=Jh(t);if(Ju(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&0!==i.rangeCount){n=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch(et){n=null;break t}var h=0,v=-1,T=-1,O=0,V=0,j=t,C=null;e:for(;;){for(var w;;){j!==n||0!==u&&3!==j.nodeType||(v=h+u);j!==c||0!==i&&3!==j.nodeType||(T=h+i);3===j.nodeType&&(h+=j.nodeValue.length);if(null===(w=j.firstChild))break;C=j;j=w}for(;;){if(j===t)break e;C===n&&++O===u&&(v=h);C===c&&++V===i&&(T=h);if(null!==(w=j.nextSibling))break;j=C;C=j.parentNode}j=w}n=-1===v||-1===T?null:{start:v,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;Ao={focusedElem:t,selectionRange:n};Qs=false;for(kt=e;null!==kt;)if(e=kt,t=e.child,0!==(e.subtreeFlags&1024)&&null!==t)t.return=e,kt=t;else for(;null!==kt;){e=kt;c=e.alternate;t=e.flags;switch(e.tag){case 0:break;case 11:case 15:break;case 1:if(0!==(t&1024)&&null!==c){t=void 0;n=e;u=c.memoizedProps;c=c.memoizedState;i=n.stateNode;try{var at=ia(n.type,u,n.elementType===n.type);t=i.getSnapshotBeforeUpdate(at,c);i.__reactInternalSnapshotBeforeUpdate=t}catch(et){Et(n,n.return,et)}}break;case 3:if(0!==(t&1024)){if(t=e.stateNode.containerInfo,n=t.nodeType,9===n)Do(t);else if(1===n)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Do(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(0!==(t&1024))throw Error(o(163))}t=e.sibling;if(null!==t){t.return=e.return;kt=t;break}kt=e.return}}s(k1,"commitBeforeMutationEffects");function Hm(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:On(t,n);i&4&&Ki(5,n);break;case 1:On(t,n);if(i&4)if(t=n.stateNode,null===e)try{t.componentDidMount()}catch(h){Et(n,n.return,h)}else{var u=ia(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(h){Et(n,n.return,h)}}i&64&&Um(n);i&512&&Qi(n,n.return);break;case 3:On(t,n);if(i&64&&(t=n.updateQueue,null!==t)){e=null;if(null!==n.child)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Sd(t,e)}catch(h){Et(n,n.return,h)}}break;case 27:null===e&&i&4&&Bm(n);case 26:case 5:On(t,n);null===e&&i&4&&Nm(n);i&512&&Qi(n,n.return);break;case 12:On(t,n);break;case 13:On(t,n);i&4&&Gm(t,n);i&64&&(t=n.memoizedState,null!==t&&(t=t.dehydrated,null!==t&&(n=nb.bind(null,n),Sb(t,n))));break;case 22:i=null!==n.memoizedState||cn;if(!i){e=null!==e&&null!==e.memoizedState||Nt;u=cn;var c=Nt;cn=i;(Nt=e)&&!c?Cn(t,n,0!==(n.subtreeFlags&8772)):On(t,n);cn=u;Nt=c}break;case 30:break;default:On(t,n)}}s(Hm,"commitLayoutEffectOnFiber");function qm(t){var e=t.alternate;null!==e&&(t.alternate=null,qm(e));t.child=null;t.deletions=null;t.sibling=null;5===t.tag&&(e=t.stateNode,null!==e&&wu(e));t.stateNode=null;t.return=null;t.dependencies=null;t.memoizedProps=null;t.memoizedState=null;t.pendingProps=null;t.stateNode=null;t.updateQueue=null}s(qm,"detachFiberAfterEffects");var Rt=null,re=false;function fn(t,e,n){for(n=n.child;null!==n;)Ym(t,e,n),n=n.sibling}s(fn,"recursivelyTraverseDeletionEffects");function Ym(t,e,n){if(de&&"function"===typeof de.onCommitFiberUnmount)try{de.onCommitFiberUnmount(di,n)}catch(c){}switch(n.tag){case 26:Nt||Ze(n,e);fn(t,e,n);n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Nt||Ze(n,e);var i=Rt,u=re;Nn(n.type)&&(Rt=n.stateNode,re=false);fn(t,e,n);el(n.stateNode);Rt=i;re=u;break;case 5:Nt||Ze(n,e);case 6:i=Rt;u=re;Rt=null;fn(t,e,n);Rt=i;re=u;if(null!==Rt)if(re)try{(9===Rt.nodeType?Rt.body:"HTML"===Rt.nodeName?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(c){Et(n,e,c)}else try{Rt.removeChild(n.stateNode)}catch(c){Et(n,e,c)}break;case 18:null!==Rt&&(re?(t=Rt,Cp(9===t.nodeType?t.body:"HTML"===t.nodeName?t.ownerDocument.body:t,n.stateNode),ol(t)):Cp(Rt,n.stateNode));break;case 4:i=Rt;u=re;Rt=n.stateNode.containerInfo;re=true;fn(t,e,n);Rt=i;re=u;break;case 0:case 11:case 14:case 15:Nt||Rn(2,n,e);Nt||Rn(4,n,e);fn(t,e,n);break;case 1:Nt||(Ze(n,e),i=n.stateNode,"function"===typeof i.componentWillUnmount&&_m(n,e,i));fn(t,e,n);break;case 21:fn(t,e,n);break;case 22:Nt=(i=Nt)||null!==n.memoizedState;fn(t,e,n);Nt=i;break;default:fn(t,e,n)}}s(Ym,"commitDeletionEffectsOnFiber");function Gm(t,e){if(null===e.memoizedState&&(t=e.alternate,null!==t&&(t=t.memoizedState,null!==t&&(t=t.dehydrated,null!==t))))try{ol(t)}catch(n){Et(e,e.return,n)}}s(Gm,"commitSuspenseHydrationCallbacks");function P1(t){switch(t.tag){case 13:case 19:var e=t.stateNode;null===e&&(e=t.stateNode=new Lm);return e;case 22:return t=t.stateNode,e=t._retryCache,null===e&&(e=t._retryCache=new Lm),e;default:throw Error(o(435,t.tag))}}s(P1,"getRetryCache");function $r(t,e){var n=P1(t);e.forEach(function(i){var u=ab.bind(null,t,i);n.has(i)||(n.add(i),i.then(u,u))})}s($r,"attachSuspenseRetryListeners");function ge(t,e){var n=e.deletions;if(null!==n)for(var i=0;i title"));Wt(c,i,n);c[It]=t;Kt(c);i=c;break t;case"link":var h=Bp("link","href",u).get(i+(n.href||""));if(h){for(var v=0;vAt&&(h=At,At=et,et=h);var M=kh(v,et),E=kh(v,At);if(M&&E&&(1!==w.rangeCount||w.anchorNode!==M.node||w.anchorOffset!==M.offset||w.focusNode!==E.node||w.focusOffset!==E.offset)){var D=j.createRange();D.setStart(M.node,M.offset);w.removeAllRanges();et>At?(w.addRange(D),w.extend(E.node,E.offset)):(D.setEnd(E.node,E.offset),w.addRange(D))}}}}j=[];for(w=v;w=w.parentNode;)1===w.nodeType&&j.push({element:w,left:w.scrollLeft,top:w.scrollTop});"function"===typeof v.focus&&v.focus();for(v=0;vn?32:n;z.T=null;n=so;so=null;var c=Un,h=ka;Ft=0;Qa=Un=null;ka=0;if(0!==(vt&6))throw Error(o(331));var v=vt;vt|=4;Pm(c.current);Km(c,c.current,h,n);vt=v;$i(0,false);if(de&&"function"===typeof de.onPostCommitFiberRoot)try{de.onPostCommitFiberRoot(di,c)}catch(T){}return true}finally{G.p=u,z.T=i,cp(t,e)}}s(fp,"flushPassiveEffects");function hp(t,e,n){e=Ee(n,e);e=Hr(t.stateNode,e,2);t=An(t,e,2);null!==t&&(pi(t,2),Qe(t))}s(hp,"captureCommitPhaseErrorOnRoot");function Et(t,e,n){if(3===t.tag)hp(t,t,n);else for(;null!==e;){if(3===e.tag){hp(e,t,n);break}else if(1===e.tag){var i=e.stateNode;if("function"===typeof e.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===Vn||!Vn.has(i))){t=Ee(n,t);n=ym(2);i=An(e,n,2);null!==i&&(gm(n,i,e,t),pi(i,2),Qe(i));break}}e=e.return}}s(Et,"captureCommitPhaseError");function fo(t,e,n){var i=t.pingCache;if(null===i){i=t.pingCache=new F1;var u=new Set;i.set(e,u)}else u=i.get(e),void 0===u&&(u=new Set,i.set(e,u));u.has(n)||(eo=true,u.add(n),t=eb.bind(null,t,e,n),e.then(t,t))}s(fo,"attachPingListener");function eb(t,e,n){var i=t.pingCache;null!==i&&i.delete(e);t.pingedLanes|=t.suspendedLanes&n;t.warmLanes&=~n;Mt===t&&(dt&n)===n&&(4===Vt||3===Vt&&(dt&62914560)===dt&&300>Ye()-io?0===(vt&2)&&Pa(t,0):no|=n,Ka===dt&&(Ka=0));Qe(t)}s(eb,"pingSuspendedRoot");function dp(t,e){0===e&&(e=oh());t=wa(t,e);null!==t&&(pi(t,e),Qe(t))}s(dp,"retryTimedOutBoundary");function nb(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane);dp(t,n)}s(nb,"retryDehydratedSuspenseBoundary");function ab(t,e){var n=0;switch(t.tag){case 13:var i=t.stateNode;var u=t.memoizedState;null!==u&&(n=u.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(o(314))}null!==i&&i.delete(e);dp(t,n)}s(ab,"resolveRetryWakeable");function ib(t,e){return Eu(t,e)}s(ib,"scheduleCallback$1");var Ns=null,Fa=null,ho=false,js=false,mo=false,ua=0;function Qe(t){t!==Fa&&null===t.next&&(null===Fa?Ns=Fa=t:Fa=Fa.next=t);js=true;ho||(ho=true,sb())}s(Qe,"ensureRootIsScheduled");function $i(t,e){if(!mo&&js){mo=true;do{var n=false;for(var i=Ns;null!==i;){if(0!==t){var u=i.pendingLanes;if(0===u)var c=0;else{var h=i.suspendedLanes,v=i.pingedLanes;c=(1<<31-me(42|t)+1)-1;c&=u&~(h&~v);c=c&201326741?c&201326741|1:c?c|2:0}0!==c&&(n=true,gp(i,c))}else c=dt,c=Gl(i,i===Mt?c:0,null!==i.cancelPendingCommit||-1!==i.timeoutHandle),0===(c&3)||mi(i,c)||(n=true,gp(i,c));i=i.next}}while(n);mo=false}}s($i,"flushSyncWorkAcrossRoots_impl");function lb(){mp()}s(lb,"processRootScheduleInImmediateTask");function mp(){js=ho=false;var t=0;0!==ua&&(mb()&&(t=ua),ua=0);for(var e=Ye(),n=null,i=Ns;null!==i;){var u=i.next,c=pp(i,e);if(0===c)i.next=null,null===n?Ns=u:n.next=u,null===u&&(Fa=n);else if(n=i,0!==t||0!==(c&3))js=true;i=u}$i(t)}s(mp,"processRootScheduleInMicrotask");function pp(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0i){n=i;var h=t.ownerDocument;n&1&&el(h.documentElement);n&2&&el(h.body);if(n&4)for(n=h.head,el(n),h=n.firstChild;h;){var v=h.nextSibling,T=h.nodeName;h[yi]||"SCRIPT"===T||"STYLE"===T||"LINK"===T&&"stylesheet"===h.rel.toLowerCase()||n.removeChild(h);h=v}}if(0===u){t.removeChild(c);ol(e);return}u--}else"$"===n||"$?"===n||"$!"===n?u++:i=n.charCodeAt(0)-48;else i=0;n=c}while(n);ol(e)}s(Cp,"clearSuspenseBoundary");function Do(t){var e=t.firstChild;e&&10===e.nodeType&&(e=e.nextSibling);for(;e;){var n=e;e=e.nextSibling;switch(n.nodeName){case"HTML":case"HEAD":case"BODY":Do(n);wu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}t.removeChild(n)}}s(Do,"clearContainerSparingly");function vb(t,e,n,i){for(;1===t.nodeType;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&("INPUT"!==t.nodeName||"hidden"!==t.type))break}else if(!i)if("input"===e&&"hidden"===t.type){var c=null==u.name?null:""+u.name;if("hidden"===u.type&&t.getAttribute("name")===c)return t}else return t;else if(!t[yi])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":c=t.getAttribute("rel");if("stylesheet"===c&&t.hasAttribute("data-precedence"))break;else if(c!==u.rel||t.getAttribute("href")!==(null==u.href||""===u.href?null:u.href)||t.getAttribute("crossorigin")!==(null==u.crossOrigin?null:u.crossOrigin)||t.getAttribute("title")!==(null==u.title?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":c=t.getAttribute("src");if((c!==(null==u.src?null:u.src)||t.getAttribute("type")!==(null==u.type?null:u.type)||t.getAttribute("crossorigin")!==(null==u.crossOrigin?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}t=Be(t.nextSibling);if(null===t)break}return null}s(vb,"canHydrateInstance");function bb(t,e,n){if(""===e)return null;for(;3!==t.nodeType;){if((1!==t.nodeType||"INPUT"!==t.nodeName||"hidden"!==t.type)&&!n)return null;t=Be(t.nextSibling);if(null===t)return null}return t}s(bb,"canHydrateTextInstance");function Ro(t){return"$!"===t.data||"$?"===t.data&&"complete"===t.ownerDocument.readyState}s(Ro,"isSuspenseInstanceFallback");function Sb(t,e){var n=t.ownerDocument;if("$?"!==t.data||"complete"===n.readyState)e();else{var i=s(function(){e();n.removeEventListener("DOMContentLoaded",i)},"listener");n.addEventListener("DOMContentLoaded",i);t._reactRetry=i}}s(Sb,"registerSuspenseInstanceRetry");function Be(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){e=t.data;if("$"===e||"$!"===e||"$?"===e||"F!"===e||"F"===e)break;if("/$"===e)return null}}return t}s(Be,"getNextHydratable");var Oo=null;function wp(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}s(wp,"getParentSuspenseInstance");function zp(t,e,n){e=qs(n);switch(t){case"html":t=e.documentElement;if(!t)throw Error(o(452));return t;case"head":t=e.head;if(!t)throw Error(o(453));return t;case"body":t=e.body;if(!t)throw Error(o(454));return t;default:throw Error(o(451))}}s(zp,"resolveSingletonInstance");function el(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);wu(t)}s(el,"releaseSingletonInstance");var we=new Map,Vp=new Set;function Ys(t){return"function"===typeof t.getRootNode?t.getRootNode():9===t.nodeType?t:t.ownerDocument}s(Ys,"getHoistableRoot");var dn=G.d;G.d={f:Tb,r:xb,D:Ab,C:Eb,L:Mb,m:Db,X:Ob,S:Rb,M:Cb};function Tb(){var t=dn.f(),e=Vs();return t||e}s(Tb,"flushSyncWork");function xb(t){var e=va(t);null!==e&&5===e.tag&&"form"===e.type?$d(e):dn.r(t)}s(xb,"requestFormReset");var $a="undefined"===typeof document?null:document;function Up(t,e,n){var i=$a;if(i&&"string"===typeof e&&e){var u=Ae(e);u='link[rel="'+t+'"][href="'+u+'"]';"string"===typeof n&&(u+='[crossorigin="'+n+'"]');Vp.has(u)||(Vp.add(u),t={rel:t,crossOrigin:n,href:e},null===i.querySelector(u)&&(e=i.createElement("link"),Wt(e,"link",t),Kt(e),i.head.appendChild(e)))}}s(Up,"preconnectAs");function Ab(t){dn.D(t);Up("dns-prefetch",t,null)}s(Ab,"prefetchDNS");function Eb(t,e){dn.C(t,e);Up("preconnect",t,e)}s(Eb,"preconnect");function Mb(t,e,n){dn.L(t,e,n);var i=$a;if(i&&t&&e){var u='link[rel="preload"][as="'+Ae(e)+'"]';"image"===e?n&&n.imageSrcSet?(u+='[imagesrcset="'+Ae(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(u+='[imagesizes="'+Ae(n.imageSizes)+'"]')):u+='[href="'+Ae(t)+'"]':u+='[href="'+Ae(t)+'"]';var c=u;switch(e){case"style":c=Ia(t);break;case"script":c=ti(t)}we.has(c)||(t=g({rel:"preload",href:"image"===e&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(c,t),null!==i.querySelector(u)||"style"===e&&i.querySelector(nl(c))||"script"===e&&i.querySelector(al(c))||(e=i.createElement("link"),Wt(e,"link",t),Kt(e),i.head.appendChild(e)))}}s(Mb,"preload");function Db(t,e){dn.m(t,e);var n=$a;if(n&&t){var i=e&&"string"===typeof e.as?e.as:"script",u='link[rel="modulepreload"][as="'+Ae(i)+'"][href="'+Ae(t)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ti(t)}if(!we.has(c)&&(t=g({rel:"modulepreload",href:t},e),we.set(c,t),null===n.querySelector(u))){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(al(c)))return}i=n.createElement("link");Wt(i,"link",t);Kt(i);n.head.appendChild(i)}}}s(Db,"preloadModule");function Rb(t,e,n){dn.S(t,e,n);var i=$a;if(i&&t){var u=ba(i).hoistableStyles,c=Ia(t);e=e||"default";var h=u.get(c);if(!h){var v={loading:0,preload:null};if(h=i.querySelector(nl(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n);(n=we.get(c))&&Co(t,n);var T=h=i.createElement("link");Kt(T);Wt(T,"link",t);T._p=new Promise(function(O,V){T.onload=O;T.onerror=V});T.addEventListener("load",function(){v.loading|=1});T.addEventListener("error",function(){v.loading|=2});v.loading|=4;Gs(h,e,i)}h={type:"stylesheet",instance:h,count:1,state:v};u.set(c,h)}}}s(Rb,"preinitStyle");function Ob(t,e){dn.X(t,e);var n=$a;if(n&&t){var i=ba(n).hoistableScripts,u=ti(t),c=i.get(u);c||(c=n.querySelector(al(u)),c||(t=g({src:t,async:true},e),(e=we.get(u))&&wo(t,e),c=n.createElement("script"),Kt(c),Wt(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}s(Ob,"preinitScript");function Cb(t,e){dn.M(t,e);var n=$a;if(n&&t){var i=ba(n).hoistableScripts,u=ti(t),c=i.get(u);c||(c=n.querySelector(al(u)),c||(t=g({src:t,async:true,type:"module"},e),(e=we.get(u))&&wo(t,e),c=n.createElement("script"),Kt(c),Wt(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}s(Cb,"preinitModuleScript");function _p(t,e,n,i){var u=(u=lt.current)?Ys(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(e=Ia(n.href),n=ba(u).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){t=Ia(n.href);var c=ba(u).hoistableStyles,h=c.get(t);h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,h),(c=u.querySelector(nl(t)))&&!c._p&&(h.instance=c,h.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),c||wb(u,t,n,h.state)));if(e&&null===i)throw Error(o(528,""));return h}if(e&&null!==i)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,"string"===typeof n&&e&&"function"!==typeof e&&"symbol"!==typeof e?(e=ti(n),n=ba(u).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}s(_p,"getResource");function Ia(t){return'href="'+Ae(t)+'"'}s(Ia,"getStyleKey");function nl(t){return'link[rel="stylesheet"]['+t+"]"}s(nl,"getStylesheetSelectorFromKey");function Np(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}s(Np,"stylesheetPropsFromRawProps");function wb(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),Wt(e,"link",n),Kt(e),t.head.appendChild(e))}s(wb,"preloadStylesheet");function ti(t){return'[src="'+Ae(t)+'"]'}s(ti,"getScriptKey");function al(t){return"script[async]"+t}s(al,"getScriptSelectorFromKey");function jp(t,e,n){e.count++;if(null===e.instance)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+Ae(n.href)+'"]');if(i)return e.instance=i,Kt(i),i;var u=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});i=(t.ownerDocument||t).createElement("style");Kt(i);Wt(i,"style",u);Gs(i,n.precedence,t);return e.instance=i;case"stylesheet":u=Ia(n.href);var c=t.querySelector(nl(u));if(c)return e.state.loading|=4,e.instance=c,Kt(c),c;i=Np(n);(u=we.get(u))&&Co(i,u);c=(t.ownerDocument||t).createElement("link");Kt(c);var h=c;h._p=new Promise(function(v,T){h.onload=v;h.onerror=T});Wt(c,"link",i);e.state.loading|=4;Gs(c,n.precedence,t);return e.instance=c;case"script":c=ti(n.src);if(u=t.querySelector(al(c)))return e.instance=u,Kt(u),u;i=n;if(u=we.get(c))i=g({},n),wo(i,u);t=t.ownerDocument||t;u=t.createElement("script");Kt(u);Wt(u,"link",i);t.head.appendChild(u);return e.instance=u;case"void":return null;default:throw Error(o(443,e.type))}else"stylesheet"===e.type&&0===(e.state.loading&4)&&(i=e.instance,e.state.loading|=4,Gs(i,n.precedence,t));return e.instance}s(jp,"acquireResource");function Gs(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,h=0;h title"):null)}s(Lp,"mountHoistable");function zb(t,e,n){if(1===n||null!=e.itemProp)return false;switch(t){case"meta":case"title":return true;case"style":if("string"!==typeof e.precedence||"string"!==typeof e.href||""===e.href)break;return true;case"link":if("string"!==typeof e.rel||"string"!==typeof e.href||""===e.href||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,"string"===typeof e.precedence&&null==t;default:return true}case"script":if(e.async&&"function"!==typeof e.async&&"symbol"!==typeof e.async&&!e.onLoad&&!e.onError&&e.src&&"string"===typeof e.src)return true}return false}s(zb,"isHostHoistableType");function Hp(t){return"stylesheet"===t.type&&0===(t.state.loading&3)?false:true}s(Hp,"preloadResource");var il=null;function Vb(){}s(Vb,"noop");function Ub(t,e,n){if(null===il)throw Error(o(475));var i=il;if("stylesheet"===e.type&&("string"!==typeof n.media||false!==matchMedia(n.media).matches)&&0===(e.state.loading&4)){if(null===e.instance){var u=Ia(n.href),c=t.querySelector(nl(u));if(c){t=c._p;null!==t&&"object"===typeof t&&"function"===typeof t.then&&(i.count++,i=Zs.bind(i),t.then(i,i));e.state.loading|=4;e.instance=c;Kt(c);return}c=t.ownerDocument||t;n=Np(n);(u=we.get(u))&&Co(n,u);c=c.createElement("link");Kt(c);var h=c;h._p=new Promise(function(v,T){h.onload=v;h.onerror=T});Wt(c,"link",n);e.instance=c}null===i.stylesheets&&(i.stylesheets=new Map);i.stylesheets.set(e,t);(t=e.state.preload)&&0===(e.state.loading&3)&&(i.count++,e=Zs.bind(i),t.addEventListener("load",e),t.addEventListener("error",e))}}s(Ub,"suspendResource");function _b(){if(null===il)throw Error(o(475));var t=il;t.stylesheets&&0===t.count&&zo(t,t.stylesheets);return 0g(R,typeof R==="string"?null:R.state,_===0?"default":void 0));let d=y(r==null?f.length-1:r);let b=He.Pop;let m=null;function y(R){return Math.min(Math.max(R,0),f.length-1)}s(y,"clampIndex");function p(){return f[d]}s(p,"getCurrentLocation");function g(R,_,Y){if(_===void 0){_=null}let B=cu(f?p().pathname:"/",R,_,Y);aS(B.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(R));return B}s(g,"createMemoryLocation");function S(R){return typeof R==="string"?R:Ic(R)}s(S,"createHref");let A={get index(){return d},get action(){return b},get location(){return p()},createHref:S,createURL(R){return new URL(S(R),"http://localhost")},encodeLocation(R){let _=typeof R==="string"?tf(R):R;return{pathname:_.pathname||"",search:_.search||"",hash:_.hash||""}},push(R,_){b=He.Push;let Y=g(R,_);d+=1;f.splice(d,f.length,Y);if(o&&m){m({action:b,location:Y,delta:1})}},replace(R,_){b=He.Replace;let Y=g(R,_);f[d]=Y;if(o&&m){m({action:b,location:Y,delta:0})}},go(R){b=He.Pop;let _=y(d+R);let Y=f[_];d=_;if(m){m({action:b,location:Y,delta:R})}},listen(R){m=R;return()=>{m=null}}};return A}s(eS,"createMemoryHistory");function nS(a){if(a===void 0){a={}}function l(o,f){let{pathname:d,search:b,hash:m}=o.location;return cu("",{pathname:d,search:b,hash:m},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}s(l,"createBrowserLocation");function r(o,f){return typeof f==="string"?f:Ic(f)}s(r,"createBrowserHref");return lS(l,r,null,a)}s(nS,"createBrowserHistory");function $c(a,l){if(a===false||a===null||typeof a==="undefined"){throw new Error(l)}}s($c,"invariant$1");function aS(a,l){if(!a){if(typeof console!=="undefined")console.warn(l);try{throw new Error(l)}catch(r){}}}s(aS,"warning");function iS(){return Math.random().toString(36).substr(2,8)}s(iS,"createKey");function ry(a,l){return{usr:a.state,key:a.key,idx:l}}s(ry,"getHistoryState");function cu(a,l,r,o){if(r===void 0){r=null}let f=ou({pathname:typeof a==="string"?a:a.pathname,search:"",hash:""},typeof l==="string"?tf(l):l,{state:r,key:l&&l.key||o||iS()});return f}s(cu,"createLocation");function Ic(a){let{pathname:l="/",search:r="",hash:o=""}=a;if(r&&r!=="?")l+=r.charAt(0)==="?"?r:"?"+r;if(o&&o!=="#")l+=o.charAt(0)==="#"?o:"#"+o;return l}s(Ic,"createPath");function tf(a){let l={};if(a){let r=a.indexOf("#");if(r>=0){l.hash=a.substr(r);a=a.substr(0,r)}let o=a.indexOf("?");if(o>=0){l.search=a.substr(o);a=a.substr(0,o)}if(a){l.pathname=a}}return l}s(tf,"parsePath");function lS(a,l,r,o){if(o===void 0){o={}}let{window:f=document.defaultView,v5Compat:d=false}=o;let b=f.history;let m=He.Pop;let y=null;let p=g();if(p==null){p=0;b.replaceState(ou({},b.state,{idx:p}),"")}function g(){let B=b.state||{idx:null};return B.idx}s(g,"getIndex");function S(){m=He.Pop;let B=g();let N=B==null?null:B-p;p=B;if(y){y({action:m,location:Y.location,delta:N})}}s(S,"handlePop");function A(B,N){m=He.Push;let K=cu(Y.location,B,N);p=g()+1;let X=ry(K,p);let P=Y.createHref(K);try{b.pushState(X,"",P)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError"){throw H}f.location.assign(P)}if(d&&y){y({action:m,location:Y.location,delta:1})}}s(A,"push");function R(B,N){m=He.Replace;let K=cu(Y.location,B,N);p=g();let X=ry(K,p);let P=Y.createHref(K);b.replaceState(X,"",P);if(d&&y){y({action:m,location:Y.location,delta:0})}}s(R,"replace");function _(B){let N=f.location.origin!=="null"?f.location.origin:f.location.href;let K=typeof B==="string"?B:Ic(B);K=K.replace(/ $/,"%20");$c(N,"No window.location.(origin|href) available to create URL for href: "+K);return new URL(K,N)}s(_,"createURL");let Y={get action(){return m},get location(){return a(f,b)},listen(B){if(y){throw new Error("A history only accepts one active listener")}f.addEventListener(uy,S);y=B;return()=>{f.removeEventListener(uy,S);y=null}},createHref(B){return l(f,B)},createURL:_,encodeLocation(B){let N=_(B);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:A,replace:R,go(B){return b.go(B)}};return Y}s(lS,"getUrlBasedHistory");var oy;(function(a){a["data"]="data";a["deferred"]="deferred";a["redirect"]="redirect";a["error"]="error"})(oy||(oy={}));function sS(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase())){return null}let r=l.endsWith("/")?l.length-1:l.length;let o=a.charAt(r);if(o&&o!=="/"){return null}return a.slice(r)||"/"}s(sS,"stripBasename");const Ng=["post","put","patch","delete"];new Set(Ng);const uS=["get",...Ng];new Set(uS);function uc(){uc=Object.assign?Object.assign.bind():function(a){for(var l=1;l{g&&cy?cy(()=>p(A)):p(A)},[p,g]);Z.useLayoutEffect(()=>m.listen(S),[m,S]);Z.useEffect(()=>Bg(d),[d]);return Z.createElement(Lg,{basename:l,children:r,location:y.location,navigationType:y.action,navigator:m,future:d})}s(fS,"MemoryRouter");function Lg(a){let{basename:l="/",children:r=null,location:o,navigationType:f=He.Pop,navigator:d,static:b=false,future:m}=a;!!jg()?$c(false):void 0;let y=l.replace(/^/*/,"/");let p=Z.useMemo(()=>({basename:y,navigator:d,static:b,future:uc({v7_relativeSplatPath:false},m)}),[y,m,d,b]);if(typeof o==="string"){o=tf(o)}let{pathname:g="/",search:S="",hash:A="",state:R=null,key:_="default"}=o;let Y=Z.useMemo(()=>{let B=sS(g,y);if(B==null){return null}return{location:{pathname:B,search:S,hash:A,state:R,key:_},navigationType:f}},[y,g,S,A,R,_,f]);if(Y==null){return null}return Z.createElement(rS.Provider,{value:p},Z.createElement(ef.Provider,{children:r,value:Y}))}s(Lg,"Router");new Promise(()=>{});const hS="6";try{window.__reactRouterVersion=hS}catch(a){}const dS="startTransition";const fy=Vg[dS];function mS(a){let{basename:l,children:r,future:o,window:f}=a;let d=Z.useRef();if(d.current==null){d.current=nS({window:f,v5Compat:true})}let b=d.current;let[m,y]=Z.useState({action:b.action,location:b.location});let{v7_startTransition:p}=o||{};let g=Z.useCallback(S=>{p&&fy?fy(()=>y(S)):y(S)},[y,p]);Z.useLayoutEffect(()=>b.listen(g),[b,g]);Z.useEffect(()=>Bg(o),[o]);return Z.createElement(Lg,{basename:l,children:r,location:m.location,navigationType:m.action,navigator:b,future:o})}s(mS,"BrowserRouter");var hy;(function(a){a["UseScrollRestoration"]="useScrollRestoration";a["UseSubmit"]="useSubmit";a["UseSubmitFetcher"]="useSubmitFetcher";a["UseFetcher"]="useFetcher";a["useViewTransitionState"]="useViewTransitionState"})(hy||(hy={}));var dy;(function(a){a["UseFetcher"]="useFetcher";a["UseFetchers"]="useFetchers";a["UseScrollRestoration"]="useScrollRestoration"})(dy||(dy={}));const pS=s(a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),"toKebabCase");const yS=s(a=>a.replace(/^([A-Z])|[s-_]+(w)/g,(l,r,o)=>o?o.toUpperCase():r.toLowerCase()),"toCamelCase");const my=s(a=>{const l=yS(a);return l.charAt(0).toUpperCase()+l.slice(1)},"toPascalCase");const Hg=s((...a)=>a.filter((l,r,o)=>{return Boolean(l)&&l.trim()!==""&&o.indexOf(l)===r}).join(" ").trim(),"mergeClasses");const gS=s(a=>{for(const l in a){if(l.startsWith("aria-")||l==="role"||l==="title"){return true}}},"hasA11yProp");var vS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const bS=Z.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:f="",children:d,iconNode:b,...m},y)=>Z.createElement("svg",{ref:y,...vS,width:l,height:l,stroke:a,strokeWidth:o?Number(r)*24/Number(l):r,className:Hg("lucide",f),...!d&&!gS(m)&&{"aria-hidden":"true"},...m},[...b.map(([p,g])=>Z.createElement(p,g)),...Array.isArray(d)?d:[d]]));const pa=s((a,l)=>{const r=Z.forwardRef(({className:o,...f},d)=>Z.createElement(bS,{ref:d,iconNode:l,className:Hg(`lucide-${pS(my(a))}`,`lucide-${a}`,o),...f}));r.displayName=my(a);return r},"createLucideIcon");const SS=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]];const TS=pa("arrow-up-right",SS);const xS=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]];const AS=pa("facebook",xS);const ES=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]];const MS=pa("instagram",ES);const DS=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]];const RS=pa("mail",DS);const OS=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]];const CS=pa("map-pin",OS);const wS=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]];const zS=pa("twitter",wS);const VS=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]];const US=pa("youtube",VS);const qg=Z.createContext({});function _S(a){const l=Z.useRef(null);if(l.current===null){l.current=a()}return l.current}s(_S,"useConstant");const nf=typeof window!=="undefined";const NS=nf?Z.useLayoutEffect:Z.useEffect;const af=Z.createContext(null);function lf(a,l){if(a.indexOf(l)===-1)a.push(l)}s(lf,"addUniqueItem");function sf(a,l){const r=a.indexOf(l);if(r>-1)a.splice(r,1)}s(sf,"removeItem");const mn=s((a,l,r)=>{if(r>l)return l;if(r{},"invariant");const pn={};const Yg=s(a=>/^-?(?:d+(?:.d+)?|.d+)$/u.test(a),"isNumericalString");function Gg(a){return typeof a==="object"&&a!==null}s(Gg,"isObject");const Xg=s(a=>/^0[^.s]+$/u.test(a),"isZeroValueString");function rf(a){let l;return()=>{if(l===void 0)l=a();return l}}s(rf,"memo");const _e=s(a=>a,"noop");const jS=s((a,l)=>r=>l(a(r)),"combineFunctions");const _l=s((...a)=>a.reduce(jS),"pipe");const Al=s((a,l,r)=>{const o=l-a;return o===0?1:(r-a)/o},"progress");const Vf=class Vf{constructor(){this.subscriptions=[]}add(l){lf(this.subscriptions,l);return()=>sf(this.subscriptions,l)}notify(l,r,o){const f=this.subscriptions.length;if(!f)return;if(f===1){this.subscriptions[0](l,r,o)}else{for(let d=0;da*1e3,"secondsToMilliseconds");const Ue=s(a=>a/1e3,"millisecondsToSeconds");function Zg(a,l){return l?a*(1e3/l):0}s(Zg,"velocityPerSecond");const Kg=s((a,l,r)=>(((1-3*r+3*l)*a+(3*r-6*l))*a+3*l)*a,"calcBezier");const BS=1e-7;const LS=12;function HS(a,l,r,o,f){let d;let b;let m=0;do{b=l+(r-l)/2;d=Kg(b,o,f)-a;if(d>0){r=b}else{l=b}}while(Math.abs(d)>BS&&++mHS(d,0,1,a,r),"getTForX");return d=>d===0||d===1?d:Kg(f(d),l,o)}s(Nl,"cubicBezier");const Qg=s(a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,"mirrorEasing");const kg=s(a=>l=>1-a(1-l),"reverseEasing");const Pg=Nl(.33,1.53,.69,.99);const of=kg(Pg);const Jg=Qg(of);const Fg=s(a=>(a*=2)<1?.5*of(a):.5*(2-Math.pow(2,-10*(a-1))),"anticipate");const cf=s(a=>1-Math.sin(Math.acos(a)),"circIn");const Wg=kg(cf);const $g=Qg(cf);const qS=Nl(.42,0,1,1);const YS=Nl(0,0,.58,1);const Ig=Nl(.42,0,.58,1);const GS=s(a=>{return Array.isArray(a)&&typeof a[0]!=="number"},"isEasingArray");const t0=s(a=>Array.isArray(a)&&typeof a[0]==="number","isBezierDefinition");const XS={linear:_e,easeIn:qS,easeInOut:Ig,easeOut:YS,circIn:cf,circInOut:$g,circOut:Wg,backIn:of,backInOut:Jg,backOut:Pg,anticipate:Fg};const ZS=s(a=>{return typeof a==="string"},"isValidEasing");const py=s(a=>{if(t0(a)){uf(a.length===4);const[l,r,o,f]=a;return Nl(l,r,o,f)}else if(ZS(a)){return XS[a]}return a},"easingDefinitionToFunction");const Is=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function KS(a,l){let r=new Set;let o=new Set;let f=false;let d=false;const b=new WeakSet;let m={delta:0,timestamp:0,isProcessing:false};function y(g){if(b.has(g)){p.schedule(g);a()}g(m)}s(y,"triggerCallback");const p={schedule:s((g,S=false,A=false)=>{const R=A&&f;const _=R?r:o;if(S)b.add(g);if(!_.has(g))_.add(g);return g},"schedule"),cancel:s(g=>{o.delete(g);b.delete(g)},"cancel"),process:s(g=>{m=g;if(f){d=true;return}f=true;[r,o]=[o,r];r.forEach(y);r.clear();f=false;if(d){d=false;p.process(g)}},"process")};return p}s(KS,"createRenderStep");const QS=40;function e0(a,l){let r=false;let o=true;const f={delta:0,timestamp:0,isProcessing:false};const d=s(()=>r=true,"flagRunNextFrame");const b=Is.reduce((X,P)=>{X[P]=KS(d);return X},{});const{setup:m,read:y,resolveKeyframes:p,preUpdate:g,update:S,preRender:A,render:R,postRender:_}=b;const Y=s(()=>{const X=pn.useManualTiming?f.timestamp:performance.now();r=false;if(!pn.useManualTiming){f.delta=o?1e3/60:Math.max(Math.min(X-f.timestamp,QS),1)}f.timestamp=X;f.isProcessing=true;m.process(f);y.process(f);p.process(f);g.process(f);S.process(f);A.process(f);R.process(f);_.process(f);f.isProcessing=false;if(r&&l){o=false;a(Y)}},"processBatch");const B=s(()=>{r=true;o=true;if(!f.isProcessing){a(Y)}},"wake");const N=Is.reduce((X,P)=>{const H=b[P];X[P]=(I,ft=false,W=false)=>{if(!r)B();return H.schedule(I,ft,W)};return X},{});const K=s(X=>{for(let P=0;P{if(lu===void 0){fe.set($t.isProcessing||pn.useManualTiming?$t.timestamp:performance.now())}return lu},"now"),set:s(a=>{lu=a;queueMicrotask(kS)},"set")};const n0=s(a=>l=>typeof l==="string"&&l.startsWith(a),"checkStringStartsWith");const ff=n0("--");const PS=n0("var(--");const hf=s(a=>{const l=PS(a);if(!l)return false;return JS.test(a.split("/*")[0].trim())},"isCSSVariableToken");const JS=/var(--(?:[w-]+s*|[w-]+s*,(?:s*[^)(s]|s*((?:[^)(]|([^)(]*))*))+s*))$/iu;const ci={test:s(a=>typeof a==="number","test"),parse:parseFloat,transform:s(a=>a,"transform")};const Ml={...ci,transform:s(a=>mn(0,1,a),"transform")};const tu={...ci,default:1};const gl=s(a=>Math.round(a*1e5)/1e5,"sanitize");const df=/-?(?:d+(?:.d+)?|.d+)/gu;function FS(a){return a==null}s(FS,"isNullish");const WS=/^(?:#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?))$/iu;const mf=s((a,l)=>r=>{return Boolean(typeof r==="string"&&WS.test(r)&&r.startsWith(a)||l&&!FS(r)&&Object.prototype.hasOwnProperty.call(r,l))},"isColorString");const a0=s((a,l,r)=>o=>{if(typeof o!=="string")return o;const[f,d,b,m]=o.match(df);return{[a]:parseFloat(f),[l]:parseFloat(d),[r]:parseFloat(b),alpha:m!==void 0?parseFloat(m):1}},"splitColor");const $S=s(a=>mn(0,255,a),"clampRgbUnit");const Ko={...ci,transform:s(a=>Math.round($S(a)),"transform")};const fa={test:mf("rgb","red"),parse:a0("red","green","blue"),transform:s(({red:a,green:l,blue:r,alpha:o=1})=>"rgba("+Ko.transform(a)+", "+Ko.transform(l)+", "+Ko.transform(r)+", "+gl(Ml.transform(o))+")","transform")};function IS(a){let l="";let r="";let o="";let f="";if(a.length>5){l=a.substring(1,3);r=a.substring(3,5);o=a.substring(5,7);f=a.substring(7,9)}else{l=a.substring(1,2);r=a.substring(2,3);o=a.substring(3,4);f=a.substring(4,5);l+=l;r+=r;o+=o;f+=f}return{red:parseInt(l,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:f?parseInt(f,16)/255:1}}s(IS,"parseHex");const rc={test:mf("#"),parse:IS,transform:fa.transform};const jl=s(a=>({test:s(l=>typeof l==="string"&&l.endsWith(a)&&l.split(" ").length===1,"test"),parse:parseFloat,transform:s(l=>`${l}${a}`,"transform")}),"createUnitType");const Yn=jl("deg");const Je=jl("%");const it=jl("px");const tT=jl("vh");const eT=jl("vw");const yy=(()=>({...Je,parse:s(a=>Je.parse(a)/100,"parse"),transform:s(a=>Je.transform(a*100),"transform")}))();const ei={test:mf("hsl","hue"),parse:a0("hue","saturation","lightness"),transform:s(({hue:a,saturation:l,lightness:r,alpha:o=1})=>{return"hsla("+Math.round(a)+", "+Je.transform(gl(l))+", "+Je.transform(gl(r))+", "+gl(Ml.transform(o))+")"},"transform")};const Ht={test:s(a=>fa.test(a)||rc.test(a)||ei.test(a),"test"),parse:s(a=>{if(fa.test(a)){return fa.parse(a)}else if(ei.test(a)){return ei.parse(a)}else{return rc.parse(a)}},"parse"),transform:s(a=>{return typeof a==="string"?a:a.hasOwnProperty("red")?fa.transform(a):ei.transform(a)},"transform"),getAnimatableNone:s(a=>{const l=Ht.parse(a);l.alpha=0;return Ht.transform(l)},"getAnimatableNone")};const nT=/(?:#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?))/giu;function aT(a){return isNaN(a)&&typeof a==="string"&&(a.match(df)?.length||0)+(a.match(nT)?.length||0)>0}s(aT,"test");const i0="number";const l0="color";const iT="var";const lT="var(";const gy="${}";const sT=/vars*(s*--(?:[w-]+s*|[w-]+s*,(?:s*[^)(s]|s*((?:[^)(]|([^)(]*))*))+s*))|#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?)|-?(?:d+(?:.d+)?|.d+)/giu;function Dl(a){const l=a.toString();const r=[];const o={color:[],number:[],var:[]};const f=[];let d=0;const b=l.replace(sT,y=>{if(Ht.test(y)){o.color.push(d);f.push(l0);r.push(Ht.parse(y))}else if(y.startsWith(lT)){o.var.push(d);f.push(iT);r.push(y)}else{o.number.push(d);f.push(i0);r.push(parseFloat(y))}++d;return gy});const m=b.split(gy);return{values:r,split:m,indexes:o,types:f}}s(Dl,"analyseComplexValue");function s0(a){return Dl(a).values}s(s0,"parseComplexValue");function u0(a){const{split:l,types:r}=Dl(a);const o=l.length;return f=>{let d="";for(let b=0;btypeof a==="number"?0:Ht.test(a)?Ht.getAnimatableNone(a):a,"convertNumbersToZero");function rT(a){const l=s0(a);const r=u0(a);return r(l.map(uT))}s(rT,"getAnimatableNone$1");const Xn={test:aT,parse:s0,createTransformer:u0,getAnimatableNone:rT};function Qo(a,l,r){if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return a+(l-a)*6*r;if(r<1/2)return l;if(r<2/3)return a+(l-a)*(2/3-r)*6;return a}s(Qo,"hueToRgb");function oT({hue:a,saturation:l,lightness:r,alpha:o}){a/=360;l/=100;r/=100;let f=0;let d=0;let b=0;if(!l){f=d=b=r}else{const m=r<.5?r*(1+l):r+l-r*l;const y=2*r-m;f=Qo(y,m,a+1/3);d=Qo(y,m,a);b=Qo(y,m,a-1/3)}return{red:Math.round(f*255),green:Math.round(d*255),blue:Math.round(b*255),alpha:o}}s(oT,"hslaToRgba");function fu(a,l){return r=>r>0?l:a}s(fu,"mixImmediate");const wt=s((a,l,r)=>{return a+(l-a)*r},"mixNumber$1");const ko=s((a,l,r)=>{const o=a*a;const f=r*(l*l-o)+o;return f<0?0:Math.sqrt(f)},"mixLinearColor");const cT=[rc,fa,ei];const fT=s(a=>cT.find(l=>l.test(a)),"getColorType");function vy(a){const l=fT(a);if(!Boolean(l))return false;let r=l.parse(a);if(l===ei){r=oT(r)}return r}s(vy,"asRGBA");const by=s((a,l)=>{const r=vy(a);const o=vy(l);if(!r||!o){return fu(a,l)}const f={...r};return d=>{f.red=ko(r.red,o.red,d);f.green=ko(r.green,o.green,d);f.blue=ko(r.blue,o.blue,d);f.alpha=wt(r.alpha,o.alpha,d);return fa.transform(f)}},"mixColor");const oc=new Set(["none","hidden"]);function hT(a,l){if(oc.has(a)){return r=>r<=0?a:l}else{return r=>r>=1?l:a}}s(hT,"mixVisibility");function dT(a,l){return r=>wt(a,l,r)}s(dT,"mixNumber");function pf(a){if(typeof a==="number"){return dT}else if(typeof a==="string"){return hf(a)?fu:Ht.test(a)?by:yT}else if(Array.isArray(a)){return r0}else if(typeof a==="object"){return Ht.test(a)?by:mT}return fu}s(pf,"getMixer");function r0(a,l){const r=[...a];const o=r.length;const f=a.map((d,b)=>pf(d)(d,l[b]));return d=>{for(let b=0;b{for(const d in o){r[d]=o[d](f)}return r}}s(mT,"mixObject");function pT(a,l){const r=[];const o={color:0,var:0,number:0};for(let f=0;f{const r=Xn.createTransformer(l);const o=Dl(a);const f=Dl(l);const d=o.indexes.var.length===f.indexes.var.length&&o.indexes.color.length===f.indexes.color.length&&o.indexes.number.length>=f.indexes.number.length;if(d){if(oc.has(a)&&!f.values.length||oc.has(l)&&!o.values.length){return hT(a,l)}return _l(r0(pT(o,f),f.values),r)}else{return fu(a,l)}},"mixComplex");function o0(a,l,r){if(typeof a==="number"&&typeof l==="number"&&typeof r==="number"){return wt(a,l,r)}const o=pf(a);return o(a,l)}s(o0,"mix");const gT=s(a=>{const l=s(({timestamp:r})=>a(r),"passTimestamp");return{start:s((r=true)=>Ot.update(l,r),"start"),stop:s(()=>Gn(l),"stop"),now:s(()=>$t.isProcessing?$t.timestamp:fe.now(),"now")}},"frameloopDriver");const c0=s((a,l,r=10)=>{let o="";const f=Math.max(Math.round(l/r),2);for(let d=0;d=hu?Infinity:l}s(yf,"calcGeneratorDuration");function vT(a,l=100,r){const o=r({...a,keyframes:[0,l]});const f=Math.min(yf(o),hu);return{type:"keyframes",ease:s(d=>{return o.next(f*d).value/l},"ease"),duration:Ue(f)}}s(vT,"createGeneratorEasing");const bT=5;function f0(a,l,r){const o=Math.max(l-bT,0);return Zg(r-a(o),l-o)}s(f0,"calcGeneratorVelocity");const Ut={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};const Po=.001;function ST({duration:a=Ut.duration,bounce:l=Ut.bounce,velocity:r=Ut.velocity,mass:o=Ut.mass}){let f;let d;let b=1-l;b=mn(Ut.minDamping,Ut.maxDamping,b);a=mn(Ut.minDuration,Ut.maxDuration,Ue(a));if(b<1){f=s(p=>{const g=p*b;const S=g*a;const A=g-r;const R=cc(p,b);const _=Math.exp(-S);return Po-A/R*_},"envelope");d=s(p=>{const g=p*b;const S=g*a;const A=S*r+r;const R=Math.pow(b,2)*Math.pow(p,2)*a;const _=Math.exp(-S);const Y=cc(Math.pow(p,2),b);const B=-f(p)+Po>0?-1:1;return B*((A-R)*_)/Y},"derivative")}else{f=s(p=>{const g=Math.exp(-p*a);const S=(p-r)*a+1;return-Po+g*S},"envelope");d=s(p=>{const g=Math.exp(-p*a);const S=(r-p)*(a*a);return g*S},"derivative")}const m=5/a;const y=xT(f,d,m);a=Pe(a);if(isNaN(y)){return{stiffness:Ut.stiffness,damping:Ut.damping,duration:a}}else{const p=Math.pow(y,2)*o;return{stiffness:p,damping:b*2*Math.sqrt(o*p),duration:a}}}s(ST,"findSpring");const TT=12;function xT(a,l,r){let o=r;for(let f=1;fa[r]!==void 0)}s(Sy,"isSpringType");function MT(a){let l={velocity:Ut.velocity,stiffness:Ut.stiffness,damping:Ut.damping,mass:Ut.mass,isResolvedFromDuration:false,...a};if(!Sy(a,ET)&&Sy(a,AT)){if(a.visualDuration){const r=a.visualDuration;const o=2*Math.PI/(r*1.2);const f=o*o;const d=2*mn(.05,1,1-(a.bounce||0))*Math.sqrt(f);l={...l,mass:Ut.mass,stiffness:f,damping:d}}else{const r=ST(a);l={...l,...r,mass:Ut.mass};l.isResolvedFromDuration=true}}return l}s(MT,"getSpringOptions");function du(a=Ut.visualDuration,l=Ut.bounce){const r=typeof a!=="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:o,restDelta:f}=r;const d=r.keyframes[0];const b=r.keyframes[r.keyframes.length-1];const m={done:false,value:d};const{stiffness:y,damping:p,mass:g,duration:S,velocity:A,isResolvedFromDuration:R}=MT({...r,velocity:-Ue(r.velocity||0)});const _=A||0;const Y=p/(2*Math.sqrt(y*g));const B=b-d;const N=Ue(Math.sqrt(y/g));const K=Math.abs(B)<5;o||(o=K?Ut.restSpeed.granular:Ut.restSpeed.default);f||(f=K?Ut.restDelta.granular:Ut.restDelta.default);let X;if(Y<1){const H=cc(N,Y);X=s(I=>{const ft=Math.exp(-Y*N*I);return b-ft*((_+Y*N*B)/H*Math.sin(H*I)+B*Math.cos(H*I))},"resolveSpring")}else if(Y===1){X=s(H=>b-Math.exp(-N*H)*(B+(_+N*B)*H),"resolveSpring")}else{const H=N*Math.sqrt(Y*Y-1);X=s(I=>{const ft=Math.exp(-Y*N*I);const W=Math.min(H*I,300);return b-ft*((_+Y*N*B)*Math.sinh(W)+H*B*Math.cosh(W))/H},"resolveSpring")}const P={calculatedDuration:R?S||null:null,next:s(H=>{const I=X(H);if(!R){let ft=H===0?_:0;if(Y<1){ft=H===0?Pe(_):f0(X,H,I)}const W=Math.abs(ft)<=o;const yt=Math.abs(b-I)<=f;m.done=W&&yt}else{m.done=H>=S}m.value=m.done?b:I;return m},"next"),toString:s(()=>{const H=Math.min(yf(P),hu);const I=c0(ft=>P.next(H*ft).value,H,30);return H+"ms "+I},"toString"),toTransition:s(()=>{},"toTransition")};return P}s(du,"spring");du.applyToOptions=a=>{const l=vT(a,100,du);a.ease=l.ease;a.duration=Pe(l.duration);a.type="keyframes";return a};function fc({keyframes:a,velocity:l=0,power:r=.8,timeConstant:o=325,bounceDamping:f=10,bounceStiffness:d=500,modifyTarget:b,min:m,max:y,restDelta:p=.5,restSpeed:g}){const S=a[0];const A={done:false,value:S};const R=s(W=>m!==void 0&&Wy,"isOutOfBounds");const _=s(W=>{if(m===void 0)return y;if(y===void 0)return m;return Math.abs(m-W)-Y*Math.exp(-W/o),"calcDelta");const X=s(W=>N+K(W),"calcLatest");const P=s(W=>{const yt=K(W);const St=X(W);A.done=Math.abs(yt)<=p;A.value=A.done?N:St},"applyFriction");let H;let I;const ft=s(W=>{if(!R(A.value))return;H=W;I=du({keyframes:[A.value,_(A.value)],velocity:f0(X,W,A.value),damping:f,stiffness:d,restDelta:p,restSpeed:g})},"checkCatchBoundary");ft(0);return{calculatedDuration:null,next:s(W=>{let yt=false;if(!I&&H===void 0){yt=true;P(W);ft(W)}if(H!==void 0&&W>=H){return I.next(W-H)}else{!yt&&P(W);return A}},"next")}}s(fc,"inertia");function DT(a,l,r){const o=[];const f=r||pn.mix||o0;const d=a.length-1;for(let b=0;bl[0];if(d===2&&l[0]===l[1])return()=>l[1];const b=a[0]===a[1];if(a[0]>a[d-1]){a=[...a].reverse();l=[...l].reverse()}const m=DT(l,o,f);const y=m.length;const p=s(g=>{if(b&&g1){for(;Sp(mn(a[0],a[d-1],g)):p}s(RT,"interpolate");function OT(a,l){const r=a[a.length-1];for(let o=1;o<=l;o++){const f=Al(0,l,o);a.push(wt(r,1,f))}}s(OT,"fillOffset");function CT(a){const l=[0];OT(l,a.length-1);return l}s(CT,"defaultOffset");function wT(a,l){return a.map(r=>r*l)}s(wT,"convertOffsetToTimes");function zT(a,l){return a.map(()=>l||Ig).splice(0,a.length-1)}s(zT,"defaultEasing");function vl({duration:a=300,keyframes:l,times:r,ease:o="easeInOut"}){const f=GS(o)?o.map(py):py(o);const d={done:false,value:l[0]};const b=wT(r&&r.length===l.length?r:CT(l),a);const m=RT(b,l,{ease:Array.isArray(f)?f:zT(l,f)});return{calculatedDuration:a,next:s(y=>{d.value=m(y);d.done=y>=a;return d},"next")}}s(vl,"keyframes");const VT=s(a=>a!==null,"isNotNull$1");function gf(a,{repeat:l,repeatType:r="loop"},o,f=1){const d=a.filter(VT);const b=f<0||l&&r!=="loop"&&l%2===1;const m=b?0:d.length-1;return!m||o===void 0?d[m]:o}s(gf,"getFinalKeyframe$1");const UT={decay:fc,inertia:fc,tween:vl,keyframes:vl,spring:du};function h0(a){if(typeof a.type==="string"){a.type=UT[a.type]}}s(h0,"replaceTransitionType");const Uf=class Uf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,r){return this.finished.then(l,r)}};s(Uf,"WithPromise");let Rl=Uf;const _T=s(a=>a/100,"percentToProgress");const _f=class _f extends Rl{constructor(l){super();this.state="idle";this.startTime=null;this.isStopped=false;this.currentTime=0;this.holdTime=null;this.playbackSpeed=1;this.stop=()=>{const{motionValue:r}=this.options;if(r&&r.updatedAt!==fe.now()){this.tick(fe.now())}this.isStopped=true;if(this.state==="idle")return;this.teardown();this.options.onStop?.()};this.options=l;this.initAnimation();this.play();if(l.autoplay===false)this.pause()}initAnimation(){const{options:l}=this;h0(l);const{type:r=vl,repeat:o=0,repeatDelay:f=0,repeatType:d,velocity:b=0}=l;let{keyframes:m}=l;const y=r||vl;if(y!==vl&&typeof m[0]!=="number"){this.mixKeyframes=_l(_T,o0(m[0],m[1]));m=[0,100]}const p=y({...l,keyframes:m});if(d==="mirror"){this.mirroredGenerator=y({...l,keyframes:[...m].reverse(),velocity:-b})}if(p.calculatedDuration===null){p.calculatedDuration=yf(p)}const{calculatedDuration:g}=p;this.calculatedDuration=g;this.resolvedDuration=g+f;this.totalDuration=this.resolvedDuration*(o+1)-f;this.generator=p}updateTime(l){const r=Math.round(l-this.startTime)*this.playbackSpeed;if(this.holdTime!==null){this.currentTime=this.holdTime}else{this.currentTime=r}}tick(l,r=false){const{generator:o,totalDuration:f,mixKeyframes:d,mirroredGenerator:b,resolvedDuration:m,calculatedDuration:y}=this;if(this.startTime===null)return o.next(0);const{delay:p=0,keyframes:g,repeat:S,repeatType:A,repeatDelay:R,type:_,onUpdate:Y,finalKeyframe:B}=this.options;if(this.speed>0){this.startTime=Math.min(this.startTime,l)}else if(this.speed<0){this.startTime=Math.min(l-f/this.speed,this.startTime)}if(r){this.currentTime=l}else{this.updateTime(l)}const N=this.currentTime-p*(this.playbackSpeed>=0?1:-1);const K=this.playbackSpeed>=0?N<0:N>f;this.currentTime=Math.max(N,0);if(this.state==="finished"&&this.holdTime===null){this.currentTime=f}let X=this.currentTime;let P=o;if(S){const W=Math.min(this.currentTime,f)/m;let yt=Math.floor(W);let St=W%1;if(!St&&W>=1){St=1}St===1&&yt--;yt=Math.min(yt,S+1);const qt=Boolean(yt%2);if(qt){if(A==="reverse"){St=1-St;if(R){St-=R/m}}else if(A==="mirror"){P=b}}X=mn(0,1,St)*m}const H=K?{done:false,value:g[0]}:P.next(X);if(d){H.value=d(H.value)}let{done:I}=H;if(!K&&y!==null){I=this.playbackSpeed>=0?this.currentTime>=f:this.currentTime<=0}const ft=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);if(ft&&_!==fc){H.value=gf(g,this.options,B,this.speed)}if(Y){Y(H.value)}if(ft){this.finish()}return H}then(l,r){return this.finished.then(l,r)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ue(l)}get time(){return Ue(this.currentTime)}set time(l){l=Pe(l);this.currentTime=l;if(this.startTime===null||this.holdTime!==null||this.playbackSpeed===0){this.holdTime=l}else if(this.driver){this.startTime=this.driver.now()-l/this.playbackSpeed}this.driver?.start(false)}get speed(){return this.playbackSpeed}set speed(l){this.updateTime(fe.now());const r=this.playbackSpeed!==l;this.playbackSpeed=l;if(r){this.time=Ue(this.currentTime)}}play(){if(this.isStopped)return;const{driver:l=gT,startTime:r}=this.options;if(!this.driver){this.driver=l(f=>this.tick(f))}this.options.onPlay?.();const o=this.driver.now();if(this.state==="finished"){this.updateFinished();this.startTime=o}else if(this.holdTime!==null){this.startTime=o-this.holdTime}else if(!this.startTime){this.startTime=r??o}if(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(fe.now());this.holdTime=this.currentTime}complete(){if(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(){if(!this.driver)return;this.driver.stop();this.driver=void 0}sample(l){this.startTime=0;return this.tick(l,true)}attachTimeline(l){if(this.options.allowFlatten){this.options.type="keyframes";this.options.ease="linear";this.initAnimation()}this.driver?.stop();return l.observe(this)}};s(_f,"JSAnimation");let Ol=_f;function NT(a){for(let l=1;la*180/Math.PI,"radToDeg");const hc=s(a=>{const l=ha(Math.atan2(a[1],a[0]));return dc(l)},"rotate");const jT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:s(a=>(Math.abs(a[0])+Math.abs(a[3]))/2,"scale"),rotate:hc,rotateZ:hc,skewX:s(a=>ha(Math.atan(a[1])),"skewX"),skewY:s(a=>ha(Math.atan(a[2])),"skewY"),skew:s(a=>(Math.abs(a[1])+Math.abs(a[2]))/2,"skew")};const dc=s(a=>{a=a%360;if(a<0)a+=360;return a},"rebaseAngle");const Ty=hc;const xy=s(a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),"scaleX");const Ay=s(a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),"scaleY");const BT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xy,scaleY:Ay,scale:s(a=>(xy(a)+Ay(a))/2,"scale"),rotateX:s(a=>dc(ha(Math.atan2(a[6],a[5]))),"rotateX"),rotateY:s(a=>dc(ha(Math.atan2(-a[2],a[0]))),"rotateY"),rotateZ:Ty,rotate:Ty,skewX:s(a=>ha(Math.atan(a[4])),"skewX"),skewY:s(a=>ha(Math.atan(a[1])),"skewY"),skew:s(a=>(Math.abs(a[1])+Math.abs(a[4]))/2,"skew")};function mc(a){return a.includes("scale")?1:0}s(mc,"defaultTransformValue");function pc(a,l){if(!a||a==="none"){return mc(l)}const r=a.match(/^matrix3d(([-d.es,]+))$/u);let o;let f;if(r){o=BT;f=r}else{const m=a.match(/^matrix(([-d.es,]+))$/u);o=jT;f=m}if(!f){return mc(l)}const d=o[l];const b=f[1].split(",").map(HT);return typeof d==="function"?d(b):b[d]}s(pc,"parseValueFromTransform");const LT=s((a,l)=>{const{transform:r="none"}=getComputedStyle(a);return pc(r,l)},"readTransformValue");function HT(a){return parseFloat(a.trim())}s(HT,"convertTransformToNumber");const fi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];const hi=(()=>new Set(fi))();const Ey=s(a=>a===ci||a===it,"isNumOrPxType");const qT=new Set(["x","y","z"]);const YT=fi.filter(a=>!qT.has(a));function GT(a){const l=[];YT.forEach(r=>{const o=a.getValue(r);if(o!==void 0){l.push([r,o.get()]);o.set(r.startsWith("scale")?1:0)}});return l}s(GT,"removeNonTranslationalTransform");const da={width:s(({x:a},{paddingLeft:l="0",paddingRight:r="0"})=>a.max-a.min-parseFloat(l)-parseFloat(r),"width"),height:s(({y:a},{paddingTop:l="0",paddingBottom:r="0"})=>a.max-a.min-parseFloat(l)-parseFloat(r),"height"),top:s((a,{top:l})=>parseFloat(l),"top"),left:s((a,{left:l})=>parseFloat(l),"left"),bottom:s(({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),"bottom"),right:s(({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),"right"),x:s((a,{transform:l})=>pc(l,"x"),"x"),y:s((a,{transform:l})=>pc(l,"y"),"y")};da.translateX=da.x;da.translateY=da.y;const ma=new Set;let yc=false;let gc=false;let vc=false;function d0(){if(gc){const a=Array.from(ma).filter(o=>o.needsMeasurement);const l=new Set(a.map(o=>o.element));const r=new Map;l.forEach(o=>{const f=GT(o);if(!f.length)return;r.set(o,f);o.render()});a.forEach(o=>o.measureInitialState());l.forEach(o=>{o.render();const f=r.get(o);if(f){f.forEach(([d,b])=>{o.getValue(d)?.set(b)})}});a.forEach(o=>o.measureEndState());a.forEach(o=>{if(o.suspendedScrollY!==void 0){window.scrollTo(0,o.suspendedScrollY)}})}gc=false;yc=false;ma.forEach(a=>a.complete(vc));ma.clear()}s(d0,"measureAllKeyframes");function m0(){ma.forEach(a=>{a.readKeyframes();if(a.needsMeasurement){gc=true}})}s(m0,"readAllKeyframes");function XT(){vc=true;m0();d0();vc=false}s(XT,"flushKeyframeResolvers");const Nf=class Nf{constructor(l,r,o,f,d,b=false){this.state="pending";this.isAsync=false;this.needsMeasurement=false;this.unresolvedKeyframes=[...l];this.onComplete=r;this.name=o;this.motionValue=f;this.element=d;this.isAsync=b}scheduleResolve(){this.state="scheduled";if(this.isAsync){ma.add(this);if(!yc){yc=true;Ot.read(m0);Ot.resolveKeyframes(d0)}}else{this.readKeyframes();this.complete()}}readKeyframes(){const{unresolvedKeyframes:l,name:r,element:o,motionValue:f}=this;if(l[0]===null){const d=f?.get();const b=l[l.length-1];if(d!==void 0){l[0]=d}else if(o&&r){const m=o.readValue(r,b);if(m!==void 0&&m!==null){l[0]=m}}if(l[0]===void 0){l[0]=b}if(f&&d===void 0){f.set(l[0])}}NT(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=false){this.state="complete";this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l);ma.delete(this)}cancel(){if(this.state==="scheduled"){ma.delete(this);this.state="pending"}}resume(){if(this.state==="pending")this.scheduleResolve()}};s(Nf,"KeyframeResolver");let Cl=Nf;const ZT=s(a=>a.startsWith("--"),"isCSSVar");function KT(a,l,r){ZT(l)?a.style.setProperty(l,r):a.style[l]=r}s(KT,"setStyle");const QT=rf(()=>window.ScrollTimeline!==void 0);const kT={};function PT(a,l){const r=rf(a);return()=>kT[l]??r()}s(PT,"memoSupports");const p0=PT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return false}return true},"linearEasing");const yl=s(([a,l,r,o])=>`cubic-bezier(${a}, ${l}, ${r}, ${o})`,"cubicBezierAsString");const My={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yl([0,.65,.55,1]),circOut:yl([.55,0,1,.45]),backIn:yl([.31,.01,.66,-.59]),backOut:yl([.33,1.53,.69,.99])};function y0(a,l){if(!a){return void 0}else if(typeof a==="function"){return p0()?c0(a,l):"ease-out"}else if(t0(a)){return yl(a)}else if(Array.isArray(a)){return a.map(r=>y0(r,l)||My.easeOut)}else{return My[a]}}s(y0,"mapEasingToNativeEasing");function JT(a,l,r,{delay:o=0,duration:f=300,repeat:d=0,repeatType:b="loop",ease:m="easeOut",times:y}={},p=void 0){const g={[l]:r};if(y)g.offset=y;const S=y0(m,f);if(Array.isArray(S))g.easing=S;const A={delay:o,duration:f,easing:!Array.isArray(S)?S:"linear",fill:"both",iterations:d+1,direction:b==="reverse"?"alternate":"normal"};if(p)A.pseudoElement=p;const R=a.animate(g,A);return R}s(JT,"startWaapiAnimation");function g0(a){return typeof a==="function"&&"applyToOptions"in a}s(g0,"isGenerator");function FT({type:a,...l}){if(g0(a)&&p0()){return a.applyToOptions(l)}else{l.duration??(l.duration=300);l.ease??(l.ease="easeOut")}return l}s(FT,"applyGeneratorOptions");const jf=class jf extends Rl{constructor(l){super();this.finishedTime=null;this.isStopped=false;if(!l)return;const{element:r,name:o,keyframes:f,pseudoElement:d,allowFlatten:b=false,finalKeyframe:m,onComplete:y}=l;this.isPseudoElement=Boolean(d);this.allowFlatten=b;this.options=l;uf(typeof l.type!=="string");const p=FT(l);this.animation=JT(r,o,f,p,d);if(p.autoplay===false){this.animation.pause()}this.animation.onfinish=()=>{this.finishedTime=this.time;if(!d){const g=gf(f,this.options,m,this.speed);if(this.updateMotionValue){this.updateMotionValue(g)}else{KT(r,o,g)}this.animation.cancel()}y?.();this.notifyFinished()}}play(){if(this.isStopped)return;this.animation.play();if(this.state==="finished"){this.updateFinished()}}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(l){}}stop(){if(this.isStopped)return;this.isStopped=true;const{state:l}=this;if(l==="idle"||l==="finished"){return}if(this.updateMotionValue){this.updateMotionValue()}else{this.commitStyles()}if(!this.isPseudoElement)this.cancel()}commitStyles(){if(!this.isPseudoElement){this.animation.commitStyles?.()}}get duration(){const l=this.animation.effect?.getComputedTiming?.().duration||0;return Ue(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+Ue(l)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(l){this.finishedTime=null;this.animation.currentTime=Pe(l)}get speed(){return this.animation.playbackRate}set speed(l){if(l<0)this.finishedTime=null;this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(l){this.animation.startTime=l}attachTimeline({timeline:l,observe:r}){if(this.allowFlatten){this.animation.effect?.updateTiming({easing:"linear"})}this.animation.onfinish=null;if(l&&QT()){this.animation.timeline=l;return _e}else{return r(this)}}};s(jf,"NativeAnimation");let bc=jf;const v0={anticipate:Fg,backInOut:Jg,circInOut:$g};function WT(a){return a in v0}s(WT,"isUnsupportedEase");function $T(a){if(typeof a.ease==="string"&&WT(a.ease)){a.ease=v0[a.ease]}}s($T,"replaceStringEasing");const Dy=10;const Bf=class Bf extends bc{constructor(l){$T(l);h0(l);super(l);if(l.startTime){this.startTime=l.startTime}this.options=l}updateMotionValue(l){const{motionValue:r,onUpdate:o,onComplete:f,element:d,...b}=this.options;if(!r)return;if(l!==void 0){r.set(l);return}const m=new Ol({...b,autoplay:false});const y=Pe(this.finishedTime??this.time);r.setWithVelocity(m.sample(y-Dy).value,m.sample(y).value,Dy);m.stop()}};s(Bf,"NativeAnimationExtended");let Sc=Bf;const Ry=s((a,l)=>{if(l==="zIndex")return false;if(typeof a==="number"||Array.isArray(a))return true;if(typeof a==="string"&&(Xn.test(a)||a==="0")&&!a.startsWith("url(")){return true}return false},"isAnimatable");function IT(a){const l=a[0];if(a.length===1)return true;for(let r=0;rObject.hasOwnProperty.call(Element.prototype,"animate"));function ax(a){const{motionValue:l,name:r,repeatDelay:o,repeatType:f,damping:d,type:b}=a;const m=l?.owner?.current;if(!(m instanceof HTMLElement)){return false}const{onUpdate:y,transformTemplate:p}=l.owner.getProps();return nx()&&r&&ex.has(r)&&(r!=="transform"||!p)&&!y&&!o&&f!=="mirror"&&d!==0&&b!=="inertia"}s(ax,"supportsBrowserAnimation");const ix=40;const Lf=class Lf extends Rl{constructor({autoplay:l=true,delay:r=0,type:o="keyframes",repeat:f=0,repeatDelay:d=0,repeatType:b="loop",keyframes:m,name:y,motionValue:p,element:g,...S}){super();this.stop=()=>{if(this._animation){this._animation.stop();this.stopTimeline?.()}this.keyframeResolver?.cancel()};this.createdAt=fe.now();const A={autoplay:l,delay:r,type:o,repeat:f,repeatDelay:d,repeatType:b,name:y,motionValue:p,element:g,...S};const R=g?.KeyframeResolver||Cl;this.keyframeResolver=new R(m,(_,Y,B)=>this.onKeyframesResolved(_,Y,A,!B),y,p,g);this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(l,r,o,f){this.keyframeResolver=void 0;const{name:d,type:b,velocity:m,delay:y,isHandoff:p,onUpdate:g}=o;this.resolvedAt=fe.now();if(!tx(l,d,b,m)){if(pn.instantAnimations||!y){g?.(gf(l,o,r))}l[0]=l[l.length-1];Tc(o);o.repeat=0}const S=f?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>ix?this.resolvedAt:this.createdAt:void 0;const A={startTime:S,finalKeyframe:r,...o,keyframes:l};const R=!p&&ax(A)?new Sc({...A,element:A.motionValue.owner.current}):new Ol(A);R.finished.then(()=>this.notifyFinished()).catch(_e);if(this.pendingTimeline){this.stopTimeline=R.attachTimeline(this.pendingTimeline);this.pendingTimeline=void 0}this._animation=R}get finished(){if(!this._animation){return this._finished}else{return this.animation.finished}}then(l,r){return this.finished.finally(l).then(()=>{})}get animation(){if(!this._animation){this.keyframeResolver?.resume();XT()}return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){if(this._animation){this.stopTimeline=this.animation.attachTimeline(l)}else{this.pendingTimeline=l}return()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){if(this._animation){this.animation.cancel()}this.keyframeResolver?.cancel()}};s(Lf,"AsyncMotionValueAnimation");let xc=Lf;const lx=/^var(--(?:([w-]+)|([w-]+), ?([a-zA-Zd ()%#.,-]+)))/u;function sx(a){const l=lx.exec(a);if(!l)return[,];const[,r,o,f]=l;return[`--${r??o}`,f]}s(sx,"parseCSSVariable");function b0(a,l,r=1){const[o,f]=sx(a);if(!o)return;const d=window.getComputedStyle(l).getPropertyValue(o);if(d){const b=d.trim();return Yg(b)?parseFloat(b):b}return hf(f)?b0(f,l,r+1):f}s(b0,"getVariableValue");function vf(a,l){return a?.[l]??a?.["default"]??a}s(vf,"getValueTransition");const S0=new Set(["width","height","top","left","right","bottom",...fi]);const ux={test:s(a=>a==="auto","test"),parse:s(a=>a,"parse")};const T0=s(a=>l=>l.test(a),"testValueType");const x0=[ci,it,Je,Yn,eT,tT,ux];const Oy=s(a=>x0.find(T0(a)),"findDimensionValueType");function rx(a){if(typeof a==="number"){return a===0}else if(a!==null){return a==="none"||a==="0"||Xg(a)}else{return true}}s(rx,"isNone");const ox=new Set(["brightness","contrast","saturate","opacity"]);function cx(a){const[l,r]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[o]=r.match(df)||[];if(!o)return a;const f=r.replace(o,"");let d=ox.has(l)?1:0;if(o!==r)d*=100;return l+"("+d+f+")"}s(cx,"applyDefaultFilter");const fx=/b([a-z-]*)(.*?)/gu;const Ac={...Xn,getAnimatableNone:s(a=>{const l=a.match(fx);return l?l.map(cx).join(" "):a},"getAnimatableNone")};const Cy={...ci,transform:Math.round};const hx={rotate:Yn,rotateX:Yn,rotateY:Yn,rotateZ:Yn,scale:tu,scaleX:tu,scaleY:tu,scaleZ:tu,skew:Yn,skewX:Yn,skewY:Yn,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:Ml,originX:yy,originY:yy,originZ:it};const bf={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it,...hx,zIndex:Cy,fillOpacity:Ml,strokeOpacity:Ml,numOctaves:Cy};const dx={...bf,color:Ht,backgroundColor:Ht,outlineColor:Ht,fill:Ht,stroke:Ht,borderColor:Ht,borderTopColor:Ht,borderRightColor:Ht,borderBottomColor:Ht,borderLeftColor:Ht,filter:Ac,WebkitFilter:Ac};const A0=s(a=>dx[a],"getDefaultValueType");function E0(a,l){let r=A0(a);if(r!==Ac)r=Xn;return r.getAnimatableNone?r.getAnimatableNone(l):void 0}s(E0,"getAnimatableNone");const mx=new Set(["auto","none","0"]);function px(a,l,r){let o=0;let f=void 0;while(o{l.getValue(m).set(y)})}this.resolveNoneKeyframes()}};s(Hf,"DOMKeyframesResolver");let Ec=Hf;function yx(a,l,r){if(a instanceof EventTarget){return[a]}else if(typeof a==="string"){let o=document;const f=r?.[a]??o.querySelectorAll(a);return f?Array.from(f):[]}return Array.from(a)}s(yx,"resolveElements");const M0=s((a,l)=>{return l&&typeof a==="number"?l.transform(a):a},"getValueAsType");function gx(a){return Gg(a)&&"offsetHeight"in a}s(gx,"isHTMLElement");const wy=30;const vx=s(a=>{return!isNaN(parseFloat(a))},"isFloat");const qf=class qf{constructor(l,r={}){this.canTrackVelocity=null;this.events={};this.updateAndNotify=o=>{const f=fe.now();if(this.updatedAt!==f){this.setPrevFrameValue()}this.prev=this.current;this.setCurrent(o);if(this.current!==this.prev){this.events.change?.notify(this.current);if(this.dependents){for(const d of this.dependents){d.dirty()}}}};this.hasAnimated=false;this.setCurrent(l);this.owner=r.owner}setCurrent(l){this.current=l;this.updatedAt=fe.now();if(this.canTrackVelocity===null&&l!==void 0){this.canTrackVelocity=vx(this.current)}}setPrevFrameValue(l=this.current){this.prevFrameValue=l;this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,r){if(!this.events[l]){this.events[l]=new El}const o=this.events[l].add(r);if(l==="change"){return()=>{o();Ot.read(()=>{if(!this.events.change.getSize()){this.stop()}})}}return o}clearListeners(){for(const l in this.events){this.events[l].clear()}}attach(l,r){this.passiveEffect=l;this.stopPassiveEffect=r}set(l){if(!this.passiveEffect){this.updateAndNotify(l)}else{this.passiveEffect(l,this.updateAndNotify)}}setWithVelocity(l,r,o){this.set(r);this.prev=void 0;this.prevFrameValue=l;this.prevUpdatedAt=this.updatedAt-o}jump(l,r=true){this.updateAndNotify(l);this.prev=l;this.prevUpdatedAt=this.prevFrameValue=void 0;r&&this.stop();if(this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(l){if(!this.dependents){this.dependents=new Set}this.dependents.add(l)}removeDependent(l){if(this.dependents){this.dependents.delete(l)}}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const l=fe.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>wy){return 0}const r=Math.min(this.updatedAt-this.prevUpdatedAt,wy);return Zg(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(l){this.stop();return new Promise(r=>{this.hasAnimated=true;this.animation=l(r);if(this.events.animationStart){this.events.animationStart.notify()}}).then(()=>{if(this.events.animationComplete){this.events.animationComplete.notify()}this.clearAnimation()})}stop(){if(this.animation){this.animation.stop();if(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();if(this.stopPassiveEffect){this.stopPassiveEffect()}}};s(qf,"MotionValue");let Mc=qf;function ri(a,l){return new Mc(a,l)}s(ri,"motionValue");const{schedule:Sf}=e0(queueMicrotask,false);const Le={x:false,y:false};function D0(){return Le.x||Le.y}s(D0,"isDragActive");function bx(a){if(a==="x"||a==="y"){if(Le[a]){return null}else{Le[a]=true;return()=>{Le[a]=false}}}else{if(Le.x||Le.y){return null}else{Le.x=Le.y=true;return()=>{Le.x=Le.y=false}}}}s(bx,"setDragLock");function R0(a,l){const r=yx(a);const o=new AbortController;const f={passive:true,...l,signal:o.signal};const d=s(()=>o.abort(),"cancel");return[r,f,d]}s(R0,"setupGesture");function zy(a){return!(a.pointerType==="touch"||D0())}s(zy,"isValidHover");function Sx(a,l,r={}){const[o,f,d]=R0(a,r);const b=s(m=>{if(!zy(m))return;const{target:y}=m;const p=l(y,m);if(typeof p!=="function"||!y)return;const g=s(S=>{if(!zy(S))return;p(S);y.removeEventListener("pointerleave",g)},"onPointerLeave");y.addEventListener("pointerleave",g,f)},"onPointerEnter");o.forEach(m=>{m.addEventListener("pointerenter",b,f)});return d}s(Sx,"hover");const O0=s((a,l)=>{if(!l){return false}else if(a===l){return true}else{return O0(a,l.parentElement)}},"isNodeOrChild");const Tf=s(a=>{if(a.pointerType==="mouse"){return typeof a.button!=="number"||a.button<=0}else{return a.isPrimary!==false}},"isPrimaryPointer");const Tx=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xx(a){return Tx.has(a.tagName)||a.tabIndex!==-1}s(xx,"isElementKeyboardAccessible");const su=new WeakSet;function Vy(a){return l=>{if(l.key!=="Enter")return;a(l)}}s(Vy,"filterEvents");function Jo(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:true,bubbles:true}))}s(Jo,"firePointerEvent");const Ax=s((a,l)=>{const r=a.currentTarget;if(!r)return;const o=Vy(()=>{if(su.has(r))return;Jo(r,"down");const f=Vy(()=>{Jo(r,"up")});const d=s(()=>Jo(r,"cancel"),"handleBlur");r.addEventListener("keyup",f,l);r.addEventListener("blur",d,l)});r.addEventListener("keydown",o,l);r.addEventListener("blur",()=>r.removeEventListener("keydown",o),l)},"enableKeyboardPress");function Uy(a){return Tf(a)&&!D0()}s(Uy,"isValidPressEvent");function Ex(a,l,r={}){const[o,f,d]=R0(a,r);const b=s(m=>{const y=m.currentTarget;if(!Uy(m))return;su.add(y);const p=l(y,m);const g=s((R,_)=>{window.removeEventListener("pointerup",S);window.removeEventListener("pointercancel",A);if(su.has(y)){su.delete(y)}if(!Uy(R)){return}if(typeof p==="function"){p(R,{success:_})}},"onPointerEnd");const S=s(R=>{g(R,y===window||y===document||r.useGlobalTarget||O0(y,R.target))},"onPointerUp");const A=s(R=>{g(R,false)},"onPointerCancel");window.addEventListener("pointerup",S,f);window.addEventListener("pointercancel",A,f)},"startPress");o.forEach(m=>{const y=r.useGlobalTarget?window:m;y.addEventListener("pointerdown",b,f);if(gx(m)){m.addEventListener("focus",p=>Ax(p,f));if(!xx(m)&&!m.hasAttribute("tabindex")){m.tabIndex=0}}});return d}s(Ex,"press");function C0(a){return Gg(a)&&"ownerSVGElement"in a}s(C0,"isSVGElement");function Mx(a){return C0(a)&&a.tagName==="svg"}s(Mx,"isSVGSVGElement");const ne=s(a=>Boolean(a&&a.getVelocity),"isMotionValue");const Dx=[...x0,Ht,Xn];const Rx=s(a=>Dx.find(T0(a)),"findValueType");const w0=Z.createContext({transformPagePoint:s(a=>a,"transformPagePoint"),isStatic:false,reducedMotion:"never"});function Ox(a=true){const l=Z.useContext(af);if(l===null)return[true,null];const{isPresent:r,onExitComplete:o,register:f}=l;const d=Z.useId();Z.useEffect(()=>{if(a){return f(d)}},[a]);const b=Z.useCallback(()=>a&&o&&o(d),[d,o,a]);return!r&&o?[false,b]:[true]}s(Ox,"usePresence");const z0=Z.createContext({strict:false});const _y={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};const oi={};for(const a in _y){oi[a]={isEnabled:s(l=>_y[a].some(r=>!!l[r]),"isEnabled")}}function Cx(a){for(const l in a){oi[l]={...oi[l],...a[l]}}}s(Cx,"loadFeatures");const wx=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function mu(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||wx.has(a)}s(mu,"isValidMotionProp");let V0=s(a=>!mu(a),"shouldForward");function zx(a){if(typeof a!=="function")return;V0=s(l=>l.startsWith("on")?!mu(l):a(l),"shouldForward")}s(zx,"loadExternalIsValidProp");try{zx(require("@emotion/is-prop-valid").default)}catch{}function Vx(a,l,r){const o={};for(const f in a){if(f==="values"&&typeof a.values==="object")continue;if(V0(f)||r===true&&mu(f)||!l&&!mu(f)||a["draggable"]&&f.startsWith("onDrag")){o[f]=a[f]}}return o}s(Vx,"filterProps");const bu=Z.createContext({});function Su(a){return a!==null&&typeof a==="object"&&typeof a.start==="function"}s(Su,"isAnimationControls");function wl(a){return typeof a==="string"||Array.isArray(a)}s(wl,"isVariantLabel");const xf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"];const Af=["initial",...xf];function Tu(a){return Su(a.animate)||Af.some(l=>wl(a[l]))}s(Tu,"isControllingVariants");function U0(a){return Boolean(Tu(a)||a.variants)}s(U0,"isVariantNode");function Ux(a,l){if(Tu(a)){const{initial:r,animate:o}=a;return{initial:r===false||wl(r)?r:void 0,animate:wl(o)?o:void 0}}return a.inherit!==false?l:{}}s(Ux,"getCurrentTreeVariants");function _x(a){const{initial:l,animate:r}=Ux(a,Z.useContext(bu));return Z.useMemo(()=>({initial:l,animate:r}),[Ny(l),Ny(r)])}s(_x,"useCreateMotionContext");function Ny(a){return Array.isArray(a)?a.join(" "):a}s(Ny,"variantLabelsAsDependency");const zl={};function Nx(a){for(const l in a){zl[l]=a[l];if(ff(l)){zl[l].isCSSVariable=true}}}s(Nx,"addScaleCorrector");function _0(a,{layout:l,layoutId:r}){return hi.has(a)||a.startsWith("origin")||(l||r!==void 0)&&(!!zl[a]||a==="opacity")}s(_0,"isForcedMotionValue");const jx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};const Bx=fi.length;function Lx(a,l,r){let o="";let f=true;for(let d=0;d({style:{},transform:{},transformOrigin:{},vars:{}}),"createHtmlRenderState");function N0(a,l,r){for(const o in l){if(!ne(l[o])&&!_0(o,r)){a[o]=l[o]}}}s(N0,"copyRawValuesOnly");function Hx({transformTemplate:a},l){return Z.useMemo(()=>{const r=Mf();Ef(r,l,a);return Object.assign({},r.vars,r.style)},[l])}s(Hx,"useInitialMotionValues");function qx(a,l){const r=a.style||{};const o={};N0(o,r,a);Object.assign(o,Hx(a,l));return o}s(qx,"useStyle");function Yx(a,l){const r={};const o=qx(a,l);if(a.drag&&a.dragListener!==false){r.draggable=false;o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none";o.touchAction=a.drag===true?"none":`pan-${a.drag==="x"?"y":"x"}`}if(a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)){r.tabIndex=0}r.style=o;return r}s(Yx,"useHTMLProps");const Gx={offset:"stroke-dashoffset",array:"stroke-dasharray"};const Xx={offset:"strokeDashoffset",array:"strokeDasharray"};function Zx(a,l,r=1,o=0,f=true){a.pathLength=1;const d=f?Gx:Xx;a[d.offset]=it.transform(-o);const b=it.transform(l);const m=it.transform(r);a[d.array]=`${b} ${m}`}s(Zx,"buildSVGPath");function j0(a,{attrX:l,attrY:r,attrScale:o,pathLength:f,pathSpacing:d=1,pathOffset:b=0,...m},y,p,g){Ef(a,m,p);if(y){if(a.style.viewBox){a.attrs.viewBox=a.style.viewBox}return}a.attrs=a.style;a.style={};const{attrs:S,style:A}=a;if(S.transform){A.transform=S.transform;delete S.transform}if(A.transform||S.transformOrigin){A.transformOrigin=S.transformOrigin??"50% 50%";delete S.transformOrigin}if(A.transform){A.transformBox=g?.transformBox??"fill-box";delete S.transformBox}if(l!==void 0)S.x=l;if(r!==void 0)S.y=r;if(o!==void 0)S.scale=o;if(f!==void 0){Zx(S,f,d,b,false)}}s(j0,"buildSVGAttrs");const B0=s(()=>({...Mf(),attrs:{}}),"createSvgRenderState");const L0=s(a=>typeof a==="string"&&a.toLowerCase()==="svg","isSVGTag");function Kx(a,l,r,o){const f=Z.useMemo(()=>{const d=B0();j0(d,l,L0(o),a.transformTemplate,a.style);return{...d.attrs,style:{...d.style}}},[l]);if(a.style){const d={};N0(d,a.style,a);f.style={...d,...f.style}}return f}s(Kx,"useSVGProps");const Qx=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Df(a){if(typeof a!=="string"||a.includes("-")){return false}else if(Qx.indexOf(a)>-1||/[A-Z]/u.test(a)){return true}return false}s(Df,"isSVGComponent");function kx(a,l,r,{latestValues:o},f,d=false){const b=Df(a)?Kx:Yx;const m=b(l,o,f,a);const y=Vx(l,typeof a==="string",d);const p=a!==Z.Fragment?{...y,...m,ref:r}:{};const{children:g}=l;const S=Z.useMemo(()=>ne(g)?g.get():g,[g]);return Z.createElement(a,{...p,children:S})}s(kx,"useRender");function jy(a){const l=[{},{}];a?.values.forEach((r,o)=>{l[0][o]=r.get();l[1][o]=r.getVelocity()});return l}s(jy,"getValueState");function Rf(a,l,r,o){if(typeof l==="function"){const[f,d]=jy(o);l=l(r!==void 0?r:a.custom,f,d)}if(typeof l==="string"){l=a.variants&&a.variants[l]}if(typeof l==="function"){const[f,d]=jy(o);l=l(r!==void 0?r:a.custom,f,d)}return l}s(Rf,"resolveVariantFromProps");function uu(a){return ne(a)?a.get():a}s(uu,"resolveMotionValue");function Px({scrapeMotionValuesFromProps:a,createRenderState:l},r,o,f){const d={latestValues:Jx(r,o,f,a),renderState:l()};return d}s(Px,"makeState");function Jx(a,l,r,o){const f={};const d=o(a,{});for(const A in d){f[A]=uu(d[A])}let{initial:b,animate:m}=a;const y=Tu(a);const p=U0(a);if(l&&p&&!y&&a.inherit!==false){if(b===void 0)b=l.initial;if(m===void 0)m=l.animate}let g=r?r.initial===false:false;g=g||b===false;const S=g?m:b;if(S&&typeof S!=="boolean"&&!Su(S)){const A=Array.isArray(S)?S:[S];for(let R=0;R(l,r)=>{const o=Z.useContext(bu);const f=Z.useContext(af);const d=s(()=>Px(a,l,o,f),"make");return r?d():_S(d)},"makeUseVisualState");function Of(a,l,r){const{style:o}=a;const f={};for(const d in o){if(ne(o[d])||l.style&&ne(l.style[d])||_0(d,a)||r?.getValue(d)?.liveStyle!==void 0){f[d]=o[d]}}return f}s(Of,"scrapeMotionValuesFromProps$1");const Fx=H0({scrapeMotionValuesFromProps:Of,createRenderState:Mf});function q0(a,l,r){const o=Of(a,l,r);for(const f in a){if(ne(a[f])||ne(l[f])){const d=fi.indexOf(f)!==-1?"attr"+f.charAt(0).toUpperCase()+f.substring(1):f;o[d]=a[f]}}return o}s(q0,"scrapeMotionValuesFromProps");const Wx=H0({scrapeMotionValuesFromProps:q0,createRenderState:B0});const $x=Symbol.for("motionComponentSymbol");function ni(a){return a&&typeof a==="object"&&Object.prototype.hasOwnProperty.call(a,"current")}s(ni,"isRefObject");function Ix(a,l,r){return Z.useCallback(o=>{if(o){a.onMount&&a.onMount(o)}if(l){if(o){l.mount(o)}else{l.unmount()}}if(r){if(typeof r==="function"){r(o)}else if(ni(r)){r.current=o}}},[l])}s(Ix,"useMotionRef");const Cf=s(a=>a.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),"camelToDash");const t2="framerAppearId";const Y0="data-"+Cf(t2);const G0=Z.createContext({});function e2(a,l,r,o,f){const{visualElement:d}=Z.useContext(bu);const b=Z.useContext(z0);const m=Z.useContext(af);const y=Z.useContext(w0).reducedMotion;const p=Z.useRef(null);o=o||b.renderer;if(!p.current&&o){p.current=o(a,{visualState:l,parent:d,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===false:false,reducedMotionConfig:y})}const g=p.current;const S=Z.useContext(G0);if(g&&!g.projection&&f&&(g.type==="html"||g.type==="svg")){n2(p.current,r,f,S)}const A=Z.useRef(false);Z.useInsertionEffect(()=>{if(g&&A.current){g.update(r,m)}});const R=r[Y0];const _=Z.useRef(Boolean(R)&&!window.MotionHandoffIsComplete?.(R)&&window.MotionHasOptimisedAnimation?.(R));NS(()=>{if(!g)return;A.current=true;window.MotionIsMounted=true;g.updateFeatures();g.scheduleRenderMicrotask();if(_.current&&g.animationState){g.animationState.animateChanges()}});Z.useEffect(()=>{if(!g)return;if(!_.current&&g.animationState){g.animationState.animateChanges()}if(_.current){queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(R)});_.current=false}g.enteringChildren=void 0});return g}s(e2,"useVisualElement");function n2(a,l,r,o){const{layoutId:f,layout:d,drag:b,dragConstraints:m,layoutScroll:y,layoutRoot:p,layoutCrossfade:g}=l;a.projection=new r(a.latestValues,l["data-framer-portal-id"]?void 0:X0(a.parent));a.projection.setOptions({layoutId:f,layout:d,alwaysMeasureLayout:Boolean(b)||m&&ni(m),visualElement:a,animationType:typeof d==="string"?d:"both",initialPromotionConfig:o,crossfade:g,layoutScroll:y,layoutRoot:p})}s(n2,"createProjectionNode$1");function X0(a){if(!a)return void 0;return a.options.allowProjection!==false?a.projection:X0(a.parent)}s(X0,"getClosestProjectingNode");function Fo(a,{forwardMotionProps:l=false}={},r,o){r&&Cx(r);const f=Df(a)?Wx:Fx;function d(m,y){let p;const g={...Z.useContext(w0),...m,layoutId:a2(m)};const{isStatic:S}=g;const A=_x(m);const R=f(m,S);if(!S&&nf){i2();const _=l2(g);p=_.MeasureLayout;A.visualElement=e2(a,R,g,o,_.ProjectionNode)}return q.jsxs(bu.Provider,{value:A,children:[p&&A.visualElement?q.jsx(p,{visualElement:A.visualElement,...g}):null,kx(a,m,Ix(R,A.visualElement,y),R,S,l)]})}s(d,"MotionDOMComponent");d.displayName=`motion.${typeof a==="string"?a:`create(${a.displayName??a.name??""})`}`;const b=Z.forwardRef(d);b[$x]=a;return b}s(Fo,"createMotionComponent");function a2({layoutId:a}){const l=Z.useContext(qg).id;return l&&a!==void 0?l+"-"+a:a}s(a2,"useLayoutId");function i2(a,l){Z.useContext(z0).strict}s(i2,"useStrictMode");function l2(a){const{drag:l,layout:r}=oi;if(!l&&!r)return{};const o={...l,...r};return{MeasureLayout:l?.isEnabled(a)||r?.isEnabled(a)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}s(l2,"getProjectionFunctionality");function s2(a,l){if(typeof Proxy==="undefined"){return Fo}const r=new Map;const o=s((d,b)=>{return Fo(d,b,a,l)},"factory");const f=s((d,b)=>{return o(d,b)},"deprecatedFactoryFunction");return new Proxy(f,{get:s((d,b)=>{if(b==="create")return o;if(!r.has(b)){r.set(b,Fo(b,void 0,a,l))}return r.get(b)},"get")})}s(s2,"createMotionProxy");function Z0({top:a,left:l,right:r,bottom:o}){return{x:{min:l,max:r},y:{min:a,max:o}}}s(Z0,"convertBoundingBoxToBox");function u2({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}s(u2,"convertBoxToBoundingBox");function r2(a,l){if(!l)return a;const r=l({x:a.left,y:a.top});const o=l({x:a.right,y:a.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}s(r2,"transformBoxPoints");function Wo(a){return a===void 0||a===1}s(Wo,"isIdentityScale");function Dc({scale:a,scaleX:l,scaleY:r}){return!Wo(a)||!Wo(l)||!Wo(r)}s(Dc,"hasScale");function oa(a){return Dc(a)||K0(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}s(oa,"hasTransform");function K0(a){return By(a.x)||By(a.y)}s(K0,"has2DTranslate");function By(a){return a&&a!=="0%"}s(By,"is2DTranslate");function pu(a,l,r){const o=a-r;const f=l*o;return r+f}s(pu,"scalePoint");function Ly(a,l,r,o,f){if(f!==void 0){a=pu(a,f,o)}return pu(a,r,o)+l}s(Ly,"applyPointDelta");function Rc(a,l=0,r=1,o,f){a.min=Ly(a.min,l,r,o,f);a.max=Ly(a.max,l,r,o,f)}s(Rc,"applyAxisDelta");function Q0(a,{x:l,y:r}){Rc(a.x,l.translate,l.scale,l.originPoint);Rc(a.y,r.translate,r.scale,r.originPoint)}s(Q0,"applyBoxDelta");const Hy=.999999999999;const qy=1.0000000000001;function o2(a,l,r,o=false){const f=r.length;if(!f)return;l.x=l.y=1;let d;let b;for(let m=0;mHy){l.x=1}if(l.yHy){l.y=1}}s(o2,"applyTreeDeltas");function ai(a,l){a.min=a.min+l;a.max=a.max+l}s(ai,"translateAxis");function Yy(a,l,r,o,f=.5){const d=wt(a.min,a.max,f);Rc(a,l,r,d,o)}s(Yy,"transformAxis");function ii(a,l){Yy(a.x,l.x,l.scaleX,l.scale,l.originX);Yy(a.y,l.y,l.scaleY,l.scale,l.originY)}s(ii,"transformBox");function k0(a,l){return Z0(r2(a.getBoundingClientRect(),l))}s(k0,"measureViewportBox");function c2(a,l,r){const o=k0(a,r);const{scroll:f}=l;if(f){ai(o.x,f.offset.x);ai(o.y,f.offset.y)}return o}s(c2,"measurePageBox");const Gy=s(()=>({translate:0,scale:1,origin:0,originPoint:0}),"createAxisDelta");const li=s(()=>({x:Gy(),y:Gy()}),"createDelta");const Xy=s(()=>({min:0,max:0}),"createAxis");const jt=s(()=>({x:Xy(),y:Xy()}),"createBox");const yu={current:null};const wf={current:false};function P0(){wf.current=true;if(!nf)return;if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)");const l=s(()=>yu.current=a.matches,"setReducedMotionPreferences");a.addEventListener("change",l);l()}else{yu.current=false}}s(P0,"initPrefersReducedMotion");const f2=new WeakMap;function h2(a,l,r){for(const o in l){const f=l[o];const d=r[o];if(ne(f)){a.addValue(o,f)}else if(ne(d)){a.addValue(o,ri(f,{owner:a}))}else if(d!==f){if(a.hasValue(o)){const b=a.getValue(o);if(b.liveStyle===true){b.jump(f)}else if(!b.hasAnimated){b.set(f)}}else{const b=a.getStaticValue(o);a.addValue(o,ri(b!==void 0?b:f,{owner:a}))}}}for(const o in r){if(l[o]===void 0)a.removeValue(o)}return l}s(h2,"updateMotionValuesFromProps");const Zy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];const Yf=class Yf{scrapeMotionValuesFromProps(l,r,o){return{}}constructor({parent:l,props:r,presenceContext:o,reducedMotionConfig:f,blockInitialAnimation:d,visualState:b},m={}){this.current=null;this.children=new Set;this.isVariantNode=false;this.isControllingVariants=false;this.shouldReduceMotion=null;this.values=new Map;this.KeyframeResolver=Cl;this.features={};this.valueSubscriptions=new Map;this.prevMotionValues={};this.events={};this.propEventSubscriptions={};this.notifyUpdate=()=>this.notify("Update",this.latestValues);this.render=()=>{if(!this.current)return;this.triggerBuild();this.renderInstance(this.current,this.renderState,this.props.style,this.projection)};this.renderScheduledAt=0;this.scheduleRender=()=>{const A=fe.now();if(this.renderScheduledAtthis.bindToMotionValue(o,r));if(!wf.current){P0()}this.shouldReduceMotion=this.reducedMotionConfig==="never"?false:this.reducedMotionConfig==="always"?true:yu.current;this.parent?.addChild(this);this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount();Gn(this.notifyUpdate);Gn(this.render);this.valueSubscriptions.forEach(l=>l());this.valueSubscriptions.clear();this.removeFromVariantTree&&this.removeFromVariantTree();this.parent?.removeChild(this);for(const l in this.events){this.events[l].clear()}for(const l in this.features){const r=this.features[l];if(r){r.unmount();r.isMounted=false}}this.current=null}addChild(l){this.children.add(l);this.enteringChildren??(this.enteringChildren=new Set);this.enteringChildren.add(l)}removeChild(l){this.children.delete(l);this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,r){if(this.valueSubscriptions.has(l)){this.valueSubscriptions.get(l)()}const o=hi.has(l);if(o&&this.onBindTransform){this.onBindTransform()}const f=r.on("change",b=>{this.latestValues[l]=b;this.props.onUpdate&&Ot.preRender(this.notifyUpdate);if(o&&this.projection){this.projection.isTransformDirty=true}this.scheduleRender()});let d;if(window.MotionCheckAppearSync){d=window.MotionCheckAppearSync(this,l,r)}this.valueSubscriptions.set(l,()=>{f();if(d)d();if(r.owner)r.stop()})}sortNodePosition(l){if(!this.current||!this.sortInstanceNodePosition||this.type!==l.type){return 0}return this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in oi){const r=oi[l];if(!r)continue;const{isEnabled:o,Feature:f}=r;if(!this.features[l]&&f&&o(this.props)){this.features[l]=new f(this)}if(this.features[l]){const d=this.features[l];if(d.isMounted){d.update()}else{d.mount();d.isMounted=true}}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jt()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,r){this.latestValues[l]=r}update(l,r){if(l.transformTemplate||this.props.transformTemplate){this.scheduleRender()}this.prevProps=this.props;this.props=l;this.prevPresenceContext=this.presenceContext;this.presenceContext=r;for(let o=0;or.variantChildren.delete(l)}}addValue(l,r){const o=this.values.get(l);if(r!==o){if(o)this.removeValue(l);this.bindToMotionValue(l,r);this.values.set(l,r);this.latestValues[l]=r.get()}}removeValue(l){this.values.delete(l);const r=this.valueSubscriptions.get(l);if(r){r();this.valueSubscriptions.delete(l)}delete this.latestValues[l];this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,r){if(this.props.values&&this.props.values[l]){return this.props.values[l]}let o=this.values.get(l);if(o===void 0&&r!==void 0){o=ri(r===null?void 0:r,{owner:this});this.addValue(l,o)}return o}readValue(l,r){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);if(o!==void 0&&o!==null){if(typeof o==="string"&&(Yg(o)||Xg(o))){o=parseFloat(o)}else if(!Rx(o)&&Xn.test(r)){o=E0(l,r)}this.setBaseTarget(l,ne(o)?o.get():o)}return ne(o)?o.get():o}setBaseTarget(l,r){this.baseTarget[l]=r}getBaseTarget(l){const{initial:r}=this.props;let o;if(typeof r==="string"||typeof r==="object"){const d=Rf(this.props,r,this.presenceContext?.custom);if(d){o=d[l]}}if(r&&o!==void 0){return o}const f=this.getBaseTargetFromProps(this.props,l);if(f!==void 0&&!ne(f))return f;return this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,r){if(!this.events[l]){this.events[l]=new El}return this.events[l].add(r)}notify(l,...r){if(this.events[l]){this.events[l].notify(...r)}}scheduleRenderMicrotask(){Sf.render(this.render)}};s(Yf,"VisualElement");let Oc=Yf;const Gf=class Gf extends Oc{constructor(){super(...arguments);this.KeyframeResolver=Ec}sortInstanceNodePosition(l,r){return l.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(l,r){return l.style?l.style[r]:void 0}removeValueFromRenderState(l,{vars:r,style:o}){delete r[l];delete o[l]}handleChildMotionValue(){if(this.childSubscription){this.childSubscription();delete this.childSubscription}const{children:l}=this.props;if(ne(l)){this.childSubscription=l.on("change",r=>{if(this.current){this.current.textContent=`${r}`}})}}};s(Gf,"DOMVisualElement");let gu=Gf;function J0(a,{style:l,vars:r},o,f){const d=a.style;let b;for(b in l){d[b]=l[b]}f?.applyProjectionStyles(d,o);for(b in r){d.setProperty(b,r[b])}}s(J0,"renderHTML");function d2(a){return window.getComputedStyle(a)}s(d2,"getComputedStyle$1");const Xf=class Xf extends gu{constructor(){super(...arguments);this.type="html";this.renderInstance=J0}readValueFromInstance(l,r){if(hi.has(r)){return this.projection?.isProjecting?mc(r):LT(l,r)}else{const o=d2(l);const f=(ff(r)?o.getPropertyValue(r):o[r])||0;return typeof f==="string"?f.trim():f}}measureInstanceViewportBox(l,{transformPagePoint:r}){return k0(l,r)}build(l,r,o){Ef(l,r,o.transformTemplate)}scrapeMotionValuesFromProps(l,r,o){return Of(l,r,o)}};s(Xf,"HTMLVisualElement");let Cc=Xf;const F0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function m2(a,l,r,o){J0(a,l,void 0,o);for(const f in l.attrs){a.setAttribute(!F0.has(f)?Cf(f):f,l.attrs[f])}}s(m2,"renderSVG");const Zf=class Zf extends gu{constructor(){super(...arguments);this.type="svg";this.isSVGTag=false;this.measureInstanceViewportBox=jt}getBaseTargetFromProps(l,r){return l[r]}readValueFromInstance(l,r){if(hi.has(r)){const o=A0(r);return o?o.default||0:0}r=!F0.has(r)?Cf(r):r;return l.getAttribute(r)}scrapeMotionValuesFromProps(l,r,o){return q0(l,r,o)}build(l,r,o){j0(l,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,r,o,f){m2(l,r,o,f)}mount(l){this.isSVGTag=L0(l.tagName);super.mount(l)}};s(Zf,"SVGVisualElement");let wc=Zf;const p2=s((a,l)=>{return Df(a)?new wc(l):new Cc(l,{allowProjection:a!==Z.Fragment})},"createDomVisualElement");function ui(a,l,r){const o=a.getProps();return Rf(o,l,r!==void 0?r:o.custom,a)}s(ui,"resolveVariant");const zc=s(a=>{return Array.isArray(a)},"isKeyframesTarget");function y2(a,l,r){if(a.hasValue(l)){a.getValue(l).set(r)}else{a.addValue(l,ri(r))}}s(y2,"setMotionValue");function g2(a){return zc(a)?a[a.length-1]||0:a}s(g2,"resolveFinalValueInKeyframes");function v2(a,l){const r=ui(a,l);let{transitionEnd:o={},transition:f={},...d}=r||{};d={...d,...o};for(const b in d){const m=g2(d[b]);y2(a,b,m)}}s(v2,"setTarget");function b2(a){return Boolean(ne(a)&&a.add)}s(b2,"isWillChangeMotionValue");function Vc(a,l){const r=a.getValue("willChange");if(b2(r)){return r.add(l)}else if(!r&&pn.WillChange){const o=new pn.WillChange("auto");a.addValue("willChange",o);o.add(l)}}s(Vc,"addValueToWillChange");function W0(a){return a.props[Y0]}s(W0,"getOptimisedAppearId");const S2=s(a=>a!==null,"isNotNull");function T2(a,{repeat:l,repeatType:r="loop"},o){const f=a.filter(S2);const d=l&&r!=="loop"&&l%2===1?0:f.length-1;return f[d]}s(T2,"getFinalKeyframe");const x2={type:"spring",stiffness:500,damping:25,restSpeed:10};const A2=s(a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),"criticallyDampedSpring");const E2={type:"keyframes",duration:.8};const M2={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};const D2=s((a,{keyframes:l})=>{if(l.length>2){return E2}else if(hi.has(a)){return a.startsWith("scale")?A2(l[1]):x2}return M2},"getDefaultTransition");function R2({when:a,delay:l,delayChildren:r,staggerChildren:o,staggerDirection:f,repeat:d,repeatType:b,repeatDelay:m,from:y,elapsed:p,...g}){return!!Object.keys(g).length}s(R2,"isTransitionDefined");const zf=s((a,l,r,o={},f,d)=>b=>{const m=vf(o,a)||{};const y=m.delay||o.delay||0;let{elapsed:p=0}=o;p=p-Pe(y);const g={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:l.getVelocity(),...m,delay:-p,onUpdate:s(A=>{l.set(A);m.onUpdate&&m.onUpdate(A)},"onUpdate"),onComplete:s(()=>{b();m.onComplete&&m.onComplete()},"onComplete"),name:a,motionValue:l,element:d?void 0:f};if(!R2(m)){Object.assign(g,D2(a,g))}g.duration&&(g.duration=Pe(g.duration));g.repeatDelay&&(g.repeatDelay=Pe(g.repeatDelay));if(g.from!==void 0){g.keyframes[0]=g.from}let S=false;if(g.type===false||g.duration===0&&!g.repeatDelay){Tc(g);if(g.delay===0){S=true}}if(pn.instantAnimations||pn.skipAnimations){S=true;Tc(g);g.delay=0}g.allowFlatten=!m.type&&!m.ease;if(S&&!d&&l.get()!==void 0){const A=T2(g.keyframes,m);if(A!==void 0){Ot.update(()=>{g.onUpdate(A);g.onComplete()});return}}return m.isSync?new Ol(g):new xc(g)},"animateMotionValue");function O2({protectedKeys:a,needsAnimating:l},r){const o=a.hasOwnProperty(r)&&l[r]!==true;l[r]=false;return o}s(O2,"shouldBlockAnimation");function $0(a,l,{delay:r=0,transitionOverride:o,type:f}={}){let{transition:d=a.getDefaultTransition(),transitionEnd:b,...m}=l;if(o)d=o;const y=[];const p=f&&a.animationState&&a.animationState.getState()[f];for(const g in m){const S=a.getValue(g,a.latestValues[g]??null);const A=m[g];if(A===void 0||p&&O2(p,g)){continue}const R={delay:r,...vf(d||{},g)};const _=S.get();if(_!==void 0&&!S.isAnimating&&!Array.isArray(A)&&A===_&&!R.velocity){continue}let Y=false;if(window.MotionHandoffAnimation){const N=W0(a);if(N){const K=window.MotionHandoffAnimation(N,g,Ot);if(K!==null){R.startTime=K;Y=true}}}Vc(a,g);S.start(zf(g,S,A,a.shouldReduceMotion&&S0.has(g)?{type:false}:R,a,Y));const B=S.animation;if(B){y.push(B)}}if(b){Promise.all(y).then(()=>{Ot.update(()=>{b&&v2(a,b)})})}return y}s($0,"animateTarget");function I0(a,l,r,o=0,f=1){const d=Array.from(a).sort((p,g)=>p.sortNodePosition(g)).indexOf(l);const b=a.size;const m=(b-1)*o;const y=typeof r==="function";return y?r(d,b):f===1?d*o:m-d*o}s(I0,"calcChildStagger");function Uc(a,l,r={}){const o=ui(a,l,r.type==="exit"?a.presenceContext?.custom:void 0);let{transition:f=a.getDefaultTransition()||{}}=o||{};if(r.transitionOverride){f=r.transitionOverride}const d=o?()=>Promise.all($0(a,o,r)):()=>Promise.resolve();const b=a.variantChildren&&a.variantChildren.size?(y=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:S}=f;return C2(a,l,y,p,g,S,r)}:()=>Promise.resolve();const{when:m}=f;if(m){const[y,p]=m==="beforeChildren"?[d,b]:[b,d];return y().then(()=>p())}else{return Promise.all([d(),b(r.delay)])}}s(Uc,"animateVariant");function C2(a,l,r=0,o=0,f=0,d=1,b){const m=[];for(const y of a.variantChildren){y.notify("AnimationStart",l);m.push(Uc(y,l,{...b,delay:r+(typeof o==="function"?0:o)+I0(a.variantChildren,y,o,f,d)}).then(()=>y.notify("AnimationComplete",l)))}return Promise.all(m)}s(C2,"animateChildren");function w2(a,l,r={}){a.notify("AnimationStart",l);let o;if(Array.isArray(l)){const f=l.map(d=>Uc(a,d,r));o=Promise.all(f)}else if(typeof l==="string"){o=Uc(a,l,r)}else{const f=typeof l==="function"?ui(a,l,r.custom):l;o=Promise.all($0(a,f,r))}return o.then(()=>{a.notify("AnimationComplete",l)})}s(w2,"animateVisualElement");function tv(a,l){if(!Array.isArray(l))return false;const r=l.length;if(r!==a.length)return false;for(let o=0;oPromise.all(l.map(({animation:r,options:o})=>w2(a,r,o)))}s(_2,"animateList");function N2(a){let l=_2(a);let r=Ky();let o=true;const f=s(y=>(p,g)=>{const S=ui(a,g,y==="exit"?a.presenceContext?.custom:void 0);if(S){const{transition:A,transitionEnd:R,..._}=S;p={...p,..._,...R}}return p},"buildResolvedTypeValues");function d(y){l=y(a)}s(d,"setAnimateFunction");function b(y){const{props:p}=a;const g=ev(a.parent)||{};const S=[];const A=new Set;let R={};let _=Infinity;for(let B=0;B_&&P;let yt=false;const St=Array.isArray(X)?X:[X];let qt=St.reduce(f(N),{});if(H===false)qt={};const{prevResolvedValues:Yt={}}=K;const We={...Yt,...qt};const qe=s(G=>{W=true;if(A.has(G)){yt=true;A.delete(G)}K.needsAnimating[G]=true;const F=a.getValue(G);if(F)F.liveStyle=false},"markToAnimate");for(const G in We){const F=qt[G];const ht=Yt[G];if(R.hasOwnProperty(G))continue;let x=false;if(zc(F)&&zc(ht)){x=!tv(F,ht)}else{x=F!==ht}if(x){if(F!==void 0&&F!==null){qe(G)}else{A.add(G)}}else if(F!==void 0&&A.has(G)){qe(G)}else{K.protectedKeys[G]=true}}K.prevProp=X;K.prevResolvedValues=qt;if(K.isActive){R={...R,...qt}}if(o&&a.blockInitialAnimation){W=false}const Gt=I&&ft;const z=!Gt||yt;if(W&&z){S.push(...St.map(G=>{const F={type:N};if(typeof G==="string"&&o&&!Gt&&a.manuallyAnimateOnMount&&a.parent){const{parent:ht}=a;const x=ui(ht,G);if(ht.enteringChildren&&x){const{delayChildren:L}=x.transition||{};F.delay=I0(ht.enteringChildren,a,L)}}return{animation:G,options:F}}))}}if(A.size){const B={};if(typeof p.initial!=="boolean"){const N=ui(a,Array.isArray(p.initial)?p.initial[0]:p.initial);if(N&&N.transition){B.transition=N.transition}}A.forEach(N=>{const K=a.getBaseTarget(N);const X=a.getValue(N);if(X)X.liveStyle=true;B[N]=K??null});S.push({animation:B})}let Y=Boolean(S.length);if(o&&(p.initial===false||p.initial===p.animate)&&!a.manuallyAnimateOnMount){Y=false}o=false;return Y?l(S):Promise.resolve()}s(b,"animateChanges");function m(y,p){if(r[y].isActive===p)return Promise.resolve();a.variantChildren?.forEach(S=>S.animationState?.setActive(y,p));r[y].isActive=p;const g=b(y);for(const S in r){r[S].protectedKeys={}}return g}s(m,"setActive");return{animateChanges:b,setActive:m,setAnimateFunction:d,getState:s(()=>r,"getState"),reset:s(()=>{r=Ky()},"reset")}}s(N2,"createAnimationState");function j2(a,l){if(typeof l==="string"){return l!==a}else if(Array.isArray(l)){return!tv(l,a)}return false}s(j2,"checkVariantsDidChange");function ra(a=false){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}s(ra,"createTypeState");function Ky(){return{animate:ra(true),whileInView:ra(),whileHover:ra(),whileTap:ra(),whileDrag:ra(),whileFocus:ra(),exit:ra()}}s(Ky,"createState");const Kf=class Kf{constructor(l){this.isMounted=false;this.node=l}update(){}};s(Kf,"Feature");let Fe=Kf;const Qf=class Qf extends Fe{constructor(l){super(l);l.animationState||(l.animationState=N2(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();if(Su(l)){this.unmountControls=l.subscribe(this.node)}}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps();const{animate:r}=this.node.prevProps||{};if(l!==r){this.updateAnimationControlsSubscription()}}unmount(){this.node.animationState.reset();this.unmountControls?.()}};s(Qf,"AnimationFeature");let _c=Qf;let B2=0;const kf=class kf extends Fe{constructor(){super(...arguments);this.id=B2++}update(){if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:r}=this.node.presenceContext;const{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o){return}const f=this.node.animationState.setActive("exit",!l);if(r&&!l){f.then(()=>{r(this.id)})}}mount(){const{register:l,onExitComplete:r}=this.node.presenceContext||{};if(r){r(this.id)}if(l){this.unmount=l(this.id)}}unmount(){}};s(kf,"ExitAnimationFeature");let Nc=kf;const L2={animation:{Feature:_c},exit:{Feature:Nc}};function Vl(a,l,r,o={passive:true}){a.addEventListener(l,r,o);return()=>a.removeEventListener(l,r)}s(Vl,"addDomEvent");function Bl(a){return{point:{x:a.pageX,y:a.pageY}}}s(Bl,"extractEventInfo");const H2=s(a=>{return l=>Tf(l)&&a(l,Bl(l))},"addPointerInfo");function bl(a,l,r,o){return Vl(a,l,H2(r),o)}s(bl,"addPointerEvent");const nv=1e-4;const q2=1-nv;const Y2=1+nv;const av=.01;const G2=0-av;const X2=0+av;function ie(a){return a.max-a.min}s(ie,"calcLength");function Z2(a,l,r){return Math.abs(a-l)<=r}s(Z2,"isNear");function Qy(a,l,r,o=.5){a.origin=o;a.originPoint=wt(l.min,l.max,a.origin);a.scale=ie(r)/ie(l);a.translate=wt(r.min,r.max,a.origin)-a.originPoint;if(a.scale>=q2&&a.scale<=Y2||isNaN(a.scale)){a.scale=1}if(a.translate>=G2&&a.translate<=X2||isNaN(a.translate)){a.translate=0}}s(Qy,"calcAxisDelta");function Sl(a,l,r,o){Qy(a.x,l.x,r.x,o?o.originX:void 0);Qy(a.y,l.y,r.y,o?o.originY:void 0)}s(Sl,"calcBoxDelta");function ky(a,l,r){a.min=r.min+l.min;a.max=a.min+ie(l)}s(ky,"calcRelativeAxis");function K2(a,l,r){ky(a.x,l.x,r.x);ky(a.y,l.y,r.y)}s(K2,"calcRelativeBox");function Py(a,l,r){a.min=l.min-r.min;a.max=a.min+ie(l)}s(Py,"calcRelativeAxisPosition");function Tl(a,l,r){Py(a.x,l.x,r.x);Py(a.y,l.y,r.y)}s(Tl,"calcRelativePosition");function Ve(a){return[a("x"),a("y")]}s(Ve,"eachAxis");const iv=s(({current:a})=>{return a?a.ownerDocument.defaultView:null},"getContextWindow");const Jy=s((a,l)=>Math.abs(a-l),"distance");function Q2(a,l){const r=Jy(a.x,l.x);const o=Jy(a.y,l.y);return Math.sqrt(r**2+o**2)}s(Q2,"distance2D");const Pf=class Pf{constructor(l,r,{transformPagePoint:o,contextWindow:f=window,dragSnapToOrigin:d=false,distanceThreshold:b=3}={}){this.startEvent=null;this.lastMoveEvent=null;this.lastMoveEventInfo=null;this.handlers={};this.contextWindow=window;this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Io(this.lastMoveEventInfo,this.history);const R=this.startEvent!==null;const _=Q2(A.offset,{x:0,y:0})>=this.distanceThreshold;if(!R&&!_)return;const{point:Y}=A;const{timestamp:B}=$t;this.history.push({...Y,timestamp:B});const{onStart:N,onMove:K}=this.handlers;if(!R){N&&N(this.lastMoveEvent,A);this.startEvent=this.lastMoveEvent}K&&K(this.lastMoveEvent,A)};this.handlePointerMove=(A,R)=>{this.lastMoveEvent=A;this.lastMoveEventInfo=$o(R,this.transformPagePoint);Ot.update(this.updatePoint,true)};this.handlePointerUp=(A,R)=>{this.end();const{onEnd:_,onSessionEnd:Y,resumeAnimation:B}=this.handlers;if(this.dragSnapToOrigin)B&&B();if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Io(A.type==="pointercancel"?this.lastMoveEventInfo:$o(R,this.transformPagePoint),this.history);if(this.startEvent&&_){_(A,N)}Y&&Y(A,N)};if(!Tf(l))return;this.dragSnapToOrigin=d;this.handlers=r;this.transformPagePoint=o;this.distanceThreshold=b;this.contextWindow=f||window;const m=Bl(l);const y=$o(m,this.transformPagePoint);const{point:p}=y;const{timestamp:g}=$t;this.history=[{...p,timestamp:g}];const{onSessionStart:S}=r;S&&S(l,Io(y,this.history));this.removeListeners=_l(bl(this.contextWindow,"pointermove",this.handlePointerMove),bl(this.contextWindow,"pointerup",this.handlePointerUp),bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners();Gn(this.updatePoint)}};s(Pf,"PanSession");let vu=Pf;function $o(a,l){return l?{point:l(a.point)}:a}s($o,"transformPoint");function Fy(a,l){return{x:a.x-l.x,y:a.y-l.y}}s(Fy,"subtractPoint");function Io({point:a},l){return{point:a,delta:Fy(a,lv(l)),offset:Fy(a,k2(l)),velocity:P2(l,.1)}}s(Io,"getPanInfo");function k2(a){return a[0]}s(k2,"startDevicePoint");function lv(a){return a[a.length-1]}s(lv,"lastDevicePoint");function P2(a,l){if(a.length<2){return{x:0,y:0}}let r=a.length-1;let o=null;const f=lv(a);while(r>=0){o=a[r];if(f.timestamp-o.timestamp>Pe(l)){break}r--}if(!o){return{x:0,y:0}}const d=Ue(f.timestamp-o.timestamp);if(d===0){return{x:0,y:0}}const b={x:(f.x-o.x)/d,y:(f.y-o.y)/d};if(b.x===Infinity){b.x=0}if(b.y===Infinity){b.y=0}return b}s(P2,"getVelocity");function J2(a,{min:l,max:r},o){if(l!==void 0&&ar){a=o?wt(r,a,o.max):Math.min(a,r)}return a}s(J2,"applyConstraints");function Wy(a,l,r){return{min:l!==void 0?a.min+l:void 0,max:r!==void 0?a.max+r-(a.max-a.min):void 0}}s(Wy,"calcRelativeAxisConstraints");function F2(a,{top:l,left:r,bottom:o,right:f}){return{x:Wy(a.x,r,f),y:Wy(a.y,l,o)}}s(F2,"calcRelativeConstraints");function $y(a,l){let r=l.min-a.min;let o=l.max-a.max;if(l.max-l.mino){r=Al(l.min,l.max-o,a.min)}else if(o>f){r=Al(a.min,a.max-f,l.min)}return mn(0,1,r)}s($2,"calcOrigin");function I2(a,l){const r={};if(l.min!==void 0){r.min=l.min-a.min}if(l.max!==void 0){r.max=l.max-a.min}return r}s(I2,"rebaseAxisConstraints");const jc=.35;function tA(a=jc){if(a===false){a=0}else if(a===true){a=jc}return{x:Iy(a,"left","right"),y:Iy(a,"top","bottom")}}s(tA,"resolveDragElastic");function Iy(a,l,r){return{min:tg(a,l),max:tg(a,r)}}s(Iy,"resolveAxisElastic");function tg(a,l){return typeof a==="number"?a:a[l]||0}s(tg,"resolvePointElastic");const eA=new WeakMap;const Jf=class Jf{constructor(l){this.openDragLock=null;this.isDragging=false;this.currentDirection=null;this.originPoint={x:0,y:0};this.constraints=false;this.hasMutatedConstraints=false;this.elastic=jt();this.latestPointerEvent=null;this.latestPanInfo=null;this.visualElement=l}start(l,{snapToCursor:r=false,distanceThreshold:o}={}){const{presenceContext:f}=this.visualElement;if(f&&f.isPresent===false)return;const d=s(S=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation();if(r){this.snapToCursor(Bl(S).point)}},"onSessionStart");const b=s((S,A)=>{const{drag:R,dragPropagation:_,onDragStart:Y}=this.getProps();if(R&&!_){if(this.openDragLock)this.openDragLock();this.openDragLock=bx(R);if(!this.openDragLock)return}this.latestPointerEvent=S;this.latestPanInfo=A;this.isDragging=true;this.currentDirection=null;this.resolveConstraints();if(this.visualElement.projection){this.visualElement.projection.isAnimationBlocked=true;this.visualElement.projection.target=void 0}Ve(N=>{let K=this.getAxisMotionValue(N).get()||0;if(Je.test(K)){const{projection:X}=this.visualElement;if(X&&X.layout){const P=X.layout.layoutBox[N];if(P){const H=ie(P);K=H*(parseFloat(K)/100)}}}this.originPoint[N]=K});if(Y){Ot.postRender(()=>Y(S,A))}Vc(this.visualElement,"transform");const{animationState:B}=this.visualElement;B&&B.setActive("whileDrag",true)},"onStart");const m=s((S,A)=>{this.latestPointerEvent=S;this.latestPanInfo=A;const{dragPropagation:R,dragDirectionLock:_,onDirectionLock:Y,onDrag:B}=this.getProps();if(!R&&!this.openDragLock)return;const{offset:N}=A;if(_&&this.currentDirection===null){this.currentDirection=nA(N);if(this.currentDirection!==null){Y&&Y(this.currentDirection)}return}this.updateAxis("x",A.point,N);this.updateAxis("y",A.point,N);this.visualElement.render();B&&B(S,A)},"onMove");const y=s((S,A)=>{this.latestPointerEvent=S;this.latestPanInfo=A;this.stop(S,A);this.latestPointerEvent=null;this.latestPanInfo=null},"onSessionEnd");const p=s(()=>Ve(S=>this.getAnimationState(S)==="paused"&&this.getAxisMotionValue(S).animation?.play()),"resumeAnimation");const{dragSnapToOrigin:g}=this.getProps();this.panSession=new vu(l,{onSessionStart:d,onStart:b,onMove:m,onSessionEnd:y,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:o,contextWindow:iv(this.visualElement)})}stop(l,r){const o=l||this.latestPointerEvent;const f=r||this.latestPanInfo;const d=this.isDragging;this.cancel();if(!d||!f||!o)return;const{velocity:b}=f;this.startAnimation(b);const{onDragEnd:m}=this.getProps();if(m){Ot.postRender(()=>m(o,f))}}cancel(){this.isDragging=false;const{projection:l,animationState:r}=this.visualElement;if(l){l.isAnimationBlocked=false}this.panSession&&this.panSession.end();this.panSession=void 0;const{dragPropagation:o}=this.getProps();if(!o&&this.openDragLock){this.openDragLock();this.openDragLock=null}r&&r.setActive("whileDrag",false)}updateAxis(l,r,o){const{drag:f}=this.getProps();if(!o||!eu(l,f,this.currentDirection))return;const d=this.getAxisMotionValue(l);let b=this.originPoint[l]+o[l];if(this.constraints&&this.constraints[l]){b=J2(b,this.constraints[l],this.elastic[l])}d.set(b)}resolveConstraints(){const{dragConstraints:l,dragElastic:r}=this.getProps();const o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(false):this.visualElement.projection?.layout;const f=this.constraints;if(l&&ni(l)){if(!this.constraints){this.constraints=this.resolveRefConstraints()}}else{if(l&&o){this.constraints=F2(o.layoutBox,l)}else{this.constraints=false}}this.elastic=tA(r);if(f!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints){Ve(d=>{if(this.constraints!==false&&this.getAxisMotionValue(d)){this.constraints[d]=I2(o.layoutBox[d],this.constraints[d])}})}}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:r}=this.getProps();if(!l||!ni(l))return false;const o=l.current;const{projection:f}=this.visualElement;if(!f||!f.layout)return false;const d=c2(o,f.root,this.visualElement.getTransformPagePoint());let b=W2(f.layout.layoutBox,d);if(r){const m=r(u2(b));this.hasMutatedConstraints=!!m;if(m){b=Z0(m)}}return b}startAnimation(l){const{drag:r,dragMomentum:o,dragElastic:f,dragTransition:d,dragSnapToOrigin:b,onDragTransitionEnd:m}=this.getProps();const y=this.constraints||{};const p=Ve(g=>{if(!eu(g,r,this.currentDirection)){return}let S=y&&y[g]||{};if(b)S={min:0,max:0};const A=f?200:1e6;const R=f?40:1e7;const _={type:"inertia",velocity:o?l[g]:0,bounceStiffness:A,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...d,...S};return this.startAxisValueAnimation(g,_)});return Promise.all(p).then(m)}startAxisValueAnimation(l,r){const o=this.getAxisMotionValue(l);Vc(this.visualElement,l);return o.start(zf(l,o,0,r,this.visualElement,false))}stopAnimation(){Ve(l=>this.getAxisMotionValue(l).stop())}pauseAnimation(){Ve(l=>this.getAxisMotionValue(l).animation?.pause())}getAnimationState(l){return this.getAxisMotionValue(l).animation?.state}getAxisMotionValue(l){const r=`_drag${l.toUpperCase()}`;const o=this.visualElement.getProps();const f=o[r];return f?f:this.visualElement.getValue(l,(o.initial?o.initial[l]:void 0)||0)}snapToCursor(l){Ve(r=>{const{drag:o}=this.getProps();if(!eu(r,o,this.currentDirection))return;const{projection:f}=this.visualElement;const d=this.getAxisMotionValue(r);if(f&&f.layout){const{min:b,max:m}=f.layout.layoutBox[r];d.set(l[r]-wt(b,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:r}=this.getProps();const{projection:o}=this.visualElement;if(!ni(r)||!o||!this.constraints)return;this.stopAnimation();const f={x:0,y:0};Ve(b=>{const m=this.getAxisMotionValue(b);if(m&&this.constraints!==false){const y=m.get();f[b]=$2({min:y,max:y},this.constraints[b])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none";o.root&&o.root.updateScroll();o.updateLayout();this.resolveConstraints();Ve(b=>{if(!eu(b,l,null))return;const m=this.getAxisMotionValue(b);const{min:y,max:p}=this.constraints[b];m.set(wt(y,p,f[b]))})}addListeners(){if(!this.visualElement.current)return;eA.set(this.visualElement,this);const l=this.visualElement.current;const r=bl(l,"pointerdown",y=>{const{drag:p,dragListener:g=true}=this.getProps();p&&g&&this.start(y)});const o=s(()=>{const{dragConstraints:y}=this.getProps();if(ni(y)&&y.current){this.constraints=this.resolveRefConstraints()}},"measureDragConstraints");const{projection:f}=this.visualElement;const d=f.addEventListener("measure",o);if(f&&!f.layout){f.root&&f.root.updateScroll();f.updateLayout()}Ot.read(o);const b=Vl(window,"resize",()=>this.scalePositionWithinConstraints());const m=f.addEventListener("didUpdate",({delta:y,hasLayoutChanged:p})=>{if(this.isDragging&&p){Ve(g=>{const S=this.getAxisMotionValue(g);if(!S)return;this.originPoint[g]+=y[g].translate;S.set(S.get()+y[g].translate)});this.visualElement.render()}});return()=>{b();r();d();m&&m()}}getProps(){const l=this.visualElement.getProps();const{drag:r=false,dragDirectionLock:o=false,dragPropagation:f=false,dragConstraints:d=false,dragElastic:b=jc,dragMomentum:m=true}=l;return{...l,drag:r,dragDirectionLock:o,dragPropagation:f,dragConstraints:d,dragElastic:b,dragMomentum:m}}};s(Jf,"VisualElementDragControls");let Bc=Jf;function eu(a,l,r){return(l===true||l===a)&&(r===null||r===a)}s(eu,"shouldDrag");function nA(a,l=10){let r=null;if(Math.abs(a.y)>l){r="y"}else if(Math.abs(a.x)>l){r="x"}return r}s(nA,"getCurrentDirection");const Ff=class Ff extends Fe{constructor(l){super(l);this.removeGroupControls=_e;this.removeListeners=_e;this.controls=new Bc(l)}mount(){const{dragControls:l}=this.node.getProps();if(l){this.removeGroupControls=l.subscribe(this.controls)}this.removeListeners=this.controls.addListeners()||_e}unmount(){this.removeGroupControls();this.removeListeners()}};s(Ff,"DragGesture");let Lc=Ff;const eg=s(a=>(l,r)=>{if(a){Ot.postRender(()=>a(l,r))}},"asyncHandler");const Wf=class Wf extends Fe{constructor(){super(...arguments);this.removePointerDownListener=_e}onPointerDown(l){this.session=new vu(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iv(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:r,onPan:o,onPanEnd:f}=this.node.getProps();return{onSessionStart:eg(l),onStart:eg(r),onMove:o,onEnd:s((d,b)=>{delete this.session;if(f){Ot.postRender(()=>f(d,b))}},"onEnd")}}mount(){this.removePointerDownListener=bl(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener();this.session&&this.session.end()}};s(Wf,"PanGesture");let Hc=Wf;const ru={hasAnimatedSinceResize:true,hasEverUpdated:false};function ng(a,l){if(l.max===l.min)return 0;return a/(l.max-l.min)*100}s(ng,"pixelsToPercent");const hl={correct:s((a,l)=>{if(!l.target)return a;if(typeof a==="string"){if(it.test(a)){a=parseFloat(a)}else{return a}}const r=ng(a,l.target.x);const o=ng(a,l.target.y);return`${r}% ${o}%`},"correct")};const aA={correct:s((a,{treeScale:l,projectionDelta:r})=>{const o=a;const f=Xn.parse(a);if(f.length>5)return o;const d=Xn.createTransformer(a);const b=typeof f[0]!=="number"?1:0;const m=r.x.scale*l.x;const y=r.y.scale*l.y;f[0+b]/=m;f[1+b]/=y;const p=wt(m,y,.5);if(typeof f[2+b]==="number")f[2+b]/=p;if(typeof f[3+b]==="number")f[3+b]/=p;return d(f)},"correct")};let tc=false;const $f=class $f extends Z.Component{componentDidMount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o,layoutId:f}=this.props;const{projection:d}=l;Nx(iA);if(d){if(r.group)r.group.add(d);if(o&&o.register&&f){o.register(d)}if(tc){d.root.didUpdate()}d.addEventListener("animationComplete",()=>{this.safeToRemove()});d.setOptions({...d.options,onExitComplete:s(()=>this.safeToRemove(),"onExitComplete")})}ru.hasEverUpdated=true}getSnapshotBeforeUpdate(l){const{layoutDependency:r,visualElement:o,drag:f,isPresent:d}=this.props;const{projection:b}=o;if(!b)return null;b.isPresent=d;tc=true;if(f||l.layoutDependency!==r||r===void 0||l.isPresent!==d){b.willUpdate()}else{this.safeToRemove()}if(l.isPresent!==d){if(d){b.promote()}else if(!b.relegate()){Ot.postRender(()=>{const m=b.getStack();if(!m||!m.members.length){this.safeToRemove()}})}}return null}componentDidUpdate(){const{projection:l}=this.props.visualElement;if(l){l.root.didUpdate();Sf.postRender(()=>{if(!l.currentAnimation&&l.isLead()){this.safeToRemove()}})}}componentWillUnmount(){const{visualElement:l,layoutGroup:r,switchLayoutGroup:o}=this.props;const{projection:f}=l;tc=true;if(f){f.scheduleCheckAfterUnmount();if(r&&r.group)r.group.remove(f);if(o&&o.deregister)o.deregister(f)}}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}};s($f,"MeasureLayoutWithContext");let qc=$f;function sv(a){const[l,r]=Ox();const o=Z.useContext(qg);return q.jsx(qc,{...a,layoutGroup:o,switchLayoutGroup:Z.useContext(G0),isPresent:l,safeToRemove:r})}s(sv,"MeasureLayout");const iA={borderRadius:{...hl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hl,borderTopRightRadius:hl,borderBottomLeftRadius:hl,borderBottomRightRadius:hl,boxShadow:aA};function lA(a,l,r){const o=ne(a)?a:ri(a);o.start(zf("",o,l,r));return o.animation}s(lA,"animateSingleValue");const sA=s((a,l)=>a.depth-l.depth,"compareByDepth");const If=class If{constructor(){this.children=[];this.isDirty=false}add(l){lf(this.children,l);this.isDirty=true}remove(l){sf(this.children,l);this.isDirty=true}forEach(l){this.isDirty&&this.children.sort(sA);this.isDirty=false;this.children.forEach(l)}};s(If,"FlatTree");let Yc=If;function uA(a,l){const r=fe.now();const o=s(({timestamp:f})=>{const d=f-r;if(d>=l){Gn(o);a(d-l)}},"checkElapsed");Ot.setup(o,true);return()=>Gn(o)}s(uA,"delay");const uv=["TopLeft","TopRight","BottomLeft","BottomRight"];const rA=uv.length;const ag=s(a=>typeof a==="string"?parseFloat(a):a,"asNumber");const ig=s(a=>typeof a==="number"||it.test(a),"isPx");function oA(a,l,r,o,f,d){if(f){a.opacity=wt(0,r.opacity??1,cA(o));a.opacityExit=wt(l.opacity??1,0,fA(o))}else if(d){a.opacity=wt(l.opacity??1,r.opacity??1,o)}for(let b=0;b{if(ol)return 1;return r(Al(a,l,o))}}s(rv,"compress");function sg(a,l){a.min=l.min;a.max=l.max}s(sg,"copyAxisInto");function ze(a,l){sg(a.x,l.x);sg(a.y,l.y)}s(ze,"copyBoxInto");function ug(a,l){a.translate=l.translate;a.scale=l.scale;a.originPoint=l.originPoint;a.origin=l.origin}s(ug,"copyAxisDeltaInto");function rg(a,l,r,o,f){a-=l;a=pu(a,1/r,o);if(f!==void 0){a=pu(a,1/f,o)}return a}s(rg,"removePointDelta");function hA(a,l=0,r=1,o=.5,f,d=a,b=a){if(Je.test(l)){l=parseFloat(l);const y=wt(b.min,b.max,l/100);l=y-b.min}if(typeof l!=="number")return;let m=wt(d.min,d.max,o);if(a===d)m-=l;a.min=rg(a.min,l,r,m,f);a.max=rg(a.max,l,r,m,f)}s(hA,"removeAxisDelta");function og(a,l,[r,o,f],d,b){hA(a,l[r],l[o],l[f],l.scale,d,b)}s(og,"removeAxisTransforms");const dA=["x","scaleX","originX"];const mA=["y","scaleY","originY"];function cg(a,l,r,o){og(a.x,l,dA,r?r.x:void 0,o?o.x:void 0);og(a.y,l,mA,r?r.y:void 0,o?o.y:void 0)}s(cg,"removeBoxTransforms");function fg(a){return a.translate===0&&a.scale===1}s(fg,"isAxisDeltaZero");function ov(a){return fg(a.x)&&fg(a.y)}s(ov,"isDeltaZero");function hg(a,l){return a.min===l.min&&a.max===l.max}s(hg,"axisEquals");function pA(a,l){return hg(a.x,l.x)&&hg(a.y,l.y)}s(pA,"boxEquals");function dg(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}s(dg,"axisEqualsRounded");function cv(a,l){return dg(a.x,l.x)&&dg(a.y,l.y)}s(cv,"boxEqualsRounded");function mg(a){return ie(a.x)/ie(a.y)}s(mg,"aspectRatio");function pg(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}s(pg,"axisDeltaEquals");const th=class th{constructor(){this.members=[]}add(l){lf(this.members,l);l.scheduleRender()}remove(l){sf(this.members,l);if(l===this.prevLead){this.prevLead=void 0}if(l===this.lead){const r=this.members[this.members.length-1];if(r){this.promote(r)}}}relegate(l){const r=this.members.findIndex(f=>l===f);if(r===0)return false;let o;for(let f=r;f>=0;f--){const d=this.members[f];if(d.isPresent!==false){o=d;break}}if(o){this.promote(o);return true}else{return false}}promote(l,r){const o=this.lead;if(l===o)return;this.prevLead=o;this.lead=l;l.show();if(o){o.instance&&o.scheduleRender();l.scheduleRender();l.resumeFrom=o;if(r){l.resumeFrom.preserveOpacity=true}if(o.snapshot){l.snapshot=o.snapshot;l.snapshot.latestValues=o.animationValues||o.latestValues}if(l.root&&l.root.isUpdating){l.isLayoutDirty=true}const{crossfade:f}=l.options;if(f===false){o.hide()}}}exitAnimationComplete(){this.members.forEach(l=>{const{options:r,resumingFrom:o}=l;r.onExitComplete&&r.onExitComplete();if(o){o.options.onExitComplete&&o.options.onExitComplete()}})}scheduleRender(){this.members.forEach(l=>{l.instance&&l.scheduleRender(false)})}removeLeadSnapshot(){if(this.lead&&this.lead.snapshot){this.lead.snapshot=void 0}}};s(th,"NodeStack");let Gc=th;function yA(a,l,r){let o="";const f=a.x.translate/l.x;const d=a.y.translate/l.y;const b=r?.z||0;if(f||d||b){o=`translate3d(${f}px, ${d}px, ${b}px) `}if(l.x!==1||l.y!==1){o+=`scale(${1/l.x}, ${1/l.y}) `}if(r){const{transformPerspective:p,rotate:g,rotateX:S,rotateY:A,skewX:R,skewY:_}=r;if(p)o=`perspective(${p}px) ${o}`;if(g)o+=`rotate(${g}deg) `;if(S)o+=`rotateX(${S}deg) `;if(A)o+=`rotateY(${A}deg) `;if(R)o+=`skewX(${R}deg) `;if(_)o+=`skewY(${_}deg) `}const m=a.x.scale*l.x;const y=a.y.scale*l.y;if(m!==1||y!==1){o+=`scale(${m}, ${y})`}return o||"none"}s(yA,"buildProjectionTransform");const ec=["","X","Y","Z"];const gA=1e3;let vA=0;function nc(a,l,r,o){const{latestValues:f}=l;if(f[a]){r[a]=f[a];l.setStaticValue(a,0);if(o){o[a]=0}}}s(nc,"resetDistortingTransform");function fv(a){a.hasCheckedOptimisedAppear=true;if(a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const r=W0(l);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:f,layoutId:d}=a.options;window.MotionCancelOptimisedAnimation(r,"transform",Ot,!(f||d))}const{parent:o}=a;if(o&&!o.hasCheckedOptimisedAppear){fv(o)}}s(fv,"cancelTreeOptimisedTransformAnimations");function hv({attachResizeListener:a,defaultParent:l,measureScroll:r,checkIsScrollRoot:o,resetTransform:f}){var d;return d=class{constructor(m={},y=l?.()){this.id=vA++;this.animationId=0;this.animationCommitId=0;this.children=new Set;this.options={};this.isTreeAnimating=false;this.isAnimationBlocked=false;this.isLayoutDirty=false;this.isProjectionDirty=false;this.isSharedProjectionDirty=false;this.isTransformDirty=false;this.updateManuallyBlocked=false;this.updateBlockedByResize=false;this.isUpdating=false;this.isSVG=false;this.needsReset=false;this.shouldResetTransform=false;this.hasCheckedOptimisedAppear=false;this.treeScale={x:1,y:1};this.eventHandlers=new Map;this.hasTreeAnimated=false;this.updateScheduled=false;this.scheduleUpdate=()=>this.update();this.projectionUpdateScheduled=false;this.checkUpdateFailed=()=>{if(this.isUpdating){this.isUpdating=false;this.clearAllSnapshots()}};this.updateProjection=()=>{this.projectionUpdateScheduled=false;this.nodes.forEach(TA);this.nodes.forEach(MA);this.nodes.forEach(DA);this.nodes.forEach(xA)};this.resolvedRelativeTargetAt=0;this.hasProjected=false;this.isVisible=true;this.animationProgress=0;this.sharedNodes=new Map;this.latestValues=m;this.root=y?y.root||y:this;this.path=y?[...y.path,y]:[];this.parent=y;this.depth=y?y.depth+1:0;for(let p=0;pthis.root.updateBlockedByResize=false,"resizeUnblockUpdate");Ot.read(()=>{A=window.innerWidth});a(m,()=>{const _=window.innerWidth;if(_===A)return;A=_;this.root.updateBlockedByResize=true;S&&S();S=uA(R,250);if(ru.hasAnimatedSinceResize){ru.hasAnimatedSinceResize=false;this.nodes.forEach(vg)}})}if(y){this.root.registerSharedNode(y,this)}if(this.options.animate!==false&&g&&(y||p)){this.addEventListener("didUpdate",({delta:S,hasLayoutChanged:A,hasRelativeLayoutChanged:R,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0;this.relativeTarget=void 0;return}const Y=this.options.transition||g.getDefaultTransition()||zA;const{onLayoutAnimationStart:B,onLayoutAnimationComplete:N}=g.getProps();const K=!this.targetLayout||!cv(this.targetLayout,_);const X=!A&&R;if(this.options.layoutRoot||this.resumeFrom||X||A&&(K||!this.currentAnimation)){if(this.resumeFrom){this.resumingFrom=this.resumeFrom;this.resumingFrom.resumingFrom=void 0}const P={...vf(Y,"layout"),onPlay:B,onComplete:N};if(g.shouldReduceMotion||this.options.layoutRoot){P.delay=0;P.type=false}this.startAnimation(P);this.setAnimationOrigin(S,X)}else{if(!A){vg(this)}if(this.isLead()&&this.options.onExitComplete){this.options.onExitComplete()}}this.targetLayout=_})}}unmount(){this.options.layoutId&&this.willUpdate();this.root.nodes.remove(this);const m=this.getStack();m&&m.remove(this);this.parent&&this.parent.children.delete(this);this.instance=void 0;this.eventHandlers.clear();Gn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=true}unblockUpdate(){this.updateManuallyBlocked=false}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||false}startUpdate(){if(this.isUpdateBlocked())return;this.isUpdating=true;this.nodes&&this.nodes.forEach(RA);this.animationId++}getTransformTemplate(){const{visualElement:m}=this.options;return m&&m.getProps().transformTemplate}willUpdate(m=true){this.root.hasTreeAnimated=true;if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear){fv(this)}!this.root.isUpdating&&this.root.startUpdate();if(this.isLayoutDirty)return;this.isLayoutDirty=true;for(let S=0;S{if(this.isLayoutDirty){this.root.didUpdate()}else{this.root.checkUpdateFailed()}})}updateSnapshot(){if(this.snapshot||!this.instance)return;this.snapshot=this.measure();if(this.snapshot&&!ie(this.snapshot.measuredBox.x)&&!ie(this.snapshot.measuredBox.y)){this.snapshot=void 0}}updateLayout(){if(!this.instance)return;this.updateScroll();if(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty){return}if(this.resumeFrom&&!this.resumeFrom.instance){for(let p=0;p{const I=H/1e3;bg(A.x,m.x,I);bg(A.y,m.y,I);this.setTargetDelta(A);if(this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){Tl(R,this.layout.layoutBox,this.relativeParent.layout.layoutBox);CA(this.relativeTarget,this.relativeTargetOrigin,R,I);if(P&&pA(this.relativeTarget,P)){this.isProjectionDirty=false}if(!P)P=jt();ze(P,this.relativeTarget)}if(B){this.animationValues=S;oA(S,g,this.latestValues,I,X,K)}this.root.scheduleUpdateProjection();this.scheduleRender();this.animationProgress=I};this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(m){this.notifyListeners("animationStart");this.currentAnimation?.stop();this.resumingFrom?.currentAnimation?.stop();if(this.pendingAnimation){Gn(this.pendingAnimation);this.pendingAnimation=void 0}this.pendingAnimation=Ot.update(()=>{ru.hasAnimatedSinceResize=true;this.motionValue||(this.motionValue=ri(0));this.currentAnimation=lA(this.motionValue,[0,1e3],{...m,velocity:0,isSync:true,onUpdate:s(y=>{this.mixTargetDelta(y);m.onUpdate&&m.onUpdate(y)},"onUpdate"),onStop:s(()=>{},"onStop"),onComplete:s(()=>{m.onComplete&&m.onComplete();this.completeAnimation()},"onComplete")});if(this.resumingFrom){this.resumingFrom.currentAnimation=this.currentAnimation}this.pendingAnimation=void 0})}completeAnimation(){if(this.resumingFrom){this.resumingFrom.currentAnimation=void 0;this.resumingFrom.preserveOpacity=void 0}const m=this.getStack();m&&m.exitAnimationComplete();this.resumingFrom=this.currentAnimation=this.animationValues=void 0;this.notifyListeners("animationComplete")}finishAnimation(){if(this.currentAnimation){this.mixTargetDelta&&this.mixTargetDelta(gA);this.currentAnimation.stop()}this.completeAnimation()}applyTransformsToTarget(){const m=this.getLead();let{targetWithTransforms:y,target:p,layout:g,latestValues:S}=m;if(!y||!p||!g)return;if(this!==m&&this.layout&&g&&dv(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||jt();const A=ie(this.layout.layoutBox.x);p.x.min=m.target.x.min;p.x.max=p.x.min+A;const R=ie(this.layout.layoutBox.y);p.y.min=m.target.y.min;p.y.max=p.y.min+R}ze(y,p);ii(y,S);Sl(this.projectionDeltaWithTransform,this.layoutCorrected,y,S)}registerSharedNode(m,y){if(!this.sharedNodes.has(m)){this.sharedNodes.set(m,new Gc)}const p=this.sharedNodes.get(m);p.add(y);const g=y.options.initialPromotionConfig;y.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(y):void 0})}isLead(){const m=this.getStack();return m?m.lead===this:true}getLead(){const{layoutId:m}=this.options;return m?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:m}=this.options;return m?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:m}=this.options;if(m)return this.root.sharedNodes.get(m)}promote({needsReset:m,transition:y,preserveFollowOpacity:p}={}){const g=this.getStack();if(g)g.promote(this,p);if(m){this.projectionDelta=void 0;this.needsReset=true}if(y)this.setOptions({transition:y})}relegate(){const m=this.getStack();if(m){return m.relegate(this)}else{return false}}resetSkewAndRotation(){const{visualElement:m}=this.options;if(!m)return;let y=false;const{latestValues:p}=m;if(p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY){y=true}if(!y)return;const g={};if(p.z){nc("z",m,g,this.animationValues)}for(let S=0;Sm.currentAnimation?.stop());this.root.nodes.forEach(yg);this.root.sharedNodes.clear()}},s(d,"ProjectionNode"),d}s(hv,"createProjectionNode");function bA(a){a.updateLayout()}s(bA,"updateLayout");function SA(a){const l=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=a.layout;const{animationType:f}=a.options;const d=l.source!==a.layout.source;if(f==="size"){Ve(g=>{const S=d?l.measuredBox[g]:l.layoutBox[g];const A=ie(S);S.min=r[g].min;S.max=S.min+A})}else if(dv(f,l.layoutBox,r)){Ve(g=>{const S=d?l.measuredBox[g]:l.layoutBox[g];const A=ie(r[g]);S.max=S.min+A;if(a.relativeTarget&&!a.currentAnimation){a.isProjectionDirty=true;a.relativeTarget[g].max=a.relativeTarget[g].min+A}})}const b=li();Sl(b,r,l.layoutBox);const m=li();if(d){Sl(m,a.applyTransform(o,true),l.measuredBox)}else{Sl(m,r,l.layoutBox)}const y=!ov(b);let p=false;if(!a.resumeFrom){const g=a.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:S,layout:A}=g;if(S&&A){const R=jt();Tl(R,l.layoutBox,S.layoutBox);const _=jt();Tl(_,r,A.layoutBox);if(!cv(R,_)){p=true}if(g.options.layoutRoot){a.relativeTarget=_;a.relativeTargetOrigin=R;a.relativeParent=g}}}}a.notifyListeners("didUpdate",{layout:r,snapshot:l,delta:m,layoutDelta:b,hasLayoutChanged:y,hasRelativeLayoutChanged:p})}else if(a.isLead()){const{onExitComplete:r}=a.options;r&&r()}a.options.transition=void 0}s(SA,"notifyLayoutUpdate");function TA(a){if(!a.parent)return;if(!a.isProjecting()){a.isProjectionDirty=a.parent.isProjectionDirty}a.isSharedProjectionDirty||(a.isSharedProjectionDirty=Boolean(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty));a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty)}s(TA,"propagateDirtyNodes");function xA(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=false}s(xA,"cleanDirtyNodes");function AA(a){a.clearSnapshot()}s(AA,"clearSnapshot");function yg(a){a.clearMeasurements()}s(yg,"clearMeasurements");function gg(a){a.isLayoutDirty=false}s(gg,"clearIsLayoutDirty");function EA(a){const{visualElement:l}=a.options;if(l&&l.getProps().onBeforeLayoutMeasure){l.notify("BeforeLayoutMeasure")}a.resetTransform()}s(EA,"resetTransformStyle");function vg(a){a.finishAnimation();a.targetDelta=a.relativeTarget=a.target=void 0;a.isProjectionDirty=true}s(vg,"finishAnimation");function MA(a){a.resolveTargetDelta()}s(MA,"resolveTargetDelta");function DA(a){a.calcProjection()}s(DA,"calcProjection");function RA(a){a.resetSkewAndRotation()}s(RA,"resetSkewAndRotation");function OA(a){a.removeLeadSnapshot()}s(OA,"removeLeadSnapshots");function bg(a,l,r){a.translate=wt(l.translate,0,r);a.scale=wt(l.scale,1,r);a.origin=l.origin;a.originPoint=l.originPoint}s(bg,"mixAxisDelta");function Sg(a,l,r,o){a.min=wt(l.min,r.min,o);a.max=wt(l.max,r.max,o)}s(Sg,"mixAxis");function CA(a,l,r,o){Sg(a.x,l.x,r.x,o);Sg(a.y,l.y,r.y,o)}s(CA,"mixBox");function wA(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}s(wA,"hasOpacityCrossfade");const zA={duration:.45,ease:[.4,0,.1,1]};const Tg=s(a=>typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),"userAgentContains");const xg=Tg("applewebkit/")&&!Tg("chrome/")?Math.round:_e;function Ag(a){a.min=xg(a.min);a.max=xg(a.max)}s(Ag,"roundAxis");function VA(a){Ag(a.x);Ag(a.y)}s(VA,"roundBox");function dv(a,l,r){return a==="position"||a==="preserve-aspect"&&!Z2(mg(l),mg(r),.2)}s(dv,"shouldAnimatePositionOnly");function UA(a){return a!==a.root&&a.scroll?.wasRoot}s(UA,"checkNodeWasScrollRoot");const _A=hv({attachResizeListener:s((a,l)=>Vl(a,"resize",l),"attachResizeListener"),measureScroll:s(()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),"measureScroll"),checkIsScrollRoot:s(()=>true,"checkIsScrollRoot")});const ac={current:void 0};const mv=hv({measureScroll:s(a=>({x:a.scrollLeft,y:a.scrollTop}),"measureScroll"),defaultParent:s(()=>{if(!ac.current){const a=new _A({});a.mount(window);a.setOptions({layoutScroll:true});ac.current=a}return ac.current},"defaultParent"),resetTransform:s((a,l)=>{a.style.transform=l!==void 0?l:"none"},"resetTransform"),checkIsScrollRoot:s(a=>Boolean(window.getComputedStyle(a).position==="fixed"),"checkIsScrollRoot")});const NA={pan:{Feature:Hc},drag:{Feature:Lc,ProjectionNode:mv,MeasureLayout:sv}};function Eg(a,l,r){const{props:o}=a;if(a.animationState&&o.whileHover){a.animationState.setActive("whileHover",r==="Start")}const f="onHover"+r;const d=o[f];if(d){Ot.postRender(()=>d(l,Bl(l)))}}s(Eg,"handleHoverEvent");const eh=class eh extends Fe{mount(){const{current:l}=this.node;if(!l)return;this.unmount=Sx(l,(r,o)=>{Eg(this.node,o,"Start");return f=>Eg(this.node,f,"End")})}unmount(){}};s(eh,"HoverGesture");let Xc=eh;const nh=class nh extends Fe{constructor(){super(...arguments);this.isActive=false}onFocus(){let l=false;try{l=this.node.current.matches(":focus-visible")}catch(r){l=true}if(!l||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",true);this.isActive=true}onBlur(){if(!this.isActive||!this.node.animationState)return;this.node.animationState.setActive("whileFocus",false);this.isActive=false}mount(){this.unmount=_l(Vl(this.node.current,"focus",()=>this.onFocus()),Vl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};s(nh,"FocusGesture");let Zc=nh;function Mg(a,l,r){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled){return}if(a.animationState&&o.whileTap){a.animationState.setActive("whileTap",r==="Start")}const f="onTap"+(r==="End"?"":r);const d=o[f];if(d){Ot.postRender(()=>d(l,Bl(l)))}}s(Mg,"handlePressEvent");const ah=class ah extends Fe{mount(){const{current:l}=this.node;if(!l)return;this.unmount=Ex(l,(r,o)=>{Mg(this.node,o,"Start");return(f,{success:d})=>Mg(this.node,f,d?"End":"Cancel")},{useGlobalTarget:this.node.props.globalTapTarget})}unmount(){}};s(ah,"PressGesture");let Kc=ah;const Qc=new WeakMap;const ic=new WeakMap;const jA=s(a=>{const l=Qc.get(a.target);l&&l(a)},"fireObserverCallback");const BA=s(a=>{a.forEach(jA)},"fireAllObserverCallbacks");function LA({root:a,...l}){const r=a||document;if(!ic.has(r)){ic.set(r,{})}const o=ic.get(r);const f=JSON.stringify(l);if(!o[f]){o[f]=new IntersectionObserver(BA,{root:a,...l})}return o[f]}s(LA,"initIntersectionObserver");function HA(a,l,r){const o=LA(l);Qc.set(a,r);o.observe(a);return()=>{Qc.delete(a);o.unobserve(a)}}s(HA,"observeIntersection");const qA={some:0,all:1};const ih=class ih extends Fe{constructor(){super(...arguments);this.hasEnteredView=false;this.isInView=false}startObserver(){this.unmount();const{viewport:l={}}=this.node.getProps();const{root:r,margin:o,amount:f="some",once:d}=l;const b={root:r?r.current:void 0,rootMargin:o,threshold:typeof f==="number"?f:qA[f]};const m=s(y=>{const{isIntersecting:p}=y;if(this.isInView===p)return;this.isInView=p;if(d&&!p&&this.hasEnteredView){return}else if(p){this.hasEnteredView=true}if(this.node.animationState){this.node.animationState.setActive("whileInView",p)}const{onViewportEnter:g,onViewportLeave:S}=this.node.getProps();const A=p?g:S;A&&A(y)},"onIntersectionUpdate");return HA(this.node.current,b,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver==="undefined")return;const{props:l,prevProps:r}=this.node;const o=["amount","margin","root"].some(YA(l,r));if(o){this.startObserver()}}unmount(){}};s(ih,"InViewFeature");let kc=ih;function YA({viewport:a={}},{viewport:l={}}={}){return r=>a[r]!==l[r]}s(YA,"hasViewportOptionChanged");const GA={inView:{Feature:kc},tap:{Feature:Kc},focus:{Feature:Zc},hover:{Feature:Xc}};const XA={layout:{ProjectionNode:mv,MeasureLayout:sv}};const ZA={...L2,...GA,...NA,...XA};const dl=s2(ZA,p2);function KA(){!wf.current&&P0();const[a]=Z.useState(yu.current);return a}s(KA,"useReducedMotion");const QA='[data-vaul-drawer], [role="dialog"]';const kA=1e3;const PA=80;const JA=s(a=>{if(!a.includes("#"))return null;let l;try{l=new URL(a,window.location.href)}catch{return null}if(l.origin!==window.location.origin||l.pathname!==window.location.pathname||l.hash.length<2){return null}return document.getElementById(decodeURIComponent(l.hash.slice(1)))},"inPageTarget");const FA=s((a,l)=>{const r=Date.now();const o=s(()=>{if(a.isConnected&&Date.now()-r{const f=l.getBoundingClientRect().top+window.scrollY-PA;window.scrollTo({top:f,behavior:"smooth"})})},"waitForClose");window.requestAnimationFrame(o)},"scrollAfterOverlay");const ce=zg.forwardRef(({to:a,newTab:l=false,target:r,rel:o,onClick:f,children:d,...b},m)=>{const y=l?r??"_blank":r;const p=l?o??"noopener noreferrer":o;const g=s(S=>{f?.(S);if(S.defaultPrevented||!a)return;const A=S.currentTarget.closest(QA);if(!A)return;const R=JA(a);if(!R)return;S.preventDefault();FA(A,R)},"handleClick");return q.jsx("a",{href:a,target:y,rel:p,ref:m,onClick:g,...b,children:d})});const WA={svgContent:null,imgUrl:null};function pv(a,l){let r=a;if(l){const o=new Set((a.match(/bfill="([^"]*)"/gi)??[]).map(f=>f.replace(/bfill="([^"]*)"/i,"$1").trim().toLowerCase()).filter(f=>f&&f!=="none"&&f!=="currentcolor"));if(o.size<=1){r=r.replace(/bfill="[^"]*"/g,'fill="currentColor"')}}r=r.replace(/]*)>/i,(o,f)=>{const d=f.replace(/s+(?:width|height|style)="[^"]*"/g,"");return``});return r}s(pv,"processSvgMarkup");async function $A(a,l){if(!/.svg(?|#|$)/i.test(a)){return{svgContent:null,imgUrl:a}}try{const r=await fetch(a);if(!r.ok)return{svgContent:null,imgUrl:a};const o=r.headers.get("Content-Type")??"";if(o.includes("image/svg+xml")){return{svgContent:pv(await r.text(),l),imgUrl:null}}return{svgContent:null,imgUrl:a}}catch{return{svgContent:null,imgUrl:a}}}s($A,"fetchLogoData");async function ml(a,l){if(!a)return void 0;if(a.svg_content){return{svgContent:pv(a.svg_content,l),imgUrl:null}}return a.url?await $A(a.url,l):void 0}s(ml,"resolveEntry");let xl=null;let ca=null;const Dg=s(a=>{if(xl)return Promise.resolve(xl);if(ca)return ca;const l=(async()=>{if(typeof wvcClient?.getLogo!=="function")return null;const r=await wvcClient.getLogo(a);if(!r)return null;const o=r.variants??{};const[f,d,b,m]=await Promise.all([ml(o.on_light,false),ml(o.on_dark,false),ml(o.symbol_on_light,false),ml(o.symbol_on_dark,false)]);const y=await ml(r,!f&&!d);if(!y)return null;return{main:y,onLight:f,onDark:d,symbolOnLight:b,symbolOnDark:m}})().then(r=>{if(r&&ca===l)xl=r;return r}).finally(()=>{if(ca===l)ca=null});ca=l;return l},"loadLogo");const Pc=new Set;const IA=s(()=>{xl=null;ca=null;Pc.forEach(a=>a())},"invalidateLogo");const Rg="wvc-logo-switch";const tE=[":root,.light{--wvc-logo-on-light:visible;--wvc-logo-on-dark:hidden}",".dark{--wvc-logo-on-light:hidden;--wvc-logo-on-dark:visible}",".wvc-logo-stack{display:grid;grid-template-rows:100%;height:100%}",".wvc-logo-stack>span{grid-area:1/1;height:100%}",".wvc-logo-on-light{visibility:var(--wvc-logo-on-light)}",".wvc-logo-on-dark{visibility:var(--wvc-logo-on-dark)}",'[data-wvc-role="logo"][data-wvc-ground="light"]{--wvc-logo-on-light:visible;--wvc-logo-on-dark:hidden}','[data-wvc-role="logo"][data-wvc-ground="dark"]{--wvc-logo-on-light:hidden;--wvc-logo-on-dark:visible}'].join("");const yv=s(()=>{if(typeof document==="undefined"||document.getElementById(Rg))return;const a=document.createElement("style");a.id=Rg;a.textContent=tE;document.head.appendChild(a)},"ensureSwitchStyle");const pl="data-wvc-ground";const eE=.5;const nE=.179;const aE=/^rgba?(s*([d.]+)[s,]+([d.]+)[s,]+([d.]+)(?:s*[,/]s*([d.]+))?s*)$/;const Og="#010203";let nu;const gv=s((a,l)=>{a.fillStyle=Og;a.fillStyle=l;if(a.fillStyle===Og)return null;a.clearRect(0,0,1,1);a.fillRect(0,0,1,1);const[r,o,f,d]=a.getImageData(0,0,1,1).data;return[r,o,f,d/255]},"paintPixel");const iE=s(()=>{if(nu!==void 0)return nu;const a=document.createElement("canvas");a.width=a.height=1;const l=a.getContext("2d",{willReadFrequently:true});const r=l&&gv(l,"rgb(10, 200, 30)");const o=r!==null&&Math.abs(r[0]-10)<=4&&Math.abs(r[1]-200)<=4&&Math.abs(r[2]-30)<=4&&r[3]===1;nu=o?l:null;return nu},"readingCanvas");const au=new Map;const lE=s(a=>{let l=au.get(a);if(l===void 0){const r=aE.exec(a);if(r){l=[Number(r[1]),Number(r[2]),Number(r[3]),r[4]?Number(r[4]):1]}else{const o=iE();l=o?gv(o,a):null}if(au.size>256)au.clear();au.set(a,l)}return l},"toRgba");const lc=s(a=>{const l=a/255;return l<=.04045?l/12.92:((l+.055)/1.055)**2.4},"linear");const sE=s(([a,l,r])=>.2126*lc(a)+.7152*lc(l)+.0722*lc(r),"luminance");const Cg=new WeakSet;const uE=s((a,l)=>{for(const r of a.getAnimations()){if(!("transitionProperty"in r)||r.transitionProperty!=="background-color"||r.playState!=="running"){continue}if(!Cg.has(r)){Cg.add(r);r.finished.then(l,l)}const o=r.effect?.getKeyframes()??[];const f=o[o.length-1]?.backgroundColor;if(typeof f==="string")return f}return void 0},"fadeTarget");const rE=s((a,l)=>{for(let r=a;r;r=r.parentElement){const o=getComputedStyle(r);if(o.backgroundImage!=="none")return void 0;const f=lE(uE(r,l)??o.backgroundColor);if(!f)return void 0;if(f[3]>=eE)return sE(f)<=nE?"dark":"light";if(r.classList.contains("dark")||r.classList.contains("light"))return void 0}return void 0},"groundBehind");const Jc=new Set;const sc=s(()=>Jc.forEach(a=>a()),"recheckAllGrounds");if(typeof window!=="undefined"){window.addEventListener("WVC_LOGO_REFRESH",IA);yv();window.addEventListener("resize",sc);new MutationObserver(a=>{a.forEach(l=>l.addedNodes.forEach(r=>{if(r instanceof HTMLLinkElement)r.addEventListener("load",sc,{once:true})}));sc()}).observe(document.head,{childList:true,subtree:true,characterData:true})}const vv={display:"block",height:"100%",width:"auto",maxWidth:"none"};function iu({rendered:a,onError:l}){if(a.svgContent){return q.jsx("span",{style:{display:"block",height:"100%"},dangerouslySetInnerHTML:{__html:a.svgContent}})}if(a.imgUrl){return q.jsx("img",{src:a.imgUrl,alt:"Logo",onError:l,style:vv})}return null}s(iu,"Version");function oE({className:a="h-10 w-auto",style:l,variant:r,kind:o="full"}){const[f,d]=Z.useState(()=>xl??{main:WA});const[b,m]=Z.useState({});const y=Z.useRef(null);Z.useEffect(()=>{yv();let N=false;const K=s(P=>{if(!N&&P){m({});d(P)}},"apply");Dg(false).then(K);const X=s(()=>{Dg(true).then(K)},"onLogoInvalidated");Pc.add(X);return()=>{N=true;Pc.delete(X)}},[]);Z.useEffect(()=>{const N=y.current?.querySelectorAll("svg");if(!N?.length)return;const K=s(()=>{N.forEach(P=>{try{const H=P.getBBox();if(H.width>0&&H.height>0){const I=Math.max(H.width,H.height)*.02;P.setAttribute("viewBox",`${H.x-I} ${H.y-I} ${H.width+I*2} ${H.height+I*2}`)}}catch{}})},"fitViewBox");const X=requestAnimationFrame(K);return()=>cancelAnimationFrame(X)},[f]);const{main:p}=f;const g=o==="symbol"&&f.symbolOnLight&&f.symbolOnDark;const S=Boolean(f.onLight||f.onDark);const A=!r&&Boolean(g||S);Z.useLayoutEffect(()=>{const N=y.current;if(!A||!N)return;let K=true;let X=0;let P=[];const H=s(()=>{if(K&&!X){X=requestAnimationFrame(()=>{X=0;ft()})}},"recheck");const I=new MutationObserver(W=>{if(W.some(yt=>yt.attributeName!==pl))H()});const ft=s(()=>{const W=[];for(let St=N.parentElement;St;St=St.parentElement)W.push(St);if(W.length!==P.length||W.some((St,qt)=>St!==P[qt])){P=W;I.disconnect();I.observe(N,{attributes:true,attributeFilter:["class","style"]});W.forEach(St=>I.observe(St,{attributes:true}))}const yt=rE(N,H);if(!yt)N.removeAttribute(pl);else if(N.getAttribute(pl)!==yt)N.setAttribute(pl,yt)},"check");ft();Jc.add(H);return()=>{K=false;cancelAnimationFrame(X);I.disconnect();Jc.delete(H);N.removeAttribute(pl)}},[A]);if(!g&&!S){if(p.svgContent){return q.jsx("span",{ref:y,className:a,style:{display:"inline-block",...l},"data-wvc-role":"logo",children:q.jsx("span",{style:{color:"var(--color-logo, currentColor)",display:"block",height:"100%"},dangerouslySetInnerHTML:{__html:p.svgContent}})})}if(p.imgUrl){return q.jsx("span",{className:a,style:{display:"inline-block",...l},"data-wvc-role":"logo",children:q.jsx("img",{src:p.imgUrl,alt:"Logo",style:vv})})}return null}const R=(g?f.symbolOnLight:f.onLight)??p;const _=(g?f.symbolOnDark:f.onDark)??p;const Y=b.light?p:R;const B=b.dark?p:_;return q.jsx("span",{ref:y,className:a,style:{display:"inline-block",...l},"data-wvc-role":"logo",children:r==="on_light"?q.jsx("span",{style:{display:"block",height:"100%"},children:q.jsx(iu,{rendered:Y,onError:s(()=>m(N=>({...N,light:true})),"onError")})}):r==="on_dark"?q.jsx("span",{style:{display:"block",height:"100%"},children:q.jsx(iu,{rendered:B,onError:s(()=>m(N=>({...N,dark:true})),"onError")})}):q.jsxs("span",{className:"wvc-logo-stack",children:[q.jsx("span",{className:"wvc-logo-on-light",children:q.jsx(iu,{rendered:Y,onError:s(()=>m(N=>({...N,light:true})),"onError")})}),q.jsx("span",{className:"wvc-logo-on-dark","aria-hidden":"true",children:q.jsx(iu,{rendered:B,onError:s(()=>m(N=>({...N,dark:true})),"onError")})})]})})}s(oE,"WvcLogo");function cE(a){if(!a)return a;const l=document.createElement("textarea");l.innerHTML=a;const r=l.value;l.remove();return r}s(cE,"decodeHtmlEntities");const bv=s(a=>{return{id:String(a.id),label:cE(String(a.title)),href:a.resolved_url,children:Array.isArray(a.children)?a.children.map(bv):void 0}},"createMenuItem");let ke=new Map;let si=new Map;const fE=s(a=>{const l=ke.get(a);if(l)return Promise.resolve(l);const r=si.get(a);if(r)return r;const o=ke;const f=wvcClient.getMenuItems({menuId:parseInt(a)}).then(d=>{const b=d.map(bv);if(o===ke)ke.set(a,b);return b}).finally(()=>{if(si.get(a)===f)si.delete(a)});si.set(a,f);return f},"loadMenuItems");const Fc=new Set;const hE=s(()=>{ke=new Map;si=new Map;Fc.forEach(a=>a())},"invalidateMenus");if(typeof window!=="undefined"){window.addEventListener("WVC_MENU_REFRESH",hE)}const Sv=Z.createContext(null);const dE=s(()=>{const a=Z.useContext(Sv);if(!a){throw new Error("useMenu must be used within a MenuProvider")}return a},"useMenu");const mE=s(({children:a,menu_id:l,...r})=>{const[o,f]=Z.useState(()=>ke.get(l)??[]);const[d,b]=Z.useState(()=>!ke.has(l));const[m,y]=Z.useState(null);const[p,g]=Z.useState(false);const S=Z.useRef(null);const A=Z.useCallback(()=>{const B="Failed to fetch menu items";y(B)},[]);const R=Z.useCallback(async B=>{if(!ke.has(l))b(true);g(true);y(null);try{const N=await fE(l);if(B?.aborted)return;f(ke.get(l)??N)}catch{if(B?.aborted)return;A()}finally{if(!B?.aborted){b(false);g(false)}}},[l,A]);Z.useEffect(()=>{S.current=new AbortController;R(S.current.signal);const B=s(()=>{R(S.current?.signal)},"onMenusInvalidated");Fc.add(B);return()=>{if(S.current){S.current.abort()}Fc.delete(B)}},[R]);const _=s(async()=>{if(S.current){S.current.abort()}S.current=new AbortController;ke.delete(l);si.delete(l);await R(S.current.signal)},"refetch");const Y={menuItems:o,loading:d,error:m,refetch:_,isRefetching:p};return q.jsx(Sv.Provider,{value:Y,children:q.jsx("div",{...r,"data-wvc-dynamic":"MenuProvider","data-wvc-menu_id":l,children:a})})},"WordpressMenuProvider");const pE=mE;function yE(){const{menuItems:a,loading:l}=dE();if(l){return q.jsxs("div",{className:"flex flex-col gap-2.5",children:[q.jsx("div",{className:"h-4 w-20 animate-pulse rounded bg-muted/40"}),q.jsx("div",{className:"h-4 w-24 animate-pulse rounded bg-muted/40"}),q.jsx("div",{className:"h-4 w-16 animate-pulse rounded bg-muted/40"})]})}if(!a||a.length===0){return q.jsxs("ul",{className:"flex flex-col gap-3 text-sm",children:[q.jsx("li",{"data-index":0,children:q.jsx(ce,{to:"#",className:"text-muted-foreground transition-colors hover:text-primary",children:"Shop"})}),q.jsx("li",{"data-index":1,children:q.jsx(ce,{to:"#",className:"text-muted-foreground transition-colors hover:text-primary",children:"About"})}),q.jsx("li",{"data-index":2,children:q.jsx(ce,{to:"#",className:"text-muted-foreground transition-colors hover:text-primary",children:"Contact"})})]})}const r=s((o,f=0)=>q.jsx("ul",{className:f===0?"flex flex-col gap-3 text-sm":"mt-2 flex flex-col gap-2 pl-3 border-l border-border/40",children:o.map((d,b)=>q.jsxs("li",{"data-index":b,children:[q.jsx(ce,{to:d.href||"#",className:"text-muted-foreground transition-colors hover:text-primary",children:d.label}),d.children&&d.children.length>0&&r(d.children,f+1)]},d.id))}),"renderItems");return r(a)}s(yE,"FooterMenuLinks");function wg(){const a=KA();const l=new Date().getFullYear();const r={hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:a?0:.06,duration:.4}}};const o={hidden:{opacity:0,y:a?0:12},visible:{opacity:1,y:0,transition:{duration:.4,ease:[.25,.1,.25,1]}}};return q.jsx("section",{id:"footer","data-nav":"dark",className:"dark bg-background text-foreground relative border-t border-border",children:q.jsxs("div",{className:"mx-auto max-w-[1280px] px-6 py-14 sm:py-16 md:px-10 lg:py-20",children:[q.jsxs(dl.div,{variants:r,initial:"hidden",whileInView:"visible",viewport:{once:true,amount:.15},className:"grid grid-cols-1 gap-10 sm:grid-cols-2 lg:grid-cols-12 lg:gap-8",children:[q.jsxs(dl.div,{variants:o,className:"lg:col-span-4 flex flex-col items-start gap-4",children:[q.jsx(ce,{to:"https://yuneng.shop",children:q.jsx(oE,{className:"h-10 md:h-11 w-auto"})}),q.jsx("p",{className:"max-w-sm text-sm leading-relaxed text-muted-foreground",children:"KOME designs intelligent kitchen appliances for global homes, blending culinary science with effortless digital controls."}),q.jsxs("div",{className:"mt-2 flex items-center gap-2 text-xs text-muted-foreground",children:[q.jsx("span",{className:"inline-block size-2 rounded-full bg-primary"}),q.jsx("span",{children:"Engineered for precision dining"})]})]}),q.jsxs(dl.div,{variants:o,className:"lg:col-span-2 flex flex-col gap-4",children:[q.jsx("h3",{className:"font-sans text-sm font-semibold tracking-wider text-foreground uppercase",children:"Explore"}),q.jsx(pE,{menu_id:"17",children:q.jsx(yE,{})})]}),q.jsxs(dl.div,{variants:o,className:"lg:col-span-3 flex flex-col gap-4",children:[q.jsx("h3",{className:"font-sans text-sm font-semibold tracking-wider text-foreground uppercase",children:"Support"}),q.jsxs("ul",{className:"flex flex-col gap-3 text-sm",children:[q.jsx("li",{"data-index":0,children:q.jsxs(ce,{to:"#",className:"inline-flex items-center gap-1.5 text-muted-foreground transition-colors hover:text-primary",children:["Track Order",q.jsx(TS,{className:"size-3.5 opacity-70"})]})}),q.jsx("li",{"data-index":1,children:q.jsx(ce,{to:"/shipping-returns/",className:"text-muted-foreground transition-colors hover:text-primary",children:"Shipping & Returns"})}),q.jsx("li",{"data-index":2,children:q.jsx(ce,{to:"/warranty-policy/",className:"text-muted-foreground transition-colors hover:text-primary",children:"Warranty Policy"})})]})]}),q.jsxs(dl.div,{variants:o,className:"lg:col-span-3 flex flex-col gap-4",children:[q.jsx("h3",{className:"font-sans text-sm font-semibold tracking-wider text-foreground uppercase",children:"Contact Us"}),q.jsxs("div",{className:"flex flex-col gap-3 text-sm text-muted-foreground",children:[q.jsxs("a",{href:"mailto:[email protected]",className:"group inline-flex items-center gap-2.5 transition-colors hover:text-primary",children:[q.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md border border-border bg-card text-primary transition-colors group-hover:border-primary/50",children:q.jsx(RS,{className:"size-3.5"})}),q.jsx("span",{className:"break-all font-medium text-foreground",children:"[email protected]"})]}),q.jsxs("div",{className:"flex items-start gap-2.5 pt-1",children:[q.jsx("span",{className:"flex size-7 shrink-0 items-center justify-center rounded-md border border-border bg-card text-primary",children:q.jsx(CS,{className:"size-3.5"})}),q.jsx("span",{className:"text-xs leading-relaxed",children:"Unionech (Hong Kong) Technology Limited, Wing Lam Building, 1G San Lau Street, Kowloon City, Kowloon"})]})]}),q.jsxs("div",{className:"pt-2",children:[q.jsx("span",{className:"text-xs font-medium tracking-wide text-muted-foreground uppercase",children:"Follow KOME"}),q.jsxs("div",{className:"mt-2.5 flex items-center gap-2",children:[q.jsx(ce,{to:"/contact/",newTab:true,"aria-label":"Follow KOME on Instagram",className:"flex size-8 items-center justify-center rounded-md border border-border bg-card text-muted-foreground transition-colors hover:border-primary hover:text-primary",children:q.jsx(MS,{className:"size-4"})}),q.jsx(ce,{to:"/contact/",newTab:true,"aria-label":"Follow KOME on Facebook",className:"flex size-8 items-center justify-center rounded-md border border-border bg-card text-muted-foreground transition-colors hover:border-primary hover:text-primary",children:q.jsx(AS,{className:"size-4"})}),q.jsx(ce,{to:"/contact/",newTab:true,"aria-label":"Follow KOME on X",className:"flex size-8 items-center justify-center rounded-md border border-border bg-card text-muted-foreground transition-colors hover:border-primary hover:text-primary",children:q.jsx(zS,{className:"size-4"})}),q.jsx(ce,{to:"/contact/",newTab:true,"aria-label":"Follow KOME on YouTube",className:"flex size-8 items-center justify-center rounded-md border border-border bg-card text-muted-foreground transition-colors hover:border-primary hover:text-primary",children:q.jsx(US,{className:"size-4"})})]})]})]})]}),q.jsxs("div",{className:"mt-12 flex flex-col items-center justify-between gap-4 border-t border-border pt-8 text-xs text-muted-foreground sm:flex-row sm:gap-6",children:[q.jsxs("p",{className:"text-center sm:text-left",children:["© ",l," Unionech (Hong Kong) Technology Limited. All rights reserved. Transacting in USD with global shipping."]}),q.jsxs("div",{className:"flex items-center gap-4",children:[q.jsx(ce,{to:"/privacy-policy/",className:"transition-colors hover:text-primary",children:"Privacy Policy"}),q.jsx("span",{className:"text-border",children:"•"}),q.jsx(ce,{to:"/terms-of-service/",className:"transition-colors hover:text-primary",children:"Terms of Service"})]})]})]})})}s(wg,"Footer");const gE="/footer";let Ul=null;function vE({children:a}){const l=oS();const r=Z.useRef(l);Z.useEffect(()=>{if(l.key===r.current.key||l.pathname!==r.current.pathname)return;const o=window.location.pathname+l.search+l.hash;if(o!==window.location.pathname+window.location.search+window.location.hash){window.history.replaceState(window.history.state,"",o)}},[l]);return a}s(vE,"AddressBarSync");function Tv(a){const{router:l="memory",basename:r,initialEntries:o,...f}=a;if(l==="memory"){return q.jsx(fS,{initialEntries:o??[gE],children:q.jsx(vE,{children:q.jsx(wg,{...f})})})}return q.jsx(mS,{basename:r,children:q.jsx(wg,{...f})})}s(Tv,"App");function bE(a,l={}){Ul=_g.createRoot(a);Ul.render(q.jsx(Tv,{...l}))}s(bE,"mount");function SE(a,l={}){Ul=_g.hydrateRoot(a,q.jsx(Tv,{...l}))}s(SE,"hydrate");function TE(){Ul?.unmount?.();Ul=null}s(TE,"unmount");if(typeof window!=="undefined")window.FooterVC={mount:bE,hydrate:SE,unmount:TE}; //# sourceMappingURL=Footer.js.map