";t3=t3.removeChild(t3.firstChild);break;case"select":t3="string"===typeof n4.is?a4.createElement("select",{is:n4.is}):a4.createElement("select");n4.multiple?t3.multiple=true:n4.size&&(t3.size=n4.size);break;default:t3="string"===typeof n4.is?a4.createElement(l2,{is:n4.is}):a4.createElement(l2)}}t3[It4]=e4;t3[ae6]=n4;t:for(a4=e4.child;null!==a4;){if(5===a4.tag||6===a4.tag)t3.appendChild(a4.stateNode);else if(4!==a4.tag&&27!==a4.tag&&null!==a4.child){a4.child.return=a4;a4=a4.child;continue}if(a4===e4)break t;for(;null===a4.sibling;){if(null===a4.return||a4.return===e4)break t;a4=a4.return}a4.sibling.return=a4.return;a4=a4.sibling}e4.stateNode=t3;t:switch(Pt3(t3,l2,n4),l2){case"button":case"input":case"select":case"textarea":t3=!!n4.autoFocus;break t;case"img":t3=true;break t;default:t3=false}t3&&ul2(e4)}}Bt4(e4);e4.flags&=-16777217;return null;case 6:if(t3&&null!=e4.stateNode)t3.memoizedProps!==n4&&ul2(e4);else{if("string"!==typeof n4&&null===e4.stateNode)throw Error(o4(166));t3=ut5.current;if(Ta2(e4)){t3=e4.stateNode;l2=e4.memoizedProps;n4=null;a4=ne5;if(null!==a4)switch(a4.tag){case 27:case 5:n4=a4.memoizedProps}t3[It4]=e4;t3=t3.nodeValue===l2||null!==n4&&true===n4.suppressHydrationWarning||vm(t3.nodeValue,l2)?true:false;t3||Pl2(e4)}else t3=hi2(t3).createTextNode(n4),t3[It4]=e4,e4.stateNode=t3}Bt4(e4);return null;case 13:n4=e4.memoizedState;if(null===t3||null!==t3.memoizedState&&null!==t3.memoizedState.dehydrated){a4=Ta2(e4);if(null!==n4&&null!==n4.dehydrated){if(null===t3){if(!a4)throw Error(o4(318));a4=e4.memoizedState;a4=null!==a4?a4.dehydrated:null;if(!a4)throw Error(o4(317));a4[It4]=e4}else Oa2(),0===(e4.flags&128)&&(e4.memoizedState=null),e4.flags|=4;Bt4(e4);a4=false}else a4=ts3(),null!==t3&&null!==t3.memoizedState&&(t3.memoizedState.hydrationErrors=a4),a4=true;if(!a4){if(e4.flags&256)return nl2(e4),e4;nl2(e4);return null}}nl2(e4);if(0!==(e4.flags&128))return e4.lanes=l2,e4;l2=null!==n4;t3=null!==t3&&null!==t3.memoizedState;if(l2){n4=e4.child;a4=null;null!==n4.alternate&&null!==n4.alternate.memoizedState&&null!==n4.alternate.memoizedState.cachePool&&(a4=n4.alternate.memoizedState.cachePool.pool);var c2=null;null!==n4.memoizedState&&null!==n4.memoizedState.cachePool&&(c2=n4.memoizedState.cachePool.pool);c2!==a4&&(n4.flags|=2048)}l2!==t3&&l2&&(e4.child.flags|=8192);ei2(e4,e4.updateQueue);Bt4(e4);return null;case 4:return le6(),null===t3&&Xr2(e4.stateNode.containerInfo),Bt4(e4),null;case 10:return el2(e4.type),Bt4(e4),null;case 19:$3(Qt5);a4=e4.memoizedState;if(null===a4)return Bt4(e4),null;n4=0!==(e4.flags&128);c2=a4.rendering;if(null===c2)if(n4)Ga2(a4,false);else{if(0!==qt5||null!==t3&&0!==(t3.flags&128))for(t3=e4.child;null!==t3;){c2=$u(t3);if(null!==c2){e4.flags|=128;Ga2(a4,false);t3=c2.updateQueue;e4.updateQueue=t3;ei2(e4,t3);e4.subtreeFlags=0;t3=l2;for(l2=e4.child;null!==l2;)$f(l2,t3),l2=l2.sibling;K5(Qt5,Qt5.current&1|2);return e4.child}t3=t3.sibling}null!==a4.tail&&qe6()>ai2&&(e4.flags|=128,n4=true,Ga2(a4,false),e4.lanes=4194304)}else{if(!n4)if(t3=$u(c2),null!==t3){if(e4.flags|=128,n4=true,t3=t3.updateQueue,e4.updateQueue=t3,ei2(e4,t3),Ga2(a4,true),null===a4.tail&&"hidden"===a4.tailMode&&!c2.alternate&&!Tt4)return Bt4(e4),null}else 2*qe6()-a4.renderingStartTime>ai2&&536870912!==l2&&(e4.flags|=128,n4=true,Ga2(a4,false),e4.lanes=4194304);a4.isBackwards?(c2.sibling=e4.child,e4.child=c2):(t3=a4.last,null!==t3?t3.sibling=c2:e4.child=c2,a4.last=c2)}if(null!==a4.tail)return e4=a4.tail,a4.rendering=e4,a4.tail=e4.sibling,a4.renderingStartTime=qe6(),e4.sibling=null,t3=Qt5.current,K5(Qt5,n4?t3&1|2:t3&1),e4;Bt4(e4);return null;case 22:case 23:return nl2(e4),Qc2(),n4=null!==e4.memoizedState,null!==t3?null!==t3.memoizedState!==n4&&(e4.flags|=8192):n4&&(e4.flags|=8192),n4?0!==(l2&536870912)&&0===(e4.flags&128)&&(Bt4(e4),e4.subtreeFlags&6&&(e4.flags|=8192)):Bt4(e4),l2=e4.updateQueue,null!==l2&&ei2(e4,l2.retryQueue),l2=null,null!==t3&&null!==t3.memoizedState&&null!==t3.memoizedState.cachePool&&(l2=t3.memoizedState.cachePool.pool),n4=null,null!==e4.memoizedState&&null!==e4.memoizedState.cachePool&&(n4=e4.memoizedState.cachePool.pool),n4!==l2&&(e4.flags|=2048),null!==t3&&$3(en3),null;case 24:return l2=null,null!==t3&&(l2=t3.memoizedState.cache),e4.memoizedState.cache!==l2&&(e4.flags|=2048),el2(Vt5),Bt4(e4),null;case 25:return null;case 30:return null}throw Error(o4(156,e4.tag))}__name(ry,"ry");i(ry,"completeWork");function oy(t3,e4){_c2(e4);switch(e4.tag){case 1:return t3=e4.flags,t3&65536?(e4.flags=t3&-65537|128,e4):null;case 3:return el2(Vt5),le6(),t3=e4.flags,0!==(t3&65536)&&0===(t3&128)?(e4.flags=t3&-65537|128,e4):null;case 26:case 27:case 5:return Be6(e4),null;case 13:nl2(e4);t3=e4.memoizedState;if(null!==t3&&null!==t3.dehydrated){if(null===e4.alternate)throw Error(o4(340));Oa2()}t3=e4.flags;return t3&65536?(e4.flags=t3&-65537|128,e4):null;case 19:return $3(Qt5),null;case 4:return le6(),null;case 10:return el2(e4.type),null;case 22:case 23:return nl2(e4),Qc2(),null!==t3&&$3(en3),t3=e4.flags,t3&65536?(e4.flags=t3&-65537|128,e4):null;case 24:return el2(Vt5),null;case 25:return null;default:return null}}__name(oy,"oy");i(oy,"unwindWork");function Ad(t3,e4){_c2(e4);switch(e4.tag){case 3:el2(Vt5);le6();break;case 26:case 27:case 5:Be6(e4);break;case 4:le6();break;case 13:nl2(e4);break;case 19:$3(Qt5);break;case 10:el2(e4.type);break;case 22:case 23:nl2(e4);Qc2();null!==t3&&$3(en3);break;case 24:el2(Vt5)}}__name(Ad,"Ad");i(Ad,"unwindInterruptedWork");function Xa2(t3,e4){try{var l2=e4.updateQueue,n4=null!==l2?l2.lastEffect:null;if(null!==n4){var a4=n4.next;l2=a4;do{if((l2.tag&t3)===t3){n4=void 0;var c2=l2.create,s=l2.inst;n4=c2();s.destroy=n4}l2=l2.next}while(l2!==a4)}}catch(m5){Dt4(e4,e4.return,m5)}}__name(Xa2,"Xa");i(Xa2,"commitHookEffectListMount");function Ol2(t3,e4,l2){try{var n4=e4.updateQueue,a4=null!==n4?n4.lastEffect:null;if(null!==a4){var c2=a4.next;n4=c2;do{if((n4.tag&t3)===t3){var s=n4.inst,m5=s.destroy;if(void 0!==m5){s.destroy=void 0;a4=e4;var b=l2,M4=m5;try{M4()}catch(L){Dt4(a4,b,L)}}}n4=n4.next}while(n4!==c2)}}catch(L){Dt4(e4,e4.return,L)}}__name(Ol2,"Ol");i(Ol2,"commitHookEffectListUnmount");function Td(t3){var e4=t3.updateQueue;if(null!==e4){var l2=t3.stateNode;try{ss3(e4,l2)}catch(n4){Dt4(t3,t3.return,n4)}}}__name(Td,"Td");i(Td,"commitClassCallbacks");function Od(t3,e4,l2){l2.props=nn3(t3.type,t3.memoizedProps);l2.state=t3.memoizedState;try{l2.componentWillUnmount()}catch(n4){Dt4(t3,e4,n4)}}__name(Od,"Od");i(Od,"safelyCallComponentWillUnmount");function Va2(t3,e4){try{var l2=t3.ref;if(null!==l2){switch(t3.tag){case 26:case 27:case 5:var n4=t3.stateNode;break;case 30:n4=t3.stateNode;break;default:n4=t3.stateNode}"function"===typeof l2?t3.refCleanup=l2(n4):l2.current=n4}}catch(a4){Dt4(t3,e4,a4)}}__name(Va2,"Va");i(Va2,"safelyAttachRef");function Ge5(t3,e4){var l2=t3.ref,n4=t3.refCleanup;if(null!==l2)if("function"===typeof n4)try{n4()}catch(a4){Dt4(t3,e4,a4)}finally{t3.refCleanup=null,t3=t3.alternate,null!=t3&&(t3.refCleanup=null)}else if("function"===typeof l2)try{l2(null)}catch(a4){Dt4(t3,e4,a4)}else l2.current=null}__name(Ge5,"Ge");i(Ge5,"safelyDetachRef");function wd(t3){var e4=t3.type,l2=t3.memoizedProps,n4=t3.stateNode;try{t:switch(e4){case"button":case"input":case"select":case"textarea":l2.autoFocus&&n4.focus();break t;case"img":l2.src?n4.src=l2.src:l2.srcSet&&(n4.srcset=l2.srcSet)}}catch(a4){Dt4(t3,t3.return,a4)}}__name(wd,"wd");i(wd,"commitHostMount");function pr2(t3,e4,l2){try{var n4=t3.stateNode;_y(n4,t3.type,l2,e4);n4[ae6]=e4}catch(a4){Dt4(t3,t3.return,a4)}}__name(pr2,"pr");i(pr2,"commitHostUpdate");function Rd(t3){return 5===t3.tag||3===t3.tag||26===t3.tag||27===t3.tag&&Nl2(t3.type)||4===t3.tag}__name(Rd,"Rd");i(Rd,"isHostParent");function br3(t3){t:for(;;){for(;null===t3.sibling;){if(null===t3.return||Rd(t3.return))return null;t3=t3.return}t3.sibling.return=t3.return;for(t3=t3.sibling;5!==t3.tag&&6!==t3.tag&&18!==t3.tag;){if(27===t3.tag&&Nl2(t3.type))continue t;if(t3.flags&2)continue t;if(null===t3.child||4===t3.tag)continue t;else t3.child.return=t3,t3=t3.child}if(!(t3.flags&2))return t3.stateNode}}__name(br3,"br");i(br3,"getHostSibling");function Sr2(t3,e4,l2){var n4=t3.tag;if(5===n4||6===n4)t3=t3.stateNode,e4?(9===l2.nodeType?l2.body:"HTML"===l2.nodeName?l2.ownerDocument.body:l2).insertBefore(t3,e4):(e4=9===l2.nodeType?l2.body:"HTML"===l2.nodeName?l2.ownerDocument.body:l2,e4.appendChild(t3),l2=l2._reactRootContainer,null!==l2&&void 0!==l2||null!==e4.onclick||(e4.onclick=mi2));else if(4!==n4&&(27===n4&&Nl2(t3.type)&&(l2=t3.stateNode,e4=null),t3=t3.child,null!==t3))for(Sr2(t3,e4,l2),t3=t3.sibling;null!==t3;)Sr2(t3,e4,l2),t3=t3.sibling}__name(Sr2,"Sr");i(Sr2,"insertOrAppendPlacementNodeIntoContainer");function li2(t3,e4,l2){var n4=t3.tag;if(5===n4||6===n4)t3=t3.stateNode,e4?l2.insertBefore(t3,e4):l2.appendChild(t3);else if(4!==n4&&(27===n4&&Nl2(t3.type)&&(l2=t3.stateNode),t3=t3.child,null!==t3))for(li2(t3,e4,l2),t3=t3.sibling;null!==t3;)li2(t3,e4,l2),t3=t3.sibling}__name(li2,"li");i(li2,"insertOrAppendPlacementNode");function Md(t3){var e4=t3.stateNode,l2=t3.memoizedProps;try{for(var n4=t3.type,a4=e4.attributes;a4.length;)e4.removeAttributeNode(a4[0]);Pt3(e4,n4,l2);e4[It4]=t3;e4[ae6]=l2}catch(c2){Dt4(t3,t3.return,c2)}}__name(Md,"Md");i(Md,"commitHostSingletonAcquisition");var il2=false,jt4=false,Er2=false,zd="function"===typeof WeakSet?WeakSet:Set,Jt5=null;function fy(t3,e4){t3=t3.containerInfo;Zr2=Si2;t3=jf(t3);if(bc2(t3)){if("selectionStart"in t3)var l2={start:t3.selectionStart,end:t3.selectionEnd};else t:{l2=(l2=t3.ownerDocument)&&l2.defaultView||window;var n4=l2.getSelection&&l2.getSelection();if(n4&&0!==n4.rangeCount){l2=n4.anchorNode;var a4=n4.anchorOffset,c2=n4.focusNode;n4=n4.focusOffset;try{l2.nodeType,c2.nodeType}catch(nt6){l2=null;break t}var s=0,m5=-1,b=-1,M4=0,L=0,j2=t3,_3=null;e:for(;;){for(var N2;;){j2!==l2||0!==a4&&3!==j2.nodeType||(m5=s+a4);j2!==c2||0!==n4&&3!==j2.nodeType||(b=s+n4);3===j2.nodeType&&(s+=j2.nodeValue.length);if(null===(N2=j2.firstChild))break;_3=j2;j2=N2}for(;;){if(j2===t3)break e;_3===l2&&++M4===a4&&(m5=s);_3===c2&&++L===n4&&(b=s);if(null!==(N2=j2.nextSibling))break;j2=_3;_3=j2.parentNode}j2=N2}l2=-1===m5||-1===b?null:{start:m5,end:b}}else l2=null}l2=l2||{start:0,end:0}}else l2=null;kr2={focusedElem:t3,selectionRange:l2};Si2=false;for(Jt5=e4;null!==Jt5;)if(e4=Jt5,t3=e4.child,0!==(e4.subtreeFlags&1024)&&null!==t3)t3.return=e4,Jt5=t3;else for(;null!==Jt5;){e4=Jt5;c2=e4.alternate;t3=e4.flags;switch(e4.tag){case 0:break;case 11:case 15:break;case 1:if(0!==(t3&1024)&&null!==c2){t3=void 0;l2=e4;a4=c2.memoizedProps;c2=c2.memoizedState;n4=l2.stateNode;try{var it5=nn3(l2.type,a4,l2.elementType===l2.type);t3=n4.getSnapshotBeforeUpdate(it5,c2);n4.__reactInternalSnapshotBeforeUpdate=t3}catch(nt6){Dt4(l2,l2.return,nt6)}}break;case 3:if(0!==(t3&1024)){if(t3=e4.stateNode.containerInfo,l2=t3.nodeType,9===l2)Wr2(t3);else if(1===l2)switch(t3.nodeName){case"HEAD":case"HTML":case"BODY":Wr2(t3);break;default:t3.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(0!==(t3&1024))throw Error(o4(163))}t3=e4.sibling;if(null!==t3){t3.return=e4.return;Jt5=t3;break}Jt5=e4.return}}__name(fy,"fy");i(fy,"commitBeforeMutationEffects");function _d(t3,e4,l2){var n4=l2.flags;switch(l2.tag){case 0:case 11:case 15:wl2(t3,l2);n4&4&&Xa2(5,l2);break;case 1:wl2(t3,l2);if(n4&4)if(t3=l2.stateNode,null===e4)try{t3.componentDidMount()}catch(s){Dt4(l2,l2.return,s)}else{var a4=nn3(l2.type,e4.memoizedProps);e4=e4.memoizedState;try{t3.componentDidUpdate(a4,e4,t3.__reactInternalSnapshotBeforeUpdate)}catch(s){Dt4(l2,l2.return,s)}}n4&64&&Td(l2);n4&512&&Va2(l2,l2.return);break;case 3:wl2(t3,l2);if(n4&64&&(t3=l2.updateQueue,null!==t3)){e4=null;if(null!==l2.child)switch(l2.child.tag){case 27:case 5:e4=l2.child.stateNode;break;case 1:e4=l2.child.stateNode}try{ss3(t3,e4)}catch(s){Dt4(l2,l2.return,s)}}break;case 27:null===e4&&n4&4&&Md(l2);case 26:case 5:wl2(t3,l2);null===e4&&n4&4&&wd(l2);n4&512&&Va2(l2,l2.return);break;case 12:wl2(t3,l2);break;case 13:wl2(t3,l2);n4&4&&Nd(t3,l2);n4&64&&(t3=l2.memoizedState,null!==t3&&(t3=t3.dehydrated,null!==t3&&(l2=by.bind(null,l2),Ly(t3,l2))));break;case 22:n4=null!==l2.memoizedState||il2;if(!n4){e4=null!==e4&&null!==e4.memoizedState||jt4;a4=il2;var c2=jt4;il2=n4;(jt4=e4)&&!c2?Rl2(t3,l2,0!==(l2.subtreeFlags&8772)):wl2(t3,l2);il2=a4;jt4=c2}break;case 30:break;default:wl2(t3,l2)}}__name(_d,"_d");i(_d,"commitLayoutEffectOnFiber");function Cd(t3){var e4=t3.alternate;null!==e4&&(t3.alternate=null,Cd(e4));t3.child=null;t3.deletions=null;t3.sibling=null;5===t3.tag&&(e4=t3.stateNode,null!==e4&&tc2(e4));t3.stateNode=null;t3.return=null;t3.dependencies=null;t3.memoizedProps=null;t3.memoizedState=null;t3.pendingProps=null;t3.stateNode=null;t3.updateQueue=null}__name(Cd,"Cd");i(Cd,"detachFiberAfterEffects");var Ut4=null,ce5=false;function cl2(t3,e4,l2){for(l2=l2.child;null!==l2;)Dd(t3,e4,l2),l2=l2.sibling}__name(cl2,"cl");i(cl2,"recursivelyTraverseDeletionEffects");function Dd(t3,e4,l2){if(oe4&&"function"===typeof oe4.onCommitFiberUnmount)try{oe4.onCommitFiberUnmount(fa2,l2)}catch(c2){}switch(l2.tag){case 26:jt4||Ge5(l2,e4);cl2(t3,e4,l2);l2.memoizedState?l2.memoizedState.count--:l2.stateNode&&(l2=l2.stateNode,l2.parentNode.removeChild(l2));break;case 27:jt4||Ge5(l2,e4);var n4=Ut4,a4=ce5;Nl2(l2.type)&&(Ut4=l2.stateNode,ce5=false);cl2(t3,e4,l2);Pa2(l2.stateNode);Ut4=n4;ce5=a4;break;case 5:jt4||Ge5(l2,e4);case 6:n4=Ut4;a4=ce5;Ut4=null;cl2(t3,e4,l2);Ut4=n4;ce5=a4;if(null!==Ut4)if(ce5)try{(9===Ut4.nodeType?Ut4.body:"HTML"===Ut4.nodeName?Ut4.ownerDocument.body:Ut4).removeChild(l2.stateNode)}catch(c2){Dt4(l2,e4,c2)}else try{Ut4.removeChild(l2.stateNode)}catch(c2){Dt4(l2,e4,c2)}break;case 18:null!==Ut4&&(ce5?(t3=Ut4,Sm(9===t3.nodeType?t3.body:"HTML"===t3.nodeName?t3.ownerDocument.body:t3,l2.stateNode),iu2(t3)):Sm(Ut4,l2.stateNode));break;case 4:n4=Ut4;a4=ce5;Ut4=l2.stateNode.containerInfo;ce5=true;cl2(t3,e4,l2);Ut4=n4;ce5=a4;break;case 0:case 11:case 14:case 15:jt4||Ol2(2,l2,e4);jt4||Ol2(4,l2,e4);cl2(t3,e4,l2);break;case 1:jt4||(Ge5(l2,e4),n4=l2.stateNode,"function"===typeof n4.componentWillUnmount&&Od(l2,e4,n4));cl2(t3,e4,l2);break;case 21:cl2(t3,e4,l2);break;case 22:jt4=(n4=jt4)||null!==l2.memoizedState;cl2(t3,e4,l2);jt4=n4;break;default:cl2(t3,e4,l2)}}__name(Dd,"Dd");i(Dd,"commitDeletionEffectsOnFiber");function Nd(t3,e4){if(null===e4.memoizedState&&(t3=e4.alternate,null!==t3&&(t3=t3.memoizedState,null!==t3&&(t3=t3.dehydrated,null!==t3))))try{iu2(t3)}catch(l2){Dt4(e4,e4.return,l2)}}__name(Nd,"Nd");i(Nd,"commitSuspenseHydrationCallbacks");function sy(t3){switch(t3.tag){case 13:case 19:var e4=t3.stateNode;null===e4&&(e4=t3.stateNode=new zd);return e4;case 22:return t3=t3.stateNode,e4=t3._retryCache,null===e4&&(e4=t3._retryCache=new zd),e4;default:throw Error(o4(435,t3.tag))}}__name(sy,"sy");i(sy,"getRetryCache");function xr2(t3,e4){var l2=sy(t3);e4.forEach(function(n4){var a4=Sy.bind(null,t3,n4);l2.has(n4)||(l2.add(n4),n4.then(a4,a4))})}__name(xr2,"xr");i(xr2,"attachSuspenseRetryListeners");function me4(t3,e4){var l2=e4.deletions;if(null!==l2)for(var n4=0;n4 title"));Pt3(c2,n4,l2);c2[It4]=t3;kt3(c2);n4=c2;break t;case"link":var s=Mm("link","href",a4).get(n4+(l2.href||""));if(s){for(var m5=0;m5Ct3&&(s=Ct3,Ct3=nt6,nt6=s);var T2=qf(m5,nt6),x4=qf(m5,Ct3);if(T2&&x4&&(1!==N2.rangeCount||N2.anchorNode!==T2.node||N2.anchorOffset!==T2.offset||N2.focusNode!==x4.node||N2.focusOffset!==x4.offset)){var R5=j2.createRange();R5.setStart(T2.node,T2.offset);N2.removeAllRanges();nt6>Ct3?(N2.addRange(R5),N2.extend(x4.node,x4.offset)):(R5.setEnd(x4.node,x4.offset),N2.addRange(R5))}}}}j2=[];for(N2=m5;N2=N2.parentNode;)1===N2.nodeType&&j2.push({element:N2,left:N2.scrollLeft,top:N2.scrollTop});"function"===typeof m5.focus&&m5.focus();for(m5=0;m5l2?32:l2;C2.T=null;l2=_r2;_r2=null;var c2=Cl2,s=Vn3;Ft4=0;Xn4=Cl2=null;Vn3=0;if(0!==(wt4&6))throw Error(o4(331));var m5=wt4;wt4|=4;Yd(c2.current);Bd(c2,c2.current,s,l2);wt4=m5;Wa2(0,false);if(oe4&&"function"===typeof oe4.onPostCommitFiberRoot)try{oe4.onPostCommitFiberRoot(fa2,c2)}catch(b){}return true}finally{V.p=a4,C2.T=n4,em(t3,e4)}}__name(lm,"lm");i(lm,"flushPassiveEffects");function nm(t3,e4,l2){e4=xe4(l2,e4);e4=or3(t3.stateNode,e4,2);t3=El2(t3,e4,2);null!==t3&&(da2(t3,2),Ve5(t3))}__name(nm,"nm");i(nm,"captureCommitPhaseErrorOnRoot");function Dt4(t3,e4,l2){if(3===t3.tag)nm(t3,t3,l2);else for(;null!==e4;){if(3===e4.tag){nm(e4,t3,l2);break}else if(1===e4.tag){var n4=e4.stateNode;if("function"===typeof e4.type.getDerivedStateFromError||"function"===typeof n4.componentDidCatch&&(null===_l2||!_l2.has(n4))){t3=xe4(l2,t3);l2=cd(2);n4=El2(e4,l2,2);null!==n4&&(rd(l2,n4,e4,t3),da2(n4,2),Ve5(n4));break}}e4=e4.return}}__name(Dt4,"Dt");i(Dt4,"captureCommitPhaseError");function Hr2(t3,e4,l2){var n4=t3.pingCache;if(null===n4){n4=t3.pingCache=new my;var a4=new Set;n4.set(e4,a4)}else a4=n4.get(e4),void 0===a4&&(a4=new Set,n4.set(e4,a4));a4.has(l2)||(Or2=true,a4.add(l2),t3=py.bind(null,t3,e4,l2),e4.then(t3,t3))}__name(Hr2,"Hr");i(Hr2,"attachPingListener");function py(t3,e4,l2){var n4=t3.pingCache;null!==n4&&n4.delete(e4);t3.pingedLanes|=t3.suspendedLanes&l2;t3.warmLanes&=~l2;Nt4===t3&&(bt6&l2)===l2&&(4===qt5||3===qt5&&(bt6&62914560)===bt6&&300>qe6()-Mr2?0===(wt4&2)&&Qn4(t3,0):wr2|=l2,Gn4===bt6&&(Gn4=0));Ve5(t3)}__name(py,"py");i(py,"pingSuspendedRoot");function am(t3,e4){0===e4&&(e4=Io2());t3=wn3(t3,e4);null!==t3&&(da2(t3,e4),Ve5(t3))}__name(am,"am");i(am,"retryTimedOutBoundary");function by(t3){var e4=t3.memoizedState,l2=0;null!==e4&&(l2=e4.retryLane);am(t3,l2)}__name(by,"by");i(by,"retryDehydratedSuspenseBoundary");function Sy(t3,e4){var l2=0;switch(t3.tag){case 13:var n4=t3.stateNode;var a4=t3.memoizedState;null!==a4&&(l2=a4.retryLane);break;case 19:n4=t3.stateNode;break;case 22:n4=t3.stateNode._retryCache;break;default:throw Error(o4(314))}null!==n4&&n4.delete(e4);am(t3,l2)}__name(Sy,"Sy");i(Sy,"resolveRetryWakeable");function Ey(t3,e4){return hl2(t3,e4)}__name(Ey,"Ey");i(Ey,"scheduleCallback$1");var oi2=null,kn3=null,Br2=false,fi2=false,Lr2=false,cn3=0;function Ve5(t3){t3!==kn3&&null===t3.next&&(null===kn3?oi2=kn3=t3:kn3=kn3.next=t3);fi2=true;Br2||(Br2=true,Ay())}__name(Ve5,"Ve");i(Ve5,"ensureRootIsScheduled");function Wa2(t3,e4){if(!Lr2&&fi2){Lr2=true;do{var l2=false;for(var n4=oi2;null!==n4;){if(0!==t3){var a4=n4.pendingLanes;if(0===a4)var c2=0;else{var s=n4.suspendedLanes,m5=n4.pingedLanes;c2=(1<<31-fe4(42|t3)+1)-1;c2&=a4&~(s&~m5);c2=c2&201326741?c2&201326741|1:c2?c2|2:0}0!==c2&&(l2=true,rm(n4,c2))}else c2=bt6,c2=gu(n4,n4===Nt4?c2:0,null!==n4.cancelPendingCommit||-1!==n4.timeoutHandle),0===(c2&3)||sa2(n4,c2)||(l2=true,rm(n4,c2));n4=n4.next}}while(l2);Lr2=false}}__name(Wa2,"Wa");i(Wa2,"flushSyncWorkAcrossRoots_impl");function xy(){um()}__name(xy,"xy");i(xy,"processRootScheduleInImmediateTask");function um(){fi2=Br2=false;var t3=0;0!==cn3&&(Cy()&&(t3=cn3),cn3=0);for(var e4=qe6(),l2=null,n4=oi2;null!==n4;){var a4=n4.next,c2=im(n4,e4);if(0===c2)n4.next=null,null===l2?oi2=a4:l2.next=a4,null===a4&&(kn3=l2);else if(l2=n4,0!==t3||0!==(c2&3))fi2=true;n4=a4}Wa2(t3)}__name(um,"um");i(um,"processRootScheduleInMicrotask");function im(t3,e4){for(var l2=t3.suspendedLanes,n4=t3.pingedLanes,a4=t3.expirationTimes,c2=t3.pendingLanes&-62914561;0n4){l2=n4;var s=t3.ownerDocument;l2&1&&Pa2(s.documentElement);l2&2&&Pa2(s.body);if(l2&4)for(l2=s.head,Pa2(l2),s=l2.firstChild;s;){var m5=s.nextSibling,b=s.nodeName;s[ma2]||"SCRIPT"===b||"STYLE"===b||"LINK"===b&&"stylesheet"===s.rel.toLowerCase()||l2.removeChild(s);s=m5}}if(0===a4){t3.removeChild(c2);iu2(e4);return}a4--}else"$"===l2||"$?"===l2||"$!"===l2?a4++:n4=l2.charCodeAt(0)-48;else n4=0;l2=c2}while(l2);iu2(e4)}__name(Sm,"Sm");i(Sm,"clearSuspenseBoundary");function Wr2(t3){var e4=t3.firstChild;e4&&10===e4.nodeType&&(e4=e4.nextSibling);for(;e4;){var l2=e4;e4=e4.nextSibling;switch(l2.nodeName){case"HTML":case"HEAD":case"BODY":Wr2(l2);tc2(l2);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===l2.rel.toLowerCase())continue}t3.removeChild(l2)}}__name(Wr2,"Wr");i(Wr2,"clearContainerSparingly");function Hy(t3,e4,l2,n4){for(;1===t3.nodeType;){var a4=l2;if(t3.nodeName.toLowerCase()!==e4.toLowerCase()){if(!n4&&("INPUT"!==t3.nodeName||"hidden"!==t3.type))break}else if(!n4)if("input"===e4&&"hidden"===t3.type){var c2=null==a4.name?null:""+a4.name;if("hidden"===a4.type&&t3.getAttribute("name")===c2)return t3}else return t3;else if(!t3[ma2])switch(e4){case"meta":if(!t3.hasAttribute("itemprop"))break;return t3;case"link":c2=t3.getAttribute("rel");if("stylesheet"===c2&&t3.hasAttribute("data-precedence"))break;else if(c2!==a4.rel||t3.getAttribute("href")!==(null==a4.href||""===a4.href?null:a4.href)||t3.getAttribute("crossorigin")!==(null==a4.crossOrigin?null:a4.crossOrigin)||t3.getAttribute("title")!==(null==a4.title?null:a4.title))break;return t3;case"style":if(t3.hasAttribute("data-precedence"))break;return t3;case"script":c2=t3.getAttribute("src");if((c2!==(null==a4.src?null:a4.src)||t3.getAttribute("type")!==(null==a4.type?null:a4.type)||t3.getAttribute("crossorigin")!==(null==a4.crossOrigin?null:a4.crossOrigin))&&c2&&t3.hasAttribute("async")&&!t3.hasAttribute("itemprop"))break;return t3;default:return t3}t3=Ce5(t3.nextSibling);if(null===t3)break}return null}__name(Hy,"Hy");i(Hy,"canHydrateInstance");function By(t3,e4,l2){if(""===e4)return null;for(;3!==t3.nodeType;){if((1!==t3.nodeType||"INPUT"!==t3.nodeName||"hidden"!==t3.type)&&!l2)return null;t3=Ce5(t3.nextSibling);if(null===t3)return null}return t3}__name(By,"By");i(By,"canHydrateTextInstance");function $r2(t3){return"$!"===t3.data||"$?"===t3.data&&"complete"===t3.ownerDocument.readyState}__name($r2,"$r");i($r2,"isSuspenseInstanceFallback");function Ly(t3,e4){var l2=t3.ownerDocument;if("$?"!==t3.data||"complete"===l2.readyState)e4();else{var n4=i(function(){e4();l2.removeEventListener("DOMContentLoaded",n4)},"listener");l2.addEventListener("DOMContentLoaded",n4);t3._reactRetry=n4}}__name(Ly,"Ly");i(Ly,"registerSuspenseInstanceRetry");function Ce5(t3){for(;null!=t3;t3=t3.nextSibling){var e4=t3.nodeType;if(1===e4||3===e4)break;if(8===e4){e4=t3.data;if("$"===e4||"$!"===e4||"$?"===e4||"F!"===e4||"F"===e4)break;if("/$"===e4)return null}}return t3}__name(Ce5,"Ce");i(Ce5,"getNextHydratable");var Fr2=null;function Em(t3){t3=t3.previousSibling;for(var e4=0;t3;){if(8===t3.nodeType){var l2=t3.data;if("$"===l2||"$!"===l2||"$?"===l2){if(0===e4)return t3;e4--}else"/$"===l2&&e4++}t3=t3.previousSibling}return null}__name(Em,"Em");i(Em,"getParentSuspenseInstance");function xm(t3,e4,l2){e4=hi2(l2);switch(t3){case"html":t3=e4.documentElement;if(!t3)throw Error(o4(452));return t3;case"head":t3=e4.head;if(!t3)throw Error(o4(453));return t3;case"body":t3=e4.body;if(!t3)throw Error(o4(454));return t3;default:throw Error(o4(451))}}__name(xm,"xm");i(xm,"resolveSingletonInstance");function Pa2(t3){for(var e4=t3.attributes;e4.length;)t3.removeAttributeNode(e4[0]);tc2(t3)}__name(Pa2,"Pa");i(Pa2,"releaseSingletonInstance");var Me5=new Map,Am=new Set;function vi2(t3){return"function"===typeof t3.getRootNode?t3.getRootNode():9===t3.nodeType?t3:t3.ownerDocument}__name(vi2,"vi");i(vi2,"getHoistableRoot");var ol2=V.d;V.d={f:qy,r:Yy,D:jy,C:Gy,L:Xy,m:Vy,X:Zy,S:Qy,M:ky};function qy(){var t3=ol2.f(),e4=ii2();return t3||e4}__name(qy,"qy");i(qy,"flushSyncWork");function Yy(t3){var e4=hn3(t3);null!==e4&&5===e4.tag&&"form"===e4.type?Vs2(e4):ol2.r(t3)}__name(Yy,"Yy");i(Yy,"requestFormReset");var Jn4="undefined"===typeof document?null:document;function Tm(t3,e4,l2){var n4=Jn4;if(n4&&"string"===typeof e4&&e4){var a4=Ee3(e4);a4='link[rel="'+t3+'"][href="'+a4+'"]';"string"===typeof l2&&(a4+='[crossorigin="'+l2+'"]');Am.has(a4)||(Am.add(a4),t3={rel:t3,crossOrigin:l2,href:e4},null===n4.querySelector(a4)&&(e4=n4.createElement("link"),Pt3(e4,"link",t3),kt3(e4),n4.head.appendChild(e4)))}}__name(Tm,"Tm");i(Tm,"preconnectAs");function jy(t3){ol2.D(t3);Tm("dns-prefetch",t3,null)}__name(jy,"jy");i(jy,"prefetchDNS");function Gy(t3,e4){ol2.C(t3,e4);Tm("preconnect",t3,e4)}__name(Gy,"Gy");i(Gy,"preconnect");function Xy(t3,e4,l2){ol2.L(t3,e4,l2);var n4=Jn4;if(n4&&t3&&e4){var a4='link[rel="preload"][as="'+Ee3(e4)+'"]';"image"===e4?l2&&l2.imageSrcSet?(a4+='[imagesrcset="'+Ee3(l2.imageSrcSet)+'"]',"string"===typeof l2.imageSizes&&(a4+='[imagesizes="'+Ee3(l2.imageSizes)+'"]')):a4+='[href="'+Ee3(t3)+'"]':a4+='[href="'+Ee3(t3)+'"]';var c2=a4;switch(e4){case"style":c2=Wn4(t3);break;case"script":c2=$n4(t3)}Me5.has(c2)||(t3=S3({rel:"preload",href:"image"===e4&&l2&&l2.imageSrcSet?void 0:t3,as:e4},l2),Me5.set(c2,t3),null!==n4.querySelector(a4)||"style"===e4&&n4.querySelector(Ia2(c2))||"script"===e4&&n4.querySelector(tu2(c2))||(e4=n4.createElement("link"),Pt3(e4,"link",t3),kt3(e4),n4.head.appendChild(e4)))}}__name(Xy,"Xy");i(Xy,"preload");function Vy(t3,e4){ol2.m(t3,e4);var l2=Jn4;if(l2&&t3){var n4=e4&&"string"===typeof e4.as?e4.as:"script",a4='link[rel="modulepreload"][as="'+Ee3(n4)+'"][href="'+Ee3(t3)+'"]',c2=a4;switch(n4){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c2=$n4(t3)}if(!Me5.has(c2)&&(t3=S3({rel:"modulepreload",href:t3},e4),Me5.set(c2,t3),null===l2.querySelector(a4))){switch(n4){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l2.querySelector(tu2(c2)))return}n4=l2.createElement("link");Pt3(n4,"link",t3);kt3(n4);l2.head.appendChild(n4)}}}__name(Vy,"Vy");i(Vy,"preloadModule");function Qy(t3,e4,l2){ol2.S(t3,e4,l2);var n4=Jn4;if(n4&&t3){var a4=vn3(n4).hoistableStyles,c2=Wn4(t3);e4=e4||"default";var s=a4.get(c2);if(!s){var m5={loading:0,preload:null};if(s=n4.querySelector(Ia2(c2)))m5.loading=5;else{t3=S3({rel:"stylesheet",href:t3,"data-precedence":e4},l2);(l2=Me5.get(c2))&&Pr2(t3,l2);var b=s=n4.createElement("link");kt3(b);Pt3(b,"link",t3);b._p=new Promise(function(M4,L){b.onload=M4;b.onerror=L});b.addEventListener("load",function(){m5.loading|=1});b.addEventListener("error",function(){m5.loading|=2});m5.loading|=4;gi2(s,e4,n4)}s={type:"stylesheet",instance:s,count:1,state:m5};a4.set(c2,s)}}}__name(Qy,"Qy");i(Qy,"preinitStyle");function Zy(t3,e4){ol2.X(t3,e4);var l2=Jn4;if(l2&&t3){var n4=vn3(l2).hoistableScripts,a4=$n4(t3),c2=n4.get(a4);c2||(c2=l2.querySelector(tu2(a4)),c2||(t3=S3({src:t3,async:true},e4),(e4=Me5.get(a4))&&Ir2(t3,e4),c2=l2.createElement("script"),kt3(c2),Pt3(c2,"link",t3),l2.head.appendChild(c2)),c2={type:"script",instance:c2,count:1,state:null},n4.set(a4,c2))}}__name(Zy,"Zy");i(Zy,"preinitScript");function ky(t3,e4){ol2.M(t3,e4);var l2=Jn4;if(l2&&t3){var n4=vn3(l2).hoistableScripts,a4=$n4(t3),c2=n4.get(a4);c2||(c2=l2.querySelector(tu2(a4)),c2||(t3=S3({src:t3,async:true,type:"module"},e4),(e4=Me5.get(a4))&&Ir2(t3,e4),c2=l2.createElement("script"),kt3(c2),Pt3(c2,"link",t3),l2.head.appendChild(c2)),c2={type:"script",instance:c2,count:1,state:null},n4.set(a4,c2))}}__name(ky,"ky");i(ky,"preinitModuleScript");function Om(t3,e4,l2,n4){var a4=(a4=ut5.current)?vi2(a4):null;if(!a4)throw Error(o4(446));switch(t3){case"meta":case"title":return null;case"style":return"string"===typeof l2.precedence&&"string"===typeof l2.href?(e4=Wn4(l2.href),l2=vn3(a4).hoistableStyles,n4=l2.get(e4),n4||(n4={type:"style",instance:null,count:0,state:null},l2.set(e4,n4)),n4):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===l2.rel&&"string"===typeof l2.href&&"string"===typeof l2.precedence){t3=Wn4(l2.href);var c2=vn3(a4).hoistableStyles,s=c2.get(t3);s||(a4=a4.ownerDocument||a4,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c2.set(t3,s),(c2=a4.querySelector(Ia2(t3)))&&!c2._p&&(s.instance=c2,s.state.loading=5),Me5.has(t3)||(l2={rel:"preload",as:"style",href:l2.href,crossOrigin:l2.crossOrigin,integrity:l2.integrity,media:l2.media,hrefLang:l2.hrefLang,referrerPolicy:l2.referrerPolicy},Me5.set(t3,l2),c2||Ky(a4,t3,l2,s.state)));if(e4&&null===n4)throw Error(o4(528,""));return s}if(e4&&null!==n4)throw Error(o4(529,""));return null;case"script":return e4=l2.async,l2=l2.src,"string"===typeof l2&&e4&&"function"!==typeof e4&&"symbol"!==typeof e4?(e4=$n4(l2),l2=vn3(a4).hoistableScripts,n4=l2.get(e4),n4||(n4={type:"script",instance:null,count:0,state:null},l2.set(e4,n4)),n4):{type:"void",instance:null,count:0,state:null};default:throw Error(o4(444,t3))}}__name(Om,"Om");i(Om,"getResource");function Wn4(t3){return'href="'+Ee3(t3)+'"'}__name(Wn4,"Wn");i(Wn4,"getStyleKey");function Ia2(t3){return'link[rel="stylesheet"]['+t3+"]"}__name(Ia2,"Ia");i(Ia2,"getStylesheetSelectorFromKey");function wm(t3){return S3({},t3,{"data-precedence":t3.precedence,precedence:null})}__name(wm,"wm");i(wm,"stylesheetPropsFromRawProps");function Ky(t3,e4,l2,n4){t3.querySelector('link[rel="preload"][as="style"]['+e4+"]")?n4.loading=1:(e4=t3.createElement("link"),n4.preload=e4,e4.addEventListener("load",function(){return n4.loading|=1}),e4.addEventListener("error",function(){return n4.loading|=2}),Pt3(e4,"link",l2),kt3(e4),t3.head.appendChild(e4))}__name(Ky,"Ky");i(Ky,"preloadStylesheet");function $n4(t3){return'[src="'+Ee3(t3)+'"]'}__name($n4,"$n");i($n4,"getScriptKey");function tu2(t3){return"script[async]"+t3}__name(tu2,"tu");i(tu2,"getScriptSelectorFromKey");function Rm(t3,e4,l2){e4.count++;if(null===e4.instance)switch(e4.type){case"style":var n4=t3.querySelector('style[data-href~="'+Ee3(l2.href)+'"]');if(n4)return e4.instance=n4,kt3(n4),n4;var a4=S3({},l2,{"data-href":l2.href,"data-precedence":l2.precedence,href:null,precedence:null});n4=(t3.ownerDocument||t3).createElement("style");kt3(n4);Pt3(n4,"style",a4);gi2(n4,l2.precedence,t3);return e4.instance=n4;case"stylesheet":a4=Wn4(l2.href);var c2=t3.querySelector(Ia2(a4));if(c2)return e4.state.loading|=4,e4.instance=c2,kt3(c2),c2;n4=wm(l2);(a4=Me5.get(a4))&&Pr2(n4,a4);c2=(t3.ownerDocument||t3).createElement("link");kt3(c2);var s=c2;s._p=new Promise(function(m5,b){s.onload=m5;s.onerror=b});Pt3(c2,"link",n4);e4.state.loading|=4;gi2(c2,l2.precedence,t3);return e4.instance=c2;case"script":c2=$n4(l2.src);if(a4=t3.querySelector(tu2(c2)))return e4.instance=a4,kt3(a4),a4;n4=l2;if(a4=Me5.get(c2))n4=S3({},l2),Ir2(n4,a4);t3=t3.ownerDocument||t3;a4=t3.createElement("script");kt3(a4);Pt3(a4,"link",n4);t3.head.appendChild(a4);return e4.instance=a4;case"void":return null;default:throw Error(o4(443,e4.type))}else"stylesheet"===e4.type&&0===(e4.state.loading&4)&&(n4=e4.instance,e4.state.loading|=4,gi2(n4,l2.precedence,t3));return e4.instance}__name(Rm,"Rm");i(Rm,"acquireResource");function gi2(t3,e4,l2){for(var n4=l2.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a4=n4.length?n4[n4.length-1]:null,c2=a4,s=0;s title"):null)}__name(zm,"zm");i(zm,"mountHoistable");function Jy(t3,e4,l2){if(1===l2||null!=e4.itemProp)return false;switch(t3){case"meta":case"title":return true;case"style":if("string"!==typeof e4.precedence||"string"!==typeof e4.href||""===e4.href)break;return true;case"link":if("string"!==typeof e4.rel||"string"!==typeof e4.href||""===e4.href||e4.onLoad||e4.onError)break;switch(e4.rel){case"stylesheet":return t3=e4.disabled,"string"===typeof e4.precedence&&null==t3;default:return true}case"script":if(e4.async&&"function"!==typeof e4.async&&"symbol"!==typeof e4.async&&!e4.onLoad&&!e4.onError&&e4.src&&"string"===typeof e4.src)return true}return false}__name(Jy,"Jy");i(Jy,"isHostHoistableType");function _m(t3){return"stylesheet"===t3.type&&0===(t3.state.loading&3)?false:true}__name(_m,"_m");i(_m,"preloadResource");var eu2=null;function Wy(){}__name(Wy,"Wy");i(Wy,"noop");function $y(t3,e4,l2){if(null===eu2)throw Error(o4(475));var n4=eu2;if("stylesheet"===e4.type&&("string"!==typeof l2.media||false!==matchMedia(l2.media).matches)&&0===(e4.state.loading&4)){if(null===e4.instance){var a4=Wn4(l2.href),c2=t3.querySelector(Ia2(a4));if(c2){t3=c2._p;null!==t3&&"object"===typeof t3&&"function"===typeof t3.then&&(n4.count++,n4=pi2.bind(n4),t3.then(n4,n4));e4.state.loading|=4;e4.instance=c2;kt3(c2);return}c2=t3.ownerDocument||t3;l2=wm(l2);(a4=Me5.get(a4))&&Pr2(l2,a4);c2=c2.createElement("link");kt3(c2);var s=c2;s._p=new Promise(function(m5,b){s.onload=m5;s.onerror=b});Pt3(c2,"link",l2);e4.instance=c2}null===n4.stylesheets&&(n4.stylesheets=new Map);n4.stylesheets.set(e4,t3);(t3=e4.state.preload)&&0===(e4.state.loading&3)&&(n4.count++,e4=pi2.bind(n4),t3.addEventListener("load",e4),t3.addEventListener("error",e4))}}__name($y,"$y");i($y,"suspendResource");function Fy(){if(null===eu2)throw Error(o4(475));var t3=eu2;t3.stylesheets&&0===t3.count&&to3(t3,t3.stylesheets);return 0S3(w,typeof w==="string"?null:w.state,H2===0?"default":void 0));let h2=p3(f3==null?d2.length-1:f3);let v3=De.Pop;let y3=null;function p3(w){return Math.min(Math.max(w,0),d2.length-1)}__name(p3,"p");i(p3,"clampIndex");function g3(){return d2[h2]}__name(g3,"g");i(g3,"getCurrentLocation");function S3(w,H2,O5){if(H2===void 0){H2=null}let U3=qi(d2?g3().pathname:"/",w,H2,O5);S0(U3.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(w));return U3}__name(S3,"S");i(S3,"createMemoryLocation");function A(w){return typeof w==="string"?w:Lo(w)}__name(A,"A");i(A,"createHref");let D2={get index(){return h2},get action(){return v3},get location(){return g3()},createHref:A,createURL(w){return new URL(A(w),"http://localhost")},encodeLocation(w){let H2=typeof w==="string"?qo(w):w;return{pathname:H2.pathname||"",search:H2.search||"",hash:H2.hash||""}},push(w,H2){v3=De.Push;let O5=S3(w,H2);h2+=1;d2.splice(h2,d2.length,O5);if(o4&&y3){y3({action:v3,location:O5,delta:1})}},replace(w,H2){v3=De.Replace;let O5=S3(w,H2);d2[h2]=O5;if(o4&&y3){y3({action:v3,location:O5,delta:0})}},go(w){v3=De.Pop;let H2=p3(h2+w);let O5=d2[H2];h2=H2;if(y3){y3({action:v3,location:O5,delta:w})}},listen(w){y3=w;return()=>{y3=null}}};return D2}__name(p0,"p0");i(p0,"createMemoryHistory");function b0(u6){if(u6===void 0){u6={}}function r4(o4,d2){let{pathname:h2,search:v3,hash:y3}=o4.location;return qi("",{pathname:h2,search:v3,hash:y3},d2.state&&d2.state.usr||null,d2.state&&d2.state.key||"default")}__name(r4,"r");i(r4,"createBrowserLocation");function f3(o4,d2){return typeof d2==="string"?d2:Lo(d2)}__name(f3,"f");i(f3,"createBrowserHref");return x0(r4,f3,null,u6)}__name(b0,"b0");i(b0,"createBrowserHistory");function Lh(u6,r4){if(u6===false||u6===null||typeof u6==="undefined"){throw new Error(r4)}}__name(Lh,"Lh");i(Lh,"invariant");function S0(u6,r4){if(!u6){if(typeof console!=="undefined")console.warn(r4);try{throw new Error(r4)}catch(f3){}}}__name(S0,"S0");i(S0,"warning");function E0(){return Math.random().toString(36).substr(2,8)}__name(E0,"E0");i(E0,"createKey");function Im(u6,r4){return{usr:u6.state,key:u6.key,idx:r4}}__name(Im,"Im");i(Im,"getHistoryState");function qi(u6,r4,f3,o4){if(f3===void 0){f3=null}let d2=Li({pathname:typeof u6==="string"?u6:u6.pathname,search:"",hash:""},typeof r4==="string"?qo(r4):r4,{state:f3,key:r4&&r4.key||o4||E0()});return d2}__name(qi,"qi");i(qi,"createLocation");function Lo(u6){let{pathname:r4="/",search:f3="",hash:o4=""}=u6;if(f3&&f3!=="?")r4+=f3.charAt(0)==="?"?f3:"?"+f3;if(o4&&o4!=="#")r4+=o4.charAt(0)==="#"?o4:"#"+o4;return r4}__name(Lo,"Lo");i(Lo,"createPath");function qo(u6){let r4={};if(u6){let f3=u6.indexOf("#");if(f3>=0){r4.hash=u6.substr(f3);u6=u6.substr(0,f3)}let o4=u6.indexOf("?");if(o4>=0){r4.search=u6.substr(o4);u6=u6.substr(0,o4)}if(u6){r4.pathname=u6}}return r4}__name(qo,"qo");i(qo,"parsePath");function x0(u6,r4,f3,o4){if(o4===void 0){o4={}}let{window:d2=document.defaultView,v5Compat:h2=false}=o4;let v3=d2.history;let y3=De.Pop;let p3=null;let g3=S3();if(g3==null){g3=0;v3.replaceState(Li({},v3.state,{idx:g3}),"")}function S3(){let U3=v3.state||{idx:null};return U3.idx}__name(S3,"S");i(S3,"getIndex");function A(){y3=De.Pop;let U3=S3();let Y5=U3==null?null:U3-g3;g3=U3;if(p3){p3({action:y3,location:O5.location,delta:Y5})}}__name(A,"A");i(A,"handlePop");function D2(U3,Y5){y3=De.Push;let Q4=qi(O5.location,U3,Y5);g3=S3()+1;let Z4=Im(Q4,g3);let k4=O5.createHref(Q4);try{v3.pushState(Z4,"",k4)}catch(X5){if(X5 instanceof DOMException&&X5.name==="DataCloneError"){throw X5}d2.location.assign(k4)}if(h2&&p3){p3({action:y3,location:O5.location,delta:1})}}__name(D2,"D");i(D2,"push");function w(U3,Y5){y3=De.Replace;let Q4=qi(O5.location,U3,Y5);g3=S3();let Z4=Im(Q4,g3);let k4=O5.createHref(Q4);v3.replaceState(Z4,"",k4);if(h2&&p3){p3({action:y3,location:O5.location,delta:0})}}__name(w,"w");i(w,"replace");function H2(U3){let Y5=d2.location.origin!=="null"?d2.location.origin:d2.location.href;let Q4=typeof U3==="string"?U3:Lo(U3);Q4=Q4.replace(/ $/,"%20");Lh(Y5,"No window.location.(origin|href) available to create URL for href: "+Q4);return new URL(Q4,Y5)}__name(H2,"H");i(H2,"createURL");let O5={get action(){return y3},get location(){return u6(d2,v3)},listen(U3){if(p3){throw new Error("A history only accepts one active listener")}d2.addEventListener(Pm,A);p3=U3;return()=>{d2.removeEventListener(Pm,A);p3=null}},createHref(U3){return r4(d2,U3)},createURL:H2,encodeLocation(U3){let Y5=H2(U3);return{pathname:Y5.pathname,search:Y5.search,hash:Y5.hash}},push:D2,replace:w,go(U3){return v3.go(U3)}};return O5}__name(x0,"x0");i(x0,"getUrlBasedHistory");var th;(function(u6){u6["data"]="data";u6["deferred"]="deferred";u6["redirect"]="redirect";u6["error"]="error"})(th||(th={}));function A0(u6,r4){if(r4==="/")return u6;if(!u6.toLowerCase().startsWith(r4.toLowerCase())){return null}let f3=r4.endsWith("/")?r4.length-1:r4.length;let o4=u6.charAt(f3);if(o4&&o4!=="/"){return null}return u6.slice(f3)||"/"}__name(A0,"A0");i(A0,"stripBasename");var qh=["post","put","patch","delete"];new Set(qh);var T0=["get",...qh];new Set(T0);function wo(){wo=Object.assign?Object.assign.bind():function(u6){for(var r4=1;r4{S3&&eh?eh(()=>g3(D2)):g3(D2)},[g3,S3]);z.useLayoutEffect(()=>y3.listen(A),[y3,A]);z.useEffect(()=>jh(h2),[h2]);return z.createElement(Gh,{basename:r4,children:f3,location:p3.location,navigationType:p3.action,navigator:y3,future:h2})}__name(uS,"uS");i(uS,"MemoryRouter");function Gh(u6){let{basename:r4="/",children:f3=null,location:o4,navigationType:d2=De.Pop,navigator:h2,static:v3=false,future:y3}=u6;!!w0()?Lh(false):void 0;let p3=r4.replace(/^/*/,"/");let g3=z.useMemo(()=>({basename:p3,navigator:h2,static:v3,future:wo({v7_relativeSplatPath:false},y3)}),[p3,y3,h2,v3]);if(typeof o4==="string"){o4=qo(o4)}let{pathname:S3="/",search:A="",hash:D2="",state:w=null,key:H2="default"}=o4;let O5=z.useMemo(()=>{let U3=A0(S3,p3);if(U3==null){return null}return{location:{pathname:U3,search:A,hash:D2,state:w,key:H2},navigationType:d2}},[p3,S3,A,D2,w,H2,d2]);if(O5==null){return null}return z.createElement(O0.Provider,{value:g3},z.createElement(Yh.Provider,{children:f3,value:O5}))}__name(Gh,"Gh");i(Gh,"Router");new Promise(()=>{});var M0="6";try{window.__reactRouterVersion=M0}catch(u6){}var z0="startTransition";var lh=Qi[z0];function iS(u6){let{basename:r4,children:f3,future:o4,window:d2}=u6;let h2=z.useRef();if(h2.current==null){h2.current=b0({window:d2,v5Compat:true})}let v3=h2.current;let[y3,p3]=z.useState({action:v3.action,location:v3.location});let{v7_startTransition:g3}=o4||{};let S3=z.useCallback(A=>{g3&&lh?lh(()=>p3(A)):p3(A)},[p3,g3]);z.useLayoutEffect(()=>v3.listen(S3),[v3,S3]);z.useEffect(()=>jh(o4),[o4]);return z.createElement(Gh,{basename:r4,children:f3,location:y3.location,navigationType:y3.action,navigator:v3,future:o4})}__name(iS,"iS");i(iS,"BrowserRouter");var nh;(function(u6){u6["UseScrollRestoration"]="useScrollRestoration";u6["UseSubmit"]="useSubmit";u6["UseSubmitFetcher"]="useSubmitFetcher";u6["UseFetcher"]="useFetcher";u6["useViewTransitionState"]="useViewTransitionState"})(nh||(nh={}));var ah;(function(u6){u6["UseFetcher"]="useFetcher";u6["UseFetchers"]="useFetchers";u6["UseScrollRestoration"]="useScrollRestoration"})(ah||(ah={}));var cS=sl.forwardRef(({to:u6,newTab:r4=false,target:f3,rel:o4,children:d2,...h2},v3)=>{const y3=r4?f3??"_blank":f3;const p3=r4?o4??"noopener noreferrer":o4;return Ht.jsx("a",{href:u6,target:y3,rel:p3,ref:v3,...h2,children:d2})});function uh(u6,r4){if(typeof u6==="function"){return u6(r4)}else if(u6!==null&&u6!==void 0){u6.current=r4}}__name(uh,"uh");i(uh,"setRef");function Xh(...u6){return r4=>{let f3=false;const o4=u6.map(d2=>{const h2=uh(d2,r4);if(!f3&&typeof h2=="function"){f3=true}return h2});if(f3){return()=>{for(let d2=0;d2{const{children:h2,...v3}=o4;const y3=z.Children.toArray(h2);const p3=y3.find(D0);if(p3){const g3=p3.props.children;const S3=y3.map(A=>{if(A===p3){if(z.Children.count(g3)>1)return z.Children.only(null);return z.isValidElement(g3)?g3.props.children:null}else{return A}});return Ht.jsx(r4,{...v3,ref:d2,children:z.isValidElement(g3)?z.cloneElement(g3,void 0,S3):null})}return Ht.jsx(r4,{...v3,ref:d2,children:h2})});f3.displayName=`${u6}.Slot`;return f3}__name(Yi,"Yi");i(Yi,"createSlot");var Vh=Yi("Slot");function _0(u6){const r4=z.forwardRef((f3,o4)=>{const{children:d2,...h2}=f3;if(z.isValidElement(d2)){const v3=U0(d2);const y3=N0(h2,d2.props);if(d2.type!==z.Fragment){y3.ref=o4?Xh(o4,v3):v3}return z.cloneElement(d2,y3)}return z.Children.count(d2)>1?z.Children.only(null):null});r4.displayName=`${u6}.SlotClone`;return r4}__name(_0,"_0");i(_0,"createSlotClone");var C0=Symbol("radix.slottable");function D0(u6){return z.isValidElement(u6)&&typeof u6.type==="function"&&"__radixId"in u6.type&&u6.type.__radixId===C0}__name(D0,"D0");i(D0,"isSlottable");function N0(u6,r4){const f3={...r4};for(const o4 in r4){const d2=u6[o4];const h2=r4[o4];const v3=/^on[A-Z]/.test(o4);if(v3){if(d2&&h2){f3[o4]=(...y3)=>{const p3=h2(...y3);d2(...y3);return p3}}else if(d2){f3[o4]=d2}}else if(o4==="style"){f3[o4]={...d2,...h2}}else if(o4==="className"){f3[o4]=[d2,h2].filter(Boolean).join(" ")}}return{...u6,...f3}}__name(N0,"N0");i(N0,"mergeProps");function U0(u6){let r4=Object.getOwnPropertyDescriptor(u6.props,"ref")?.get;let f3=r4&&"isReactWarning"in r4&&r4.isReactWarning;if(f3){return u6.ref}r4=Object.getOwnPropertyDescriptor(u6,"ref")?.get;f3=r4&&"isReactWarning"in r4&&r4.isReactWarning;if(f3){return u6.props.ref}return u6.props.ref||u6.ref}__name(U0,"U0");i(U0,"getElementRef");function Qh(u6){var r4,f3,o4="";if("string"==typeof u6||"number"==typeof u6)o4+=u6;else if("object"==typeof u6)if(Array.isArray(u6)){var d2=u6.length;for(r4=0;r4typeof u6==="boolean"?`${u6}`:u6===0?"0":u6,"falsyToString");var ch=Zh;var kh=i((u6,r4)=>f3=>{var o4;if((r4===null||r4===void 0?void 0:r4.variants)==null)return ch(u6,f3===null||f3===void 0?void 0:f3.class,f3===null||f3===void 0?void 0:f3.className);const{variants:d2,defaultVariants:h2}=r4;const v3=Object.keys(d2).map(g3=>{const S3=f3===null||f3===void 0?void 0:f3[g3];const A=h2===null||h2===void 0?void 0:h2[g3];if(S3===null)return null;const D2=ih(S3)||ih(A);return d2[g3][D2]});const y3=f3&&Object.entries(f3).reduce((g3,S3)=>{let[A,D2]=S3;if(D2===void 0){return g3}g3[A]=D2;return g3},{});const p3=r4===null||r4===void 0?void 0:(o4=r4.compoundVariants)===null||o4===void 0?void 0:o4.reduce((g3,S3)=>{let{class:A,className:D2,...w}=S3;return Object.entries(w).every(H2=>{let[O5,U3]=H2;return Array.isArray(U3)?U3.includes({...h2,...y3}[O5]):{...h2,...y3}[O5]===U3})?[...g3,A,D2]:g3},[]);return ch(u6,v3,p3,f3===null||f3===void 0?void 0:f3.class,f3===null||f3===void 0?void 0:f3.className)},"cva");var Yo="-";var H0=i(u6=>{const r4=L0(u6);const{conflictingClassGroups:f3,conflictingClassGroupModifiers:o4}=u6;const d2=i(v3=>{const y3=v3.split(Yo);if(y3[0]===""&&y3.length!==1){y3.shift()}return Kh(y3,r4)||B0(v3)},"getClassGroupId");const h2=i((v3,y3)=>{const p3=f3[v3]||[];if(y3&&o4[v3]){return[...p3,...o4[v3]]}return p3},"getConflictingClassGroupIds");return{getClassGroupId:d2,getConflictingClassGroupIds:h2}},"createClassGroupUtils");var Kh=i((u6,r4)=>{if(u6.length===0){return r4.classGroupId}const f3=u6[0];const o4=r4.nextPart.get(f3);const d2=o4?Kh(u6.slice(1),o4):void 0;if(d2){return d2}if(r4.validators.length===0){return void 0}const h2=u6.join(Yo);return r4.validators.find(({validator:v3})=>v3(h2))?.classGroupId},"getGroupRecursive");var rh=/^[(.+)]$/;var B0=i(u6=>{if(rh.test(u6)){const r4=rh.exec(u6)[1];const f3=r4?.substring(0,r4.indexOf(":"));if(f3){return"arbitrary.."+f3}}},"getGroupIdForArbitraryProperty");var L0=i(u6=>{const{theme:r4,classGroups:f3}=u6;const o4={nextPart:new Map,validators:[]};for(const d2 in f3){Ro(f3[d2],o4,d2,r4)}return o4},"createClassMap");var Ro=i((u6,r4,f3,o4)=>{u6.forEach(d2=>{if(typeof d2==="string"){const h2=d2===""?r4:oh(r4,d2);h2.classGroupId=f3;return}if(typeof d2==="function"){if(q0(d2)){Ro(d2(o4),r4,f3,o4);return}r4.validators.push({validator:d2,classGroupId:f3});return}Object.entries(d2).forEach(([h2,v3])=>{Ro(v3,oh(r4,h2),f3,o4)})})},"processClassesRecursively");var oh=i((u6,r4)=>{let f3=u6;r4.split(Yo).forEach(o4=>{if(!f3.nextPart.has(o4)){f3.nextPart.set(o4,{nextPart:new Map,validators:[]})}f3=f3.nextPart.get(o4)});return f3},"getPart");var q0=i(u6=>u6.isThemeGetter,"isThemeGetter");var Y0=i(u6=>{if(u6<1){return{get:i(()=>void 0,"get"),set:i(()=>{},"set")}}let r4=0;let f3=new Map;let o4=new Map;const d2=i((h2,v3)=>{f3.set(h2,v3);r4++;if(r4>u6){r4=0;o4=f3;f3=new Map}},"update");return{get(h2){let v3=f3.get(h2);if(v3!==void 0){return v3}if((v3=o4.get(h2))!==void 0){d2(h2,v3);return v3}},set(h2,v3){if(f3.has(h2)){f3.set(h2,v3)}else{d2(h2,v3)}}}},"createLruCache");var Mo="!";var zo=":";var j0=zo.length;var G0=i(u6=>{const{prefix:r4,experimentalParseClassName:f3}=u6;let o4=i(d2=>{const h2=[];let v3=0;let y3=0;let p3=0;let g3;for(let H2=0;H2p3?g3-p3:void 0;return{modifiers:h2,hasImportantModifier:D2,baseClassName:A,maybePostfixModifierPosition:w}},"parseClassName");if(r4){const d2=r4+zo;const h2=o4;o4=i(v3=>v3.startsWith(d2)?h2(v3.substring(d2.length)):{isExternal:true,modifiers:[],hasImportantModifier:false,baseClassName:v3,maybePostfixModifierPosition:void 0},"parseClassName")}if(f3){const d2=o4;o4=i(h2=>f3({className:h2,parseClassName:d2}),"parseClassName")}return o4},"createParseClassName");var X0=i(u6=>{if(u6.endsWith(Mo)){return u6.substring(0,u6.length-1)}if(u6.startsWith(Mo)){return u6.substring(1)}return u6},"stripImportantModifier");var V0=i(u6=>{const r4=Object.fromEntries(u6.orderSensitiveModifiers.map(o4=>[o4,true]));const f3=i(o4=>{if(o4.length<=1){return o4}const d2=[];let h2=[];o4.forEach(v3=>{const y3=v3[0]==="["||r4[v3];if(y3){d2.push(...h2.sort(),v3);h2=[]}else{h2.push(v3)}});d2.push(...h2.sort());return d2},"sortModifiers");return f3},"createSortModifiers");var Q0=i(u6=>({cache:Y0(u6.cacheSize),parseClassName:G0(u6),sortModifiers:V0(u6),...H0(u6)}),"createConfigUtils");var Z0=/s+/;var k0=i((u6,r4)=>{const{parseClassName:f3,getClassGroupId:o4,getConflictingClassGroupIds:d2,sortModifiers:h2}=r4;const v3=[];const y3=u6.trim().split(Z0);let p3="";for(let g3=y3.length-1;g3>=0;g3-=1){const S3=y3[g3];const{isExternal:A,modifiers:D2,hasImportantModifier:w,baseClassName:H2,maybePostfixModifierPosition:O5}=f3(S3);if(A){p3=S3+(p3.length>0?" "+p3:p3);continue}let U3=!!O5;let Y5=o4(U3?H2.substring(0,O5):H2);if(!Y5){if(!U3){p3=S3+(p3.length>0?" "+p3:p3);continue}Y5=o4(H2);if(!Y5){p3=S3+(p3.length>0?" "+p3:p3);continue}U3=false}const Q4=h2(D2).join(":");const Z4=w?Q4+Mo:Q4;const k4=Z4+Y5;if(v3.includes(k4)){continue}v3.push(k4);const X5=d2(Y5,U3);for(let et5=0;et50?" "+p3:p3)}return p3},"mergeClassList");function K0(){let u6=0;let r4;let f3;let o4="";while(u6{if(typeof u6==="string"){return u6}let r4;let f3="";for(let o4=0;o4A(S3),u6());f3=Q0(g3);o4=f3.cache.get;d2=f3.cache.set;h2=y3;return y3(p3)}__name(v3,"v");i(v3,"initTailwindMerge");function y3(p3){const g3=o4(p3);if(g3){return g3}const S3=k0(p3,f3);d2(p3,S3);return S3}__name(y3,"y");i(y3,"tailwindMerge");return i(__name(function p3(){return h2(K0.apply(null,arguments))},"p"),"callTailwindMerge")}__name(J0,"J0");i(J0,"createTailwindMerge");var Zt=i(u6=>{const r4=i(f3=>f3[u6]||[],"themeGetter");r4.isThemeGetter=true;return r4},"fromTheme");var Wh=/^[(?:(w[w-]*):)?(.+)]$/i;var $h=/^((?:(w[w-]*):)?(.+))$/i;var W0=/^d+/d+$/;var $0=/^(d+(.d+)?)?(xs|sm|md|lg|xl)$/;var F0=/d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|b(calc|min|max|clamp)(.+)|^0$/;var P0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)(.+)$/;var I0=/^(inset_)?-?((d+)?.?(d+)[a-z]+|0)_-?((d+)?.?(d+)[a-z]+|0)/;var tp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)(.+)$/;var Fn=i(u6=>W0.test(u6),"isFraction");var dt=i(u6=>!!u6&&!Number.isNaN(Number(u6)),"isNumber");var Yl=i(u6=>!!u6&&Number.isInteger(Number(u6)),"isInteger");var ho=i(u6=>u6.endsWith("%")&&dt(u6.slice(0,-1)),"isPercent");var fl=i(u6=>$0.test(u6),"isTshirtSize");var ep=i(()=>true,"isAny");var lp=i(u6=>F0.test(u6)&&!P0.test(u6),"isLengthOnly");var Fh=i(()=>false,"isNever");var np=i(u6=>I0.test(u6),"isShadow");var ap=i(u6=>tp.test(u6),"isImage");var up=i(u6=>!I(u6)&&!tt(u6),"isAnyNonArbitrary");var ip=i(u6=>ia(u6,tv,Fh),"isArbitrarySize");var I=i(u6=>Wh.test(u6),"isArbitraryValue");var rn=i(u6=>ia(u6,ev,lp),"isArbitraryLength");var vo=i(u6=>ia(u6,sp,dt),"isArbitraryNumber");var fh=i(u6=>ia(u6,Ph,Fh),"isArbitraryPosition");var cp=i(u6=>ia(u6,Ih,ap),"isArbitraryImage");var Ri=i(u6=>ia(u6,lv,np),"isArbitraryShadow");var tt=i(u6=>$h.test(u6),"isArbitraryVariable");var ou=i(u6=>ca(u6,ev),"isArbitraryVariableLength");var rp=i(u6=>ca(u6,dp),"isArbitraryVariableFamilyName");var sh=i(u6=>ca(u6,Ph),"isArbitraryVariablePosition");var op=i(u6=>ca(u6,tv),"isArbitraryVariableSize");var fp=i(u6=>ca(u6,Ih),"isArbitraryVariableImage");var Mi=i(u6=>ca(u6,lv,true),"isArbitraryVariableShadow");var ia=i((u6,r4,f3)=>{const o4=Wh.exec(u6);if(o4){if(o4[1]){return r4(o4[1])}return f3(o4[2])}return false},"getIsArbitraryValue");var ca=i((u6,r4,f3=false)=>{const o4=$h.exec(u6);if(o4){if(o4[1]){return r4(o4[1])}return f3}return false},"getIsArbitraryVariable");var Ph=i(u6=>u6==="position"||u6==="percentage","isLabelPosition");var Ih=i(u6=>u6==="image"||u6==="url","isLabelImage");var tv=i(u6=>u6==="length"||u6==="size"||u6==="bg-size","isLabelSize");var ev=i(u6=>u6==="length","isLabelLength");var sp=i(u6=>u6==="number","isLabelNumber");var dp=i(u6=>u6==="family-name","isLabelFamilyName");var lv=i(u6=>u6==="shadow","isLabelShadow");var mp=i(()=>{const u6=Zt("color");const r4=Zt("font");const f3=Zt("text");const o4=Zt("font-weight");const d2=Zt("tracking");const h2=Zt("leading");const v3=Zt("breakpoint");const y3=Zt("container");const p3=Zt("spacing");const g3=Zt("radius");const S3=Zt("shadow");const A=Zt("inset-shadow");const D2=Zt("text-shadow");const w=Zt("drop-shadow");const H2=Zt("blur");const O5=Zt("perspective");const U3=Zt("aspect");const Y5=Zt("ease");const Q4=Zt("animate");const Z4=i(()=>["auto","avoid","all","avoid-page","page","left","right","column"],"scaleBreak");const k4=i(()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],"scalePosition");const X5=i(()=>[...k4(),tt,I],"scalePositionWithArbitrary");const et5=i(()=>["auto","hidden","clip","visible","scroll"],"scaleOverflow");const W4=i(()=>["auto","contain","none"],"scaleOverscroll");const J2=i(()=>[tt,I,p3],"scaleUnambiguousSpacing");const rt6=i(()=>[Fn,"full","auto",...J2()],"scaleInset");const Et4=i(()=>[Yl,"none","subgrid",tt,I],"scaleGridTemplateColsRows");const Mt3=i(()=>["auto",{span:["full",Yl,tt,I]},Yl,tt,I],"scaleGridColRowStartAndEnd");const vt3=i(()=>[Yl,"auto",tt,I],"scaleGridColRowStartOrEnd");const Ot3=i(()=>["auto","min","max","fr",tt,I],"scaleGridAutoColsRows");const St3=i(()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],"scaleAlignPrimaryAxis");const gt4=i(()=>["start","end","center","stretch","center-safe","end-safe"],"scaleAlignSecondaryAxis");const C2=i(()=>["auto",...J2()],"scaleMargin");const V=i(()=>[Fn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...J2()],"scaleSizing");const B4=i(()=>[u6,tt,I],"scaleColor");const ct5=i(()=>[...k4(),sh,fh,{position:[tt,I]}],"scaleBgPosition");const E6=i(()=>["no-repeat",{repeat:["","x","y","space","round"]}],"scaleBgRepeat");const G3=i(()=>["auto","cover","contain",op,ip,{size:[tt,I]}],"scaleBgSize");const $3=i(()=>[ho,ou,rn],"scaleGradientStopPosition");const K5=i(()=>["","none","full",g3,tt,I],"scaleRadius");const F3=i(()=>["",dt,ou,rn],"scaleBorderWidth");const ft4=i(()=>["solid","dashed","dotted","double"],"scaleLineStyle");const ut5=i(()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],"scaleBlendMode");const mt4=i(()=>[dt,ho,sh,fh],"scaleMaskImagePosition");const At4=i(()=>["","none",H2,tt,I],"scaleBlur");const le6=i(()=>["none",dt,tt,I],"scaleRotate");const He6=i(()=>["none",dt,tt,I],"scaleScale");const Be6=i(()=>[dt,tt,I],"scaleSkew");const Le5=i(()=>[Fn,"full",...J2()],"scaleTranslate");return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fl],breakpoint:[fl],color:[ep],container:[fl],"drop-shadow":[fl],ease:["in","out","in-out"],font:[up],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fl],shadow:[fl],spacing:["px",dt],text:[fl],"text-shadow":[fl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Fn,I,tt,U3]}],container:["container"],columns:[{columns:[dt,I,tt,y3]}],"break-after":[{"break-after":Z4()}],"break-before":[{"break-before":Z4()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X5()}],overflow:[{overflow:et5()}],"overflow-x":[{"overflow-x":et5()}],"overflow-y":[{"overflow-y":et5()}],overscroll:[{overscroll:W4()}],"overscroll-x":[{"overscroll-x":W4()}],"overscroll-y":[{"overscroll-y":W4()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:rt6()}],"inset-x":[{"inset-x":rt6()}],"inset-y":[{"inset-y":rt6()}],start:[{start:rt6()}],end:[{end:rt6()}],top:[{top:rt6()}],right:[{right:rt6()}],bottom:[{bottom:rt6()}],left:[{left:rt6()}],visibility:["visible","invisible","collapse"],z:[{z:[Yl,"auto",tt,I]}],basis:[{basis:[Fn,"full","auto",y3,...J2()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[dt,Fn,"auto","initial","none",I]}],grow:[{grow:["",dt,tt,I]}],shrink:[{shrink:["",dt,tt,I]}],order:[{order:[Yl,"first","last","none",tt,I]}],"grid-cols":[{"grid-cols":Et4()}],"col-start-end":[{col:Mt3()}],"col-start":[{"col-start":vt3()}],"col-end":[{"col-end":vt3()}],"grid-rows":[{"grid-rows":Et4()}],"row-start-end":[{row:Mt3()}],"row-start":[{"row-start":vt3()}],"row-end":[{"row-end":vt3()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ot3()}],"auto-rows":[{"auto-rows":Ot3()}],gap:[{gap:J2()}],"gap-x":[{"gap-x":J2()}],"gap-y":[{"gap-y":J2()}],"justify-content":[{justify:[...St3(),"normal"]}],"justify-items":[{"justify-items":[...gt4(),"normal"]}],"justify-self":[{"justify-self":["auto",...gt4()]}],"align-content":[{content:["normal",...St3()]}],"align-items":[{items:[...gt4(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...gt4(),{baseline:["","last"]}]}],"place-content":[{"place-content":St3()}],"place-items":[{"place-items":[...gt4(),"baseline"]}],"place-self":[{"place-self":["auto",...gt4()]}],p:[{p:J2()}],px:[{px:J2()}],py:[{py:J2()}],ps:[{ps:J2()}],pe:[{pe:J2()}],pt:[{pt:J2()}],pr:[{pr:J2()}],pb:[{pb:J2()}],pl:[{pl:J2()}],m:[{m:C2()}],mx:[{mx:C2()}],my:[{my:C2()}],ms:[{ms:C2()}],me:[{me:C2()}],mt:[{mt:C2()}],mr:[{mr:C2()}],mb:[{mb:C2()}],ml:[{ml:C2()}],"space-x":[{"space-x":J2()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":J2()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[y3,"screen",...V()]}],"min-w":[{"min-w":[y3,"screen","none",...V()]}],"max-w":[{"max-w":[y3,"screen","none","prose",{screen:[v3]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",f3,ou,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o4,tt,vo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ho,I]}],"font-family":[{font:[rp,I,r4]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d2,tt,I]}],"line-clamp":[{"line-clamp":[dt,"none",tt,vo]}],leading:[{leading:[h2,...J2()]}],"list-image":[{"list-image":["none",tt,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tt,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B4()}],"text-color":[{text:B4()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ft4(),"wavy"]}],"text-decoration-thickness":[{decoration:[dt,"from-font","auto",tt,rn]}],"text-decoration-color":[{decoration:B4()}],"underline-offset":[{"underline-offset":[dt,"auto",tt,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J2()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tt,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ct5()}],"bg-repeat":[{bg:E6()}],"bg-size":[{bg:G3()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yl,tt,I],radial:["",tt,I],conic:[Yl,tt,I]},fp,cp]}],"bg-color":[{bg:B4()}],"gradient-from-pos":[{from:$3()}],"gradient-via-pos":[{via:$3()}],"gradient-to-pos":[{to:$3()}],"gradient-from":[{from:B4()}],"gradient-via":[{via:B4()}],"gradient-to":[{to:B4()}],rounded:[{rounded:K5()}],"rounded-s":[{"rounded-s":K5()}],"rounded-e":[{"rounded-e":K5()}],"rounded-t":[{"rounded-t":K5()}],"rounded-r":[{"rounded-r":K5()}],"rounded-b":[{"rounded-b":K5()}],"rounded-l":[{"rounded-l":K5()}],"rounded-ss":[{"rounded-ss":K5()}],"rounded-se":[{"rounded-se":K5()}],"rounded-ee":[{"rounded-ee":K5()}],"rounded-es":[{"rounded-es":K5()}],"rounded-tl":[{"rounded-tl":K5()}],"rounded-tr":[{"rounded-tr":K5()}],"rounded-br":[{"rounded-br":K5()}],"rounded-bl":[{"rounded-bl":K5()}],"border-w":[{border:F3()}],"border-w-x":[{"border-x":F3()}],"border-w-y":[{"border-y":F3()}],"border-w-s":[{"border-s":F3()}],"border-w-e":[{"border-e":F3()}],"border-w-t":[{"border-t":F3()}],"border-w-r":[{"border-r":F3()}],"border-w-b":[{"border-b":F3()}],"border-w-l":[{"border-l":F3()}],"divide-x":[{"divide-x":F3()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F3()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ft4(),"hidden","none"]}],"divide-style":[{divide:[...ft4(),"hidden","none"]}],"border-color":[{border:B4()}],"border-color-x":[{"border-x":B4()}],"border-color-y":[{"border-y":B4()}],"border-color-s":[{"border-s":B4()}],"border-color-e":[{"border-e":B4()}],"border-color-t":[{"border-t":B4()}],"border-color-r":[{"border-r":B4()}],"border-color-b":[{"border-b":B4()}],"border-color-l":[{"border-l":B4()}],"divide-color":[{divide:B4()}],"outline-style":[{outline:[...ft4(),"none","hidden"]}],"outline-offset":[{"outline-offset":[dt,tt,I]}],"outline-w":[{outline:["",dt,ou,rn]}],"outline-color":[{outline:B4()}],shadow:[{shadow:["","none",S3,Mi,Ri]}],"shadow-color":[{shadow:B4()}],"inset-shadow":[{"inset-shadow":["none",A,Mi,Ri]}],"inset-shadow-color":[{"inset-shadow":B4()}],"ring-w":[{ring:F3()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B4()}],"ring-offset-w":[{"ring-offset":[dt,rn]}],"ring-offset-color":[{"ring-offset":B4()}],"inset-ring-w":[{"inset-ring":F3()}],"inset-ring-color":[{"inset-ring":B4()}],"text-shadow":[{"text-shadow":["none",D2,Mi,Ri]}],"text-shadow-color":[{"text-shadow":B4()}],opacity:[{opacity:[dt,tt,I]}],"mix-blend":[{"mix-blend":[...ut5(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ut5()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[dt]}],"mask-image-linear-from-pos":[{"mask-linear-from":mt4()}],"mask-image-linear-to-pos":[{"mask-linear-to":mt4()}],"mask-image-linear-from-color":[{"mask-linear-from":B4()}],"mask-image-linear-to-color":[{"mask-linear-to":B4()}],"mask-image-t-from-pos":[{"mask-t-from":mt4()}],"mask-image-t-to-pos":[{"mask-t-to":mt4()}],"mask-image-t-from-color":[{"mask-t-from":B4()}],"mask-image-t-to-color":[{"mask-t-to":B4()}],"mask-image-r-from-pos":[{"mask-r-from":mt4()}],"mask-image-r-to-pos":[{"mask-r-to":mt4()}],"mask-image-r-from-color":[{"mask-r-from":B4()}],"mask-image-r-to-color":[{"mask-r-to":B4()}],"mask-image-b-from-pos":[{"mask-b-from":mt4()}],"mask-image-b-to-pos":[{"mask-b-to":mt4()}],"mask-image-b-from-color":[{"mask-b-from":B4()}],"mask-image-b-to-color":[{"mask-b-to":B4()}],"mask-image-l-from-pos":[{"mask-l-from":mt4()}],"mask-image-l-to-pos":[{"mask-l-to":mt4()}],"mask-image-l-from-color":[{"mask-l-from":B4()}],"mask-image-l-to-color":[{"mask-l-to":B4()}],"mask-image-x-from-pos":[{"mask-x-from":mt4()}],"mask-image-x-to-pos":[{"mask-x-to":mt4()}],"mask-image-x-from-color":[{"mask-x-from":B4()}],"mask-image-x-to-color":[{"mask-x-to":B4()}],"mask-image-y-from-pos":[{"mask-y-from":mt4()}],"mask-image-y-to-pos":[{"mask-y-to":mt4()}],"mask-image-y-from-color":[{"mask-y-from":B4()}],"mask-image-y-to-color":[{"mask-y-to":B4()}],"mask-image-radial":[{"mask-radial":[tt,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":mt4()}],"mask-image-radial-to-pos":[{"mask-radial-to":mt4()}],"mask-image-radial-from-color":[{"mask-radial-from":B4()}],"mask-image-radial-to-color":[{"mask-radial-to":B4()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k4()}],"mask-image-conic-pos":[{"mask-conic":[dt]}],"mask-image-conic-from-pos":[{"mask-conic-from":mt4()}],"mask-image-conic-to-pos":[{"mask-conic-to":mt4()}],"mask-image-conic-from-color":[{"mask-conic-from":B4()}],"mask-image-conic-to-color":[{"mask-conic-to":B4()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ct5()}],"mask-repeat":[{mask:E6()}],"mask-size":[{mask:G3()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tt,I]}],filter:[{filter:["","none",tt,I]}],blur:[{blur:At4()}],brightness:[{brightness:[dt,tt,I]}],contrast:[{contrast:[dt,tt,I]}],"drop-shadow":[{"drop-shadow":["","none",w,Mi,Ri]}],"drop-shadow-color":[{"drop-shadow":B4()}],grayscale:[{grayscale:["",dt,tt,I]}],"hue-rotate":[{"hue-rotate":[dt,tt,I]}],invert:[{invert:["",dt,tt,I]}],saturate:[{saturate:[dt,tt,I]}],sepia:[{sepia:["",dt,tt,I]}],"backdrop-filter":[{"backdrop-filter":["","none",tt,I]}],"backdrop-blur":[{"backdrop-blur":At4()}],"backdrop-brightness":[{"backdrop-brightness":[dt,tt,I]}],"backdrop-contrast":[{"backdrop-contrast":[dt,tt,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",dt,tt,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[dt,tt,I]}],"backdrop-invert":[{"backdrop-invert":["",dt,tt,I]}],"backdrop-opacity":[{"backdrop-opacity":[dt,tt,I]}],"backdrop-saturate":[{"backdrop-saturate":[dt,tt,I]}],"backdrop-sepia":[{"backdrop-sepia":["",dt,tt,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":J2()}],"border-spacing-x":[{"border-spacing-x":J2()}],"border-spacing-y":[{"border-spacing-y":J2()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tt,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[dt,"initial",tt,I]}],ease:[{ease:["linear","initial",Y5,tt,I]}],delay:[{delay:[dt,tt,I]}],animate:[{animate:["none",Q4,tt,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O5,tt,I]}],"perspective-origin":[{"perspective-origin":X5()}],rotate:[{rotate:le6()}],"rotate-x":[{"rotate-x":le6()}],"rotate-y":[{"rotate-y":le6()}],"rotate-z":[{"rotate-z":le6()}],scale:[{scale:He6()}],"scale-x":[{"scale-x":He6()}],"scale-y":[{"scale-y":He6()}],"scale-z":[{"scale-z":He6()}],"scale-3d":["scale-3d"],skew:[{skew:Be6()}],"skew-x":[{"skew-x":Be6()}],"skew-y":[{"skew-y":Be6()}],transform:[{transform:[tt,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:X5()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le5()}],"translate-x":[{"translate-x":Le5()}],"translate-y":[{"translate-y":Le5()}],"translate-z":[{"translate-z":Le5()}],"translate-none":["translate-none"],accent:[{accent:B4()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B4()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tt,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J2()}],"scroll-mx":[{"scroll-mx":J2()}],"scroll-my":[{"scroll-my":J2()}],"scroll-ms":[{"scroll-ms":J2()}],"scroll-me":[{"scroll-me":J2()}],"scroll-mt":[{"scroll-mt":J2()}],"scroll-mr":[{"scroll-mr":J2()}],"scroll-mb":[{"scroll-mb":J2()}],"scroll-ml":[{"scroll-ml":J2()}],"scroll-p":[{"scroll-p":J2()}],"scroll-px":[{"scroll-px":J2()}],"scroll-py":[{"scroll-py":J2()}],"scroll-ps":[{"scroll-ps":J2()}],"scroll-pe":[{"scroll-pe":J2()}],"scroll-pt":[{"scroll-pt":J2()}],"scroll-pr":[{"scroll-pr":J2()}],"scroll-pb":[{"scroll-pb":J2()}],"scroll-pl":[{"scroll-pl":J2()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tt,I]}],fill:[{fill:["none",...B4()]}],"stroke-w":[{stroke:[dt,ou,rn,vo]}],stroke:[{stroke:["none",...B4()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},"getDefaultConfig");var hp=J0(mp);function nv(...u6){return hp(Zh(u6))}__name(nv,"nv");i(nv,"cn");function rS(u6){if(!u6)return u6;const r4=document.createElement("textarea");r4.innerHTML=u6;const f3=r4.value;r4.remove();return f3}__name(rS,"rS");i(rS,"decodeHtmlEntities");var vp=kh("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function oS({className:u6,variant:r4,asChild:f3=false,...o4}){const d2=f3?Vh:"span";return Ht.jsx(d2,{"data-slot":"badge",className:nv(vp({variant:r4}),u6),...o4})}__name(oS,"oS");i(oS,"Badge");var gp=kh("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function fS({className:u6,variant:r4,size:f3,asChild:o4=false,...d2}){const h2=o4?Vh:"button";return Ht.jsx(h2,{"data-slot":"button",className:nv(gp({variant:r4,size:f3,className:u6})),...d2})}__name(fS,"fS");i(fS,"Button");function go(u6,r4,{checkForDefaultPrevented:f3=true}={}){return i(__name(function o4(d2){u6?.(d2);if(f3===false||!d2.defaultPrevented){return r4?.(d2)}},"o"),"handleEvent")}__name(go,"go");i(go,"composeEventHandlers");function sS(u6,r4){const f3=z.createContext(r4);const o4=i(h2=>{const{children:v3,...y3}=h2;const p3=z.useMemo(()=>y3,Object.values(y3));return Ht.jsx(f3.Provider,{value:p3,children:v3})},"Provider");o4.displayName=u6+"Provider";function d2(h2){const v3=z.useContext(f3);if(v3)return v3;if(r4!==void 0)return r4;throw new Error(``${h2}` must be used within `${u6}``)}__name(d2,"d");i(d2,"useContext2");return[o4,d2]}__name(sS,"sS");i(sS,"createContext2");function av(u6,r4=[]){let f3=[];function o4(h2,v3){const y3=z.createContext(v3);const p3=f3.length;f3=[...f3,v3];const g3=i(A=>{const{scope:D2,children:w,...H2}=A;const O5=D2?.[u6]?.[p3]||y3;const U3=z.useMemo(()=>H2,Object.values(H2));return Ht.jsx(O5.Provider,{value:U3,children:w})},"Provider");g3.displayName=h2+"Provider";function S3(A,D2){const w=D2?.[u6]?.[p3]||y3;const H2=z.useContext(w);if(H2)return H2;if(v3!==void 0)return v3;throw new Error(``${A}` must be used within `${h2}``)}__name(S3,"S");i(S3,"useContext2");return[g3,S3]}__name(o4,"o");i(o4,"createContext3");const d2=i(()=>{const h2=f3.map(v3=>{return z.createContext(v3)});return i(__name(function v3(y3){const p3=y3?.[u6]||h2;return z.useMemo(()=>({[`__scope${u6}`]:{...y3,[u6]:p3}}),[y3,p3])},"v"),"useScope")},"createScope");d2.scopeName=u6;return[o4,yp(d2,...r4)]}__name(av,"av");i(av,"createContextScope");function yp(...u6){const r4=u6[0];if(u6.length===1)return r4;const f3=i(()=>{const o4=u6.map(d2=>({useScope:d2(),scopeName:d2.scopeName}));return i(__name(function d2(h2){const v3=o4.reduce((y3,{useScope:p3,scopeName:g3})=>{const S3=p3(h2);const A=S3[`__scope${g3}`];return{...y3,...A}},{});return z.useMemo(()=>({[`__scope${r4.scopeName}`]:v3}),[v3])},"d"),"useComposedScopes")},"createScope");f3.scopeName=r4.scopeName;return f3}__name(yp,"yp");i(yp,"composeContextScopes");var na=globalThis?.document?z.useLayoutEffect:()=>{};var pp=Qi[" useInsertionEffect ".trim().toString()]||na;function dS({prop:u6,defaultProp:r4,onChange:f3=i(()=>{},"onChange"),caller:o4}){const[d2,h2,v3]=bp({defaultProp:r4,onChange:f3});const y3=u6!==void 0;const p3=y3?u6:d2;{const S3=z.useRef(u6!==void 0);z.useEffect(()=>{const A=S3.current;if(A!==y3){const D2=A?"controlled":"uncontrolled";const w=y3?"controlled":"uncontrolled";console.warn(`${o4} is changing from ${D2} to ${w}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}S3.current=y3},[y3,o4])}const g3=z.useCallback(S3=>{if(y3){const A=Sp(S3)?S3(u6):S3;if(A!==u6){v3.current?.(A)}}else{h2(S3)}},[y3,u6,h2,v3]);return[p3,g3]}__name(dS,"dS");i(dS,"useControllableState");function bp({defaultProp:u6,onChange:r4}){const[f3,o4]=z.useState(u6);const d2=z.useRef(f3);const h2=z.useRef(r4);pp(()=>{h2.current=r4},[r4]);z.useEffect(()=>{if(d2.current!==f3){h2.current?.(f3);d2.current=f3}},[f3,d2]);return[f3,o4,h2]}__name(bp,"bp");i(bp,"useUncontrolledState");function Sp(u6){return typeof u6==="function"}__name(Sp,"Sp");i(Sp,"isFunction");var Ep=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"];var sn=Ep.reduce((u6,r4)=>{const f3=Yi(`Primitive.${r4}`);const o4=z.forwardRef((d2,h2)=>{const{asChild:v3,...y3}=d2;const p3=v3?f3:r4;if(typeof window!=="undefined"){window[Symbol.for("radix-ui")]=true}return Ht.jsx(p3,{...y3,ref:h2})});o4.displayName=`Primitive.${r4}`;return{...u6,[r4]:o4}},{});function xp(u6,r4){if(u6)Bo.flushSync(()=>u6.dispatchEvent(r4))}__name(xp,"xp");i(xp,"dispatchDiscreteCustomEvent");function mS(u6){const r4=u6+"CollectionProvider";const[f3,o4]=av(r4);const[d2,h2]=f3(r4,{collectionRef:{current:null},itemMap:new Map});const v3=i(O5=>{const{scope:U3,children:Y5}=O5;const Q4=sl.useRef(null);const Z4=sl.useRef(new Map).current;return Ht.jsx(d2,{scope:U3,itemMap:Z4,collectionRef:Q4,children:Y5})},"CollectionProvider");v3.displayName=r4;const y3=u6+"CollectionSlot";const p3=Yi(y3);const g3=sl.forwardRef((O5,U3)=>{const{scope:Y5,children:Q4}=O5;const Z4=h2(y3,Y5);const k4=on(U3,Z4.collectionRef);return Ht.jsx(p3,{ref:k4,children:Q4})});g3.displayName=y3;const S3=u6+"CollectionItemSlot";const A="data-radix-collection-item";const D2=Yi(S3);const w=sl.forwardRef((O5,U3)=>{const{scope:Y5,children:Q4,...Z4}=O5;const k4=sl.useRef(null);const X5=on(U3,k4);const et5=h2(S3,Y5);sl.useEffect(()=>{et5.itemMap.set(k4,{ref:k4,...Z4});return()=>void et5.itemMap.delete(k4)});return Ht.jsx(D2,{...{[A]:""},ref:X5,children:Q4})});w.displayName=S3;function H2(O5){const U3=h2(u6+"CollectionConsumer",O5);const Y5=sl.useCallback(()=>{const Q4=U3.collectionRef.current;if(!Q4)return[];const Z4=Array.from(Q4.querySelectorAll(`[${A}]`));const k4=Array.from(U3.itemMap.values());const X5=k4.sort((et5,W4)=>Z4.indexOf(et5.ref.current)-Z4.indexOf(W4.ref.current));return X5},[U3.collectionRef,U3.itemMap]);return Y5}__name(H2,"H");i(H2,"useCollection");return[{Provider:v3,Slot:g3,ItemSlot:w},H2,o4]}__name(mS,"mS");i(mS,"createCollection");var Ap=z.createContext(void 0);function hS(u6){const r4=z.useContext(Ap);return u6||r4||"ltr"}__name(hS,"hS");i(hS,"useDirection");function aa(u6){const r4=z.useRef(u6);z.useEffect(()=>{r4.current=u6});return z.useMemo(()=>(...f3)=>r4.current?.(...f3),[])}__name(aa,"aa");i(aa,"useCallbackRef$1");function Tp(u6,r4=globalThis?.document){const f3=aa(u6);z.useEffect(()=>{const o4=i(d2=>{if(d2.key==="Escape"){f3(d2)}},"handleKeyDown");r4.addEventListener("keydown",o4,{capture:true});return()=>r4.removeEventListener("keydown",o4,{capture:true})},[f3,r4])}__name(Tp,"Tp");i(Tp,"useEscapeKeydown");var Op="DismissableLayer";var _o="dismissableLayer.update";var wp="dismissableLayer.pointerDownOutside";var Rp="dismissableLayer.focusOutside";var dh;var uv=z.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set});var Mp=z.forwardRef((u6,r4)=>{const{disableOutsidePointerEvents:f3=false,onEscapeKeyDown:o4,onPointerDownOutside:d2,onFocusOutside:h2,onInteractOutside:v3,onDismiss:y3,...p3}=u6;const g3=z.useContext(uv);const[S3,A]=z.useState(null);const D2=S3?.ownerDocument??globalThis?.document;const[,w]=z.useState({});const H2=on(r4,W4=>A(W4));const O5=Array.from(g3.layers);const[U3]=[...g3.layersWithOutsidePointerEventsDisabled].slice(-1);const Y5=O5.indexOf(U3);const Q4=S3?O5.indexOf(S3):-1;const Z4=g3.layersWithOutsidePointerEventsDisabled.size>0;const k4=Q4>=Y5;const X5=Cp(W4=>{const J2=W4.target;const rt6=[...g3.branches].some(Et4=>Et4.contains(J2));if(!k4||rt6)return;d2?.(W4);v3?.(W4);if(!W4.defaultPrevented)y3?.()},D2);const et5=Dp(W4=>{const J2=W4.target;const rt6=[...g3.branches].some(Et4=>Et4.contains(J2));if(rt6)return;h2?.(W4);v3?.(W4);if(!W4.defaultPrevented)y3?.()},D2);Tp(W4=>{const J2=Q4===g3.layers.size-1;if(!J2)return;o4?.(W4);if(!W4.defaultPrevented&&y3){W4.preventDefault();y3()}},D2);z.useEffect(()=>{if(!S3)return;if(f3){if(g3.layersWithOutsidePointerEventsDisabled.size===0){dh=D2.body.style.pointerEvents;D2.body.style.pointerEvents="none"}g3.layersWithOutsidePointerEventsDisabled.add(S3)}g3.layers.add(S3);mh();return()=>{if(f3&&g3.layersWithOutsidePointerEventsDisabled.size===1){D2.body.style.pointerEvents=dh}}},[S3,D2,f3,g3]);z.useEffect(()=>{return()=>{if(!S3)return;g3.layers.delete(S3);g3.layersWithOutsidePointerEventsDisabled.delete(S3);mh()}},[S3,g3]);z.useEffect(()=>{const W4=i(()=>w({}),"handleUpdate");document.addEventListener(_o,W4);return()=>document.removeEventListener(_o,W4)},[]);return Ht.jsx(sn.div,{...p3,ref:H2,style:{pointerEvents:Z4?k4?"auto":"none":void 0,...u6.style},onFocusCapture:go(u6.onFocusCapture,et5.onFocusCapture),onBlurCapture:go(u6.onBlurCapture,et5.onBlurCapture),onPointerDownCapture:go(u6.onPointerDownCapture,X5.onPointerDownCapture)})});Mp.displayName=Op;var zp="DismissableLayerBranch";var _p=z.forwardRef((u6,r4)=>{const f3=z.useContext(uv);const o4=z.useRef(null);const d2=on(r4,o4);z.useEffect(()=>{const h2=o4.current;if(h2){f3.branches.add(h2);return()=>{f3.branches.delete(h2)}}},[f3.branches]);return Ht.jsx(sn.div,{...u6,ref:d2})});_p.displayName=zp;function Cp(u6,r4=globalThis?.document){const f3=aa(u6);const o4=z.useRef(false);const d2=z.useRef(()=>{});z.useEffect(()=>{const h2=i(y3=>{if(y3.target&&!o4.current){let p3=i(function(){iv(wp,f3,g3,{discrete:true})},"handleAndDispatchPointerDownOutsideEvent2");const g3={originalEvent:y3};if(y3.pointerType==="touch"){r4.removeEventListener("click",d2.current);d2.current=p3;r4.addEventListener("click",d2.current,{once:true})}else{p3()}}else{r4.removeEventListener("click",d2.current)}o4.current=false},"handlePointerDown");const v3=window.setTimeout(()=>{r4.addEventListener("pointerdown",h2)},0);return()=>{window.clearTimeout(v3);r4.removeEventListener("pointerdown",h2);r4.removeEventListener("click",d2.current)}},[r4,f3]);return{onPointerDownCapture:i(()=>o4.current=true,"onPointerDownCapture")}}__name(Cp,"Cp");i(Cp,"usePointerDownOutside");function Dp(u6,r4=globalThis?.document){const f3=aa(u6);const o4=z.useRef(false);z.useEffect(()=>{const d2=i(h2=>{if(h2.target&&!o4.current){const v3={originalEvent:h2};iv(Rp,f3,v3,{discrete:false})}},"handleFocus");r4.addEventListener("focusin",d2);return()=>r4.removeEventListener("focusin",d2)},[r4,f3]);return{onFocusCapture:i(()=>o4.current=true,"onFocusCapture"),onBlurCapture:i(()=>o4.current=false,"onBlurCapture")}}__name(Dp,"Dp");i(Dp,"useFocusOutside");function mh(){const u6=new CustomEvent(_o);document.dispatchEvent(u6)}__name(mh,"mh");i(mh,"dispatchUpdate");function iv(u6,r4,f3,{discrete:o4}){const d2=f3.originalEvent.target;const h2=new CustomEvent(u6,{bubbles:false,cancelable:true,detail:f3});if(r4)d2.addEventListener(u6,r4,{once:true});if(o4){xp(d2,h2)}else{d2.dispatchEvent(h2)}}__name(iv,"iv");i(iv,"handleAndDispatchCustomEvent");var yo=0;function vS(){z.useEffect(()=>{const u6=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",u6[0]??hh());document.body.insertAdjacentElement("beforeend",u6[1]??hh());yo++;return()=>{if(yo===1){document.querySelectorAll("[data-radix-focus-guard]").forEach(r4=>r4.remove())}yo--}},[])}__name(vS,"vS");i(vS,"useFocusGuards");function hh(){const u6=document.createElement("span");u6.setAttribute("data-radix-focus-guard","");u6.tabIndex=0;u6.style.outline="none";u6.style.opacity="0";u6.style.position="fixed";u6.style.pointerEvents="none";return u6}__name(hh,"hh");i(hh,"createFocusGuard");var po="focusScope.autoFocusOnMount";var bo="focusScope.autoFocusOnUnmount";var vh={bubbles:false,cancelable:true};var Np="FocusScope";var Up=z.forwardRef((u6,r4)=>{const{loop:f3=false,trapped:o4=false,onMountAutoFocus:d2,onUnmountAutoFocus:h2,...v3}=u6;const[y3,p3]=z.useState(null);const g3=aa(d2);const S3=aa(h2);const A=z.useRef(null);const D2=on(r4,O5=>p3(O5));const w=z.useRef({paused:false,pause(){this.paused=true},resume(){this.paused=false}}).current;z.useEffect(()=>{if(o4){let O5=i(function(Z4){if(w.paused||!y3)return;const k4=Z4.target;if(y3.contains(k4)){A.current=k4}else{jl(A.current,{select:true})}},"handleFocusIn2"),U3=i(function(Z4){if(w.paused||!y3)return;const k4=Z4.relatedTarget;if(k4===null)return;if(!y3.contains(k4)){jl(A.current,{select:true})}},"handleFocusOut2"),Y5=i(function(Z4){const k4=document.activeElement;if(k4!==document.body)return;for(const X5 of Z4){if(X5.removedNodes.length>0)jl(y3)}},"handleMutations2");document.addEventListener("focusin",O5);document.addEventListener("focusout",U3);const Q4=new MutationObserver(Y5);if(y3)Q4.observe(y3,{childList:true,subtree:true});return()=>{document.removeEventListener("focusin",O5);document.removeEventListener("focusout",U3);Q4.disconnect()}}},[o4,y3,w.paused]);z.useEffect(()=>{if(y3){yh.add(w);const O5=document.activeElement;const U3=y3.contains(O5);if(!U3){const Y5=new CustomEvent(po,vh);y3.addEventListener(po,g3);y3.dispatchEvent(Y5);if(!Y5.defaultPrevented){Hp(jp(cv(y3)),{select:true});if(document.activeElement===O5){jl(y3)}}}return()=>{y3.removeEventListener(po,g3);setTimeout(()=>{const Y5=new CustomEvent(bo,vh);y3.addEventListener(bo,S3);y3.dispatchEvent(Y5);if(!Y5.defaultPrevented){jl(O5??document.body,{select:true})}y3.removeEventListener(bo,S3);yh.remove(w)},0)}}},[y3,g3,S3,w]);const H2=z.useCallback(O5=>{if(!f3&&!o4)return;if(w.paused)return;const U3=O5.key==="Tab"&&!O5.altKey&&!O5.ctrlKey&&!O5.metaKey;const Y5=document.activeElement;if(U3&&Y5){const Q4=O5.currentTarget;const[Z4,k4]=Bp(Q4);const X5=Z4&&k4;if(!X5){if(Y5===Q4)O5.preventDefault()}else{if(!O5.shiftKey&&Y5===k4){O5.preventDefault();if(f3)jl(Z4,{select:true})}else if(O5.shiftKey&&Y5===Z4){O5.preventDefault();if(f3)jl(k4,{select:true})}}}},[f3,o4,w.paused]);return Ht.jsx(sn.div,{tabIndex:-1,...v3,ref:D2,onKeyDown:H2})});Up.displayName=Np;function Hp(u6,{select:r4=false}={}){const f3=document.activeElement;for(const o4 of u6){jl(o4,{select:r4});if(document.activeElement!==f3)return}}__name(Hp,"Hp");i(Hp,"focusFirst");function Bp(u6){const r4=cv(u6);const f3=gh(r4,u6);const o4=gh(r4.reverse(),u6);return[f3,o4]}__name(Bp,"Bp");i(Bp,"getTabbableEdges");function cv(u6){const r4=[];const f3=document.createTreeWalker(u6,NodeFilter.SHOW_ELEMENT,{acceptNode:i(o4=>{const d2=o4.tagName==="INPUT"&&o4.type==="hidden";if(o4.disabled||o4.hidden||d2)return NodeFilter.FILTER_SKIP;return o4.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});while(f3.nextNode())r4.push(f3.currentNode);return r4}__name(cv,"cv");i(cv,"getTabbableCandidates");function gh(u6,r4){for(const f3 of u6){if(!Lp(f3,{upTo:r4}))return f3}}__name(gh,"gh");i(gh,"findVisible");function Lp(u6,{upTo:r4}){if(getComputedStyle(u6).visibility==="hidden")return true;while(u6){if(r4!==void 0&&u6===r4)return false;if(getComputedStyle(u6).display==="none")return true;u6=u6.parentElement}return false}__name(Lp,"Lp");i(Lp,"isHidden");function qp(u6){return u6 instanceof HTMLInputElement&&"select"in u6}__name(qp,"qp");i(qp,"isSelectableInput");function jl(u6,{select:r4=false}={}){if(u6&&u6.focus){const f3=document.activeElement;u6.focus({preventScroll:true});if(u6!==f3&&qp(u6)&&r4)u6.select()}}__name(jl,"jl");i(jl,"focus");var yh=Yp();function Yp(){let u6=[];return{add(r4){const f3=u6[0];if(r4!==f3){f3?.pause()}u6=ph(u6,r4);u6.unshift(r4)},remove(r4){u6=ph(u6,r4);u6[0]?.resume()}}}__name(Yp,"Yp");i(Yp,"createFocusScopesStack");function ph(u6,r4){const f3=[...u6];const o4=f3.indexOf(r4);if(o4!==-1){f3.splice(o4,1)}return f3}__name(ph,"ph");i(ph,"arrayRemove");function jp(u6){return u6.filter(r4=>r4.tagName!=="A")}__name(jp,"jp");i(jp,"removeLinks");var Gp=Qi[" useId ".trim().toString()]||(()=>void 0);var Xp=0;function gS(u6){const[r4,f3]=z.useState(Gp());na(()=>{f3(o4=>o4??String(Xp++))},[u6]);return u6||(r4?`radix-${r4}`:"")}__name(gS,"gS");i(gS,"useId");var Vp=["top","right","bottom","left"];var Gl=Math.min;var pe=Math.max;var ji=Math.round;var zi=Math.floor;var ke=i(u6=>({x:u6,y:u6}),"createCoords");var Qp={left:"right",right:"left",bottom:"top",top:"bottom"};var Zp={start:"end",end:"start"};function Co(u6,r4,f3){return pe(u6,Gl(r4,f3))}__name(Co,"Co");i(Co,"clamp");function dl(u6,r4){return typeof u6==="function"?u6(r4):u6}__name(dl,"dl");i(dl,"evaluate");function ml(u6){return u6.split("-")[0]}__name(ml,"ml");i(ml,"getSide");function ra(u6){return u6.split("-")[1]}__name(ra,"ra");i(ra,"getAlignment");function jo(u6){return u6==="x"?"y":"x"}__name(jo,"jo");i(jo,"getOppositeAxis");function Go(u6){return u6==="y"?"height":"width"}__name(Go,"Go");i(Go,"getAxisLength");var kp=new Set(["top","bottom"]);function Ze(u6){return kp.has(ml(u6))?"y":"x"}__name(Ze,"Ze");i(Ze,"getSideAxis");function Xo(u6){return jo(Ze(u6))}__name(Xo,"Xo");i(Xo,"getAlignmentAxis");function Kp(u6,r4,f3){if(f3===void 0){f3=false}const o4=ra(u6);const d2=Xo(u6);const h2=Go(d2);let v3=d2==="x"?o4===(f3?"end":"start")?"right":"left":o4==="start"?"bottom":"top";if(r4.reference[h2]>r4.floating[h2]){v3=Gi(v3)}return[v3,Gi(v3)]}__name(Kp,"Kp");i(Kp,"getAlignmentSides");function Jp(u6){const r4=Gi(u6);return[Do(u6),r4,Do(r4)]}__name(Jp,"Jp");i(Jp,"getExpandedPlacements");function Do(u6){return u6.replace(/start|end/g,r4=>Zp[r4])}__name(Do,"Do");i(Do,"getOppositeAlignmentPlacement");var bh=["left","right"];var Sh=["right","left"];var Wp=["top","bottom"];var $p=["bottom","top"];function Fp(u6,r4,f3){switch(u6){case"top":case"bottom":if(f3)return r4?Sh:bh;return r4?bh:Sh;case"left":case"right":return r4?Wp:$p;default:return[]}}__name(Fp,"Fp");i(Fp,"getSideList");function Pp(u6,r4,f3,o4){const d2=ra(u6);let h2=Fp(ml(u6),f3==="start",o4);if(d2){h2=h2.map(v3=>v3+"-"+d2);if(r4){h2=h2.concat(h2.map(Do))}}return h2}__name(Pp,"Pp");i(Pp,"getOppositeAxisPlacements");function Gi(u6){return u6.replace(/left|right|bottom|top/g,r4=>Qp[r4])}__name(Gi,"Gi");i(Gi,"getOppositePlacement");function Ip(u6){return{top:0,right:0,bottom:0,left:0,...u6}}__name(Ip,"Ip");i(Ip,"expandPaddingObject");function rv(u6){return typeof u6!=="number"?Ip(u6):{top:u6,right:u6,bottom:u6,left:u6}}__name(rv,"rv");i(rv,"getPaddingObject");function Xi(u6){const{x:r4,y:f3,width:o4,height:d2}=u6;return{width:o4,height:d2,top:f3,left:r4,right:r4+o4,bottom:f3+d2,x:r4,y:f3}}__name(Xi,"Xi");i(Xi,"rectToClientRect");function Eh(u6,r4,f3){let{reference:o4,floating:d2}=u6;const h2=Ze(r4);const v3=Xo(r4);const y3=Go(v3);const p3=ml(r4);const g3=h2==="y";const S3=o4.x+o4.width/2-d2.width/2;const A=o4.y+o4.height/2-d2.height/2;const D2=o4[y3]/2-d2[y3]/2;let w;switch(p3){case"top":w={x:S3,y:o4.y-d2.height};break;case"bottom":w={x:S3,y:o4.y+o4.height};break;case"right":w={x:o4.x+o4.width,y:A};break;case"left":w={x:o4.x-d2.width,y:A};break;default:w={x:o4.x,y:o4.y}}switch(ra(r4)){case"start":w[v3]-=D2*(f3&&g3?-1:1);break;case"end":w[v3]+=D2*(f3&&g3?-1:1);break}return w}__name(Eh,"Eh");i(Eh,"computeCoordsFromPlacement");var tb=i(async(u6,r4,f3)=>{const{placement:o4="bottom",strategy:d2="absolute",middleware:h2=[],platform:v3}=f3;const y3=h2.filter(Boolean);const p3=await(v3.isRTL==null?void 0:v3.isRTL(r4));let g3=await v3.getElementRects({reference:u6,floating:r4,strategy:d2});let{x:S3,y:A}=Eh(g3,o4,p3);let D2=o4;let w={};let H2=0;for(let O5=0;O5({name:"arrow",options:u6,async fn(r4){const{x:f3,y:o4,placement:d2,rects:h2,platform:v3,elements:y3,middlewareData:p3}=r4;const{element:g3,padding:S3=0}=dl(u6,r4)||{};if(g3==null){return{}}const A=rv(S3);const D2={x:f3,y:o4};const w=Xo(d2);const H2=Go(w);const O5=await v3.getDimensions(g3);const U3=w==="y";const Y5=U3?"top":"left";const Q4=U3?"bottom":"right";const Z4=U3?"clientHeight":"clientWidth";const k4=h2.reference[H2]+h2.reference[w]-D2[w]-h2.floating[H2];const X5=D2[w]-h2.reference[w];const et5=await(v3.getOffsetParent==null?void 0:v3.getOffsetParent(g3));let W4=et5?et5[Z4]:0;if(!W4||!await(v3.isElement==null?void 0:v3.isElement(et5))){W4=y3.floating[Z4]||h2.floating[H2]}const J2=k4/2-X5/2;const rt6=W4/2-O5[H2]/2-1;const Et4=Gl(A[Y5],rt6);const Mt3=Gl(A[Q4],rt6);const vt3=Et4;const Ot3=W4-O5[H2]-Mt3;const St3=W4/2-O5[H2]/2+J2;const gt4=Co(vt3,St3,Ot3);const C2=!p3.arrow&&ra(d2)!=null&&St3!==gt4&&h2.reference[H2]/2-(St3St3<=0)){var Mt3,vt3;const St3=(((Mt3=h2.flip)==null?void 0:Mt3.index)||0)+1;const gt4=W4[St3];if(gt4){const V=A==="alignment"?Q4!==Ze(gt4):false;if(!V||Et4.every(B4=>B4.overflows[0]>0&&Ze(B4.placement)===Q4)){return{data:{index:St3,overflows:Et4},reset:{placement:gt4}}}}let C2=(vt3=Et4.filter(V=>V.overflows[0]<=0).sort((V,B4)=>V.overflows[1]-B4.overflows[1])[0])==null?void 0:vt3.placement;if(!C2){switch(w){case"bestFit":{var Ot3;const V=(Ot3=Et4.filter(B4=>{if(et5){const ct5=Ze(B4.placement);return ct5===Q4||ct5==="y"}return true}).map(B4=>[B4.placement,B4.overflows.filter(ct5=>ct5>0).reduce((ct5,E6)=>ct5+E6,0)]).sort((B4,ct5)=>B4[1]-ct5[1])[0])==null?void 0:Ot3[0];if(V){C2=V}break}case"initialPlacement":C2=y3;break}}if(d2!==C2){return{reset:{placement:C2}}}}return{}}}},"flip$2");function xh(u6,r4){return{top:u6.top-r4.height,right:u6.right-r4.width,bottom:u6.bottom-r4.height,left:u6.left-r4.width}}__name(xh,"xh");i(xh,"getSideOffsets");function Ah(u6){return Vp.some(r4=>u6[r4]>=0)}__name(Ah,"Ah");i(Ah,"isAnySideFullyClipped");var nb=i(function(u6){if(u6===void 0){u6={}}return{name:"hide",options:u6,async fn(r4){const{rects:f3}=r4;const{strategy:o4="referenceHidden",...d2}=dl(u6,r4);switch(o4){case"referenceHidden":{const h2=await fu(r4,{...d2,elementContext:"reference"});const v3=xh(h2,f3.reference);return{data:{referenceHiddenOffsets:v3,referenceHidden:Ah(v3)}}}case"escaped":{const h2=await fu(r4,{...d2,altBoundary:true});const v3=xh(h2,f3.floating);return{data:{escapedOffsets:v3,escaped:Ah(v3)}}}default:{return{}}}}}},"hide$2");var ov=new Set(["left","top"]);async function ab(u6,r4){const{placement:f3,platform:o4,elements:d2}=u6;const h2=await(o4.isRTL==null?void 0:o4.isRTL(d2.floating));const v3=ml(f3);const y3=ra(f3);const p3=Ze(f3)==="y";const g3=ov.has(v3)?-1:1;const S3=h2&&p3?-1:1;const A=dl(r4,u6);let{mainAxis:D2,crossAxis:w,alignmentAxis:H2}=typeof A==="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};if(y3&&typeof H2==="number"){w=y3==="end"?H2*-1:H2}return p3?{x:w*S3,y:D2*g3}:{x:D2*g3,y:w*S3}}__name(ab,"ab");i(ab,"convertValueToCoords");var ub=i(function(u6){if(u6===void 0){u6=0}return{name:"offset",options:u6,async fn(r4){var f3,o4;const{x:d2,y:h2,placement:v3,middlewareData:y3}=r4;const p3=await ab(r4,u6);if(v3===((f3=y3.offset)==null?void 0:f3.placement)&&(o4=y3.arrow)!=null&&o4.alignmentOffset){return{}}return{x:d2+p3.x,y:h2+p3.y,data:{...p3,placement:v3}}}}},"offset$2");var ib=i(function(u6){if(u6===void 0){u6={}}return{name:"shift",options:u6,async fn(r4){const{x:f3,y:o4,placement:d2}=r4;const{mainAxis:h2=true,crossAxis:v3=false,limiter:y3={fn:i(U3=>{let{x:Y5,y:Q4}=U3;return{x:Y5,y:Q4}},"fn")},...p3}=dl(u6,r4);const g3={x:f3,y:o4};const S3=await fu(r4,p3);const A=Ze(ml(d2));const D2=jo(A);let w=g3[D2];let H2=g3[A];if(h2){const U3=D2==="y"?"top":"left";const Y5=D2==="y"?"bottom":"right";const Q4=w+S3[U3];const Z4=w-S3[Y5];w=Co(Q4,w,Z4)}if(v3){const U3=A==="y"?"top":"left";const Y5=A==="y"?"bottom":"right";const Q4=H2+S3[U3];const Z4=H2-S3[Y5];H2=Co(Q4,H2,Z4)}const O5=y3.fn({...r4,[D2]:w,[A]:H2});return{...O5,data:{x:O5.x-f3,y:O5.y-o4,enabled:{[D2]:h2,[A]:v3}}}}}},"shift$2");var cb=i(function(u6){if(u6===void 0){u6={}}return{options:u6,fn(r4){const{x:f3,y:o4,placement:d2,rects:h2,middlewareData:v3}=r4;const{offset:y3=0,mainAxis:p3=true,crossAxis:g3=true}=dl(u6,r4);const S3={x:f3,y:o4};const A=Ze(d2);const D2=jo(A);let w=S3[D2];let H2=S3[A];const O5=dl(y3,r4);const U3=typeof O5==="number"?{mainAxis:O5,crossAxis:0}:{mainAxis:0,crossAxis:0,...O5};if(p3){const Z4=D2==="y"?"height":"width";const k4=h2.reference[D2]-h2.floating[Z4]+U3.mainAxis;const X5=h2.reference[D2]+h2.reference[Z4]-U3.mainAxis;if(wX5){w=X5}}if(g3){var Y5,Q4;const Z4=D2==="y"?"width":"height";const k4=ov.has(ml(d2));const X5=h2.reference[A]-h2.floating[Z4]+(k4?((Y5=v3.offset)==null?void 0:Y5[A])||0:0)+(k4?0:U3.crossAxis);const et5=h2.reference[A]+h2.reference[Z4]+(k4?0:((Q4=v3.offset)==null?void 0:Q4[A])||0)-(k4?U3.crossAxis:0);if(H2et5){H2=et5}}return{[D2]:w,[A]:H2}}}},"limitShift$2");var rb=i(function(u6){if(u6===void 0){u6={}}return{name:"size",options:u6,async fn(r4){var f3,o4;const{placement:d2,rects:h2,platform:v3,elements:y3}=r4;const{apply:p3=i(()=>{},"apply"),...g3}=dl(u6,r4);const S3=await fu(r4,g3);const A=ml(d2);const D2=ra(d2);const w=Ze(d2)==="y";const{width:H2,height:O5}=h2.floating;let U3;let Y5;if(A==="top"||A==="bottom"){U3=A;Y5=D2===(await(v3.isRTL==null?void 0:v3.isRTL(y3.floating))?"start":"end")?"left":"right"}else{Y5=A;U3=D2==="end"?"top":"bottom"}const Q4=O5-S3.top-S3.bottom;const Z4=H2-S3.left-S3.right;const k4=Gl(O5-S3[U3],Q4);const X5=Gl(H2-S3[Y5],Z4);const et5=!r4.middlewareData.shift;let W4=k4;let J2=X5;if((f3=r4.middlewareData.shift)!=null&&f3.enabled.x){J2=Z4}if((o4=r4.middlewareData.shift)!=null&&o4.enabled.y){W4=Q4}if(et5&&!D2){const Et4=pe(S3.left,0);const Mt3=pe(S3.right,0);const vt3=pe(S3.top,0);const Ot3=pe(S3.bottom,0);if(w){J2=H2-2*(Et4!==0||Mt3!==0?Et4+Mt3:pe(S3.left,S3.right))}else{W4=O5-2*(vt3!==0||Ot3!==0?vt3+Ot3:pe(S3.top,S3.bottom))}}await p3({...r4,availableWidth:J2,availableHeight:W4});const rt6=await v3.getDimensions(y3.floating);if(H2!==rt6.width||O5!==rt6.height){return{reset:{rects:true}}}return{}}}},"size$2");function Zi(){return typeof window!=="undefined"}__name(Zi,"Zi");i(Zi,"hasWindow");function oa(u6){if(fv(u6)){return(u6.nodeName||"").toLowerCase()}return"#document"}__name(oa,"oa");i(oa,"getNodeName");function be(u6){var r4;return(u6==null||(r4=u6.ownerDocument)==null?void 0:r4.defaultView)||window}__name(be,"be");i(be,"getWindow");function Je(u6){var r4;return(r4=(fv(u6)?u6.ownerDocument:u6.document)||window.document)==null?void 0:r4.documentElement}__name(Je,"Je");i(Je,"getDocumentElement");function fv(u6){if(!Zi()){return false}return u6 instanceof Node||u6 instanceof be(u6).Node}__name(fv,"fv");i(fv,"isNode");function Ne(u6){if(!Zi()){return false}return u6 instanceof Element||u6 instanceof be(u6).Element}__name(Ne,"Ne");i(Ne,"isElement");function Ke(u6){if(!Zi()){return false}return u6 instanceof HTMLElement||u6 instanceof be(u6).HTMLElement}__name(Ke,"Ke");i(Ke,"isHTMLElement");function Th(u6){if(!Zi()||typeof ShadowRoot==="undefined"){return false}return u6 instanceof ShadowRoot||u6 instanceof be(u6).ShadowRoot}__name(Th,"Th");i(Th,"isShadowRoot");var ob=new Set(["inline","contents"]);function du(u6){const{overflow:r4,overflowX:f3,overflowY:o4,display:d2}=Ue(u6);return/auto|scroll|overlay|hidden|clip/.test(r4+o4+f3)&&!ob.has(d2)}__name(du,"du");i(du,"isOverflowElement");var fb=new Set(["table","td","th"]);function sb(u6){return fb.has(oa(u6))}__name(sb,"sb");i(sb,"isTableElement");var db=[":popover-open",":modal"];function ki(u6){return db.some(r4=>{try{return u6.matches(r4)}catch(f3){return false}})}__name(ki,"ki");i(ki,"isTopLayer");var mb=["transform","translate","scale","rotate","perspective"];var hb=["transform","translate","scale","rotate","perspective","filter"];var vb=["paint","layout","strict","content"];function Vo(u6){const r4=Qo();const f3=Ne(u6)?Ue(u6):u6;return mb.some(o4=>f3[o4]?f3[o4]!=="none":false)||(f3.containerType?f3.containerType!=="normal":false)||!r4&&(f3.backdropFilter?f3.backdropFilter!=="none":false)||!r4&&(f3.filter?f3.filter!=="none":false)||hb.some(o4=>(f3.willChange||"").includes(o4))||vb.some(o4=>(f3.contain||"").includes(o4))}__name(Vo,"Vo");i(Vo,"isContainingBlock");function gb(u6){let r4=Xl(u6);while(Ke(r4)&&!ua(r4)){if(Vo(r4)){return r4}else if(ki(r4)){return null}r4=Xl(r4)}return null}__name(gb,"gb");i(gb,"getContainingBlock");function Qo(){if(typeof CSS==="undefined"||!CSS.supports)return false;return CSS.supports("-webkit-backdrop-filter","none")}__name(Qo,"Qo");i(Qo,"isWebKit");var yb=new Set(["html","body","#document"]);function ua(u6){return yb.has(oa(u6))}__name(ua,"ua");i(ua,"isLastTraversableNode");function Ue(u6){return be(u6).getComputedStyle(u6)}__name(Ue,"Ue");i(Ue,"getComputedStyle$1");function Ki(u6){if(Ne(u6)){return{scrollLeft:u6.scrollLeft,scrollTop:u6.scrollTop}}return{scrollLeft:u6.scrollX,scrollTop:u6.scrollY}}__name(Ki,"Ki");i(Ki,"getNodeScroll");function Xl(u6){if(oa(u6)==="html"){return u6}const r4=u6.assignedSlot||u6.parentNode||Th(u6)&&u6.host||Je(u6);return Th(r4)?r4.host:r4}__name(Xl,"Xl");i(Xl,"getParentNode");function sv(u6){const r4=Xl(u6);if(ua(r4)){return u6.ownerDocument?u6.ownerDocument.body:u6.body}if(Ke(r4)&&du(r4)){return r4}return sv(r4)}__name(sv,"sv");i(sv,"getNearestOverflowAncestor");function su(u6,r4,f3){var o4;if(r4===void 0){r4=[]}if(f3===void 0){f3=true}const d2=sv(u6);const h2=d2===((o4=u6.ownerDocument)==null?void 0:o4.body);const v3=be(d2);if(h2){const y3=No(v3);return r4.concat(v3,v3.visualViewport||[],du(d2)?d2:[],y3&&f3?su(y3):[])}return r4.concat(d2,su(d2,[],f3))}__name(su,"su");i(su,"getOverflowAncestors");function No(u6){return u6.parent&&Object.getPrototypeOf(u6.parent)?u6.frameElement:null}__name(No,"No");i(No,"getFrameElement");function dv(u6){const r4=Ue(u6);let f3=parseFloat(r4.width)||0;let o4=parseFloat(r4.height)||0;const d2=Ke(u6);const h2=d2?u6.offsetWidth:f3;const v3=d2?u6.offsetHeight:o4;const y3=ji(f3)!==h2||ji(o4)!==v3;if(y3){f3=h2;o4=v3}return{width:f3,height:o4,$:y3}}__name(dv,"dv");i(dv,"getCssDimensions");function Zo(u6){return!Ne(u6)?u6.contextElement:u6}__name(Zo,"Zo");i(Zo,"unwrapElement");function ea(u6){const r4=Zo(u6);if(!Ke(r4)){return ke(1)}const f3=r4.getBoundingClientRect();const{width:o4,height:d2,$:h2}=dv(r4);let v3=(h2?ji(f3.width):f3.width)/o4;let y3=(h2?ji(f3.height):f3.height)/d2;if(!v3||!Number.isFinite(v3)){v3=1}if(!y3||!Number.isFinite(y3)){y3=1}return{x:v3,y:y3}}__name(ea,"ea");i(ea,"getScale");var pb=ke(0);function mv(u6){const r4=be(u6);if(!Qo()||!r4.visualViewport){return pb}return{x:r4.visualViewport.offsetLeft,y:r4.visualViewport.offsetTop}}__name(mv,"mv");i(mv,"getVisualOffsets");function bb(u6,r4,f3){if(r4===void 0){r4=false}if(!f3||r4&&f3!==be(u6)){return false}return r4}__name(bb,"bb");i(bb,"shouldAddVisualOffsets");function fn(u6,r4,f3,o4){if(r4===void 0){r4=false}if(f3===void 0){f3=false}const d2=u6.getBoundingClientRect();const h2=Zo(u6);let v3=ke(1);if(r4){if(o4){if(Ne(o4)){v3=ea(o4)}}else{v3=ea(u6)}}const y3=bb(h2,f3,o4)?mv(h2):ke(0);let p3=(d2.left+y3.x)/v3.x;let g3=(d2.top+y3.y)/v3.y;let S3=d2.width/v3.x;let A=d2.height/v3.y;if(h2){const D2=be(h2);const w=o4&&Ne(o4)?be(o4):o4;let H2=D2;let O5=No(H2);while(O5&&o4&&w!==H2){const U3=ea(O5);const Y5=O5.getBoundingClientRect();const Q4=Ue(O5);const Z4=Y5.left+(O5.clientLeft+parseFloat(Q4.paddingLeft))*U3.x;const k4=Y5.top+(O5.clientTop+parseFloat(Q4.paddingTop))*U3.y;p3*=U3.x;g3*=U3.y;S3*=U3.x;A*=U3.y;p3+=Z4;g3+=k4;H2=be(O5);O5=No(H2)}}return Xi({width:S3,height:A,x:p3,y:g3})}__name(fn,"fn");i(fn,"getBoundingClientRect");function ko(u6,r4){const f3=Ki(u6).scrollLeft;if(!r4){return fn(Je(u6)).left+f3}return r4.left+f3}__name(ko,"ko");i(ko,"getWindowScrollBarX");function hv(u6,r4,f3){if(f3===void 0){f3=false}const o4=u6.getBoundingClientRect();const d2=o4.left+r4.scrollLeft-(f3?0:ko(u6,o4));const h2=o4.top+r4.scrollTop;return{x:d2,y:h2}}__name(hv,"hv");i(hv,"getHTMLOffset");function Sb(u6){let{elements:r4,rect:f3,offsetParent:o4,strategy:d2}=u6;const h2=d2==="fixed";const v3=Je(o4);const y3=r4?ki(r4.floating):false;if(o4===v3||y3&&h2){return f3}let p3={scrollLeft:0,scrollTop:0};let g3=ke(1);const S3=ke(0);const A=Ke(o4);if(A||!A&&!h2){if(oa(o4)!=="body"||du(v3)){p3=Ki(o4)}if(Ke(o4)){const w=fn(o4);g3=ea(o4);S3.x=w.x+o4.clientLeft;S3.y=w.y+o4.clientTop}}const D2=v3&&!A&&!h2?hv(v3,p3,true):ke(0);return{width:f3.width*g3.x,height:f3.height*g3.y,x:f3.x*g3.x-p3.scrollLeft*g3.x+S3.x+D2.x,y:f3.y*g3.y-p3.scrollTop*g3.y+S3.y+D2.y}}__name(Sb,"Sb");i(Sb,"convertOffsetParentRelativeRectToViewportRelativeRect");function Eb(u6){return Array.from(u6.getClientRects())}__name(Eb,"Eb");i(Eb,"getClientRects");function xb(u6){const r4=Je(u6);const f3=Ki(u6);const o4=u6.ownerDocument.body;const d2=pe(r4.scrollWidth,r4.clientWidth,o4.scrollWidth,o4.clientWidth);const h2=pe(r4.scrollHeight,r4.clientHeight,o4.scrollHeight,o4.clientHeight);let v3=-f3.scrollLeft+ko(u6);const y3=-f3.scrollTop;if(Ue(o4).direction==="rtl"){v3+=pe(r4.clientWidth,o4.clientWidth)-d2}return{width:d2,height:h2,x:v3,y:y3}}__name(xb,"xb");i(xb,"getDocumentRect");function Ab(u6,r4){const f3=be(u6);const o4=Je(u6);const d2=f3.visualViewport;let h2=o4.clientWidth;let v3=o4.clientHeight;let y3=0;let p3=0;if(d2){h2=d2.width;v3=d2.height;const g3=Qo();if(!g3||g3&&r4==="fixed"){y3=d2.offsetLeft;p3=d2.offsetTop}}return{width:h2,height:v3,x:y3,y:p3}}__name(Ab,"Ab");i(Ab,"getViewportRect");var Tb=new Set(["absolute","fixed"]);function Ob(u6,r4){const f3=fn(u6,true,r4==="fixed");const o4=f3.top+u6.clientTop;const d2=f3.left+u6.clientLeft;const h2=Ke(u6)?ea(u6):ke(1);const v3=u6.clientWidth*h2.x;const y3=u6.clientHeight*h2.y;const p3=d2*h2.x;const g3=o4*h2.y;return{width:v3,height:y3,x:p3,y:g3}}__name(Ob,"Ob");i(Ob,"getInnerBoundingClientRect");function Oh(u6,r4,f3){let o4;if(r4==="viewport"){o4=Ab(u6,f3)}else if(r4==="document"){o4=xb(Je(u6))}else if(Ne(r4)){o4=Ob(r4,f3)}else{const d2=mv(u6);o4={x:r4.x-d2.x,y:r4.y-d2.y,width:r4.width,height:r4.height}}return Xi(o4)}__name(Oh,"Oh");i(Oh,"getClientRectFromClippingAncestor");function vv(u6,r4){const f3=Xl(u6);if(f3===r4||!Ne(f3)||ua(f3)){return false}return Ue(f3).position==="fixed"||vv(f3,r4)}__name(vv,"vv");i(vv,"hasFixedPositionAncestor");function wb(u6,r4){const f3=r4.get(u6);if(f3){return f3}let o4=su(u6,[],false).filter(y3=>Ne(y3)&&oa(y3)!=="body");let d2=null;const h2=Ue(u6).position==="fixed";let v3=h2?Xl(u6):u6;while(Ne(v3)&&!ua(v3)){const y3=Ue(v3);const p3=Vo(v3);if(!p3&&y3.position==="fixed"){d2=null}const g3=h2?!p3&&!d2:!p3&&y3.position==="static"&&!!d2&&Tb.has(d2.position)||du(v3)&&!p3&&vv(u6,v3);if(g3){o4=o4.filter(S3=>S3!==v3)}else{d2=y3}v3=Xl(v3)}r4.set(u6,o4);return o4}__name(wb,"wb");i(wb,"getClippingElementAncestors");function Rb(u6){let{element:r4,boundary:f3,rootBoundary:o4,strategy:d2}=u6;const h2=f3==="clippingAncestors"?ki(r4)?[]:wb(r4,this._c):[].concat(f3);const v3=[...h2,o4];const y3=v3[0];const p3=v3.reduce((g3,S3)=>{const A=Oh(r4,S3,d2);g3.top=pe(A.top,g3.top);g3.right=Gl(A.right,g3.right);g3.bottom=Gl(A.bottom,g3.bottom);g3.left=pe(A.left,g3.left);return g3},Oh(r4,y3,d2));return{width:p3.right-p3.left,height:p3.bottom-p3.top,x:p3.left,y:p3.top}}__name(Rb,"Rb");i(Rb,"getClippingRect");function Mb(u6){const{width:r4,height:f3}=dv(u6);return{width:r4,height:f3}}__name(Mb,"Mb");i(Mb,"getDimensions");function zb(u6,r4,f3){const o4=Ke(r4);const d2=Je(r4);const h2=f3==="fixed";const v3=fn(u6,true,h2,r4);let y3={scrollLeft:0,scrollTop:0};const p3=ke(0);function g3(){p3.x=ko(d2)}__name(g3,"g");i(g3,"setLeftRTLScrollbarOffset");if(o4||!o4&&!h2){if(oa(r4)!=="body"||du(d2)){y3=Ki(r4)}if(o4){const w=fn(r4,true,h2,r4);p3.x=w.x+r4.clientLeft;p3.y=w.y+r4.clientTop}else if(d2){g3()}}if(h2&&!o4&&d2){g3()}const S3=d2&&!o4&&!h2?hv(d2,y3):ke(0);const A=v3.left+y3.scrollLeft-p3.x-S3.x;const D2=v3.top+y3.scrollTop-p3.y-S3.y;return{x:A,y:D2,width:v3.width,height:v3.height}}__name(zb,"zb");i(zb,"getRectRelativeToOffsetParent");function So(u6){return Ue(u6).position==="static"}__name(So,"So");i(So,"isStaticPositioned");function wh(u6,r4){if(!Ke(u6)||Ue(u6).position==="fixed"){return null}if(r4){return r4(u6)}let f3=u6.offsetParent;if(Je(u6)===f3){f3=f3.ownerDocument.body}return f3}__name(wh,"wh");i(wh,"getTrueOffsetParent");function gv(u6,r4){const f3=be(u6);if(ki(u6)){return f3}if(!Ke(u6)){let d2=Xl(u6);while(d2&&!ua(d2)){if(Ne(d2)&&!So(d2)){return d2}d2=Xl(d2)}return f3}let o4=wh(u6,r4);while(o4&&sb(o4)&&So(o4)){o4=wh(o4,r4)}if(o4&&ua(o4)&&So(o4)&&!Vo(o4)){return f3}return o4||gb(u6)||f3}__name(gv,"gv");i(gv,"getOffsetParent");var _b=i(async function(u6){const r4=this.getOffsetParent||gv;const f3=this.getDimensions;const o4=await f3(u6.floating);return{reference:zb(u6.reference,await r4(u6.floating),u6.strategy),floating:{x:0,y:0,width:o4.width,height:o4.height}}},"getElementRects");function Cb(u6){return Ue(u6).direction==="rtl"}__name(Cb,"Cb");i(Cb,"isRTL");var Db={convertOffsetParentRelativeRectToViewportRelativeRect:Sb,getDocumentElement:Je,getClippingRect:Rb,getOffsetParent:gv,getElementRects:_b,getClientRects:Eb,getDimensions:Mb,getScale:ea,isElement:Ne,isRTL:Cb};function yv(u6,r4){return u6.x===r4.x&&u6.y===r4.y&&u6.width===r4.width&&u6.height===r4.height}__name(yv,"yv");i(yv,"rectsAreEqual");function Nb(u6,r4){let f3=null;let o4;const d2=Je(u6);function h2(){var y3;clearTimeout(o4);(y3=f3)==null||y3.disconnect();f3=null}__name(h2,"h");i(h2,"cleanup");function v3(y3,p3){if(y3===void 0){y3=false}if(p3===void 0){p3=1}h2();const g3=u6.getBoundingClientRect();const{left:S3,top:A,width:D2,height:w}=g3;if(!y3){r4()}if(!D2||!w){return}const H2=zi(A);const O5=zi(d2.clientWidth-(S3+D2));const U3=zi(d2.clientHeight-(A+w));const Y5=zi(S3);const Q4=-H2+"px "+-O5+"px "+-U3+"px "+-Y5+"px";const Z4={rootMargin:Q4,threshold:pe(0,Gl(1,p3))||1};let k4=true;function X5(et5){const W4=et5[0].intersectionRatio;if(W4!==p3){if(!k4){return v3()}if(!W4){o4=setTimeout(()=>{v3(false,1e-7)},1e3)}else{v3(false,W4)}}if(W4===1&&!yv(g3,u6.getBoundingClientRect())){v3()}k4=false}__name(X5,"X");i(X5,"handleObserve");try{f3=new IntersectionObserver(X5,{...Z4,root:d2.ownerDocument})}catch(et5){f3=new IntersectionObserver(X5,Z4)}f3.observe(u6)}__name(v3,"v");i(v3,"refresh");v3(true);return h2}__name(Nb,"Nb");i(Nb,"observeMove");function Ub(u6,r4,f3,o4){if(o4===void 0){o4={}}const{ancestorScroll:d2=true,ancestorResize:h2=true,elementResize:v3=typeof ResizeObserver==="function",layoutShift:y3=typeof IntersectionObserver==="function",animationFrame:p3=false}=o4;const g3=Zo(u6);const S3=d2||h2?[...g3?su(g3):[],...su(r4)]:[];S3.forEach(Y5=>{d2&&Y5.addEventListener("scroll",f3,{passive:true});h2&&Y5.addEventListener("resize",f3)});const A=g3&&y3?Nb(g3,f3):null;let D2=-1;let w=null;if(v3){w=new ResizeObserver(Y5=>{let[Q4]=Y5;if(Q4&&Q4.target===g3&&w){w.unobserve(r4);cancelAnimationFrame(D2);D2=requestAnimationFrame(()=>{var Z4;(Z4=w)==null||Z4.observe(r4)})}f3()});if(g3&&!p3){w.observe(g3)}w.observe(r4)}let H2;let O5=p3?fn(u6):null;if(p3){U3()}function U3(){const Y5=fn(u6);if(O5&&!yv(O5,Y5)){f3()}O5=Y5;H2=requestAnimationFrame(U3)}__name(U3,"U");i(U3,"frameLoop");f3();return()=>{var Y5;S3.forEach(Q4=>{d2&&Q4.removeEventListener("scroll",f3);h2&&Q4.removeEventListener("resize",f3)});A==null||A();(Y5=w)==null||Y5.disconnect();w=null;if(p3){cancelAnimationFrame(H2)}}}__name(Ub,"Ub");i(Ub,"autoUpdate");var Hb=ub;var Bb=ib;var Lb=lb;var qb=rb;var Yb=nb;var Rh=eb;var jb=cb;var Gb=i((u6,r4,f3)=>{const o4=new Map;const d2={platform:Db,...f3};const h2={...d2.platform,_c:o4};return tb(u6,r4,{...d2,platform:h2})},"computePosition");var Xb=typeof document!=="undefined";var Vb=i(__name(function u(){},"u"),"noop");var Ui=Xb?z.useLayoutEffect:Vb;function Vi(u6,r4){if(u6===r4){return true}if(typeof u6!==typeof r4){return false}if(typeof u6==="function"&&u6.toString()===r4.toString()){return true}let f3;let o4;let d2;if(u6&&r4&&typeof u6==="object"){if(Array.isArray(u6)){f3=u6.length;if(f3!==r4.length)return false;for(o4=f3;o4--!==0;){if(!Vi(u6[o4],r4[o4])){return false}}return true}d2=Object.keys(u6);f3=d2.length;if(f3!==Object.keys(r4).length){return false}for(o4=f3;o4--!==0;){if(!{}.hasOwnProperty.call(r4,d2[o4])){return false}}for(o4=f3;o4--!==0;){const h2=d2[o4];if(h2==="_owner"&&u6.$$typeof){continue}if(!Vi(u6[h2],r4[h2])){return false}}return true}return u6!==u6&&r4!==r4}__name(Vi,"Vi");i(Vi,"deepEqual");function pv(u6){if(typeof window==="undefined"){return 1}const r4=u6.ownerDocument.defaultView||window;return r4.devicePixelRatio||1}__name(pv,"pv");i(pv,"getDPR");function Mh(u6,r4){const f3=pv(u6);return Math.round(r4*f3)/f3}__name(Mh,"Mh");i(Mh,"roundByDPR");function Eo(u6){const r4=z.useRef(u6);Ui(()=>{r4.current=u6});return r4}__name(Eo,"Eo");i(Eo,"useLatestRef");function Qb(u6){if(u6===void 0){u6={}}const{placement:r4="bottom",strategy:f3="absolute",middleware:o4=[],platform:d2,elements:{reference:h2,floating:v3}={},transform:y3=true,whileElementsMounted:p3,open:g3}=u6;const[S3,A]=z.useState({x:0,y:0,strategy:f3,placement:r4,middlewareData:{},isPositioned:false});const[D2,w]=z.useState(o4);if(!Vi(D2,o4)){w(o4)}const[H2,O5]=z.useState(null);const[U3,Y5]=z.useState(null);const Q4=z.useCallback(B4=>{if(B4!==et5.current){et5.current=B4;O5(B4)}},[]);const Z4=z.useCallback(B4=>{if(B4!==W4.current){W4.current=B4;Y5(B4)}},[]);const k4=h2||H2;const X5=v3||U3;const et5=z.useRef(null);const W4=z.useRef(null);const J2=z.useRef(S3);const rt6=p3!=null;const Et4=Eo(p3);const Mt3=Eo(d2);const vt3=Eo(g3);const Ot3=z.useCallback(()=>{if(!et5.current||!W4.current){return}const B4={placement:r4,strategy:f3,middleware:D2};if(Mt3.current){B4.platform=Mt3.current}Gb(et5.current,W4.current,B4).then(ct5=>{const E6={...ct5,isPositioned:vt3.current!==false};if(St3.current&&!Vi(J2.current,E6)){J2.current=E6;Bo.flushSync(()=>{A(E6)})}})},[D2,r4,f3,Mt3,vt3]);Ui(()=>{if(g3===false&&J2.current.isPositioned){J2.current.isPositioned=false;A(B4=>({...B4,isPositioned:false}))}},[g3]);const St3=z.useRef(false);Ui(()=>{St3.current=true;return()=>{St3.current=false}},[]);Ui(()=>{if(k4)et5.current=k4;if(X5)W4.current=X5;if(k4&&X5){if(Et4.current){return Et4.current(k4,X5,Ot3)}Ot3()}},[k4,X5,Ot3,Et4,rt6]);const gt4=z.useMemo(()=>({reference:et5,floating:W4,setReference:Q4,setFloating:Z4}),[Q4,Z4]);const C2=z.useMemo(()=>({reference:k4,floating:X5}),[k4,X5]);const V=z.useMemo(()=>{const B4={position:f3,left:0,top:0};if(!C2.floating){return B4}const ct5=Mh(C2.floating,S3.x);const E6=Mh(C2.floating,S3.y);if(y3){return{...B4,transform:"translate("+ct5+"px, "+E6+"px)",...pv(C2.floating)>=1.5&&{willChange:"transform"}}}return{position:f3,left:ct5,top:E6}},[f3,y3,C2.floating,S3.x,S3.y]);return z.useMemo(()=>({...S3,update:Ot3,refs:gt4,elements:C2,floatingStyles:V}),[S3,Ot3,gt4,C2,V])}__name(Qb,"Qb");i(Qb,"useFloating");var Zb=i(u6=>{function r4(f3){return{}.hasOwnProperty.call(f3,"current")}__name(r4,"r");i(r4,"isRef");return{name:"arrow",options:u6,fn(f3){const{element:o4,padding:d2}=typeof u6==="function"?u6(f3):u6;if(o4&&r4(o4)){if(o4.current!=null){return Rh({element:o4.current,padding:d2}).fn(f3)}return{}}if(o4){return Rh({element:o4,padding:d2}).fn(f3)}return{}}}},"arrow$1");var kb=i((u6,r4)=>({...Hb(u6),options:[u6,r4]}),"offset");var Kb=i((u6,r4)=>({...Bb(u6),options:[u6,r4]}),"shift");var Jb=i((u6,r4)=>({...jb(u6),options:[u6,r4]}),"limitShift");var Wb=i((u6,r4)=>({...Lb(u6),options:[u6,r4]}),"flip");var $b=i((u6,r4)=>({...qb(u6),options:[u6,r4]}),"size");var Fb=i((u6,r4)=>({...Yb(u6),options:[u6,r4]}),"hide");var Pb=i((u6,r4)=>({...Zb(u6),options:[u6,r4]}),"arrow");var Ib="Arrow";var bv=z.forwardRef((u6,r4)=>{const{children:f3,width:o4=10,height:d2=5,...h2}=u6;return Ht.jsx(sn.svg,{...h2,ref:r4,width:o4,height:d2,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:u6.asChild?f3:Ht.jsx("polygon",{points:"0,0 30,0 15,10"})})});bv.displayName=Ib;var t1=bv;function e1(u6){const[r4,f3]=z.useState(void 0);na(()=>{if(u6){f3({width:u6.offsetWidth,height:u6.offsetHeight});const o4=new ResizeObserver(d2=>{if(!Array.isArray(d2)){return}if(!d2.length){return}const h2=d2[0];let v3;let y3;if("borderBoxSize"in h2){const p3=h2["borderBoxSize"];const g3=Array.isArray(p3)?p3[0]:p3;v3=g3["inlineSize"];y3=g3["blockSize"]}else{v3=u6.offsetWidth;y3=u6.offsetHeight}f3({width:v3,height:y3})});o4.observe(u6,{box:"border-box"});return()=>o4.unobserve(u6)}else{f3(void 0)}},[u6]);return r4}__name(e1,"e1");i(e1,"useSize");var Ko="Popper";var[Sv,yS]=av(Ko);var[l1,Ev]=Sv(Ko);var xv=i(u6=>{const{__scopePopper:r4,children:f3}=u6;const[o4,d2]=z.useState(null);return Ht.jsx(l1,{scope:r4,anchor:o4,onAnchorChange:d2,children:f3})},"Popper");xv.displayName=Ko;var Av="PopperAnchor";var Tv=z.forwardRef((u6,r4)=>{const{__scopePopper:f3,virtualRef:o4,...d2}=u6;const h2=Ev(Av,f3);const v3=z.useRef(null);const y3=on(r4,v3);z.useEffect(()=>{h2.onAnchorChange(o4?.current||v3.current)});return o4?null:Ht.jsx(sn.div,{...d2,ref:y3})});Tv.displayName=Av;var Jo="PopperContent";var[n1,a1]=Sv(Jo);var Ov=z.forwardRef((u6,r4)=>{const{__scopePopper:f3,side:o4="bottom",sideOffset:d2=0,align:h2="center",alignOffset:v3=0,arrowPadding:y3=0,avoidCollisions:p3=true,collisionBoundary:g3=[],collisionPadding:S3=0,sticky:A="partial",hideWhenDetached:D2=false,updatePositionStrategy:w="optimized",onPlaced:H2,...O5}=u6;const U3=Ev(Jo,f3);const[Y5,Q4]=z.useState(null);const Z4=on(r4,mt4=>Q4(mt4));const[k4,X5]=z.useState(null);const et5=e1(k4);const W4=et5?.width??0;const J2=et5?.height??0;const rt6=o4+(h2!=="center"?"-"+h2:"");const Et4=typeof S3==="number"?S3:{top:0,right:0,bottom:0,left:0,...S3};const Mt3=Array.isArray(g3)?g3:[g3];const vt3=Mt3.length>0;const Ot3={padding:Et4,boundary:Mt3.filter(i1),altBoundary:vt3};const{refs:St3,floatingStyles:gt4,placement:C2,isPositioned:V,middlewareData:B4}=Qb({strategy:"fixed",placement:rt6,whileElementsMounted:i((...mt4)=>{const At4=Ub(...mt4,{animationFrame:w==="always"});return At4},"whileElementsMounted"),elements:{reference:U3.anchor},middleware:[kb({mainAxis:d2+J2,alignmentAxis:v3}),p3&&Kb({mainAxis:true,crossAxis:false,limiter:A==="partial"?Jb():void 0,...Ot3}),p3&&Wb({...Ot3}),$b({...Ot3,apply:i(({elements:mt4,rects:At4,availableWidth:le6,availableHeight:He6})=>{const{width:Be6,height:Le5}=At4.reference;const hl2=mt4.floating.style;hl2.setProperty("--radix-popper-available-width",`${le6}px`);hl2.setProperty("--radix-popper-available-height",`${He6}px`);hl2.setProperty("--radix-popper-anchor-width",`${Be6}px`);hl2.setProperty("--radix-popper-anchor-height",`${Le5}px`)},"apply")}),k4&&Pb({element:k4,padding:y3}),c1({arrowWidth:W4,arrowHeight:J2}),D2&&Fb({strategy:"referenceHidden",...Ot3})]});const[ct5,E6]=Mv(C2);const G3=aa(H2);na(()=>{if(V){G3?.()}},[V,G3]);const $3=B4.arrow?.x;const K5=B4.arrow?.y;const F3=B4.arrow?.centerOffset!==0;const[ft4,ut5]=z.useState();na(()=>{if(Y5)ut5(window.getComputedStyle(Y5).zIndex)},[Y5]);return Ht.jsx("div",{ref:St3.setFloating,"data-radix-popper-content-wrapper":"",style:{...gt4,transform:V?gt4.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ft4,["--radix-popper-transform-origin"]:[B4.transformOrigin?.x,B4.transformOrigin?.y].join(" "),...B4.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:u6.dir,children:Ht.jsx(n1,{scope:f3,placedSide:ct5,onArrowChange:X5,arrowX:$3,arrowY:K5,shouldHideArrow:F3,children:Ht.jsx(sn.div,{"data-side":ct5,"data-align":E6,...O5,ref:Z4,style:{...O5.style,animation:!V?"none":void 0}})})})});Ov.displayName=Jo;var wv="PopperArrow";var u1={top:"bottom",right:"left",bottom:"top",left:"right"};var Rv=z.forwardRef(i(__name(function u2(r4,f3){const{__scopePopper:o4,...d2}=r4;const h2=a1(wv,o4);const v3=u1[h2.placedSide];return Ht.jsx("span",{ref:h2.onArrowChange,style:{position:"absolute",left:h2.arrowX,top:h2.arrowY,[v3]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[h2.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:`rotate(180deg)`,left:"translateY(50%) rotate(-90deg) translateX(50%)"}[h2.placedSide],visibility:h2.shouldHideArrow?"hidden":void 0},children:Ht.jsx(t1,{...d2,ref:f3,style:{...d2.style,display:"block"}})})},"u"),"PopperArrow2"));Rv.displayName=wv;function i1(u6){return u6!==null}__name(i1,"i1");i(i1,"isNotNull");var c1=i(u6=>({name:"transformOrigin",options:u6,fn(r4){const{placement:f3,rects:o4,middlewareData:d2}=r4;const h2=d2.arrow?.centerOffset!==0;const v3=h2;const y3=v3?0:u6.arrowWidth;const p3=v3?0:u6.arrowHeight;const[g3,S3]=Mv(f3);const A={start:"0%",center:"50%",end:"100%"}[S3];const D2=(d2.arrow?.x??0)+y3/2;const w=(d2.arrow?.y??0)+p3/2;let H2="";let O5="";if(g3==="bottom"){H2=v3?A:`${D2}px`;O5=`${-p3}px`}else if(g3==="top"){H2=v3?A:`${D2}px`;O5=`${o4.floating.height+p3}px`}else if(g3==="right"){H2=`${-p3}px`;O5=v3?A:`${w}px`}else if(g3==="left"){H2=`${o4.floating.width+p3}px`;O5=v3?A:`${w}px`}return{data:{x:H2,y:O5}}}}),"transformOrigin");function Mv(u6){const[r4,f3="center"]=u6.split("-");return[r4,f3]}__name(Mv,"Mv");i(Mv,"getSideAndAlignFromPlacement");var pS=xv;var bS=Tv;var SS=Ov;var ES=Rv;var r1="Portal";var o1=z.forwardRef((u6,r4)=>{const{container:f3,...o4}=u6;const[d2,h2]=z.useState(false);na(()=>h2(true),[]);const v3=f3||d2&&globalThis?.document?.body;return v3?y0.createPortal(Ht.jsx(sn.div,{...o4,ref:r4}),v3):null});o1.displayName=r1;var f1=i(function(u6){if(typeof document==="undefined"){return null}var r4=Array.isArray(u6)?u6[0]:u6;return r4.ownerDocument.body},"getDefaultParent");var Pn=new WeakMap;var _i=new WeakMap;var Ci={};var xo=0;var zv=i(function(u6){return u6&&(u6.host||zv(u6.parentNode))},"unwrapHost");var s1=i(function(u6,r4){return r4.map(function(f3){if(u6.contains(f3)){return f3}var o4=zv(f3);if(o4&&u6.contains(o4)){return o4}console.error("aria-hidden",f3,"in not contained inside",u6,". Doing nothing");return null}).filter(function(f3){return Boolean(f3)})},"correctTargets");var d1=i(function(u6,r4,f3,o4){var d2=s1(r4,Array.isArray(u6)?u6:[u6]);if(!Ci[f3]){Ci[f3]=new WeakMap}var h2=Ci[f3];var v3=[];var y3=new Set;var p3=new Set(d2);var g3=i(function(A){if(!A||y3.has(A)){return}y3.add(A);g3(A.parentNode)},"keep");d2.forEach(g3);var S3=i(function(A){if(!A||p3.has(A)){return}Array.prototype.forEach.call(A.children,function(D2){if(y3.has(D2)){S3(D2)}else{try{var w=D2.getAttribute(o4);var H2=w!==null&&w!=="false";var O5=(Pn.get(D2)||0)+1;var U3=(h2.get(D2)||0)+1;Pn.set(D2,O5);h2.set(D2,U3);v3.push(D2);if(O5===1&&H2){_i.set(D2,true)}if(U3===1){D2.setAttribute(f3,"true")}if(!H2){D2.setAttribute(o4,"true")}}catch(Y5){console.error("aria-hidden: cannot operate on ",D2,Y5)}}})},"deep");S3(r4);y3.clear();xo++;return function(){v3.forEach(function(A){var D2=Pn.get(A)-1;var w=h2.get(A)-1;Pn.set(A,D2);h2.set(A,w);if(!D2){if(!_i.has(A)){A.removeAttribute(o4)}_i.delete(A)}if(!w){A.removeAttribute(f3)}});xo--;if(!xo){Pn=new WeakMap;Pn=new WeakMap;_i=new WeakMap;Ci={}}}},"applyAttributeToOthers");var xS=i(function(u6,r4,f3){if(f3===void 0){f3="data-aria-hidden"}var o4=Array.from(Array.isArray(u6)?u6:[u6]);var d2=f1(u6);if(!d2){return function(){return null}}o4.push.apply(o4,Array.from(d2.querySelectorAll("[aria-live], script")));return d1(o4,d2,f3,"aria-hidden")},"hideOthers");var Qe=i(function(){Qe=Object.assign||i(__name(function u6(r4){for(var f3,o4=1,d2=arguments.length;o4y3){return true}}o4=o4.parentNode}while(o4&&o4!==f3.body);return false},"locationCouldBeScrolled");var Y1=i(function(u6){var r4=u6.scrollTop,f3=u6.scrollHeight,o4=u6.clientHeight;return[r4,f3,o4]},"getVScrollVariables");var j1=i(function(u6){var r4=u6.scrollLeft,f3=u6.scrollWidth,o4=u6.clientWidth;return[r4,f3,o4]},"getHScrollVariables");var Hv=i(function(u6,r4){return u6==="v"?L1(r4):q1(r4)},"elementCouldBeScrolled");var Bv=i(function(u6,r4){return u6==="v"?Y1(r4):j1(r4)},"getScrollVariables");var G1=i(function(u6,r4){return u6==="h"&&r4==="rtl"?-1:1},"getDirectionFactor");var X1=i(function(u6,r4,f3,o4,d2){var h2=G1(u6,window.getComputedStyle(r4).direction);var v3=h2*o4;var y3=f3.target;var p3=r4.contains(y3);var g3=false;var S3=v3>0;var A=0;var D2=0;do{if(!y3){break}var w=Bv(u6,y3),H2=w[0],O5=w[1],U3=w[2];var Y5=O5-U3-h2*H2;if(H2||Y5){if(Hv(u6,y3)){A+=Y5;D2+=H2}}var Q4=y3.parentNode;y3=Q4&&Q4.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Q4.host:Q4}while(!p3&&y3!==document.body||p3&&(r4.contains(y3)||r4===y3));if(S3&&(Math.abs(A)<1||false)){g3=true}else if(!S3&&(Math.abs(D2)<1||false)){g3=true}return g3},"handleScroll");var Ni=i(function(u6){return"changedTouches"in u6?[u6.changedTouches[0].clientX,u6.changedTouches[0].clientY]:[0,0]},"getTouchXY");var Dh=i(function(u6){return[u6.deltaX,u6.deltaY]},"getDeltaXY");var Nh=i(function(u6){return u6&&"current"in u6?u6.current:u6},"extractRef");var V1=i(function(u6,r4){return u6[0]===r4[0]&&u6[1]===r4[1]},"deltaCompare");var Q1=i(function(u6){return"n .block-interactivity-".concat(u6," {pointer-events: none;}n .allow-interactivity-").concat(u6," {pointer-events: all;}n")},"generateStyle");var Z1=0;var ta=[];function k1(u6){var r4=z.useRef([]);var f3=z.useRef([0,0]);var o4=z.useRef();var d2=z.useState(Z1++)[0];var h2=z.useState(Nv)[0];var v3=z.useRef(u6);z.useEffect(function(){v3.current=u6},[u6]);z.useEffect(function(){if(u6.inert){document.body.classList.add("block-interactivity-".concat(d2));var O5=m1([u6.lockRef.current],(u6.shards||[]).map(Nh),true).filter(Boolean);O5.forEach(function(U3){return U3.classList.add("allow-interactivity-".concat(d2))});return function(){document.body.classList.remove("block-interactivity-".concat(d2));O5.forEach(function(U3){return U3.classList.remove("allow-interactivity-".concat(d2))})}}return},[u6.inert,u6.lockRef.current,u6.shards]);var y3=z.useCallback(function(O5,U3){if("touches"in O5&&O5.touches.length===2||O5.type==="wheel"&&O5.ctrlKey){return!v3.current.allowPinchZoom}var Y5=Ni(O5);var Q4=f3.current;var Z4="deltaX"in O5?O5.deltaX:Q4[0]-Y5[0];var k4="deltaY"in O5?O5.deltaY:Q4[1]-Y5[1];var X5;var et5=O5.target;var W4=Math.abs(Z4)>Math.abs(k4)?"h":"v";if("touches"in O5&&W4==="h"&&et5.type==="range"){return false}var J2=Ch(W4,et5);if(!J2){return true}if(J2){X5=W4}else{X5=W4==="v"?"h":"v";J2=Ch(W4,et5)}if(!J2){return false}if(!o4.current&&"changedTouches"in O5&&(Z4||k4)){o4.current=X5}if(!X5){return true}var rt6=o4.current||X5;return X1(rt6,U3,O5,rt6==="h"?Z4:k4)},[]);var p3=z.useCallback(function(O5){var U3=O5;if(!ta.length||ta[ta.length-1]!==h2){return}var Y5="deltaY"in U3?Dh(U3):Ni(U3);var Q4=r4.current.filter(function(X5){return X5.name===U3.type&&(X5.target===U3.target||U3.target===X5.shadowParent)&&V1(X5.delta,Y5)})[0];if(Q4&&Q4.should){if(U3.cancelable){U3.preventDefault()}return}if(!Q4){var Z4=(v3.current.shards||[]).map(Nh).filter(Boolean).filter(function(X5){return X5.contains(U3.target)});var k4=Z4.length>0?y3(U3,Z4[0]):!v3.current.noIsolation;if(k4){if(U3.cancelable){U3.preventDefault()}}}},[]);var g3=z.useCallback(function(O5,U3,Y5,Q4){var Z4={name:O5,delta:U3,target:Y5,should:Q4,shadowParent:K1(Y5)};r4.current.push(Z4);setTimeout(function(){r4.current=r4.current.filter(function(k4){return k4!==Z4})},1)},[]);var S3=z.useCallback(function(O5){f3.current=Ni(O5);o4.current=void 0},[]);var A=z.useCallback(function(O5){g3(O5.type,Dh(O5),O5.target,y3(O5,u6.lockRef.current))},[]);var D2=z.useCallback(function(O5){g3(O5.type,Ni(O5),O5.target,y3(O5,u6.lockRef.current))},[]);z.useEffect(function(){ta.push(h2);u6.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:D2});document.addEventListener("wheel",p3,In);document.addEventListener("touchmove",p3,In);document.addEventListener("touchstart",S3,In);return function(){ta=ta.filter(function(O5){return O5!==h2});document.removeEventListener("wheel",p3,In);document.removeEventListener("touchmove",p3,In);document.removeEventListener("touchstart",S3,In)}},[]);var w=u6.removeScrollBar,H2=u6.inert;return z.createElement(z.Fragment,null,H2?z.createElement(h2,{styles:Q1(d2)}):null,w?z.createElement(H1,{noRelative:u6.noRelative,gapMode:u6.gapMode}):null)}__name(k1,"k1");i(k1,"RemoveScrollSideCar");function K1(u6){var r4=null;while(u6!==null){if(u6 instanceof ShadowRoot){r4=u6.host;u6=u6.host}u6=u6.parentNode}return r4}__name(K1,"K1");i(K1,"getOutermostShadowParent");var J1=x1(Dv,k1);var W1=z.forwardRef(function(u6,r4){return z.createElement(Ji,Qe({},u6,{ref:r4,sideCar:J1}))});W1.classNames=Ji.classNames;var $1=i(u6=>u6.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),"toKebabCase");var F1=i(u6=>u6.replace(/^([A-Z])|[s-_]+(w)/g,(r4,f3,o4)=>o4?o4.toUpperCase():f3.toLowerCase()),"toCamelCase");var Uh=i(u6=>{const r4=F1(u6);return r4.charAt(0).toUpperCase()+r4.slice(1)},"toPascalCase");var Lv=i((...u6)=>u6.filter((r4,f3,o4)=>{return Boolean(r4)&&r4.trim()!==""&&o4.indexOf(r4)===f3}).join(" ").trim(),"mergeClasses");var P1=i(u6=>{for(const r4 in u6){if(r4.startsWith("aria-")||r4==="role"||r4==="title"){return true}}},"hasA11yProp");var I1={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"};var tS=z.forwardRef(({color:u6="currentColor",size:r4=24,strokeWidth:f3=2,absoluteStrokeWidth:o4,className:d2="",children:h2,iconNode:v3,...y3},p3)=>z.createElement("svg",{ref:p3,...I1,width:r4,height:r4,stroke:u6,strokeWidth:o4?Number(f3)*24/Number(r4):f3,className:Lv("lucide",d2),...!h2&&!P1(y3)&&{"aria-hidden":"true"},...y3},[...v3.map(([g3,S3])=>z.createElement(g3,S3)),...Array.isArray(h2)?h2:[h2]]));var qv=i((u6,r4)=>{const f3=z.forwardRef(({className:o4,...d2},h2)=>z.createElement(tS,{ref:h2,iconNode:r4,className:Lv(`lucide-${$1(Uh(u6))}`,`lucide-${u6}`,o4),...d2}));f3.displayName=Uh(u6);return f3},"createLucideIcon");var eS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]];var AS=qv("chevron-down",eS);var lS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]];var TS=qv("chevron-up",lS);var ye=Object.defineProperty;var c=__name((e4,t3)=>ye(e4,"name",{value:t3,configurable:true}),"c");function Me(e4,t3){return z.useReducer((o4,n4)=>{const a4=t3[o4][n4];return a4??o4},e4)}__name(Me,"Me");c(Me,"useStateMachine");var j=c(e4=>{const{present:t3,children:o4}=e4;const n4=je(t3);const a4=typeof o4==="function"?o4({present:n4.isPresent}):z.Children.only(o4);const r4=on(n4.ref,ke2(a4));const u6=typeof o4==="function";return u6||n4.isPresent?z.cloneElement(a4,{ref:r4}):null},"Presence");j.displayName="Presence";function je(e4){const[t3,o4]=z.useState();const n4=z.useRef(null);const a4=z.useRef(e4);const r4=z.useRef("none");const u6=e4?"mounted":"unmounted";const[d2,p3]=Me(u6,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});z.useEffect(()=>{const l2=S(n4.current);r4.current=d2==="mounted"?l2:"none"},[d2]);na(()=>{const l2=n4.current;const f3=a4.current;const m5=f3!==e4;if(m5){const N2=r4.current;const h2=S(l2);if(e4){p3("MOUNT")}else if(h2==="none"||l2?.display==="none"){p3("UNMOUNT")}else{const I4=N2!==h2;if(f3&&I4){p3("ANIMATION_OUT")}else{p3("UNMOUNT")}}a4.current=e4}},[e4,p3]);na(()=>{if(t3){let l2;const f3=t3.ownerDocument.defaultView??window;const m5=c(h2=>{const I4=S(n4.current);const _3=I4.includes(h2.animationName);if(h2.target===t3&&_3){p3("ANIMATION_END");if(!a4.current){const g3=t3.style.animationFillMode;t3.style.animationFillMode="forwards";l2=f3.setTimeout(()=>{if(t3.style.animationFillMode==="forwards"){t3.style.animationFillMode=g3}})}}},"handleAnimationEnd");const N2=c(h2=>{if(h2.target===t3){r4.current=S(n4.current)}},"handleAnimationStart");t3.addEventListener("animationstart",N2);t3.addEventListener("animationcancel",m5);t3.addEventListener("animationend",m5);return()=>{f3.clearTimeout(l2);t3.removeEventListener("animationstart",N2);t3.removeEventListener("animationcancel",m5);t3.removeEventListener("animationend",m5)}}else{p3("ANIMATION_END")}},[t3,p3]);return{isPresent:["mounted","unmountSuspended"].includes(d2),ref:z.useCallback(l2=>{n4.current=l2?getComputedStyle(l2):null;o4(l2)},[])}}__name(je,"je");c(je,"usePresence");function S(e4){return e4?.animationName||"none"}__name(S,"S");c(S,"getAnimationName");function ke2(e4){let t3=Object.getOwnPropertyDescriptor(e4.props,"ref")?.get;let o4=t3&&"isReactWarning"in t3&&t3.isReactWarning;if(o4){return e4.ref}t3=Object.getOwnPropertyDescriptor(e4,"ref")?.get;o4=t3&&"isReactWarning"in t3&&t3.isReactWarning;if(o4){return e4.props.ref}return e4.props.ref||e4.ref}__name(ke2,"ke");c(ke2,"getElementRef");var U="rovingFocusGroup.onEntryFocus";var Le={bubbles:false,cancelable:true};var F="RovingFocusGroup";var[W,X,Ge]=mS(F);var[Ue2,xt]=av(F,[Ge]);var[We,Ke2]=Ue2(F);var Z=z.forwardRef((e4,t3)=>{return Ht.jsx(W.Provider,{scope:e4.__scopeRovingFocusGroup,children:Ht.jsx(W.Slot,{scope:e4.__scopeRovingFocusGroup,children:Ht.jsx(Be,{...e4,ref:t3})})})});Z.displayName=F;var Be=z.forwardRef((e4,t3)=>{const{__scopeRovingFocusGroup:o4,orientation:n4,loop:a4=false,dir:r4,currentTabStopId:u6,defaultCurrentTabStopId:d2,onCurrentTabStopIdChange:p3,onEntryFocus:l2,preventScrollOnEntryFocus:f3=false,...m5}=e4;const N2=z.useRef(null);const h2=on(t3,N2);const I4=hS(r4);const[_3,g3]=dS({prop:u6,defaultProp:d2??null,onChange:p3,caller:F});const[y3,O5]=z.useState(false);const x4=aa(l2);const D2=X(o4);const L=z.useRef(false);const[he3,z5]=z.useState(0);z.useEffect(()=>{const v3=N2.current;if(v3){v3.addEventListener(U,x4);return()=>v3.removeEventListener(U,x4)}},[x4]);return Ht.jsx(We,{scope:o4,orientation:n4,dir:I4,loop:a4,currentTabStopId:_3,onItemFocus:z.useCallback(v3=>g3(v3),[g3]),onItemShiftTab:z.useCallback(()=>O5(true),[]),onFocusableItemAdd:z.useCallback(()=>z5(v3=>v3+1),[]),onFocusableItemRemove:z.useCallback(()=>z5(v3=>v3-1),[]),children:Ht.jsx(sn.div,{tabIndex:y3||he3===0?-1:0,"data-orientation":n4,...m5,ref:h2,style:{outline:"none",...e4.style},onMouseDown:go(e4.onMouseDown,()=>{L.current=true}),onFocus:go(e4.onFocus,v3=>{const xe4=!L.current;if(v3.target===v3.currentTarget&&xe4&&!y3){const V=new CustomEvent(U,Le);v3.currentTarget.dispatchEvent(V);if(!V.defaultPrevented){const G3=D2().filter(C2=>C2.focusable);const be4=G3.find(C2=>C2.active);const Re2=G3.find(C2=>C2.id===_3);const Ne6=[be4,Re2,...G3].filter(Boolean);const Ie5=Ne6.map(C2=>C2.ref.current);te(Ie5,f3)}}L.current=false}),onBlur:go(e4.onBlur,()=>O5(false))})})});var Q="RovingFocusGroupItem";var ee2=z.forwardRef((e4,t3)=>{const{__scopeRovingFocusGroup:o4,focusable:n4=true,active:a4=false,tabStopId:r4,children:u6,...d2}=e4;const p3=gS();const l2=r4||p3;const f3=Ke2(Q,o4);const m5=f3.currentTabStopId===l2;const N2=X(o4);const{onFocusableItemAdd:h2,onFocusableItemRemove:I4,currentTabStopId:_3}=f3;z.useEffect(()=>{if(n4){h2();return()=>I4()}},[n4,h2,I4]);return Ht.jsx(W.ItemSlot,{scope:o4,id:l2,focusable:n4,active:a4,children:Ht.jsx(sn.span,{tabIndex:m5?0:-1,"data-orientation":f3.orientation,...d2,ref:t3,onMouseDown:go(e4.onMouseDown,g3=>{if(!n4)g3.preventDefault();else f3.onItemFocus(l2)}),onFocus:go(e4.onFocus,()=>f3.onItemFocus(l2)),onKeyDown:go(e4.onKeyDown,g3=>{if(g3.key==="Tab"&&g3.shiftKey){f3.onItemShiftTab();return}if(g3.target!==g3.currentTarget)return;const y3=Ve(g3,f3.orientation,f3.dir);if(y3!==void 0){if(g3.metaKey||g3.ctrlKey||g3.altKey||g3.shiftKey)return;g3.preventDefault();const O5=N2().filter(D2=>D2.focusable);let x4=O5.map(D2=>D2.ref.current);if(y3==="last")x4.reverse();else if(y3==="prev"||y3==="next"){if(y3==="prev")x4.reverse();const D2=x4.indexOf(g3.currentTarget);x4=f3.loop?He(x4,D2+1):x4.slice(D2+1)}setTimeout(()=>te(x4))}}),children:typeof u6==="function"?u6({isCurrentTabStop:m5,hasTabStop:_3!=null}):u6})})});ee2.displayName=Q;var $e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ze(e4,t3){if(t3!=="rtl")return e4;return e4==="ArrowLeft"?"ArrowRight":e4==="ArrowRight"?"ArrowLeft":e4}__name(ze,"ze");c(ze,"getDirectionAwareKey");function Ve(e4,t3,o4){const n4=ze(e4.key,o4);if(t3==="vertical"&&["ArrowLeft","ArrowRight"].includes(n4))return void 0;if(t3==="horizontal"&&["ArrowUp","ArrowDown"].includes(n4))return void 0;return $e[n4]}__name(Ve,"Ve");c(Ve,"getFocusIntent");function te(e4,t3=false){const o4=document.activeElement;for(const n4 of e4){if(n4===o4)return;n4.focus({preventScroll:t3});if(document.activeElement!==o4)return}}__name(te,"te");c(te,"focusFirst");function He(e4,t3){return e4.map((o4,n4)=>e4[(t3+n4)%e4.length])}__name(He,"He");c(He,"wrapArray");var bt=Z;var Rt=ee2;var Ye=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]];var Nt=qv("chevron-right",Ye);var qe=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]];var Je2=qv("x",qe);function It({className:e4,type:t3,...o4}){return Ht.jsx("input",{type:t3,"data-slot":"input",className:nv("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e4),...o4})}__name(It,"It");c(It,"Input");var k="Dialog";var[oe,yt]=av(k);var[Xe,R]=oe(k);var ne=c(e4=>{const{__scopeDialog:t3,children:o4,open:n4,defaultOpen:a4,onOpenChange:r4,modal:u6=true}=e4;const d2=z.useRef(null);const p3=z.useRef(null);const[l2,f3]=dS({prop:n4,defaultProp:a4??false,onChange:r4,caller:k});return Ht.jsx(Xe,{scope:t3,triggerRef:d2,contentRef:p3,contentId:gS(),titleId:gS(),descriptionId:gS(),open:l2,onOpenChange:f3,onOpenToggle:z.useCallback(()=>f3(m5=>!m5),[f3]),modal:u6,children:o4})},"Dialog");ne.displayName=k;var re="DialogTrigger";var ae=z.forwardRef((e4,t3)=>{const{__scopeDialog:o4,...n4}=e4;const a4=R(re,o4);const r4=on(t3,a4.triggerRef);return Ht.jsx(sn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a4.open,"aria-controls":a4.contentId,"data-state":$(a4.open),...n4,ref:r4,onClick:go(e4.onClick,a4.onOpenToggle)})});ae.displayName=re;var K="DialogPortal";var[Ze2,se]=oe(K,{forceMount:void 0});var ie=c(e4=>{const{__scopeDialog:t3,forceMount:o4,children:n4,container:a4}=e4;const r4=R(K,t3);return Ht.jsx(Ze2,{scope:t3,forceMount:o4,children:z.Children.map(n4,u6=>Ht.jsx(j,{present:o4||r4.open,children:Ht.jsx(o1,{asChild:true,container:a4,children:u6})}))})},"DialogPortal");ie.displayName=K;var M="DialogOverlay";var ce=z.forwardRef((e4,t3)=>{const o4=se(M,e4.__scopeDialog);const{forceMount:n4=o4.forceMount,...a4}=e4;const r4=R(M,e4.__scopeDialog);return r4.modal?Ht.jsx(j,{present:n4||r4.open,children:Ht.jsx(et,{...a4,ref:t3})}):null});ce.displayName=M;var Qe2=Yi("DialogOverlay.RemoveScroll");var et=z.forwardRef((e4,t3)=>{const{__scopeDialog:o4,...n4}=e4;const a4=R(M,o4);return Ht.jsx(W1,{as:Qe2,allowPinchZoom:true,shards:[a4.contentRef],children:Ht.jsx(sn.div,{"data-state":$(a4.open),...n4,ref:t3,style:{pointerEvents:"auto",...n4.style}})})});var E="DialogContent";var le=z.forwardRef((e4,t3)=>{const o4=se(E,e4.__scopeDialog);const{forceMount:n4=o4.forceMount,...a4}=e4;const r4=R(E,e4.__scopeDialog);return Ht.jsx(j,{present:n4||r4.open,children:r4.modal?Ht.jsx(tt2,{...a4,ref:t3}):Ht.jsx(ot2,{...a4,ref:t3})})});le.displayName=E;var tt2=z.forwardRef((e4,t3)=>{const o4=R(E,e4.__scopeDialog);const n4=z.useRef(null);const a4=on(t3,o4.contentRef,n4);z.useEffect(()=>{const r4=n4.current;if(r4)return xS(r4)},[]);return Ht.jsx(ue,{...e4,ref:a4,trapFocus:o4.open,disableOutsidePointerEvents:true,onCloseAutoFocus:go(e4.onCloseAutoFocus,r4=>{r4.preventDefault();o4.triggerRef.current?.focus()}),onPointerDownOutside:go(e4.onPointerDownOutside,r4=>{const u6=r4.detail.originalEvent;const d2=u6.button===0&&u6.ctrlKey===true;const p3=u6.button===2||d2;if(p3)r4.preventDefault()}),onFocusOutside:go(e4.onFocusOutside,r4=>r4.preventDefault())})});var ot2=z.forwardRef((e4,t3)=>{const o4=R(E,e4.__scopeDialog);const n4=z.useRef(false);const a4=z.useRef(false);return Ht.jsx(ue,{...e4,ref:t3,trapFocus:false,disableOutsidePointerEvents:false,onCloseAutoFocus:c(r4=>{e4.onCloseAutoFocus?.(r4);if(!r4.defaultPrevented){if(!n4.current)o4.triggerRef.current?.focus();r4.preventDefault()}n4.current=false;a4.current=false},"onCloseAutoFocus"),onInteractOutside:c(r4=>{e4.onInteractOutside?.(r4);if(!r4.defaultPrevented){n4.current=true;if(r4.detail.originalEvent.type==="pointerdown"){a4.current=true}}const u6=r4.target;const d2=o4.triggerRef.current?.contains(u6);if(d2)r4.preventDefault();if(r4.detail.originalEvent.type==="focusin"&&a4.current){r4.preventDefault()}},"onInteractOutside")})});var ue=z.forwardRef((e4,t3)=>{const{__scopeDialog:o4,trapFocus:n4,onOpenAutoFocus:a4,onCloseAutoFocus:r4,...u6}=e4;const d2=R(E,o4);const p3=z.useRef(null);const l2=on(t3,p3);vS();return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(Up,{asChild:true,loop:true,trapped:n4,onMountAutoFocus:a4,onUnmountAutoFocus:r4,children:Ht.jsx(Mp,{role:"dialog",id:d2.contentId,"aria-describedby":d2.descriptionId,"aria-labelledby":d2.titleId,"data-state":$(d2.open),...u6,ref:l2,onDismiss:c(()=>d2.onOpenChange(false),"onDismiss")})}),Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(rt,{titleId:d2.titleId}),Ht.jsx(st,{contentRef:p3,descriptionId:d2.descriptionId})]})]})});var B="DialogTitle";var de=z.forwardRef((e4,t3)=>{const{__scopeDialog:o4,...n4}=e4;const a4=R(B,o4);return Ht.jsx(sn.h2,{id:a4.titleId,...n4,ref:t3})});de.displayName=B;var fe="DialogDescription";var nt=z.forwardRef((e4,t3)=>{const{__scopeDialog:o4,...n4}=e4;const a4=R(fe,o4);return Ht.jsx(sn.p,{id:a4.descriptionId,...n4,ref:t3})});nt.displayName=fe;var pe2="DialogClose";var ge=z.forwardRef((e4,t3)=>{const{__scopeDialog:o4,...n4}=e4;const a4=R(pe2,o4);return Ht.jsx(sn.button,{type:"button",...n4,ref:t3,onClick:go(e4.onClick,()=>a4.onOpenChange(false))})});ge.displayName=pe2;function $(e4){return e4?"open":"closed"}__name($,"$");c($,"getState");var me="DialogTitleWarning";var[Dt,ve]=sS(me,{contentName:E,titleName:B,docsSlug:"dialog"});var rt=c(({titleId:e4})=>{const t3=ve(me);const o4=``${t3.contentName}` requires a `${t3.titleName}` for the component to be accessible for screen reader users.
If you want to hide the `${t3.titleName}`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t3.docsSlug}`;z.useEffect(()=>{if(e4){const n4=document.getElementById(e4);if(!n4)console.error(o4)}},[o4,e4]);return null},"TitleWarning");var at="DialogDescriptionWarning";var st=c(({contentRef:e4,descriptionId:t3})=>{const o4=ve(at);const n4=`Warning: Missing `Description` or `aria-describedby={undefined}` for {${o4.contentName}}.`;z.useEffect(()=>{const a4=e4.current?.getAttribute("aria-describedby");if(t3&&a4){const r4=document.getElementById(t3);if(!r4)console.warn(n4)}},[n4,e4,t3]);return null},"DescriptionWarning");var it=ne;var ct=ae;var lt=ie;var ut=ce;var dt2=le;var ft=de;var pt=ge;function Ct({...e4}){return Ht.jsx(it,{"data-slot":"sheet",...e4})}__name(Ct,"Ct");c(Ct,"Sheet");function Et({...e4}){return Ht.jsx(ct,{"data-slot":"sheet-trigger",...e4})}__name(Et,"Et");c(Et,"SheetTrigger");function gt({...e4}){return Ht.jsx(lt,{"data-slot":"sheet-portal",...e4})}__name(gt,"gt");c(gt,"SheetPortal");function mt({className:e4,...t3}){return Ht.jsx(ut,{"data-slot":"sheet-overlay",className:nv("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e4),...t3})}__name(mt,"mt");c(mt,"SheetOverlay");function Tt({className:e4,children:t3,side:o4="right",...n4}){return Ht.jsxs(gt,{children:[Ht.jsx(mt,{}),Ht.jsxs(dt2,{"data-slot":"sheet-content",className:nv("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",o4==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",o4==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",o4==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",o4==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e4),...n4,children:[t3,Ht.jsxs(pt,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[Ht.jsx(Je2,{className:"size-4"}),Ht.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}__name(Tt,"Tt");c(Tt,"SheetContent");function _t({className:e4,...t3}){return Ht.jsx("div",{"data-slot":"sheet-header",className:nv("flex flex-col gap-1.5 p-4",e4),...t3})}__name(_t,"_t");c(_t,"SheetHeader");function wt({className:e4,...t3}){return Ht.jsx(ft,{"data-slot":"sheet-title",className:nv("text-foreground font-semibold",e4),...t3})}__name(wt,"wt");c(wt,"SheetTitle");var bt2=Object.defineProperty;var u3=__name((t3,o4)=>bt2(t3,"name",{value:o4,configurable:true}),"u");var re2=["Enter"," "];var Wt=["ArrowDown","PageUp","Home"];var Ie=["ArrowUp","PageDown","End"];var zt=[...Wt,...Ie];var Vt={ltr:[...re2,"ArrowRight"],rtl:[...re2,"ArrowLeft"]};var Xt={ltr:["ArrowLeft"],rtl:["ArrowRight"]};var U2="Menu";var[T,Yt,qt]=mS(U2);var[S2,Ae]=av(U2,[qt,yS,xt]);var X2=yS();var ke3=xt();var[Qt,E2]=S2(U2);var[Jt,G]=S2(U2);var Te=u3(t3=>{const{__scopeMenu:o4,open:n4=false,children:r4,dir:s,onOpenChange:c2,modal:i5=true}=t3;const d2=X2(o4);const[f3,m5]=z.useState(null);const x4=z.useRef(false);const l2=aa(c2);const h2=hS(s);z.useEffect(()=>{const w=u3(()=>{x4.current=true;document.addEventListener("pointerdown",v3,{capture:true,once:true});document.addEventListener("pointermove",v3,{capture:true,once:true})},"handleKeyDown");const v3=u3(()=>x4.current=false,"handlePointer");document.addEventListener("keydown",w,{capture:true});return()=>{document.removeEventListener("keydown",w,{capture:true});document.removeEventListener("pointerdown",v3,{capture:true});document.removeEventListener("pointermove",v3,{capture:true})}},[]);return Ht.jsx(pS,{...d2,children:Ht.jsx(Qt,{scope:o4,open:n4,onOpenChange:l2,content:f3,onContentChange:m5,children:Ht.jsx(Jt,{scope:o4,onClose:z.useCallback(()=>l2(false),[l2]),isUsingKeyboardRef:x4,dir:h2,modal:i5,children:r4})})})},"Menu$1");Te.displayName=U2;var Zt2="MenuAnchor";var se2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,...r4}=t3;const s=X2(n4);return Ht.jsx(bS,{...s,...r4,ref:o4})});se2.displayName=Zt2;var ae2="MenuPortal";var[en,Oe]=S2(ae2,{forceMount:void 0});var Le2=u3(t3=>{const{__scopeMenu:o4,forceMount:n4,children:r4,container:s}=t3;const c2=E2(ae2,o4);return Ht.jsx(en,{scope:o4,forceMount:n4,children:Ht.jsx(j,{present:n4||c2.open,children:Ht.jsx(o1,{asChild:true,container:s,children:r4})})})},"MenuPortal");Le2.displayName=ae2;var y="MenuContent";var[tn,ie2]=S2(y);var Be2=z.forwardRef((t3,o4)=>{const n4=Oe(y,t3.__scopeMenu);const{forceMount:r4=n4.forceMount,...s}=t3;const c2=E2(y,t3.__scopeMenu);const i5=G(y,t3.__scopeMenu);return Ht.jsx(T.Provider,{scope:t3.__scopeMenu,children:Ht.jsx(j,{present:r4||c2.open,children:Ht.jsx(T.Slot,{scope:t3.__scopeMenu,children:i5.modal?Ht.jsx(nn,{...s,ref:o4}):Ht.jsx(on2,{...s,ref:o4})})})})});var nn=z.forwardRef((t3,o4)=>{const n4=E2(y,t3.__scopeMenu);const r4=z.useRef(null);const s=on(o4,r4);z.useEffect(()=>{const c2=r4.current;if(c2)return xS(c2)},[]);return Ht.jsx(ce2,{...t3,ref:s,trapFocus:n4.open,disableOutsidePointerEvents:n4.open,disableOutsideScroll:true,onFocusOutside:go(t3.onFocusOutside,c2=>c2.preventDefault(),{checkForDefaultPrevented:false}),onDismiss:u3(()=>n4.onOpenChange(false),"onDismiss")})});var on2=z.forwardRef((t3,o4)=>{const n4=E2(y,t3.__scopeMenu);return Ht.jsx(ce2,{...t3,ref:o4,trapFocus:false,disableOutsidePointerEvents:false,disableOutsideScroll:false,onDismiss:u3(()=>n4.onOpenChange(false),"onDismiss")})});var rn2=Yi("MenuContent.ScrollLock");var ce2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,loop:r4=false,trapFocus:s,onOpenAutoFocus:c2,onCloseAutoFocus:i5,disableOutsidePointerEvents:d2,onEntryFocus:f3,onEscapeKeyDown:m5,onPointerDownOutside:x4,onFocusOutside:l2,onInteractOutside:h2,onDismiss:w,disableOutsideScroll:v3,...N2}=t3;const C2=E2(y,n4);const _3=G(y,n4);const Q4=X2(n4);const pt4=ke3(n4);const pe7=Yt(n4);const[xt4,xe4]=z.useState(null);const K5=z.useRef(null);const ft4=on(o4,K5,C2.onContentChange);const $3=z.useRef(0);const H2=z.useRef("");const mt4=z.useRef(0);const J2=z.useRef(null);const fe4=z.useRef("right");const Z4=z.useRef(0);const ht3=v3?W1:z.Fragment;const gt4=v3?{as:rn2,allowPinchZoom:true}:void 0;const vt3=u3(p3=>{const F3=H2.current+p3;const R5=pe7().filter(j2=>!j2.disabled);const I4=document.activeElement;const ee6=R5.find(j2=>j2.ref.current===I4)?.textValue;const te4=R5.map(j2=>j2.textValue);const ne5=gn(te4,F3,ee6);const A=R5.find(j2=>j2.textValue===ne5)?.ref.current;u3(__name(function j2(me4){H2.current=me4;window.clearTimeout($3.current);if(me4!=="")$3.current=window.setTimeout(()=>j2(""),1e3)},"j"),"updateSearch")(F3);if(A){setTimeout(()=>A.focus())}},"handleTypeaheadSearch");z.useEffect(()=>{return()=>window.clearTimeout($3.current)},[]);vS();const P4=z.useCallback(p3=>{const F3=fe4.current===J2.current?.side;return F3&&bn(p3,J2.current?.area)},[]);return Ht.jsx(tn,{scope:n4,searchRef:H2,onItemEnter:z.useCallback(p3=>{if(P4(p3))p3.preventDefault()},[P4]),onItemLeave:z.useCallback(p3=>{if(P4(p3))return;K5.current?.focus();xe4(null)},[P4]),onTriggerLeave:z.useCallback(p3=>{if(P4(p3))p3.preventDefault()},[P4]),pointerGraceTimerRef:mt4,onPointerGraceIntentChange:z.useCallback(p3=>{J2.current=p3},[]),children:Ht.jsx(ht3,{...gt4,children:Ht.jsx(Up,{asChild:true,trapped:s,onMountAutoFocus:go(c2,p3=>{p3.preventDefault();K5.current?.focus({preventScroll:true})}),onUnmountAutoFocus:i5,children:Ht.jsx(Mp,{asChild:true,disableOutsidePointerEvents:d2,onEscapeKeyDown:m5,onPointerDownOutside:x4,onFocusOutside:l2,onInteractOutside:h2,onDismiss:w,children:Ht.jsx(bt,{asChild:true,...pt4,dir:_3.dir,orientation:"vertical",loop:r4,currentTabStopId:xt4,onCurrentTabStopIdChange:xe4,onEntryFocus:go(f3,p3=>{if(!_3.isUsingKeyboardRef.current)p3.preventDefault()}),preventScrollOnEntryFocus:true,children:Ht.jsx(SS,{role:"menu","aria-orientation":"vertical","data-state":tt3(C2.open),"data-radix-menu-content":"",dir:_3.dir,...Q4,...N2,ref:ft4,style:{outline:"none",...N2.style},onKeyDown:go(N2.onKeyDown,p3=>{const F3=p3.target;const R5=F3.closest("[data-radix-menu-content]")===p3.currentTarget;const I4=p3.ctrlKey||p3.altKey||p3.metaKey;const ee6=p3.key.length===1;if(R5){if(p3.key==="Tab")p3.preventDefault();if(!I4&&ee6)vt3(p3.key)}const te4=K5.current;if(p3.target!==te4)return;if(!zt.includes(p3.key))return;p3.preventDefault();const ne5=pe7().filter(j2=>!j2.disabled);const A=ne5.map(j2=>j2.ref.current);if(Ie.includes(p3.key))A.reverse();mn(A)}),onBlur:go(t3.onBlur,p3=>{if(!p3.currentTarget.contains(p3.target)){window.clearTimeout($3.current);H2.current=""}}),onPointerMove:go(t3.onPointerMove,O(p3=>{const F3=p3.target;const R5=Z4.current!==p3.clientX;if(p3.currentTarget.contains(F3)&&R5){const I4=p3.clientX>Z4.current?"right":"left";fe4.current=I4;Z4.current=p3.clientX}}))})})})})})})});Be2.displayName=y;var sn2="MenuGroup";var le2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,...r4}=t3;return Ht.jsx(sn.div,{role:"group",...r4,ref:o4})});le2.displayName=sn2;var an="MenuLabel";var Ue3=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,...r4}=t3;return Ht.jsx(sn.div,{...r4,ref:o4})});Ue3.displayName=an;var W2="MenuItem";var we="menu.itemSelect";var Y=z.forwardRef((t3,o4)=>{const{disabled:n4=false,onSelect:r4,...s}=t3;const c2=z.useRef(null);const i5=G(W2,t3.__scopeMenu);const d2=ie2(W2,t3.__scopeMenu);const f3=on(o4,c2);const m5=z.useRef(false);const x4=u3(()=>{const l2=c2.current;if(!n4&&l2){const h2=new CustomEvent(we,{bubbles:true,cancelable:true});l2.addEventListener(we,w=>r4?.(w),{once:true});xp(l2,h2);if(h2.defaultPrevented){m5.current=false}else{i5.onClose()}}},"handleSelect");return Ht.jsx(Ge2,{...s,ref:f3,disabled:n4,onClick:go(t3.onClick,x4),onPointerDown:u3(l2=>{t3.onPointerDown?.(l2);m5.current=true},"onPointerDown"),onPointerUp:go(t3.onPointerUp,l2=>{if(!m5.current)l2.currentTarget?.click()}),onKeyDown:go(t3.onKeyDown,l2=>{const h2=d2.searchRef.current!=="";if(n4||h2&&l2.key===" ")return;if(re2.includes(l2.key)){l2.currentTarget.click();l2.preventDefault()}})})});Y.displayName=W2;var Ge2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,disabled:r4=false,textValue:s,...c2}=t3;const i5=ie2(W2,n4);const d2=ke3(n4);const f3=z.useRef(null);const m5=on(o4,f3);const[x4,l2]=z.useState(false);const[h2,w]=z.useState("");z.useEffect(()=>{const v3=f3.current;if(v3){w((v3.textContent??"").trim())}},[c2.children]);return Ht.jsx(T.ItemSlot,{scope:n4,disabled:r4,textValue:s??h2,children:Ht.jsx(Rt,{asChild:true,...d2,focusable:!r4,children:Ht.jsx(sn.div,{role:"menuitem","data-highlighted":x4?"":void 0,"aria-disabled":r4||void 0,"data-disabled":r4?"":void 0,...c2,ref:m5,onPointerMove:go(t3.onPointerMove,O(v3=>{if(r4){i5.onItemLeave(v3)}else{i5.onItemEnter(v3);if(!v3.defaultPrevented){const N2=v3.currentTarget;N2.focus({preventScroll:true})}}})),onPointerLeave:go(t3.onPointerLeave,O(v3=>i5.onItemLeave(v3))),onFocus:go(t3.onFocus,()=>l2(true)),onBlur:go(t3.onBlur,()=>l2(false))})})})});var cn="MenuCheckboxItem";var Ke3=z.forwardRef((t3,o4)=>{const{checked:n4=false,onCheckedChange:r4,...s}=t3;return Ht.jsx(Ve2,{scope:t3.__scopeMenu,checked:n4,children:Ht.jsx(Y,{role:"menuitemcheckbox","aria-checked":z2(n4)?"mixed":n4,...s,ref:o4,"data-state":ue2(n4),onSelect:go(s.onSelect,()=>r4?.(z2(n4)?true:!n4),{checkForDefaultPrevented:false})})})});Ke3.displayName=cn;var $e2="MenuRadioGroup";var[ln,dn]=S2($e2,{value:void 0,onValueChange:u3(()=>{},"onValueChange")});var He2=z.forwardRef((t3,o4)=>{const{value:n4,onValueChange:r4,...s}=t3;const c2=aa(r4);return Ht.jsx(ln,{scope:t3.__scopeMenu,value:n4,onValueChange:c2,children:Ht.jsx(le2,{...s,ref:o4})})});He2.displayName=$e2;var We2="MenuRadioItem";var ze2=z.forwardRef((t3,o4)=>{const{value:n4,...r4}=t3;const s=dn(We2,t3.__scopeMenu);const c2=n4===s.value;return Ht.jsx(Ve2,{scope:t3.__scopeMenu,checked:c2,children:Ht.jsx(Y,{role:"menuitemradio","aria-checked":c2,...r4,ref:o4,"data-state":ue2(c2),onSelect:go(r4.onSelect,()=>s.onValueChange?.(n4),{checkForDefaultPrevented:false})})})});ze2.displayName=We2;var de2="MenuItemIndicator";var[Ve2,un]=S2(de2,{checked:false});var Xe2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,forceMount:r4,...s}=t3;const c2=un(de2,n4);return Ht.jsx(j,{present:r4||z2(c2.checked)||c2.checked===true,children:Ht.jsx(sn.span,{...s,ref:o4,"data-state":ue2(c2.checked)})})});Xe2.displayName=de2;var pn="MenuSeparator";var Ye2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,...r4}=t3;return Ht.jsx(sn.div,{role:"separator","aria-orientation":"horizontal",...r4,ref:o4})});Ye2.displayName=pn;var xn="MenuArrow";var qe2=z.forwardRef((t3,o4)=>{const{__scopeMenu:n4,...r4}=t3;const s=X2(n4);return Ht.jsx(ES,{...s,...r4,ref:o4})});qe2.displayName=xn;var fn2="MenuSub";var[Ro2,Qe3]=S2(fn2);var k2="MenuSubTrigger";var Je3=z.forwardRef((t3,o4)=>{const n4=E2(k2,t3.__scopeMenu);const r4=G(k2,t3.__scopeMenu);const s=Qe3(k2,t3.__scopeMenu);const c2=ie2(k2,t3.__scopeMenu);const i5=z.useRef(null);const{pointerGraceTimerRef:d2,onPointerGraceIntentChange:f3}=c2;const m5={__scopeMenu:t3.__scopeMenu};const x4=z.useCallback(()=>{if(i5.current)window.clearTimeout(i5.current);i5.current=null},[]);z.useEffect(()=>x4,[x4]);z.useEffect(()=>{const l2=d2.current;return()=>{window.clearTimeout(l2);f3(null)}},[d2,f3]);return Ht.jsx(se2,{asChild:true,...m5,children:Ht.jsx(Ge2,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n4.open,"aria-controls":s.contentId,"data-state":tt3(n4.open),...t3,ref:Xh(o4,s.onTriggerChange),onClick:u3(l2=>{t3.onClick?.(l2);if(t3.disabled||l2.defaultPrevented)return;l2.currentTarget.focus();if(!n4.open)n4.onOpenChange(true)},"onClick"),onPointerMove:go(t3.onPointerMove,O(l2=>{c2.onItemEnter(l2);if(l2.defaultPrevented)return;if(!t3.disabled&&!n4.open&&!i5.current){c2.onPointerGraceIntentChange(null);i5.current=window.setTimeout(()=>{n4.onOpenChange(true);x4()},100)}})),onPointerLeave:go(t3.onPointerLeave,O(l2=>{x4();const h2=n4.content?.getBoundingClientRect();if(h2){const w=n4.content?.dataset.side;const v3=w==="right";const N2=v3?-5:5;const C2=h2[v3?"left":"right"];const _3=h2[v3?"right":"left"];c2.onPointerGraceIntentChange({area:[{x:l2.clientX+N2,y:l2.clientY},{x:C2,y:h2.top},{x:_3,y:h2.top},{x:_3,y:h2.bottom},{x:C2,y:h2.bottom}],side:w});window.clearTimeout(d2.current);d2.current=window.setTimeout(()=>c2.onPointerGraceIntentChange(null),300)}else{c2.onTriggerLeave(l2);if(l2.defaultPrevented)return;c2.onPointerGraceIntentChange(null)}})),onKeyDown:go(t3.onKeyDown,l2=>{const h2=c2.searchRef.current!=="";if(t3.disabled||h2&&l2.key===" ")return;if(Vt[r4.dir].includes(l2.key)){n4.onOpenChange(true);n4.content?.focus();l2.preventDefault()}})})})});Je3.displayName=k2;var Ze3="MenuSubContent";var et2=z.forwardRef((t3,o4)=>{const n4=Oe(y,t3.__scopeMenu);const{forceMount:r4=n4.forceMount,...s}=t3;const c2=E2(y,t3.__scopeMenu);const i5=G(y,t3.__scopeMenu);const d2=Qe3(Ze3,t3.__scopeMenu);const f3=z.useRef(null);const m5=on(o4,f3);return Ht.jsx(T.Provider,{scope:t3.__scopeMenu,children:Ht.jsx(j,{present:r4||c2.open,children:Ht.jsx(T.Slot,{scope:t3.__scopeMenu,children:Ht.jsx(ce2,{id:d2.contentId,"aria-labelledby":d2.triggerId,...s,ref:m5,align:"start",side:i5.dir==="rtl"?"left":"right",disableOutsidePointerEvents:false,disableOutsideScroll:false,trapFocus:false,onOpenAutoFocus:u3(x4=>{if(i5.isUsingKeyboardRef.current)f3.current?.focus();x4.preventDefault()},"onOpenAutoFocus"),onCloseAutoFocus:u3(x4=>x4.preventDefault(),"onCloseAutoFocus"),onFocusOutside:go(t3.onFocusOutside,x4=>{if(x4.target!==d2.trigger)c2.onOpenChange(false)}),onEscapeKeyDown:go(t3.onEscapeKeyDown,x4=>{i5.onClose();x4.preventDefault()}),onKeyDown:go(t3.onKeyDown,x4=>{const l2=x4.currentTarget.contains(x4.target);const h2=Xt[i5.dir].includes(x4.key);if(l2&&h2){c2.onOpenChange(false);d2.trigger?.focus();x4.preventDefault()}})})})})})});et2.displayName=Ze3;function tt3(t3){return t3?"open":"closed"}__name(tt3,"tt");u3(tt3,"getOpenState");function z2(t3){return t3==="indeterminate"}__name(z2,"z");u3(z2,"isIndeterminate");function ue2(t3){return z2(t3)?"indeterminate":t3?"checked":"unchecked"}__name(ue2,"ue");u3(ue2,"getCheckedState");function mn(t3){const o4=document.activeElement;for(const n4 of t3){if(n4===o4)return;n4.focus();if(document.activeElement!==o4)return}}__name(mn,"mn");u3(mn,"focusFirst");function hn(t3,o4){return t3.map((n4,r4)=>t3[(o4+r4)%t3.length])}__name(hn,"hn");u3(hn,"wrapArray");function gn(t3,o4,n4){const r4=o4.length>1&&Array.from(o4).every(m5=>m5===o4[0]);const s=r4?o4[0]:o4;const c2=n4?t3.indexOf(n4):-1;let i5=hn(t3,Math.max(c2,0));const d2=s.length===1;if(d2)i5=i5.filter(m5=>m5!==n4);const f3=i5.find(m5=>m5.toLowerCase().startsWith(s.toLowerCase()));return f3!==n4?f3:void 0}__name(gn,"gn");u3(gn,"getNextMatch");function vn(t3,o4){const{x:n4,y:r4}=t3;let s=false;for(let c2=0,i5=o4.length-1;c2r4!==h2>r4&&n4<(l2-m5)*(r4-x4)/(h2-x4)+m5;if(w)s=!s}return s}__name(vn,"vn");u3(vn,"isPointInPolygon");function bn(t3,o4){if(!o4)return false;const n4={x:t3.clientX,y:t3.clientY};return vn(n4,o4)}__name(bn,"bn");u3(bn,"isPointerInGraceArea");function O(t3){return o4=>o4.pointerType==="mouse"?t3(o4):void 0}__name(O,"O");u3(O,"whenMouse");var wn=Te;var Mn=se2;var jn=Le2;var yn=Be2;var Cn=le2;var Nn=Ue3;var _n=Y;var Fn2=Ke3;var Rn=He2;var Sn=ze2;var En=Xe2;var Pn2=Ye2;var Dn=qe2;var In2=Je3;var An=et2;var q="DropdownMenu";var[kn,So2]=av(q,[Ae]);var M2=Ae();var[Tn,nt2]=kn(q);var ot3=u3(t3=>{const{__scopeDropdownMenu:o4,children:n4,dir:r4,open:s,defaultOpen:c2,onOpenChange:i5,modal:d2=true}=t3;const f3=M2(o4);const m5=z.useRef(null);const[x4,l2]=dS({prop:s,defaultProp:c2??false,onChange:i5,caller:q});return Ht.jsx(Tn,{scope:o4,triggerId:gS(),triggerRef:m5,contentId:gS(),open:x4,onOpenChange:l2,onOpenToggle:z.useCallback(()=>l2(h2=>!h2),[l2]),modal:d2,children:Ht.jsx(wn,{...f3,open:x4,onOpenChange:l2,dir:r4,modal:d2,children:n4})})},"DropdownMenu$1");ot3.displayName=q;var rt2="DropdownMenuTrigger";var st2=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,disabled:r4=false,...s}=t3;const c2=nt2(rt2,n4);const i5=M2(n4);return Ht.jsx(Mn,{asChild:true,...i5,children:Ht.jsx(sn.button,{type:"button",id:c2.triggerId,"aria-haspopup":"menu","aria-expanded":c2.open,"aria-controls":c2.open?c2.contentId:void 0,"data-state":c2.open?"open":"closed","data-disabled":r4?"":void 0,disabled:r4,...s,ref:Xh(o4,c2.triggerRef),onPointerDown:go(t3.onPointerDown,d2=>{if(!r4&&d2.button===0&&d2.ctrlKey===false){c2.onOpenToggle();if(!c2.open)d2.preventDefault()}}),onKeyDown:go(t3.onKeyDown,d2=>{if(r4)return;if(["Enter"," "].includes(d2.key))c2.onOpenToggle();if(d2.key==="ArrowDown")c2.onOpenChange(true);if(["Enter"," ","ArrowDown"].includes(d2.key))d2.preventDefault()})})})});st2.displayName=rt2;var On="DropdownMenuPortal";var at2=u3(t3=>{const{__scopeDropdownMenu:o4,...n4}=t3;const r4=M2(o4);return Ht.jsx(jn,{...r4,...n4})},"DropdownMenuPortal");at2.displayName=On;var it2="DropdownMenuContent";var ct2=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=nt2(it2,n4);const c2=M2(n4);const i5=z.useRef(false);return Ht.jsx(yn,{id:s.contentId,"aria-labelledby":s.triggerId,...c2,...r4,ref:o4,onCloseAutoFocus:go(t3.onCloseAutoFocus,d2=>{if(!i5.current)s.triggerRef.current?.focus();i5.current=false;d2.preventDefault()}),onInteractOutside:go(t3.onInteractOutside,d2=>{const f3=d2.detail.originalEvent;const m5=f3.button===0&&f3.ctrlKey===true;const x4=f3.button===2||m5;if(!s.modal||x4)i5.current=true}),style:{...t3.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});ct2.displayName=it2;var Ln="DropdownMenuGroup";var Bn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Cn,{...s,...r4,ref:o4})});Bn.displayName=Ln;var Un="DropdownMenuLabel";var Gn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Nn,{...s,...r4,ref:o4})});Gn.displayName=Un;var Kn="DropdownMenuItem";var lt2=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(_n,{...s,...r4,ref:o4})});lt2.displayName=Kn;var $n="DropdownMenuCheckboxItem";var Hn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Fn2,{...s,...r4,ref:o4})});Hn.displayName=$n;var Wn="DropdownMenuRadioGroup";var zn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Rn,{...s,...r4,ref:o4})});zn.displayName=Wn;var Vn="DropdownMenuRadioItem";var Xn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Sn,{...s,...r4,ref:o4})});Xn.displayName=Vn;var Yn="DropdownMenuItemIndicator";var qn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(En,{...s,...r4,ref:o4})});qn.displayName=Yn;var Qn="DropdownMenuSeparator";var Jn=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Pn2,{...s,...r4,ref:o4})});Jn.displayName=Qn;var Zn="DropdownMenuArrow";var eo=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(Dn,{...s,...r4,ref:o4})});eo.displayName=Zn;var to="DropdownMenuSubTrigger";var no=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(In2,{...s,...r4,ref:o4})});no.displayName=to;var oo2="DropdownMenuSubContent";var ro2=z.forwardRef((t3,o4)=>{const{__scopeDropdownMenu:n4,...r4}=t3;const s=M2(n4);return Ht.jsx(An,{...s,...r4,ref:o4,style:{...t3.style,...{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}})});ro2.displayName=oo2;var so2=ot3;var ao=st2;var io=at2;var co2=ct2;var lo=lt2;var uo=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]];var po2=qv("heart",uo);var xo2=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]];var Me2=qv("menu",xo2);var fo2=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]];var mo2=qv("package",fo2);var ho2=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]];var go2=qv("shopping-bag",ho2);var vo2=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]];var bo2=qv("user",vo2);function je2({...t3}){return Ht.jsx(so2,{"data-slot":"dropdown-menu",...t3})}__name(je2,"je");u3(je2,"DropdownMenu");function ye2({...t3}){return Ht.jsx(ao,{"data-slot":"dropdown-menu-trigger",...t3})}__name(ye2,"ye");u3(ye2,"DropdownMenuTrigger");function Ce({className:t3,sideOffset:o4=4,...n4}){return Ht.jsx(io,{children:Ht.jsx(co2,{"data-slot":"dropdown-menu-content",sideOffset:o4,className:nv("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t3),...n4})})}__name(Ce,"Ce");u3(Ce,"DropdownMenuContent");function Ne2({className:t3,inset:o4,variant:n4="default",...r4}){return Ht.jsx(lo,{"data-slot":"dropdown-menu-item","data-inset":o4,"data-variant":n4,className:nv("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t3),...r4})}__name(Ne2,"Ne");u3(Ne2,"DropdownMenuItem");var dt3=u3(t3=>{return{id:String(t3.id),label:rS(String(t3.title)),href:t3.resolved_url,children:Array.isArray(t3.children)?t3.children.map(dt3):void 0}},"createMenuItem");var ut2=z.createContext(null);var wo2=u3(()=>{const t3=z.useContext(ut2);if(!t3){throw new Error("useMenu must be used within a MenuProvider")}return t3},"useMenu");var Mo2=u3(({children:t3,menu_id:o4,...n4})=>{const[r4,s]=z.useState([]);const[c2,i5]=z.useState(true);const[d2,f3]=z.useState(null);const[m5,x4]=z.useState(false);const l2=z.useRef(null);const h2=z.useCallback(()=>{const C2="Failed to fetch menu items";f3(C2)},[]);const w=u3(async C2=>{if(m5)return;i5(true);x4(true);f3(null);try{const _3=await wvcClient.getMenuItems({menuId:parseInt(o4)});const Q4=_3.map(dt3);s(Q4)}catch{h2()}finally{i5(false);x4(false)}},"fetchMenuItems");z.useEffect(()=>{l2.current=new AbortController;w(l2.current.signal);const C2=u3(()=>{v3()},"handleMenuRefresh");window.addEventListener("WVC_MENU_REFRESH",C2);return()=>{if(l2.current){l2.current.abort()}window.removeEventListener("WVC_MENU_REFRESH",C2)}},[]);const v3=u3(async()=>{if(l2.current){l2.current.abort()}l2.current=new AbortController;await w(l2.current.signal)},"refetch");const N2={menuItems:r4,loading:c2,error:d2,refetch:v3,isRefetching:m5};return Ht.jsx(ut2.Provider,{value:N2,children:Ht.jsx("div",{...n4,"data-wvc-dynamic":"MenuProvider","data-wvc-menu_id":o4,children:t3})})},"WordpressMenuProvider");var jo2=Mo2;var yo2=[{label:"Home",href:"/",active:true},{label:"Shop",href:"/shop",hasDropdown:true,dropdownItems:[{label:"Fibre Filler",href:"/shop/fibre-filler"},{label:"Liquid Rubber",href:"/shop/liquid-rubber"},{label:"Primers",href:"/shop/primers"},{label:"Wall and Roof Paint",href:"/shop/wall-and-roof-paint"}]},{label:"Waterproofing Solutions",href:"/waterproofing-solutions"},{label:"How It Works",href:"/how-it-works"},{label:"Applications",href:"/applications"},{label:"Help & Advice",href:"/help-advice"},{label:"About us",href:"/about-us"},{label:"Contact",href:"/contact"}];var _e=[{label:"Shop Liquid Rubber",href:"/shop/liquid-rubber"},{label:"Shop Fibre Filler",href:"/shop/fibre-filler"},{label:"Shop Primers",href:"/shop/primers"},{label:"Shop Wall & Roof Paint",href:"/shop/wall-and-roof-paint"},{label:"Seamless Liquid Rubber Waterproofing",href:"/shop/liquid-rubber"},{label:"Reinforce Cracks, Joints & Leak Points",href:"/shop/fibre-filler"},{label:"Prepare Surfaces for Stronger Adhesion",href:"/shop/primers"},{label:"Durable Wall & Roof Protection That Lasts",href:"/shop/wall-and-roof-paint"}];function Co2(){const[t3,o4]=z.useState("");const[n4,r4]=z.useState(false);const{menuItems:s}=wo2();const c2=s&&s.length>0?s.map(i5=>({label:i5.label||i5.title||"",href:i5.href||i5.url||"#",dropdownItems:i5.children?.map(d2=>({label:d2.label||d2.title||"",href:d2.href||d2.url||"#"})),hasDropdown:Boolean(i5.children&&i5.children.length>0),active:false})):yo2;return Ht.jsxs("header",{id:"header",className:"w-full bg-white text-[#4B5563] relative z-50 overflow-visible",style:{fontFamily:'"Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif'},children:[Ht.jsx("section",{className:"w-full bg-white border-b border-[#EBEFF5]",children:Ht.jsxs("div",{className:"max-w-[1260px] mx-auto px-4 py-4 md:py-6 flex flex-wrap items-center justify-between gap-4",children:[Ht.jsx("div",{className:"flex-shrink-0 flex items-center",children:Ht.jsx(cS,{to:"https://teal-sparrow-432062.hostingersite.com",className:"inline-block","aria-label":"U-Proof Home",children:Ht.jsx("img",{src:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/cropped-U-Proof-Designs.png",alt:"U-Proof Waterproofing Solutions Logo",className:"w-auto h-8 md:h-12 max-w-[200px] object-contain"})})}),Ht.jsx("div",{className:"hidden md:flex flex-1 max-w-[500px] mx-4 items-center",children:Ht.jsxs("div",{className:"relative w-full",children:[Ht.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none text-[#0046BE]",children:Ht.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 26 26","aria-hidden":"true",className:"stroke-[#0046BE]",children:[Ht.jsx("circle",{cx:"11.35",cy:"11.35",r:"6",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"}),Ht.jsx("line",{x1:"15.59",y1:"15.59",x2:"20.65",y2:"20.65",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"})]})}),Ht.jsx(It,{type:"text",placeholder:"Find product",value:t3,onChange:u3(i5=>o4(i5.target.value),"onChange"),className:"w-full bg-[#EDF0F2] border-[#F3F4F6] text-[#6F7C8E] text-[15px] pl-10 pr-4 h-11 rounded focus-visible:ring-1 focus-visible:ring-[#0071A2] placeholder:text-[#6F7C8E]"})]})}),Ht.jsxs("div",{className:"flex items-center gap-4 md:gap-6",children:[Ht.jsxs(cS,{to:"/wishlist",className:"group flex items-center gap-2 text-left","aria-label":"Wishlist Products",children:[Ht.jsxs("div",{className:"relative w-10 h-10 rounded-lg border border-[#EDF0F2] flex items-center justify-center text-[#111827] group-hover:border-[#FFD401] transition-colors",children:[Ht.jsx(po2,{className:"w-5 h-5 text-[#333333] stroke-[1.5]"}),Ht.jsx(oS,{className:"absolute -top-2 -right-2 bg-[#FFC501] text-[#4B5563] text-[11px] font-bold h-4 min-w-[16px] px-1 rounded-full flex items-center justify-center p-0 border-none",children:"0"})]}),Ht.jsxs("div",{className:"hidden lg:flex flex-col leading-tight",children:[Ht.jsx("span",{className:"text-[11px] text-[#757575] font-normal",children:"Wishlist"}),Ht.jsx("span",{className:"text-sm font-semibold text-[#111827] group-hover:text-[#FFC501] transition-colors",children:"Products"})]})]}),Ht.jsxs(cS,{to:"/my-account",className:"group flex items-center gap-2 text-left","aria-label":"My Account",children:[Ht.jsx("div",{className:"relative w-10 h-10 rounded-lg border border-[#EDF0F2] flex items-center justify-center text-[#111827] group-hover:border-[#FFD401] transition-colors",children:Ht.jsx(bo2,{className:"w-5 h-5 text-[#333333] stroke-[1.5]"})}),Ht.jsxs("div",{className:"hidden lg:flex flex-col leading-tight",children:[Ht.jsx("span",{className:"text-[11px] text-[#757575] font-normal",children:"Account"}),Ht.jsx("span",{className:"text-sm font-semibold text-[#111827] group-hover:text-[#FFC501] transition-colors",children:"Sign in"})]})]}),Ht.jsxs(cS,{to:"/cart",className:"group flex items-center gap-2 text-left","aria-label":"Shopping Cart",children:[Ht.jsxs("div",{className:"relative w-10 h-10 rounded-lg border border-[#EDF0F2] flex items-center justify-center text-[#111827] group-hover:border-[#FFD401] transition-colors",children:[Ht.jsx(go2,{className:"w-5 h-5 text-[#333333] stroke-[1.5]"}),Ht.jsx(oS,{className:"absolute -top-2 -right-2 bg-[#FFC501] text-[#4B5563] text-[11px] font-bold h-4 min-w-[16px] px-1 rounded-full flex items-center justify-center p-0 border-none",children:"0"})]}),Ht.jsx("div",{className:"hidden lg:flex flex-col leading-tight",children:Ht.jsx("span",{className:"text-sm font-semibold text-[#111827] group-hover:text-[#FFC501] transition-colors",children:"R0,00"})})]}),Ht.jsxs(Ct,{open:n4,onOpenChange:r4,children:[Ht.jsx(Et,{asChild:true,children:Ht.jsxs(fS,{variant:"outline",size:"icon",className:"lg:hidden h-10 w-10 rounded-lg border border-[#EDF0F2]",children:[Ht.jsx(Me2,{className:"w-5 h-5 text-[#111827]"}),Ht.jsx("span",{className:"sr-only",children:"Toggle menu"})]})}),Ht.jsxs(Tt,{side:"right",className:"w-[300px] sm:w-[360px] p-0",children:[Ht.jsx(_t,{className:"p-4 border-b border-[#EDF0F2] text-left",children:Ht.jsx(wt,{className:"text-lg font-bold text-[#111827]",children:"Menu"})}),Ht.jsxs("div",{className:"p-4 space-y-4 overflow-y-auto max-h-[calc(100vh-80px)]",children:[Ht.jsxs("div",{className:"relative w-full",children:[Ht.jsx(It,{type:"text",placeholder:"Find product",className:"w-full bg-[#EDF0F2] border-[#F3F4F6] text-[14px] pl-9 h-10"}),Ht.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:Ht.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 26 26",className:"stroke-[#0046BE]","aria-hidden":"true",children:[Ht.jsx("circle",{cx:"11.35",cy:"11.35",r:"6",fill:"none",strokeWidth:"2"}),Ht.jsx("line",{x1:"15.59",y1:"15.59",x2:"20.65",y2:"20.65",fill:"none",strokeWidth:"2"})]})})]}),Ht.jsxs("div",{className:"pt-2",children:[Ht.jsx("p",{className:"text-xs uppercase font-bold text-gray-400 mb-2",children:"Categories"}),Ht.jsx("div",{className:"space-y-1",children:_e.slice(0,4).map(i5=>Ht.jsxs(cS,{to:i5.href,onClick:u3(()=>r4(false),"onClick"),className:"flex items-center justify-between py-2 text-sm text-[#111827] hover:text-[#0071A2] font-medium",children:[Ht.jsx("span",{children:i5.label}),Ht.jsx(Nt,{className:"w-4 h-4 text-gray-400"})]},i5.label))})]}),Ht.jsx("hr",{className:"border-[#EDF0F2]"}),Ht.jsxs("div",{children:[Ht.jsx("p",{className:"text-xs uppercase font-bold text-gray-400 mb-2",children:"Navigation"}),Ht.jsx("div",{className:"space-y-1",children:c2.map(i5=>Ht.jsx(cS,{to:i5.href,onClick:u3(()=>r4(false),"onClick"),className:`block py-2 text-sm font-semibold transition-colors ${i5.active?"text-[#0071A2]":"text-[#14181F] hover:text-[#0071A2]"}`,children:i5.label},i5.label))})]})]})]})]})]})]})}),Ht.jsx("nav",{"aria-label":"Main Navigation",className:"hidden lg:block w-full bg-white border-t border-[#EDF0F2] shadow-[0_16px_32px_-4px_rgba(12,12,13,0.08)] relative z-40",style:{boxShadow:"rgba(12, 12, 13, 0.08) 0px 16px 32px -4px"},children:Ht.jsxs("div",{className:"max-w-[1260px] mx-auto px-4 flex items-stretch justify-start",children:[Ht.jsx("div",{className:"flex items-stretch flex-1 overflow-x-auto scrollbar-none",children:c2.map(i5=>{if(i5.hasDropdown&&i5.dropdownItems&&i5.dropdownItems.length>0){return Ht.jsxs(je2,{children:[Ht.jsx(ye2,{asChild:true,children:Ht.jsxs("button",{type:"button",className:"h-[59px] px-5 flex items-center gap-1 text-[14.4px] font-semibold text-[#14181F] hover:bg-[#0071A2] hover:text-white border-r border-[#EDF0F2] transition-colors cursor-pointer outline-none",children:[Ht.jsx("span",{children:i5.label}),Ht.jsx(AS,{className:"w-3.5 h-3.5 opacity-70"})]})}),Ht.jsx(Ce,{align:"start",className:"w-[220px] bg-white p-2 rounded-md shadow-lg border border-[#EDF0F2]",children:i5.dropdownItems.map(d2=>Ht.jsx(Ne2,{asChild:true,children:Ht.jsx(cS,{to:d2.href,className:"block py-2 px-3 text-sm font-medium text-[#111827] hover:bg-[#F3F4F6] rounded",children:d2.label})},d2.label))})]},i5.label)}return Ht.jsx(cS,{to:i5.href,className:`h-[59px] px-5 flex items-center justify-center text-[14.4px] font-semibold border-r border-[#EDF0F2] transition-colors whitespace-nowrap ${i5.active?"bg-[#0071A2] text-white":"text-[#14181F] hover:bg-[#0071A2] hover:text-white"}`,style:i5.active?{backgroundColor:"rgb(0, 113, 162)",color:"#FFFFFF"}:void 0,children:i5.label},i5.label)})})]})})]})}__name(Co2,"Co");u3(Co2,"HeaderContent");function Eo2(){return Ht.jsx(jo2,{menu_id:"16",children:Ht.jsx(Co2,{})})}__name(Eo2,"Eo");u3(Eo2,"Header");function Po(){const t3=u3(()=>{window.scrollTo({top:0,behavior:"smooth"})},"scrollToTop");return Ht.jsx("footer",{id:"mfn-footer-template",className:"w-full bg-white text-[#4B5563]",style:{fontFamily:'"Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif'},children:Ht.jsxs("div",{className:"w-full max-w-[1260px] mx-auto px-4 md:px-6 pt-16 pb-8",children:[Ht.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-8 lg:gap-12 items-start",children:[Ht.jsxs("div",{className:"md:col-span-5 lg:col-span-5 flex flex-col space-y-4 pr-0 lg:pr-8",children:[Ht.jsx(cS,{to:"https://teal-sparrow-432062.hostingersite.com",className:"inline-block mb-2 w-fit",children:Ht.jsx("img",{src:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/cropped-U-Proof-Designs.png",alt:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/cropped-U-Proof-Designs.png",className:"w-[228px] h-auto object-contain"})}),Ht.jsx("p",{className:"text-[#4B5563] text-[16px] font-normal leading-[24px]",style:{fontFamily:'"Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif'},children:"U-Proof supplies high-performance waterproofing products designed to protect roofs, walls, gutters, concrete, metal and exposed surfaces from leaks, weather damage and long-term deterioration."}),Ht.jsx("p",{className:"text-[#4B5563] text-[16px] font-normal leading-[24px]",style:{fontFamily:'"Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif'},children:"Built for South African conditions, our waterproofing range is suitable for homeowners, contractors, builders and property maintenance teams."})]}),Ht.jsxs("div",{className:"md:col-span-7 lg:col-span-7 grid grid-cols-1 sm:grid-cols-3 gap-8",children:[Ht.jsxs("div",{className:"flex flex-col",children:[Ht.jsx("span",{className:"text-[#111827] text-[16px] font-bold leading-[24px] mb-4",children:"Shop Products"}),Ht.jsx("ul",{className:"flex flex-col space-y-1 p-0 m-0 list-none",children:Ht.jsx("li",{children:Ht.jsx(cS,{to:"/products",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Products"})})})]}),Ht.jsxs("div",{className:"flex flex-col",children:[Ht.jsx("span",{className:"text-[#111827] text-[16px] font-bold leading-[24px] mb-4",children:"Solutions"}),Ht.jsxs("ul",{className:"flex flex-col space-y-1 p-0 m-0 list-none",children:[Ht.jsx("li",{children:Ht.jsx(cS,{to:"/solutions/roof-waterproofing",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Roof Waterproofing"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/solutions/metal-roof-protection",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Metal Roof Protection"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/solutions/concrete-waterproofing",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Concrete Waterproofing"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/solutions/gutters-flashings",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Gutters & Flashings"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/solutions/balconies-terraces",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Balconies & Terraces"})})]})]}),Ht.jsxs("div",{className:"flex flex-col",children:[Ht.jsx("span",{className:"text-[#111827] text-[16px] font-bold leading-[24px] mb-4",children:"Legal"}),Ht.jsxs("ul",{className:"flex flex-col space-y-1 p-0 m-0 list-none",children:[Ht.jsx("li",{children:Ht.jsx(cS,{to:"/terms-conditions",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Terms & Conditions"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/privacy-policy",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Privacy Policy"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/about-us",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"About us"})}),Ht.jsx("li",{children:Ht.jsx(cS,{to:"/contact",className:"inline-block text-[#4B5563] hover:text-[#FFC501] text-[15px] font-medium leading-[22.5px] py-1 transition-colors duration-150",children:"Contact"})})]})]})]})]}),Ht.jsxs("div",{className:"mt-12 py-[25px] border-t border-b border-[#EDF0F2] flex items-center justify-between",children:[Ht.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-2",children:[Ht.jsx("img",{src:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/Visa.svg",alt:"payment",className:"w-[40px] h-[27px] object-contain"}),Ht.jsx("img",{src:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/Maestro.svg",alt:"payment",className:"w-[40px] h-[27px] object-contain"}),Ht.jsx("img",{src:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/Mastercard.svg",alt:"payment",className:"w-[40px] h-[27px] object-contain"}),Ht.jsx("img",{src:"https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/PayPal.svg",alt:"payment",className:"w-[40px] h-[27px] object-contain"})]}),Ht.jsx(fS,{variant:"ghost",size:"icon",onClick:t3,className:"text-[#4B5563] hover:text-[#FFC501] hover:bg-transparent h-8 w-8 p-0","aria-label":"Back to top",children:Ht.jsx(TS,{className:"w-5 h-5"})})]}),Ht.jsxs("div",{className:"pt-6 text-center text-[14px] leading-[22px] text-[#7A838F]",children:["xA9 2026 U-Proof | All Rights Reserved |"," ",Ht.jsx(cS,{to:"/privacy-policy",className:"text-[#7A838F] hover:text-[#FFC501] transition-colors duration-150",children:"Privacy Policy"})]})]})})}__name(Po,"Po");u3(Po,"Footer");var eo2=Object.defineProperty;var i2=__name((t3,e4)=>eo2(t3,"name",{value:e4,configurable:true}),"i");var Si=z.createContext({});function no2(t3){const e4=z.useRef(null);if(e4.current===null){e4.current=t3()}return e4.current}__name(no2,"no");i2(no2,"useConstant");var ln2=typeof window!=="undefined";var so3=ln2?z.useLayoutEffect:z.useEffect;var cn2=z.createContext(null);function un2(t3,e4){if(t3.indexOf(e4)===-1)t3.push(e4)}__name(un2,"un");i2(un2,"addUniqueItem");function hn2(t3,e4){const n4=t3.indexOf(e4);if(n4>-1)t3.splice(n4,1)}__name(hn2,"hn");i2(hn2,"removeItem");var q2=i2((t3,e4,n4)=>{if(n4>e4)return e4;if(n4{},"invariant");var _={};var wi=i2(t3=>/^-?(?:d+(?:.d+)?|.d+)$/u.test(t3),"isNumericalString");function Ai(t3){return typeof t3==="object"&&t3!==null}__name(Ai,"Ai");i2(Ai,"isObject");var Vi2=i2(t3=>/^0[^.s]+$/u.test(t3),"isZeroValueString");function dn2(t3){let e4;return()=>{if(e4===void 0)e4=t3();return e4}}__name(dn2,"dn");i2(dn2,"memo");var H=i2(t3=>t3,"noop");var io2=i2((t3,e4)=>n4=>e4(t3(n4)),"combineFunctions");var jt=i2((...t3)=>t3.reduce(io2),"pipe");var Ct2=i2((t3,e4,n4)=>{const s=e4-t3;return s===0?1:(n4-t3)/s},"progress");var In3=class In4{static{__name(this,"In")}constructor(){this.subscriptions=[]}add(e4){un2(this.subscriptions,e4);return()=>hn2(this.subscriptions,e4)}notify(e4,n4,s){const r4=this.subscriptions.length;if(!r4)return;if(r4===1){this.subscriptions[0](e4,n4,s)}else{for(let o4=0;o4t3*1e3,"secondsToMilliseconds");var $2=i2(t3=>t3/1e3,"millisecondsToSeconds");function Ci2(t3,e4){return e4?t3*(1e3/e4):0}__name(Ci2,"Ci");i2(Ci2,"velocityPerSecond");var Di=i2((t3,e4,n4)=>(((1-3*n4+3*e4)*t3+(3*n4-6*e4))*t3+3*e4)*t3,"calcBezier");var ro3=1e-7;var oo3=12;function ao2(t3,e4,n4,s,r4){let o4;let c2;let a4=0;do{c2=e4+(n4-e4)/2;o4=Di(c2,s,r4)-t3;if(o4>0){n4=c2}else{e4=c2}}while(Math.abs(o4)>ro3&&++a4ao2(o4,0,1,t3,n4),"getTForX");return o4=>o4===0||o4===1?o4:Di(r4(o4),e4,s)}__name(Ot,"Ot");i2(Ot,"cubicBezier");var Mi2=i2(t3=>e4=>e4<=.5?t3(2*e4)/2:(2-t3(2*(1-e4)))/2,"mirrorEasing");var Ri2=i2(t3=>e4=>1-t3(1-e4),"reverseEasing");var Ei=Ot(.33,1.53,.69,.99);var mn2=Ri2(Ei);var Li2=Mi2(mn2);var ki2=i2(t3=>(t3*=2)<1?.5*mn2(t3):.5*(2-Math.pow(2,-10*(t3-1))),"anticipate");var pn2=i2(t3=>1-Math.sin(Math.acos(t3)),"circIn");var Bi2=Ri2(pn2);var Fi=Mi2(pn2);var lo2=Ot(.42,0,1,1);var co3=Ot(0,0,.58,1);var Ii=Ot(.42,0,.58,1);var uo2=i2(t3=>{return Array.isArray(t3)&&typeof t3[0]!=="number"},"isEasingArray");var ji2=i2(t3=>Array.isArray(t3)&&typeof t3[0]==="number","isBezierDefinition");var ho3={linear:H,easeIn:lo2,easeInOut:Ii,easeOut:co3,circIn:pn2,circInOut:Fi,circOut:Bi2,backIn:mn2,backInOut:Li2,backOut:Ei,anticipate:ki2};var fo3=i2(t3=>{return typeof t3==="string"},"isValidEasing");var fs=i2(t3=>{if(ji2(t3)){fn3(t3.length===4);const[e4,n4,s,r4]=t3;return Ot(e4,n4,s,r4)}else if(fo3(t3)){return ho3[t3]}return t3},"easingDefinitionToFunction");var Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function mo3(t3,e4){let n4=new Set;let s=new Set;let r4=false;let o4=false;const c2=new WeakSet;let a4={delta:0,timestamp:0,isProcessing:false};function l2(u6){if(c2.has(u6)){h2.schedule(u6);t3()}u6(a4)}__name(l2,"l");i2(l2,"triggerCallback");const h2={schedule:i2((u6,f3=false,d2=false)=>{const m5=d2&&r4;const p3=m5?n4:s;if(f3)c2.add(u6);if(!p3.has(u6))p3.add(u6);return u6},"schedule"),cancel:i2(u6=>{s.delete(u6);c2.delete(u6)},"cancel"),process:i2(u6=>{a4=u6;if(r4){o4=true;return}r4=true;[n4,s]=[s,n4];n4.forEach(l2);n4.clear();r4=false;if(o4){o4=false;h2.process(u6)}},"process")};return h2}__name(mo3,"mo");i2(mo3,"createRenderStep");var po3=40;function Oi(t3,e4){let n4=false;let s=true;const r4={delta:0,timestamp:0,isProcessing:false};const o4=i2(()=>n4=true,"flagRunNextFrame");const c2=Kt.reduce((y3,w)=>{y3[w]=mo3(o4);return y3},{});const{setup:a4,read:l2,resolveKeyframes:h2,preUpdate:u6,update:f3,preRender:d2,render:m5,postRender:p3}=c2;const v3=i2(()=>{const y3=_.useManualTiming?r4.timestamp:performance.now();n4=false;if(!_.useManualTiming){r4.delta=s?1e3/60:Math.max(Math.min(y3-r4.timestamp,po3),1)}r4.timestamp=y3;r4.isProcessing=true;a4.process(r4);l2.process(r4);h2.process(r4);u6.process(r4);f3.process(r4);d2.process(r4);m5.process(r4);p3.process(r4);r4.isProcessing=false;if(n4&&e4){s=false;t3(v3)}},"processBatch");const T2=i2(()=>{n4=true;s=true;if(!r4.isProcessing){t3(v3)}},"wake");const g3=Kt.reduce((y3,w)=>{const b=c2[w];y3[w]=(V,L=false,A=false)=>{if(!n4)T2();return b.schedule(V,L,A)};return y3},{});const x4=i2(y3=>{for(let w=0;w{if(Ht2===void 0){O2.set(B2.isProcessing||_.useManualTiming?B2.timestamp:performance.now())}return Ht2},"now"),set:i2(t3=>{Ht2=t3;queueMicrotask(go3)},"set")};var Ni2=i2(t3=>e4=>typeof e4==="string"&&e4.startsWith(t3),"checkStringStartsWith");var gn2=Ni2("--");var yo3=Ni2("var(--");var yn2=i2(t3=>{const e4=yo3(t3);if(!e4)return false;return vo3.test(t3.split("/*")[0].trim())},"isCSSVariableToken");var vo3=/var(--(?:[w-]+s*|[w-]+s*,(?:s*[^)(s]|s*((?:[^)(]|([^)(]*))*))+s*))$/iu;var yt2={test:i2(t3=>typeof t3==="number","test"),parse:parseFloat,transform:i2(t3=>t3,"transform")};var Mt={...yt2,transform:i2(t3=>q2(0,1,t3),"transform")};var Wt2={...yt2,default:1};var bt3=i2(t3=>Math.round(t3*1e5)/1e5,"sanitize");var vn2=/-?(?:d+(?:.d+)?|.d+)/gu;function To2(t3){return t3==null}__name(To2,"To");i2(To2,"isNullish");var xo3=/^(?:#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?))$/iu;var Tn2=i2((t3,e4)=>n4=>{return Boolean(typeof n4==="string"&&xo3.test(n4)&&n4.startsWith(t3)||e4&&!To2(n4)&&Object.prototype.hasOwnProperty.call(n4,e4))},"isColorString");var Ui2=i2((t3,e4,n4)=>s=>{if(typeof s!=="string")return s;const[r4,o4,c2,a4]=s.match(vn2);return{[t3]:parseFloat(r4),[e4]:parseFloat(o4),[n4]:parseFloat(c2),alpha:a4!==void 0?parseFloat(a4):1}},"splitColor");var Po2=i2(t3=>q2(0,255,t3),"clampRgbUnit");var re3={...yt2,transform:i2(t3=>Math.round(Po2(t3)),"transform")};var it3={test:Tn2("rgb","red"),parse:Ui2("red","green","blue"),transform:i2(({red:t3,green:e4,blue:n4,alpha:s=1})=>"rgba("+re3.transform(t3)+", "+re3.transform(e4)+", "+re3.transform(n4)+", "+bt3(Mt.transform(s))+")","transform")};function bo3(t3){let e4="";let n4="";let s="";let r4="";if(t3.length>5){e4=t3.substring(1,3);n4=t3.substring(3,5);s=t3.substring(5,7);r4=t3.substring(7,9)}else{e4=t3.substring(1,2);n4=t3.substring(2,3);s=t3.substring(3,4);r4=t3.substring(4,5);e4+=e4;n4+=n4;s+=s;r4+=r4}return{red:parseInt(e4,16),green:parseInt(n4,16),blue:parseInt(s,16),alpha:r4?parseInt(r4,16)/255:1}}__name(bo3,"bo");i2(bo3,"parseHex");var xe={test:Tn2("#"),parse:bo3,transform:it3.transform};var Nt2=i2(t3=>({test:i2(e4=>typeof e4==="string"&&e4.endsWith(t3)&&e4.split(" ").length===1,"test"),parse:parseFloat,transform:i2(e4=>`${e4}${t3}`,"transform")}),"createUnitType");var Z2=Nt2("deg");var Y2=Nt2("%");var P=Nt2("px");var So3=Nt2("vh");var wo3=Nt2("vw");var ds=(()=>({...Y2,parse:i2(t3=>Y2.parse(t3)/100,"parse"),transform:i2(t3=>Y2.transform(t3*100),"transform")}))();var ct3={test:Tn2("hsl","hue"),parse:Ui2("hue","saturation","lightness"),transform:i2(({hue:t3,saturation:e4,lightness:n4,alpha:s=1})=>{return"hsla("+Math.round(t3)+", "+Y2.transform(bt3(e4))+", "+Y2.transform(bt3(n4))+", "+bt3(Mt.transform(s))+")"},"transform")};var E3={test:i2(t3=>it3.test(t3)||xe.test(t3)||ct3.test(t3),"test"),parse:i2(t3=>{if(it3.test(t3)){return it3.parse(t3)}else if(ct3.test(t3)){return ct3.parse(t3)}else{return xe.parse(t3)}},"parse"),transform:i2(t3=>{return typeof t3==="string"?t3:t3.hasOwnProperty("red")?it3.transform(t3):ct3.transform(t3)},"transform"),getAnimatableNone:i2(t3=>{const e4=E3.parse(t3);e4.alpha=0;return E3.transform(e4)},"getAnimatableNone")};var Ao2=/(?:#[da-f]{3,8}|(?:rgb|hsl)a?((?:-?[d.]+%?[,s]+){2}-?[d.]+%?s*(?:[,/]s*)?(?:bd+(?:.d+)?|.d+)?%?))/giu;function Vo2(t3){return isNaN(t3)&&typeof t3==="string"&&(t3.match(vn2)?.length||0)+(t3.match(Ao2)?.length||0)>0}__name(Vo2,"Vo");i2(Vo2,"test");var Ki2="number";var Wi="color";var Co3="var";var Do2="var(";var ms="${}";var Mo3=/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 Rt2(t3){const e4=t3.toString();const n4=[];const s={color:[],number:[],var:[]};const r4=[];let o4=0;const c2=e4.replace(Mo3,l2=>{if(E3.test(l2)){s.color.push(o4);r4.push(Wi);n4.push(E3.parse(l2))}else if(l2.startsWith(Do2)){s.var.push(o4);r4.push(Co3);n4.push(l2)}else{s.number.push(o4);r4.push(Ki2);n4.push(parseFloat(l2))}++o4;return ms});const a4=c2.split(ms);return{values:n4,split:a4,indexes:s,types:r4}}__name(Rt2,"Rt");i2(Rt2,"analyseComplexValue");function $i(t3){return Rt2(t3).values}__name($i,"$i");i2($i,"parseComplexValue");function Hi2(t3){const{split:e4,types:n4}=Rt2(t3);const s=e4.length;return r4=>{let o4="";for(let c2=0;c2typeof t3==="number"?0:E3.test(t3)?E3.getAnimatableNone(t3):t3,"convertNumbersToZero");function Eo3(t3){const e4=$i(t3);const n4=Hi2(t3);return n4(e4.map(Ro3))}__name(Eo3,"Eo");i2(Eo3,"getAnimatableNone$1");var J={test:Vo2,parse:$i,createTransformer:Hi2,getAnimatableNone:Eo3};function oe2(t3,e4,n4){if(n4<0)n4+=1;if(n4>1)n4-=1;if(n4<1/6)return t3+(e4-t3)*6*n4;if(n4<1/2)return e4;if(n4<2/3)return t3+(e4-t3)*(2/3-n4)*6;return t3}__name(oe2,"oe");i2(oe2,"hueToRgb");function Lo2({hue:t3,saturation:e4,lightness:n4,alpha:s}){t3/=360;e4/=100;n4/=100;let r4=0;let o4=0;let c2=0;if(!e4){r4=o4=c2=n4}else{const a4=n4<.5?n4*(1+e4):n4+e4-n4*e4;const l2=2*n4-a4;r4=oe2(l2,a4,t3+1/3);o4=oe2(l2,a4,t3);c2=oe2(l2,a4,t3-1/3)}return{red:Math.round(r4*255),green:Math.round(o4*255),blue:Math.round(c2*255),alpha:s}}__name(Lo2,"Lo");i2(Lo2,"hslaToRgba");function Gt(t3,e4){return n4=>n4>0?e4:t3}__name(Gt,"Gt");i2(Gt,"mixImmediate");var D=i2((t3,e4,n4)=>{return t3+(e4-t3)*n4},"mixNumber$1");var ae3=i2((t3,e4,n4)=>{const s=t3*t3;const r4=n4*(e4*e4-s)+s;return r4<0?0:Math.sqrt(r4)},"mixLinearColor");var ko2=[xe,it3,ct3];var Bo2=i2(t3=>ko2.find(e4=>e4.test(t3)),"getColorType");function ps(t3){const e4=Bo2(t3);if(!Boolean(e4))return false;let n4=e4.parse(t3);if(e4===ct3){n4=Lo2(n4)}return n4}__name(ps,"ps");i2(ps,"asRGBA");var gs=i2((t3,e4)=>{const n4=ps(t3);const s=ps(e4);if(!n4||!s){return Gt(t3,e4)}const r4={...n4};return o4=>{r4.red=ae3(n4.red,s.red,o4);r4.green=ae3(n4.green,s.green,o4);r4.blue=ae3(n4.blue,s.blue,o4);r4.alpha=D(n4.alpha,s.alpha,o4);return it3.transform(r4)}},"mixColor");var Pe=new Set(["none","hidden"]);function Fo(t3,e4){if(Pe.has(t3)){return n4=>n4<=0?t3:e4}else{return n4=>n4>=1?e4:t3}}__name(Fo,"Fo");i2(Fo,"mixVisibility");function Io(t3,e4){return n4=>D(t3,e4,n4)}__name(Io,"Io");i2(Io,"mixNumber");function xn2(t3){if(typeof t3==="number"){return Io}else if(typeof t3==="string"){return yn2(t3)?Gt:E3.test(t3)?gs:No2}else if(Array.isArray(t3)){return zi2}else if(typeof t3==="object"){return E3.test(t3)?gs:jo3}return Gt}__name(xn2,"xn");i2(xn2,"getMixer");function zi2(t3,e4){const n4=[...t3];const s=n4.length;const r4=t3.map((o4,c2)=>xn2(o4)(o4,e4[c2]));return o4=>{for(let c2=0;c2{for(const o4 in s){n4[o4]=s[o4](r4)}return n4}}__name(jo3,"jo");i2(jo3,"mixObject");function Oo2(t3,e4){const n4=[];const s={color:0,var:0,number:0};for(let r4=0;r4{const n4=J.createTransformer(e4);const s=Rt2(t3);const r4=Rt2(e4);const o4=s.indexes.var.length===r4.indexes.var.length&&s.indexes.color.length===r4.indexes.color.length&&s.indexes.number.length>=r4.indexes.number.length;if(o4){if(Pe.has(t3)&&!r4.values.length||Pe.has(e4)&&!s.values.length){return Fo(t3,e4)}return jt(zi2(Oo2(s,r4),r4.values),n4)}else{return Gt(t3,e4)}},"mixComplex");function Xi2(t3,e4,n4){if(typeof t3==="number"&&typeof e4==="number"&&typeof n4==="number"){return D(t3,e4,n4)}const s=xn2(t3);return s(t3,e4)}__name(Xi2,"Xi");i2(Xi2,"mix");var Uo2=i2(t3=>{const e4=i2(({timestamp:n4})=>t3(n4),"passTimestamp");return{start:i2((n4=true)=>C.update(e4,n4),"start"),stop:i2(()=>Q2(e4),"stop"),now:i2(()=>B2.isProcessing?B2.timestamp:O2.now(),"now")}},"frameloopDriver");var Yi2=i2((t3,e4,n4=10)=>{let s="";const r4=Math.max(Math.round(e4/n4),2);for(let o4=0;o4=qt2?Infinity:e4}__name(Pn3,"Pn");i2(Pn3,"calcGeneratorDuration");function Ko2(t3,e4=100,n4){const s=n4({...t3,keyframes:[0,e4]});const r4=Math.min(Pn3(s),qt2);return{type:"keyframes",ease:i2(o4=>{return s.next(r4*o4).value/e4},"ease"),duration:$2(r4)}}__name(Ko2,"Ko");i2(Ko2,"createGeneratorEasing");var Wo=5;function Gi2(t3,e4,n4){const s=Math.max(e4-Wo,0);return Ci2(n4-t3(s),e4-s)}__name(Gi2,"Gi");i2(Gi2,"calcGeneratorVelocity");var M3={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};var le3=.001;function $o({duration:t3=M3.duration,bounce:e4=M3.bounce,velocity:n4=M3.velocity,mass:s=M3.mass}){let r4;let o4;let c2=1-e4;c2=q2(M3.minDamping,M3.maxDamping,c2);t3=q2(M3.minDuration,M3.maxDuration,$2(t3));if(c2<1){r4=i2(h2=>{const u6=h2*c2;const f3=u6*t3;const d2=u6-n4;const m5=be2(h2,c2);const p3=Math.exp(-f3);return le3-d2/m5*p3},"envelope");o4=i2(h2=>{const u6=h2*c2;const f3=u6*t3;const d2=f3*n4+n4;const m5=Math.pow(c2,2)*Math.pow(h2,2)*t3;const p3=Math.exp(-f3);const v3=be2(Math.pow(h2,2),c2);const T2=-r4(h2)+le3>0?-1:1;return T2*((d2-m5)*p3)/v3},"derivative")}else{r4=i2(h2=>{const u6=Math.exp(-h2*t3);const f3=(h2-n4)*t3+1;return-le3+u6*f3},"envelope");o4=i2(h2=>{const u6=Math.exp(-h2*t3);const f3=(n4-h2)*(t3*t3);return u6*f3},"derivative")}const a4=5/t3;const l2=zo2(r4,o4,a4);t3=X3(t3);if(isNaN(l2)){return{stiffness:M3.stiffness,damping:M3.damping,duration:t3}}else{const h2=Math.pow(l2,2)*s;return{stiffness:h2,damping:c2*2*Math.sqrt(s*h2),duration:t3}}}__name($o,"$o");i2($o,"findSpring");var Ho2=12;function zo2(t3,e4,n4){let s=n4;for(let r4=1;r4t3[n4]!==void 0)}__name(ys,"ys");i2(ys,"isSpringType");function Go2(t3){let e4={velocity:M3.velocity,stiffness:M3.stiffness,damping:M3.damping,mass:M3.mass,isResolvedFromDuration:false,...t3};if(!ys(t3,Yo2)&&ys(t3,Xo2)){if(t3.visualDuration){const n4=t3.visualDuration;const s=2*Math.PI/(n4*1.2);const r4=s*s;const o4=2*q2(.05,1,1-(t3.bounce||0))*Math.sqrt(r4);e4={...e4,mass:M3.mass,stiffness:r4,damping:o4}}else{const n4=$o(t3);e4={...e4,...n4,mass:M3.mass};e4.isResolvedFromDuration=true}}return e4}__name(Go2,"Go");i2(Go2,"getSpringOptions");function _t2(t3=M3.visualDuration,e4=M3.bounce){const n4=typeof t3!=="object"?{visualDuration:t3,keyframes:[0,1],bounce:e4}:t3;let{restSpeed:s,restDelta:r4}=n4;const o4=n4.keyframes[0];const c2=n4.keyframes[n4.keyframes.length-1];const a4={done:false,value:o4};const{stiffness:l2,damping:h2,mass:u6,duration:f3,velocity:d2,isResolvedFromDuration:m5}=Go2({...n4,velocity:-$2(n4.velocity||0)});const p3=d2||0;const v3=h2/(2*Math.sqrt(l2*u6));const T2=c2-o4;const g3=$2(Math.sqrt(l2/u6));const x4=Math.abs(T2)<5;s||(s=x4?M3.restSpeed.granular:M3.restSpeed.default);r4||(r4=x4?M3.restDelta.granular:M3.restDelta.default);let y3;if(v3<1){const b=be2(g3,v3);y3=i2(V=>{const L=Math.exp(-v3*g3*V);return c2-L*((p3+v3*g3*T2)/b*Math.sin(b*V)+T2*Math.cos(b*V))},"resolveSpring")}else if(v3===1){y3=i2(b=>c2-Math.exp(-g3*b)*(T2+(p3+g3*T2)*b),"resolveSpring")}else{const b=g3*Math.sqrt(v3*v3-1);y3=i2(V=>{const L=Math.exp(-v3*g3*V);const A=Math.min(b*V,300);return c2-L*((p3+v3*g3*T2)*Math.sinh(A)+b*T2*Math.cosh(A))/b},"resolveSpring")}const w={calculatedDuration:m5?f3||null:null,next:i2(b=>{const V=y3(b);if(!m5){let L=b===0?p3:0;if(v3<1){L=b===0?X3(p3):Gi2(y3,b,V)}const A=Math.abs(L)<=s;const j2=Math.abs(c2-V)<=r4;a4.done=A&&j2}else{a4.done=b>=f3}a4.value=a4.done?c2:V;return a4},"next"),toString:i2(()=>{const b=Math.min(Pn3(w),qt2);const V=Yi2(L=>w.next(b*L).value,b,30);return b+"ms "+V},"toString"),toTransition:i2(()=>{},"toTransition")};return w}__name(_t2,"_t");i2(_t2,"spring");_t2.applyToOptions=t3=>{const e4=Ko2(t3,100,_t2);t3.ease=e4.ease;t3.duration=X3(e4.duration);t3.type="keyframes";return t3};function Se({keyframes:t3,velocity:e4=0,power:n4=.8,timeConstant:s=325,bounceDamping:r4=10,bounceStiffness:o4=500,modifyTarget:c2,min:a4,max:l2,restDelta:h2=.5,restSpeed:u6}){const f3=t3[0];const d2={done:false,value:f3};const m5=i2(A=>a4!==void 0&&Al2,"isOutOfBounds");const p3=i2(A=>{if(a4===void 0)return l2;if(l2===void 0)return a4;return Math.abs(a4-A)-v3*Math.exp(-A/s),"calcDelta");const y3=i2(A=>g3+x4(A),"calcLatest");const w=i2(A=>{const j2=x4(A);const N2=y3(A);d2.done=Math.abs(j2)<=h2;d2.value=d2.done?g3:N2},"applyFriction");let b;let V;const L=i2(A=>{if(!m5(d2.value))return;b=A;V=_t2({keyframes:[d2.value,p3(d2.value)],velocity:Gi2(y3,A,d2.value),damping:r4,stiffness:o4,restDelta:h2,restSpeed:u6})},"checkCatchBoundary");L(0);return{calculatedDuration:null,next:i2(A=>{let j2=false;if(!V&&b===void 0){j2=true;w(A);L(A)}if(b!==void 0&&A>=b){return V.next(A-b)}else{!j2&&w(A);return d2}},"next")}}__name(Se,"Se");i2(Se,"inertia");function qo2(t3,e4,n4){const s=[];const r4=n4||_.mix||Xi2;const o4=t3.length-1;for(let c2=0;c2e4[0];if(o4===2&&e4[0]===e4[1])return()=>e4[1];const c2=t3[0]===t3[1];if(t3[0]>t3[o4-1]){t3=[...t3].reverse();e4=[...e4].reverse()}const a4=qo2(e4,s,r4);const l2=a4.length;const h2=i2(u6=>{if(c2&&u61){for(;f3h2(q2(t3[0],t3[o4-1],u6)):h2}__name(_o2,"_o");i2(_o2,"interpolate");function Zo2(t3,e4){const n4=t3[t3.length-1];for(let s=1;s<=e4;s++){const r4=Ct2(0,e4,s);t3.push(D(n4,1,r4))}}__name(Zo2,"Zo");i2(Zo2,"fillOffset");function Qo2(t3){const e4=[0];Zo2(e4,t3.length-1);return e4}__name(Qo2,"Qo");i2(Qo2,"defaultOffset");function Jo2(t3,e4){return t3.map(n4=>n4*e4)}__name(Jo2,"Jo");i2(Jo2,"convertOffsetToTimes");function ta2(t3,e4){return t3.map(()=>e4||Ii).splice(0,t3.length-1)}__name(ta2,"ta");i2(ta2,"defaultEasing");function St({duration:t3=300,keyframes:e4,times:n4,ease:s="easeInOut"}){const r4=uo2(s)?s.map(fs):fs(s);const o4={done:false,value:e4[0]};const c2=Jo2(n4&&n4.length===e4.length?n4:Qo2(e4),t3);const a4=_o2(c2,e4,{ease:Array.isArray(r4)?r4:ta2(e4,r4)});return{calculatedDuration:t3,next:i2(l2=>{o4.value=a4(l2);o4.done=l2>=t3;return o4},"next")}}__name(St,"St");i2(St,"keyframes");var ea2=i2(t3=>t3!==null,"isNotNull$1");function bn2(t3,{repeat:e4,repeatType:n4="loop"},s,r4=1){const o4=t3.filter(ea2);const c2=r4<0||e4&&n4!=="loop"&&e4%2===1;const a4=c2?0:o4.length-1;return!a4||s===void 0?o4[a4]:s}__name(bn2,"bn");i2(bn2,"getFinalKeyframe$1");var na2={decay:Se,inertia:Se,tween:St,keyframes:St,spring:_t2};function qi2(t3){if(typeof t3.type==="string"){t3.type=na2[t3.type]}}__name(qi2,"qi");i2(qi2,"replaceTransitionType");var jn2=class jn3{static{__name(this,"jn")}constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e4=>{this.resolve=e4})}notifyFinished(){this.resolve()}then(e4,n4){return this.finished.then(e4,n4)}};i2(jn2,"WithPromise");var Et2=jn2;var sa=i2(t3=>t3/100,"percentToProgress");var On2=class On3 extends Et2{static{__name(this,"On")}constructor(e4){super();this.state="idle";this.startTime=null;this.isStopped=false;this.currentTime=0;this.holdTime=null;this.playbackSpeed=1;this.stop=()=>{const{motionValue:n4}=this.options;if(n4&&n4.updatedAt!==O2.now()){this.tick(O2.now())}this.isStopped=true;if(this.state==="idle")return;this.teardown();this.options.onStop?.()};this.options=e4;this.initAnimation();this.play();if(e4.autoplay===false)this.pause()}initAnimation(){const{options:e4}=this;qi2(e4);const{type:n4=St,repeat:s=0,repeatDelay:r4=0,repeatType:o4,velocity:c2=0}=e4;let{keyframes:a4}=e4;const l2=n4||St;if(l2!==St&&typeof a4[0]!=="number"){this.mixKeyframes=jt(sa,Xi2(a4[0],a4[1]));a4=[0,100]}const h2=l2({...e4,keyframes:a4});if(o4==="mirror"){this.mirroredGenerator=l2({...e4,keyframes:[...a4].reverse(),velocity:-c2})}if(h2.calculatedDuration===null){h2.calculatedDuration=Pn3(h2)}const{calculatedDuration:u6}=h2;this.calculatedDuration=u6;this.resolvedDuration=u6+r4;this.totalDuration=this.resolvedDuration*(s+1)-r4;this.generator=h2}updateTime(e4){const n4=Math.round(e4-this.startTime)*this.playbackSpeed;if(this.holdTime!==null){this.currentTime=this.holdTime}else{this.currentTime=n4}}tick(e4,n4=false){const{generator:s,totalDuration:r4,mixKeyframes:o4,mirroredGenerator:c2,resolvedDuration:a4,calculatedDuration:l2}=this;if(this.startTime===null)return s.next(0);const{delay:h2=0,keyframes:u6,repeat:f3,repeatType:d2,repeatDelay:m5,type:p3,onUpdate:v3,finalKeyframe:T2}=this.options;if(this.speed>0){this.startTime=Math.min(this.startTime,e4)}else if(this.speed<0){this.startTime=Math.min(e4-r4/this.speed,this.startTime)}if(n4){this.currentTime=e4}else{this.updateTime(e4)}const g3=this.currentTime-h2*(this.playbackSpeed>=0?1:-1);const x4=this.playbackSpeed>=0?g3<0:g3>r4;this.currentTime=Math.max(g3,0);if(this.state==="finished"&&this.holdTime===null){this.currentTime=r4}let y3=this.currentTime;let w=s;if(f3){const A=Math.min(this.currentTime,r4)/a4;let j2=Math.floor(A);let N2=A%1;if(!N2&&A>=1){N2=1}N2===1&&j2--;j2=Math.min(j2,f3+1);const tt6=Boolean(j2%2);if(tt6){if(d2==="reverse"){N2=1-N2;if(m5){N2-=m5/a4}}else if(d2==="mirror"){w=c2}}y3=q2(0,1,N2)*a4}const b=x4?{done:false,value:u6[0]}:w.next(y3);if(o4){b.value=o4(b.value)}let{done:V}=b;if(!x4&&l2!==null){V=this.playbackSpeed>=0?this.currentTime>=r4:this.currentTime<=0}const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);if(L&&p3!==Se){b.value=bn2(u6,this.options,T2,this.speed)}if(v3){v3(b.value)}if(L){this.finish()}return b}then(e4,n4){return this.finished.then(e4,n4)}get duration(){return $2(this.calculatedDuration)}get iterationDuration(){const{delay:e4=0}=this.options||{};return this.duration+$2(e4)}get time(){return $2(this.currentTime)}set time(e4){e4=X3(e4);this.currentTime=e4;if(this.startTime===null||this.holdTime!==null||this.playbackSpeed===0){this.holdTime=e4}else if(this.driver){this.startTime=this.driver.now()-e4/this.playbackSpeed}this.driver?.start(false)}get speed(){return this.playbackSpeed}set speed(e4){this.updateTime(O2.now());const n4=this.playbackSpeed!==e4;this.playbackSpeed=e4;if(n4){this.time=$2(this.currentTime)}}play(){if(this.isStopped)return;const{driver:e4=Uo2,startTime:n4}=this.options;if(!this.driver){this.driver=e4(r4=>this.tick(r4))}this.options.onPlay?.();const s=this.driver.now();if(this.state==="finished"){this.updateFinished();this.startTime=s}else if(this.holdTime!==null){this.startTime=s-this.holdTime}else if(!this.startTime){this.startTime=n4??s}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(O2.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(e4){this.startTime=0;return this.tick(e4,true)}attachTimeline(e4){if(this.options.allowFlatten){this.options.type="keyframes";this.options.ease="linear";this.initAnimation()}this.driver?.stop();return e4.observe(this)}};i2(On2,"JSAnimation");var Lt=On2;function ia2(t3){for(let e4=1;e4t3*180/Math.PI,"radToDeg");var we2=i2(t3=>{const e4=rt3(Math.atan2(t3[1],t3[0]));return Ae2(e4)},"rotate");var ra2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i2(t3=>(Math.abs(t3[0])+Math.abs(t3[3]))/2,"scale"),rotate:we2,rotateZ:we2,skewX:i2(t3=>rt3(Math.atan(t3[1])),"skewX"),skewY:i2(t3=>rt3(Math.atan(t3[2])),"skewY"),skew:i2(t3=>(Math.abs(t3[1])+Math.abs(t3[2]))/2,"skew")};var Ae2=i2(t3=>{t3=t3%360;if(t3<0)t3+=360;return t3},"rebaseAngle");var vs=we2;var Ts=i2(t3=>Math.sqrt(t3[0]*t3[0]+t3[1]*t3[1]),"scaleX");var xs=i2(t3=>Math.sqrt(t3[4]*t3[4]+t3[5]*t3[5]),"scaleY");var oa2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ts,scaleY:xs,scale:i2(t3=>(Ts(t3)+xs(t3))/2,"scale"),rotateX:i2(t3=>Ae2(rt3(Math.atan2(t3[6],t3[5]))),"rotateX"),rotateY:i2(t3=>Ae2(rt3(Math.atan2(-t3[2],t3[0]))),"rotateY"),rotateZ:vs,rotate:vs,skewX:i2(t3=>rt3(Math.atan(t3[4])),"skewX"),skewY:i2(t3=>rt3(Math.atan(t3[1])),"skewY"),skew:i2(t3=>(Math.abs(t3[1])+Math.abs(t3[4]))/2,"skew")};function Ve3(t3){return t3.includes("scale")?1:0}__name(Ve3,"Ve");i2(Ve3,"defaultTransformValue");function Ce2(t3,e4){if(!t3||t3==="none"){return Ve3(e4)}const n4=t3.match(/^matrix3d(([-d.es,]+))$/u);let s;let r4;if(n4){s=oa2;r4=n4}else{const a4=t3.match(/^matrix(([-d.es,]+))$/u);s=ra2;r4=a4}if(!r4){return Ve3(e4)}const o4=s[e4];const c2=r4[1].split(",").map(la2);return typeof o4==="function"?o4(c2):c2[o4]}__name(Ce2,"Ce");i2(Ce2,"parseValueFromTransform");var aa2=i2((t3,e4)=>{const{transform:n4="none"}=getComputedStyle(t3);return Ce2(n4,e4)},"readTransformValue");function la2(t3){return parseFloat(t3.trim())}__name(la2,"la");i2(la2,"convertTransformToNumber");var vt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];var Tt2=(()=>new Set(vt))();var Ps=i2(t3=>t3===yt2||t3===P,"isNumOrPxType");var ca2=new Set(["x","y","z"]);var ua2=vt.filter(t3=>!ca2.has(t3));function ha(t3){const e4=[];ua2.forEach(n4=>{const s=t3.getValue(n4);if(s!==void 0){e4.push([n4,s.get()]);s.set(n4.startsWith("scale")?1:0)}});return e4}__name(ha,"ha");i2(ha,"removeNonTranslationalTransform");var ot4={width:i2(({x:t3},{paddingLeft:e4="0",paddingRight:n4="0"})=>t3.max-t3.min-parseFloat(e4)-parseFloat(n4),"width"),height:i2(({y:t3},{paddingTop:e4="0",paddingBottom:n4="0"})=>t3.max-t3.min-parseFloat(e4)-parseFloat(n4),"height"),top:i2((t3,{top:e4})=>parseFloat(e4),"top"),left:i2((t3,{left:e4})=>parseFloat(e4),"left"),bottom:i2(({y:t3},{top:e4})=>parseFloat(e4)+(t3.max-t3.min),"bottom"),right:i2(({x:t3},{left:e4})=>parseFloat(e4)+(t3.max-t3.min),"right"),x:i2((t3,{transform:e4})=>Ce2(e4,"x"),"x"),y:i2((t3,{transform:e4})=>Ce2(e4,"y"),"y")};ot4.translateX=ot4.x;ot4.translateY=ot4.y;var at3=new Set;var De2=false;var Me3=false;var Re=false;function _i2(){if(Me3){const t3=Array.from(at3).filter(s=>s.needsMeasurement);const e4=new Set(t3.map(s=>s.element));const n4=new Map;e4.forEach(s=>{const r4=ha(s);if(!r4.length)return;n4.set(s,r4);s.render()});t3.forEach(s=>s.measureInitialState());e4.forEach(s=>{s.render();const r4=n4.get(s);if(r4){r4.forEach(([o4,c2])=>{s.getValue(o4)?.set(c2)})}});t3.forEach(s=>s.measureEndState());t3.forEach(s=>{if(s.suspendedScrollY!==void 0){window.scrollTo(0,s.suspendedScrollY)}})}Me3=false;De2=false;at3.forEach(t3=>t3.complete(Re));at3.clear()}__name(_i2,"_i");i2(_i2,"measureAllKeyframes");function Zi2(){at3.forEach(t3=>{t3.readKeyframes();if(t3.needsMeasurement){Me3=true}})}__name(Zi2,"Zi");i2(Zi2,"readAllKeyframes");function fa(){Re=true;Zi2();_i2();Re=false}__name(fa,"fa");i2(fa,"flushKeyframeResolvers");var Nn2=class Nn3{static{__name(this,"Nn")}constructor(e4,n4,s,r4,o4,c2=false){this.state="pending";this.isAsync=false;this.needsMeasurement=false;this.unresolvedKeyframes=[...e4];this.onComplete=n4;this.name=s;this.motionValue=r4;this.element=o4;this.isAsync=c2}scheduleResolve(){this.state="scheduled";if(this.isAsync){at3.add(this);if(!De2){De2=true;C.read(Zi2);C.resolveKeyframes(_i2)}}else{this.readKeyframes();this.complete()}}readKeyframes(){const{unresolvedKeyframes:e4,name:n4,element:s,motionValue:r4}=this;if(e4[0]===null){const o4=r4?.get();const c2=e4[e4.length-1];if(o4!==void 0){e4[0]=o4}else if(s&&n4){const a4=s.readValue(n4,c2);if(a4!==void 0&&a4!==null){e4[0]=a4}}if(e4[0]===void 0){e4[0]=c2}if(r4&&o4===void 0){r4.set(e4[0])}}ia2(e4)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e4=false){this.state="complete";this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e4);at3.delete(this)}cancel(){if(this.state==="scheduled"){at3.delete(this);this.state="pending"}}resume(){if(this.state==="pending")this.scheduleResolve()}};i2(Nn2,"KeyframeResolver");var kt=Nn2;var da=i2(t3=>t3.startsWith("--"),"isCSSVar");function ma(t3,e4,n4){da(e4)?t3.style.setProperty(e4,n4):t3.style[e4]=n4}__name(ma,"ma");i2(ma,"setStyle");var pa=dn2(()=>window.ScrollTimeline!==void 0);var ga={};function ya(t3,e4){const n4=dn2(t3);return()=>ga[e4]??n4()}__name(ya,"ya");i2(ya,"memoSupports");var Qi2=ya(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t3){return false}return true},"linearEasing");var Pt=i2(([t3,e4,n4,s])=>`cubic-bezier(${t3}, ${e4}, ${n4}, ${s})`,"cubicBezierAsString");var bs={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Pt([0,.65,.55,1]),circOut:Pt([.55,0,1,.45]),backIn:Pt([.31,.01,.66,-.59]),backOut:Pt([.33,1.53,.69,.99])};function Ji2(t3,e4){if(!t3){return void 0}else if(typeof t3==="function"){return Qi2()?Yi2(t3,e4):"ease-out"}else if(ji2(t3)){return Pt(t3)}else if(Array.isArray(t3)){return t3.map(n4=>Ji2(n4,e4)||bs.easeOut)}else{return bs[t3]}}__name(Ji2,"Ji");i2(Ji2,"mapEasingToNativeEasing");function va(t3,e4,n4,{delay:s=0,duration:r4=300,repeat:o4=0,repeatType:c2="loop",ease:a4="easeOut",times:l2}={},h2=void 0){const u6={[e4]:n4};if(l2)u6.offset=l2;const f3=Ji2(a4,r4);if(Array.isArray(f3))u6.easing=f3;const d2={delay:s,duration:r4,easing:!Array.isArray(f3)?f3:"linear",fill:"both",iterations:o4+1,direction:c2==="reverse"?"alternate":"normal"};if(h2)d2.pseudoElement=h2;const m5=t3.animate(u6,d2);return m5}__name(va,"va");i2(va,"startWaapiAnimation");function tr(t3){return typeof t3==="function"&&"applyToOptions"in t3}__name(tr,"tr");i2(tr,"isGenerator");function Ta({type:t3,...e4}){if(tr(t3)&&Qi2()){return t3.applyToOptions(e4)}else{e4.duration??(e4.duration=300);e4.ease??(e4.ease="easeOut")}return e4}__name(Ta,"Ta");i2(Ta,"applyGeneratorOptions");var Un2=class Un3 extends Et2{static{__name(this,"Un")}constructor(e4){super();this.finishedTime=null;this.isStopped=false;if(!e4)return;const{element:n4,name:s,keyframes:r4,pseudoElement:o4,allowFlatten:c2=false,finalKeyframe:a4,onComplete:l2}=e4;this.isPseudoElement=Boolean(o4);this.allowFlatten=c2;this.options=e4;fn3(typeof e4.type!=="string");const h2=Ta(e4);this.animation=va(n4,s,r4,h2,o4);if(h2.autoplay===false){this.animation.pause()}this.animation.onfinish=()=>{this.finishedTime=this.time;if(!o4){const u6=bn2(r4,this.options,a4,this.speed);if(this.updateMotionValue){this.updateMotionValue(u6)}else{ma(n4,s,u6)}this.animation.cancel()}l2?.();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(e4){}}stop(){if(this.isStopped)return;this.isStopped=true;const{state:e4}=this;if(e4==="idle"||e4==="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 e4=this.animation.effect?.getComputedTiming?.().duration||0;return $2(Number(e4))}get iterationDuration(){const{delay:e4=0}=this.options||{};return this.duration+$2(e4)}get time(){return $2(Number(this.animation.currentTime)||0)}set time(e4){this.finishedTime=null;this.animation.currentTime=X3(e4)}get speed(){return this.animation.playbackRate}set speed(e4){if(e4<0)this.finishedTime=null;this.animation.playbackRate=e4}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e4){this.animation.startTime=e4}attachTimeline({timeline:e4,observe:n4}){if(this.allowFlatten){this.animation.effect?.updateTiming({easing:"linear"})}this.animation.onfinish=null;if(e4&&pa()){this.animation.timeline=e4;return H}else{return n4(this)}}};i2(Un2,"NativeAnimation");var Ee=Un2;var er={anticipate:ki2,backInOut:Li2,circInOut:Fi};function xa(t3){return t3 in er}__name(xa,"xa");i2(xa,"isUnsupportedEase");function Pa(t3){if(typeof t3.ease==="string"&&xa(t3.ease)){t3.ease=er[t3.ease]}}__name(Pa,"Pa");i2(Pa,"replaceStringEasing");var Ss=10;var Kn2=class Kn3 extends Ee{static{__name(this,"Kn")}constructor(e4){Pa(e4);qi2(e4);super(e4);if(e4.startTime){this.startTime=e4.startTime}this.options=e4}updateMotionValue(e4){const{motionValue:n4,onUpdate:s,onComplete:r4,element:o4,...c2}=this.options;if(!n4)return;if(e4!==void 0){n4.set(e4);return}const a4=new Lt({...c2,autoplay:false});const l2=X3(this.finishedTime??this.time);n4.setWithVelocity(a4.sample(l2-Ss).value,a4.sample(l2).value,Ss);a4.stop()}};i2(Kn2,"NativeAnimationExtended");var Le3=Kn2;var ws=i2((t3,e4)=>{if(e4==="zIndex")return false;if(typeof t3==="number"||Array.isArray(t3))return true;if(typeof t3==="string"&&(J.test(t3)||t3==="0")&&!t3.startsWith("url(")){return true}return false},"isAnimatable");function ba(t3){const e4=t3[0];if(t3.length===1)return true;for(let n4=0;n4Object.hasOwnProperty.call(Element.prototype,"animate"));function Va(t3){const{motionValue:e4,name:n4,repeatDelay:s,repeatType:r4,damping:o4,type:c2}=t3;const a4=e4?.owner?.current;if(!(a4 instanceof HTMLElement)){return false}const{onUpdate:l2,transformTemplate:h2}=e4.owner.getProps();return Aa()&&n4&&wa.has(n4)&&(n4!=="transform"||!h2)&&!l2&&!s&&r4!=="mirror"&&o4!==0&&c2!=="inertia"}__name(Va,"Va");i2(Va,"supportsBrowserAnimation");var Ca=40;var Wn2=class Wn3 extends Et2{static{__name(this,"Wn")}constructor({autoplay:e4=true,delay:n4=0,type:s="keyframes",repeat:r4=0,repeatDelay:o4=0,repeatType:c2="loop",keyframes:a4,name:l2,motionValue:h2,element:u6,...f3}){super();this.stop=()=>{if(this._animation){this._animation.stop();this.stopTimeline?.()}this.keyframeResolver?.cancel()};this.createdAt=O2.now();const d2={autoplay:e4,delay:n4,type:s,repeat:r4,repeatDelay:o4,repeatType:c2,name:l2,motionValue:h2,element:u6,...f3};const m5=u6?.KeyframeResolver||kt;this.keyframeResolver=new m5(a4,(p3,v3,T2)=>this.onKeyframesResolved(p3,v3,d2,!T2),l2,h2,u6);this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e4,n4,s,r4){this.keyframeResolver=void 0;const{name:o4,type:c2,velocity:a4,delay:l2,isHandoff:h2,onUpdate:u6}=s;this.resolvedAt=O2.now();if(!Sa(e4,o4,c2,a4)){if(_.instantAnimations||!l2){u6?.(bn2(e4,s,n4))}e4[0]=e4[e4.length-1];ke4(s);s.repeat=0}const f3=r4?!this.resolvedAt?this.createdAt:this.resolvedAt-this.createdAt>Ca?this.resolvedAt:this.createdAt:void 0;const d2={startTime:f3,finalKeyframe:n4,...s,keyframes:e4};const m5=!h2&&Va(d2)?new Le3({...d2,element:d2.motionValue.owner.current}):new Lt(d2);m5.finished.then(()=>this.notifyFinished()).catch(H);if(this.pendingTimeline){this.stopTimeline=m5.attachTimeline(this.pendingTimeline);this.pendingTimeline=void 0}this._animation=m5}get finished(){if(!this._animation){return this._finished}else{return this.animation.finished}}then(e4,n4){return this.finished.finally(e4).then(()=>{})}get animation(){if(!this._animation){this.keyframeResolver?.resume();fa()}return this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e4){this.animation.time=e4}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e4){this.animation.speed=e4}get startTime(){return this.animation.startTime}attachTimeline(e4){if(this._animation){this.stopTimeline=this.animation.attachTimeline(e4)}else{this.pendingTimeline=e4}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()}};i2(Wn2,"AsyncMotionValueAnimation");var Be3=Wn2;var Da=/^var(--(?:([w-]+)|([w-]+), ?([a-zA-Zd ()%#.,-]+)))/u;function Ma(t3){const e4=Da.exec(t3);if(!e4)return[,];const[,n4,s,r4]=e4;return[`--${n4??s}`,r4]}__name(Ma,"Ma");i2(Ma,"parseCSSVariable");function nr(t3,e4,n4=1){const[s,r4]=Ma(t3);if(!s)return;const o4=window.getComputedStyle(e4).getPropertyValue(s);if(o4){const c2=o4.trim();return wi(c2)?parseFloat(c2):c2}return yn2(r4)?nr(r4,e4,n4+1):r4}__name(nr,"nr");i2(nr,"getVariableValue");function Sn2(t3,e4){return t3?.[e4]??t3?.["default"]??t3}__name(Sn2,"Sn");i2(Sn2,"getValueTransition");var sr=new Set(["width","height","top","left","right","bottom",...vt]);var Ra={test:i2(t3=>t3==="auto","test"),parse:i2(t3=>t3,"parse")};var ir=i2(t3=>e4=>e4.test(t3),"testValueType");var rr=[yt2,P,Y2,Z2,wo3,So3,Ra];var As=i2(t3=>rr.find(ir(t3)),"findDimensionValueType");function Ea(t3){if(typeof t3==="number"){return t3===0}else if(t3!==null){return t3==="none"||t3==="0"||Vi2(t3)}else{return true}}__name(Ea,"Ea");i2(Ea,"isNone");var La=new Set(["brightness","contrast","saturate","opacity"]);function ka(t3){const[e4,n4]=t3.slice(0,-1).split("(");if(e4==="drop-shadow")return t3;const[s]=n4.match(vn2)||[];if(!s)return t3;const r4=n4.replace(s,"");let o4=La.has(e4)?1:0;if(s!==n4)o4*=100;return e4+"("+o4+r4+")"}__name(ka,"ka");i2(ka,"applyDefaultFilter");var Ba=/b([a-z-]*)(.*?)/gu;var Fe={...J,getAnimatableNone:i2(t3=>{const e4=t3.match(Ba);return e4?e4.map(ka).join(" "):t3},"getAnimatableNone")};var Vs={...yt2,transform:Math.round};var Fa={rotate:Z2,rotateX:Z2,rotateY:Z2,rotateZ:Z2,scale:Wt2,scaleX:Wt2,scaleY:Wt2,scaleZ:Wt2,skew:Z2,skewX:Z2,skewY:Z2,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:Mt,originX:ds,originY:ds,originZ:P};var wn2={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,backgroundPositionX:P,backgroundPositionY:P,...Fa,zIndex:Vs,fillOpacity:Mt,strokeOpacity:Mt,numOctaves:Vs};var Ia={...wn2,color:E3,backgroundColor:E3,outlineColor:E3,fill:E3,stroke:E3,borderColor:E3,borderTopColor:E3,borderRightColor:E3,borderBottomColor:E3,borderLeftColor:E3,filter:Fe,WebkitFilter:Fe};var or=i2(t3=>Ia[t3],"getDefaultValueType");function ar(t3,e4){let n4=or(t3);if(n4!==Fe)n4=J;return n4.getAnimatableNone?n4.getAnimatableNone(e4):void 0}__name(ar,"ar");i2(ar,"getAnimatableNone");var ja=new Set(["auto","none","0"]);function Oa(t3,e4,n4){let s=0;let r4=void 0;while(s{e4.getValue(a4).set(l2)})}this.resolveNoneKeyframes()}};i2($n2,"DOMKeyframesResolver");var Ie2=$n2;function Na(t3,e4,n4){if(t3 instanceof EventTarget){return[t3]}else if(typeof t3==="string"){let s=document;const r4=n4?.[t3]??s.querySelectorAll(t3);return r4?Array.from(r4):[]}return Array.from(t3)}__name(Na,"Na");i2(Na,"resolveElements");var lr=i2((t3,e4)=>{return e4&&typeof t3==="number"?e4.transform(t3):t3},"getValueAsType");function Ua(t3){return Ai(t3)&&"offsetHeight"in t3}__name(Ua,"Ua");i2(Ua,"isHTMLElement");var Cs=30;var Ka=i2(t3=>{return!isNaN(parseFloat(t3))},"isFloat");var Hn2=class Hn3{static{__name(this,"Hn")}constructor(e4,n4={}){this.canTrackVelocity=null;this.events={};this.updateAndNotify=s=>{const r4=O2.now();if(this.updatedAt!==r4){this.setPrevFrameValue()}this.prev=this.current;this.setCurrent(s);if(this.current!==this.prev){this.events.change?.notify(this.current);if(this.dependents){for(const o4 of this.dependents){o4.dirty()}}}};this.hasAnimated=false;this.setCurrent(e4);this.owner=n4.owner}setCurrent(e4){this.current=e4;this.updatedAt=O2.now();if(this.canTrackVelocity===null&&e4!==void 0){this.canTrackVelocity=Ka(this.current)}}setPrevFrameValue(e4=this.current){this.prevFrameValue=e4;this.prevUpdatedAt=this.updatedAt}onChange(e4){return this.on("change",e4)}on(e4,n4){if(!this.events[e4]){this.events[e4]=new Dt2}const s=this.events[e4].add(n4);if(e4==="change"){return()=>{s();C.read(()=>{if(!this.events.change.getSize()){this.stop()}})}}return s}clearListeners(){for(const e4 in this.events){this.events[e4].clear()}}attach(e4,n4){this.passiveEffect=e4;this.stopPassiveEffect=n4}set(e4){if(!this.passiveEffect){this.updateAndNotify(e4)}else{this.passiveEffect(e4,this.updateAndNotify)}}setWithVelocity(e4,n4,s){this.set(n4);this.prev=void 0;this.prevFrameValue=e4;this.prevUpdatedAt=this.updatedAt-s}jump(e4,n4=true){this.updateAndNotify(e4);this.prev=e4;this.prevUpdatedAt=this.prevFrameValue=void 0;n4&&this.stop();if(this.stopPassiveEffect)this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e4){if(!this.dependents){this.dependents=new Set}this.dependents.add(e4)}removeDependent(e4){if(this.dependents){this.dependents.delete(e4)}}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e4=O2.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e4-this.updatedAt>Cs){return 0}const n4=Math.min(this.updatedAt-this.prevUpdatedAt,Cs);return Ci2(parseFloat(this.current)-parseFloat(this.prevFrameValue),n4)}start(e4){this.stop();return new Promise(n4=>{this.hasAnimated=true;this.animation=e4(n4);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()}}};i2(Hn2,"MotionValue");var je3=Hn2;function pt2(t3,e4){return new je3(t3,e4)}__name(pt2,"pt");i2(pt2,"motionValue");var{schedule:An2}=Oi(queueMicrotask,false);var z3={x:false,y:false};function cr(){return z3.x||z3.y}__name(cr,"cr");i2(cr,"isDragActive");function Wa(t3){if(t3==="x"||t3==="y"){if(z3[t3]){return null}else{z3[t3]=true;return()=>{z3[t3]=false}}}else{if(z3.x||z3.y){return null}else{z3.x=z3.y=true;return()=>{z3.x=z3.y=false}}}}__name(Wa,"Wa");i2(Wa,"setDragLock");function ur(t3,e4){const n4=Na(t3);const s=new AbortController;const r4={passive:true,...e4,signal:s.signal};const o4=i2(()=>s.abort(),"cancel");return[n4,r4,o4]}__name(ur,"ur");i2(ur,"setupGesture");function Ds(t3){return!(t3.pointerType==="touch"||cr())}__name(Ds,"Ds");i2(Ds,"isValidHover");function $a(t3,e4,n4={}){const[s,r4,o4]=ur(t3,n4);const c2=i2(a4=>{if(!Ds(a4))return;const{target:l2}=a4;const h2=e4(l2,a4);if(typeof h2!=="function"||!l2)return;const u6=i2(f3=>{if(!Ds(f3))return;h2(f3);l2.removeEventListener("pointerleave",u6)},"onPointerLeave");l2.addEventListener("pointerleave",u6,r4)},"onPointerEnter");s.forEach(a4=>{a4.addEventListener("pointerenter",c2,r4)});return o4}__name($a,"$a");i2($a,"hover");var hr=i2((t3,e4)=>{if(!e4){return false}else if(t3===e4){return true}else{return hr(t3,e4.parentElement)}},"isNodeOrChild");var Vn2=i2(t3=>{if(t3.pointerType==="mouse"){return typeof t3.button!=="number"||t3.button<=0}else{return t3.isPrimary!==false}},"isPrimaryPointer");var Ha=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function za(t3){return Ha.has(t3.tagName)||t3.tabIndex!==-1}__name(za,"za");i2(za,"isElementKeyboardAccessible");var zt2=new WeakSet;function Ms(t3){return e4=>{if(e4.key!=="Enter")return;t3(e4)}}__name(Ms,"Ms");i2(Ms,"filterEvents");function ce3(t3,e4){t3.dispatchEvent(new PointerEvent("pointer"+e4,{isPrimary:true,bubbles:true}))}__name(ce3,"ce");i2(ce3,"firePointerEvent");var Xa=i2((t3,e4)=>{const n4=t3.currentTarget;if(!n4)return;const s=Ms(()=>{if(zt2.has(n4))return;ce3(n4,"down");const r4=Ms(()=>{ce3(n4,"up")});const o4=i2(()=>ce3(n4,"cancel"),"handleBlur");n4.addEventListener("keyup",r4,e4);n4.addEventListener("blur",o4,e4)});n4.addEventListener("keydown",s,e4);n4.addEventListener("blur",()=>n4.removeEventListener("keydown",s),e4)},"enableKeyboardPress");function Rs(t3){return Vn2(t3)&&!cr()}__name(Rs,"Rs");i2(Rs,"isValidPressEvent");function Ya(t3,e4,n4={}){const[s,r4,o4]=ur(t3,n4);const c2=i2(a4=>{const l2=a4.currentTarget;if(!Rs(a4))return;zt2.add(l2);const h2=e4(l2,a4);const u6=i2((m5,p3)=>{window.removeEventListener("pointerup",f3);window.removeEventListener("pointercancel",d2);if(zt2.has(l2)){zt2.delete(l2)}if(!Rs(m5)){return}if(typeof h2==="function"){h2(m5,{success:p3})}},"onPointerEnd");const f3=i2(m5=>{u6(m5,l2===window||l2===document||n4.useGlobalTarget||hr(l2,m5.target))},"onPointerUp");const d2=i2(m5=>{u6(m5,false)},"onPointerCancel");window.addEventListener("pointerup",f3,r4);window.addEventListener("pointercancel",d2,r4)},"startPress");s.forEach(a4=>{const l2=n4.useGlobalTarget?window:a4;l2.addEventListener("pointerdown",c2,r4);if(Ua(a4)){a4.addEventListener("focus",h2=>Xa(h2,r4));if(!za(a4)&&!a4.hasAttribute("tabindex")){a4.tabIndex=0}}});return o4}__name(Ya,"Ya");i2(Ya,"press");function fr(t3){return Ai(t3)&&"ownerSVGElement"in t3}__name(fr,"fr");i2(fr,"isSVGElement");function Ga(t3){return fr(t3)&&t3.tagName==="svg"}__name(Ga,"Ga");i2(Ga,"isSVGSVGElement");var F2=i2(t3=>Boolean(t3&&t3.getVelocity),"isMotionValue");var qa=[...rr,E3,J];var _a=i2(t3=>qa.find(ir(t3)),"findValueType");var dr=z.createContext({transformPagePoint:i2(t3=>t3,"transformPagePoint"),isStatic:false,reducedMotion:"never"});function Za(t3=true){const e4=z.useContext(cn2);if(e4===null)return[true,null];const{isPresent:n4,onExitComplete:s,register:r4}=e4;const o4=z.useId();z.useEffect(()=>{if(t3){return r4(o4)}},[t3]);const c2=z.useCallback(()=>t3&&s&&s(o4),[o4,s,t3]);return!n4&&s?[false,c2]:[true]}__name(Za,"Za");i2(Za,"usePresence");var mr=z.createContext({strict:false});var Es={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"]};var gt2={};for(const t3 in Es){gt2[t3]={isEnabled:i2(e4=>Es[t3].some(n4=>!!e4[n4]),"isEnabled")}}function Qa(t3){for(const e4 in t3){gt2[e4]={...gt2[e4],...t3[e4]}}}__name(Qa,"Qa");i2(Qa,"loadFeatures");var Ja=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 Zt3(t3){return t3.startsWith("while")||t3.startsWith("drag")&&t3!=="draggable"||t3.startsWith("layout")||t3.startsWith("onTap")||t3.startsWith("onPan")||t3.startsWith("onLayout")||Ja.has(t3)}__name(Zt3,"Zt");i2(Zt3,"isValidMotionProp");var pr=i2(t3=>!Zt3(t3),"shouldForward");function tl(t3){if(typeof t3!=="function")return;pr=i2(e4=>e4.startsWith("on")?!Zt3(e4):t3(e4),"shouldForward")}__name(tl,"tl");i2(tl,"loadExternalIsValidProp");try{tl(__require("@emotion/is-prop-valid").default)}catch{}function el(t3,e4,n4){const s={};for(const r4 in t3){if(r4==="values"&&typeof t3.values==="object")continue;if(pr(r4)||n4===true&&Zt3(r4)||!e4&&!Zt3(r4)||t3["draggable"]&&r4.startsWith("onDrag")){s[r4]=t3[r4]}}return s}__name(el,"el");i2(el,"filterProps");var ee3=z.createContext({});function ne2(t3){return t3!==null&&typeof t3==="object"&&typeof t3.start==="function"}__name(ne2,"ne");i2(ne2,"isAnimationControls");function Bt(t3){return typeof t3==="string"||Array.isArray(t3)}__name(Bt,"Bt");i2(Bt,"isVariantLabel");var Cn2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"];var Dn2=["initial",...Cn2];function se3(t3){return ne2(t3.animate)||Dn2.some(e4=>Bt(t3[e4]))}__name(se3,"se");i2(se3,"isControllingVariants");function gr(t3){return Boolean(se3(t3)||t3.variants)}__name(gr,"gr");i2(gr,"isVariantNode");function nl(t3,e4){if(se3(t3)){const{initial:n4,animate:s}=t3;return{initial:n4===false||Bt(n4)?n4:void 0,animate:Bt(s)?s:void 0}}return t3.inherit!==false?e4:{}}__name(nl,"nl");i2(nl,"getCurrentTreeVariants");function sl2(t3){const{initial:e4,animate:n4}=nl(t3,z.useContext(ee3));return z.useMemo(()=>({initial:e4,animate:n4}),[Ls(e4),Ls(n4)])}__name(sl2,"sl");i2(sl2,"useCreateMotionContext");function Ls(t3){return Array.isArray(t3)?t3.join(" "):t3}__name(Ls,"Ls");i2(Ls,"variantLabelsAsDependency");var Ft={};function il(t3){for(const e4 in t3){Ft[e4]=t3[e4];if(gn2(e4)){Ft[e4].isCSSVariable=true}}}__name(il,"il");i2(il,"addScaleCorrector");function yr(t3,{layout:e4,layoutId:n4}){return Tt2.has(t3)||t3.startsWith("origin")||(e4||n4!==void 0)&&(!!Ft[t3]||t3==="opacity")}__name(yr,"yr");i2(yr,"isForcedMotionValue");var rl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};var ol=vt.length;function al(t3,e4,n4){let s="";let r4=true;for(let o4=0;o4({style:{},transform:{},transformOrigin:{},vars:{}}),"createHtmlRenderState");function vr(t3,e4,n4){for(const s in e4){if(!F2(e4[s])&&!yr(s,n4)){t3[s]=e4[s]}}}__name(vr,"vr");i2(vr,"copyRawValuesOnly");function ll({transformTemplate:t3},e4){return z.useMemo(()=>{const n4=Rn2();Mn2(n4,e4,t3);return Object.assign({},n4.vars,n4.style)},[e4])}__name(ll,"ll");i2(ll,"useInitialMotionValues");function cl(t3,e4){const n4=t3.style||{};const s={};vr(s,n4,t3);Object.assign(s,ll(t3,e4));return s}__name(cl,"cl");i2(cl,"useStyle");function ul(t3,e4){const n4={};const s=cl(t3,e4);if(t3.drag&&t3.dragListener!==false){n4.draggable=false;s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none";s.touchAction=t3.drag===true?"none":`pan-${t3.drag==="x"?"y":"x"}`}if(t3.tabIndex===void 0&&(t3.onTap||t3.onTapStart||t3.whileTap)){n4.tabIndex=0}n4.style=s;return n4}__name(ul,"ul");i2(ul,"useHTMLProps");var hl={offset:"stroke-dashoffset",array:"stroke-dasharray"};var fl2={offset:"strokeDashoffset",array:"strokeDasharray"};function dl2(t3,e4,n4=1,s=0,r4=true){t3.pathLength=1;const o4=r4?hl:fl2;t3[o4.offset]=P.transform(-s);const c2=P.transform(e4);const a4=P.transform(n4);t3[o4.array]=`${c2} ${a4}`}__name(dl2,"dl");i2(dl2,"buildSVGPath");function Tr(t3,{attrX:e4,attrY:n4,attrScale:s,pathLength:r4,pathSpacing:o4=1,pathOffset:c2=0,...a4},l2,h2,u6){Mn2(t3,a4,h2);if(l2){if(t3.style.viewBox){t3.attrs.viewBox=t3.style.viewBox}return}t3.attrs=t3.style;t3.style={};const{attrs:f3,style:d2}=t3;if(f3.transform){d2.transform=f3.transform;delete f3.transform}if(d2.transform||f3.transformOrigin){d2.transformOrigin=f3.transformOrigin??"50% 50%";delete f3.transformOrigin}if(d2.transform){d2.transformBox=u6?.transformBox??"fill-box";delete f3.transformBox}if(e4!==void 0)f3.x=e4;if(n4!==void 0)f3.y=n4;if(s!==void 0)f3.scale=s;if(r4!==void 0){dl2(f3,r4,o4,c2,false)}}__name(Tr,"Tr");i2(Tr,"buildSVGAttrs");var xr=i2(()=>({...Rn2(),attrs:{}}),"createSvgRenderState");var Pr=i2(t3=>typeof t3==="string"&&t3.toLowerCase()==="svg","isSVGTag");function ml2(t3,e4,n4,s){const r4=z.useMemo(()=>{const o4=xr();Tr(o4,e4,Pr(s),t3.transformTemplate,t3.style);return{...o4.attrs,style:{...o4.style}}},[e4]);if(t3.style){const o4={};vr(o4,t3.style,t3);r4.style={...o4,...r4.style}}return r4}__name(ml2,"ml");i2(ml2,"useSVGProps");var pl=["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 En2(t3){if(typeof t3!=="string"||t3.includes("-")){return false}else if(pl.indexOf(t3)>-1||/[A-Z]/u.test(t3)){return true}return false}__name(En2,"En");i2(En2,"isSVGComponent");function gl(t3,e4,n4,{latestValues:s},r4,o4=false){const c2=En2(t3)?ml2:ul;const a4=c2(e4,s,r4,t3);const l2=el(e4,typeof t3==="string",o4);const h2=t3!==z.Fragment?{...l2,...a4,ref:n4}:{};const{children:u6}=e4;const f3=z.useMemo(()=>F2(u6)?u6.get():u6,[u6]);return z.createElement(t3,{...h2,children:f3})}__name(gl,"gl");i2(gl,"useRender");function ks(t3){const e4=[{},{}];t3?.values.forEach((n4,s)=>{e4[0][s]=n4.get();e4[1][s]=n4.getVelocity()});return e4}__name(ks,"ks");i2(ks,"getValueState");function Ln2(t3,e4,n4,s){if(typeof e4==="function"){const[r4,o4]=ks(s);e4=e4(n4!==void 0?n4:t3.custom,r4,o4)}if(typeof e4==="string"){e4=t3.variants&&t3.variants[e4]}if(typeof e4==="function"){const[r4,o4]=ks(s);e4=e4(n4!==void 0?n4:t3.custom,r4,o4)}return e4}__name(Ln2,"Ln");i2(Ln2,"resolveVariantFromProps");function Xt2(t3){return F2(t3)?t3.get():t3}__name(Xt2,"Xt");i2(Xt2,"resolveMotionValue");function yl({scrapeMotionValuesFromProps:t3,createRenderState:e4},n4,s,r4){const o4={latestValues:vl(n4,s,r4,t3),renderState:e4()};return o4}__name(yl,"yl");i2(yl,"makeState");function vl(t3,e4,n4,s){const r4={};const o4=s(t3,{});for(const d2 in o4){r4[d2]=Xt2(o4[d2])}let{initial:c2,animate:a4}=t3;const l2=se3(t3);const h2=gr(t3);if(e4&&h2&&!l2&&t3.inherit!==false){if(c2===void 0)c2=e4.initial;if(a4===void 0)a4=e4.animate}let u6=n4?n4.initial===false:false;u6=u6||c2===false;const f3=u6?a4:c2;if(f3&&typeof f3!=="boolean"&&!ne2(f3)){const d2=Array.isArray(f3)?f3:[f3];for(let m5=0;m5(e4,n4)=>{const s=z.useContext(ee3);const r4=z.useContext(cn2);const o4=i2(()=>yl(t3,e4,s,r4),"make");return n4?o4():no2(o4)},"makeUseVisualState");function kn2(t3,e4,n4){const{style:s}=t3;const r4={};for(const o4 in s){if(F2(s[o4])||e4.style&&F2(e4.style[o4])||yr(o4,t3)||n4?.getValue(o4)?.liveStyle!==void 0){r4[o4]=s[o4]}}return r4}__name(kn2,"kn");i2(kn2,"scrapeMotionValuesFromProps$1");var Tl=br({scrapeMotionValuesFromProps:kn2,createRenderState:Rn2});function Sr(t3,e4,n4){const s=kn2(t3,e4,n4);for(const r4 in t3){if(F2(t3[r4])||F2(e4[r4])){const o4=vt.indexOf(r4)!==-1?"attr"+r4.charAt(0).toUpperCase()+r4.substring(1):r4;s[o4]=t3[r4]}}return s}__name(Sr,"Sr");i2(Sr,"scrapeMotionValuesFromProps");var xl=br({scrapeMotionValuesFromProps:Sr,createRenderState:xr});var Pl=Symbol.for("motionComponentSymbol");function ut3(t3){return t3&&typeof t3==="object"&&Object.prototype.hasOwnProperty.call(t3,"current")}__name(ut3,"ut");i2(ut3,"isRefObject");function bl(t3,e4,n4){return z.useCallback(s=>{if(s){t3.onMount&&t3.onMount(s)}if(e4){if(s){e4.mount(s)}else{e4.unmount()}}if(n4){if(typeof n4==="function"){n4(s)}else if(ut3(n4)){n4.current=s}}},[e4])}__name(bl,"bl");i2(bl,"useMotionRef");var Bn2=i2(t3=>t3.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),"camelToDash");var Sl="framerAppearId";var wr="data-"+Bn2(Sl);var Ar=z.createContext({});function wl(t3,e4,n4,s,r4){const{visualElement:o4}=z.useContext(ee3);const c2=z.useContext(mr);const a4=z.useContext(cn2);const l2=z.useContext(dr).reducedMotion;const h2=z.useRef(null);s=s||c2.renderer;if(!h2.current&&s){h2.current=s(t3,{visualState:e4,parent:o4,props:n4,presenceContext:a4,blockInitialAnimation:a4?a4.initial===false:false,reducedMotionConfig:l2})}const u6=h2.current;const f3=z.useContext(Ar);if(u6&&!u6.projection&&r4&&(u6.type==="html"||u6.type==="svg")){Al(h2.current,n4,r4,f3)}const d2=z.useRef(false);z.useInsertionEffect(()=>{if(u6&&d2.current){u6.update(n4,a4)}});const m5=n4[wr];const p3=z.useRef(Boolean(m5)&&!window.MotionHandoffIsComplete?.(m5)&&window.MotionHasOptimisedAnimation?.(m5));so3(()=>{if(!u6)return;d2.current=true;window.MotionIsMounted=true;u6.updateFeatures();u6.scheduleRenderMicrotask();if(p3.current&&u6.animationState){u6.animationState.animateChanges()}});z.useEffect(()=>{if(!u6)return;if(!p3.current&&u6.animationState){u6.animationState.animateChanges()}if(p3.current){queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(m5)});p3.current=false}u6.enteringChildren=void 0});return u6}__name(wl,"wl");i2(wl,"useVisualElement");function Al(t3,e4,n4,s){const{layoutId:r4,layout:o4,drag:c2,dragConstraints:a4,layoutScroll:l2,layoutRoot:h2,layoutCrossfade:u6}=e4;t3.projection=new n4(t3.latestValues,e4["data-framer-portal-id"]?void 0:Vr(t3.parent));t3.projection.setOptions({layoutId:r4,layout:o4,alwaysMeasureLayout:Boolean(c2)||a4&&ut3(a4),visualElement:t3,animationType:typeof o4==="string"?o4:"both",initialPromotionConfig:s,crossfade:u6,layoutScroll:l2,layoutRoot:h2})}__name(Al,"Al");i2(Al,"createProjectionNode$1");function Vr(t3){if(!t3)return void 0;return t3.options.allowProjection!==false?t3.projection:Vr(t3.parent)}__name(Vr,"Vr");i2(Vr,"getClosestProjectingNode");function ue3(t3,{forwardMotionProps:e4=false}={},n4,s){n4&&Qa(n4);const r4=En2(t3)?xl:Tl;function o4(a4,l2){let h2;const u6={...z.useContext(dr),...a4,layoutId:Vl(a4)};const{isStatic:f3}=u6;const d2=sl2(a4);const m5=r4(a4,f3);if(!f3&&ln2){Cl();const p3=Dl(u6);h2=p3.MeasureLayout;d2.visualElement=wl(t3,m5,u6,s,p3.ProjectionNode)}return Ht.jsxs(ee3.Provider,{value:d2,children:[h2&&d2.visualElement?Ht.jsx(h2,{visualElement:d2.visualElement,...u6}):null,gl(t3,a4,bl(m5,d2.visualElement,l2),m5,f3,e4)]})}__name(o4,"o");i2(o4,"MotionDOMComponent");o4.displayName=`motion.${typeof t3==="string"?t3:`create(${t3.displayName??t3.name??""})`}`;const c2=z.forwardRef(o4);c2[Pl]=t3;return c2}__name(ue3,"ue");i2(ue3,"createMotionComponent");function Vl({layoutId:t3}){const e4=z.useContext(Si).id;return e4&&t3!==void 0?e4+"-"+t3:t3}__name(Vl,"Vl");i2(Vl,"useLayoutId");function Cl(t3,e4){z.useContext(mr).strict}__name(Cl,"Cl");i2(Cl,"useStrictMode");function Dl(t3){const{drag:e4,layout:n4}=gt2;if(!e4&&!n4)return{};const s={...e4,...n4};return{MeasureLayout:e4?.isEnabled(t3)||n4?.isEnabled(t3)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}__name(Dl,"Dl");i2(Dl,"getProjectionFunctionality");function Ml(t3,e4){if(typeof Proxy==="undefined"){return ue3}const n4=new Map;const s=i2((o4,c2)=>{return ue3(o4,c2,t3,e4)},"factory");const r4=i2((o4,c2)=>{return s(o4,c2)},"deprecatedFactoryFunction");return new Proxy(r4,{get:i2((o4,c2)=>{if(c2==="create")return s;if(!n4.has(c2)){n4.set(c2,ue3(c2,void 0,t3,e4))}return n4.get(c2)},"get")})}__name(Ml,"Ml");i2(Ml,"createMotionProxy");function Cr({top:t3,left:e4,right:n4,bottom:s}){return{x:{min:e4,max:n4},y:{min:t3,max:s}}}__name(Cr,"Cr");i2(Cr,"convertBoundingBoxToBox");function Rl({x:t3,y:e4}){return{top:e4.min,right:t3.max,bottom:e4.max,left:t3.min}}__name(Rl,"Rl");i2(Rl,"convertBoxToBoundingBox");function El(t3,e4){if(!e4)return t3;const n4=e4({x:t3.left,y:t3.top});const s=e4({x:t3.right,y:t3.bottom});return{top:n4.y,left:n4.x,bottom:s.y,right:s.x}}__name(El,"El");i2(El,"transformBoxPoints");function he(t3){return t3===void 0||t3===1}__name(he,"he");i2(he,"isIdentityScale");function Oe2({scale:t3,scaleX:e4,scaleY:n4}){return!he(t3)||!he(e4)||!he(n4)}__name(Oe2,"Oe");i2(Oe2,"hasScale");function st3(t3){return Oe2(t3)||Dr(t3)||t3.z||t3.rotate||t3.rotateX||t3.rotateY||t3.skewX||t3.skewY}__name(st3,"st");i2(st3,"hasTransform");function Dr(t3){return Bs(t3.x)||Bs(t3.y)}__name(Dr,"Dr");i2(Dr,"has2DTranslate");function Bs(t3){return t3&&t3!=="0%"}__name(Bs,"Bs");i2(Bs,"is2DTranslate");function Qt2(t3,e4,n4){const s=t3-n4;const r4=e4*s;return n4+r4}__name(Qt2,"Qt");i2(Qt2,"scalePoint");function Fs(t3,e4,n4,s,r4){if(r4!==void 0){t3=Qt2(t3,r4,s)}return Qt2(t3,n4,s)+e4}__name(Fs,"Fs");i2(Fs,"applyPointDelta");function Ne3(t3,e4=0,n4=1,s,r4){t3.min=Fs(t3.min,e4,n4,s,r4);t3.max=Fs(t3.max,e4,n4,s,r4)}__name(Ne3,"Ne");i2(Ne3,"applyAxisDelta");function Mr(t3,{x:e4,y:n4}){Ne3(t3.x,e4.translate,e4.scale,e4.originPoint);Ne3(t3.y,n4.translate,n4.scale,n4.originPoint)}__name(Mr,"Mr");i2(Mr,"applyBoxDelta");var Is=.999999999999;var js=1.0000000000001;function Ll(t3,e4,n4,s=false){const r4=n4.length;if(!r4)return;e4.x=e4.y=1;let o4;let c2;for(let a4=0;a4Is){e4.x=1}if(e4.yIs){e4.y=1}}__name(Ll,"Ll");i2(Ll,"applyTreeDeltas");function ht(t3,e4){t3.min=t3.min+e4;t3.max=t3.max+e4}__name(ht,"ht");i2(ht,"translateAxis");function Os(t3,e4,n4,s,r4=.5){const o4=D(t3.min,t3.max,r4);Ne3(t3,e4,n4,o4,s)}__name(Os,"Os");i2(Os,"transformAxis");function ft2(t3,e4){Os(t3.x,e4.x,e4.scaleX,e4.scale,e4.originX);Os(t3.y,e4.y,e4.scaleY,e4.scale,e4.originY)}__name(ft2,"ft");i2(ft2,"transformBox");function Rr(t3,e4){return Cr(El(t3.getBoundingClientRect(),e4))}__name(Rr,"Rr");i2(Rr,"measureViewportBox");function kl(t3,e4,n4){const s=Rr(t3,n4);const{scroll:r4}=e4;if(r4){ht(s.x,r4.offset.x);ht(s.y,r4.offset.y)}return s}__name(kl,"kl");i2(kl,"measurePageBox");var Ns=i2(()=>({translate:0,scale:1,origin:0,originPoint:0}),"createAxisDelta");var dt4=i2(()=>({x:Ns(),y:Ns()}),"createDelta");var Us=i2(()=>({min:0,max:0}),"createAxis");var R2=i2(()=>({x:Us(),y:Us()}),"createBox");var Ue4={current:null};var Er={current:false};function Bl(){Er.current=true;if(!ln2)return;if(window.matchMedia){const t3=window.matchMedia("(prefers-reduced-motion)");const e4=i2(()=>Ue4.current=t3.matches,"setReducedMotionPreferences");t3.addEventListener("change",e4);e4()}else{Ue4.current=false}}__name(Bl,"Bl");i2(Bl,"initPrefersReducedMotion");var Fl=new WeakMap;function Il(t3,e4,n4){for(const s in e4){const r4=e4[s];const o4=n4[s];if(F2(r4)){t3.addValue(s,r4)}else if(F2(o4)){t3.addValue(s,pt2(r4,{owner:t3}))}else if(o4!==r4){if(t3.hasValue(s)){const c2=t3.getValue(s);if(c2.liveStyle===true){c2.jump(r4)}else if(!c2.hasAnimated){c2.set(r4)}}else{const c2=t3.getStaticValue(s);t3.addValue(s,pt2(c2!==void 0?c2:r4,{owner:t3}))}}}for(const s in n4){if(e4[s]===void 0)t3.removeValue(s)}return e4}__name(Il,"Il");i2(Il,"updateMotionValuesFromProps");var Ks=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];var zn2=class zn3{static{__name(this,"zn")}scrapeMotionValuesFromProps(e4,n4,s){return{}}constructor({parent:e4,props:n4,presenceContext:s,reducedMotionConfig:r4,blockInitialAnimation:o4,visualState:c2},a4={}){this.current=null;this.children=new Set;this.isVariantNode=false;this.isControllingVariants=false;this.shouldReduceMotion=null;this.values=new Map;this.KeyframeResolver=kt;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 d2=O2.now();if(this.renderScheduledAtthis.bindToMotionValue(s,n4));if(!Er.current){Bl()}this.shouldReduceMotion=this.reducedMotionConfig==="never"?false:this.reducedMotionConfig==="always"?true:Ue4.current;this.parent?.addChild(this);this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount();Q2(this.notifyUpdate);Q2(this.render);this.valueSubscriptions.forEach(e4=>e4());this.valueSubscriptions.clear();this.removeFromVariantTree&&this.removeFromVariantTree();this.parent?.removeChild(this);for(const e4 in this.events){this.events[e4].clear()}for(const e4 in this.features){const n4=this.features[e4];if(n4){n4.unmount();n4.isMounted=false}}this.current=null}addChild(e4){this.children.add(e4);this.enteringChildren??(this.enteringChildren=new Set);this.enteringChildren.add(e4)}removeChild(e4){this.children.delete(e4);this.enteringChildren&&this.enteringChildren.delete(e4)}bindToMotionValue(e4,n4){if(this.valueSubscriptions.has(e4)){this.valueSubscriptions.get(e4)()}const s=Tt2.has(e4);if(s&&this.onBindTransform){this.onBindTransform()}const r4=n4.on("change",c2=>{this.latestValues[e4]=c2;this.props.onUpdate&&C.preRender(this.notifyUpdate);if(s&&this.projection){this.projection.isTransformDirty=true}this.scheduleRender()});let o4;if(window.MotionCheckAppearSync){o4=window.MotionCheckAppearSync(this,e4,n4)}this.valueSubscriptions.set(e4,()=>{r4();if(o4)o4();if(n4.owner)n4.stop()})}sortNodePosition(e4){if(!this.current||!this.sortInstanceNodePosition||this.type!==e4.type){return 0}return this.sortInstanceNodePosition(this.current,e4.current)}updateFeatures(){let e4="animation";for(e4 in gt2){const n4=gt2[e4];if(!n4)continue;const{isEnabled:s,Feature:r4}=n4;if(!this.features[e4]&&r4&&s(this.props)){this.features[e4]=new r4(this)}if(this.features[e4]){const o4=this.features[e4];if(o4.isMounted){o4.update()}else{o4.mount();o4.isMounted=true}}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R2()}getStaticValue(e4){return this.latestValues[e4]}setStaticValue(e4,n4){this.latestValues[e4]=n4}update(e4,n4){if(e4.transformTemplate||this.props.transformTemplate){this.scheduleRender()}this.prevProps=this.props;this.props=e4;this.prevPresenceContext=this.presenceContext;this.presenceContext=n4;for(let s=0;sn4.variantChildren.delete(e4)}}addValue(e4,n4){const s=this.values.get(e4);if(n4!==s){if(s)this.removeValue(e4);this.bindToMotionValue(e4,n4);this.values.set(e4,n4);this.latestValues[e4]=n4.get()}}removeValue(e4){this.values.delete(e4);const n4=this.valueSubscriptions.get(e4);if(n4){n4();this.valueSubscriptions.delete(e4)}delete this.latestValues[e4];this.removeValueFromRenderState(e4,this.renderState)}hasValue(e4){return this.values.has(e4)}getValue(e4,n4){if(this.props.values&&this.props.values[e4]){return this.props.values[e4]}let s=this.values.get(e4);if(s===void 0&&n4!==void 0){s=pt2(n4===null?void 0:n4,{owner:this});this.addValue(e4,s)}return s}readValue(e4,n4){let s=this.latestValues[e4]!==void 0||!this.current?this.latestValues[e4]:this.getBaseTargetFromProps(this.props,e4)??this.readValueFromInstance(this.current,e4,this.options);if(s!==void 0&&s!==null){if(typeof s==="string"&&(wi(s)||Vi2(s))){s=parseFloat(s)}else if(!_a(s)&&J.test(n4)){s=ar(e4,n4)}this.setBaseTarget(e4,F2(s)?s.get():s)}return F2(s)?s.get():s}setBaseTarget(e4,n4){this.baseTarget[e4]=n4}getBaseTarget(e4){const{initial:n4}=this.props;let s;if(typeof n4==="string"||typeof n4==="object"){const o4=Ln2(this.props,n4,this.presenceContext?.custom);if(o4){s=o4[e4]}}if(n4&&s!==void 0){return s}const r4=this.getBaseTargetFromProps(this.props,e4);if(r4!==void 0&&!F2(r4))return r4;return this.initialValues[e4]!==void 0&&s===void 0?void 0:this.baseTarget[e4]}on(e4,n4){if(!this.events[e4]){this.events[e4]=new Dt2}return this.events[e4].add(n4)}notify(e4,...n4){if(this.events[e4]){this.events[e4].notify(...n4)}}scheduleRenderMicrotask(){An2.render(this.render)}};i2(zn2,"VisualElement");var Ke4=zn2;var Xn2=class Xn3 extends Ke4{static{__name(this,"Xn")}constructor(){super(...arguments);this.KeyframeResolver=Ie2}sortInstanceNodePosition(e4,n4){return e4.compareDocumentPosition(n4)&2?1:-1}getBaseTargetFromProps(e4,n4){return e4.style?e4.style[n4]:void 0}removeValueFromRenderState(e4,{vars:n4,style:s}){delete n4[e4];delete s[e4]}handleChildMotionValue(){if(this.childSubscription){this.childSubscription();delete this.childSubscription}const{children:e4}=this.props;if(F2(e4)){this.childSubscription=e4.on("change",n4=>{if(this.current){this.current.textContent=`${n4}`}})}}};i2(Xn2,"DOMVisualElement");var Jt2=Xn2;function Lr(t3,{style:e4,vars:n4},s,r4){const o4=t3.style;let c2;for(c2 in e4){o4[c2]=e4[c2]}r4?.applyProjectionStyles(o4,s);for(c2 in n4){o4.setProperty(c2,n4[c2])}}__name(Lr,"Lr");i2(Lr,"renderHTML");function jl2(t3){return window.getComputedStyle(t3)}__name(jl2,"jl");i2(jl2,"getComputedStyle$1");var Yn2=class Yn3 extends Jt2{static{__name(this,"Yn")}constructor(){super(...arguments);this.type="html";this.renderInstance=Lr}readValueFromInstance(e4,n4){if(Tt2.has(n4)){return this.projection?.isProjecting?Ve3(n4):aa2(e4,n4)}else{const s=jl2(e4);const r4=(gn2(n4)?s.getPropertyValue(n4):s[n4])||0;return typeof r4==="string"?r4.trim():r4}}measureInstanceViewportBox(e4,{transformPagePoint:n4}){return Rr(e4,n4)}build(e4,n4,s){Mn2(e4,n4,s.transformTemplate)}scrapeMotionValuesFromProps(e4,n4,s){return kn2(e4,n4,s)}};i2(Yn2,"HTMLVisualElement");var We3=Yn2;var kr=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 Ol(t3,e4,n4,s){Lr(t3,e4,void 0,s);for(const r4 in e4.attrs){t3.setAttribute(!kr.has(r4)?Bn2(r4):r4,e4.attrs[r4])}}__name(Ol,"Ol");i2(Ol,"renderSVG");var Gn2=class Gn3 extends Jt2{static{__name(this,"Gn")}constructor(){super(...arguments);this.type="svg";this.isSVGTag=false;this.measureInstanceViewportBox=R2}getBaseTargetFromProps(e4,n4){return e4[n4]}readValueFromInstance(e4,n4){if(Tt2.has(n4)){const s=or(n4);return s?s.default||0:0}n4=!kr.has(n4)?Bn2(n4):n4;return e4.getAttribute(n4)}scrapeMotionValuesFromProps(e4,n4,s){return Sr(e4,n4,s)}build(e4,n4,s){Tr(e4,n4,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e4,n4,s,r4){Ol(e4,n4,s,r4)}mount(e4){this.isSVGTag=Pr(e4.tagName);super.mount(e4)}};i2(Gn2,"SVGVisualElement");var $e3=Gn2;var Nl=i2((t3,e4)=>{return En2(t3)?new $e3(e4):new We3(e4,{allowProjection:t3!==z.Fragment})},"createDomVisualElement");function mt2(t3,e4,n4){const s=t3.getProps();return Ln2(s,e4,n4!==void 0?n4:s.custom,t3)}__name(mt2,"mt");i2(mt2,"resolveVariant");var He3=i2(t3=>{return Array.isArray(t3)},"isKeyframesTarget");function Ul(t3,e4,n4){if(t3.hasValue(e4)){t3.getValue(e4).set(n4)}else{t3.addValue(e4,pt2(n4))}}__name(Ul,"Ul");i2(Ul,"setMotionValue");function Kl(t3){return He3(t3)?t3[t3.length-1]||0:t3}__name(Kl,"Kl");i2(Kl,"resolveFinalValueInKeyframes");function Wl(t3,e4){const n4=mt2(t3,e4);let{transitionEnd:s={},transition:r4={},...o4}=n4||{};o4={...o4,...s};for(const c2 in o4){const a4=Kl(o4[c2]);Ul(t3,c2,a4)}}__name(Wl,"Wl");i2(Wl,"setTarget");function $l(t3){return Boolean(F2(t3)&&t3.add)}__name($l,"$l");i2($l,"isWillChangeMotionValue");function ze3(t3,e4){const n4=t3.getValue("willChange");if($l(n4)){return n4.add(e4)}else if(!n4&&_.WillChange){const s=new _.WillChange("auto");t3.addValue("willChange",s);s.add(e4)}}__name(ze3,"ze");i2(ze3,"addValueToWillChange");function Br(t3){return t3.props[wr]}__name(Br,"Br");i2(Br,"getOptimisedAppearId");var Hl=i2(t3=>t3!==null,"isNotNull");function zl(t3,{repeat:e4,repeatType:n4="loop"},s){const r4=t3.filter(Hl);const o4=e4&&n4!=="loop"&&e4%2===1?0:r4.length-1;return r4[o4]}__name(zl,"zl");i2(zl,"getFinalKeyframe");var Xl2={type:"spring",stiffness:500,damping:25,restSpeed:10};var Yl2=i2(t3=>({type:"spring",stiffness:550,damping:t3===0?2*Math.sqrt(550):30,restSpeed:10}),"criticallyDampedSpring");var Gl2={type:"keyframes",duration:.8};var ql={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};var _l=i2((t3,{keyframes:e4})=>{if(e4.length>2){return Gl2}else if(Tt2.has(t3)){return t3.startsWith("scale")?Yl2(e4[1]):Xl2}return ql},"getDefaultTransition");function Zl({when:t3,delay:e4,delayChildren:n4,staggerChildren:s,staggerDirection:r4,repeat:o4,repeatType:c2,repeatDelay:a4,from:l2,elapsed:h2,...u6}){return!!Object.keys(u6).length}__name(Zl,"Zl");i2(Zl,"isTransitionDefined");var Fn3=i2((t3,e4,n4,s={},r4,o4)=>c2=>{const a4=Sn2(s,t3)||{};const l2=a4.delay||s.delay||0;let{elapsed:h2=0}=s;h2=h2-X3(l2);const u6={keyframes:Array.isArray(n4)?n4:[null,n4],ease:"easeOut",velocity:e4.getVelocity(),...a4,delay:-h2,onUpdate:i2(d2=>{e4.set(d2);a4.onUpdate&&a4.onUpdate(d2)},"onUpdate"),onComplete:i2(()=>{c2();a4.onComplete&&a4.onComplete()},"onComplete"),name:t3,motionValue:e4,element:o4?void 0:r4};if(!Zl(a4)){Object.assign(u6,_l(t3,u6))}u6.duration&&(u6.duration=X3(u6.duration));u6.repeatDelay&&(u6.repeatDelay=X3(u6.repeatDelay));if(u6.from!==void 0){u6.keyframes[0]=u6.from}let f3=false;if(u6.type===false||u6.duration===0&&!u6.repeatDelay){ke4(u6);if(u6.delay===0){f3=true}}if(_.instantAnimations||_.skipAnimations){f3=true;ke4(u6);u6.delay=0}u6.allowFlatten=!a4.type&&!a4.ease;if(f3&&!o4&&e4.get()!==void 0){const d2=zl(u6.keyframes,a4);if(d2!==void 0){C.update(()=>{u6.onUpdate(d2);u6.onComplete()});return}}return a4.isSync?new Lt(u6):new Be3(u6)},"animateMotionValue");function Ql({protectedKeys:t3,needsAnimating:e4},n4){const s=t3.hasOwnProperty(n4)&&e4[n4]!==true;e4[n4]=false;return s}__name(Ql,"Ql");i2(Ql,"shouldBlockAnimation");function Fr(t3,e4,{delay:n4=0,transitionOverride:s,type:r4}={}){let{transition:o4=t3.getDefaultTransition(),transitionEnd:c2,...a4}=e4;if(s)o4=s;const l2=[];const h2=r4&&t3.animationState&&t3.animationState.getState()[r4];for(const u6 in a4){const f3=t3.getValue(u6,t3.latestValues[u6]??null);const d2=a4[u6];if(d2===void 0||h2&&Ql(h2,u6)){continue}const m5={delay:n4,...Sn2(o4||{},u6)};const p3=f3.get();if(p3!==void 0&&!f3.isAnimating&&!Array.isArray(d2)&&d2===p3&&!m5.velocity){continue}let v3=false;if(window.MotionHandoffAnimation){const g3=Br(t3);if(g3){const x4=window.MotionHandoffAnimation(g3,u6,C);if(x4!==null){m5.startTime=x4;v3=true}}}ze3(t3,u6);f3.start(Fn3(u6,f3,d2,t3.shouldReduceMotion&&sr.has(u6)?{type:false}:m5,t3,v3));const T2=f3.animation;if(T2){l2.push(T2)}}if(c2){Promise.all(l2).then(()=>{C.update(()=>{c2&&Wl(t3,c2)})})}return l2}__name(Fr,"Fr");i2(Fr,"animateTarget");function Ir(t3,e4,n4,s=0,r4=1){const o4=Array.from(t3).sort((h2,u6)=>h2.sortNodePosition(u6)).indexOf(e4);const c2=t3.size;const a4=(c2-1)*s;const l2=typeof n4==="function";return l2?n4(o4,c2):r4===1?o4*s:a4-o4*s}__name(Ir,"Ir");i2(Ir,"calcChildStagger");function Xe3(t3,e4,n4={}){const s=mt2(t3,e4,n4.type==="exit"?t3.presenceContext?.custom:void 0);let{transition:r4=t3.getDefaultTransition()||{}}=s||{};if(n4.transitionOverride){r4=n4.transitionOverride}const o4=s?()=>Promise.all(Fr(t3,s,n4)):()=>Promise.resolve();const c2=t3.variantChildren&&t3.variantChildren.size?(l2=0)=>{const{delayChildren:h2=0,staggerChildren:u6,staggerDirection:f3}=r4;return Jl(t3,e4,l2,h2,u6,f3,n4)}:()=>Promise.resolve();const{when:a4}=r4;if(a4){const[l2,h2]=a4==="beforeChildren"?[o4,c2]:[c2,o4];return l2().then(()=>h2())}else{return Promise.all([o4(),c2(n4.delay)])}}__name(Xe3,"Xe");i2(Xe3,"animateVariant");function Jl(t3,e4,n4=0,s=0,r4=0,o4=1,c2){const a4=[];for(const l2 of t3.variantChildren){l2.notify("AnimationStart",e4);a4.push(Xe3(l2,e4,{...c2,delay:n4+(typeof s==="function"?0:s)+Ir(t3.variantChildren,l2,s,r4,o4)}).then(()=>l2.notify("AnimationComplete",e4)))}return Promise.all(a4)}__name(Jl,"Jl");i2(Jl,"animateChildren");function tc(t3,e4,n4={}){t3.notify("AnimationStart",e4);let s;if(Array.isArray(e4)){const r4=e4.map(o4=>Xe3(t3,o4,n4));s=Promise.all(r4)}else if(typeof e4==="string"){s=Xe3(t3,e4,n4)}else{const r4=typeof e4==="function"?mt2(t3,e4,n4.custom):e4;s=Promise.all(Fr(t3,r4,n4))}return s.then(()=>{t3.notify("AnimationComplete",e4)})}__name(tc,"tc");i2(tc,"animateVisualElement");function jr(t3,e4){if(!Array.isArray(e4))return false;const n4=e4.length;if(n4!==t3.length)return false;for(let s=0;sPromise.all(e4.map(({animation:n4,options:s})=>tc(t3,n4,s)))}__name(ic,"ic");i2(ic,"animateList");function rc(t3){let e4=ic(t3);let n4=Ws();let s=true;const r4=i2(l2=>(h2,u6)=>{const f3=mt2(t3,u6,l2==="exit"?t3.presenceContext?.custom:void 0);if(f3){const{transition:d2,transitionEnd:m5,...p3}=f3;h2={...h2,...p3,...m5}}return h2},"buildResolvedTypeValues");function o4(l2){e4=l2(t3)}__name(o4,"o");i2(o4,"setAnimateFunction");function c2(l2){const{props:h2}=t3;const u6=Or(t3.parent)||{};const f3=[];const d2=new Set;let m5={};let p3=Infinity;for(let T2=0;T2p3&&w;let j2=false;const N2=Array.isArray(y3)?y3:[y3];let tt6=N2.reduce(r4(g3),{});if(b===false)tt6={};const{prevResolvedValues:cs={}}=x4;const Qr={...cs,...tt6};const us=i2(k4=>{A=true;if(d2.has(k4)){j2=true;d2.delete(k4)}x4.needsAnimating[k4]=true;const U3=t3.getValue(k4);if(U3)U3.liveStyle=false},"markToAnimate");for(const k4 in Qr){const U3=tt6[k4];const et5=cs[k4];if(m5.hasOwnProperty(k4))continue;let lt4=false;if(He3(U3)&&He3(et5)){lt4=!jr(U3,et5)}else{lt4=U3!==et5}if(lt4){if(U3!==void 0&&U3!==null){us(k4)}else{d2.add(k4)}}else if(U3!==void 0&&d2.has(k4)){us(k4)}else{x4.protectedKeys[k4]=true}}x4.prevProp=y3;x4.prevResolvedValues=tt6;if(x4.isActive){m5={...m5,...tt6}}if(s&&t3.blockInitialAnimation){A=false}const hs=V&&L;const Jr=!hs||j2;if(A&&Jr){f3.push(...N2.map(k4=>{const U3={type:g3};if(typeof k4==="string"&&s&&!hs&&t3.manuallyAnimateOnMount&&t3.parent){const{parent:et5}=t3;const lt4=mt2(et5,k4);if(et5.enteringChildren&<4){const{delayChildren:to3}=lt4.transition||{};U3.delay=Ir(et5.enteringChildren,t3,to3)}}return{animation:k4,options:U3}}))}}if(d2.size){const T2={};if(typeof h2.initial!=="boolean"){const g3=mt2(t3,Array.isArray(h2.initial)?h2.initial[0]:h2.initial);if(g3&&g3.transition){T2.transition=g3.transition}}d2.forEach(g3=>{const x4=t3.getBaseTarget(g3);const y3=t3.getValue(g3);if(y3)y3.liveStyle=true;T2[g3]=x4??null});f3.push({animation:T2})}let v3=Boolean(f3.length);if(s&&(h2.initial===false||h2.initial===h2.animate)&&!t3.manuallyAnimateOnMount){v3=false}s=false;return v3?e4(f3):Promise.resolve()}__name(c2,"c");i2(c2,"animateChanges");function a4(l2,h2){if(n4[l2].isActive===h2)return Promise.resolve();t3.variantChildren?.forEach(f3=>f3.animationState?.setActive(l2,h2));n4[l2].isActive=h2;const u6=c2(l2);for(const f3 in n4){n4[f3].protectedKeys={}}return u6}__name(a4,"a");i2(a4,"setActive");return{animateChanges:c2,setActive:a4,setAnimateFunction:o4,getState:i2(()=>n4,"getState"),reset:i2(()=>{n4=Ws()},"reset")}}__name(rc,"rc");i2(rc,"createAnimationState");function oc(t3,e4){if(typeof e4==="string"){return e4!==t3}else if(Array.isArray(e4)){return!jr(e4,t3)}return false}__name(oc,"oc");i2(oc,"checkVariantsDidChange");function nt3(t3=false){return{isActive:t3,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}__name(nt3,"nt");i2(nt3,"createTypeState");function Ws(){return{animate:nt3(true),whileInView:nt3(),whileHover:nt3(),whileTap:nt3(),whileDrag:nt3(),whileFocus:nt3(),exit:nt3()}}__name(Ws,"Ws");i2(Ws,"createState");var qn2=class qn3{static{__name(this,"qn")}constructor(e4){this.isMounted=false;this.node=e4}update(){}};i2(qn2,"Feature");var G2=qn2;var _n2=class _n3 extends G2{static{__name(this,"_n")}constructor(e4){super(e4);e4.animationState||(e4.animationState=rc(e4))}updateAnimationControlsSubscription(){const{animate:e4}=this.node.getProps();if(ne2(e4)){this.unmountControls=e4.subscribe(this.node)}}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e4}=this.node.getProps();const{animate:n4}=this.node.prevProps||{};if(e4!==n4){this.updateAnimationControlsSubscription()}}unmount(){this.node.animationState.reset();this.unmountControls?.()}};i2(_n2,"AnimationFeature");var Ye3=_n2;var ac=0;var Zn2=class Zn3 extends G2{static{__name(this,"Zn")}constructor(){super(...arguments);this.id=ac++}update(){if(!this.node.presenceContext)return;const{isPresent:e4,onExitComplete:n4}=this.node.presenceContext;const{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e4===s){return}const r4=this.node.animationState.setActive("exit",!e4);if(n4&&!e4){r4.then(()=>{n4(this.id)})}}mount(){const{register:e4,onExitComplete:n4}=this.node.presenceContext||{};if(n4){n4(this.id)}if(e4){this.unmount=e4(this.id)}}unmount(){}};i2(Zn2,"ExitAnimationFeature");var Ge3=Zn2;var lc={animation:{Feature:Ye3},exit:{Feature:Ge3}};function It2(t3,e4,n4,s={passive:true}){t3.addEventListener(e4,n4,s);return()=>t3.removeEventListener(e4,n4)}__name(It2,"It");i2(It2,"addDomEvent");function Ut(t3){return{point:{x:t3.pageX,y:t3.pageY}}}__name(Ut,"Ut");i2(Ut,"extractEventInfo");var cc=i2(t3=>{return e4=>Vn2(e4)&&t3(e4,Ut(e4))},"addPointerInfo");function wt2(t3,e4,n4,s){return It2(t3,e4,cc(n4),s)}__name(wt2,"wt");i2(wt2,"addPointerEvent");var Nr=1e-4;var uc=1-Nr;var hc=1+Nr;var Ur=.01;var fc=0-Ur;var dc=0+Ur;function I2(t3){return t3.max-t3.min}__name(I2,"I");i2(I2,"calcLength");function mc(t3,e4,n4){return Math.abs(t3-e4)<=n4}__name(mc,"mc");i2(mc,"isNear");function $s(t3,e4,n4,s=.5){t3.origin=s;t3.originPoint=D(e4.min,e4.max,t3.origin);t3.scale=I2(n4)/I2(e4);t3.translate=D(n4.min,n4.max,t3.origin)-t3.originPoint;if(t3.scale>=uc&&t3.scale<=hc||isNaN(t3.scale)){t3.scale=1}if(t3.translate>=fc&&t3.translate<=dc||isNaN(t3.translate)){t3.translate=0}}__name($s,"$s");i2($s,"calcAxisDelta");function At(t3,e4,n4,s){$s(t3.x,e4.x,n4.x,s?s.originX:void 0);$s(t3.y,e4.y,n4.y,s?s.originY:void 0)}__name(At,"At");i2(At,"calcBoxDelta");function Hs(t3,e4,n4){t3.min=n4.min+e4.min;t3.max=t3.min+I2(e4)}__name(Hs,"Hs");i2(Hs,"calcRelativeAxis");function pc(t3,e4,n4){Hs(t3.x,e4.x,n4.x);Hs(t3.y,e4.y,n4.y)}__name(pc,"pc");i2(pc,"calcRelativeBox");function zs(t3,e4,n4){t3.min=e4.min-n4.min;t3.max=t3.min+I2(e4)}__name(zs,"zs");i2(zs,"calcRelativeAxisPosition");function Vt2(t3,e4,n4){zs(t3.x,e4.x,n4.x);zs(t3.y,e4.y,n4.y)}__name(Vt2,"Vt");i2(Vt2,"calcRelativePosition");function W3(t3){return[t3("x"),t3("y")]}__name(W3,"W");i2(W3,"eachAxis");var Kr=i2(({current:t3})=>{return t3?t3.ownerDocument.defaultView:null},"getContextWindow");var Xs=i2((t3,e4)=>Math.abs(t3-e4),"distance");function gc(t3,e4){const n4=Xs(t3.x,e4.x);const s=Xs(t3.y,e4.y);return Math.sqrt(n4**2+s**2)}__name(gc,"gc");i2(gc,"distance2D");var Qn2=class Qn3{static{__name(this,"Qn")}constructor(e4,n4,{transformPagePoint:s,contextWindow:r4=window,dragSnapToOrigin:o4=false,distanceThreshold:c2=3}={}){this.startEvent=null;this.lastMoveEvent=null;this.lastMoveEventInfo=null;this.handlers={};this.contextWindow=window;this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d2=de3(this.lastMoveEventInfo,this.history);const m5=this.startEvent!==null;const p3=gc(d2.offset,{x:0,y:0})>=this.distanceThreshold;if(!m5&&!p3)return;const{point:v3}=d2;const{timestamp:T2}=B2;this.history.push({...v3,timestamp:T2});const{onStart:g3,onMove:x4}=this.handlers;if(!m5){g3&&g3(this.lastMoveEvent,d2);this.startEvent=this.lastMoveEvent}x4&&x4(this.lastMoveEvent,d2)};this.handlePointerMove=(d2,m5)=>{this.lastMoveEvent=d2;this.lastMoveEventInfo=fe2(m5,this.transformPagePoint);C.update(this.updatePoint,true)};this.handlePointerUp=(d2,m5)=>{this.end();const{onEnd:p3,onSessionEnd:v3,resumeAnimation:T2}=this.handlers;if(this.dragSnapToOrigin)T2&&T2();if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g3=de3(d2.type==="pointercancel"?this.lastMoveEventInfo:fe2(m5,this.transformPagePoint),this.history);if(this.startEvent&&p3){p3(d2,g3)}v3&&v3(d2,g3)};if(!Vn2(e4))return;this.dragSnapToOrigin=o4;this.handlers=n4;this.transformPagePoint=s;this.distanceThreshold=c2;this.contextWindow=r4||window;const a4=Ut(e4);const l2=fe2(a4,this.transformPagePoint);const{point:h2}=l2;const{timestamp:u6}=B2;this.history=[{...h2,timestamp:u6}];const{onSessionStart:f3}=n4;f3&&f3(e4,de3(l2,this.history));this.removeListeners=jt(wt2(this.contextWindow,"pointermove",this.handlePointerMove),wt2(this.contextWindow,"pointerup",this.handlePointerUp),wt2(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e4){this.handlers=e4}end(){this.removeListeners&&this.removeListeners();Q2(this.updatePoint)}};i2(Qn2,"PanSession");var te2=Qn2;function fe2(t3,e4){return e4?{point:e4(t3.point)}:t3}__name(fe2,"fe");i2(fe2,"transformPoint");function Ys(t3,e4){return{x:t3.x-e4.x,y:t3.y-e4.y}}__name(Ys,"Ys");i2(Ys,"subtractPoint");function de3({point:t3},e4){return{point:t3,delta:Ys(t3,Wr(e4)),offset:Ys(t3,yc(e4)),velocity:vc(e4,.1)}}__name(de3,"de");i2(de3,"getPanInfo");function yc(t3){return t3[0]}__name(yc,"yc");i2(yc,"startDevicePoint");function Wr(t3){return t3[t3.length-1]}__name(Wr,"Wr");i2(Wr,"lastDevicePoint");function vc(t3,e4){if(t3.length<2){return{x:0,y:0}}let n4=t3.length-1;let s=null;const r4=Wr(t3);while(n4>=0){s=t3[n4];if(r4.timestamp-s.timestamp>X3(e4)){break}n4--}if(!s){return{x:0,y:0}}const o4=$2(r4.timestamp-s.timestamp);if(o4===0){return{x:0,y:0}}const c2={x:(r4.x-s.x)/o4,y:(r4.y-s.y)/o4};if(c2.x===Infinity){c2.x=0}if(c2.y===Infinity){c2.y=0}return c2}__name(vc,"vc");i2(vc,"getVelocity");function Tc(t3,{min:e4,max:n4},s){if(e4!==void 0&&t3n4){t3=s?D(n4,t3,s.max):Math.min(t3,n4)}return t3}__name(Tc,"Tc");i2(Tc,"applyConstraints");function Gs(t3,e4,n4){return{min:e4!==void 0?t3.min+e4:void 0,max:n4!==void 0?t3.max+n4-(t3.max-t3.min):void 0}}__name(Gs,"Gs");i2(Gs,"calcRelativeAxisConstraints");function xc(t3,{top:e4,left:n4,bottom:s,right:r4}){return{x:Gs(t3.x,n4,r4),y:Gs(t3.y,e4,s)}}__name(xc,"xc");i2(xc,"calcRelativeConstraints");function qs(t3,e4){let n4=e4.min-t3.min;let s=e4.max-t3.max;if(e4.max-e4.mins){n4=Ct2(e4.min,e4.max-s,t3.min)}else if(s>r4){n4=Ct2(t3.min,t3.max-r4,e4.min)}return q2(0,1,n4)}__name(bc,"bc");i2(bc,"calcOrigin");function Sc(t3,e4){const n4={};if(e4.min!==void 0){n4.min=e4.min-t3.min}if(e4.max!==void 0){n4.max=e4.max-t3.min}return n4}__name(Sc,"Sc");i2(Sc,"rebaseAxisConstraints");var qe3=.35;function wc(t3=qe3){if(t3===false){t3=0}else if(t3===true){t3=qe3}return{x:_s(t3,"left","right"),y:_s(t3,"top","bottom")}}__name(wc,"wc");i2(wc,"resolveDragElastic");function _s(t3,e4,n4){return{min:Zs(t3,e4),max:Zs(t3,n4)}}__name(_s,"_s");i2(_s,"resolveAxisElastic");function Zs(t3,e4){return typeof t3==="number"?t3:t3[e4]||0}__name(Zs,"Zs");i2(Zs,"resolvePointElastic");var Ac=new WeakMap;var Jn2=class Jn3{static{__name(this,"Jn")}constructor(e4){this.openDragLock=null;this.isDragging=false;this.currentDirection=null;this.originPoint={x:0,y:0};this.constraints=false;this.hasMutatedConstraints=false;this.elastic=R2();this.latestPointerEvent=null;this.latestPanInfo=null;this.visualElement=e4}start(e4,{snapToCursor:n4=false,distanceThreshold:s}={}){const{presenceContext:r4}=this.visualElement;if(r4&&r4.isPresent===false)return;const o4=i2(f3=>{const{dragSnapToOrigin:d2}=this.getProps();d2?this.pauseAnimation():this.stopAnimation();if(n4){this.snapToCursor(Ut(f3).point)}},"onSessionStart");const c2=i2((f3,d2)=>{const{drag:m5,dragPropagation:p3,onDragStart:v3}=this.getProps();if(m5&&!p3){if(this.openDragLock)this.openDragLock();this.openDragLock=Wa(m5);if(!this.openDragLock)return}this.latestPointerEvent=f3;this.latestPanInfo=d2;this.isDragging=true;this.currentDirection=null;this.resolveConstraints();if(this.visualElement.projection){this.visualElement.projection.isAnimationBlocked=true;this.visualElement.projection.target=void 0}W3(g3=>{let x4=this.getAxisMotionValue(g3).get()||0;if(Y2.test(x4)){const{projection:y3}=this.visualElement;if(y3&&y3.layout){const w=y3.layout.layoutBox[g3];if(w){const b=I2(w);x4=b*(parseFloat(x4)/100)}}}this.originPoint[g3]=x4});if(v3){C.postRender(()=>v3(f3,d2))}ze3(this.visualElement,"transform");const{animationState:T2}=this.visualElement;T2&&T2.setActive("whileDrag",true)},"onStart");const a4=i2((f3,d2)=>{this.latestPointerEvent=f3;this.latestPanInfo=d2;const{dragPropagation:m5,dragDirectionLock:p3,onDirectionLock:v3,onDrag:T2}=this.getProps();if(!m5&&!this.openDragLock)return;const{offset:g3}=d2;if(p3&&this.currentDirection===null){this.currentDirection=Vc(g3);if(this.currentDirection!==null){v3&&v3(this.currentDirection)}return}this.updateAxis("x",d2.point,g3);this.updateAxis("y",d2.point,g3);this.visualElement.render();T2&&T2(f3,d2)},"onMove");const l2=i2((f3,d2)=>{this.latestPointerEvent=f3;this.latestPanInfo=d2;this.stop(f3,d2);this.latestPointerEvent=null;this.latestPanInfo=null},"onSessionEnd");const h2=i2(()=>W3(f3=>this.getAnimationState(f3)==="paused"&&this.getAxisMotionValue(f3).animation?.play()),"resumeAnimation");const{dragSnapToOrigin:u6}=this.getProps();this.panSession=new te2(e4,{onSessionStart:o4,onStart:c2,onMove:a4,onSessionEnd:l2,resumeAnimation:h2},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u6,distanceThreshold:s,contextWindow:Kr(this.visualElement)})}stop(e4,n4){const s=e4||this.latestPointerEvent;const r4=n4||this.latestPanInfo;const o4=this.isDragging;this.cancel();if(!o4||!r4||!s)return;const{velocity:c2}=r4;this.startAnimation(c2);const{onDragEnd:a4}=this.getProps();if(a4){C.postRender(()=>a4(s,r4))}}cancel(){this.isDragging=false;const{projection:e4,animationState:n4}=this.visualElement;if(e4){e4.isAnimationBlocked=false}this.panSession&&this.panSession.end();this.panSession=void 0;const{dragPropagation:s}=this.getProps();if(!s&&this.openDragLock){this.openDragLock();this.openDragLock=null}n4&&n4.setActive("whileDrag",false)}updateAxis(e4,n4,s){const{drag:r4}=this.getProps();if(!s||!$t(e4,r4,this.currentDirection))return;const o4=this.getAxisMotionValue(e4);let c2=this.originPoint[e4]+s[e4];if(this.constraints&&this.constraints[e4]){c2=Tc(c2,this.constraints[e4],this.elastic[e4])}o4.set(c2)}resolveConstraints(){const{dragConstraints:e4,dragElastic:n4}=this.getProps();const s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(false):this.visualElement.projection?.layout;const r4=this.constraints;if(e4&&ut3(e4)){if(!this.constraints){this.constraints=this.resolveRefConstraints()}}else{if(e4&&s){this.constraints=xc(s.layoutBox,e4)}else{this.constraints=false}}this.elastic=wc(n4);if(r4!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints){W3(o4=>{if(this.constraints!==false&&this.getAxisMotionValue(o4)){this.constraints[o4]=Sc(s.layoutBox[o4],this.constraints[o4])}})}}resolveRefConstraints(){const{dragConstraints:e4,onMeasureDragConstraints:n4}=this.getProps();if(!e4||!ut3(e4))return false;const s=e4.current;const{projection:r4}=this.visualElement;if(!r4||!r4.layout)return false;const o4=kl(s,r4.root,this.visualElement.getTransformPagePoint());let c2=Pc(r4.layout.layoutBox,o4);if(n4){const a4=n4(Rl(c2));this.hasMutatedConstraints=!!a4;if(a4){c2=Cr(a4)}}return c2}startAnimation(e4){const{drag:n4,dragMomentum:s,dragElastic:r4,dragTransition:o4,dragSnapToOrigin:c2,onDragTransitionEnd:a4}=this.getProps();const l2=this.constraints||{};const h2=W3(u6=>{if(!$t(u6,n4,this.currentDirection)){return}let f3=l2&&l2[u6]||{};if(c2)f3={min:0,max:0};const d2=r4?200:1e6;const m5=r4?40:1e7;const p3={type:"inertia",velocity:s?e4[u6]:0,bounceStiffness:d2,bounceDamping:m5,timeConstant:750,restDelta:1,restSpeed:10,...o4,...f3};return this.startAxisValueAnimation(u6,p3)});return Promise.all(h2).then(a4)}startAxisValueAnimation(e4,n4){const s=this.getAxisMotionValue(e4);ze3(this.visualElement,e4);return s.start(Fn3(e4,s,0,n4,this.visualElement,false))}stopAnimation(){W3(e4=>this.getAxisMotionValue(e4).stop())}pauseAnimation(){W3(e4=>this.getAxisMotionValue(e4).animation?.pause())}getAnimationState(e4){return this.getAxisMotionValue(e4).animation?.state}getAxisMotionValue(e4){const n4=`_drag${e4.toUpperCase()}`;const s=this.visualElement.getProps();const r4=s[n4];return r4?r4:this.visualElement.getValue(e4,(s.initial?s.initial[e4]:void 0)||0)}snapToCursor(e4){W3(n4=>{const{drag:s}=this.getProps();if(!$t(n4,s,this.currentDirection))return;const{projection:r4}=this.visualElement;const o4=this.getAxisMotionValue(n4);if(r4&&r4.layout){const{min:c2,max:a4}=r4.layout.layoutBox[n4];o4.set(e4[n4]-D(c2,a4,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e4,dragConstraints:n4}=this.getProps();const{projection:s}=this.visualElement;if(!ut3(n4)||!s||!this.constraints)return;this.stopAnimation();const r4={x:0,y:0};W3(c2=>{const a4=this.getAxisMotionValue(c2);if(a4&&this.constraints!==false){const l2=a4.get();r4[c2]=bc({min:l2,max:l2},this.constraints[c2])}});const{transformTemplate:o4}=this.visualElement.getProps();this.visualElement.current.style.transform=o4?o4({},""):"none";s.root&&s.root.updateScroll();s.updateLayout();this.resolveConstraints();W3(c2=>{if(!$t(c2,e4,null))return;const a4=this.getAxisMotionValue(c2);const{min:l2,max:h2}=this.constraints[c2];a4.set(D(l2,h2,r4[c2]))})}addListeners(){if(!this.visualElement.current)return;Ac.set(this.visualElement,this);const e4=this.visualElement.current;const n4=wt2(e4,"pointerdown",l2=>{const{drag:h2,dragListener:u6=true}=this.getProps();h2&&u6&&this.start(l2)});const s=i2(()=>{const{dragConstraints:l2}=this.getProps();if(ut3(l2)&&l2.current){this.constraints=this.resolveRefConstraints()}},"measureDragConstraints");const{projection:r4}=this.visualElement;const o4=r4.addEventListener("measure",s);if(r4&&!r4.layout){r4.root&&r4.root.updateScroll();r4.updateLayout()}C.read(s);const c2=It2(window,"resize",()=>this.scalePositionWithinConstraints());const a4=r4.addEventListener("didUpdate",({delta:l2,hasLayoutChanged:h2})=>{if(this.isDragging&&h2){W3(u6=>{const f3=this.getAxisMotionValue(u6);if(!f3)return;this.originPoint[u6]+=l2[u6].translate;f3.set(f3.get()+l2[u6].translate)});this.visualElement.render()}});return()=>{c2();n4();o4();a4&&a4()}}getProps(){const e4=this.visualElement.getProps();const{drag:n4=false,dragDirectionLock:s=false,dragPropagation:r4=false,dragConstraints:o4=false,dragElastic:c2=qe3,dragMomentum:a4=true}=e4;return{...e4,drag:n4,dragDirectionLock:s,dragPropagation:r4,dragConstraints:o4,dragElastic:c2,dragMomentum:a4}}};i2(Jn2,"VisualElementDragControls");var _e2=Jn2;function $t(t3,e4,n4){return(e4===true||e4===t3)&&(n4===null||n4===t3)}__name($t,"$t");i2($t,"shouldDrag");function Vc(t3,e4=10){let n4=null;if(Math.abs(t3.y)>e4){n4="y"}else if(Math.abs(t3.x)>e4){n4="x"}return n4}__name(Vc,"Vc");i2(Vc,"getCurrentDirection");var ts=class ts2 extends G2{static{__name(this,"ts")}constructor(e4){super(e4);this.removeGroupControls=H;this.removeListeners=H;this.controls=new _e2(e4)}mount(){const{dragControls:e4}=this.node.getProps();if(e4){this.removeGroupControls=e4.subscribe(this.controls)}this.removeListeners=this.controls.addListeners()||H}unmount(){this.removeGroupControls();this.removeListeners()}};i2(ts,"DragGesture");var Ze4=ts;var Qs=i2(t3=>(e4,n4)=>{if(t3){C.postRender(()=>t3(e4,n4))}},"asyncHandler");var es=class es2 extends G2{static{__name(this,"es")}constructor(){super(...arguments);this.removePointerDownListener=H}onPointerDown(e4){this.session=new te2(e4,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Kr(this.node)})}createPanHandlers(){const{onPanSessionStart:e4,onPanStart:n4,onPan:s,onPanEnd:r4}=this.node.getProps();return{onSessionStart:Qs(e4),onStart:Qs(n4),onMove:s,onEnd:i2((o4,c2)=>{delete this.session;if(r4){C.postRender(()=>r4(o4,c2))}},"onEnd")}}mount(){this.removePointerDownListener=wt2(this.node.current,"pointerdown",e4=>this.onPointerDown(e4))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener();this.session&&this.session.end()}};i2(es,"PanGesture");var Qe4=es;var Yt2={hasAnimatedSinceResize:true,hasEverUpdated:false};function Js(t3,e4){if(e4.max===e4.min)return 0;return t3/(e4.max-e4.min)*100}__name(Js,"Js");i2(Js,"pixelsToPercent");var xt2={correct:i2((t3,e4)=>{if(!e4.target)return t3;if(typeof t3==="string"){if(P.test(t3)){t3=parseFloat(t3)}else{return t3}}const n4=Js(t3,e4.target.x);const s=Js(t3,e4.target.y);return`${n4}% ${s}%`},"correct")};var Cc={correct:i2((t3,{treeScale:e4,projectionDelta:n4})=>{const s=t3;const r4=J.parse(t3);if(r4.length>5)return s;const o4=J.createTransformer(t3);const c2=typeof r4[0]!=="number"?1:0;const a4=n4.x.scale*e4.x;const l2=n4.y.scale*e4.y;r4[0+c2]/=a4;r4[1+c2]/=l2;const h2=D(a4,l2,.5);if(typeof r4[2+c2]==="number")r4[2+c2]/=h2;if(typeof r4[3+c2]==="number")r4[3+c2]/=h2;return o4(r4)},"correct")};var me2=false;var ns=class ns2 extends z.Component{static{__name(this,"ns")}componentDidMount(){const{visualElement:e4,layoutGroup:n4,switchLayoutGroup:s,layoutId:r4}=this.props;const{projection:o4}=e4;il(Dc);if(o4){if(n4.group)n4.group.add(o4);if(s&&s.register&&r4){s.register(o4)}if(me2){o4.root.didUpdate()}o4.addEventListener("animationComplete",()=>{this.safeToRemove()});o4.setOptions({...o4.options,onExitComplete:i2(()=>this.safeToRemove(),"onExitComplete")})}Yt2.hasEverUpdated=true}getSnapshotBeforeUpdate(e4){const{layoutDependency:n4,visualElement:s,drag:r4,isPresent:o4}=this.props;const{projection:c2}=s;if(!c2)return null;c2.isPresent=o4;me2=true;if(r4||e4.layoutDependency!==n4||n4===void 0||e4.isPresent!==o4){c2.willUpdate()}else{this.safeToRemove()}if(e4.isPresent!==o4){if(o4){c2.promote()}else if(!c2.relegate()){C.postRender(()=>{const a4=c2.getStack();if(!a4||!a4.members.length){this.safeToRemove()}})}}return null}componentDidUpdate(){const{projection:e4}=this.props.visualElement;if(e4){e4.root.didUpdate();An2.postRender(()=>{if(!e4.currentAnimation&&e4.isLead()){this.safeToRemove()}})}}componentWillUnmount(){const{visualElement:e4,layoutGroup:n4,switchLayoutGroup:s}=this.props;const{projection:r4}=e4;me2=true;if(r4){r4.scheduleCheckAfterUnmount();if(n4&&n4.group)n4.group.remove(r4);if(s&&s.deregister)s.deregister(r4)}}safeToRemove(){const{safeToRemove:e4}=this.props;e4&&e4()}render(){return null}};i2(ns,"MeasureLayoutWithContext");var Je4=ns;function $r(t3){const[e4,n4]=Za();const s=z.useContext(Si);return Ht.jsx(Je4,{...t3,layoutGroup:s,switchLayoutGroup:z.useContext(Ar),isPresent:e4,safeToRemove:n4})}__name($r,"$r");i2($r,"MeasureLayout");var Dc={borderRadius:{...xt2,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xt2,borderTopRightRadius:xt2,borderBottomLeftRadius:xt2,borderBottomRightRadius:xt2,boxShadow:Cc};function Mc(t3,e4,n4){const s=F2(t3)?t3:pt2(t3);s.start(Fn3("",s,e4,n4));return s.animation}__name(Mc,"Mc");i2(Mc,"animateSingleValue");var Rc=i2((t3,e4)=>t3.depth-e4.depth,"compareByDepth");var ss=class ss2{static{__name(this,"ss")}constructor(){this.children=[];this.isDirty=false}add(e4){un2(this.children,e4);this.isDirty=true}remove(e4){hn2(this.children,e4);this.isDirty=true}forEach(e4){this.isDirty&&this.children.sort(Rc);this.isDirty=false;this.children.forEach(e4)}};i2(ss,"FlatTree");var tn2=ss;function Ec(t3,e4){const n4=O2.now();const s=i2(({timestamp:r4})=>{const o4=r4-n4;if(o4>=e4){Q2(s);t3(o4-e4)}},"checkElapsed");C.setup(s,true);return()=>Q2(s)}__name(Ec,"Ec");i2(Ec,"delay");var Hr=["TopLeft","TopRight","BottomLeft","BottomRight"];var Lc=Hr.length;var ti=i2(t3=>typeof t3==="string"?parseFloat(t3):t3,"asNumber");var ei=i2(t3=>typeof t3==="number"||P.test(t3),"isPx");function kc(t3,e4,n4,s,r4,o4){if(r4){t3.opacity=D(0,n4.opacity??1,Bc(s));t3.opacityExit=D(e4.opacity??1,0,Fc(s))}else if(o4){t3.opacity=D(e4.opacity??1,n4.opacity??1,s)}for(let c2=0;c2{if(se4)return 1;return n4(Ct2(t3,e4,s))}}__name(zr,"zr");i2(zr,"compress");function si(t3,e4){t3.min=e4.min;t3.max=e4.max}__name(si,"si");i2(si,"copyAxisInto");function K2(t3,e4){si(t3.x,e4.x);si(t3.y,e4.y)}__name(K2,"K");i2(K2,"copyBoxInto");function ii(t3,e4){t3.translate=e4.translate;t3.scale=e4.scale;t3.originPoint=e4.originPoint;t3.origin=e4.origin}__name(ii,"ii");i2(ii,"copyAxisDeltaInto");function ri(t3,e4,n4,s,r4){t3-=e4;t3=Qt2(t3,1/n4,s);if(r4!==void 0){t3=Qt2(t3,1/r4,s)}return t3}__name(ri,"ri");i2(ri,"removePointDelta");function Ic(t3,e4=0,n4=1,s=.5,r4,o4=t3,c2=t3){if(Y2.test(e4)){e4=parseFloat(e4);const l2=D(c2.min,c2.max,e4/100);e4=l2-c2.min}if(typeof e4!=="number")return;let a4=D(o4.min,o4.max,s);if(t3===o4)a4-=e4;t3.min=ri(t3.min,e4,n4,a4,r4);t3.max=ri(t3.max,e4,n4,a4,r4)}__name(Ic,"Ic");i2(Ic,"removeAxisDelta");function oi(t3,e4,[n4,s,r4],o4,c2){Ic(t3,e4[n4],e4[s],e4[r4],e4.scale,o4,c2)}__name(oi,"oi");i2(oi,"removeAxisTransforms");var jc=["x","scaleX","originX"];var Oc=["y","scaleY","originY"];function ai(t3,e4,n4,s){oi(t3.x,e4,jc,n4?n4.x:void 0,s?s.x:void 0);oi(t3.y,e4,Oc,n4?n4.y:void 0,s?s.y:void 0)}__name(ai,"ai");i2(ai,"removeBoxTransforms");function li(t3){return t3.translate===0&&t3.scale===1}__name(li,"li");i2(li,"isAxisDeltaZero");function Xr(t3){return li(t3.x)&&li(t3.y)}__name(Xr,"Xr");i2(Xr,"isDeltaZero");function ci(t3,e4){return t3.min===e4.min&&t3.max===e4.max}__name(ci,"ci");i2(ci,"axisEquals");function Nc(t3,e4){return ci(t3.x,e4.x)&&ci(t3.y,e4.y)}__name(Nc,"Nc");i2(Nc,"boxEquals");function ui(t3,e4){return Math.round(t3.min)===Math.round(e4.min)&&Math.round(t3.max)===Math.round(e4.max)}__name(ui,"ui");i2(ui,"axisEqualsRounded");function Yr(t3,e4){return ui(t3.x,e4.x)&&ui(t3.y,e4.y)}__name(Yr,"Yr");i2(Yr,"boxEqualsRounded");function hi(t3){return I2(t3.x)/I2(t3.y)}__name(hi,"hi");i2(hi,"aspectRatio");function fi(t3,e4){return t3.translate===e4.translate&&t3.scale===e4.scale&&t3.originPoint===e4.originPoint}__name(fi,"fi");i2(fi,"axisDeltaEquals");var is=class is2{static{__name(this,"is")}constructor(){this.members=[]}add(e4){un2(this.members,e4);e4.scheduleRender()}remove(e4){hn2(this.members,e4);if(e4===this.prevLead){this.prevLead=void 0}if(e4===this.lead){const n4=this.members[this.members.length-1];if(n4){this.promote(n4)}}}relegate(e4){const n4=this.members.findIndex(r4=>e4===r4);if(n4===0)return false;let s;for(let r4=n4;r4>=0;r4--){const o4=this.members[r4];if(o4.isPresent!==false){s=o4;break}}if(s){this.promote(s);return true}else{return false}}promote(e4,n4){const s=this.lead;if(e4===s)return;this.prevLead=s;this.lead=e4;e4.show();if(s){s.instance&&s.scheduleRender();e4.scheduleRender();e4.resumeFrom=s;if(n4){e4.resumeFrom.preserveOpacity=true}if(s.snapshot){e4.snapshot=s.snapshot;e4.snapshot.latestValues=s.animationValues||s.latestValues}if(e4.root&&e4.root.isUpdating){e4.isLayoutDirty=true}const{crossfade:r4}=e4.options;if(r4===false){s.hide()}}}exitAnimationComplete(){this.members.forEach(e4=>{const{options:n4,resumingFrom:s}=e4;n4.onExitComplete&&n4.onExitComplete();if(s){s.options.onExitComplete&&s.options.onExitComplete()}})}scheduleRender(){this.members.forEach(e4=>{e4.instance&&e4.scheduleRender(false)})}removeLeadSnapshot(){if(this.lead&&this.lead.snapshot){this.lead.snapshot=void 0}}};i2(is,"NodeStack");var en2=is;function Uc(t3,e4,n4){let s="";const r4=t3.x.translate/e4.x;const o4=t3.y.translate/e4.y;const c2=n4?.z||0;if(r4||o4||c2){s=`translate3d(${r4}px, ${o4}px, ${c2}px) `}if(e4.x!==1||e4.y!==1){s+=`scale(${1/e4.x}, ${1/e4.y}) `}if(n4){const{transformPerspective:h2,rotate:u6,rotateX:f3,rotateY:d2,skewX:m5,skewY:p3}=n4;if(h2)s=`perspective(${h2}px) ${s}`;if(u6)s+=`rotate(${u6}deg) `;if(f3)s+=`rotateX(${f3}deg) `;if(d2)s+=`rotateY(${d2}deg) `;if(m5)s+=`skewX(${m5}deg) `;if(p3)s+=`skewY(${p3}deg) `}const a4=t3.x.scale*e4.x;const l2=t3.y.scale*e4.y;if(a4!==1||l2!==1){s+=`scale(${a4}, ${l2})`}return s||"none"}__name(Uc,"Uc");i2(Uc,"buildProjectionTransform");var pe3=["","X","Y","Z"];var Kc=1e3;var Wc=0;function ge2(t3,e4,n4,s){const{latestValues:r4}=e4;if(r4[t3]){n4[t3]=r4[t3];e4.setStaticValue(t3,0);if(s){s[t3]=0}}}__name(ge2,"ge");i2(ge2,"resetDistortingTransform");function Gr(t3){t3.hasCheckedOptimisedAppear=true;if(t3.root===t3)return;const{visualElement:e4}=t3.options;if(!e4)return;const n4=Br(e4);if(window.MotionHasOptimisedAnimation(n4,"transform")){const{layout:r4,layoutId:o4}=t3.options;window.MotionCancelOptimisedAnimation(n4,"transform",C,!(r4||o4))}const{parent:s}=t3;if(s&&!s.hasCheckedOptimisedAppear){Gr(s)}}__name(Gr,"Gr");i2(Gr,"cancelTreeOptimisedTransformAnimations");function qr({attachResizeListener:t3,defaultParent:e4,measureScroll:n4,checkIsScrollRoot:s,resetTransform:r4}){var o4;return o4=class{static{__name(this,"o")}constructor(a4={},l2=e4?.()){this.id=Wc++;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(zc);this.nodes.forEach(qc);this.nodes.forEach(_c);this.nodes.forEach(Xc)};this.resolvedRelativeTargetAt=0;this.hasProjected=false;this.isVisible=true;this.animationProgress=0;this.sharedNodes=new Map;this.latestValues=a4;this.root=l2?l2.root||l2:this;this.path=l2?[...l2.path,l2]:[];this.parent=l2;this.depth=l2?l2.depth+1:0;for(let h2=0;h2this.root.updateBlockedByResize=false,"resizeUnblockUpdate");C.read(()=>{d2=window.innerWidth});t3(a4,()=>{const p3=window.innerWidth;if(p3===d2)return;d2=p3;this.root.updateBlockedByResize=true;f3&&f3();f3=Ec(m5,250);if(Yt2.hasAnimatedSinceResize){Yt2.hasAnimatedSinceResize=false;this.nodes.forEach(pi)}})}if(l2){this.root.registerSharedNode(l2,this)}if(this.options.animate!==false&&u6&&(l2||h2)){this.addEventListener("didUpdate",({delta:f3,hasLayoutChanged:d2,hasRelativeLayoutChanged:m5,layout:p3})=>{if(this.isTreeAnimationBlocked()){this.target=void 0;this.relativeTarget=void 0;return}const v3=this.options.transition||u6.getDefaultTransition()||eu;const{onLayoutAnimationStart:T2,onLayoutAnimationComplete:g3}=u6.getProps();const x4=!this.targetLayout||!Yr(this.targetLayout,p3);const y3=!d2&&m5;if(this.options.layoutRoot||this.resumeFrom||y3||d2&&(x4||!this.currentAnimation)){if(this.resumeFrom){this.resumingFrom=this.resumeFrom;this.resumingFrom.resumingFrom=void 0}const w={...Sn2(v3,"layout"),onPlay:T2,onComplete:g3};if(u6.shouldReduceMotion||this.options.layoutRoot){w.delay=0;w.type=false}this.startAnimation(w);this.setAnimationOrigin(f3,y3)}else{if(!d2){pi(this)}if(this.isLead()&&this.options.onExitComplete){this.options.onExitComplete()}}this.targetLayout=p3})}}unmount(){this.options.layoutId&&this.willUpdate();this.root.nodes.remove(this);const a4=this.getStack();a4&&a4.remove(this);this.parent&&this.parent.children.delete(this);this.instance=void 0;this.eventHandlers.clear();Q2(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(Zc);this.animationId++}getTransformTemplate(){const{visualElement:a4}=this.options;return a4&&a4.getProps().transformTemplate}willUpdate(a4=true){this.root.hasTreeAnimated=true;if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear){Gr(this)}!this.root.isUpdating&&this.root.startUpdate();if(this.isLayoutDirty)return;this.isLayoutDirty=true;for(let f3=0;f3{if(this.isLayoutDirty){this.root.didUpdate()}else{this.root.checkUpdateFailed()}})}updateSnapshot(){if(this.snapshot||!this.instance)return;this.snapshot=this.measure();if(this.snapshot&&!I2(this.snapshot.measuredBox.x)&&!I2(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 h2=0;h2{const V=b/1e3;gi(d2.x,a4.x,V);gi(d2.y,a4.y,V);this.setTargetDelta(d2);if(this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){Vt2(m5,this.layout.layoutBox,this.relativeParent.layout.layoutBox);Jc(this.relativeTarget,this.relativeTargetOrigin,m5,V);if(w&&Nc(this.relativeTarget,w)){this.isProjectionDirty=false}if(!w)w=R2();K2(w,this.relativeTarget)}if(T2){this.animationValues=f3;kc(f3,u6,this.latestValues,V,y3,x4)}this.root.scheduleUpdateProjection();this.scheduleRender();this.animationProgress=V};this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a4){this.notifyListeners("animationStart");this.currentAnimation?.stop();this.resumingFrom?.currentAnimation?.stop();if(this.pendingAnimation){Q2(this.pendingAnimation);this.pendingAnimation=void 0}this.pendingAnimation=C.update(()=>{Yt2.hasAnimatedSinceResize=true;this.motionValue||(this.motionValue=pt2(0));this.currentAnimation=Mc(this.motionValue,[0,1e3],{...a4,velocity:0,isSync:true,onUpdate:i2(l2=>{this.mixTargetDelta(l2);a4.onUpdate&&a4.onUpdate(l2)},"onUpdate"),onStop:i2(()=>{},"onStop"),onComplete:i2(()=>{a4.onComplete&&a4.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 a4=this.getStack();a4&&a4.exitAnimationComplete();this.resumingFrom=this.currentAnimation=this.animationValues=void 0;this.notifyListeners("animationComplete")}finishAnimation(){if(this.currentAnimation){this.mixTargetDelta&&this.mixTargetDelta(Kc);this.currentAnimation.stop()}this.completeAnimation()}applyTransformsToTarget(){const a4=this.getLead();let{targetWithTransforms:l2,target:h2,layout:u6,latestValues:f3}=a4;if(!l2||!h2||!u6)return;if(this!==a4&&this.layout&&u6&&_r(this.options.animationType,this.layout.layoutBox,u6.layoutBox)){h2=this.target||R2();const d2=I2(this.layout.layoutBox.x);h2.x.min=a4.target.x.min;h2.x.max=h2.x.min+d2;const m5=I2(this.layout.layoutBox.y);h2.y.min=a4.target.y.min;h2.y.max=h2.y.min+m5}K2(l2,h2);ft2(l2,f3);At(this.projectionDeltaWithTransform,this.layoutCorrected,l2,f3)}registerSharedNode(a4,l2){if(!this.sharedNodes.has(a4)){this.sharedNodes.set(a4,new en2)}const h2=this.sharedNodes.get(a4);h2.add(l2);const u6=l2.options.initialPromotionConfig;l2.promote({transition:u6?u6.transition:void 0,preserveFollowOpacity:u6&&u6.shouldPreserveFollowOpacity?u6.shouldPreserveFollowOpacity(l2):void 0})}isLead(){const a4=this.getStack();return a4?a4.lead===this:true}getLead(){const{layoutId:a4}=this.options;return a4?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a4}=this.options;return a4?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a4}=this.options;if(a4)return this.root.sharedNodes.get(a4)}promote({needsReset:a4,transition:l2,preserveFollowOpacity:h2}={}){const u6=this.getStack();if(u6)u6.promote(this,h2);if(a4){this.projectionDelta=void 0;this.needsReset=true}if(l2)this.setOptions({transition:l2})}relegate(){const a4=this.getStack();if(a4){return a4.relegate(this)}else{return false}}resetSkewAndRotation(){const{visualElement:a4}=this.options;if(!a4)return;let l2=false;const{latestValues:h2}=a4;if(h2.z||h2.rotate||h2.rotateX||h2.rotateY||h2.rotateZ||h2.skewX||h2.skewY){l2=true}if(!l2)return;const u6={};if(h2.z){ge2("z",a4,u6,this.animationValues)}for(let f3=0;f3a4.currentAnimation?.stop());this.root.nodes.forEach(di);this.root.sharedNodes.clear()}},i2(o4,"ProjectionNode"),o4}__name(qr,"qr");i2(qr,"createProjectionNode");function $c(t3){t3.updateLayout()}__name($c,"$c");i2($c,"updateLayout");function Hc(t3){const e4=t3.resumeFrom?.snapshot||t3.snapshot;if(t3.isLead()&&t3.layout&&e4&&t3.hasListeners("didUpdate")){const{layoutBox:n4,measuredBox:s}=t3.layout;const{animationType:r4}=t3.options;const o4=e4.source!==t3.layout.source;if(r4==="size"){W3(u6=>{const f3=o4?e4.measuredBox[u6]:e4.layoutBox[u6];const d2=I2(f3);f3.min=n4[u6].min;f3.max=f3.min+d2})}else if(_r(r4,e4.layoutBox,n4)){W3(u6=>{const f3=o4?e4.measuredBox[u6]:e4.layoutBox[u6];const d2=I2(n4[u6]);f3.max=f3.min+d2;if(t3.relativeTarget&&!t3.currentAnimation){t3.isProjectionDirty=true;t3.relativeTarget[u6].max=t3.relativeTarget[u6].min+d2}})}const c2=dt4();At(c2,n4,e4.layoutBox);const a4=dt4();if(o4){At(a4,t3.applyTransform(s,true),e4.measuredBox)}else{At(a4,n4,e4.layoutBox)}const l2=!Xr(c2);let h2=false;if(!t3.resumeFrom){const u6=t3.getClosestProjectingParent();if(u6&&!u6.resumeFrom){const{snapshot:f3,layout:d2}=u6;if(f3&&d2){const m5=R2();Vt2(m5,e4.layoutBox,f3.layoutBox);const p3=R2();Vt2(p3,n4,d2.layoutBox);if(!Yr(m5,p3)){h2=true}if(u6.options.layoutRoot){t3.relativeTarget=p3;t3.relativeTargetOrigin=m5;t3.relativeParent=u6}}}}t3.notifyListeners("didUpdate",{layout:n4,snapshot:e4,delta:a4,layoutDelta:c2,hasLayoutChanged:l2,hasRelativeLayoutChanged:h2})}else if(t3.isLead()){const{onExitComplete:n4}=t3.options;n4&&n4()}t3.options.transition=void 0}__name(Hc,"Hc");i2(Hc,"notifyLayoutUpdate");function zc(t3){if(!t3.parent)return;if(!t3.isProjecting()){t3.isProjectionDirty=t3.parent.isProjectionDirty}t3.isSharedProjectionDirty||(t3.isSharedProjectionDirty=Boolean(t3.isProjectionDirty||t3.parent.isProjectionDirty||t3.parent.isSharedProjectionDirty));t3.isTransformDirty||(t3.isTransformDirty=t3.parent.isTransformDirty)}__name(zc,"zc");i2(zc,"propagateDirtyNodes");function Xc(t3){t3.isProjectionDirty=t3.isSharedProjectionDirty=t3.isTransformDirty=false}__name(Xc,"Xc");i2(Xc,"cleanDirtyNodes");function Yc(t3){t3.clearSnapshot()}__name(Yc,"Yc");i2(Yc,"clearSnapshot");function di(t3){t3.clearMeasurements()}__name(di,"di");i2(di,"clearMeasurements");function mi(t3){t3.isLayoutDirty=false}__name(mi,"mi");i2(mi,"clearIsLayoutDirty");function Gc(t3){const{visualElement:e4}=t3.options;if(e4&&e4.getProps().onBeforeLayoutMeasure){e4.notify("BeforeLayoutMeasure")}t3.resetTransform()}__name(Gc,"Gc");i2(Gc,"resetTransformStyle");function pi(t3){t3.finishAnimation();t3.targetDelta=t3.relativeTarget=t3.target=void 0;t3.isProjectionDirty=true}__name(pi,"pi");i2(pi,"finishAnimation");function qc(t3){t3.resolveTargetDelta()}__name(qc,"qc");i2(qc,"resolveTargetDelta");function _c(t3){t3.calcProjection()}__name(_c,"_c");i2(_c,"calcProjection");function Zc(t3){t3.resetSkewAndRotation()}__name(Zc,"Zc");i2(Zc,"resetSkewAndRotation");function Qc(t3){t3.removeLeadSnapshot()}__name(Qc,"Qc");i2(Qc,"removeLeadSnapshots");function gi(t3,e4,n4){t3.translate=D(e4.translate,0,n4);t3.scale=D(e4.scale,1,n4);t3.origin=e4.origin;t3.originPoint=e4.originPoint}__name(gi,"gi");i2(gi,"mixAxisDelta");function yi(t3,e4,n4,s){t3.min=D(e4.min,n4.min,s);t3.max=D(e4.max,n4.max,s)}__name(yi,"yi");i2(yi,"mixAxis");function Jc(t3,e4,n4,s){yi(t3.x,e4.x,n4.x,s);yi(t3.y,e4.y,n4.y,s)}__name(Jc,"Jc");i2(Jc,"mixBox");function tu(t3){return t3.animationValues&&t3.animationValues.opacityExit!==void 0}__name(tu,"tu");i2(tu,"hasOpacityCrossfade");var eu={duration:.45,ease:[.4,0,.1,1]};var vi=i2(t3=>typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t3),"userAgentContains");var Ti=vi("applewebkit/")&&!vi("chrome/")?Math.round:H;function xi(t3){t3.min=Ti(t3.min);t3.max=Ti(t3.max)}__name(xi,"xi");i2(xi,"roundAxis");function nu(t3){xi(t3.x);xi(t3.y)}__name(nu,"nu");i2(nu,"roundBox");function _r(t3,e4,n4){return t3==="position"||t3==="preserve-aspect"&&!mc(hi(e4),hi(n4),.2)}__name(_r,"_r");i2(_r,"shouldAnimatePositionOnly");function su2(t3){return t3!==t3.root&&t3.scroll?.wasRoot}__name(su2,"su");i2(su2,"checkNodeWasScrollRoot");var iu=qr({attachResizeListener:i2((t3,e4)=>It2(t3,"resize",e4),"attachResizeListener"),measureScroll:i2(()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),"measureScroll"),checkIsScrollRoot:i2(()=>true,"checkIsScrollRoot")});var ye3={current:void 0};var Zr=qr({measureScroll:i2(t3=>({x:t3.scrollLeft,y:t3.scrollTop}),"measureScroll"),defaultParent:i2(()=>{if(!ye3.current){const t3=new iu({});t3.mount(window);t3.setOptions({layoutScroll:true});ye3.current=t3}return ye3.current},"defaultParent"),resetTransform:i2((t3,e4)=>{t3.style.transform=e4!==void 0?e4:"none"},"resetTransform"),checkIsScrollRoot:i2(t3=>Boolean(window.getComputedStyle(t3).position==="fixed"),"checkIsScrollRoot")});var ru2={pan:{Feature:Qe4},drag:{Feature:Ze4,ProjectionNode:Zr,MeasureLayout:$r}};function Pi(t3,e4,n4){const{props:s}=t3;if(t3.animationState&&s.whileHover){t3.animationState.setActive("whileHover",n4==="Start")}const r4="onHover"+n4;const o4=s[r4];if(o4){C.postRender(()=>o4(e4,Ut(e4)))}}__name(Pi,"Pi");i2(Pi,"handleHoverEvent");var rs=class rs2 extends G2{static{__name(this,"rs")}mount(){const{current:e4}=this.node;if(!e4)return;this.unmount=$a(e4,(n4,s)=>{Pi(this.node,s,"Start");return r4=>Pi(this.node,r4,"End")})}unmount(){}};i2(rs,"HoverGesture");var nn2=rs;var os=class os2 extends G2{static{__name(this,"os")}constructor(){super(...arguments);this.isActive=false}onFocus(){let e4=false;try{e4=this.node.current.matches(":focus-visible")}catch(n4){e4=true}if(!e4||!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=jt(It2(this.node.current,"focus",()=>this.onFocus()),It2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};i2(os,"FocusGesture");var sn3=os;function bi(t3,e4,n4){const{props:s}=t3;if(t3.current instanceof HTMLButtonElement&&t3.current.disabled){return}if(t3.animationState&&s.whileTap){t3.animationState.setActive("whileTap",n4==="Start")}const r4="onTap"+(n4==="End"?"":n4);const o4=s[r4];if(o4){C.postRender(()=>o4(e4,Ut(e4)))}}__name(bi,"bi");i2(bi,"handlePressEvent");var as=class as2 extends G2{static{__name(this,"as")}mount(){const{current:e4}=this.node;if(!e4)return;this.unmount=Ya(e4,(n4,s)=>{bi(this.node,s,"Start");return(r4,{success:o4})=>bi(this.node,r4,o4?"End":"Cancel")},{useGlobalTarget:this.node.props.globalTapTarget})}unmount(){}};i2(as,"PressGesture");var rn3=as;var on3=new WeakMap;var ve2=new WeakMap;var ou2=i2(t3=>{const e4=on3.get(t3.target);e4&&e4(t3)},"fireObserverCallback");var au=i2(t3=>{t3.forEach(ou2)},"fireAllObserverCallbacks");function lu({root:t3,...e4}){const n4=t3||document;if(!ve2.has(n4)){ve2.set(n4,{})}const s=ve2.get(n4);const r4=JSON.stringify(e4);if(!s[r4]){s[r4]=new IntersectionObserver(au,{root:t3,...e4})}return s[r4]}__name(lu,"lu");i2(lu,"initIntersectionObserver");function cu2(t3,e4,n4){const s=lu(e4);on3.set(t3,n4);s.observe(t3);return()=>{on3.delete(t3);s.unobserve(t3)}}__name(cu2,"cu");i2(cu2,"observeIntersection");var uu={some:0,all:1};var ls=class ls2 extends G2{static{__name(this,"ls")}constructor(){super(...arguments);this.hasEnteredView=false;this.isInView=false}startObserver(){this.unmount();const{viewport:e4={}}=this.node.getProps();const{root:n4,margin:s,amount:r4="some",once:o4}=e4;const c2={root:n4?n4.current:void 0,rootMargin:s,threshold:typeof r4==="number"?r4:uu[r4]};const a4=i2(l2=>{const{isIntersecting:h2}=l2;if(this.isInView===h2)return;this.isInView=h2;if(o4&&!h2&&this.hasEnteredView){return}else if(h2){this.hasEnteredView=true}if(this.node.animationState){this.node.animationState.setActive("whileInView",h2)}const{onViewportEnter:u6,onViewportLeave:f3}=this.node.getProps();const d2=h2?u6:f3;d2&&d2(l2)},"onIntersectionUpdate");return cu2(this.node.current,c2,a4)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver==="undefined")return;const{props:e4,prevProps:n4}=this.node;const s=["amount","margin","root"].some(hu(e4,n4));if(s){this.startObserver()}}unmount(){}};i2(ls,"InViewFeature");var an2=ls;function hu({viewport:t3={}},{viewport:e4={}}={}){return n4=>t3[n4]!==e4[n4]}__name(hu,"hu");i2(hu,"hasViewportOptionChanged");var fu2={inView:{Feature:an2},tap:{Feature:rn3},focus:{Feature:sn3},hover:{Feature:nn2}};var du2={layout:{ProjectionNode:Zr,MeasureLayout:$r}};var mu={...lc,...fu2,...ru2,...du2};var yu=Ml(mu,Nl);var t=Object.defineProperty;var o=__name((e4,r4)=>t(e4,"name",{value:r4,configurable:true}),"o");function p(){!Er.current&&Bl();const[e4]=z.useState(Ue4.current);return e4}__name(p,"p");o(p,"useReducedMotion");var o2=[["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"}]];var a=qv("mail",o2);var o3=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]];var r=qv("clock",o3);var i3=Object.defineProperty;var a2=__name((r4,t3)=>i3(r4,"name",{value:t3,configurable:true}),"a");function n(r4){if(r4==null||r4===false)return false;if(Array.isArray(r4)){for(const t3 of r4){if(n(t3))return true}return false}if(typeof r4==="string"||typeof r4==="number")return false;if(z.isValidElement(r4)){if(typeof r4.type==="string"&&r4.type.toLowerCase()==="img"){return true}return n(r4.props?.children)}return false}__name(n,"n");a2(n,"hasImg");function u4({className:r4,...t3}){const o4=n(t3.children);return Ht.jsx("div",{"data-slot":"card",className:nv("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",o4&&"pt-0",r4),...t3})}__name(u4,"u");a2(u4,"Card");function f({className:r4,...t3}){return Ht.jsx("div",{"data-slot":"card-header",className:nv("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",r4),...t3})}__name(f,"f");a2(f,"CardHeader");function m({className:r4,...t3}){return Ht.jsx("div",{"data-slot":"card-title",className:nv("leading-none font-semibold",r4),...t3})}__name(m,"m");a2(m,"CardTitle");function p2({className:r4,...t3}){return Ht.jsx("div",{"data-slot":"card-description",className:nv("text-muted-foreground text-sm",r4),...t3})}__name(p2,"p");a2(p2,"CardDescription");function x({className:r4,...t3}){return Ht.jsx("div",{"data-slot":"card-content",className:nv("px-6",r4),...t3})}__name(x,"x");a2(x,"CardContent");function g({className:r4,...t3}){return Ht.jsx("div",{"data-slot":"card-footer",className:nv("flex items-center px-6 [.border-t]:pt-6",r4),...t3})}__name(g,"g");a2(g,"CardFooter");var v=Object.defineProperty;var n2=__name((a4,r4)=>v(a4,"name",{value:r4,configurable:true}),"n");var m2="Separator";var e="horizontal";var x2=["horizontal","vertical"];var l=z.forwardRef((a4,r4)=>{const{decorative:o4,orientation:t3=e,...c2}=a4;const i5=N(t3)?t3:e;const d2=i5==="vertical"?i5:void 0;const p3=o4?{role:"none"}:{"aria-orientation":d2,role:"separator"};return Ht.jsx(sn.div,{"data-orientation":i5,...p3,...c2,ref:r4})});l.displayName=m2;function N(a4){return x2.includes(a4)}__name(N,"N");n2(N,"isValidOrientation");var E4=l;function R3({className:a4,orientation:r4="horizontal",decorative:o4=true,...t3}){return Ht.jsx(E4,{"data-slot":"separator",decorative:o4,orientation:r4,className:nv("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",a4),...t3})}__name(R3,"R");n2(R3,"Separator");var i4=Object.defineProperty;var r2=__name((e4,a4)=>i4(e4,"name",{value:a4,configurable:true}),"r");var u5=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]];var h=qv("loader",u5);var m3="Label";var d=z.forwardRef((e4,a4)=>{return Ht.jsx(sn.label,{...e4,ref:a4,onMouseDown:r2(t3=>{const s=t3.target;if(s.closest("button, input, select, textarea"))return;e4.onMouseDown?.(t3);if(!t3.defaultPrevented&&t3.detail>1)t3.preventDefault()},"onMouseDown")})});d.displayName=m3;var y2=d;function x3({className:e4,...a4}){return Ht.jsx(y2,{"data-slot":"label",className:nv("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e4),...a4})}__name(x3,"x");r2(x3,"Label");var Ut2=Object.defineProperty;var n3=__name((e4,r4)=>Ut2(e4,"name",{value:r4,configurable:true}),"n");var Fe2=n3(e4=>e4.type==="checkbox","isCheckBoxInput");var fe3=n3(e4=>e4 instanceof Date,"isDateObject");var z4=n3(e4=>e4==null,"isNullOrUndefined");var ct4=n3(e4=>typeof e4==="object","isObjectType");var I3=n3(e4=>!z4(e4)&&!Array.isArray(e4)&&ct4(e4)&&!fe3(e4),"isObject");var ft3=n3(e4=>I3(e4)&&e4.target?Fe2(e4.target)?e4.target.checked:e4.target.value:e4,"getEventValue");var Bt2=n3(e4=>e4.substring(0,e4.search(/.d+(.|$)/))||e4,"getNodeParentName");var yt3=n3((e4,r4)=>e4.has(Bt2(r4)),"isNameInFieldArray");var pt3=n3(e4=>{const r4=e4.constructor&&e4.constructor.prototype;return I3(r4)&&r4.hasOwnProperty("isPrototypeOf")},"isPlainObject");var Pe2=typeof window!=="undefined"&&typeof window.HTMLElement!=="undefined"&&typeof document!=="undefined";function B3(e4){let r4;const t3=Array.isArray(e4);const i5=typeof FileList!=="undefined"?e4 instanceof FileList:false;if(e4 instanceof Date){r4=new Date(e4)}else if(!(Pe2&&(e4 instanceof Blob||i5))&&(t3||I3(e4))){r4=t3?[]:{};if(!t3&&!pt3(e4)){r4=e4}else{for(const l2 in e4){if(e4.hasOwnProperty(l2)){r4[l2]=B3(e4[l2])}}}}else{return e4}return r4}__name(B3,"B");n3(B3,"cloneObject");var Ee2=n3(e4=>/^w*$/.test(e4),"isKey");var O3=n3(e4=>e4===void 0,"isUndefined");var Ne4=n3(e4=>Array.isArray(e4)?e4.filter(Boolean):[],"compact");var Be4=n3(e4=>Ne4(e4.replace(/["|']|]/g,"").split(/.|[/)),"stringToPath");var m4=n3((e4,r4,t3)=>{if(!r4||!I3(e4)){return t3}const i5=(Ee2(r4)?[r4]:Be4(r4)).reduce((l2,o4)=>z4(l2)?l2:l2[o4],e4);return O3(i5)||i5===e4?O3(e4[r4])?t3:e4[r4]:i5},"get");var K3=n3(e4=>typeof e4==="boolean","isBoolean");var E5=n3((e4,r4,t3)=>{let i5=-1;const l2=Ee2(r4)?[r4]:Be4(r4);const o4=l2.length;const f3=o4-1;while(++i5sl.useContext(pe4),"useFormContext");var Wt3=n3(e4=>{const{children:r4,...t3}=e4;return sl.createElement(pe4.Provider,{value:t3},r4)},"FormProvider$1");var mt3=n3((e4,r4,t3,i5=true)=>{const l2={defaultValues:r4._defaultValues};for(const o4 in e4){Object.defineProperty(l2,o4,{get:n3(()=>{const f3=o4;if(r4._proxyFormState[f3]!==se4.all){r4._proxyFormState[f3]=!i5||se4.all}t3&&(t3[f3]=true);return e4[f3]},"get")})}return l2},"getProxyFormState");var We4=typeof window!=="undefined"?sl.useLayoutEffect:sl.useEffect;function ht2(e4){const r4=Ce3();const{control:t3=r4.control,disabled:i5,name:l2,exact:o4}=e4||{};const[f3,c2]=sl.useState(t3._formState);const k4=sl.useRef({isDirty:false,isLoading:false,dirtyFields:false,touchedFields:false,validatingFields:false,isValidating:false,isValid:false,errors:false});We4(()=>t3._subscribe({name:l2,formState:k4.current,exact:o4,callback:n3(C2=>{!i5&&c2({...t3._formState,...C2})},"callback")}),[l2,i5,o4]);sl.useEffect(()=>{k4.current.isValid&&t3._setValid(true)},[t3]);return sl.useMemo(()=>mt3(f3,t3,k4.current,false),[f3,t3])}__name(ht2,"ht");n3(ht2,"useFormState");var le4=n3(e4=>typeof e4==="string","isString");var gt3=n3((e4,r4,t3,i5,l2)=>{if(le4(e4)){i5&&r4.watch.add(e4);return m4(t3,e4,l2)}if(Array.isArray(e4)){return e4.map(o4=>(i5&&r4.watch.add(o4),m4(t3,o4)))}i5&&(r4.watchAll=true);return t3},"generateWatchOutput");var Ue5=n3(e4=>z4(e4)||!ct4(e4),"isPrimitive");function de4(e4,r4,t3=new WeakSet){if(Ue5(e4)||Ue5(r4)){return e4===r4}if(fe3(e4)&&fe3(r4)){return e4.getTime()===r4.getTime()}const i5=Object.keys(e4);const l2=Object.keys(r4);if(i5.length!==l2.length){return false}if(t3.has(e4)||t3.has(r4)){return true}t3.add(e4);t3.add(r4);for(const o4 of i5){const f3=e4[o4];if(!l2.includes(o4)){return false}if(o4!=="ref"){const c2=r4[o4];if(fe3(f3)&&fe3(c2)||I3(f3)&&I3(c2)||Array.isArray(f3)&&Array.isArray(c2)?!de4(f3,c2,t3):f3!==c2){return false}}}return true}__name(de4,"de");n3(de4,"deepEqual");function jt2(e4){const r4=Ce3();const{control:t3=r4.control,name:i5,defaultValue:l2,disabled:o4,exact:f3,compute:c2}=e4||{};const k4=sl.useRef(l2);const C2=sl.useRef(c2);const _3=sl.useRef(void 0);C2.current=c2;const w=sl.useMemo(()=>t3._getWatch(i5,k4.current),[t3,i5]);const[b,G3]=sl.useState(C2.current?C2.current(w):w);We4(()=>t3._subscribe({name:i5,formState:{values:true},exact:f3,callback:n3(H2=>{if(!o4){const S3=gt3(i5,t3._names,H2.values||t3._formValues,false,k4.current);if(C2.current){const p3=C2.current(S3);if(!de4(p3,_3.current)){G3(p3);_3.current=p3}}else{G3(S3)}}},"callback")}),[t3,o4,i5,f3]);sl.useEffect(()=>t3._removeUnmounted());return b}__name(jt2,"jt");n3(jt2,"useWatch");function qt3(e4){const r4=Ce3();const{name:t3,disabled:i5,control:l2=r4.control,shouldUnregister:o4,defaultValue:f3}=e4;const c2=yt3(l2._names.array,t3);const k4=sl.useMemo(()=>m4(l2._formValues,t3,m4(l2._defaultValues,t3,f3)),[l2,t3,f3]);const C2=jt2({control:l2,name:t3,defaultValue:k4,exact:true});const _3=ht2({control:l2,name:t3,exact:true});const w=sl.useRef(e4);const b=sl.useRef(l2.register(t3,{...e4.rules,value:C2,...K3(e4.disabled)?{disabled:e4.disabled}:{}}));w.current=e4;const G3=sl.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:true,get:n3(()=>!!m4(_3.errors,t3),"get")},isDirty:{enumerable:true,get:n3(()=>!!m4(_3.dirtyFields,t3),"get")},isTouched:{enumerable:true,get:n3(()=>!!m4(_3.touchedFields,t3),"get")},isValidating:{enumerable:true,get:n3(()=>!!m4(_3.validatingFields,t3),"get")},error:{enumerable:true,get:n3(()=>m4(_3.errors,t3),"get")}}),[_3,t3]);const H2=sl.useCallback(v3=>b.current.onChange({target:{value:ft3(v3),name:t3},type:we3.CHANGE}),[t3]);const S3=sl.useCallback(()=>b.current.onBlur({target:{value:m4(l2._formValues,t3),name:t3},type:we3.BLUR}),[t3,l2._formValues]);const p3=sl.useCallback(v3=>{const R5=m4(l2._fields,t3);if(R5&&v3){R5._f.ref={focus:n3(()=>v3.focus&&v3.focus(),"focus"),select:n3(()=>v3.select&&v3.select(),"select"),setCustomValidity:n3(N2=>v3.setCustomValidity(N2),"setCustomValidity"),reportValidity:n3(()=>v3.reportValidity(),"reportValidity")}}},[l2._fields,t3]);const te4=sl.useMemo(()=>({name:t3,value:C2,...K3(i5)||_3.disabled?{disabled:_3.disabled||i5}:{},onChange:H2,onBlur:S3,ref:p3}),[t3,i5,_3.disabled,H2,S3,p3,C2]);sl.useEffect(()=>{const v3=l2._options.shouldUnregister||o4;l2.register(t3,{...w.current.rules,...K3(w.current.disabled)?{disabled:w.current.disabled}:{}});const R5=n3((N2,L)=>{const ae6=m4(l2._fields,N2);if(ae6&&ae6._f){ae6._f.mount=L}},"updateMounted");R5(t3,true);if(v3){const N2=B3(m4(l2._options.defaultValues,t3));E5(l2._defaultValues,t3,N2);if(O3(m4(l2._formValues,t3))){E5(l2._formValues,t3,N2)}}!c2&&l2.register(t3);return()=>{(c2?v3&&!l2._state.action:v3)?l2.unregister(t3):R5(t3,false)}},[t3,l2,c2,o4]);sl.useEffect(()=>{l2._setDisabledField({disabled:i5,name:t3})},[i5,t3,l2]);return sl.useMemo(()=>({field:te4,formState:_3,fieldState:G3}),[te4,_3,G3])}__name(qt3,"qt");n3(qt3,"useController");var Ht3=n3(e4=>e4.render(qt3(e4)),"Controller");var $t2=n3((e4,r4,t3,i5,l2)=>r4?{...t3[e4],types:{...t3[e4]&&t3[e4].types?t3[e4].types:{},[i5]:l2||true}}:{},"appendErrors");var be3=n3(e4=>Array.isArray(e4)?e4:[e4],"convertToArrayPayload");var et3=n3(()=>{let e4=[];const r4=n3(l2=>{for(const o4 of e4){o4.next&&o4.next(l2)}},"next");const t3=n3(l2=>{e4.push(l2);return{unsubscribe:n3(()=>{e4=e4.filter(o4=>o4!==l2)},"unsubscribe")}},"subscribe");const i5=n3(()=>{e4=[]},"unsubscribe");return{get observers(){return e4},next:r4,subscribe:t3,unsubscribe:i5}},"createSubject");var Y3=n3(e4=>I3(e4)&&!Object.keys(e4).length,"isEmptyObject");var je4=n3(e4=>e4.type==="file","isFileInput");var ie4=n3(e4=>typeof e4==="function","isFunction");var Ae3=n3(e4=>{if(!Pe2){return false}const r4=e4?e4.ownerDocument:0;return e4 instanceof(r4&&r4.defaultView?r4.defaultView.HTMLElement:HTMLElement)},"isHTMLElement");var vt2=n3(e4=>e4.type===`select-multiple`,"isMultipleSelect");var qe4=n3(e4=>e4.type==="radio","isRadioInput");var zt3=n3(e4=>qe4(e4)||Fe2(e4),"isRadioOrCheckbox");var Ie3=n3(e4=>Ae3(e4)&&e4.isConnected,"live");function Gt2(e4,r4){const t3=r4.slice(0,-1).length;let i5=0;while(i5{for(const r4 in e4){if(ie4(e4[r4])){return true}}return false},"objectHasFunction");function Se2(e4,r4={}){const t3=Array.isArray(e4);if(I3(e4)||t3){for(const i5 in e4){if(Array.isArray(e4[i5])||I3(e4[i5])&&!bt4(e4[i5])){r4[i5]=Array.isArray(e4[i5])?[]:{};Se2(e4[i5],r4[i5])}else if(!z4(e4[i5])){r4[i5]=true}}}return r4}__name(Se2,"Se");n3(Se2,"markFieldsDirty");function _t3(e4,r4,t3){const i5=Array.isArray(e4);if(I3(e4)||i5){for(const l2 in e4){if(Array.isArray(e4[l2])||I3(e4[l2])&&!bt4(e4[l2])){if(O3(r4)||Ue5(t3[l2])){t3[l2]=Array.isArray(e4[l2])?Se2(e4[l2],[]):{...Se2(e4[l2])}}else{_t3(e4[l2],z4(r4)?{}:r4[l2],t3[l2])}}else{t3[l2]=!de4(e4[l2],r4[l2])}}}return t3}__name(_t3,"_t");n3(_t3,"getDirtyFieldsFromDefaultValues");var ge3=n3((e4,r4)=>_t3(e4,r4,Se2(r4)),"getDirtyFields");var tt4={value:false,isValid:false};var rt4={value:true,isValid:true};var Ft2=n3(e4=>{if(Array.isArray(e4)){if(e4.length>1){const r4=e4.filter(t3=>t3&&t3.checked&&!t3.disabled).map(t3=>t3.value);return{value:r4,isValid:!!r4.length}}return e4[0].checked&&!e4[0].disabled?e4[0].attributes&&!O3(e4[0].attributes.value)?O3(e4[0].value)||e4[0].value===""?rt4:{value:e4[0].value,isValid:true}:rt4:tt4}return tt4},"getCheckboxValue");var Vt3=n3((e4,{valueAsNumber:r4,valueAsDate:t3,setValueAs:i5})=>O3(e4)?e4:r4?e4===""?NaN:e4?+e4:e4:t3&&le4(e4)?new Date(e4):i5?i5(e4):e4,"getFieldValueAs");var st4={isValid:false,value:null};var xt3=n3(e4=>Array.isArray(e4)?e4.reduce((r4,t3)=>t3&&t3.checked&&!t3.disabled?{isValid:true,value:t3.value}:r4,st4):st4,"getRadioValue");function it4(e4){const r4=e4.ref;if(je4(r4)){return r4.files}if(qe4(r4)){return xt3(e4.refs).value}if(vt2(r4)){return[...r4.selectedOptions].map(({value:t3})=>t3)}if(Fe2(r4)){return Ft2(e4.refs).value}return Vt3(O3(r4.value)?e4.ref.value:r4.value,e4)}__name(it4,"it");n3(it4,"getFieldValue");var Jt3=n3((e4,r4,t3,i5)=>{const l2={};for(const o4 of e4){const f3=m4(r4,o4);f3&&E5(l2,o4,f3._f)}return{criteriaMode:t3,names:[...e4],fields:l2,shouldUseNativeValidation:i5}},"getResolverOptions");var ke5=n3(e4=>e4 instanceof RegExp,"isRegex");var ve3=n3(e4=>O3(e4)?e4:ke5(e4)?e4.source:I3(e4)?ke5(e4.value)?e4.value.source:e4.value:e4,"getRuleValue");var at4=n3(e4=>({isOnSubmit:!e4||e4===se4.onSubmit,isOnBlur:e4===se4.onBlur,isOnChange:e4===se4.onChange,isOnAll:e4===se4.all,isOnTouch:e4===se4.onTouched}),"getValidationModes");var nt4="AsyncFunction";var Kt2=n3(e4=>!!e4&&!!e4.validate&&!!(ie4(e4.validate)&&e4.validate.constructor.name===nt4||I3(e4.validate)&&Object.values(e4.validate).find(r4=>r4.constructor.name===nt4)),"hasPromiseValidation");var Qt3=n3(e4=>e4.mount&&(e4.required||e4.min||e4.max||e4.maxLength||e4.minLength||e4.pattern||e4.validate),"hasValidation");var lt3=n3((e4,r4,t3)=>!t3&&(r4.watchAll||r4.watch.has(e4)||[...r4.watch].some(i5=>e4.startsWith(i5)&&/^.w+/.test(e4.slice(i5.length)))),"isWatched");var _e3=n3((e4,r4,t3,i5)=>{for(const l2 of t3||Object.keys(e4)){const o4=m4(e4,l2);if(o4){const{_f:f3,...c2}=o4;if(f3){if(f3.refs&&f3.refs[0]&&r4(f3.refs[0],l2)&&!i5){return true}else if(f3.ref&&r4(f3.ref,f3.name)&&!i5){return true}else{if(_e3(c2,r4)){break}}}else if(I3(c2)){if(_e3(c2,r4)){break}}}}return},"iterateFieldsByAction");function ot5(e4,r4,t3){const i5=m4(e4,t3);if(i5||Ee2(t3)){return{error:i5,name:t3}}const l2=t3.split(".");while(l2.length){const o4=l2.join(".");const f3=m4(r4,o4);const c2=m4(e4,o4);if(f3&&!Array.isArray(f3)&&t3!==o4){return{name:t3}}if(c2&&c2.type){return{name:o4,error:c2}}if(c2&&c2.root&&c2.root.type){return{name:`${o4}.root`,error:c2.root}}l2.pop()}return{name:t3}}__name(ot5,"ot");n3(ot5,"schemaErrorLookup");var Xt3=n3((e4,r4,t3,i5)=>{t3(e4);const{name:l2,...o4}=e4;return Y3(o4)||Object.keys(o4).length>=Object.keys(r4).length||Object.keys(o4).find(f3=>r4[f3]===(!i5||se4.all))},"shouldRenderFormState");var Zt4=n3((e4,r4,t3)=>!e4||!r4||e4===r4||be3(e4).some(i5=>i5&&(t3?i5===r4:i5.startsWith(r4)||r4.startsWith(i5))),"shouldSubscribeByName");var er2=n3((e4,r4,t3,i5,l2)=>{if(l2.isOnAll){return false}else if(!t3&&l2.isOnTouch){return!(r4||e4)}else if(t3?i5.isOnBlur:l2.isOnBlur){return!e4}else if(t3?i5.isOnChange:l2.isOnChange){return e4}return true},"skipValidation");var tr2=n3((e4,r4)=>!Ne4(m4(e4,r4)).length&&P2(e4,r4),"unsetEmptyArray");var rr2=n3((e4,r4,t3)=>{const i5=be3(m4(e4,t3));E5(i5,"root",r4[t3]);E5(e4,t3,i5);return e4},"updateFieldArrayRootError");var xe2=n3(e4=>le4(e4),"isMessage");function ut4(e4,r4,t3="validate"){if(xe2(e4)||Array.isArray(e4)&&e4.every(xe2)||K3(e4)&&!e4){return{type:t3,message:xe2(e4)?e4:"",ref:r4}}}__name(ut4,"ut");n3(ut4,"getValidateError");var ye4=n3(e4=>I3(e4)&&!ke5(e4)?e4:{value:e4,message:""},"getValueAndMessage");var dt5=n3(async(e4,r4,t3,i5,l2,o4)=>{const{ref:f3,refs:c2,required:k4,maxLength:C2,minLength:_3,min:w,max:b,pattern:G3,validate:H2,name:S3,valueAsNumber:p3,mount:te4}=e4._f;const v3=m4(t3,S3);if(!te4||r4.has(S3)){return{}}const R5=c2?c2[0]:f3;const N2=n3(V=>{if(l2&&R5.reportValidity){R5.setCustomValidity(K3(V)?"":V||"");R5.reportValidity()}},"setCustomValidity");const L={};const ae6=qe4(f3);const re5=Fe2(f3);const me4=ae6||re5;const U3=(p3||je4(f3))&&O3(f3.value)&&O3(v3)||Ae3(f3)&&f3.value===""||v3===""||Array.isArray(v3)&&!v3.length;const oe4=$t2.bind(null,S3,i5,L);const J2=n3((V,x4,M4,W4=ue4.maxLength,j2=ue4.minLength)=>{const Q4=V?x4:M4;L[S3]={type:V?W4:j2,message:Q4,ref:f3,...oe4(V?W4:j2,Q4)}},"getMinMaxMessage");if(o4?!Array.isArray(v3)||!v3.length:k4&&(!me4&&(U3||z4(v3))||K3(v3)&&!v3||re5&&!Ft2(c2).isValid||ae6&&!xt3(c2).isValid)){const{value:V,message:x4}=xe2(k4)?{value:!!k4,message:k4}:ye4(k4);if(V){L[S3]={type:ue4.required,message:x4,ref:R5,...oe4(ue4.required,x4)};if(!i5){N2(x4);return L}}}if(!U3&&(!z4(w)||!z4(b))){let V;let x4;const M4=ye4(b);const W4=ye4(w);if(!z4(v3)&&!isNaN(v3)){const j2=f3.valueAsNumber||(v3?+v3:v3);if(!z4(M4.value)){V=j2>M4.value}if(!z4(W4.value)){x4=j2new Date(new Date().toDateString()+" "+ne5),"convertTimeToDate");const $3=f3.type=="time";const T2=f3.type=="week";if(le4(M4.value)&&v3){V=$3?Q4(v3)>Q4(M4.value):T2?v3>M4.value:j2>new Date(M4.value)}if(le4(W4.value)&&v3){x4=$3?Q4(v3)+V.value;const W4=!z4(x4.value)&&v3.length<+x4.value;if(M4||W4){J2(M4,V.message,x4.message);if(!i5){N2(L[S3].message);return L}}}if(G3&&!U3&&le4(v3)){const{value:V,message:x4}=ye4(G3);if(ke5(V)&&!v3.match(V)){L[S3]={type:ue4.pattern,message:x4,ref:f3,...oe4(ue4.pattern,x4)};if(!i5){N2(x4);return L}}}if(H2){if(ie4(H2)){const V=await H2(v3,t3);const x4=ut4(V,R5);if(x4){L[S3]={...x4,...oe4(ue4.validate,x4.message)};if(!i5){N2(x4.message);return L}}}else if(I3(H2)){let V={};for(const x4 in H2){if(!Y3(V)&&!i5){break}const M4=ut4(await H2[x4](v3,t3),R5,x4);if(M4){V={...M4,...oe4(x4,M4.message)};N2(M4.message);if(i5){L[S3]=V}}}if(!Y3(V)){L[S3]={ref:R5,...V};if(!i5){return L}}}}N2(true);return L},"validateField");var sr2={mode:se4.onSubmit,reValidateMode:se4.onChange,shouldFocusError:true};function ir2(e4={}){let r4={...sr2,...e4};let t3={submitCount:0,isDirty:false,isReady:false,isLoading:ie4(r4.defaultValues),isValidating:false,isSubmitted:false,isSubmitting:false,isSubmitSuccessful:false,isValid:false,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r4.errors||{},disabled:r4.disabled||false};let i5={};let l2=I3(r4.defaultValues)||I3(r4.values)?B3(r4.defaultValues||r4.values)||{}:{};let o4=r4.shouldUnregister?{}:B3(l2);let f3={action:false,mount:false,watch:false};let c2={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set};let k4;let C2=0;const _3={isDirty:false,dirtyFields:false,validatingFields:false,touchedFields:false,isValidating:false,isValid:false,errors:false};let w={..._3};const b={array:et3(),state:et3()};const G3=r4.criteriaMode===se4.all;const H2=n3(s=>a4=>{clearTimeout(C2);C2=setTimeout(s,a4)},"debounce");const S3=n3(async s=>{if(!r4.disabled&&(_3.isValid||w.isValid||s)){const a4=r4.resolver?Y3((await re5()).errors):await U3(i5,true);if(a4!==t3.isValid){b.state.next({isValid:a4})}}},"_setValid");const p3=n3((s,a4)=>{if(!r4.disabled&&(_3.isValidating||_3.validatingFields||w.isValidating||w.validatingFields)){(s||Array.from(c2.mount)).forEach(u6=>{if(u6){a4?E5(t3.validatingFields,u6,a4):P2(t3.validatingFields,u6)}});b.state.next({validatingFields:t3.validatingFields,isValidating:!Y3(t3.validatingFields)})}},"_updateIsValidating");const te4=n3((s,a4=[],u6,h2,y3=true,d2=true)=>{if(h2&&u6&&!r4.disabled){f3.action=true;if(d2&&Array.isArray(m4(i5,s))){const g3=u6(m4(i5,s),h2.argA,h2.argB);y3&&E5(i5,s,g3)}if(d2&&Array.isArray(m4(t3.errors,s))){const g3=u6(m4(t3.errors,s),h2.argA,h2.argB);y3&&E5(t3.errors,s,g3);tr2(t3.errors,s)}if((_3.touchedFields||w.touchedFields)&&d2&&Array.isArray(m4(t3.touchedFields,s))){const g3=u6(m4(t3.touchedFields,s),h2.argA,h2.argB);y3&&E5(t3.touchedFields,s,g3)}if(_3.dirtyFields||w.dirtyFields){t3.dirtyFields=ge3(l2,o4)}b.state.next({name:s,isDirty:J2(s,a4),dirtyFields:t3.dirtyFields,errors:t3.errors,isValid:t3.isValid})}else{E5(o4,s,a4)}},"_setFieldArray");const v3=n3((s,a4)=>{E5(t3.errors,s,a4);b.state.next({errors:t3.errors})},"updateErrors");const R5=n3(s=>{t3.errors=s;b.state.next({errors:t3.errors,isValid:false})},"_setErrors");const N2=n3((s,a4,u6,h2)=>{const y3=m4(i5,s);if(y3){const d2=m4(o4,s,O3(u6)?m4(l2,s):u6);O3(d2)||h2&&h2.defaultChecked||a4?E5(o4,s,a4?d2:it4(y3._f)):M4(s,d2);f3.mount&&S3()}},"updateValidAndValue");const L=n3((s,a4,u6,h2,y3)=>{let d2=false;let g3=false;const A={name:s};if(!r4.disabled){if(!u6||h2){if(_3.isDirty||w.isDirty){g3=t3.isDirty;t3.isDirty=A.isDirty=J2();d2=g3!==A.isDirty}const D2=de4(m4(l2,s),a4);g3=!!m4(t3.dirtyFields,s);D2?P2(t3.dirtyFields,s):E5(t3.dirtyFields,s,true);A.dirtyFields=t3.dirtyFields;d2=d2||(_3.dirtyFields||w.dirtyFields)&&g3!==!D2}if(u6){const D2=m4(t3.touchedFields,s);if(!D2){E5(t3.touchedFields,s,u6);A.touchedFields=t3.touchedFields;d2=d2||(_3.touchedFields||w.touchedFields)&&D2!==u6}}d2&&y3&&b.state.next(A)}return d2?A:{}},"updateTouchAndDirty");const ae6=n3((s,a4,u6,h2)=>{const y3=m4(t3.errors,s);const d2=(_3.isValid||w.isValid)&&K3(a4)&&t3.isValid!==a4;if(r4.delayError&&u6){k4=H2(()=>v3(s,u6));k4(r4.delayError)}else{clearTimeout(C2);k4=null;u6?E5(t3.errors,s,u6):P2(t3.errors,s)}if((u6?!de4(y3,u6):y3)||!Y3(h2)||d2){const g3={...h2,...d2&&K3(a4)?{isValid:a4}:{},errors:t3.errors,name:s};t3={...t3,...g3};b.state.next(g3)}},"shouldRenderByError");const re5=n3(async s=>{p3(s,true);const a4=await r4.resolver(o4,r4.context,Jt3(s||c2.mount,i5,r4.criteriaMode,r4.shouldUseNativeValidation));p3(s);return a4},"_runSchema");const me4=n3(async s=>{const{errors:a4}=await re5(s);if(s){for(const u6 of s){const h2=m4(a4,u6);h2?E5(t3.errors,u6,h2):P2(t3.errors,u6)}}else{t3.errors=a4}return a4},"executeSchemaAndUpdateState");const U3=n3(async(s,a4,u6={valid:true})=>{for(const h2 in s){const y3=s[h2];if(y3){const{_f:d2,...g3}=y3;if(d2){const A=c2.array.has(d2.name);const D2=y3._f&&Kt2(y3._f);if(D2&&_3.validatingFields){p3([h2],true)}const Z4=await dt5(y3,c2.disabled,o4,G3,r4.shouldUseNativeValidation&&!a4,A);if(D2&&_3.validatingFields){p3([h2])}if(Z4[d2.name]){u6.valid=false;if(a4){break}}!a4&&(m4(Z4,d2.name)?A?rr2(t3.errors,Z4,d2.name):E5(t3.errors,d2.name,Z4[d2.name]):P2(t3.errors,d2.name))}!Y3(g3)&&await U3(g3,a4,u6)}}return u6.valid},"executeBuiltInValidation");const oe4=n3(()=>{for(const s of c2.unMount){const a4=m4(i5,s);a4&&(a4._f.refs?a4._f.refs.every(u6=>!Ie3(u6)):!Ie3(a4._f.ref))&&Re2(s)}c2.unMount=new Set},"_removeUnmounted");const J2=n3((s,a4)=>!r4.disabled&&(s&&a4&&E5(o4,s,a4),!de4(ne5(),l2)),"_getDirty");const V=n3((s,a4,u6)=>gt3(s,c2,{...f3.mount?o4:O3(a4)?l2:le4(s)?{[s]:a4}:a4},u6,a4),"_getWatch");const x4=n3(s=>Ne4(m4(f3.mount?o4:l2,s,r4.shouldUnregister?m4(l2,s,[]):[])),"_getFieldArray");const M4=n3((s,a4,u6={})=>{const h2=m4(i5,s);let y3=a4;if(h2){const d2=h2._f;if(d2){!d2.disabled&&E5(o4,s,Vt3(a4,d2));y3=Ae3(d2.ref)&&z4(a4)?"":a4;if(vt2(d2.ref)){[...d2.ref.options].forEach(g3=>g3.selected=y3.includes(g3.value))}else if(d2.refs){if(Fe2(d2.ref)){d2.refs.forEach(g3=>{if(!g3.defaultChecked||!g3.disabled){if(Array.isArray(y3)){g3.checked=!!y3.find(A=>A===g3.value)}else{g3.checked=y3===g3.value||!!y3}}})}else{d2.refs.forEach(g3=>g3.checked=g3.value===y3)}}else if(je4(d2.ref)){d2.ref.value=""}else{d2.ref.value=y3;if(!d2.ref.type){b.state.next({name:s,values:B3(o4)})}}}}(u6.shouldDirty||u6.shouldTouch)&&L(s,y3,u6.shouldTouch,u6.shouldDirty,true);u6.shouldValidate&&T2(s)},"setFieldValue");const W4=n3((s,a4,u6)=>{for(const h2 in a4){if(!a4.hasOwnProperty(h2)){return}const y3=a4[h2];const d2=s+"."+h2;const g3=m4(i5,d2);(c2.array.has(s)||I3(y3)||g3&&!g3._f)&&!fe3(y3)?W4(d2,y3,u6):M4(d2,y3,u6)}},"setValues");const j2=n3((s,a4,u6={})=>{const h2=m4(i5,s);const y3=c2.array.has(s);const d2=B3(a4);E5(o4,s,d2);if(y3){b.array.next({name:s,values:B3(o4)});if((_3.isDirty||_3.dirtyFields||w.isDirty||w.dirtyFields)&&u6.shouldDirty){b.state.next({name:s,dirtyFields:ge3(l2,o4),isDirty:J2(s,d2)})}}else{h2&&!h2._f&&!z4(d2)?W4(s,d2,u6):M4(s,d2,u6)}lt3(s,c2)&&b.state.next({...t3,name:s});b.state.next({name:f3.mount?s:void 0,values:B3(o4)})},"setValue");const Q4=n3(async s=>{f3.mount=true;const a4=s.target;let u6=a4.name;let h2=true;const y3=m4(i5,u6);const d2=n3(D2=>{h2=Number.isNaN(D2)||fe3(D2)&&isNaN(D2.getTime())||de4(D2,m4(o4,u6,D2))},"_updateIsFieldValueUpdated");const g3=at4(r4.mode);const A=at4(r4.reValidateMode);if(y3){let D2;let Z4;const Ve5=a4.type?it4(y3._f):ft3(s);const ce5=s.type===we3.BLUR||s.type===we3.FOCUS_OUT;const Tt4=!Qt3(y3._f)&&!r4.resolver&&!m4(t3.errors,u6)&&!y3._f.deps||er2(ce5,m4(t3.touchedFields,u6),t3.isSubmitted,A,g3);const Te3=lt3(u6,c2,ce5);E5(o4,u6,Ve5);if(ce5){y3._f.onBlur&&y3._f.onBlur(s);k4&&k4(0)}else if(y3._f.onChange){y3._f.onChange(s)}const Oe4=L(u6,Ve5,ce5);const Ot3=!Y3(Oe4)||Te3;!ce5&&b.state.next({name:u6,type:s.type,values:B3(o4)});if(Tt4){if(_3.isValid||w.isValid){if(r4.mode==="onBlur"){if(ce5){S3()}}else if(!ce5){S3()}}return Ot3&&b.state.next({name:u6,...Te3?{}:Oe4})}!ce5&&Te3&&b.state.next({...t3});if(r4.resolver){const{errors:Xe5}=await re5([u6]);d2(Ve5);if(h2){const It4=ot5(t3.errors,i5,u6);const Ze6=ot5(Xe5,i5,It4.name||u6);D2=Ze6.error;u6=Ze6.name;Z4=Y3(Xe5)}}else{p3([u6],true);D2=(await dt5(y3,c2.disabled,o4,G3,r4.shouldUseNativeValidation))[u6];p3([u6]);d2(Ve5);if(h2){if(D2){Z4=false}else if(_3.isValid||w.isValid){Z4=await U3(i5,true)}}}if(h2){y3._f.deps&&T2(y3._f.deps);ae6(u6,Z4,D2,Oe4)}}},"onChange");const $3=n3((s,a4)=>{if(m4(t3.errors,a4)&&s.focus){s.focus();return 1}return},"_focusInput");const T2=n3(async(s,a4={})=>{let u6;let h2;const y3=be3(s);if(r4.resolver){const d2=await me4(O3(s)?s:y3);u6=Y3(d2);h2=s?!y3.some(g3=>m4(d2,g3)):u6}else if(s){h2=(await Promise.all(y3.map(async d2=>{const g3=m4(i5,d2);return await U3(g3&&g3._f?{[d2]:g3}:g3)}))).every(Boolean);!(!h2&&!t3.isValid)&&S3()}else{h2=u6=await U3(i5)}b.state.next({...!le4(s)||(_3.isValid||w.isValid)&&u6!==t3.isValid?{}:{name:s},...r4.resolver||!s?{isValid:u6}:{},errors:t3.errors});a4.shouldFocus&&!h2&&_e3(i5,$3,s?y3:c2.mount);return h2},"trigger");const ne5=n3(s=>{const a4={...f3.mount?o4:l2};return O3(s)?a4:le4(s)?m4(a4,s):s.map(u6=>m4(a4,u6))},"getValues");const X5=n3((s,a4)=>({invalid:!!m4((a4||t3).errors,s),isDirty:!!m4((a4||t3).dirtyFields,s),error:m4((a4||t3).errors,s),isValidating:!!m4(t3.validatingFields,s),isTouched:!!m4((a4||t3).touchedFields,s)}),"getFieldState");const he3=n3(s=>{s&&be3(s).forEach(a4=>P2(t3.errors,a4));b.state.next({errors:s?t3.errors:{}})},"clearErrors");const $e5=n3((s,a4,u6)=>{const h2=(m4(i5,s,{_f:{}})._f||{}).ref;const y3=m4(t3.errors,s)||{};const{ref:d2,message:g3,type:A,...D2}=y3;E5(t3.errors,s,{...D2,...a4,ref:h2});b.state.next({name:s,errors:t3.errors,isValid:false});u6&&u6.shouldFocus&&h2&&h2.focus&&h2.focus()},"setError");const kt3=n3((s,a4)=>ie4(s)?b.state.subscribe({next:n3(u6=>"values"in u6&&s(V(void 0,a4),u6),"next")}):V(s,a4,true),"watch");const ze5=n3(s=>b.state.subscribe({next:n3(a4=>{if(Zt4(s.name,a4.name,s.exact)&&Xt3(a4,s.formState||_3,Mt3,s.reRenderRoot)){s.callback({values:{...o4},...t3,...a4,defaultValues:l2})}},"next")}).unsubscribe,"_subscribe");const Dt4=n3(s=>{f3.mount=true;w={...w,...s.formState};return ze5({...s,formState:w})},"subscribe");const Re2=n3((s,a4={})=>{for(const u6 of s?be3(s):c2.mount){c2.mount.delete(u6);c2.array.delete(u6);if(!a4.keepValue){P2(i5,u6);P2(o4,u6)}!a4.keepError&&P2(t3.errors,u6);!a4.keepDirty&&P2(t3.dirtyFields,u6);!a4.keepTouched&&P2(t3.touchedFields,u6);!a4.keepIsValidating&&P2(t3.validatingFields,u6);!r4.shouldUnregister&&!a4.keepDefaultValue&&P2(l2,u6)}b.state.next({values:B3(o4)});b.state.next({...t3,...!a4.keepDirty?{}:{isDirty:J2()}});!a4.keepIsValid&&S3()},"unregister");const Ge5=n3(({disabled:s,name:a4})=>{if(K3(s)&&f3.mount||!!s||c2.disabled.has(a4)){s?c2.disabled.add(a4):c2.disabled.delete(a4)}},"_setDisabledField");const Me5=n3((s,a4={})=>{let u6=m4(i5,s);const h2=K3(a4.disabled)||K3(r4.disabled);E5(i5,s,{...u6||{},_f:{...u6&&u6._f?u6._f:{ref:{name:s}},name:s,mount:true,...a4}});c2.mount.add(s);if(u6){Ge5({disabled:K3(a4.disabled)?a4.disabled:r4.disabled,name:s})}else{N2(s,true,a4.value)}return{...h2?{disabled:a4.disabled||r4.disabled}:{},...r4.progressive?{required:!!a4.required,min:ve3(a4.min),max:ve3(a4.max),minLength:ve3(a4.minLength),maxLength:ve3(a4.maxLength),pattern:ve3(a4.pattern)}:{},name:s,onChange:Q4,onBlur:Q4,ref:n3(y3=>{if(y3){Me5(s,a4);u6=m4(i5,s);const d2=O3(y3.value)?y3.querySelectorAll?y3.querySelectorAll("input,select,textarea")[0]||y3:y3:y3;const g3=zt3(d2);const A=u6._f.refs||[];if(g3?A.find(D2=>D2===d2):d2===u6._f.ref){return}E5(i5,s,{_f:{...u6._f,...g3?{refs:[...A.filter(Ie3),d2,...Array.isArray(m4(l2,s))?[{}]:[]],ref:{type:d2.type,name:s}}:{ref:d2}}});N2(s,false,void 0,d2)}else{u6=m4(i5,s,{});if(u6._f){u6._f.mount=false}(r4.shouldUnregister||a4.shouldUnregister)&&!(yt3(c2.array,s)&&f3.action)&&c2.unMount.add(s)}},"ref")}},"register");const Le5=n3(()=>r4.shouldFocusError&&_e3(i5,$3,c2.mount),"_focusError");const Et4=n3(s=>{if(K3(s)){b.state.next({disabled:s});_e3(i5,(a4,u6)=>{const h2=m4(i5,u6);if(h2){a4.disabled=h2._f.disabled||s;if(Array.isArray(h2._f.refs)){h2._f.refs.forEach(y3=>{y3.disabled=h2._f.disabled||s})}}},0,false)}},"_disableForm");const Ye5=n3((s,a4)=>async u6=>{let h2=void 0;if(u6){u6.preventDefault&&u6.preventDefault();u6.persist&&u6.persist()}let y3=B3(o4);b.state.next({isSubmitting:true});if(r4.resolver){const{errors:d2,values:g3}=await re5();t3.errors=d2;y3=B3(g3)}else{await U3(i5)}if(c2.disabled.size){for(const d2 of c2.disabled){P2(y3,d2)}}P2(t3.errors,"root");if(Y3(t3.errors)){b.state.next({errors:{}});try{await s(y3,u6)}catch(d2){h2=d2}}else{if(a4){await a4({...t3.errors},u6)}Le5();setTimeout(Le5)}b.state.next({isSubmitted:true,isSubmitting:false,isSubmitSuccessful:Y3(t3.errors)&&!h2,submitCount:t3.submitCount+1,errors:t3.errors});if(h2){throw h2}},"handleSubmit");const Ct3=n3((s,a4={})=>{if(m4(i5,s)){if(O3(a4.defaultValue)){j2(s,B3(m4(l2,s)))}else{j2(s,a4.defaultValue);E5(l2,s,B3(a4.defaultValue))}if(!a4.keepTouched){P2(t3.touchedFields,s)}if(!a4.keepDirty){P2(t3.dirtyFields,s);t3.isDirty=a4.defaultValue?J2(s,B3(m4(l2,s))):J2()}if(!a4.keepError){P2(t3.errors,s);_3.isValid&&S3()}b.state.next({...t3})}},"resetField");const Je6=n3((s,a4={})=>{const u6=s?B3(s):l2;const h2=B3(u6);const y3=Y3(s);const d2=y3?l2:h2;if(!a4.keepDefaultValues){l2=u6}if(!a4.keepValues){if(a4.keepDirtyValues){const g3=new Set([...c2.mount,...Object.keys(ge3(l2,o4))]);for(const A of Array.from(g3)){m4(t3.dirtyFields,A)?E5(d2,A,m4(o4,A)):j2(A,m4(d2,A))}}else{if(Pe2&&O3(s)){for(const g3 of c2.mount){const A=m4(i5,g3);if(A&&A._f){const D2=Array.isArray(A._f.refs)?A._f.refs[0]:A._f.ref;if(Ae3(D2)){const Z4=D2.closest("form");if(Z4){Z4.reset();break}}}}}if(a4.keepFieldsRef){for(const g3 of c2.mount){j2(g3,m4(d2,g3))}}else{i5={}}}o4=r4.shouldUnregister?a4.keepDefaultValues?B3(l2):{}:B3(d2);b.array.next({values:{...d2}});b.state.next({values:{...d2}})}c2={mount:a4.keepDirtyValues?c2.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:false,focus:""};f3.mount=!_3.isValid||!!a4.keepIsValid||!!a4.keepDirtyValues;f3.watch=!!r4.shouldUnregister;b.state.next({submitCount:a4.keepSubmitCount?t3.submitCount:0,isDirty:y3?false:a4.keepDirty?t3.isDirty:!!(a4.keepDefaultValues&&!de4(s,l2)),isSubmitted:a4.keepIsSubmitted?t3.isSubmitted:false,dirtyFields:y3?{}:a4.keepDirtyValues?a4.keepDefaultValues&&o4?ge3(l2,o4):t3.dirtyFields:a4.keepDefaultValues&&s?ge3(l2,s):a4.keepDirty?t3.dirtyFields:{},touchedFields:a4.keepTouched?t3.touchedFields:{},errors:a4.keepErrors?t3.errors:{},isSubmitSuccessful:a4.keepIsSubmitSuccessful?t3.isSubmitSuccessful:false,isSubmitting:false})},"_reset");const Ke6=n3((s,a4)=>Je6(ie4(s)?s(o4):s,a4),"reset");const Rt4=n3((s,a4={})=>{const u6=m4(i5,s);const h2=u6&&u6._f;if(h2){const y3=h2.refs?h2.refs[0]:h2.ref;if(y3.focus){y3.focus();a4.shouldSelect&&ie4(y3.select)&&y3.select()}}},"setFocus");const Mt3=n3(s=>{t3={...t3,...s}},"_setFormState");const Lt3=n3(()=>ie4(r4.defaultValues)&&r4.defaultValues().then(s=>{Ke6(s,r4.resetOptions);b.state.next({isLoading:false})}),"_resetDefaultValues");const Qe6={control:{register:Me5,unregister:Re2,getFieldState:X5,handleSubmit:Ye5,setError:$e5,_subscribe:ze5,_runSchema:re5,_focusError:Le5,_getWatch:V,_getDirty:J2,_setValid:S3,_setFieldArray:te4,_setDisabledField:Ge5,_setErrors:R5,_getFieldArray:x4,_reset:Je6,_resetDefaultValues:Lt3,_removeUnmounted:oe4,_disableForm:Et4,_subjects:b,_proxyFormState:_3,get _fields(){return i5},get _formValues(){return o4},get _state(){return f3},set _state(s){f3=s},get _defaultValues(){return l2},get _names(){return c2},set _names(s){c2=s},get _formState(){return t3},get _options(){return r4},set _options(s){r4={...r4,...s}}},subscribe:Dt4,trigger:T2,register:Me5,handleSubmit:Ye5,watch:kt3,setValue:j2,getValues:ne5,reset:Ke6,resetField:Ct3,clearErrors:he3,unregister:Re2,setError:$e5,setFocus:Rt4,getFieldState:X5};return{...Qe6,formControl:Qe6}}__name(ir2,"ir");n3(ir2,"createFormControl");function ar2(e4={}){const r4=sl.useRef(void 0);const t3=sl.useRef(void 0);const[i5,l2]=sl.useState({isDirty:false,isValidating:false,isLoading:ie4(e4.defaultValues),isSubmitted:false,isSubmitting:false,isSubmitSuccessful:false,isValid:false,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e4.errors||{},disabled:e4.disabled||false,isReady:false,defaultValues:ie4(e4.defaultValues)?void 0:e4.defaultValues});if(!r4.current){if(e4.formControl){r4.current={...e4.formControl,formState:i5};if(e4.defaultValues&&!ie4(e4.defaultValues)){e4.formControl.reset(e4.defaultValues,e4.resetOptions)}}else{const{formControl:f3,...c2}=ir2(e4);r4.current={...c2,formState:i5}}}const o4=r4.current.control;o4._options=e4;We4(()=>{const f3=o4._subscribe({formState:o4._proxyFormState,callback:n3(()=>l2({...o4._formState}),"callback"),reRenderRoot:true});l2(c2=>({...c2,isReady:true}));o4._formState.isReady=true;return f3},[o4]);sl.useEffect(()=>o4._disableForm(e4.disabled),[o4,e4.disabled]);sl.useEffect(()=>{if(e4.mode){o4._options.mode=e4.mode}if(e4.reValidateMode){o4._options.reValidateMode=e4.reValidateMode}},[o4,e4.mode,e4.reValidateMode]);sl.useEffect(()=>{if(e4.errors){o4._setErrors(e4.errors);o4._focusError()}},[o4,e4.errors]);sl.useEffect(()=>{e4.shouldUnregister&&o4._subjects.state.next({values:o4._getWatch()})},[o4,e4.shouldUnregister]);sl.useEffect(()=>{if(o4._proxyFormState.isDirty){const f3=o4._getDirty();if(f3!==i5.isDirty){o4._subjects.state.next({isDirty:f3})}}},[o4,i5.isDirty]);sl.useEffect(()=>{if(e4.values&&!de4(e4.values,t3.current)){o4._reset(e4.values,{keepFieldsRef:true,...o4._options.resetOptions});t3.current=e4.values;l2(f3=>({...f3}))}else{o4._resetDefaultValues()}},[o4,e4.values]);sl.useEffect(()=>{if(!o4._state.mount){o4._setValid();o4._state.mount=true}if(o4._state.watch){o4._state.watch=false;o4._subjects.state.next({...o4._formState})}o4._removeUnmounted()});r4.current.formState=mt3(i5,o4);return r4.current}__name(ar2,"ar");n3(ar2,"useForm");var wt3=z.createContext(null);var fr2=n3(()=>{const e4=z.useContext(wt3);if(!e4){throw new Error("useWvcForm must be used within a FormProvider")}return e4},"useWvcForm");var nr2=n3(e4=>{const r4={};for(const t3 of e4.fields){const i5={};if(t3.required){i5.required=true}if(t3.field_type==="email"){i5.pattern="email"}else if(t3.field_type==="phone"){i5.pattern="phone"}else if(t3.field_type==="url"){i5.pattern="url"}if(t3.validation){if(t3.validation.minLength)i5.minLength=t3.validation.minLength;if(t3.validation.maxLength)i5.maxLength=t3.validation.maxLength;if(t3.validation.min)i5.min=t3.validation.min;if(t3.validation.max)i5.max=t3.validation.max;if(t3.validation.pattern)i5.pattern=t3.validation.pattern}if(Object.keys(i5).length>0){r4[t3.field_key]=i5}}return r4},"schemaToValidationRules");var lr2=n3(e4=>{const r4={};for(const t3 of e4.fields){switch(t3.field_type){case"checkbox":r4[t3.field_key]=false;break;case"number":r4[t3.field_key]="";break;default:r4[t3.field_key]=""}}return r4},"schemaToDefaultValues");var yr2=n3(({children:e4,formId:r4,sectionName:t3,formKey:i5,formSchema:l2,validationRules:o4={},submitText:f3,successMessage:c2,errorMessage:k4,defaultValues:C2={},formVersion:_3="1.0.0",...w})=>{const[b,G3]=z.useState(false);const[H2,S3]=z.useState(false);const[p3,te4]=z.useState(null);const v3=z.useRef(0);const R5=sl.useMemo(()=>{if(l2)return l2;if(i5&&typeof window!=="undefined"&&window.__WVC_FORMS__){return window.__WVC_FORMS__[i5]}return void 0},[i5,l2]);const{validationRules:N2,submitText:L,successMessage:ae6,errorMessage:re5,defaultValues:me4}=sl.useMemo(()=>{const $3=R5?nr2(R5):{};const T2=R5?lr2(R5):{};return{validationRules:{...$3,...o4},submitText:f3??"Submit",successMessage:c2??"Form submitted successfully!",errorMessage:k4??"Failed to submit form. Please try again.",defaultValues:{...T2,...C2}}},[R5,o4,f3,c2,k4,C2]);const U3=ar2({defaultValues:me4||{},mode:"onBlur"});const{handleSubmit:oe4,reset:J2,formState:V}=U3;const x4=z.useCallback($3=>{return Object.values($3).some(T2=>T2 instanceof File||T2 instanceof FileList&&T2.length>0)},[]);const M4=z.useCallback($3=>{if(!x4($3)){return $3}const T2=new FormData;for(const[ne5,X5]of Object.entries($3)){if(X5 instanceof FileList){for(let he3=0;he3{if(b)return;G3(true);te4(null);v3.current+=1;try{const T2=M4($3);const ne5={sectionName:t3,formId:r4,formKey:i5||R5?.form_key,formData:T2,timestamp:Date.now(),sessionId:wvcClient.getSessionId?.()||"unknown",pageUrl:window.location.href,userAgent:typeof navigator!=="undefined"?navigator.userAgent:"unknown",validationErrors:V.errors||null,submissionAttempt:v3.current,formVersion:_3,validationRules:N2};const X5=await wvcClient.formSubmission(ne5);S3(true);te4(null)}catch(T2){console.error("Form submission error:",T2);te4(re5)}finally{G3(false)}},[b,t3,r4,V.errors,re5,M4]);const j2=z.useCallback(()=>{J2();S3(false);te4(null);v3.current=0},[J2]);const Q4={formId:r4,sectionName:t3,isSubmitting:b,isSubmitted:H2,submitError:p3,successMessage:ae6,formSchema:R5,handleSubmit:oe4(W4),resetForm:j2,control:U3.control,formState:U3.formState,register:U3.register,setValue:U3.setValue,getValues:U3.getValues,watch:U3.watch};return Ht.jsx(Wt3,{...U3,children:Ht.jsx(wt3.Provider,{value:Q4,children:Ht.jsx("div",{...w,"data-wvc-dynamic":"FormProvider","data-wvc-formId":r4,"data-wvc-formKey":i5||R5?.form_key||void 0,children:e4})})})},"FormProvider");var or2=z.forwardRef(({className:e4,...r4},t3)=>Ht.jsx("form",{ref:t3,className:nv("space-y-6",e4),...r4}));or2.displayName="Form";var At2=z.createContext({});var mr2=n3(({...e4})=>{return Ht.jsx(At2.Provider,{value:{name:e4.name},children:Ht.jsx(Ht3,{...e4})})},"FormField");var He4=n3(()=>{const e4=z.useContext(At2);const r4=z.useContext(St2);if(!e4){throw new Error("useFormField should be used within ")}if(!r4){throw new Error("useFormField should be used within ")}const{id:t3}=r4;let i5={};try{const{getFieldState:l2}=Ce3();const o4=ht2({name:e4.name});i5=l2(e4.name,o4)}catch(l2){i5={invalid:false,isTouched:false,isDirty:false,error:void 0}}return{id:t3,name:e4.name,formItemId:`${t3}-form-item`,formDescriptionId:`${t3}-form-item-description`,formMessageId:`${t3}-form-item-message`,...i5}},"useFormField");var St2=z.createContext({});function hr2({className:e4,...r4}){const t3=z.useId();return Ht.jsx(St2.Provider,{value:{id:t3},children:Ht.jsx("div",{"data-slot":"form-item",className:nv("grid gap-2",e4),...r4})})}__name(hr2,"hr");n3(hr2,"FormItem");function gr2({className:e4,...r4}){const{error:t3,formItemId:i5}=He4();return Ht.jsxs(x3,{"data-slot":"form-label","data-error":!!t3,className:nv("data-[error=true]:text-destructive",e4),htmlFor:i5,...r4,children:[r4.children,t3&&Ht.jsx("span",{className:"text-destructive","aria-hidden":"true",children:"u26A0uFE0F"})]})}__name(gr2,"gr");n3(gr2,"FormLabel");function vr2({...e4}){const{error:r4,formItemId:t3,formDescriptionId:i5,formMessageId:l2}=He4();return Ht.jsx(Vh,{"data-slot":"form-control",id:t3,"aria-describedby":!r4?`${i5}`:`${i5} ${l2}`,"aria-invalid":!!r4,...e4})}__name(vr2,"vr");n3(vr2,"FormControl");function br2({className:e4,...r4}){const{error:t3,formMessageId:i5}=He4();const l2=t3?String(t3?.message??""):r4.children;if(!l2){return null}return Ht.jsx("p",{"data-slot":"form-message",id:i5,className:nv("text-destructive text-sm",e4,t3?"text-red-500":""),...r4,children:l2})}__name(br2,"br");n3(br2,"FormMessage");var e2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]];var t2=qv("check",e2);var rt5=Object.defineProperty;var v2=__name((e4,o4)=>rt5(e4,"name",{value:o4,configurable:true}),"v");function Ne5(e4,[o4,t3]){return Math.min(t3,Math.max(o4,e4))}__name(Ne5,"Ne");v2(Ne5,"clamp");function yt4(e4){const o4=z.useRef({value:e4,previous:e4});return z.useMemo(()=>{if(o4.current.value!==e4){o4.current.previous=o4.current.value;o4.current.value=e4}return o4.current.previous},[e4])}__name(yt4,"yt");v2(yt4,"usePrevious");var je5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});var It3="VisuallyHidden";var bt5=z.forwardRef((e4,o4)=>{return Ht.jsx(sn.span,{...e4,ref:o4,style:{...je5,...e4.style}})});bt5.displayName=It3;var Tt3=[" ","Enter","ArrowUp","ArrowDown"];var Pt2=[" ","Enter"];var Q3="Select";var[de5,ue5,Nt3]=mS(Q3);var[ne3,po4]=av(Q3,[Nt3,yS]);var pe5=yS();var[Et3,Y4]=ne3(Q3);var[_t4,Rt3]=ne3(Q3);var Me4=v2(e4=>{const{__scopeSelect:o4,children:t3,open:c2,defaultOpen:l2,onOpenChange:u6,value:s,defaultValue:a4,onValueChange:i5,dir:p3,name:x4,autoComplete:y3,disabled:E6,required:P4,form:I4}=e4;const d2=pe5(o4);const[h2,S3]=z.useState(null);const[m5,g3]=z.useState(null);const[z5,A]=z.useState(false);const re5=hS(p3);const[_3,D2]=dS({prop:c2,defaultProp:l2??false,onChange:u6,caller:Q3});const[W4,X5]=dS({prop:s,defaultProp:a4,onChange:i5,caller:Q3});const B4=z.useRef(null);const V=h2?I4||!!h2.closest("form"):true;const[K5,H2]=z.useState(new Set);const F3=Array.from(K5).map(R5=>R5.props.value).join(";");return Ht.jsx(pS,{...d2,children:Ht.jsxs(Et3,{required:P4,scope:o4,trigger:h2,onTriggerChange:S3,valueNode:m5,onValueNodeChange:g3,valueNodeHasChildren:z5,onValueNodeHasChildrenChange:A,contentId:gS(),value:W4,onValueChange:X5,open:_3,onOpenChange:D2,dir:re5,triggerPointerDownPosRef:B4,disabled:E6,children:[Ht.jsx(de5.Provider,{scope:o4,children:Ht.jsx(_t4,{scope:e4.__scopeSelect,onNativeOptionAdd:z.useCallback(R5=>{H2(k4=>new Set(k4).add(R5))},[]),onNativeOptionRemove:z.useCallback(R5=>{H2(k4=>{const U3=new Set(k4);U3.delete(R5);return U3})},[]),children:t3})}),V?Ht.jsxs(et4,{"aria-hidden":true,required:P4,tabIndex:-1,name:x4,autoComplete:y3,value:W4,onChange:v2(R5=>X5(R5.target.value),"onChange"),disabled:E6,form:I4,children:[W4===void 0?Ht.jsx("option",{value:""}):null,Array.from(K5)]},F3):null]})})},"Select$1");Me4.displayName=Q3;var Ae4="SelectTrigger";var Oe3=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,disabled:c2=false,...l2}=e4;const u6=pe5(t3);const s=Y4(Ae4,t3);const a4=s.disabled||c2;const i5=on(o4,s.onTriggerChange);const p3=ue5(t3);const x4=z.useRef("touch");const[y3,E6,P4]=ot6(d2=>{const h2=p3().filter(g3=>!g3.disabled);const S3=h2.find(g3=>g3.value===s.value);const m5=nt5(h2,d2,S3);if(m5!==void 0){s.onValueChange(m5.value)}});const I4=v2(d2=>{if(!a4){s.onOpenChange(true);P4()}if(d2){s.triggerPointerDownPosRef.current={x:Math.round(d2.pageX),y:Math.round(d2.pageY)}}},"handleOpen");return Ht.jsx(bS,{asChild:true,...u6,children:Ht.jsx(sn.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a4,"data-disabled":a4?"":void 0,"data-placeholder":tt5(s.value)?"":void 0,...l2,ref:i5,onClick:go(l2.onClick,d2=>{d2.currentTarget.focus();if(x4.current!=="mouse"){I4(d2)}}),onPointerDown:go(l2.onPointerDown,d2=>{x4.current=d2.pointerType;const h2=d2.target;if(h2.hasPointerCapture(d2.pointerId)){h2.releasePointerCapture(d2.pointerId)}if(d2.button===0&&d2.ctrlKey===false&&d2.pointerType==="mouse"){I4(d2);d2.preventDefault()}}),onKeyDown:go(l2.onKeyDown,d2=>{const h2=y3.current!=="";const S3=d2.ctrlKey||d2.altKey||d2.metaKey;if(!S3&&d2.key.length===1)E6(d2.key);if(h2&&d2.key===" ")return;if(Tt3.includes(d2.key)){I4();d2.preventDefault()}})})})});Oe3.displayName=Ae4;var De3="SelectValue";var ke6=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,className:c2,style:l2,children:u6,placeholder:s="",...a4}=e4;const i5=Y4(De3,t3);const{onValueNodeHasChildrenChange:p3}=i5;const x4=u6!==void 0;const y3=on(o4,i5.onValueNodeChange);na(()=>{p3(x4)},[p3,x4]);return Ht.jsx(sn.span,{...a4,ref:y3,style:{pointerEvents:"none"},children:tt5(i5.value)?Ht.jsx(Ht.Fragment,{children:s}):u6})});ke6.displayName=De3;var jt3="SelectIcon";var Le4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,children:c2,...l2}=e4;return Ht.jsx(sn.span,{"aria-hidden":true,...l2,ref:o4,children:c2||"u25BC"})});Le4.displayName=jt3;var Mt2="SelectPortal";var Be5=v2(e4=>{return Ht.jsx(o1,{asChild:true,...e4})},"SelectPortal");Be5.displayName=Mt2;var ee4="SelectContent";var Ve4=z.forwardRef((e4,o4)=>{const t3=Y4(ee4,e4.__scopeSelect);const[c2,l2]=z.useState();na(()=>{l2(new DocumentFragment)},[]);if(!t3.open){const u6=c2;return u6?Bo.createPortal(Ht.jsx(He5,{scope:e4.__scopeSelect,children:Ht.jsx(de5.Slot,{scope:e4.__scopeSelect,children:Ht.jsx("div",{children:e4.children})})}),u6):null}return Ht.jsx(Fe3,{...e4,ref:o4})});Ve4.displayName=ee4;var O4=10;var[He5,q3]=ne3(ee4);var At3="SelectContentImpl";var Ot2=Yi("SelectContent.RemoveScroll");var Fe3=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,position:c2="item-aligned",onCloseAutoFocus:l2,onEscapeKeyDown:u6,onPointerDownOutside:s,side:a4,sideOffset:i5,align:p3,alignOffset:x4,arrowPadding:y3,collisionBoundary:E6,collisionPadding:P4,sticky:I4,hideWhenDetached:d2,avoidCollisions:h2,...S3}=e4;const m5=Y4(ee4,t3);const[g3,z5]=z.useState(null);const[A,re5]=z.useState(null);const _3=on(o4,f3=>z5(f3));const[D2,W4]=z.useState(null);const[X5,B4]=z.useState(null);const V=ue5(t3);const[K5,H2]=z.useState(false);const F3=z.useRef(false);z.useEffect(()=>{if(g3)return xS(g3)},[g3]);vS();const R5=z.useCallback(f3=>{const[b,...j2]=V().map(T2=>T2.ref.current);const[w]=j2.slice(-1);const C2=document.activeElement;for(const T2 of f3){if(T2===C2)return;T2?.scrollIntoView({block:"nearest"});if(T2===b&&A)A.scrollTop=0;if(T2===w&&A)A.scrollTop=A.scrollHeight;T2?.focus();if(document.activeElement!==C2)return}},[V,A]);const k4=z.useCallback(()=>R5([D2,g3]),[R5,D2,g3]);z.useEffect(()=>{if(K5){k4()}},[K5,k4]);const{onOpenChange:U3,triggerPointerDownPosRef:G3}=m5;z.useEffect(()=>{if(g3){let f3={x:0,y:0};const b=v2(w=>{f3={x:Math.abs(Math.round(w.pageX)-(G3.current?.x??0)),y:Math.abs(Math.round(w.pageY)-(G3.current?.y??0))}},"handlePointerMove");const j2=v2(w=>{if(f3.x<=10&&f3.y<=10){w.preventDefault()}else{if(!g3.contains(w.target)){U3(false)}}document.removeEventListener("pointermove",b);G3.current=null},"handlePointerUp");if(G3.current!==null){document.addEventListener("pointermove",b);document.addEventListener("pointerup",j2,{capture:true,once:true})}return()=>{document.removeEventListener("pointermove",b);document.removeEventListener("pointerup",j2,{capture:true})}}},[g3,U3,G3]);z.useEffect(()=>{const f3=v2(()=>U3(false),"close");window.addEventListener("blur",f3);window.addEventListener("resize",f3);return()=>{window.removeEventListener("blur",f3);window.removeEventListener("resize",f3)}},[U3]);const[fe4,le6]=ot6(f3=>{const b=V().filter(C2=>!C2.disabled);const j2=b.find(C2=>C2.ref.current===document.activeElement);const w=nt5(b,f3,j2);if(w){setTimeout(()=>w.ref.current.focus())}});const me4=z.useCallback((f3,b,j2)=>{const w=!F3.current&&!j2;const C2=m5.value!==void 0&&m5.value===b;if(C2||w){W4(f3);if(w)F3.current=true}},[m5.value]);const he3=z.useCallback(()=>g3?.focus(),[g3]);const te4=z.useCallback((f3,b,j2)=>{const w=!F3.current&&!j2;const C2=m5.value!==void 0&&m5.value===b;if(C2||w){B4(f3)}},[m5.value]);const ce5=c2==="popper"?Se3:Ue6;const se6=ce5===Se3?{side:a4,sideOffset:i5,align:p3,alignOffset:x4,arrowPadding:y3,collisionBoundary:E6,collisionPadding:P4,sticky:I4,hideWhenDetached:d2,avoidCollisions:h2}:{};return Ht.jsx(He5,{scope:t3,content:g3,viewport:A,onViewportChange:re5,itemRefCallback:me4,selectedItem:D2,onItemLeave:he3,itemTextRefCallback:te4,focusSelectedItem:k4,selectedItemText:X5,position:c2,isPositioned:K5,searchRef:fe4,children:Ht.jsx(W1,{as:Ot2,allowPinchZoom:true,children:Ht.jsx(Up,{asChild:true,trapped:m5.open,onMountAutoFocus:v2(f3=>{f3.preventDefault()},"onMountAutoFocus"),onUnmountAutoFocus:go(l2,f3=>{m5.trigger?.focus({preventScroll:true});f3.preventDefault()}),children:Ht.jsx(Mp,{asChild:true,disableOutsidePointerEvents:true,onEscapeKeyDown:u6,onPointerDownOutside:s,onFocusOutside:v2(f3=>f3.preventDefault(),"onFocusOutside"),onDismiss:v2(()=>m5.onOpenChange(false),"onDismiss"),children:Ht.jsx(ce5,{role:"listbox",id:m5.contentId,"data-state":m5.open?"open":"closed",dir:m5.dir,onContextMenu:v2(f3=>f3.preventDefault(),"onContextMenu"),...S3,...se6,onPlaced:v2(()=>H2(true),"onPlaced"),ref:_3,style:{display:"flex",flexDirection:"column",outline:"none",...S3.style},onKeyDown:go(S3.onKeyDown,f3=>{const b=f3.ctrlKey||f3.altKey||f3.metaKey;if(f3.key==="Tab")f3.preventDefault();if(!b&&f3.key.length===1)le6(f3.key);if(["ArrowUp","ArrowDown","Home","End"].includes(f3.key)){const j2=V().filter(C2=>!C2.disabled);let w=j2.map(C2=>C2.ref.current);if(["ArrowUp","End"].includes(f3.key)){w=w.slice().reverse()}if(["ArrowUp","ArrowDown"].includes(f3.key)){const C2=f3.target;const T2=w.indexOf(C2);w=w.slice(T2+1)}setTimeout(()=>R5(w));f3.preventDefault()}})})})})})})});Fe3.displayName=At3;var Dt3="SelectItemAlignedPosition";var Ue6=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,onPlaced:c2,...l2}=e4;const u6=Y4(ee4,t3);const s=q3(ee4,t3);const[a4,i5]=z.useState(null);const[p3,x4]=z.useState(null);const y3=on(o4,_3=>x4(_3));const E6=ue5(t3);const P4=z.useRef(false);const I4=z.useRef(true);const{viewport:d2,selectedItem:h2,selectedItemText:S3,focusSelectedItem:m5}=s;const g3=z.useCallback(()=>{if(u6.trigger&&u6.valueNode&&a4&&p3&&d2&&h2&&S3){const _3=u6.trigger.getBoundingClientRect();const D2=p3.getBoundingClientRect();const W4=u6.valueNode.getBoundingClientRect();const X5=S3.getBoundingClientRect();if(u6.dir!=="rtl"){const C2=X5.left-D2.left;const T2=W4.left-C2;const Z4=_3.left-T2;const J2=_3.width+Z4;const ve4=Math.max(J2,D2.width);const ge4=window.innerWidth-O4;const xe4=Ne5(T2,[O4,Math.max(O4,ge4-ve4)]);a4.style.minWidth=J2+"px";a4.style.left=xe4+"px"}else{const C2=D2.right-X5.right;const T2=window.innerWidth-W4.right-C2;const Z4=window.innerWidth-_3.right-T2;const J2=_3.width+Z4;const ve4=Math.max(J2,D2.width);const ge4=window.innerWidth-O4;const xe4=Ne5(T2,[O4,Math.max(O4,ge4-ve4)]);a4.style.minWidth=J2+"px";a4.style.right=xe4+"px"}const B4=E6();const V=window.innerHeight-O4*2;const K5=d2.scrollHeight;const H2=window.getComputedStyle(p3);const F3=parseInt(H2.borderTopWidth,10);const R5=parseInt(H2.paddingTop,10);const k4=parseInt(H2.borderBottomWidth,10);const U3=parseInt(H2.paddingBottom,10);const G3=F3+R5+K5+U3+k4;const fe4=Math.min(h2.offsetHeight*5,G3);const le6=window.getComputedStyle(d2);const me4=parseInt(le6.paddingTop,10);const he3=parseInt(le6.paddingBottom,10);const te4=_3.top+_3.height/2-O4;const ce5=V-te4;const se6=h2.offsetHeight/2;const f3=h2.offsetTop+se6;const b=F3+R5+f3;const j2=G3-b;const w=b<=te4;if(w){const C2=B4.length>0&&h2===B4[B4.length-1].ref.current;a4.style.bottom="0px";const T2=p3.clientHeight-d2.offsetTop-d2.offsetHeight;const Z4=Math.max(ce5,se6+(C2?he3:0)+T2+k4);const J2=b+Z4;a4.style.height=J2+"px"}else{const C2=B4.length>0&&h2===B4[0].ref.current;a4.style.top="0px";const T2=Math.max(te4,F3+d2.offsetTop+(C2?me4:0)+se6);const Z4=T2+j2;a4.style.height=Z4+"px";d2.scrollTop=b-te4+d2.offsetTop}a4.style.margin=`${O4}px 0`;a4.style.minHeight=fe4+"px";a4.style.maxHeight=V+"px";c2?.();requestAnimationFrame(()=>P4.current=true)}},[E6,u6.trigger,u6.valueNode,a4,p3,d2,h2,S3,u6.dir,c2]);na(()=>g3(),[g3]);const[z5,A]=z.useState();na(()=>{if(p3)A(window.getComputedStyle(p3).zIndex)},[p3]);const re5=z.useCallback(_3=>{if(_3&&I4.current===true){g3();m5?.();I4.current=false}},[g3,m5]);return Ht.jsx(Lt2,{scope:t3,contentWrapper:a4,shouldExpandOnScrollRef:P4,onScrollButtonChange:re5,children:Ht.jsx("div",{ref:i5,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z5},children:Ht.jsx(sn.div,{...l2,ref:y3,style:{boxSizing:"border-box",maxHeight:"100%",...l2.style}})})})});Ue6.displayName=Dt3;var kt2="SelectPopperPosition";var Se3=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,align:c2="start",collisionPadding:l2=O4,...u6}=e4;const s=pe5(t3);return Ht.jsx(SS,{...s,...u6,ref:o4,align:c2,collisionPadding:l2,style:{boxSizing:"border-box",...u6.style,...{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}})});Se3.displayName=kt2;var[Lt2,Te2]=ne3(ee4,{});var we4="SelectViewport";var ze4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,nonce:c2,...l2}=e4;const u6=q3(we4,t3);const s=Te2(we4,t3);const a4=on(o4,u6.onViewportChange);const i5=z.useRef(0);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx("style",{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:c2}),Ht.jsx(de5.Slot,{scope:t3,children:Ht.jsx(sn.div,{"data-radix-select-viewport":"",role:"presentation",...l2,ref:a4,style:{position:"relative",flex:1,overflow:"hidden auto",...l2.style},onScroll:go(l2.onScroll,p3=>{const x4=p3.currentTarget;const{contentWrapper:y3,shouldExpandOnScrollRef:E6}=s;if(E6?.current&&y3){const P4=Math.abs(i5.current-x4.scrollTop);if(P4>0){const I4=window.innerHeight-O4*2;const d2=parseFloat(y3.style.minHeight);const h2=parseFloat(y3.style.height);const S3=Math.max(d2,h2);if(S30?z5:0;y3.style.justifyContent="flex-end"}}}}i5.current=x4.scrollTop})})})]})});ze4.displayName=we4;var We5="SelectGroup";var[Bt3,Vt4]=ne3(We5);var Ht4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,...c2}=e4;const l2=gS();return Ht.jsx(Bt3,{scope:t3,id:l2,children:Ht.jsx(sn.div,{role:"group","aria-labelledby":l2,...c2,ref:o4})})});Ht4.displayName=We5;var Ke5="SelectLabel";var Ft3=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,...c2}=e4;const l2=Vt4(Ke5,t3);return Ht.jsx(sn.div,{id:l2.id,...c2,ref:o4})});Ft3.displayName=Ke5;var ie5="SelectItem";var[Ut3,Ge4]=ne3(ie5);var $e4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,value:c2,disabled:l2=false,textValue:u6,...s}=e4;const a4=Y4(ie5,t3);const i5=q3(ie5,t3);const p3=a4.value===c2;const[x4,y3]=z.useState(u6??"");const[E6,P4]=z.useState(false);const I4=on(o4,m5=>i5.itemRefCallback?.(m5,c2,l2));const d2=gS();const h2=z.useRef("touch");const S3=v2(()=>{if(!l2){a4.onValueChange(c2);a4.onOpenChange(false)}},"handleSelect");if(c2===""){throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.")}return Ht.jsx(Ut3,{scope:t3,value:c2,disabled:l2,textId:d2,isSelected:p3,onItemTextChange:z.useCallback(m5=>{y3(g3=>g3||(m5?.textContent??"").trim())},[]),children:Ht.jsx(de5.ItemSlot,{scope:t3,value:c2,disabled:l2,textValue:x4,children:Ht.jsx(sn.div,{role:"option","aria-labelledby":d2,"data-highlighted":E6?"":void 0,"aria-selected":p3&&E6,"data-state":p3?"checked":"unchecked","aria-disabled":l2||void 0,"data-disabled":l2?"":void 0,tabIndex:l2?void 0:-1,...s,ref:I4,onFocus:go(s.onFocus,()=>P4(true)),onBlur:go(s.onBlur,()=>P4(false)),onClick:go(s.onClick,()=>{if(h2.current!=="mouse")S3()}),onPointerUp:go(s.onPointerUp,()=>{if(h2.current==="mouse")S3()}),onPointerDown:go(s.onPointerDown,m5=>{h2.current=m5.pointerType}),onPointerMove:go(s.onPointerMove,m5=>{h2.current=m5.pointerType;if(l2){i5.onItemLeave?.()}else if(h2.current==="mouse"){m5.currentTarget.focus({preventScroll:true})}}),onPointerLeave:go(s.onPointerLeave,m5=>{if(m5.currentTarget===document.activeElement){i5.onItemLeave?.()}}),onKeyDown:go(s.onKeyDown,m5=>{const g3=i5.searchRef?.current!=="";if(g3&&m5.key===" ")return;if(Pt2.includes(m5.key))S3();if(m5.key===" ")m5.preventDefault()})})})})});$e4.displayName=ie5;var ae4="SelectItemText";var Ye4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,className:c2,style:l2,...u6}=e4;const s=Y4(ae4,t3);const a4=q3(ae4,t3);const i5=Ge4(ae4,t3);const p3=Rt3(ae4,t3);const[x4,y3]=z.useState(null);const E6=on(o4,S3=>y3(S3),i5.onItemTextChange,S3=>a4.itemTextRefCallback?.(S3,i5.value,i5.disabled));const P4=x4?.textContent;const I4=z.useMemo(()=>Ht.jsx("option",{value:i5.value,disabled:i5.disabled,children:P4},i5.value),[i5.disabled,i5.value,P4]);const{onNativeOptionAdd:d2,onNativeOptionRemove:h2}=p3;na(()=>{d2(I4);return()=>h2(I4)},[d2,h2,I4]);return Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(sn.span,{id:i5.textId,...u6,ref:E6}),i5.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Bo.createPortal(u6.children,s.valueNode):null]})});Ye4.displayName=ae4;var qe5="SelectItemIndicator";var Xe4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,...c2}=e4;const l2=Ge4(qe5,t3);return l2.isSelected?Ht.jsx(sn.span,{"aria-hidden":true,...c2,ref:o4}):null});Xe4.displayName=qe5;var Ce4="SelectScrollUpButton";var Ze5=z.forwardRef((e4,o4)=>{const t3=q3(Ce4,e4.__scopeSelect);const c2=Te2(Ce4,e4.__scopeSelect);const[l2,u6]=z.useState(false);const s=on(o4,c2.onScrollButtonChange);na(()=>{if(t3.viewport&&t3.isPositioned){let a4=v2(function(){const p3=i5.scrollTop>0;u6(p3)},"handleScroll2");const i5=t3.viewport;a4();i5.addEventListener("scroll",a4);return()=>i5.removeEventListener("scroll",a4)}},[t3.viewport,t3.isPositioned]);return l2?Ht.jsx(Qe5,{...e4,ref:s,onAutoScroll:v2(()=>{const{viewport:a4,selectedItem:i5}=t3;if(a4&&i5){a4.scrollTop=a4.scrollTop-i5.offsetHeight}},"onAutoScroll")}):null});Ze5.displayName=Ce4;var ye5="SelectScrollDownButton";var Je5=z.forwardRef((e4,o4)=>{const t3=q3(ye5,e4.__scopeSelect);const c2=Te2(ye5,e4.__scopeSelect);const[l2,u6]=z.useState(false);const s=on(o4,c2.onScrollButtonChange);na(()=>{if(t3.viewport&&t3.isPositioned){let a4=v2(function(){const p3=i5.scrollHeight-i5.clientHeight;const x4=Math.ceil(i5.scrollTop)i5.removeEventListener("scroll",a4)}},[t3.viewport,t3.isPositioned]);return l2?Ht.jsx(Qe5,{...e4,ref:s,onAutoScroll:v2(()=>{const{viewport:a4,selectedItem:i5}=t3;if(a4&&i5){a4.scrollTop=a4.scrollTop+i5.offsetHeight}},"onAutoScroll")}):null});Je5.displayName=ye5;var Qe5=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,onAutoScroll:c2,...l2}=e4;const u6=q3("SelectScrollButton",t3);const s=z.useRef(null);const a4=ue5(t3);const i5=z.useCallback(()=>{if(s.current!==null){window.clearInterval(s.current);s.current=null}},[]);z.useEffect(()=>{return()=>i5()},[i5]);na(()=>{const p3=a4().find(x4=>x4.ref.current===document.activeElement);p3?.ref.current?.scrollIntoView({block:"nearest"})},[a4]);return Ht.jsx(sn.div,{"aria-hidden":true,...l2,ref:o4,style:{flexShrink:0,...l2.style},onPointerDown:go(l2.onPointerDown,()=>{if(s.current===null){s.current=window.setInterval(c2,50)}}),onPointerMove:go(l2.onPointerMove,()=>{u6.onItemLeave?.();if(s.current===null){s.current=window.setInterval(c2,50)}}),onPointerLeave:go(l2.onPointerLeave,()=>{i5()})})});var zt4="SelectSeparator";var Wt4=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,...c2}=e4;return Ht.jsx(sn.div,{"aria-hidden":true,...c2,ref:o4})});Wt4.displayName=zt4;var Ie4="SelectArrow";var Kt3=z.forwardRef((e4,o4)=>{const{__scopeSelect:t3,...c2}=e4;const l2=pe5(t3);const u6=Y4(Ie4,t3);const s=q3(Ie4,t3);return u6.open&&s.position==="popper"?Ht.jsx(ES,{...l2,...c2,ref:o4}):null});Kt3.displayName=Ie4;var Gt3="SelectBubbleInput";var et4=z.forwardRef(({__scopeSelect:e4,value:o4,...t3},c2)=>{const l2=z.useRef(null);const u6=on(c2,l2);const s=yt4(o4);z.useEffect(()=>{const a4=l2.current;if(!a4)return;const i5=window.HTMLSelectElement.prototype;const p3=Object.getOwnPropertyDescriptor(i5,"value");const x4=p3.set;if(s!==o4&&x4){const y3=new Event("change",{bubbles:true});x4.call(a4,o4);a4.dispatchEvent(y3)}},[s,o4]);return Ht.jsx(sn.select,{...t3,style:{...je5,...t3.style},ref:u6,defaultValue:o4})});et4.displayName=Gt3;function tt5(e4){return e4===""||e4===void 0}__name(tt5,"tt");v2(tt5,"shouldShowPlaceholder");function ot6(e4){const o4=aa(e4);const t3=z.useRef("");const c2=z.useRef(0);const l2=z.useCallback(s=>{const a4=t3.current+s;o4(a4);v2(__name(function i5(p3){t3.current=p3;window.clearTimeout(c2.current);if(p3!=="")c2.current=window.setTimeout(()=>i5(""),1e3)},"i"),"updateSearch")(a4)},[o4]);const u6=z.useCallback(()=>{t3.current="";window.clearTimeout(c2.current)},[]);z.useEffect(()=>{return()=>window.clearTimeout(c2.current)},[]);return[t3,l2,u6]}__name(ot6,"ot");v2(ot6,"useTypeaheadSearch");function nt5(e4,o4,t3){const c2=o4.length>1&&Array.from(o4).every(p3=>p3===o4[0]);const l2=c2?o4[0]:o4;const u6=t3?e4.indexOf(t3):-1;let s=$t3(e4,Math.max(u6,0));const a4=l2.length===1;if(a4)s=s.filter(p3=>p3!==t3);const i5=s.find(p3=>p3.textValue.toLowerCase().startsWith(l2.toLowerCase()));return i5!==t3?i5:void 0}__name(nt5,"nt");v2(nt5,"findNextItem");function $t3(e4,o4){return e4.map((t3,c2)=>e4[(o4+c2)%e4.length])}__name($t3,"$t");v2($t3,"wrapArray");var Yt4=Me4;var qt4=Oe3;var Xt4=ke6;var Zt5=Le4;var Jt4=Be5;var Qt4=Ve4;var eo3=ze4;var to2=$e4;var oo4=Ye4;var no3=Xe4;var ro4=Ze5;var so4=Je5;function fo4({...e4}){return Ht.jsx(Yt4,{"data-slot":"select",...e4})}__name(fo4,"fo");v2(fo4,"Select");function mo4({...e4}){return Ht.jsx(Xt4,{"data-slot":"select-value",...e4})}__name(mo4,"mo");v2(mo4,"SelectValue");function ho4({className:e4,size:o4="default",children:t3,...c2}){return Ht.jsxs(qt4,{"data-slot":"select-trigger","data-size":o4,className:nv("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e4),...c2,children:[t3,Ht.jsx(Zt5,{asChild:true,children:Ht.jsx(AS,{className:"size-4 opacity-50"})})]})}__name(ho4,"ho");v2(ho4,"SelectTrigger");function vo4({className:e4,children:o4,position:t3="popper",...c2}){return Ht.jsx(Jt4,{children:Ht.jsxs(Qt4,{"data-slot":"select-content",className:nv("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",t3==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e4),position:t3,...c2,children:[Ht.jsx(ao3,{}),Ht.jsx(eo3,{className:nv("p-1",t3==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o4}),Ht.jsx(lo3,{})]})})}__name(vo4,"vo");v2(vo4,"SelectContent");function go4({className:e4,children:o4,...t3}){return Ht.jsxs(to2,{"data-slot":"select-item",className:nv("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e4),...t3,children:[Ht.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:Ht.jsx(no3,{children:Ht.jsx(t2,{className:"size-4"})})}),Ht.jsx(oo4,{children:o4})]})}__name(go4,"go");v2(go4,"SelectItem");function ao3({className:e4,...o4}){return Ht.jsx(ro4,{"data-slot":"select-scroll-up-button",className:nv("flex cursor-default items-center justify-center py-1",e4),...o4,children:Ht.jsx(TS,{className:"size-4"})})}__name(ao3,"ao");v2(ao3,"SelectScrollUpButton");function lo3({className:e4,...o4}){return Ht.jsx(so4,{"data-slot":"select-scroll-down-button",className:nv("flex cursor-default items-center justify-center py-1",e4),...o4,children:Ht.jsx(AS,{className:"size-4"})})}__name(lo3,"lo");v2(lo3,"SelectScrollDownButton");var e3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]];var r3=qv("circle-check",e3);var R4=Object.defineProperty;var a3=__name((s,r4)=>R4(s,"name",{value:r4,configurable:true}),"a");var K4=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]];var X4=qv("external-link",K4);var Z3=[["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"}]];var k3=qv("map-pin",Z3);var ee5=[["path",{d:"M14 14a2 2 0 0 0 2-2V8h-2",key:"1r06pg"}],["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M8 14a2 2 0 0 0 2-2V8H8",key:"1jzu5j"}]];var se5=qv("message-square-quote",ee5);var re4=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]];var ae5=qv("navigation",re4);var te3=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]];var f2=qv("phone",te3);var ie6=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]];var ne4=qv("send",ie6);function oe3(){const s=p();return Ht.jsxs("section",{id:"contacthero","data-nav":"dark",className:"relative overflow-hidden bg-secondary text-secondary-foreground py-20 md:py-28 lg:py-32",children:[Ht.jsx("div",{className:"absolute inset-0 -z-10 bg-cover bg-center bg-[url(https://teal-sparrow-432062.hostingersite.com/wp-content/uploads/2026/08/uproof_waterproofing_contact_hero.png)] opacity-25"}),Ht.jsx("div",{className:"absolute inset-0 -z-10 bg-gradient-to-b from-secondary/90 via-secondary/95 to-secondary"}),Ht.jsx("div",{className:"absolute inset-0 -z-10 bg-[radial-gradient(ellipse_at_top_right,rgba(255,214,0,0.15),transparent_50%)]"}),Ht.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:[Ht.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[Ht.jsxs(yu.div,{initial:s?{opacity:1}:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,ease:"easeOut"},className:"inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-primary/20 border border-primary/40 text-primary-foreground font-medium text-xs md:text-sm mb-6",children:[Ht.jsx("span",{className:"inline-block size-2 rounded-full bg-primary"}),"Reliable waterproofing specialists"]}),Ht.jsx(yu.h1,{initial:s?{opacity:1}:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut",delay:.1},className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-white mb-6 font-default",children:"Get in touch with U-Proof"}),Ht.jsx(yu.p,{initial:s?{opacity:1}:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut",delay:.2},className:"text-lg md:text-xl text-secondary-foreground/90 leading-relaxed font-default max-w-2xl mx-auto mb-10",children:"We're here to help with your waterproofing needs. Reach out for technical advice, product recommendations, or a tailored quote."}),Ht.jsxs(yu.div,{initial:s?{opacity:1}:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut",delay:.3},className:"flex flex-wrap items-center justify-center gap-4",children:[Ht.jsx(fS,{asChild:true,size:"lg",className:"bg-primary text-primary-foreground font-semibold hover:bg-primary/90 shadow-md transition-colors",children:Ht.jsxs("a",{href:"tel:+27100000000",className:"inline-flex items-center gap-2",children:[Ht.jsx(f2,{className:"size-4"}),Ht.jsx("span",{children:"Speak to an expert"})]})}),Ht.jsx(fS,{asChild:true,variant:"outline",size:"lg",className:"border-white/30 bg-white/10 text-white hover:bg-white/20 hover:text-white backdrop-blur-sm transition-colors",children:Ht.jsxs(cS,{to:"https://teal-sparrow-432062.hostingersite.com/",className:"inline-flex items-center gap-2",children:[Ht.jsx(se5,{className:"size-4"}),Ht.jsx("span",{children:"Explore products"})]})})]})]}),Ht.jsxs("div",{className:"mt-16 sm:mt-20 grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mx-auto",children:[Ht.jsxs(yu.div,{"data-index":0,initial:s?{opacity:1}:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3,ease:"easeOut"},className:"bg-white/10 backdrop-blur-md border border-white/15 rounded-xl p-6 flex flex-col justify-between hover:border-primary/50 transition-[border-color,box-shadow] shadow-sm",children:[Ht.jsxs("div",{children:[Ht.jsx("div",{className:"size-11 rounded-lg bg-primary text-primary-foreground flex items-center justify-center mb-4",children:Ht.jsx(f2,{className:"size-5"})}),Ht.jsx("h3",{className:"text-sm font-semibold tracking-wide uppercase text-white/80 mb-1",children:"Direct line"}),Ht.jsx("p",{className:"text-base font-medium text-white mb-4",children:"Talk to a waterproofing specialist"})]}),Ht.jsx("div",{className:"pt-2 border-t border-white/10",children:Ht.jsxs("a",{href:"tel:+27100000000",className:"text-sm font-semibold text-primary hover:underline inline-flex items-center gap-1.5 transition-colors",children:[Ht.jsx("span",{children:"Call now"}),Ht.jsx("span",{children:"u2192"})]})})]}),Ht.jsxs(yu.div,{"data-index":1,initial:s?{opacity:1}:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5,delay:.4,ease:"easeOut"},className:"bg-white/10 backdrop-blur-md border border-white/15 rounded-xl p-6 flex flex-col justify-between hover:border-primary/50 transition-[border-color,box-shadow] shadow-sm",children:[Ht.jsxs("div",{children:[Ht.jsx("div",{className:"size-11 rounded-lg bg-primary text-primary-foreground flex items-center justify-center mb-4",children:Ht.jsx(a,{className:"size-5"})}),Ht.jsx("h3",{className:"text-sm font-semibold tracking-wide uppercase text-white/80 mb-1",children:"Email enquiry"}),Ht.jsx("p",{className:"text-base font-medium text-white mb-4",children:"Detailed specs & project assessments"})]}),Ht.jsx("div",{className:"pt-2 border-t border-white/10",children:Ht.jsxs("a",{href:"mailto:info@uproof.co.za",className:"text-sm font-semibold text-primary hover:underline inline-flex items-center gap-1.5 transition-colors",children:[Ht.jsx("span",{children:"Send email"}),Ht.jsx("span",{children:"u2192"})]})})]}),Ht.jsxs(yu.div,{"data-index":2,initial:s?{opacity:1}:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5,ease:"easeOut"},className:"bg-white/10 backdrop-blur-md border border-white/15 rounded-xl p-6 flex flex-col justify-between hover:border-primary/50 transition-[border-color,box-shadow] shadow-sm",children:[Ht.jsxs("div",{children:[Ht.jsx("div",{className:"size-11 rounded-lg bg-primary text-primary-foreground flex items-center justify-center mb-4",children:Ht.jsx(r,{className:"size-5"})}),Ht.jsx("h3",{className:"text-sm font-semibold tracking-wide uppercase text-white/80 mb-1",children:"Operating hours"}),Ht.jsx("p",{className:"text-base font-medium text-white mb-4",children:"Mon u2013 Fri: 07:30 to 17:00"})]}),Ht.jsx("div",{className:"pt-2 border-t border-white/10",children:Ht.jsxs(cS,{to:"https://teal-sparrow-432062.hostingersite.com/",className:"text-sm font-semibold text-primary hover:underline inline-flex items-center gap-1.5 transition-colors",children:[Ht.jsx("span",{children:"View catalog"}),Ht.jsx("span",{children:"u2192"})]})})]})]})]})]})}__name(oe3,"oe");a3(oe3,"ContactHero");var de6=[{id:"weekdays",day:"Monday - Thursday",hours:"07:30 - 16:30"},{id:"friday",day:"Friday",hours:"07:30 - 15:30"},{id:"weekend",day:"Saturday - Sunday",hours:"Closed"}];function le5(){const s=p();const r4=s?{}:{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.2},transition:{duration:.45,ease:"easeOut"}};return Ht.jsx("section",{id:"contactinfowithmap","data-nav":"light",className:"bg-background py-16 md:py-24",children:Ht.jsxs("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:[Ht.jsxs(yu.div,{...r4,className:"max-w-2xl mb-12 lg:mb-16",children:[Ht.jsx("div",{className:"w-12 h-1 bg-primary rounded-full mb-4"}),Ht.jsx("h2",{className:"text-3xl sm:text-4xl font-bold tracking-tight text-foreground font-default",children:"Get in touch with our team"}),Ht.jsx("p",{className:"mt-3 text-base sm:text-lg text-muted-foreground font-default",children:"Reach out for product specifications, technical assistance, or on-site advice for your waterproofing project."})]}),Ht.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8",children:[Ht.jsx(yu.div,{...r4,transition:{duration:.45,delay:s?0:.05},children:Ht.jsxs(u4,{className:"h-full border border-border bg-card shadow-xs flex flex-col justify-between overflow-hidden",children:[Ht.jsx("div",{className:"h-1.5 w-full bg-primary"}),Ht.jsxs(x,{className:"p-6 sm:p-8 flex-1 flex flex-col justify-between",children:[Ht.jsxs("div",{children:[Ht.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[Ht.jsx("div",{className:"flex size-10 items-center justify-center rounded-md bg-accent text-foreground",children:Ht.jsx(f2,{className:"size-5 text-secondary"})}),Ht.jsxs("div",{children:[Ht.jsx("h3",{className:"text-xl font-bold text-foreground font-default",children:"Direct contact"}),Ht.jsx("p",{className:"text-xs text-muted-foreground",children:"Sales & support lines"})]})]}),Ht.jsxs("div",{className:"space-y-6",children:[Ht.jsxs("div",{className:"space-y-1.5",children:[Ht.jsxs("div",{className:"flex items-center gap-2",children:[Ht.jsx(f2,{className:"size-3.5 text-muted-foreground"}),Ht.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Phone"})]}),Ht.jsx("a",{href:"tel:+27114501234",className:"text-base font-semibold text-secondary hover:text-secondary/80 transition-colors block",children:"+27 (0) 11 450 1234"}),Ht.jsx("p",{className:"text-xs text-muted-foreground",children:"Monday to Friday, 07:30 - 16:30"})]}),Ht.jsx(R3,{className:"my-3"}),Ht.jsxs("div",{className:"space-y-1.5",children:[Ht.jsxs("div",{className:"flex items-center gap-2",children:[Ht.jsx(a,{className:"size-3.5 text-muted-foreground"}),Ht.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Email"})]}),Ht.jsx("a",{href:"mailto:info@uproof.co.za",className:"text-base font-semibold text-secondary hover:text-secondary/80 transition-colors block",children:"info@uproof.co.za"}),Ht.jsx("p",{className:"text-xs text-muted-foreground",children:"We respond within 24 business hours"})]})]})]}),Ht.jsx("div",{className:"pt-6 mt-6 border-t border-border",children:Ht.jsx("a",{href:"tel:+27114501234",className:"w-full block",children:Ht.jsxs(fS,{variant:"outline",className:"w-full justify-center",children:[Ht.jsx(f2,{className:"size-4 mr-2"}),"Call directly"]})})})]})]})}),Ht.jsx(yu.div,{...r4,transition:{duration:.45,delay:s?0:.1},children:Ht.jsxs(u4,{className:"h-full border border-border bg-card shadow-xs flex flex-col justify-between overflow-hidden",children:[Ht.jsx("div",{className:"h-1.5 w-full bg-primary"}),Ht.jsxs(x,{className:"p-6 sm:p-8 flex-1 flex flex-col justify-between",children:[Ht.jsxs("div",{children:[Ht.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[Ht.jsx("div",{className:"flex size-10 items-center justify-center rounded-md bg-accent text-foreground",children:Ht.jsx(r,{className:"size-5 text-secondary"})}),Ht.jsxs("div",{children:[Ht.jsx("h3",{className:"text-xl font-bold text-foreground font-default",children:"Hours & depot"}),Ht.jsx("p",{className:"text-xs text-muted-foreground",children:"Vereeniging facility"})]})]}),Ht.jsxs("div",{className:"mb-6",children:[Ht.jsxs("div",{className:"flex items-start gap-2 mb-2",children:[Ht.jsx(k3,{className:"size-4 text-secondary mt-0.5 shrink-0"}),Ht.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Physical address"})]}),Ht.jsx("p",{className:"text-sm font-medium text-foreground leading-relaxed pl-6",children:"Shop 5, Vision 21 Industrial Park, Steel Road, Duncanville, Vereeniging, 1929"})]}),Ht.jsx(R3,{className:"my-4"}),Ht.jsxs("div",{children:[Ht.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground block mb-3",children:"Operating hours"}),Ht.jsx("div",{className:"space-y-2",children:de6.map((n4,l2)=>Ht.jsxs("div",{"data-index":l2,className:"flex items-center justify-between text-sm",children:[Ht.jsx("span",{className:"text-muted-foreground",children:n4.day}),Ht.jsx("span",{className:"font-semibold text-foreground",children:n4.hours})]},n4.id))})]})]}),Ht.jsx("div",{className:"pt-6 mt-6 border-t border-border",children:Ht.jsx(cS,{to:"https://maps.google.com/?q=Vision+21+Industrial+Park+Steel+Road+Duncanville+Vereeniging",newTab:true,className:"w-full block",children:Ht.jsxs(fS,{variant:"outline",className:"w-full justify-center",children:[Ht.jsx(ae5,{className:"size-4 mr-2"}),"Get directions"]})})})]})]})}),Ht.jsx(yu.div,{...r4,transition:{duration:.45,delay:s?0:.15},className:"md:col-span-2 lg:col-span-1",children:Ht.jsxs(u4,{className:"h-full border border-border bg-card shadow-xs flex flex-col justify-between overflow-hidden",children:[Ht.jsx("div",{className:"h-1.5 w-full bg-primary"}),Ht.jsxs(x,{className:"p-6 sm:p-8 flex-1 flex flex-col justify-between",children:[Ht.jsxs("div",{children:[Ht.jsx("div",{className:"flex items-center justify-between mb-4",children:Ht.jsxs("div",{className:"flex items-center gap-3",children:[Ht.jsx("div",{className:"flex size-10 items-center justify-center rounded-md bg-accent text-foreground",children:Ht.jsx(k3,{className:"size-5 text-secondary"})}),Ht.jsxs("div",{children:[Ht.jsx("h3",{className:"text-xl font-bold text-foreground font-default",children:"Depot map"}),Ht.jsx("p",{className:"text-xs text-muted-foreground",children:"Vereeniging, Gauteng"})]})]})}),Ht.jsxs("div",{className:"relative w-full h-52 sm:h-60 rounded-md overflow-hidden border border-border bg-muted flex items-center justify-center group",children:[Ht.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#cbd5e1_1px,transparent_1px)] [background-size:16px_16px] opacity-70"}),Ht.jsx("div",{className:"absolute inset-x-0 top-1/2 h-4 -translate-y-1/2 bg-background/80 border-y border-border"}),Ht.jsx("div",{className:"absolute inset-y-0 left-1/3 w-4 bg-background/80 border-x border-border"}),Ht.jsx("div",{className:"absolute top-1/4 right-1/4 size-16 rounded-full bg-accent/40"}),Ht.jsxs("div",{className:"relative z-10 flex flex-col items-center",children:[Ht.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-secondary text-secondary-foreground shadow-md ring-4 ring-primary/40 animate-pulse",children:Ht.jsx(k3,{className:"size-5"})}),Ht.jsx("div",{className:"mt-2 rounded-md bg-card/95 px-2.5 py-1 text-xs font-semibold text-foreground shadow-sm border border-border backdrop-blur-xs",children:"U-Proof Headquarters"})]})]})]}),Ht.jsx("div",{className:"pt-6 mt-6 border-t border-border",children:Ht.jsx(cS,{to:"https://maps.google.com/?q=Vision+21+Industrial+Park+Steel+Road+Duncanville+Vereeniging",newTab:true,className:"w-full block",children:Ht.jsxs(fS,{className:"w-full bg-primary text-primary-foreground hover:bg-primary/90 font-medium",children:[Ht.jsx(X4,{className:"size-4 mr-2"}),"Open in Google Maps"]})})})]})]})})]})]})})}__name(le5,"le");a3(le5,"Contact");function ce4({className:s,...r4}){return Ht.jsx("textarea",{"data-slot":"textarea",className:nv("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",s),...r4})}__name(ce4,"ce");a3(ce4,"Textarea");function me3(){const{isSubmitting:s,isSubmitted:r4,submitError:n4,successMessage:l2,handleSubmit:j2,resetForm:F3,control:c2}=fr2();if(r4&&!n4){return Ht.jsxs("div",{className:"flex flex-col items-center justify-center p-8 text-center bg-accent/30 rounded-xl border border-border",children:[Ht.jsx("div",{className:"flex size-14 items-center justify-center rounded-full bg-primary/20 text-foreground mb-4",children:Ht.jsx(r3,{className:"size-8 text-secondary"})}),Ht.jsx("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Inquiry received"}),Ht.jsx("p",{className:"text-muted-foreground max-w-md text-sm mb-6",children:l2||"Thank you! We will get back to you shortly with tailored waterproofing advice."}),Ht.jsx(fS,{onClick:F3,variant:"outline",className:"border-border hover:bg-accent font-medium",children:"Send another inquiry"})]})}return Ht.jsxs(or2,{onSubmit:j2,className:"space-y-5",children:[Ht.jsxs("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-2",children:[Ht.jsx(mr2,{control:c2,name:"full_name",rules:{required:"Full name is required",minLength:{value:2,message:"Please enter at least 2 characters"}},render:a3(({field:i5})=>Ht.jsxs(hr2,{className:"gap-1.5",children:[Ht.jsxs(gr2,{className:"text-sm font-semibold text-foreground",children:["Full Name ",Ht.jsx("span",{className:"text-destructive",children:"*"})]}),Ht.jsx(vr2,{children:Ht.jsx(It,{placeholder:"John Doe",className:"h-11 px-4 bg-background border-input rounded-md text-foreground focus-visible:ring-ring",...i5})}),Ht.jsx(br2,{})]}),"render")}),Ht.jsx(mr2,{control:c2,name:"email_address",rules:{required:"Email address is required",pattern:{value:/^[^s@]+@[^s@]+.[^s@]+$/,message:"Please enter a valid email address"}},render:a3(({field:i5})=>Ht.jsxs(hr2,{className:"gap-1.5",children:[Ht.jsxs(gr2,{className:"text-sm font-semibold text-foreground",children:["Email Address ",Ht.jsx("span",{className:"text-destructive",children:"*"})]}),Ht.jsx(vr2,{children:Ht.jsx(It,{type:"email",placeholder:"john@example.com",className:"h-11 px-4 bg-background border-input rounded-md text-foreground focus-visible:ring-ring",...i5})}),Ht.jsx(br2,{})]}),"render")})]}),Ht.jsxs("div",{className:"grid grid-cols-1 gap-5 md:grid-cols-2",children:[Ht.jsx(mr2,{control:c2,name:"mobile_number",render:a3(({field:i5})=>Ht.jsxs(hr2,{className:"gap-1.5",children:[Ht.jsx(gr2,{className:"text-sm font-semibold text-foreground",children:"Mobile Number"}),Ht.jsx(vr2,{children:Ht.jsx(It,{type:"text",placeholder:"+27 71 123 4567",className:"h-11 px-4 bg-background border-input rounded-md text-foreground focus-visible:ring-ring",...i5})}),Ht.jsx(br2,{})]}),"render")}),Ht.jsx(mr2,{control:c2,name:"project_type",rules:{required:"Please select a project type"},render:a3(({field:i5})=>Ht.jsxs(hr2,{className:"gap-1.5",children:[Ht.jsxs(gr2,{className:"text-sm font-semibold text-foreground",children:["Project Type ",Ht.jsx("span",{className:"text-destructive",children:"*"})]}),Ht.jsx(vr2,{children:Ht.jsxs(fo4,{onValueChange:i5.onChange,defaultValue:i5.value,value:i5.value,children:[Ht.jsx(ho4,{className:"w-full h-11 px-4 bg-background border-input rounded-md text-foreground focus-visible:ring-ring",children:Ht.jsx(mo4,{placeholder:"Select project type"})}),Ht.jsxs(vo4,{className:"bg-popover border-border",children:[Ht.jsx(go4,{value:"Roof & Parapet Waterproofing",children:"Roof & Parapet Waterproofing"}),Ht.jsx(go4,{value:"Basement & Retaining Walls",children:"Basement & Retaining Walls"}),Ht.jsx(go4,{value:"Balconies & Wet Areas",children:"Balconies & Wet Areas"}),Ht.jsx(go4,{value:"Industrial Concrete Repair",children:"Industrial Concrete Repair"}),Ht.jsx(go4,{value:"General Product Advice",children:"General Product Advice"})]})]})}),Ht.jsx(br2,{})]}),"render")})]}),Ht.jsx(mr2,{control:c2,name:"message",rules:{required:"Please enter your message or project requirements",minLength:{value:10,message:"Please provide at least 10 characters"}},render:a3(({field:i5})=>Ht.jsxs(hr2,{className:"gap-1.5",children:[Ht.jsxs(gr2,{className:"text-sm font-semibold text-foreground",children:["Message ",Ht.jsx("span",{className:"text-destructive",children:"*"})]}),Ht.jsx(vr2,{children:Ht.jsx(ce4,{placeholder:"Tell us more about your project...",className:"min-h-32 px-4 py-3 bg-background border-input rounded-md text-foreground focus-visible:ring-ring resize-y",...i5})}),Ht.jsx(br2,{})]}),"render")}),n4&&Ht.jsx("div",{className:"p-4 bg-destructive/10 border border-destructive/20 rounded-md",children:Ht.jsx("p",{className:"text-sm text-destructive",children:n4})}),Ht.jsx(fS,{type:"submit",disabled:s,className:"w-full h-12 bg-primary text-primary-foreground font-semibold text-base rounded-md shadow-xs hover:bg-primary/90 transition-colors",children:s?Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(h,{className:"animate-spin size-5"}),"Sending inquiry..."]}):Ht.jsxs(Ht.Fragment,{children:[Ht.jsx(ne4,{className:"size-4"}),"Submit inquiry"]})})]})}__name(me3,"me");a3(me3,"ContactInquiryForm");function xe3(){const s=p();return Ht.jsx("section",{id:"contactinquiry","data-nav":"light",className:"w-full py-16 md:py-24 bg-background text-foreground",children:Ht.jsx("div",{className:"container mx-auto px-4 max-w-3xl",children:Ht.jsx(yu.div,{initial:s?{opacity:1,y:0}:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:true,amount:.2},transition:{duration:.5,ease:"easeOut"},children:Ht.jsxs(u4,{className:"border border-border bg-card shadow-md rounded-xl overflow-hidden",children:[Ht.jsxs(f,{className:"text-center pb-2 pt-8 px-6 md:px-10",children:[Ht.jsx("span",{className:"text-xs font-bold uppercase tracking-wider text-secondary mb-2 block",children:"Get in touch"}),Ht.jsx(m,{className:"text-2xl md:text-3xl font-bold tracking-tight text-foreground",children:"Contact Inquiry"}),Ht.jsx(p2,{className:"text-muted-foreground text-sm md:text-base mt-2 max-w-xl mx-auto",children:"Tell us about your waterproofing project and our technical specialists will assist you with the right solution."})]}),Ht.jsx(x,{className:"p-6 md:p-10 pt-4",children:Ht.jsx(yr2,{formId:"contact_inquiry",sectionName:"contact-inquiry-section",defaultValues:{full_name:"",email_address:"",mobile_number:"",project_type:"",message:""},validationRules:{full_name:{required:true,minLength:2},email_address:{required:true,pattern:"email"},mobile_number:{required:false},project_type:{required:true},message:{required:true,minLength:10}},submitText:"Submit inquiry",successMessage:"Thank you! Your inquiry has been sent successfully. We will be in touch shortly.",errorMessage:"Failed to submit your inquiry. Please verify your details and try again.",children:Ht.jsx(me3,{})})})]})})})})}__name(xe3,"xe");a3(xe3,"ContactInquiry");function _2(){return Ht.jsxs("div",{children:[Ht.jsx(Eo2,{}),Ht.jsx(oe3,{}),Ht.jsx(le5,{}),Ht.jsx(xe3,{}),Ht.jsx(Po,{})]})}__name(_2,"_");a3(_2,"ContactPage");var g2=null;function P3(s){const{router:r4="memory",basename:n4,initialEntries:l2,...j2}=s;if(r4==="memory"){return Ht.jsx(uS,{initialEntries:l2??["/"],children:Ht.jsx(_2,{...j2})})}return Ht.jsx(iS,{basename:n4,children:Ht.jsx(_2,{...j2})})}__name(P3,"P");a3(P3,"App");function ue6(s,r4={}){console.log("Rendering......");g2=aS.createRoot(s);g2.render(Ht.jsx(P3,{...r4}))}__name(ue6,"ue");a3(ue6,"mount");function he2(s,r4={}){console.log("Hydrating......");g2=aS.hydrateRoot(s,Ht.jsx(P3,{...r4}))}__name(he2,"he");a3(he2,"hydrate");function pe6(){g2?.unmount?.();g2=null}__name(pe6,"pe");a3(pe6,"unmount");if(typeof window!=="undefined")window.ContactVC={mount:ue6,hydrate:he2,unmount:pe6};