dst-rg 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-CCq7hmG3.js → index-3jvN1gZ8.js} +14 -14
- package/dist/index.d.ts +2 -1
- package/dist/index.html +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/PriceSlider/_.stories.tsx +11 -0
- package/src/components/PriceSlider/_.type.tsx +1 -0
- package/src/components/PriceSlider/index.tsx +21 -11
|
@@ -14,7 +14,7 @@ function B1(a,r){for(var c=0;c<r.length;c++){const s=r[c];if(typeof s!="string"&
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ap;function V1(){if(ap)return xe;ap=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function j(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function
|
|
17
|
+
*/var ap;function V1(){if(ap)return xe;ap=1;var a=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function j(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function R(T,X,F){this.props=T,this.context=X,this.refs=N,this.updater=F||A}R.prototype.isReactComponent={},R.prototype.setState=function(T,X){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,X,"setState")},R.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=R.prototype;function O(T,X,F){this.props=T,this.context=X,this.refs=N,this.updater=F||A}var V=O.prototype=new H;V.constructor=O,E(V,R.prototype),V.isPureReactComponent=!0;var $=Array.isArray;function J(){}var Q={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function te(T,X,F){var I=F.ref;return{$$typeof:a,type:T,key:X,ref:I!==void 0?I:null,props:F}}function ee(T,X){return te(T.type,X,T.props)}function le(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function re(T){var X={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(F){return X[F]})}var he=/\/+/g;function fe(T,X){return typeof T=="object"&&T!==null&&T.key!=null?re(""+T.key):X.toString(36)}function pe(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(X){T.status==="pending"&&(T.status="fulfilled",T.value=X)},function(X){T.status==="pending"&&(T.status="rejected",T.reason=X)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function _(T,X,F,I,ue){var ge=typeof T;(ge==="undefined"||ge==="boolean")&&(T=null);var P=!1;if(T===null)P=!0;else switch(ge){case"bigint":case"string":case"number":P=!0;break;case"object":switch(T.$$typeof){case a:case r:P=!0;break;case y:return P=T._init,_(P(T._payload),X,F,I,ue)}}if(P)return ue=ue(T),P=I===""?"."+fe(T,0):I,$(ue)?(F="",P!=null&&(F=P.replace(he,"$&/")+"/"),_(ue,X,F,"",function(Ye){return Ye})):ue!=null&&(le(ue)&&(ue=ee(ue,F+(ue.key==null||T&&T.key===ue.key?"":(""+ue.key).replace(he,"$&/")+"/")+P)),X.push(ue)),1;P=0;var Ne=I===""?".":I+":";if($(T))for(var be=0;be<T.length;be++)I=T[be],ge=Ne+fe(I,be),P+=_(I,X,F,ge,ue);else if(be=j(T),typeof be=="function")for(T=be.call(T),be=0;!(I=T.next()).done;)I=I.value,ge=Ne+fe(I,be++),P+=_(I,X,F,ge,ue);else if(ge==="object"){if(typeof T.then=="function")return _(pe(T),X,F,I,ue);throw X=String(T),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return P}function G(T,X,F){if(T==null)return T;var I=[],ue=0;return _(T,I,"","",function(ge){return X.call(F,ge,ue++)}),I}function B(T){if(T._status===-1){var X=T._result;X=X(),X.then(function(F){(T._status===0||T._status===-1)&&(T._status=1,T._result=F)},function(F){(T._status===0||T._status===-1)&&(T._status=2,T._result=F)}),T._status===-1&&(T._status=0,T._result=X)}if(T._status===1)return T._result.default;throw T._result}var oe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},me={map:G,forEach:function(T,X,F){G(T,function(){X.apply(this,arguments)},F)},count:function(T){var X=0;return G(T,function(){X++}),X},toArray:function(T){return G(T,function(X){return X})||[]},only:function(T){if(!le(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return xe.Activity=v,xe.Children=me,xe.Component=R,xe.Fragment=c,xe.Profiler=d,xe.PureComponent=O,xe.StrictMode=s,xe.Suspense=p,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,xe.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Q.H.useMemoCache(T)}},xe.cache=function(T){return function(){return T.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(T,X,F){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var I=E({},T.props),ue=T.key;if(X!=null)for(ge in X.key!==void 0&&(ue=""+X.key),X)!q.call(X,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&X.ref===void 0||(I[ge]=X[ge]);var ge=arguments.length-2;if(ge===1)I.children=F;else if(1<ge){for(var P=Array(ge),Ne=0;Ne<ge;Ne++)P[Ne]=arguments[Ne+2];I.children=P}return te(T.type,ue,I)},xe.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},xe.createElement=function(T,X,F){var I,ue={},ge=null;if(X!=null)for(I in X.key!==void 0&&(ge=""+X.key),X)q.call(X,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ue[I]=X[I]);var P=arguments.length-2;if(P===1)ue.children=F;else if(1<P){for(var Ne=Array(P),be=0;be<P;be++)Ne[be]=arguments[be+2];ue.children=Ne}if(T&&T.defaultProps)for(I in P=T.defaultProps,P)ue[I]===void 0&&(ue[I]=P[I]);return te(T,ge,ue)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(T){return{$$typeof:x,render:T}},xe.isValidElement=le,xe.lazy=function(T){return{$$typeof:y,_payload:{_status:-1,_result:T},_init:B}},xe.memo=function(T,X){return{$$typeof:g,type:T,compare:X===void 0?null:X}},xe.startTransition=function(T){var X=Q.T,F={};Q.T=F;try{var I=T(),ue=Q.S;ue!==null&&ue(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(J,oe)}catch(ge){oe(ge)}finally{X!==null&&F.types!==null&&(X.types=F.types),Q.T=X}},xe.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},xe.use=function(T){return Q.H.use(T)},xe.useActionState=function(T,X,F){return Q.H.useActionState(T,X,F)},xe.useCallback=function(T,X){return Q.H.useCallback(T,X)},xe.useContext=function(T){return Q.H.useContext(T)},xe.useDebugValue=function(){},xe.useDeferredValue=function(T,X){return Q.H.useDeferredValue(T,X)},xe.useEffect=function(T,X){return Q.H.useEffect(T,X)},xe.useEffectEvent=function(T){return Q.H.useEffectEvent(T)},xe.useId=function(){return Q.H.useId()},xe.useImperativeHandle=function(T,X,F){return Q.H.useImperativeHandle(T,X,F)},xe.useInsertionEffect=function(T,X){return Q.H.useInsertionEffect(T,X)},xe.useLayoutEffect=function(T,X){return Q.H.useLayoutEffect(T,X)},xe.useMemo=function(T,X){return Q.H.useMemo(T,X)},xe.useOptimistic=function(T,X){return Q.H.useOptimistic(T,X)},xe.useReducer=function(T,X,F){return Q.H.useReducer(T,X,F)},xe.useRef=function(T){return Q.H.useRef(T)},xe.useState=function(T){return Q.H.useState(T)},xe.useSyncExternalStore=function(T,X,F){return Q.H.useSyncExternalStore(T,X,F)},xe.useTransition=function(){return Q.H.useTransition()},xe.version="19.2.0",xe}var ip;function Mu(){return ip||(ip=1,nu.exports=V1()),nu.exports}var S=Mu();const Te=ig(S),rg=B1({__proto__:null,default:Te},[S]);var lu={exports:{}},Ai={},au={exports:{}},iu={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ function B1(a,r){for(var c=0;c<r.length;c++){const s=r[c];if(typeof s!="string"&
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var rp;function q1(){return rp||(rp=1,(function(a){function r(_,G){var B=_.length;_.push(G);e:for(;0<B;){var oe=B-1>>>1,me=_[oe];if(0<d(me,G))_[oe]=G,_[B]=me,B=oe;else break e}}function c(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var G=_[0],B=_.pop();if(B!==G){_[0]=B;e:for(var oe=0,me=_.length,T=me>>>1;oe<T;){var X=2*(oe+1)-1,F=_[X],I=X+1,ue=_[I];if(0>d(F,B))I<me&&0>d(ue,F)?(_[oe]=ue,_[I]=B,oe=I):(_[oe]=F,_[X]=B,oe=X);else if(I<me&&0>d(ue,B))_[oe]=ue,_[I]=B,oe=I;else break e}}return G}function d(_,G){var B=_.sortIndex-G.sortIndex;return B!==0?B:_.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,x=h.now();a.unstable_now=function(){return h.now()-x}}var p=[],g=[],y=1,v=null,w=3,j=!1,A=!1,E=!1,N=!1,
|
|
25
|
+
*/var rp;function q1(){return rp||(rp=1,(function(a){function r(_,G){var B=_.length;_.push(G);e:for(;0<B;){var oe=B-1>>>1,me=_[oe];if(0<d(me,G))_[oe]=G,_[B]=me,B=oe;else break e}}function c(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var G=_[0],B=_.pop();if(B!==G){_[0]=B;e:for(var oe=0,me=_.length,T=me>>>1;oe<T;){var X=2*(oe+1)-1,F=_[X],I=X+1,ue=_[I];if(0>d(F,B))I<me&&0>d(ue,F)?(_[oe]=ue,_[I]=B,oe=I):(_[oe]=F,_[X]=B,oe=X);else if(I<me&&0>d(ue,B))_[oe]=ue,_[I]=B,oe=I;else break e}}return G}function d(_,G){var B=_.sortIndex-G.sortIndex;return B!==0?B:_.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,x=h.now();a.unstable_now=function(){return h.now()-x}}var p=[],g=[],y=1,v=null,w=3,j=!1,A=!1,E=!1,N=!1,R=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function V(_){for(var G=c(g);G!==null;){if(G.callback===null)s(g);else if(G.startTime<=_)s(g),G.sortIndex=G.expirationTime,r(p,G);else break;G=c(g)}}function $(_){if(E=!1,V(_),!A)if(c(p)!==null)A=!0,J||(J=!0,re());else{var G=c(g);G!==null&&pe($,G.startTime-_)}}var J=!1,Q=-1,q=5,te=-1;function ee(){return N?!0:!(a.unstable_now()-te<q)}function le(){if(N=!1,J){var _=a.unstable_now();te=_;var G=!0;try{e:{A=!1,E&&(E=!1,H(Q),Q=-1),j=!0;var B=w;try{t:{for(V(_),v=c(p);v!==null&&!(v.expirationTime>_&&ee());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,w=v.priorityLevel;var me=oe(v.expirationTime<=_);if(_=a.unstable_now(),typeof me=="function"){v.callback=me,V(_),G=!0;break t}v===c(p)&&s(p),V(_)}else s(p);v=c(p)}if(v!==null)G=!0;else{var T=c(g);T!==null&&pe($,T.startTime-_),G=!1}}break e}finally{v=null,w=B,j=!1}G=void 0}}finally{G?re():J=!1}}}var re;if(typeof O=="function")re=function(){O(le)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,fe=he.port2;he.port1.onmessage=le,re=function(){fe.postMessage(null)}}else re=function(){R(le,0)};function pe(_,G){Q=R(function(){_(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(_){_.callback=null},a.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(_){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var B=w;w=G;try{return _()}finally{w=B}},a.unstable_requestPaint=function(){N=!0},a.unstable_runWithPriority=function(_,G){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var B=w;w=_;try{return G()}finally{w=B}},a.unstable_scheduleCallback=function(_,G,B){var oe=a.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?oe+B:oe):B=oe,_){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=B+me,_={id:y++,callback:G,priorityLevel:_,startTime:B,expirationTime:me,sortIndex:-1},B>oe?(_.sortIndex=B,r(g,_),c(p)===null&&_===c(g)&&(E?(H(Q),Q=-1):E=!0,pe($,B-oe))):(_.sortIndex=me,r(p,_),A||j||(A=!0,J||(J=!0,re()))),_},a.unstable_shouldYield=ee,a.unstable_wrapCallback=function(_){var G=w;return function(){var B=w;w=G;try{return _.apply(this,arguments)}finally{w=B}}}})(iu)),iu}var sp;function G1(){return sp||(sp=1,au.exports=q1()),au.exports}var ru={exports:{}},dt={};/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.js
|
|
28
28
|
*
|
|
@@ -38,15 +38,15 @@ function B1(a,r){for(var c=0;c<r.length;c++){const s=r[c];if(typeof s!="string"&
|
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the MIT license found in the
|
|
40
40
|
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var up;function X1(){if(up)return Ai;up=1;var a=G1(),r=Mu(),c=sg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return p(i),e;if(o===l)return p(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==l.return)n=i,l=o;else{for(var m=!1,b=i.child;b;){if(b===n){m=!0,n=i,l=o;break}if(b===l){m=!0,l=i,n=o;break}b=b.sibling}if(!m){for(b=o.child;b;){if(b===n){m=!0,n=o,l=i;break}if(b===l){m=!0,l=o,n=i;break}b=b.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),
|
|
41
|
+
*/var up;function X1(){if(up)return Ai;up=1;var a=G1(),r=Mu(),c=sg();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,l=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(l=i.return,l!==null){n=l;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return p(i),e;if(o===l)return p(i),t;o=o.sibling}throw Error(s(188))}if(n.return!==l.return)n=i,l=o;else{for(var m=!1,b=i.child;b;){if(b===n){m=!0,n=i,l=o;break}if(b===l){m=!0,l=i,n=o;break}b=b.sibling}if(!m){for(b=o.child;b;){if(b===n){m=!0,n=o,l=i;break}if(b===l){m=!0,l=o,n=i;break}b=b.sibling}if(!m)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),O=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case R:return"Profiler";case N:return"StrictMode";case $:return"Suspense";case J:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case V:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var pe=Array.isArray,_=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},oe=[],me=-1;function T(e){return{current:e}}function X(e){0>me||(e.current=oe[me],oe[me]=null,me--)}function F(e,t){me++,oe[me]=e.current,e.current=t}var I=T(null),ue=T(null),ge=T(null),P=T(null);function Ne(e,t){switch(F(ge,t),F(ue,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ah(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ah(t),e=Nh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(I),F(I,e)}function be(){X(I),X(ue),X(ge)}function Ye(e){e.memoizedState!==null&&F(P,e);var t=I.current,n=Nh(t,e.type);t!==n&&(F(ue,e),F(I,n))}function wt(e){ue.current===e&&(X(I),X(ue)),P.current===e&&(X(P),bi._currentValue=B)}var St,Dn;function Pt(e){if(St===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);St=t&&t[1]||"",Dn=-1<n.stack.indexOf(`
|
|
42
42
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+St+e+Dn}var za=!1;function Ra(e,t){if(!e||za)return"";za=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var
|
|
43
|
+
`+St+e+Dn}var za=!1;function Ra(e,t){if(!e||za)return"";za=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(U){var L=U}Reflect.construct(e,[],K)}else{try{K.call()}catch(U){L=U}e.call(K.prototype)}}else{try{throw Error()}catch(U){L=U}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(U){if(U&&L&&typeof U.stack=="string")return[U.stack,L.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=l.DetermineComponentFrameRoot(),m=o[0],b=o[1];if(m&&b){var C=m.split(`
|
|
44
44
|
`),k=b.split(`
|
|
45
45
|
`);for(i=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;i<k.length&&!k[i].includes("DetermineComponentFrameRoot");)i++;if(l===C.length||i===k.length)for(l=C.length-1,i=k.length-1;1<=l&&0<=i&&C[l]!==k[i];)i--;for(;1<=l&&0<=i;l--,i--)if(C[l]!==k[i]){if(l!==1||i!==1)do if(l--,i--,0>i||C[l]!==k[i]){var Y=`
|
|
46
46
|
`+C[l].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=l&&0<=i);break}}}finally{za=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Pt(n):""}function Us(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return Ra(e.type,!1);case 11:return Ra(e.type.render,!1);case 1:return Ra(e.type,!0);case 31:return Pt("Activity");default:return""}}function Hi(e){try{var t="",n=null;do t+=Us(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
47
|
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var kn=Object.prototype.hasOwnProperty,Vs=a.unstable_scheduleCallback,qs=a.unstable_cancelCallback,px=a.unstable_shouldYield,gx=a.unstable_requestPaint,jt=a.unstable_now,xx=a.unstable_getCurrentPriorityLevel,nd=a.unstable_ImmediatePriority,ld=a.unstable_UserBlockingPriority,Ui=a.unstable_NormalPriority,vx=a.unstable_LowPriority,ad=a.unstable_IdlePriority,yx=a.log,bx=a.unstable_setDisableYieldValue,_a=null,Ct=null;function Ln(e){if(typeof yx=="function"&&bx(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(_a,e)}catch{}}var At=Math.clz32?Math.clz32:jx,wx=Math.log,Sx=Math.LN2;function jx(e){return e>>>=0,e===0?32:31-(wx(e)/Sx|0)|0}var Vi=256,qi=262144,Gi=4194304;function fl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Yi(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~o,l!==0?i=fl(l):(m&=b,m!==0?i=fl(m):n||(n=b&~e,n!==0&&(i=fl(n))))):(b=l&~o,b!==0?i=fl(b):m!==0?i=fl(m):n||(n=l&~e,n!==0&&(i=fl(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Oa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function id(){var e=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),e}function Gs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ax(e,t,n,l,i,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(n=m&~n;0<n;){var Y=31-At(n),Q=1<<Y;b[Y]=0,C[Y]=-1;var L=k[Y];if(L!==null)for(k[Y]=null,Y=0;Y<L.length;Y++){var U=L[Y];U!==null&&(U.lane&=-536870913)}n&=~Q}l!==0&&rd(e,l,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function rd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function sd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-At(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function od(e,t){var n=t&-t;return n=(n&42)!==0?1:Ys(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ys(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cd(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Jh(e.type))}function ud(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Bn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Bn,ht="__reactProps$"+Bn,Ol="__reactContainer$"+Bn,Zs="__reactEvents$"+Bn,Nx="__reactListeners$"+Bn,Ex="__reactHandles$"+Bn,dd="__reactResources$"+Bn,ka="__reactMarker$"+Bn;function Qs(e){delete e[rt],delete e[ht],delete e[Zs],delete e[Nx],delete e[Ex]}function Dl(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ol]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oh(e);e!==null;){if(n=e[rt])return n;e=Oh(e)}return t}e=n,n=e.parentNode}return null}function kl(e){if(e=e[rt]||e[Ol]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function La(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ll(e){var t=e[dd];return t||(t=e[dd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[ka]=!0}var fd=new Set,md={};function ml(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(md[e]=t,e=0;e<t.length;e++)fd.add(t[e])}var Tx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hd={},pd={};function Mx(e){return kn.call(pd,e)?!0:kn.call(hd,e)?!1:Tx.test(e)?pd[e]=!0:(hd[e]=!0,!1)}function Xi(e,t,n){if(Mx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Zi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zx(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){if(!e._valueTracker){var t=gd(e)?"checked":"value";e._valueTracker=zx(e,t,""+e[t])}}function xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=gd(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Qi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Rx=/[\n"\\]/g;function Ht(e){return e.replace(Rx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $s(e,t,n,l,i,o,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Js(e,m,Bt(t)):n!=null?Js(e,m,Bt(n)):l!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Bt(b):e.removeAttribute("name")}function vd(e,t,n,l,i,o,m,b){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ks(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ks(e)}function Js(e,t,n){t==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Hl(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function yd(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function bd(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(pe(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Ks(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _x=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wd(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||_x.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Sd(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&wd(e,i,l)}else for(var o in t)t.hasOwnProperty(o)&&wd(e,o,t[o])}function Fs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ki(e){return Dx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mn(){}var Ws=null;function Is(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,ql=null;function jd(e){var t=kl(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if($s(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[ht]||null;if(!i)throw Error(s(90));$s(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&xd(l)}break e;case"textarea":yd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Hl(e,!!n.multiple,t,!1)}}}var Ps=!1;function Cd(e,t,n){if(Ps)return e(t,n);Ps=!0;try{var l=e(t);return l}finally{if(Ps=!1,(Vl!==null||ql!==null)&&(Dr(),Vl&&(t=Vl,e=ql,ql=Vl=null,jd(t),e)))for(t=0;t<e.length;t++)jd(e[t])}}function Ba(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ht]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eo=!1;if(hn)try{var Ha={};Object.defineProperty(Ha,"passive",{get:function(){eo=!0}}),window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{eo=!1}var Hn=null,to=null,$i=null;function Ad(){if($i)return $i;var e,t=to,n=t.length,l,i="value"in Hn?Hn.value:Hn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===i[o-l];l++);return $i=i.slice(e,1<l?1-l:void 0)}function Ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fi(){return!0}function Nd(){return!1}function pt(e){function t(n,l,i,o,m){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(o):o[b]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fi:Nd,this.isPropagationStopped=Nd,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wi=pt(hl),Ua=v({},hl,{view:0,detail:0}),kx=pt(Ua),no,lo,Va,Ii=v({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:io,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Va&&(Va&&e.type==="mousemove"?(no=e.screenX-Va.screenX,lo=e.screenY-Va.screenY):lo=no=0,Va=e),no)},movementY:function(e){return"movementY"in e?e.movementY:lo}}),Ed=pt(Ii),Lx=v({},Ii,{dataTransfer:0}),Bx=pt(Lx),Hx=v({},Ua,{relatedTarget:0}),ao=pt(Hx),Ux=v({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vx=pt(Ux),qx=v({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gx=pt(qx),Yx=v({},hl,{data:0}),Td=pt(Yx),Xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qx[e])?!!t[e]:!1}function io(){return Kx}var $x=v({},Ua,{key:function(e){if(e.key){var t=Xx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:io,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jx=pt($x),Fx=v({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Md=pt(Fx),Wx=v({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:io}),Ix=pt(Wx),Px=v({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=pt(Px),tv=v({},Ii,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nv=pt(tv),lv=v({},hl,{newState:0,oldState:0}),av=pt(lv),iv=[9,13,27,32],ro=hn&&"CompositionEvent"in window,qa=null;hn&&"documentMode"in document&&(qa=document.documentMode);var rv=hn&&"TextEvent"in window&&!qa,zd=hn&&(!ro||qa&&8<qa&&11>=qa),Rd=" ",_d=!1;function Od(e,t){switch(e){case"keyup":return iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function sv(e,t){switch(e){case"compositionend":return Dd(t);case"keypress":return t.which!==32?null:(_d=!0,Rd);case"textInput":return e=t.data,e===Rd&&_d?null:e;default:return null}}function ov(e,t){if(Gl)return e==="compositionend"||!ro&&Od(e,t)?(e=Ad(),$i=to=Hn=null,Gl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zd&&t.locale!=="ko"?null:t.data;default:return null}}var cv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cv[e.type]:t==="textarea"}function Ld(e,t,n,l){Vl?ql?ql.push(l):ql=[l]:Vl=l,t=qr(t,"onChange"),0<t.length&&(n=new Wi("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ga=null,Ya=null;function uv(e){yh(e,0)}function Pi(e){var t=La(e);if(xd(t))return e}function Bd(e,t){if(e==="change")return t}var Hd=!1;if(hn){var so;if(hn){var oo="oninput"in document;if(!oo){var Ud=document.createElement("div");Ud.setAttribute("oninput","return;"),oo=typeof Ud.oninput=="function"}so=oo}else so=!1;Hd=so&&(!document.documentMode||9<document.documentMode)}function Vd(){Ga&&(Ga.detachEvent("onpropertychange",qd),Ya=Ga=null)}function qd(e){if(e.propertyName==="value"&&Pi(Ya)){var t=[];Ld(t,Ya,e,Is(e)),Cd(uv,t)}}function dv(e,t,n){e==="focusin"?(Vd(),Ga=t,Ya=n,Ga.attachEvent("onpropertychange",qd)):e==="focusout"&&Vd()}function fv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(Ya)}function mv(e,t){if(e==="click")return Pi(t)}function hv(e,t){if(e==="input"||e==="change")return Pi(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:pv;function Xa(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!kn.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yd(e,t){var n=Gd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gd(n)}}function Xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gv=hn&&"documentMode"in document&&11>=document.documentMode,Yl=null,uo=null,Za=null,fo=!1;function Qd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fo||Yl==null||Yl!==Qi(l)||(l=Yl,"selectionStart"in l&&co(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Za&&Xa(Za,l)||(Za=l,l=qr(uo,"onSelect"),0<l.length&&(t=new Wi("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Yl)))}function pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xl={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},mo={},Kd={};hn&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function gl(e){if(mo[e])return mo[e];if(!Xl[e])return e;var t=Xl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kd)return mo[e]=t[n];return e}var $d=gl("animationend"),Jd=gl("animationiteration"),Fd=gl("animationstart"),xv=gl("transitionrun"),vv=gl("transitionstart"),yv=gl("transitioncancel"),Wd=gl("transitionend"),Id=new Map,ho="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ho.push("scrollEnd");function Kt(e,t){Id.set(e,t),ml(t,[e])}var er=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Zl=0,po=0;function tr(){for(var e=Zl,t=po=Zl=0;t<e;){var n=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var o=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var m=l.pending;m===null?i.next=i:(i.next=m.next,m.next=i),l.pending=i}o!==0&&Pd(n,i,o)}}function nr(e,t,n,l){Ut[Zl++]=e,Ut[Zl++]=t,Ut[Zl++]=n,Ut[Zl++]=l,po|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function go(e,t,n,l){return nr(e,t,n,l),lr(e)}function xl(e,t){return nr(e,null,null,t),lr(e)}function Pd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-At(n),e=o.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),o):null}function lr(e){if(50<mi)throw mi=0,Ac=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function bv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,l){return new bv(e,t,n,l)}function xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ef(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ar(e,t,n,l,i,o){var m=0;if(l=e,typeof e=="function")xo(e)&&(m=1);else if(typeof e=="string")m=A1(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Et(31,n,t,i),e.elementType=te,e.lanes=o,e;case E:return vl(n.children,i,o,t);case N:m=8,i|=24;break;case z:return e=Et(12,n,t,i|2),e.elementType=z,e.lanes=o,e;case $:return e=Et(13,n,t,i),e.elementType=$,e.lanes=o,e;case J:return e=Et(19,n,t,i),e.elementType=J,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:m=10;break e;case H:m=9;break e;case V:m=11;break e;case K:m=14;break e;case q:m=16,l=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Et(m,n,t,i),t.elementType=e,t.type=l,t.lanes=o,t}function vl(e,t,n,l){return e=Et(7,e,l,t),e.lanes=n,e}function vo(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function tf(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function yo(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nf=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var n=nf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hi(t)},nf.set(e,t),t)}return{value:e,source:t,stack:Hi(t)}}var Kl=[],$l=0,ir=null,Qa=0,qt=[],Gt=0,Un=null,en=1,tn="";function gn(e,t){Kl[$l++]=Qa,Kl[$l++]=ir,ir=e,Qa=t}function lf(e,t,n){qt[Gt++]=en,qt[Gt++]=tn,qt[Gt++]=Un,Un=e;var l=en;e=tn;var i=32-At(l)-1;l&=~(1<<i),n+=1;var o=32-At(t)+i;if(30<o){var m=i-i%5;o=(l&(1<<m)-1).toString(32),l>>=m,i-=m,en=1<<32-At(t)+i|n<<i|l,tn=o+e}else en=1<<o|n<<i|l,tn=e}function bo(e){e.return!==null&&(gn(e,1),lf(e,1,0))}function wo(e){for(;e===ir;)ir=Kl[--$l],Kl[$l]=null,Qa=Kl[--$l],Kl[$l]=null;for(;e===Un;)Un=qt[--Gt],qt[Gt]=null,tn=qt[--Gt],qt[Gt]=null,en=qt[--Gt],qt[Gt]=null}function af(e,t){qt[Gt++]=en,qt[Gt++]=tn,qt[Gt++]=Un,en=t.id,tn=t.overflow,Un=e}var st=null,Ve=null,Ee=!1,Vn=null,Yt=!1,So=Error(s(519));function qn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(Vt(t,e)),So}function rf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[rt]=e,t[ht]=l,n){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(n=0;n<pi.length;n++)je(pi[n],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),vd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),bd(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||jh(t.textContent,n)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||qn(e,!0)}function sf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:st=st.return}}function Jl(e){if(e!==st)return!1;if(!Ee)return sf(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Vc(e.type,e.memoizedProps)),n=!n),n&&Ve&&qn(e),sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ve=_h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ve=_h(e)}else t===27?(t=Ve,tl(e.type)?(e=Zc,Zc=null,Ve=e):Ve=t):Ve=st?Zt(e.stateNode.nextSibling):null;return!0}function yl(){Ve=st=null,Ee=!1}function jo(){var e=Vn;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Vn=null),e}function Ka(e){Vn===null?Vn=[e]:Vn.push(e)}var Co=T(null),bl=null,xn=null;function Gn(e,t,n){F(Co,t._currentValue),t._currentValue=n}function vn(e){e._currentValue=Co.current,X(Co)}function Ao(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function No(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var m=i.child;o=o.firstContext;e:for(;o!==null;){var b=o;o=i;for(var C=0;C<t.length;C++)if(b.context===t[C]){o.lanes|=n,b=o.alternate,b!==null&&(b.lanes|=n),Ao(o.return,n,e),l||(m=null);break e}o=b.next}}else if(i.tag===18){if(m=i.return,m===null)throw Error(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Ao(m,n,e),m=null}else m=i.child;if(m!==null)m.return=i;else for(m=i;m!==null;){if(m===e){m=null;break}if(i=m.sibling,i!==null){i.return=m.return,m=i;break}m=m.return}i=m}}function Fl(e,t,n,l){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var m=i.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var b=i.type;Nt(i.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(i===P.current){if(m=i.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(bi):e=[bi])}i=i.return}e!==null&&No(t,e,n,l),t.flags|=262144}function rr(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wl(e){bl=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return of(bl,e)}function sr(e,t){return bl===null&&wl(e),of(e,t)}function of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xn===null){if(e===null)throw Error(s(308));xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xn=xn.next=t;return n}var wv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Sv=a.unstable_scheduleCallback,jv=a.unstable_NormalPriority,$e={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eo(){return{controller:new wv,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&Sv(jv,function(){e.controller.abort()})}var Ja=null,To=0,Wl=0,Il=null;function Cv(e,t){if(Ja===null){var n=Ja=[];To=0,Wl=Rc(),Il={status:"pending",value:void 0,then:function(l){n.push(l)}}}return To++,t.then(cf,cf),t}function cf(){if(--To===0&&Ja!==null){Il!==null&&(Il.status="fulfilled");var e=Ja;Ja=null,Wl=0,Il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Av(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var uf=_.S;_.S=function(e,t){Km=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cv(e,t),uf!==null&&uf(e,t)};var Sl=T(null);function Mo(){var e=Sl.current;return e!==null?e:Be.pooledCache}function or(e,t){t===null?F(Sl,Sl.current):F(Sl,t.pool)}function df(){var e=Mo();return e===null?null:{parent:$e._currentValue,pool:e}}var Pl=Error(s(460)),zo=Error(s(474)),cr=Error(s(542)),ur={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mn,mn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pf(e),e;default:if(typeof t.status=="string")t.then(mn,mn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pf(e),e}throw Cl=t,Pl}}function jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Cl=n,Pl):n}}var Cl=null;function hf(){if(Cl===null)throw Error(s(459));var e=Cl;return Cl=null,e}function pf(e){if(e===Pl||e===cr)throw Error(s(483))}var ea=null,Fa=0;function dr(e){var t=Fa;return Fa+=1,ea===null&&(ea=[]),mf(ea,e,t)}function Wa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fr(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gf(e){function t(R,M){if(e){var D=R.deletions;D===null?(R.deletions=[M],R.flags|=16):D.push(M)}}function n(R,M){if(!e)return null;for(;M!==null;)t(R,M),M=M.sibling;return null}function l(R){for(var M=new Map;R!==null;)R.key!==null?M.set(R.key,R):M.set(R.index,R),R=R.sibling;return M}function i(R,M){return R=pn(R,M),R.index=0,R.sibling=null,R}function o(R,M,D){return R.index=D,e?(D=R.alternate,D!==null?(D=D.index,D<M?(R.flags|=67108866,M):D):(R.flags|=67108866,M)):(R.flags|=1048576,M)}function m(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function b(R,M,D,Z){return M===null||M.tag!==6?(M=vo(D,R.mode,Z),M.return=R,M):(M=i(M,D),M.return=R,M)}function C(R,M,D,Z){var ce=D.type;return ce===E?Y(R,M,D.props.children,Z,D.key):M!==null&&(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&jl(ce)===M.type)?(M=i(M,D.props),Wa(M,D),M.return=R,M):(M=ar(D.type,D.key,D.props,null,R.mode,Z),Wa(M,D),M.return=R,M)}function k(R,M,D,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=yo(D,R.mode,Z),M.return=R,M):(M=i(M,D.children||[]),M.return=R,M)}function Y(R,M,D,Z,ce){return M===null||M.tag!==7?(M=vl(D,R.mode,Z,ce),M.return=R,M):(M=i(M,D),M.return=R,M)}function Q(R,M,D){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=vo(""+M,R.mode,D),M.return=R,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return D=ar(M.type,M.key,M.props,null,R.mode,D),Wa(D,M),D.return=R,D;case A:return M=yo(M,R.mode,D),M.return=R,M;case q:return M=jl(M),Q(R,M,D)}if(pe(M)||re(M))return M=vl(M,R.mode,D,null),M.return=R,M;if(typeof M.then=="function")return Q(R,dr(M),D);if(M.$$typeof===O)return Q(R,sr(R,M),D);fr(R,M)}return null}function L(R,M,D,Z){var ce=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ce!==null?null:b(R,M,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case j:return D.key===ce?C(R,M,D,Z):null;case A:return D.key===ce?k(R,M,D,Z):null;case q:return D=jl(D),L(R,M,D,Z)}if(pe(D)||re(D))return ce!==null?null:Y(R,M,D,Z,null);if(typeof D.then=="function")return L(R,M,dr(D),Z);if(D.$$typeof===O)return L(R,M,sr(R,D),Z);fr(R,D)}return null}function U(R,M,D,Z,ce){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return R=R.get(D)||null,b(M,R,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:return R=R.get(Z.key===null?D:Z.key)||null,C(M,R,Z,ce);case A:return R=R.get(Z.key===null?D:Z.key)||null,k(M,R,Z,ce);case q:return Z=jl(Z),U(R,M,D,Z,ce)}if(pe(Z)||re(Z))return R=R.get(D)||null,Y(M,R,Z,ce,null);if(typeof Z.then=="function")return U(R,M,D,dr(Z),ce);if(Z.$$typeof===O)return U(R,M,D,sr(M,Z),ce);fr(M,Z)}return null}function ne(R,M,D,Z){for(var ce=null,Me=null,se=M,ye=M=0,Ae=null;se!==null&&ye<D.length;ye++){se.index>ye?(Ae=se,se=null):Ae=se.sibling;var ze=L(R,se,D[ye],Z);if(ze===null){se===null&&(se=Ae);break}e&&se&&ze.alternate===null&&t(R,se),M=o(ze,M,ye),Me===null?ce=ze:Me.sibling=ze,Me=ze,se=Ae}if(ye===D.length)return n(R,se),Ee&&gn(R,ye),ce;if(se===null){for(;ye<D.length;ye++)se=Q(R,D[ye],Z),se!==null&&(M=o(se,M,ye),Me===null?ce=se:Me.sibling=se,Me=se);return Ee&&gn(R,ye),ce}for(se=l(se);ye<D.length;ye++)Ae=U(se,R,ye,D[ye],Z),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?ye:Ae.key),M=o(Ae,M,ye),Me===null?ce=Ae:Me.sibling=Ae,Me=Ae);return e&&se.forEach(function(rl){return t(R,rl)}),Ee&&gn(R,ye),ce}function de(R,M,D,Z){if(D==null)throw Error(s(151));for(var ce=null,Me=null,se=M,ye=M=0,Ae=null,ze=D.next();se!==null&&!ze.done;ye++,ze=D.next()){se.index>ye?(Ae=se,se=null):Ae=se.sibling;var rl=L(R,se,ze.value,Z);if(rl===null){se===null&&(se=Ae);break}e&&se&&rl.alternate===null&&t(R,se),M=o(rl,M,ye),Me===null?ce=rl:Me.sibling=rl,Me=rl,se=Ae}if(ze.done)return n(R,se),Ee&&gn(R,ye),ce;if(se===null){for(;!ze.done;ye++,ze=D.next())ze=Q(R,ze.value,Z),ze!==null&&(M=o(ze,M,ye),Me===null?ce=ze:Me.sibling=ze,Me=ze);return Ee&&gn(R,ye),ce}for(se=l(se);!ze.done;ye++,ze=D.next())ze=U(se,R,ye,ze.value,Z),ze!==null&&(e&&ze.alternate!==null&&se.delete(ze.key===null?ye:ze.key),M=o(ze,M,ye),Me===null?ce=ze:Me.sibling=ze,Me=ze);return e&&se.forEach(function(L1){return t(R,L1)}),Ee&&gn(R,ye),ce}function Le(R,M,D,Z){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case j:e:{for(var ce=D.key;M!==null;){if(M.key===ce){if(ce=D.type,ce===E){if(M.tag===7){n(R,M.sibling),Z=i(M,D.props.children),Z.return=R,R=Z;break e}}else if(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&jl(ce)===M.type){n(R,M.sibling),Z=i(M,D.props),Wa(Z,D),Z.return=R,R=Z;break e}n(R,M);break}else t(R,M);M=M.sibling}D.type===E?(Z=vl(D.props.children,R.mode,Z,D.key),Z.return=R,R=Z):(Z=ar(D.type,D.key,D.props,null,R.mode,Z),Wa(Z,D),Z.return=R,R=Z)}return m(R);case A:e:{for(ce=D.key;M!==null;){if(M.key===ce)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){n(R,M.sibling),Z=i(M,D.children||[]),Z.return=R,R=Z;break e}else{n(R,M);break}else t(R,M);M=M.sibling}Z=yo(D,R.mode,Z),Z.return=R,R=Z}return m(R);case q:return D=jl(D),Le(R,M,D,Z)}if(pe(D))return ne(R,M,D,Z);if(re(D)){if(ce=re(D),typeof ce!="function")throw Error(s(150));return D=ce.call(D),de(R,M,D,Z)}if(typeof D.then=="function")return Le(R,M,dr(D),Z);if(D.$$typeof===O)return Le(R,M,sr(R,D),Z);fr(R,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,M!==null&&M.tag===6?(n(R,M.sibling),Z=i(M,D),Z.return=R,R=Z):(n(R,M),Z=vo(D,R.mode,Z),Z.return=R,R=Z),m(R)):n(R,M)}return function(R,M,D,Z){try{Fa=0;var ce=Le(R,M,D,Z);return ea=null,ce}catch(se){if(se===Pl||se===cr)throw se;var Me=Et(29,se,null,R.mode);return Me.lanes=Z,Me.return=R,Me}finally{}}}var Al=gf(!0),xf=gf(!1),Yn=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _o(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=lr(e),Pd(e,null,n),t}return nr(e,l,t,n),lr(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,sd(e,n)}}function Oo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Do=!1;function Pa(){if(Do){var e=Il;if(e!==null)throw e}}function ei(e,t,n,l){Do=!1;var i=e.updateQueue;Yn=!1;var o=i.firstBaseUpdate,m=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var C=b,k=C.next;C.next=null,m===null?o=k:m.next=k,m=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==m&&(b===null?Y.firstBaseUpdate=k:b.next=k,Y.lastBaseUpdate=C))}if(o!==null){var Q=i.baseState;m=0,Y=k=C=null,b=o;do{var L=b.lane&-536870913,U=L!==b.lane;if(U?(Ce&L)===L:(l&L)===L){L!==0&&L===Wl&&(Do=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,de=b;L=t;var Le=n;switch(de.tag){case 1:if(ne=de.payload,typeof ne=="function"){Q=ne.call(Le,Q,L);break e}Q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=de.payload,L=typeof ne=="function"?ne.call(Le,Q,L):ne,L==null)break e;Q=v({},Q,L);break e;case 2:Yn=!0}}L=b.callback,L!==null&&(e.flags|=64,U&&(e.flags|=8192),U=i.callbacks,U===null?i.callbacks=[L]:U.push(L))}else U={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(k=Y=U,C=Q):Y=Y.next=U,m|=L;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;U=b,b=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);Y===null&&(C=Q),i.baseState=C,i.firstBaseUpdate=k,i.lastBaseUpdate=Y,o===null&&(i.shared.lanes=0),Fn|=m,e.lanes=m,e.memoizedState=Q}}function vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function yf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vf(n[e],t)}var ta=T(null),mr=T(0);function bf(e,t){e=En,F(mr,e),F(ta,t),En=e|t.baseLanes}function ko(){F(mr,En),F(ta,ta.current)}function Lo(){En=mr.current,X(ta),X(mr)}var Tt=T(null),Xt=null;function Qn(e){var t=e.alternate;F(Qe,Qe.current&1),F(Tt,e),Xt===null&&(t===null||ta.current!==null||t.memoizedState!==null)&&(Xt=e)}function Bo(e){F(Qe,Qe.current),F(Tt,e),Xt===null&&(Xt=e)}function wf(e){e.tag===22?(F(Qe,Qe.current),F(Tt,e),Xt===null&&(Xt=e)):Kn()}function Kn(){F(Qe,Qe.current),F(Tt,Tt.current)}function Mt(e){X(Tt),Xt===e&&(Xt=null),X(Qe)}var Qe=T(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yc(n)||Xc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yn=0,ve=null,De=null,Je=null,pr=!1,na=!1,Nl=!1,gr=0,ti=0,la=null,Nv=0;function Xe(){throw Error(s(321))}function Ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Uo(e,t,n,l,i,o){return yn=o,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?am:ec,Nl=!1,o=n(l,i),Nl=!1,na&&(o=jf(t,n,l,i)),Sf(e),o}function Sf(e){_.H=ai;var t=De!==null&&De.next!==null;if(yn=0,Je=De=ve=null,pr=!1,ti=0,la=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&rr(e)&&(Fe=!0))}function jf(e,t,n,l){ve=e;var i=0;do{if(na&&(la=null),ti=0,na=!1,25<=i)throw Error(s(301));if(i+=1,Je=De=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=im,o=t(n,l)}while(na);return o}function Ev(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function Vo(){var e=gr!==0;return gr=0,e}function qo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Go(e){if(pr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pr=!1}yn=0,Je=De=ve=null,na=!1,ti=gr=0,la=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ve.memoizedState=Je=e:Je=Je.next=e,Je}function Ke(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Je===null?ve.memoizedState:Je.next;if(t!==null)Je=t,De=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Je===null?ve.memoizedState=Je=e:Je=Je.next=e}return Je}function xr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=ti;return ti+=1,la===null&&(la=[]),e=mf(la,e,t),t=ve,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?am:ec),e}function vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===O)return ot(e)}throw Error(s(438,String(e)))}function Yo(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xr(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function bn(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=Ke();return Xo(t,De,e)}function Xo(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var i=e.baseQueue,o=l.pending;if(o!==null){if(i!==null){var m=i.next;i.next=o.next,o.next=m}t.baseQueue=i=o,l.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var b=m=null,C=null,k=t,Y=!1;do{var Q=k.lane&-536870913;if(Q!==k.lane?(Ce&Q)===Q:(yn&Q)===Q){var L=k.revertLane;if(L===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),Q===Wl&&(Y=!0);else if((yn&L)===L){k=k.next,L===Wl&&(Y=!0);continue}else Q={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(b=C=Q,m=o):C=C.next=Q,ve.lanes|=L,Fn|=L;Q=k.action,Nl&&n(o,Q),o=k.hasEagerState?k.eagerState:n(o,Q)}else L={lane:Q,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(b=C=L,m=o):C=C.next=L,ve.lanes|=Q,Fn|=Q;k=k.next}while(k!==null&&k!==t);if(C===null?m=o:C.next=b,!Nt(o,e.memoizedState)&&(Fe=!0,Y&&(n=Il,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=C,l.lastRenderedState=o}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Zo(e){var t=Ke(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var m=i=i.next;do o=e(o,m.action),m=m.next;while(m!==i);Nt(o,t.memoizedState)||(Fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function Cf(e,t,n){var l=ve,i=Ke(),o=Ee;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!Nt((De||i).memoizedState,n);if(m&&(i.memoizedState=n,Fe=!0),i=i.queue,$o(Ef.bind(null,l,i,e),[e]),i.getSnapshot!==t||m||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,aa(9,{destroy:void 0},Nf.bind(null,l,i,n,t),null),Be===null)throw Error(s(349));o||(yn&127)!==0||Af(l,t,n)}return n}function Af(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=xr(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Nf(e,t,n,l){t.value=n,t.getSnapshot=l,Tf(t)&&Mf(e)}function Ef(e,t,n){return n(function(){Tf(t)&&Mf(e)})}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function Mf(e){var t=xl(e,2);t!==null&&bt(t,e,2)}function Qo(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Nl){Ln(!0);try{n()}finally{Ln(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t}function zf(e,t,n,l){return e.baseState=n,Xo(e,De,typeof l=="function"?l:bn)}function Tv(e,t,n,l,i){if(Sr(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};_.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Rf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Rf(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var b=n(i,l),C=_.S;C!==null&&C(m,b),_f(e,t,b)}catch(k){Ko(e,t,k)}finally{o!==null&&m.types!==null&&(o.types=m.types),_.T=o}}else try{o=n(i,l),_f(e,t,o)}catch(k){Ko(e,t,k)}}function _f(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Of(e,t,l)},function(l){return Ko(e,t,l)}):Of(e,t,n)}function Of(e,t,n){t.status="fulfilled",t.value=n,Df(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Rf(e,n)))}function Ko(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Df(t),t=t.next;while(t!==l)}e.action=null}function Df(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kf(e,t){return t}function Lf(e,t){if(Ee){var n=Be.formState;if(n!==null){e:{var l=ve;if(Ee){if(Ve){t:{for(var i=Ve,o=Yt;i.nodeType!==8;){if(!o){i=null;break t}if(i=Zt(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ve=Zt(i.nextSibling),l=i.data==="F!";break e}}qn(l)}l=!1}l&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kf,lastRenderedState:t},n.queue=l,n=tm.bind(null,ve,l),l.dispatch=n,l=Qo(!1),o=Po.bind(null,ve,!1,l.queue),l=mt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=Tv.bind(null,ve,i,o,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function Bf(e){var t=Ke();return Hf(t,De,e)}function Hf(e,t,n){if(t=Xo(e,t,kf)[0],e=yr(bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ni(t)}catch(m){throw m===Pl?cr:m}else l=t;t=Ke();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,aa(9,{destroy:void 0},Mv.bind(null,i,n),null)),[l,o,e]}function Mv(e,t){e.action=t}function Uf(e){var t=Ke(),n=De;if(n!==null)return Hf(t,n,e);Ke(),t=t.memoizedState,n=Ke();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function aa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=xr(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Vf(){return Ke().memoizedState}function br(e,t,n,l){var i=mt();ve.flags|=e,i.memoizedState=aa(1|t,{destroy:void 0},n,l===void 0?null:l)}function wr(e,t,n,l){var i=Ke();l=l===void 0?null:l;var o=i.memoizedState.inst;De!==null&&l!==null&&Ho(l,De.memoizedState.deps)?i.memoizedState=aa(t,o,n,l):(ve.flags|=e,i.memoizedState=aa(1|t,o,n,l))}function qf(e,t){br(8390656,8,e,t)}function $o(e,t){wr(2048,8,e,t)}function zv(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=xr(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Gf(e){var t=Ke().memoizedState;return zv({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Yf(e,t){return wr(4,2,e,t)}function Xf(e,t){return wr(4,4,e,t)}function Zf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qf(e,t,n){n=n!=null?n.concat([e]):null,wr(4,4,Zf.bind(null,t,e),n)}function Jo(){}function Kf(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ho(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function $f(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ho(t,l[1]))return l[0];if(l=e(),Nl){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[l,t],l}function Fo(e,t,n){return n===void 0||(yn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Jm(),ve.lanes|=e,Fn|=e,n)}function Jf(e,t,n,l){return Nt(n,t)?n:ta.current!==null?(e=Fo(e,n,l),Nt(e,t)||(Fe=!0),e):(yn&42)===0||(yn&1073741824)!==0&&(Ce&261930)===0?(Fe=!0,e.memoizedState=n):(e=Jm(),ve.lanes|=e,Fn|=e,t)}function Ff(e,t,n,l,i){var o=G.p;G.p=o!==0&&8>o?o:8;var m=_.T,b={};_.T=b,Po(e,!1,t,n);try{var C=i(),k=_.S;if(k!==null&&k(b,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=Av(C,l);li(e,t,Y,_t(e))}else li(e,t,l,_t(e))}catch(Q){li(e,t,{then:function(){},status:"rejected",reason:Q},_t())}finally{G.p=o,m!==null&&b.types!==null&&(m.types=b.types),_.T=m}}function Rv(){}function Wo(e,t,n,l){if(e.tag!==5)throw Error(s(476));var i=Wf(e).queue;Ff(e,i,t,B,n===null?Rv:function(){return If(e),n(l)})}function Wf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:B},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function If(e){var t=Wf(e);t.next===null&&(t=e.alternate.memoizedState),li(e,t.next.queue,{},_t())}function Io(){return ot(bi)}function Pf(){return Ke().memoizedState}function em(){return Ke().memoizedState}function _v(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_t();e=Xn(n);var l=Zn(t,e,n);l!==null&&(bt(l,t,n),Ia(l,t,n)),t={cache:Eo()},e.payload=t;return}t=t.return}}function Ov(e,t,n){var l=_t();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(e)?nm(t,n):(n=go(e,t,n,l),n!==null&&(bt(n,e,l),lm(n,t,l)))}function tm(e,t,n){var l=_t();li(e,t,n,l)}function li(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(e))nm(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,b=o(m,n);if(i.hasEagerState=!0,i.eagerState=b,Nt(b,m))return nr(e,t,i,0),Be===null&&tr(),!1}catch{}finally{}if(n=go(e,t,i,l),n!==null)return bt(n,e,l),lm(n,t,l),!0}return!1}function Po(e,t,n,l){if(l={lane:2,revertLane:Rc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Sr(e)){if(t)throw Error(s(479))}else t=go(e,n,l,2),t!==null&&bt(t,e,2)}function Sr(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function nm(e,t){na=pr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,sd(e,n)}}var ai={readContext:ot,use:vr,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};ai.useEffectEvent=Xe;var am={readContext:ot,use:vr,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:qf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,br(4194308,4,Zf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return br(4194308,4,e,t)},useInsertionEffect:function(e,t){br(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var l=e();if(Nl){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=mt();if(n!==void 0){var i=n(t);if(Nl){Ln(!0);try{n(t)}finally{Ln(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=Ov.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=tm.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Jo,useDeferredValue:function(e,t){var n=mt();return Fo(n,e,t)},useTransition:function(){var e=Qo(!1);return e=Ff.bind(null,ve,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ve,i=mt();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Be===null)throw Error(s(349));(Ce&127)!==0||Af(l,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,qf(Ef.bind(null,l,o,e),[e]),l.flags|=2048,aa(9,{destroy:void 0},Nf.bind(null,l,o,n,t),null),n},useId:function(){var e=mt(),t=Be.identifierPrefix;if(Ee){var n=tn,l=en;n=(l&~(1<<32-At(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Nv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Io,useFormState:Lf,useActionState:Lf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Po.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Yo,useCacheRefresh:function(){return mt().memoizedState=_v.bind(null,ve)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ec={readContext:ot,use:vr,useCallback:Kf,useContext:ot,useEffect:$o,useImperativeHandle:Qf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:$f,useReducer:yr,useRef:Vf,useState:function(){return yr(bn)},useDebugValue:Jo,useDeferredValue:function(e,t){var n=Ke();return Jf(n,De.memoizedState,e,t)},useTransition:function(){var e=yr(bn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Cf,useId:Pf,useHostTransitionStatus:Io,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var n=Ke();return zf(n,De,e,t)},useMemoCache:Yo,useCacheRefresh:em};ec.useEffectEvent=Gf;var im={readContext:ot,use:vr,useCallback:Kf,useContext:ot,useEffect:$o,useImperativeHandle:Qf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:$f,useReducer:Zo,useRef:Vf,useState:function(){return Zo(bn)},useDebugValue:Jo,useDeferredValue:function(e,t){var n=Ke();return De===null?Fo(n,e,t):Jf(n,De.memoizedState,e,t)},useTransition:function(){var e=Zo(bn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Cf,useId:Pf,useHostTransitionStatus:Io,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var n=Ke();return De!==null?zf(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Yo,useCacheRefresh:em};im.useEffectEvent=Gf;function tc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=_t(),i=Xn(l);i.payload=t,n!=null&&(i.callback=n),t=Zn(e,i,l),t!==null&&(bt(t,e,l),Ia(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=_t(),i=Xn(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zn(e,i,l),t!==null&&(bt(t,e,l),Ia(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),l=Xn(n);l.tag=2,t!=null&&(l.callback=t),t=Zn(e,l,n),t!==null&&(bt(t,e,n),Ia(t,e,n))}};function rm(e,t,n,l,i,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,m):t.prototype&&t.prototype.isPureReactComponent?!Xa(n,l)||!Xa(i,o):!0}function sm(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&nc.enqueueReplaceState(t,t.state,null)}function El(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function om(e){er(e)}function cm(e){console.error(e)}function um(e){er(e)}function jr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function dm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function lc(e,t,n){return n=Xn(n),n.tag=3,n.payload={element:null},n.callback=function(){jr(e,t)},n}function fm(e){return e=Xn(e),e.tag=3,e}function mm(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=l.value;e.payload=function(){return i(o)},e.callback=function(){dm(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){dm(t,n,l),typeof i!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function Dv(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Fl(t,n,i,!0),n=Tt.current,n!==null){switch(n.tag){case 31:case 13:return Xt===null?kr():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Tc(e,l,i)),!1;case 22:return n.flags|=65536,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Tc(e,l,i)),!1}throw Error(s(435,n.tag))}return Tc(e,l,i),kr(),!1}if(Ee)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==So&&(e=Error(s(422),{cause:l}),Ka(Vt(e,n)))):(l!==So&&(t=Error(s(423),{cause:l}),Ka(Vt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Vt(l,n),i=lc(e.stateNode,l,i),Oo(e,i),Ze!==4&&(Ze=2)),!1;var o=Error(s(520),{cause:l});if(o=Vt(o,n),fi===null?fi=[o]:fi.push(o),Ze!==4&&(Ze=2),t===null)return!0;l=Vt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=lc(n.stateNode,l,e),Oo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Wn===null||!Wn.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=fm(i),mm(i,e,n,l),Oo(n,i),!1}n=n.return}while(n!==null);return!1}var ac=Error(s(461)),Fe=!1;function ct(e,t,n,l){t.child=e===null?xf(t,null,n,l):Al(t,e.child,n,l)}function hm(e,t,n,l,i){n=n.render;var o=t.ref;if("ref"in l){var m={};for(var b in l)b!=="ref"&&(m[b]=l[b])}else m=l;return wl(t),l=Uo(e,t,n,m,o,i),b=Vo(),e!==null&&!Fe?(qo(e,t,i),wn(e,t,i)):(Ee&&b&&bo(t),t.flags|=1,ct(e,t,l,i),t.child)}function pm(e,t,n,l,i){if(e===null){var o=n.type;return typeof o=="function"&&!xo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,gm(e,t,o,l,i)):(e=ar(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!fc(e,i)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xa,n(m,l)&&e.ref===t.ref)return wn(e,t,i)}return t.flags|=1,e=pn(o,l),e.ref=t.ref,e.return=t,t.child=e}function gm(e,t,n,l,i){if(e!==null){var o=e.memoizedProps;if(Xa(o,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=o,fc(e,i))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,wn(e,t,i)}return ic(e,t,n,l,i)}function xm(e,t,n,l){var i=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~o}else l=0,t.child=null;return vm(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,o!==null?o.cachePool:null),o!==null?bf(t,o):ko(),wf(t);else return l=t.lanes=536870912,vm(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(or(t,o.cachePool),bf(t,o),Kn(),t.memoizedState=null):(e!==null&&or(t,null),ko(),Kn());return ct(e,t,i,n),t.child}function ii(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vm(e,t,n,l,i){var o=Mo();return o=o===null?null:{parent:$e._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&or(t,null),ko(),wf(t),e!==null&&Fl(e,t,l,!0),t.childLanes=i,null}function Cr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ym(e,t,n){return Al(t,e.child,null,n),e=Cr(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function kv(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=Cr(t,l),t.lanes=536870912,ii(null,e);if(Bo(t),(e=Ve)?(e=Rh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Un!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=tf(e),n.return=t,t.child=n,st=t,Ve=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Cr(t,l)}var o=e.memoizedState;if(o!==null){var m=o.dehydrated;if(Bo(t),i)if(t.flags&256)t.flags&=-257,t=ym(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Fe||Fl(e,t,n,!1),i=(n&e.childLanes)!==0,Fe||i){if(l=Be,l!==null&&(m=od(l,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,xl(e,m),bt(l,e,m),ac;kr(),t=ym(e,t,n)}else e=o.treeContext,Ve=Zt(m.nextSibling),st=t,Ee=!0,Vn=null,Yt=!1,e!==null&&af(t,e),t=Cr(t,l),t.flags|=4096;return t}return e=pn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ar(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ic(e,t,n,l,i){return wl(t),n=Uo(e,t,n,l,void 0,i),l=Vo(),e!==null&&!Fe?(qo(e,t,i),wn(e,t,i)):(Ee&&l&&bo(t),t.flags|=1,ct(e,t,n,i),t.child)}function bm(e,t,n,l,i,o){return wl(t),t.updateQueue=null,n=jf(t,l,n,i),Sf(e),l=Vo(),e!==null&&!Fe?(qo(e,t,o),wn(e,t,o)):(Ee&&l&&bo(t),t.flags|=1,ct(e,t,n,o),t.child)}function wm(e,t,n,l,i){if(wl(t),t.stateNode===null){var o=Ql,m=n.contextType;typeof m=="object"&&m!==null&&(o=ot(m)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=nc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},Ro(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?ot(m):Ql,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(tc(t,n,m,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&nc.enqueueReplaceState(o,o.state,null),ei(t,l,o,i),Pa(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var b=t.memoizedProps,C=El(n,b);o.props=C;var k=o.context,Y=n.contextType;m=Ql,typeof Y=="object"&&Y!==null&&(m=ot(Y));var Q=n.getDerivedStateFromProps;Y=typeof Q=="function"||typeof o.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,Y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(b||k!==m)&&sm(t,o,l,m),Yn=!1;var L=t.memoizedState;o.state=L,ei(t,l,o,i),Pa(),k=t.memoizedState,b||L!==k||Yn?(typeof Q=="function"&&(tc(t,n,Q,l),k=t.memoizedState),(C=Yn||rm(t,n,C,l,L,k,m))?(Y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),o.props=l,o.state=k,o.context=m,l=C):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,_o(e,t),m=t.memoizedProps,Y=El(n,m),o.props=Y,Q=t.pendingProps,L=o.context,k=n.contextType,C=Ql,typeof k=="object"&&k!==null&&(C=ot(k)),b=n.getDerivedStateFromProps,(k=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==Q||L!==C)&&sm(t,o,l,C),Yn=!1,L=t.memoizedState,o.state=L,ei(t,l,o,i),Pa();var U=t.memoizedState;m!==Q||L!==U||Yn||e!==null&&e.dependencies!==null&&rr(e.dependencies)?(typeof b=="function"&&(tc(t,n,b,l),U=t.memoizedState),(Y=Yn||rm(t,n,Y,l,L,U,C)||e!==null&&e.dependencies!==null&&rr(e.dependencies))?(k||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,U,C),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,U,C)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),o.props=l,o.state=U,o.context=C,l=Y):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,Ar(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,i),t.child=Al(t,null,n,i)):ct(e,t,n,i),t.memoizedState=o.state,e=t.child):e=wn(e,t,i),e}function Sm(e,t,n,l){return yl(),t.flags|=256,ct(e,t,n,l),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(e){return{baseLanes:e,cachePool:df()}}function oc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function jm(e,t,n){var l=t.pendingProps,i=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),m&&(i=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?Qn(t):Kn(),(e=Ve)?(e=Rh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Un!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=tf(e),n.return=t,t.child=n,st=t,Ve=null)):e=null,e===null)throw qn(t);return Xc(e)?t.lanes=32:t.lanes=536870912,null}var b=l.children;return l=l.fallback,i?(Kn(),i=t.mode,b=Nr({mode:"hidden",children:b},i),l=vl(l,i,n,null),b.return=t,l.return=t,b.sibling=l,t.child=b,l=t.child,l.memoizedState=sc(n),l.childLanes=oc(e,m,n),t.memoizedState=rc,ii(null,l)):(Qn(t),cc(t,b))}var C=e.memoizedState;if(C!==null&&(b=C.dehydrated,b!==null)){if(o)t.flags&256?(Qn(t),t.flags&=-257,t=uc(e,t,n)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),b=l.fallback,i=t.mode,l=Nr({mode:"visible",children:l.children},i),b=vl(b,i,n,null),b.flags|=2,l.return=t,b.return=t,l.sibling=b,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=sc(n),l.childLanes=oc(e,m,n),t.memoizedState=rc,t=ii(null,l));else if(Qn(t),Xc(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var k=m.dgst;m=k,l=Error(s(419)),l.stack="",l.digest=m,Ka({value:l,source:null,stack:null}),t=uc(e,t,n)}else if(Fe||Fl(e,t,n,!1),m=(n&e.childLanes)!==0,Fe||m){if(m=Be,m!==null&&(l=od(m,n),l!==0&&l!==C.retryLane))throw C.retryLane=l,xl(e,l),bt(m,e,l),ac;Yc(b)||kr(),t=uc(e,t,n)}else Yc(b)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ve=Zt(b.nextSibling),st=t,Ee=!0,Vn=null,Yt=!1,e!==null&&af(t,e),t=cc(t,l.children),t.flags|=4096);return t}return i?(Kn(),b=l.fallback,i=t.mode,C=e.child,k=C.sibling,l=pn(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,k!==null?b=pn(k,b):(b=vl(b,i,n,null),b.flags|=2),b.return=t,l.return=t,l.sibling=b,t.child=l,ii(null,l),l=t.child,b=e.child.memoizedState,b===null?b=sc(n):(i=b.cachePool,i!==null?(C=$e._currentValue,i=i.parent!==C?{parent:C,pool:C}:i):i=df(),b={baseLanes:b.baseLanes|n,cachePool:i}),l.memoizedState=b,l.childLanes=oc(e,m,n),t.memoizedState=rc,ii(e.child,l)):(Qn(t),n=e.child,e=n.sibling,n=pn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function cc(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function uc(e,t,n){return Al(t,e.child,null,n),e=cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ao(e.return,t,n)}function dc(e,t,n,l,i,o){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:o}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=i,m.treeForkCount=o)}function Am(e,t,n){var l=t.pendingProps,i=l.revealOrder,o=l.tail;l=l.children;var m=Qe.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,F(Qe,m),ct(e,t,l,n),l=Ee?Qa:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,n,t);else if(e.tag===19)Cm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&hr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&hr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,o,l);break;case"together":dc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&rr(e)))}function Lv(e,t,n){switch(t.tag){case 3:Ne(t,t.stateNode.containerInfo),Gn(t,$e,e.memoizedState.cache),yl();break;case 27:case 5:Ye(t);break;case 4:Ne(t,t.stateNode.containerInfo);break;case 10:Gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?jm(e,t,n):(Qn(t),e=wn(e,t,n),e!==null?e.sibling:null);Qn(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Fl(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return Am(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,xm(e,t,n,t.pendingProps);case 24:Gn(t,$e,e.memoizedState.cache)}return wn(e,t,n)}function Nm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!fc(e,n)&&(t.flags&128)===0)return Fe=!1,Lv(e,t,n);Fe=(e.flags&131072)!==0}else Fe=!1,Ee&&(t.flags&1048576)!==0&&lf(t,Qa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")xo(e)?(l=El(e,l),t.tag=1,t=wm(null,t,e,l,n)):(t.tag=0,t=ic(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=hm(null,t,e,l,n);break e}else if(i===K){t.tag=14,t=pm(null,t,e,l,n);break e}}throw t=fe(e)||e,Error(s(306,t,""))}}return t;case 0:return ic(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=El(l,t.pendingProps),wm(e,t,l,i,n);case 3:e:{if(Ne(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var o=t.memoizedState;i=o.element,_o(e,t),ei(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Gn(t,$e,l),l!==o.cache&&No(t,[$e],n,!0),Pa(),l=m.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Sm(e,t,l,n);break e}else if(l!==i){i=Vt(Error(s(424)),t),Ka(i),t=Sm(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ve=Zt(e.firstChild),st=t,Ee=!0,Vn=null,Yt=!0,n=xf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(yl(),l===i){t=wn(e,t,n);break e}ct(e,t,l,n)}t=t.child}return t;case 26:return Ar(e,t),e===null?(n=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,l=Gr(ge.current).createElement(n),l[rt]=t,l[ht]=e,ut(l,n,e),lt(l),t.stateNode=l):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ye(t),e===null&&Ee&&(l=t.stateNode=Dh(t.type,t.pendingProps,ge.current),st=t,Yt=!0,i=Ve,tl(t.type)?(Zc=i,Ve=Zt(l.firstChild)):Ve=i),ct(e,t,t.pendingProps.children,n),Ar(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=l=Ve)&&(l=f1(l,t.type,t.pendingProps,Yt),l!==null?(t.stateNode=l,st=t,Ve=Zt(l.firstChild),Yt=!1,i=!0):i=!1),i||qn(t)),Ye(t),i=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,l=o.children,Vc(i,o)?l=null:m!==null&&Vc(i,m)&&(t.flags|=32),t.memoizedState!==null&&(i=Uo(e,t,Ev,null,null,n),bi._currentValue=i),Ar(e,t),ct(e,t,l,n),t.child;case 6:return e===null&&Ee&&((e=n=Ve)&&(n=m1(n,t.pendingProps,Yt),n!==null?(t.stateNode=n,st=t,Ve=null,e=!0):e=!1),e||qn(t)),null;case 13:return jm(e,t,n);case 4:return Ne(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):ct(e,t,l,n),t.child;case 11:return hm(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Gn(t,t.type,l.value),ct(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,wl(t),i=ot(i),l=l(i),t.flags|=1,ct(e,t,l,n),t.child;case 14:return pm(e,t,t.type,t.pendingProps,n);case 15:return gm(e,t,t.type,t.pendingProps,n);case 19:return Am(e,t,n);case 31:return kv(e,t,n);case 22:return xm(e,t,n,t.pendingProps);case 24:return wl(t),l=ot($e),e===null?(i=Mo(),i===null&&(i=Be,o=Eo(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:l,cache:i},Ro(t),Gn(t,$e,i)):((e.lanes&n)!==0&&(_o(e,t),ei(t,null,null,n),Pa()),i=e.memoizedState,o=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gn(t,$e,l)):(l=o.cache,Gn(t,$e,l),l!==i.cache&&No(t,[$e],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Sn(e){e.flags|=4}function mc(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pm())e.flags|=8192;else throw Cl=ur,zo}else e.flags&=-16777217}function Em(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gh(t))if(Pm())e.flags|=8192;else throw Cl=ur,zo}function Er(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?id():536870912,e.lanes|=t,oa|=t)}function ri(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Bv(e,t,n){var l=t.pendingProps;switch(wo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn($e),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Jl(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jo())),qe(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Sn(t),o!==null?(qe(t),Em(t,o)):(qe(t),mc(t,i,null,l,n))):o?o!==e.memoizedState?(Sn(t),qe(t),Em(t,o)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),qe(t),mc(t,i,e,l,n)),null;case 27:if(wt(t),n=ge.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return qe(t),null}e=I.current,Jl(t)?rf(t):(e=Dh(i,l,n),t.stateNode=e,Sn(t))}return qe(t),null;case 5:if(wt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return qe(t),null}if(o=I.current,Jl(t))rf(t);else{var m=Gr(ge.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(i,{is:l.is}):m.createElement(i)}}o[rt]=t,o[ht]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(ut(o,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return qe(t),mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Jl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=st,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||jh(e.nodeValue,n)),e||qn(t,!0)}else e=Gr(e).createTextNode(l),e[rt]=t,t.stateNode=e}return qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Jl(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[rt]=t}else yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else n=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Jl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[rt]=t}else yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Er(t,t.updateQueue),qe(t),null);case 4:return be(),e===null&&kc(t.stateNode.containerInfo),qe(t),null;case 10:return vn(t.type),qe(t),null;case 19:if(X(Qe),l=t.memoizedState,l===null)return qe(t),null;if(i=(t.flags&128)!==0,o=l.rendering,o===null)if(i)ri(l,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=hr(e),o!==null){for(t.flags|=128,ri(l,!1),e=o.updateQueue,t.updateQueue=e,Er(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ef(n,e),n=n.sibling;return F(Qe,Qe.current&1|2),Ee&&gn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&jt()>_r&&(t.flags|=128,i=!0,ri(l,!1),t.lanes=4194304)}else{if(!i)if(e=hr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Er(t,e),ri(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Ee)return qe(t),null}else 2*jt()-l.renderingStartTime>_r&&n!==536870912&&(t.flags|=128,i=!0,ri(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=jt(),e.sibling=null,n=Qe.current,F(Qe,i?n&1|2:n&1),Ee&&gn(t,l.treeForkCount),e):(qe(t),null);case 22:case 23:return Mt(t),Lo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),n=t.updateQueue,n!==null&&Er(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&X(Sl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vn($e),qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Hv(e,t){switch(wo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn($e),be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wt(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(s(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Qe),null;case 4:return be(),null;case 10:return vn(t.type),null;case 22:case 23:return Mt(t),Lo(),e!==null&&X(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn($e),null;case 25:return null;default:return null}}function Tm(e,t){switch(wo(t),t.tag){case 3:vn($e),be();break;case 26:case 27:case 5:wt(t);break;case 4:be();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:X(Qe);break;case 10:vn(t.type);break;case 22:case 23:Mt(t),Lo(),e!==null&&X(Sl);break;case 24:vn($e)}}function si(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var o=n.create,m=n.inst;l=o(),m.destroy=l}n=n.next}while(n!==i)}}catch(b){Oe(t,t.return,b)}}function $n(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){var m=l.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,i=t;var C=n,k=b;try{k()}catch(Y){Oe(i,C,Y)}}}l=l.next}while(l!==o)}}catch(Y){Oe(t,t.return,Y)}}function Mm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yf(t,n)}catch(l){Oe(e,e.return,l)}}}function zm(e,t,n){n.props=El(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function oi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Oe(e,t,i)}}function nn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Oe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Oe(e,t,i)}else n.current=null}function Rm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Oe(e,e.return,i)}}function hc(e,t,n){try{var l=e.stateNode;r1(l,e.type,n,t),l[ht]=t}catch(i){Oe(e,e.return,i)}}function _m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mn));else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,n),e=e.sibling;e!==null;)gc(e,t,n),e=e.sibling}function Tr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tr(e,t,n),e=e.sibling;e!==null;)Tr(e,t,n),e=e.sibling}function Om(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ut(t,l,n),t[rt]=e,t[ht]=n}catch(o){Oe(e,e.return,o)}}var jn=!1,We=!1,xc=!1,Dm=typeof WeakSet=="function"?WeakSet:Set,at=null;function Uv(e,t){if(e=e.containerInfo,Hc=Jr,e=Zd(e),co(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,b=-1,C=-1,k=0,Y=0,Q=e,L=null;t:for(;;){for(var U;Q!==n||i!==0&&Q.nodeType!==3||(b=m+i),Q!==o||l!==0&&Q.nodeType!==3||(C=m+l),Q.nodeType===3&&(m+=Q.nodeValue.length),(U=Q.firstChild)!==null;)L=Q,Q=U;for(;;){if(Q===e)break t;if(L===n&&++k===i&&(b=m),L===o&&++Y===l&&(C=m),(U=Q.nextSibling)!==null)break;Q=L,L=Q.parentNode}Q=U}n=b===-1||C===-1?null:{start:b,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uc={focusedElem:e,selectionRange:n},Jr=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var ne=El(n.type,i);e=l.getSnapshotBeforeUpdate(ne,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(de){Oe(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function km(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(e,n),l&4&&si(5,n);break;case 1:if(An(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var i=El(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Mm(n),l&512&&oi(n,n.return);break;case 3:if(An(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yf(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&Om(n);case 26:case 5:An(e,n),t===null&&l&4&&Rm(n),l&512&&oi(n,n.return);break;case 12:An(e,n);break;case 31:An(e,n),l&4&&Hm(e,n);break;case 13:An(e,n),l&4&&Um(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$v.bind(null,n),h1(e,n))));break;case 22:if(l=n.memoizedState!==null||jn,!l){t=t!==null&&t.memoizedState!==null||We,i=jn;var o=We;jn=l,(We=t)&&!o?Nn(e,n,(n.subtreeFlags&8772)!==0):An(e,n),jn=i,We=o}break;case 30:break;default:An(e,n)}}function Lm(e){var t=e.alternate;t!==null&&(e.alternate=null,Lm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,gt=!1;function Cn(e,t,n){for(n=n.child;n!==null;)Bm(e,t,n),n=n.sibling}function Bm(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(_a,n)}catch{}switch(n.tag){case 26:We||nn(n,t),Cn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||nn(n,t);var l=Ge,i=gt;tl(n.type)&&(Ge=n.stateNode,gt=!1),Cn(e,t,n),xi(n.stateNode),Ge=l,gt=i;break;case 5:We||nn(n,t);case 6:if(l=Ge,i=gt,Ge=null,Cn(e,t,n),Ge=l,gt=i,Ge!==null)if(gt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(o){Oe(n,t,o)}else try{Ge.removeChild(n.stateNode)}catch(o){Oe(n,t,o)}break;case 18:Ge!==null&&(gt?(e=Ge,Mh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ga(e)):Mh(Ge,n.stateNode));break;case 4:l=Ge,i=gt,Ge=n.stateNode.containerInfo,gt=!0,Cn(e,t,n),Ge=l,gt=i;break;case 0:case 11:case 14:case 15:$n(2,n,t),We||$n(4,n,t),Cn(e,t,n);break;case 1:We||(nn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&zm(n,t,l)),Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:We=(l=We)||n.memoizedState!==null,Cn(e,t,n),We=l;break;default:Cn(e,t,n)}}function Hm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ga(e)}catch(n){Oe(t,t.return,n)}}}function Um(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ga(e)}catch(n){Oe(t,t.return,n)}}function Vv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dm),t;default:throw Error(s(435,e.tag))}}function Mr(e,t){var n=Vv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=Jv.bind(null,e,l);l.then(i,i)}})}function xt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],o=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(tl(b.type)){Ge=b.stateNode,gt=!1;break e}break;case 5:Ge=b.stateNode,gt=!1;break e;case 3:case 4:Ge=b.stateNode.containerInfo,gt=!0;break e}b=b.return}if(Ge===null)throw Error(s(160));Bm(o,m,i),Ge=null,gt=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Vm(t,e),t=t.sibling}var $t=null;function Vm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),vt(e),l&4&&($n(3,e,e.return),si(3,e),$n(5,e,e.return));break;case 1:xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),l&64&&jn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=$t;if(xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":o=i.getElementsByTagName("title")[0],(!o||o[ka]||o[rt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(l),i.head.insertBefore(o,i.querySelector("head > title"))),ut(o,l,n),o[rt]=e,lt(o),l=o;break e;case"link":var m=Vh("link","href",i).get(l+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(o=m[b],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}o=i.createElement(l),ut(o,l,n),i.head.appendChild(o);break;case"meta":if(m=Vh("meta","content",i).get(l+(n.content||""))){for(b=0;b<m.length;b++)if(o=m[b],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}o=i.createElement(l),ut(o,l,n),i.head.appendChild(o);break;default:throw Error(s(468,l))}o[rt]=e,lt(o),l=o}e.stateNode=l}else qh(i,e.type,e.stateNode);else e.stateNode=Uh(i,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?qh(i,e.type,e.stateNode):Uh(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&hc(e,e.memoizedProps,n.memoizedProps)}break;case 27:xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),n!==null&&l&4&&hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),e.flags&32){i=e.stateNode;try{Ul(i,"")}catch(ne){Oe(e,e.return,ne)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,hc(e,i,n!==null?n.memoizedProps:i)),l&1024&&(xc=!0);break;case 6:if(xt(t,e),vt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ne){Oe(e,e.return,ne)}}break;case 3:if(Zr=null,i=$t,$t=Yr(t.containerInfo),xt(t,e),$t=i,vt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ga(t.containerInfo)}catch(ne){Oe(e,e.return,ne)}xc&&(xc=!1,qm(e));break;case 4:l=$t,$t=Yr(e.stateNode.containerInfo),xt(t,e),vt(e),$t=l;break;case 12:xt(t,e),vt(e);break;case 31:xt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Mr(e,l)));break;case 13:xt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Rr=jt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Mr(e,l)));break;case 22:i=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,k=jn,Y=We;if(jn=k||i,We=Y||C,xt(t,e),We=Y,jn=k,vt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||C||jn||We||Tl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(o=C.stateNode,i)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=C.stateNode;var Q=C.memoizedProps.style,L=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ne){Oe(C,C.return,ne)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=i?"":C.memoizedProps}catch(ne){Oe(C,C.return,ne)}}}else if(t.tag===18){if(n===null){C=t;try{var U=C.stateNode;i?zh(U,!0):zh(C.stateNode,!1)}catch(ne){Oe(C,C.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Mr(e,n))));break;case 19:xt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Mr(e,l)));break;case 30:break;case 21:break;default:xt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(_m(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode,o=pc(e);Tr(e,o,i);break;case 5:var m=n.stateNode;n.flags&32&&(Ul(m,""),n.flags&=-33);var b=pc(e);Tr(e,b,m);break;case 3:case 4:var C=n.stateNode.containerInfo,k=pc(e);gc(e,k,C);break;default:throw Error(s(161))}}catch(Y){Oe(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)km(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$n(4,t,t.return),Tl(t);break;case 1:nn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&zm(t,t.return,n),Tl(t);break;case 27:xi(t.stateNode);case 26:case 5:nn(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Nn(i,o,n),si(4,o);break;case 1:if(Nn(i,o,n),l=o,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(k){Oe(l,l.return,k)}if(l=o,i=l.updateQueue,i!==null){var b=l.stateNode;try{var C=i.shared.hiddenCallbacks;if(C!==null)for(i.shared.hiddenCallbacks=null,i=0;i<C.length;i++)vf(C[i],b)}catch(k){Oe(l,l.return,k)}}n&&m&64&&Mm(o),oi(o,o.return);break;case 27:Om(o);case 26:case 5:Nn(i,o,n),n&&l===null&&m&4&&Rm(o),oi(o,o.return);break;case 12:Nn(i,o,n);break;case 31:Nn(i,o,n),n&&m&4&&Hm(i,o);break;case 13:Nn(i,o,n),n&&m&4&&Um(i,o);break;case 22:o.memoizedState===null&&Nn(i,o,n),oi(o,o.return);break;case 30:break;default:Nn(i,o,n)}t=t.sibling}}function vc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$a(n))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Jt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gm(e,t,n,l),t=t.sibling}function Gm(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,n,l),i&2048&&si(9,t);break;case 1:Jt(e,t,n,l);break;case 3:Jt(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(i&2048){Jt(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,b=o.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Oe(t,t.return,C)}}else Jt(e,t,n,l);break;case 31:Jt(e,t,n,l);break;case 13:Jt(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Jt(e,t,n,l):ci(e,t):o._visibility&2?Jt(e,t,n,l):(o._visibility|=2,ia(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&vc(m,t);break;case 24:Jt(e,t,n,l),i&2048&&yc(t.alternate,t);break;default:Jt(e,t,n,l)}}function ia(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,m=t,b=n,C=l,k=m.flags;switch(m.tag){case 0:case 11:case 15:ia(o,m,b,C,i),si(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?ia(o,m,b,C,i):ci(o,m):(Y._visibility|=2,ia(o,m,b,C,i)),i&&k&2048&&vc(m.alternate,m);break;case 24:ia(o,m,b,C,i),i&&k&2048&&yc(m.alternate,m);break;default:ia(o,m,b,C,i)}t=t.sibling}}function ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:ci(n,l),i&2048&&vc(l.alternate,l);break;case 24:ci(n,l),i&2048&&yc(l.alternate,l);break;default:ci(n,l)}t=t.sibling}}var ui=8192;function ra(e,t,n){if(e.subtreeFlags&ui)for(e=e.child;e!==null;)Ym(e,t,n),e=e.sibling}function Ym(e,t,n){switch(e.tag){case 26:ra(e,t,n),e.flags&ui&&e.memoizedState!==null&&N1(n,$t,e.memoizedState,e.memoizedProps);break;case 5:ra(e,t,n);break;case 3:case 4:var l=$t;$t=Yr(e.stateNode.containerInfo),ra(e,t,n),$t=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ui,ui=16777216,ra(e,t,n),ui=l):ra(e,t,n));break;default:ra(e,t,n)}}function Xm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Qm(l,e)}Xm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zm(e),e=e.sibling}function Zm(e){switch(e.tag){case 0:case 11:case 15:di(e),e.flags&2048&&$n(9,e,e.return);break;case 3:di(e);break;case 12:di(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zr(e)):di(e);break;default:di(e)}}function zr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Qm(l,e)}Xm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$n(8,t,t.return),zr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zr(t));break;default:zr(t)}e=e.sibling}}function Qm(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:$n(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$a(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var i=l.sibling,o=l.return;if(Lm(l),l===n){at=null;break e}if(i!==null){i.return=o,at=i;break e}at=o}}}var qv={getCacheForType:function(e){var t=ot($e),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot($e).controller.signal}},Gv=typeof WeakMap=="function"?WeakMap:Map,Re=0,Be=null,Se=null,Ce=0,_e=0,zt=null,Jn=!1,sa=!1,bc=!1,En=0,Ze=0,Fn=0,Ml=0,wc=0,Rt=0,oa=0,fi=null,yt=null,Sc=!1,Rr=0,Km=0,_r=1/0,Or=null,Wn=null,et=0,In=null,ca=null,Tn=0,jc=0,Cc=null,$m=null,mi=0,Ac=null;function _t(){return(Re&2)!==0&&Ce!==0?Ce&-Ce:_.T!==null?Rc():cd()}function Jm(){if(Rt===0)if((Ce&536870912)===0||Ee){var e=qi;qi<<=1,(qi&3932160)===0&&(qi=262144),Rt=e}else Rt=536870912;return e=Tt.current,e!==null&&(e.flags|=32),Rt}function bt(e,t,n){(e===Be&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(ua(e,0),Pn(e,Ce,Rt,!1)),Da(e,n),((Re&2)===0||e!==Be)&&(e===Be&&((Re&2)===0&&(Ml|=n),Ze===4&&Pn(e,Ce,Rt,!1)),ln(e))}function Fm(e,t,n){if((Re&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Oa(e,t),i=l?Zv(e,t):Ec(e,t,!0),o=l;do{if(i===0){sa&&!l&&Pn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Yv(n)){i=Ec(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;i=fi;var C=b.current.memoizedState.isDehydrated;if(C&&(ua(b,m).flags|=256),m=Ec(b,m,!1),m!==2){if(bc&&!C){b.errorRecoveryDisabledLanes|=o,Ml|=o,i=4;break e}o=yt,yt=i,o!==null&&(yt===null?yt=o:yt.push.apply(yt,o))}i=m}if(o=!1,i!==2)continue}}if(i===1){ua(e,0),Pn(e,t,0,!0);break}e:{switch(l=e,o=i,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Pn(l,t,Rt,!Jn);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Rr+300-jt(),10<i)){if(Pn(l,t,Rt,!Jn),Yi(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Eh(Wm.bind(null,l,n,yt,Or,Sc,t,Rt,Ml,oa,Jn,o,"Throttled",-0,0),i);break e}Wm(l,n,yt,Or,Sc,t,Rt,Ml,oa,Jn,o,null,-0,0)}}break}while(!0);ln(e)}function Wm(e,t,n,l,i,o,m,b,C,k,Y,Q,L,U){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},Ym(t,o,Q);var ne=(o&62914560)===o?Rr-jt():(o&4194048)===o?Km-jt():0;if(ne=E1(Q,ne),ne!==null){Tn=o,e.cancelPendingCommit=ne(ih.bind(null,e,t,o,n,l,i,m,b,C,Y,Q,null,L,U)),Pn(e,o,m,!k);return}}ih(e,t,o,n,l,i,m,b,C)}function Yv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],o=i.getSnapshot;i=i.value;try{if(!Nt(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pn(e,t,n,l){t&=~wc,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var o=31-At(i),m=1<<o;l[o]=-1,i&=~m}n!==0&&rd(e,n,t)}function Dr(){return(Re&6)===0?(hi(0),!1):!0}function Nc(){if(Se!==null){if(_e===0)var e=Se.return;else e=Se,xn=bl=null,Go(e),ea=null,Fa=0,e=Se;for(;e!==null;)Tm(e.alternate,e),e=e.return;Se=null}}function ua(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,c1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,Nc(),Be=e,Se=n=pn(e.current,null),Ce=t,_e=0,zt=null,Jn=!1,sa=Oa(e,t),bc=!1,oa=Rt=wc=Ml=Fn=Ze=0,yt=fi=null,Sc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-At(l),o=1<<i;t|=e[i],l&=~o}return En=t,tr(),n}function Im(e,t){ve=null,_.H=ai,t===Pl||t===cr?(t=hf(),_e=3):t===zo?(t=hf(),_e=4):_e=t===ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,Se===null&&(Ze=1,jr(e,Vt(t,e.current)))}function Pm(){var e=Tt.current;return e===null?!0:(Ce&4194048)===Ce?Xt===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===Xt:!1}function eh(){var e=_.H;return _.H=ai,e===null?ai:e}function th(){var e=_.A;return _.A=qv,e}function kr(){Ze=4,Jn||(Ce&4194048)!==Ce&&Tt.current!==null||(sa=!0),(Fn&134217727)===0&&(Ml&134217727)===0||Be===null||Pn(Be,Ce,Rt,!1)}function Ec(e,t,n){var l=Re;Re|=2;var i=eh(),o=th();(Be!==e||Ce!==t)&&(Or=null,ua(e,t)),t=!1;var m=Ze;e:do try{if(_e!==0&&Se!==null){var b=Se,C=zt;switch(_e){case 8:Nc(),m=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var k=_e;if(_e=0,zt=null,da(e,b,C,k),n&&sa){m=0;break e}break;default:k=_e,_e=0,zt=null,da(e,b,C,k)}}Xv(),m=Ze;break}catch(Y){Im(e,Y)}while(!0);return t&&e.shellSuspendCounter++,xn=bl=null,Re=l,_.H=i,_.A=o,Se===null&&(Be=null,Ce=0,tr()),m}function Xv(){for(;Se!==null;)nh(Se)}function Zv(e,t){var n=Re;Re|=2;var l=eh(),i=th();Be!==e||Ce!==t?(Or=null,_r=jt()+500,ua(e,t)):sa=Oa(e,t);e:do try{if(_e!==0&&Se!==null){t=Se;var o=zt;t:switch(_e){case 1:_e=0,zt=null,da(e,t,o,1);break;case 2:case 9:if(ff(o)){_e=0,zt=null,lh(t);break}t=function(){_e!==2&&_e!==9||Be!==e||(_e=7),ln(e)},o.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:ff(o)?(_e=0,zt=null,lh(t)):(_e=0,zt=null,da(e,t,o,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var b=Se;if(m?Gh(m):b.stateNode.complete){_e=0,zt=null;var C=b.sibling;if(C!==null)Se=C;else{var k=b.return;k!==null?(Se=k,Lr(k)):Se=null}break t}}_e=0,zt=null,da(e,t,o,5);break;case 6:_e=0,zt=null,da(e,t,o,6);break;case 8:Nc(),Ze=6;break e;default:throw Error(s(462))}}Qv();break}catch(Y){Im(e,Y)}while(!0);return xn=bl=null,_.H=l,_.A=i,Re=n,Se!==null?0:(Be=null,Ce=0,tr(),Ze)}function Qv(){for(;Se!==null&&!px();)nh(Se)}function nh(e){var t=Nm(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?Lr(e):Se=t}function lh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bm(n,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=bm(n,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:Go(t);default:Tm(n,t),t=Se=ef(t,En),t=Nm(n,t,En)}e.memoizedProps=e.pendingProps,t===null?Lr(e):Se=t}function da(e,t,n,l){xn=bl=null,Go(t),ea=null,Fa=0;var i=t.return;try{if(Dv(e,i,t,n,Ce)){Ze=1,jr(e,Vt(n,e.current)),Se=null;return}}catch(o){if(i!==null)throw Se=i,o;Ze=1,jr(e,Vt(n,e.current)),Se=null;return}t.flags&32768?(Ee||l===1?e=!0:sa||(Ce&536870912)!==0?e=!1:(Jn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ah(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){ah(t,Jn);return}e=t.return;var n=Bv(t.alternate,t,En);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ze===0&&(Ze=5)}function ah(e,t){do{var n=Hv(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ze=6,Se=null}function ih(e,t,n,l,i,o,m,b,C){e.cancelPendingCommit=null;do Br();while(et!==0);if((Re&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=po,Ax(e,n,o,m,b,C),e===Be&&(Se=Be=null,Ce=0),ca=t,In=e,Tn=n,jc=o,Cc=i,$m=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fv(Ui,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,i=G.p,G.p=2,m=Re,Re|=4;try{Uv(e,t,n)}finally{Re=m,G.p=i,_.T=l}}et=1,rh(),sh(),oh()}}function rh(){if(et===1){et=0;var e=In,t=ca,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=G.p;G.p=2;var i=Re;Re|=4;try{Vm(t,e);var o=Uc,m=Zd(e.containerInfo),b=o.focusedElem,C=o.selectionRange;if(m!==b&&b&&b.ownerDocument&&Xd(b.ownerDocument.documentElement,b)){if(C!==null&&co(b)){var k=C.start,Y=C.end;if(Y===void 0&&(Y=k),"selectionStart"in b)b.selectionStart=k,b.selectionEnd=Math.min(Y,b.value.length);else{var Q=b.ownerDocument||document,L=Q&&Q.defaultView||window;if(L.getSelection){var U=L.getSelection(),ne=b.textContent.length,de=Math.min(C.start,ne),Le=C.end===void 0?de:Math.min(C.end,ne);!U.extend&&de>Le&&(m=Le,Le=de,de=m);var R=Yd(b,de),M=Yd(b,Le);if(R&&M&&(U.rangeCount!==1||U.anchorNode!==R.node||U.anchorOffset!==R.offset||U.focusNode!==M.node||U.focusOffset!==M.offset)){var D=Q.createRange();D.setStart(R.node,R.offset),U.removeAllRanges(),de>Le?(U.addRange(D),U.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),U.addRange(D))}}}}for(Q=[],U=b;U=U.parentNode;)U.nodeType===1&&Q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Q.length;b++){var Z=Q[b];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Jr=!!Hc,Uc=Hc=null}finally{Re=i,G.p=l,_.T=n}}e.current=t,et=2}}function sh(){if(et===2){et=0;var e=In,t=ca,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=G.p;G.p=2;var i=Re;Re|=4;try{km(e,t.alternate,t)}finally{Re=i,G.p=l,_.T=n}}et=3}}function oh(){if(et===4||et===3){et=0,gx();var e=In,t=ca,n=Tn,l=$m;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,ca=In=null,ch(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Wn=null),Xs(n),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(_a,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,i=G.p,G.p=2,_.T=null;try{for(var o=e.onRecoverableError,m=0;m<l.length;m++){var b=l[m];o(b.value,{componentStack:b.stack})}}finally{_.T=t,G.p=i}}(Tn&3)!==0&&Br(),ln(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Ac?mi++:(mi=0,Ac=e):mi=0,hi(0)}}function ch(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Br(){return rh(),sh(),oh(),uh()}function uh(){if(et!==5)return!1;var e=In,t=jc;jc=0;var n=Xs(Tn),l=_.T,i=G.p;try{G.p=32>n?32:n,_.T=null,n=Cc,Cc=null;var o=In,m=Tn;if(et=0,ca=In=null,Tn=0,(Re&6)!==0)throw Error(s(331));var b=Re;if(Re|=4,Zm(o.current),Gm(o,o.current,m,n),Re=b,hi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(_a,o)}catch{}return!0}finally{G.p=i,_.T=l,ch(e,t)}}function dh(e,t,n){t=Vt(n,t),t=lc(e.stateNode,t,2),e=Zn(e,t,2),e!==null&&(Da(e,2),ln(e))}function Oe(e,t,n){if(e.tag===3)dh(e,e,n);else for(;t!==null;){if(t.tag===3){dh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=Vt(n,e),n=fm(2),l=Zn(t,n,2),l!==null&&(mm(n,l,t,e),Da(l,2),ln(l));break}}t=t.return}}function Tc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Gv;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(bc=!0,i.add(n),e=Kv.bind(null,e,t,n),t.then(e,e))}function Kv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ce&n)===n&&(Ze===4||Ze===3&&(Ce&62914560)===Ce&&300>jt()-Rr?(Re&2)===0&&ua(e,0):wc|=n,oa===Ce&&(oa=0)),ln(e)}function fh(e,t){t===0&&(t=id()),e=xl(e,t),e!==null&&(Da(e,t),ln(e))}function $v(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fh(e,n)}function Jv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),fh(e,n)}function Fv(e,t){return Vs(e,t)}var Hr=null,fa=null,Mc=!1,Ur=!1,zc=!1,el=0;function ln(e){e!==fa&&e.next===null&&(fa===null?Hr=fa=e:fa=fa.next=e),Ur=!0,Mc||(Mc=!0,Iv())}function hi(e,t){if(!zc&&Ur){zc=!0;do for(var n=!1,l=Hr;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var o=0;else{var m=l.suspendedLanes,b=l.pingedLanes;o=(1<<31-At(42|e)+1)-1,o&=i&~(m&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,gh(l,o))}else o=Ce,o=Yi(l,l===Be?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Oa(l,o)||(n=!0,gh(l,o));l=l.next}while(n);zc=!1}}function Wv(){mh()}function mh(){Ur=Mc=!1;var e=0;el!==0&&o1()&&(e=el);for(var t=jt(),n=null,l=Hr;l!==null;){var i=l.next,o=hh(l,t);o===0?(l.next=null,n===null?Hr=i:n.next=i,i===null&&(fa=n)):(n=l,(e!==0||(o&3)!==0)&&(Ur=!0)),l=i}et!==0&&et!==5||hi(e),el!==0&&(el=0)}function hh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-At(o),b=1<<m,C=i[m];C===-1?((b&n)===0||(b&l)!==0)&&(i[m]=Cx(b,t)):C<=t&&(e.expiredLanes|=b),o&=~b}if(t=Be,n=Ce,n=Yi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&qs(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Oa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&qs(l),Xs(n)){case 2:case 8:n=ld;break;case 32:n=Ui;break;case 268435456:n=ad;break;default:n=Ui}return l=ph.bind(null,e),n=Vs(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&qs(l),e.callbackPriority=2,e.callbackNode=null,2}function ph(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var l=Ce;return l=Yi(e,e===Be?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Fm(e,l,t),hh(e,jt()),e.callbackNode!=null&&e.callbackNode===n?ph.bind(null,e):null)}function gh(e,t){if(Br())return null;Fm(e,t,!0)}function Iv(){u1(function(){(Re&6)!==0?Vs(nd,Wv):mh()})}function Rc(){if(el===0){var e=Wl;e===0&&(e=Vi,Vi<<=1,(Vi&261888)===0&&(Vi=256)),el=e}return el}function xh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ki(""+e)}function vh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Pv(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var o=xh((i[ht]||null).action),m=l.submitter;m&&(t=(t=m[ht]||null)?xh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var b=new Wi("action","action",null,l,i);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(el!==0){var C=m?vh(i,m):new FormData(i);Wo(n,{pending:!0,data:C,method:i.method,action:o},null,C)}}else typeof o=="function"&&(b.preventDefault(),C=m?vh(i,m):new FormData(i),Wo(n,{pending:!0,data:C,method:i.method,action:o},o,C))},currentTarget:i}]})}}for(var _c=0;_c<ho.length;_c++){var Oc=ho[_c],e1=Oc.toLowerCase(),t1=Oc[0].toUpperCase()+Oc.slice(1);Kt(e1,"on"+t1)}Kt($d,"onAnimationEnd"),Kt(Jd,"onAnimationIteration"),Kt(Fd,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(xv,"onTransitionRun"),Kt(vv,"onTransitionStart"),Kt(yv,"onTransitionCancel"),Kt(Wd,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),n1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var m=l.length-1;0<=m;m--){var b=l[m],C=b.instance,k=b.currentTarget;if(b=b.listener,C!==o&&i.isPropagationStopped())break e;o=b,i.currentTarget=k;try{o(i)}catch(Y){er(Y)}i.currentTarget=null,o=C}else for(m=0;m<l.length;m++){if(b=l[m],C=b.instance,k=b.currentTarget,b=b.listener,C!==o&&i.isPropagationStopped())break e;o=b,i.currentTarget=k;try{o(i)}catch(Y){er(Y)}i.currentTarget=null,o=C}}}}function je(e,t){var n=t[Zs];n===void 0&&(n=t[Zs]=new Set);var l=e+"__bubble";n.has(l)||(bh(t,e,2,!1),n.add(l))}function Dc(e,t,n){var l=0;t&&(l|=4),bh(n,e,l,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function kc(e){if(!e[Vr]){e[Vr]=!0,fd.forEach(function(n){n!=="selectionchange"&&(n1.has(n)||Dc(n,!1,e),Dc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vr]||(t[Vr]=!0,Dc("selectionchange",!1,t))}}function bh(e,t,n,l){switch(Jh(t)){case 2:var i=z1;break;case 8:i=R1;break;default:i=Fc}n=i.bind(null,t,n,e),i=void 0,!eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lc(e,t,n,l,i){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var b=l.stateNode.containerInfo;if(b===i)break;if(m===4)for(m=l.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===i)return;m=m.return}for(;b!==null;){if(m=Dl(b),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){l=o=m;continue e}b=b.parentNode}}l=l.return}Cd(function(){var k=o,Y=Is(n),Q=[];e:{var L=Id.get(e);if(L!==void 0){var U=Wi,ne=e;switch(e){case"keypress":if(Ji(n)===0)break e;case"keydown":case"keyup":U=Jx;break;case"focusin":ne="focus",U=ao;break;case"focusout":ne="blur",U=ao;break;case"beforeblur":case"afterblur":U=ao;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Bx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Ix;break;case $d:case Jd:case Fd:U=Vx;break;case Wd:U=ev;break;case"scroll":case"scrollend":U=kx;break;case"wheel":U=nv;break;case"copy":case"cut":case"paste":U=Gx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Md;break;case"toggle":case"beforetoggle":U=av}var de=(t&4)!==0,Le=!de&&(e==="scroll"||e==="scrollend"),R=de?L!==null?L+"Capture":null:L;de=[];for(var M=k,D;M!==null;){var Z=M;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||R===null||(Z=Ba(M,R),Z!=null&&de.push(gi(M,Z,D))),Le)break;M=M.return}0<de.length&&(L=new U(L,ne,null,n,Y),Q.push({event:L,listeners:de}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",L&&n!==Ws&&(ne=n.relatedTarget||n.fromElement)&&(Dl(ne)||ne[Ol]))break e;if((U||L)&&(L=Y.window===Y?Y:(L=Y.ownerDocument)?L.defaultView||L.parentWindow:window,U?(ne=n.relatedTarget||n.toElement,U=k,ne=ne?Dl(ne):null,ne!==null&&(Le=f(ne),de=ne.tag,ne!==Le||de!==5&&de!==27&&de!==6)&&(ne=null)):(U=null,ne=k),U!==ne)){if(de=Ed,Z="onMouseLeave",R="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(de=Md,Z="onPointerLeave",R="onPointerEnter",M="pointer"),Le=U==null?L:La(U),D=ne==null?L:La(ne),L=new de(Z,M+"leave",U,n,Y),L.target=Le,L.relatedTarget=D,Z=null,Dl(Y)===k&&(de=new de(R,M+"enter",ne,n,Y),de.target=D,de.relatedTarget=Le,Z=de),Le=Z,U&&ne)t:{for(de=l1,R=U,M=ne,D=0,Z=R;Z;Z=de(Z))D++;Z=0;for(var ce=M;ce;ce=de(ce))Z++;for(;0<D-Z;)R=de(R),D--;for(;0<Z-D;)M=de(M),Z--;for(;D--;){if(R===M||M!==null&&R===M.alternate){de=R;break t}R=de(R),M=de(M)}de=null}else de=null;U!==null&&wh(Q,L,U,de,!1),ne!==null&&Le!==null&&wh(Q,Le,ne,de,!0)}}e:{if(L=k?La(k):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var Me=Bd;else if(kd(L))if(Hd)Me=hv;else{Me=fv;var se=dv}else U=L.nodeName,!U||U.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?k&&Fs(k.elementType)&&(Me=Bd):Me=mv;if(Me&&(Me=Me(e,k))){Ld(Q,Me,n,Y);break e}se&&se(e,L,k),e==="focusout"&&k&&L.type==="number"&&k.memoizedProps.value!=null&&Js(L,"number",L.value)}switch(se=k?La(k):window,e){case"focusin":(kd(se)||se.contentEditable==="true")&&(Yl=se,uo=k,Za=null);break;case"focusout":Za=uo=Yl=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,Qd(Q,n,Y);break;case"selectionchange":if(gv)break;case"keydown":case"keyup":Qd(Q,n,Y)}var ye;if(ro)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Gl?Od(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(zd&&n.locale!=="ko"&&(Gl||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Gl&&(ye=Ad()):(Hn=Y,to="value"in Hn?Hn.value:Hn.textContent,Gl=!0)),se=qr(k,Ae),0<se.length&&(Ae=new Td(Ae,e,null,n,Y),Q.push({event:Ae,listeners:se}),ye?Ae.data=ye:(ye=Dd(n),ye!==null&&(Ae.data=ye)))),(ye=rv?sv(e,n):ov(e,n))&&(Ae=qr(k,"onBeforeInput"),0<Ae.length&&(se=new Td("onBeforeInput","beforeinput",null,n,Y),Q.push({event:se,listeners:Ae}),se.data=ye)),Pv(Q,e,k,n,Y)}yh(Q,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Ba(e,n),i!=null&&l.unshift(gi(e,i,o)),i=Ba(e,t),i!=null&&l.push(gi(e,i,o))),e.tag===3)return l;e=e.return}return[]}function l1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wh(e,t,n,l,i){for(var o=t._reactName,m=[];n!==null&&n!==l;){var b=n,C=b.alternate,k=b.stateNode;if(b=b.tag,C!==null&&C===l)break;b!==5&&b!==26&&b!==27||k===null||(C=k,i?(k=Ba(n,o),k!=null&&m.unshift(gi(n,k,C))):i||(k=Ba(n,o),k!=null&&m.push(gi(n,k,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var a1=/\r\n?/g,i1=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(a1,`
|
|
49
|
-
`).replace(i1,"")}function jh(e,t){return t=Sh(t),Sh(e)===t}function ke(e,t,n,l,i,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ul(e,""+l);break;case"className":Zi(e,"class",l);break;case"tabIndex":Zi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Zi(e,n,l);break;case"style":Sd(e,l,o);break;case"data":if(t!=="object"){Zi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ki(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",i.name,i,null),ke(e,t,"formEncType",i.formEncType,i,null),ke(e,t,"formMethod",i.formMethod,i,null),ke(e,t,"formTarget",i.formTarget,i,null)):(ke(e,t,"encType",i.encType,i,null),ke(e,t,"method",i.method,i,null),ke(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ki(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=mn);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Ki(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":je("beforetoggle",e),je("toggle",e),Xi(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Xi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ox.get(n)||n,Xi(e,n,l))}}function Bc(e,t,n,l,i,o){switch(n){case"style":Sd(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&Ul(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!md.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[ht]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Xi(e,n,l)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,o,m,n,null)}}i&&ke(e,t,"srcSet",n.srcSet,n,null),l&&ke(e,t,"src",n.src,n,null);return;case"input":je("invalid",e);var b=o=m=i=null,C=null,k=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":i=Y;break;case"type":m=Y;break;case"checked":C=Y;break;case"defaultChecked":k=Y;break;case"value":o=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,t));break;default:ke(e,t,l,Y,n,null)}}vd(e,o,b,C,k,m,i,!1);return;case"select":je("invalid",e),l=m=o=null;for(i in n)if(n.hasOwnProperty(i)&&(b=n[i],b!=null))switch(i){case"value":o=b;break;case"defaultValue":m=b;break;case"multiple":l=b;default:ke(e,t,i,b,n,null)}t=o,n=m,e.multiple=!!l,t!=null?Hl(e,!!l,t,!1):n!=null&&Hl(e,!!l,n,!0);return;case"textarea":je("invalid",e),o=i=l=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":l=b;break;case"defaultValue":i=b;break;case"children":o=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:ke(e,t,m,b,n,null)}bd(e,l,i,o);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ke(e,t,C,l,n,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<pi.length;l++)je(pi[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,k,l,n,null)}return;default:if(Fs(t)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&Bc(e,t,Y,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&ke(e,t,b,l,n,null))}function r1(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,m=null,b=null,C=null,k=null,Y=null;for(U in n){var Q=n[U];if(n.hasOwnProperty(U)&&Q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":C=Q;default:l.hasOwnProperty(U)||ke(e,t,U,null,l,Q)}}for(var L in l){var U=l[L];if(Q=n[L],l.hasOwnProperty(L)&&(U!=null||Q!=null))switch(L){case"type":o=U;break;case"name":i=U;break;case"checked":k=U;break;case"defaultChecked":Y=U;break;case"value":m=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:U!==Q&&ke(e,t,L,U,l,Q)}}$s(e,m,b,C,k,Y,o,i);return;case"select":U=m=b=L=null;for(o in n)if(C=n[o],n.hasOwnProperty(o)&&C!=null)switch(o){case"value":break;case"multiple":U=C;default:l.hasOwnProperty(o)||ke(e,t,o,null,l,C)}for(i in l)if(o=l[i],C=n[i],l.hasOwnProperty(i)&&(o!=null||C!=null))switch(i){case"value":L=o;break;case"defaultValue":b=o;break;case"multiple":m=o;default:o!==C&&ke(e,t,i,o,l,C)}t=b,n=m,l=U,L!=null?Hl(e,!!n,L,!1):!!l!=!!n&&(t!=null?Hl(e,!!n,t,!0):Hl(e,!!n,n?[]:"",!1));return;case"textarea":U=L=null;for(b in n)if(i=n[b],n.hasOwnProperty(b)&&i!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:ke(e,t,b,null,l,i)}for(m in l)if(i=l[m],o=n[m],l.hasOwnProperty(m)&&(i!=null||o!=null))switch(m){case"value":L=i;break;case"defaultValue":U=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==o&&ke(e,t,m,i,l,o)}yd(e,L,U);return;case"option":for(var ne in n)if(L=n[ne],n.hasOwnProperty(ne)&&L!=null&&!l.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:ke(e,t,ne,null,l,L)}for(C in l)if(L=l[C],U=n[C],l.hasOwnProperty(C)&&L!==U&&(L!=null||U!=null))switch(C){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:ke(e,t,C,L,l,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in n)L=n[de],n.hasOwnProperty(de)&&L!=null&&!l.hasOwnProperty(de)&&ke(e,t,de,null,l,L);for(k in l)if(L=l[k],U=n[k],l.hasOwnProperty(k)&&L!==U&&(L!=null||U!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:ke(e,t,k,L,l,U)}return;default:if(Fs(t)){for(var Le in n)L=n[Le],n.hasOwnProperty(Le)&&L!==void 0&&!l.hasOwnProperty(Le)&&Bc(e,t,Le,void 0,l,L);for(Y in l)L=l[Y],U=n[Y],!l.hasOwnProperty(Y)||L===U||L===void 0&&U===void 0||Bc(e,t,Y,L,l,U);return}}for(var R in n)L=n[R],n.hasOwnProperty(R)&&L!=null&&!l.hasOwnProperty(R)&&ke(e,t,R,null,l,L);for(Q in l)L=l[Q],U=n[Q],!l.hasOwnProperty(Q)||L===U||L==null&&U==null||ke(e,t,Q,L,l,U)}function Ch(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],o=i.transferSize,m=i.initiatorType,b=i.duration;if(o&&b&&Ch(m)){for(m=0,b=i.responseEnd,l+=1;l<n.length;l++){var C=n[l],k=C.startTime;if(k>b)break;var Y=C.transferSize,Q=C.initiatorType;Y&&Ch(Q)&&(C=C.responseEnd,m+=Y*(C<b?1:(b-k)/(C-k)))}if(--l,t+=8*(o+m)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hc=null,Uc=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function Ah(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Nh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qc=null;function o1(){var e=window.event;return e&&e.type==="popstate"?e===qc?!1:(qc=e,!0):(qc=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,c1=typeof clearTimeout=="function"?clearTimeout:void 0,Th=typeof Promise=="function"?Promise:void 0,u1=typeof queueMicrotask=="function"?queueMicrotask:typeof Th<"u"?function(e){return Th.resolve(null).then(e).catch(d1)}:Eh;function d1(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Mh(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),ga(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")xi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xi(n);for(var o=n.firstChild;o;){var m=o.nextSibling,b=o.nodeName;o[ka]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&xi(e.ownerDocument.body);n=i}while(n);ga(t)}function zh(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gc(n),Qs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function f1(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function m1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Zt(e.nextSibling),e===null))return null;return e}function Rh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$?"||e.data==="$~"}function Xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function h1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zc=null;function _h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Zt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Oh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Dh(e,t,n){switch(t=Gr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function xi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qs(e)}var Qt=new Map,kh=new Set;function Yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=G.d;G.d={f:p1,r:g1,D:x1,C:v1,L:y1,m:b1,X:S1,S:w1,M:j1};function p1(){var e=Mn.f(),t=Dr();return e||t}function g1(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?If(t):Mn.r(e)}var ma=typeof document>"u"?null:document;function Lh(e,t,n){var l=ma;if(l&&typeof t=="string"&&t){var i=Ht(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),kh.has(i)||(kh.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ut(t,"link",e),lt(t),l.head.appendChild(t)))}}function x1(e){Mn.D(e),Lh("dns-prefetch",e,null)}function v1(e,t){Mn.C(e,t),Lh("preconnect",e,t)}function y1(e,t,n){Mn.L(e,t,n);var l=ma;if(l&&e&&t){var i='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ht(n.imageSizes)+'"]')):i+='[href="'+Ht(e)+'"]';var o=i;switch(t){case"style":o=ha(e);break;case"script":o=pa(e)}Qt.has(o)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qt.set(o,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(vi(o))||t==="script"&&l.querySelector(yi(o))||(t=l.createElement("link"),ut(t,"link",e),lt(t),l.head.appendChild(t)))}}function b1(e,t){Mn.m(e,t);var n=ma;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ht(l)+'"][href="'+Ht(e)+'"]',o=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=pa(e)}if(!Qt.has(o)&&(e=v({rel:"modulepreload",href:e},t),Qt.set(o,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yi(o)))return}l=n.createElement("link"),ut(l,"link",e),lt(l),n.head.appendChild(l)}}}function w1(e,t,n){Mn.S(e,t,n);var l=ma;if(l&&e){var i=Ll(l).hoistableStyles,o=ha(e);t=t||"default";var m=i.get(o);if(!m){var b={loading:0,preload:null};if(m=l.querySelector(vi(o)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qt.get(o))&&Qc(e,n);var C=m=l.createElement("link");lt(C),ut(C,"link",e),C._p=new Promise(function(k,Y){C.onload=k,C.onerror=Y}),C.addEventListener("load",function(){b.loading|=1}),C.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Xr(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:b},i.set(o,m)}}}function S1(e,t){Mn.X(e,t);var n=ma;if(n&&e){var l=Ll(n).hoistableScripts,i=pa(e),o=l.get(i);o||(o=n.querySelector(yi(i)),o||(e=v({src:e,async:!0},t),(t=Qt.get(i))&&Kc(e,t),o=n.createElement("script"),lt(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(i,o))}}function j1(e,t){Mn.M(e,t);var n=ma;if(n&&e){var l=Ll(n).hoistableScripts,i=pa(e),o=l.get(i);o||(o=n.querySelector(yi(i)),o||(e=v({src:e,async:!0,type:"module"},t),(t=Qt.get(i))&&Kc(e,t),o=n.createElement("script"),lt(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(i,o))}}function Bh(e,t,n,l){var i=(i=ge.current)?Yr(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ha(n.href),n=Ll(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ha(n.href);var o=Ll(i).hoistableStyles,m=o.get(e);if(m||(i=i.ownerDocument||i,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=i.querySelector(vi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),Qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Qt.set(e,n),o||C1(i,e,n,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pa(n),n=Ll(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ha(e){return'href="'+Ht(e)+'"'}function vi(e){return'link[rel="stylesheet"]['+e+"]"}function Hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function C1(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",n),lt(t),e.head.appendChild(t))}function pa(e){return'[src="'+Ht(e)+'"]'}function yi(e){return"script[async]"+e}function Uh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var i=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ut(l,"style",i),Xr(l,n.precedence,e),t.instance=l;case"stylesheet":i=ha(n.href);var o=e.querySelector(vi(i));if(o)return t.state.loading|=4,t.instance=o,lt(o),o;l=Hh(n),(i=Qt.get(i))&&Qc(l,i),o=(e.ownerDocument||e).createElement("link"),lt(o);var m=o;return m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),ut(o,"link",l),t.state.loading|=4,Xr(o,n.precedence,e),t.instance=o;case"script":return o=pa(n.src),(i=e.querySelector(yi(o)))?(t.instance=i,lt(i),i):(l=n,(i=Qt.get(o))&&(l=v({},n),Kc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),lt(i),ut(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Xr(l,n.precedence,e));return t.instance}function Xr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,o=i,m=0;m<l.length;m++){var b=l[m];if(b.dataset.precedence===t)o=b;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zr=null;function Vh(e,t,n){if(Zr===null){var l=new Map,i=Zr=new Map;i.set(n,l)}else i=Zr,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[ka]||o[rt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var b=l.get(m);b?b.push(o):l.set(m,[o])}}return l}function qh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function A1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function N1(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=ha(l.href),o=t.querySelector(vi(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,lt(o);return}o=t.ownerDocument||t,l=Hh(l),(i=Qt.get(i))&&Qc(l,i),o=o.createElement("link"),lt(o);var m=o;m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),ut(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var $c=0;function E1(e,t){return e.stylesheets&&e.count===0&&$r(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&$c===0&&($c=62500*s1());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>$c?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function $r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(T1,e),Kr=null,Qr.call(e))}function T1(e,t){if(!(t.state.loading&4)){var n=Kr.get(e);if(n)var l=n.get(null);else{n=new Map,Kr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var m=i[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}i=t.instance,m=i.getAttribute("data-precedence"),o=n.get(m)||l,o===l&&n.set(null,i),n.set(m,i),this.count++,l=Qr.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var bi={$$typeof:O,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function M1(e,t,n,l,i,o,m,b,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gs(0),this.hiddenUpdates=Gs(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Yh(e,t,n,l,i,o,m,b,C,k,Y,Q){return e=new M1(e,t,n,m,C,k,Y,Q,b),t=1,o===!0&&(t|=24),o=Et(3,null,null,t),e.current=o,o.stateNode=e,t=Eo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},Ro(o),e}function Xh(e){return e?(e=Ql,e):Ql}function Zh(e,t,n,l,i,o){i=Xh(i),l.context===null?l.context=i:l.pendingContext=i,l=Xn(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Zn(e,l,t),n!==null&&(bt(n,e,t),Ia(n,e,t))}function Qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jc(e,t){Qh(e,t),(e=e.alternate)&&Qh(e,t)}function Kh(e){if(e.tag===13||e.tag===31){var t=xl(e,67108864);t!==null&&bt(t,e,67108864),Jc(e,67108864)}}function $h(e){if(e.tag===13||e.tag===31){var t=_t();t=Ys(t);var n=xl(e,t);n!==null&&bt(n,e,t),Jc(e,t)}}var Jr=!0;function z1(e,t,n,l){var i=_.T;_.T=null;var o=G.p;try{G.p=2,Fc(e,t,n,l)}finally{G.p=o,_.T=i}}function R1(e,t,n,l){var i=_.T;_.T=null;var o=G.p;try{G.p=8,Fc(e,t,n,l)}finally{G.p=o,_.T=i}}function Fc(e,t,n,l){if(Jr){var i=Wc(l);if(i===null)Lc(e,t,l,Fr,n),Fh(e,l);else if(O1(i,e,t,n,l))l.stopPropagation();else if(Fh(e,l),t&4&&-1<_1.indexOf(e)){for(;i!==null;){var o=kl(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=fl(o.pendingLanes);if(m!==0){var b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var C=1<<31-At(m);b.entanglements[1]|=C,m&=~C}ln(o),(Re&6)===0&&(_r=jt()+500,hi(0))}}break;case 31:case 13:b=xl(o,2),b!==null&&bt(b,o,2),Dr(),Jc(o,2)}if(o=Wc(l),o===null&&Lc(e,t,l,Fr,n),o===i)break;i=o}i!==null&&l.stopPropagation()}else Lc(e,t,l,null,n)}}function Wc(e){return e=Is(e),Ic(e)}var Fr=null;function Ic(e){if(Fr=null,e=Dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=x(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fr=e,null}function Jh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xx()){case nd:return 2;case ld:return 8;case Ui:case vx:return 32;case ad:return 268435456;default:return 32}default:return 32}}var Pc=!1,nl=null,ll=null,al=null,wi=new Map,Si=new Map,il=[],_1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fh(e,t){switch(e){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(t.pointerId)}}function ji(e,t,n,l,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[i]},t!==null&&(t=kl(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function O1(e,t,n,l,i){switch(t){case"focusin":return nl=ji(nl,e,t,n,l,i),!0;case"dragenter":return ll=ji(ll,e,t,n,l,i),!0;case"mouseover":return al=ji(al,e,t,n,l,i),!0;case"pointerover":var o=i.pointerId;return wi.set(o,ji(wi.get(o)||null,e,t,n,l,i)),!0;case"gotpointercapture":return o=i.pointerId,Si.set(o,ji(Si.get(o)||null,e,t,n,l,i)),!0}return!1}function Wh(e){var t=Dl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,ud(e.priority,function(){$h(n)});return}}else if(t===31){if(t=x(n),t!==null){e.blockedOn=t,ud(e.priority,function(){$h(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ws=l,n.target.dispatchEvent(l),Ws=null}else return t=kl(n),t!==null&&Kh(t),e.blockedOn=n,!1;t.shift()}return!0}function Ih(e,t,n){Wr(e)&&n.delete(t)}function D1(){Pc=!1,nl!==null&&Wr(nl)&&(nl=null),ll!==null&&Wr(ll)&&(ll=null),al!==null&&Wr(al)&&(al=null),wi.forEach(Ih),Si.forEach(Ih)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,D1)))}var Pr=null;function Ph(e){Pr!==e&&(Pr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Pr===e&&(Pr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Ic(l||n)===null)continue;break}var o=kl(n);o!==null&&(e.splice(t,3),t-=3,Wo(o,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function ga(e){function t(C){return Ir(C,e)}nl!==null&&Ir(nl,e),ll!==null&&Ir(ll,e),al!==null&&Ir(al,e),wi.forEach(t),Si.forEach(t);for(var n=0;n<il.length;n++){var l=il[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<il.length&&(n=il[0],n.blockedOn===null);)Wh(n),n.blockedOn===null&&il.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],o=n[l+1],m=i[ht]||null;if(typeof o=="function")m||Ph(n);else if(m){var b=null;if(o&&o.hasAttribute("formAction")){if(i=o,m=o[ht]||null)b=m.formAction;else if(Ic(i)!==null)continue}else b=m.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Ph(n)}}}function ep(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return i=m})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function eu(e){this._internalRoot=e}es.prototype.render=eu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=_t();Zh(n,l,e,t,null,null)},es.prototype.unmount=eu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zh(e.current,2,null,e,null,null),Dr(),t[Ol]=null}};function es(e){this._internalRoot=e}es.prototype.unstable_scheduleHydration=function(e){if(e){var t=cd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<il.length&&t!==0&&t<il[n].priority;n++);il.splice(n,0,e),n===0&&Wh(e)}};var tp=r.version;if(tp!=="19.2.0")throw Error(s(527,tp,"19.2.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var k1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ts.isDisabled&&ts.supportsFiber)try{_a=ts.inject(k1),Ct=ts}catch{}}return Ai.createRoot=function(e,t){if(!d(e))throw Error(s(299));var n=!1,l="",i=om,o=cm,m=um;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Yh(e,1,!1,null,null,n,l,null,i,o,m,ep),e[Ol]=t.current,kc(e),new eu(t)},Ai.hydrateRoot=function(e,t,n){if(!d(e))throw Error(s(299));var l=!1,i="",o=om,m=cm,b=um,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Yh(e,1,!0,t,n??null,l,i,C,o,m,b,ep),t.context=Xh(null),n=t.current,l=_t(),l=Ys(l),i=Xn(l),i.callback=null,Zn(n,i,l),n=l,t.current.lanes=n,Da(t,n),ln(t),e[Ol]=t.current,kc(e),new es(t)},Ai.version="19.2.0",Ai}var dp;function Z1(){if(dp)return lu.exports;dp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),lu.exports=X1(),lu.exports}var Q1=Z1();function un(a,r=[]){let c=[];function s(f,h){const x=S.createContext(h),p=c.length;c=[...c,h];const g=v=>{var z;const{scope:w,children:j,...A}=v,E=((z=w==null?void 0:w[a])==null?void 0:z[p])||x,N=S.useMemo(()=>A,Object.values(A));return u.jsx(E.Provider,{value:N,children:j})};g.displayName=f+"Provider";function y(v,w){var E;const j=((E=w==null?void 0:w[a])==null?void 0:E[p])||x,A=S.useContext(j);if(A)return A;if(h!==void 0)return h;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[g,y]}const d=()=>{const f=c.map(h=>S.createContext(h));return function(x){const p=(x==null?void 0:x[a])||f;return S.useMemo(()=>({[`__scope${a}`]:{...x,[a]:p}}),[x,p])}};return d.scopeName=a,[s,K1(d,...r)]}function K1(...a){const r=a[0];if(a.length===1)return r;const c=()=>{const s=a.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(f){const h=s.reduce((x,{useScope:p,scopeName:g})=>{const v=p(f)[`__scope${g}`];return{...x,...v}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return c.scopeName=r.scopeName,c}function fp(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function og(...a){return r=>{let c=!1;const s=a.map(d=>{const f=fp(d,r);return!c&&typeof f=="function"&&(c=!0),f});if(c)return()=>{for(let d=0;d<s.length;d++){const f=s[d];typeof f=="function"?f():fp(a[d],null)}}}}function Ie(...a){return S.useCallback(og(...a),a)}function ds(a){const r=J1(a),c=S.forwardRef((s,d)=>{const{children:f,...h}=s,x=S.Children.toArray(f),p=x.find(W1);if(p){const g=p.props.children,y=x.map(v=>v===p?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:v);return u.jsx(r,{...h,ref:d,children:S.isValidElement(g)?S.cloneElement(g,void 0,y):null})}return u.jsx(r,{...h,ref:d,children:f})});return c.displayName=`${a}.Slot`,c}var $1=ds("Slot");function J1(a){const r=S.forwardRef((c,s)=>{const{children:d,...f}=c;if(S.isValidElement(d)){const h=P1(d),x=I1(f,d.props);return d.type!==S.Fragment&&(x.ref=s?og(s,h):h),S.cloneElement(d,x)}return S.Children.count(d)>1?S.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var cg=Symbol("radix.slottable");function F1(a){const r=({children:c})=>u.jsx(u.Fragment,{children:c});return r.displayName=`${a}.Slottable`,r.__radixId=cg,r}function W1(a){return S.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===cg}function I1(a,r){const c={...r};for(const s in r){const d=a[s],f=r[s];/^on[A-Z]/.test(s)?d&&f?c[s]=(...x)=>{const p=f(...x);return d(...x),p}:d&&(c[s]=d):s==="style"?c[s]={...d,...f}:s==="className"&&(c[s]=[d,f].filter(Boolean).join(" "))}return{...a,...c}}function P1(a){var s,d;let r=(s=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:s.get,c=r&&"isReactWarning"in r&&r.isReactWarning;return c?a.ref:(r=(d=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:d.get,c=r&&"isReactWarning"in r&&r.isReactWarning,c?a.props.ref:a.props.ref||a.ref)}function zu(a){const r=a+"CollectionProvider",[c,s]=un(r),[d,f]=c(r,{collectionRef:{current:null},itemMap:new Map}),h=E=>{const{scope:N,children:z}=E,H=Te.useRef(null),O=Te.useRef(new Map).current;return u.jsx(d,{scope:N,itemMap:O,collectionRef:H,children:z})};h.displayName=r;const x=a+"CollectionSlot",p=ds(x),g=Te.forwardRef((E,N)=>{const{scope:z,children:H}=E,O=f(x,z),V=Ie(N,O.collectionRef);return u.jsx(p,{ref:V,children:H})});g.displayName=x;const y=a+"CollectionItemSlot",v="data-radix-collection-item",w=ds(y),j=Te.forwardRef((E,N)=>{const{scope:z,children:H,...O}=E,V=Te.useRef(null),$=Ie(N,V),J=f(y,z);return Te.useEffect(()=>(J.itemMap.set(V,{ref:V,...O}),()=>void J.itemMap.delete(V))),u.jsx(w,{[v]:"",ref:$,children:H})});j.displayName=y;function A(E){const N=f(a+"CollectionConsumer",E);return Te.useCallback(()=>{const H=N.collectionRef.current;if(!H)return[];const O=Array.from(H.querySelectorAll(`[${v}]`));return Array.from(N.itemMap.values()).sort((J,K)=>O.indexOf(J.ref.current)-O.indexOf(K.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},A,s]}function He(a,r,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a==null||a(d),c===!1||!d.defaultPrevented)return r==null?void 0:r(d)}}var ol=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},ey=rg[" useInsertionEffect ".trim().toString()]||ol;function dl({prop:a,defaultProp:r,onChange:c=()=>{},caller:s}){const[d,f,h]=ty({defaultProp:r,onChange:c}),x=a!==void 0,p=x?a:d;{const y=S.useRef(a!==void 0);S.useEffect(()=>{const v=y.current;v!==x&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${x?"controlled":"uncontrolled"}. 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.`),y.current=x},[x,s])}const g=S.useCallback(y=>{var v;if(x){const w=ny(y)?y(a):y;w!==a&&((v=h.current)==null||v.call(h,w))}else f(y)},[x,a,f,h]);return[p,g]}function ty({defaultProp:a,onChange:r}){const[c,s]=S.useState(a),d=S.useRef(c),f=S.useRef(r);return ey(()=>{f.current=r},[r]),S.useEffect(()=>{var h;d.current!==c&&((h=f.current)==null||h.call(f,c),d.current=c)},[c,d]),[c,s,f]}function ny(a){return typeof a=="function"}var Ru=sg();const ly=ig(Ru);var ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=ay.reduce((a,r)=>{const c=ds(`Primitive.${r}`),s=S.forwardRef((d,f)=>{const{asChild:h,...x}=d,p=h?c:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...x,ref:f})});return s.displayName=`Primitive.${r}`,{...a,[r]:s}},{});function iy(a,r){a&&Ru.flushSync(()=>a.dispatchEvent(r))}function ry(a,r){return S.useReducer((c,s)=>r[c][s]??c,a)}var Ss=a=>{const{present:r,children:c}=a,s=sy(r),d=typeof c=="function"?c({present:s.isPresent}):S.Children.only(c),f=Ie(s.ref,oy(d));return typeof c=="function"||s.isPresent?S.cloneElement(d,{ref:f}):null};Ss.displayName="Presence";function sy(a){const[r,c]=S.useState(),s=S.useRef(null),d=S.useRef(a),f=S.useRef("none"),h=a?"mounted":"unmounted",[x,p]=ry(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const g=ns(s.current);f.current=x==="mounted"?g:"none"},[x]),ol(()=>{const g=s.current,y=d.current;if(y!==a){const w=f.current,j=ns(g);a?p("MOUNT"):j==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&w!==j?"ANIMATION_OUT":"UNMOUNT"),d.current=a}},[a,p]),ol(()=>{if(r){let g;const y=r.ownerDocument.defaultView??window,v=j=>{const E=ns(s.current).includes(CSS.escape(j.animationName));if(j.target===r&&E&&(p("ANIMATION_END"),!d.current)){const N=r.style.animationFillMode;r.style.animationFillMode="forwards",g=y.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=N)})}},w=j=>{j.target===r&&(f.current=ns(s.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{y.clearTimeout(g),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(x),ref:S.useCallback(g=>{s.current=g?getComputedStyle(g):null,c(g)},[])}}function ns(a){return(a==null?void 0:a.animationName)||"none"}function oy(a){var s,d;let r=(s=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:s.get,c=r&&"isReactWarning"in r&&r.isReactWarning;return c?a.ref:(r=(d=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:d.get,c=r&&"isReactWarning"in r&&r.isReactWarning,c?a.props.ref:a.props.ref||a.ref)}var cy=rg[" useId ".trim().toString()]||(()=>{}),uy=0;function _i(a){const[r,c]=S.useState(cy());return ol(()=>{c(s=>s??String(uy++))},[a]),a||(r?`radix-${r}`:"")}var js="Collapsible",[dy,ug]=un(js),[fy,_u]=dy(js),dg=S.forwardRef((a,r)=>{const{__scopeCollapsible:c,open:s,defaultOpen:d,disabled:f,onOpenChange:h,...x}=a,[p,g]=dl({prop:s,defaultProp:d??!1,onChange:h,caller:js});return u.jsx(fy,{scope:c,disabled:f,contentId:_i(),open:p,onOpenToggle:S.useCallback(()=>g(y=>!y),[g]),children:u.jsx(Ue.div,{"data-state":Du(p),"data-disabled":f?"":void 0,...x,ref:r})})});dg.displayName=js;var fg="CollapsibleTrigger",mg=S.forwardRef((a,r)=>{const{__scopeCollapsible:c,...s}=a,d=_u(fg,c);return u.jsx(Ue.button,{type:"button","aria-controls":d.contentId,"aria-expanded":d.open||!1,"data-state":Du(d.open),"data-disabled":d.disabled?"":void 0,disabled:d.disabled,...s,ref:r,onClick:He(a.onClick,d.onOpenToggle)})});mg.displayName=fg;var Ou="CollapsibleContent",hg=S.forwardRef((a,r)=>{const{forceMount:c,...s}=a,d=_u(Ou,a.__scopeCollapsible);return u.jsx(Ss,{present:c||d.open,children:({present:f})=>u.jsx(my,{...s,ref:r,present:f})})});hg.displayName=Ou;var my=S.forwardRef((a,r)=>{const{__scopeCollapsible:c,present:s,children:d,...f}=a,h=_u(Ou,c),[x,p]=S.useState(s),g=S.useRef(null),y=Ie(r,g),v=S.useRef(0),w=v.current,j=S.useRef(0),A=j.current,E=h.open||x,N=S.useRef(E),z=S.useRef(void 0);return S.useEffect(()=>{const H=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(H)},[]),ol(()=>{const H=g.current;if(H){z.current=z.current||{transitionDuration:H.style.transitionDuration,animationName:H.style.animationName},H.style.transitionDuration="0s",H.style.animationName="none";const O=H.getBoundingClientRect();v.current=O.height,j.current=O.width,N.current||(H.style.transitionDuration=z.current.transitionDuration,H.style.animationName=z.current.animationName),p(s)}},[h.open,s]),u.jsx(Ue.div,{"data-state":Du(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!E,...f,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...a.style},children:E&&d})});function Du(a){return a?"open":"closed"}var hy=dg,py=mg,gy=hg,xy=S.createContext(void 0);function Cs(a){const r=S.useContext(xy);return a||r||"ltr"}var It="Accordion",vy=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ku,yy,by]=zu(It),[As]=un(It,[by,ug]),Lu=ug(),pg=Te.forwardRef((a,r)=>{const{type:c,...s}=a,d=s,f=s;return u.jsx(ku.Provider,{scope:a.__scopeAccordion,children:c==="multiple"?u.jsx(Cy,{...f,ref:r}):u.jsx(jy,{...d,ref:r})})});pg.displayName=It;var[gg,wy]=As(It),[xg,Sy]=As(It,{collapsible:!1}),jy=Te.forwardRef((a,r)=>{const{value:c,defaultValue:s,onValueChange:d=()=>{},collapsible:f=!1,...h}=a,[x,p]=dl({prop:c,defaultProp:s??"",onChange:d,caller:It});return u.jsx(gg,{scope:a.__scopeAccordion,value:Te.useMemo(()=>x?[x]:[],[x]),onItemOpen:p,onItemClose:Te.useCallback(()=>f&&p(""),[f,p]),children:u.jsx(xg,{scope:a.__scopeAccordion,collapsible:f,children:u.jsx(vg,{...h,ref:r})})})}),Cy=Te.forwardRef((a,r)=>{const{value:c,defaultValue:s,onValueChange:d=()=>{},...f}=a,[h,x]=dl({prop:c,defaultProp:s??[],onChange:d,caller:It}),p=Te.useCallback(y=>x((v=[])=>[...v,y]),[x]),g=Te.useCallback(y=>x((v=[])=>v.filter(w=>w!==y)),[x]);return u.jsx(gg,{scope:a.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(xg,{scope:a.__scopeAccordion,collapsible:!0,children:u.jsx(vg,{...f,ref:r})})})}),[Ay,Ns]=As(It),vg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,disabled:s,dir:d,orientation:f="vertical",...h}=a,x=Te.useRef(null),p=Ie(x,r),g=yy(c),v=Cs(d)==="ltr",w=He(a.onKeyDown,j=>{var q;if(!vy.includes(j.key))return;const A=j.target,E=g().filter(te=>{var ee;return!((ee=te.ref.current)!=null&&ee.disabled)}),N=E.findIndex(te=>te.ref.current===A),z=E.length;if(N===-1)return;j.preventDefault();let H=N;const O=0,V=z-1,$=()=>{H=N+1,H>V&&(H=O)},J=()=>{H=N-1,H<O&&(H=V)};switch(j.key){case"Home":H=O;break;case"End":H=V;break;case"ArrowRight":f==="horizontal"&&(v?$():J());break;case"ArrowDown":f==="vertical"&&$();break;case"ArrowLeft":f==="horizontal"&&(v?J():$());break;case"ArrowUp":f==="vertical"&&J();break}const K=H%z;(q=E[K].ref.current)==null||q.focus()});return u.jsx(Ay,{scope:c,disabled:s,direction:d,orientation:f,children:u.jsx(ku.Slot,{scope:c,children:u.jsx(Ue.div,{...h,"data-orientation":f,ref:p,onKeyDown:s?void 0:w})})})}),fs="AccordionItem",[Ny,Bu]=As(fs),yg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,value:s,...d}=a,f=Ns(fs,c),h=wy(fs,c),x=Lu(c),p=_i(),g=s&&h.value.includes(s)||!1,y=f.disabled||a.disabled;return u.jsx(Ny,{scope:c,open:g,disabled:y,triggerId:p,children:u.jsx(hy,{"data-orientation":f.orientation,"data-state":Ag(g),...x,...d,ref:r,disabled:y,open:g,onOpenChange:v=>{v?h.onItemOpen(s):h.onItemClose(s)}})})});yg.displayName=fs;var bg="AccordionHeader",wg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,...s}=a,d=Ns(It,c),f=Bu(bg,c);return u.jsx(Ue.h3,{"data-orientation":d.orientation,"data-state":Ag(f.open),"data-disabled":f.disabled?"":void 0,...s,ref:r})});wg.displayName=bg;var pu="AccordionTrigger",Sg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,...s}=a,d=Ns(It,c),f=Bu(pu,c),h=Sy(pu,c),x=Lu(c);return u.jsx(ku.ItemSlot,{scope:c,children:u.jsx(py,{"aria-disabled":f.open&&!h.collapsible||void 0,"data-orientation":d.orientation,id:f.triggerId,...x,...s,ref:r})})});Sg.displayName=pu;var jg="AccordionContent",Cg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,...s}=a,d=Ns(It,c),f=Bu(jg,c),h=Lu(c);return u.jsx(gy,{role:"region","aria-labelledby":f.triggerId,"data-orientation":d.orientation,...h,...s,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...a.style}})});Cg.displayName=jg;function Ag(a){return a?"open":"closed"}var mp=pg,Ey=yg,Ty=wg,My=Sg,zy=Cg;/**
|
|
48
|
+
`+l.stack}}var kn=Object.prototype.hasOwnProperty,Vs=a.unstable_scheduleCallback,qs=a.unstable_cancelCallback,px=a.unstable_shouldYield,gx=a.unstable_requestPaint,jt=a.unstable_now,xx=a.unstable_getCurrentPriorityLevel,nd=a.unstable_ImmediatePriority,ld=a.unstable_UserBlockingPriority,Ui=a.unstable_NormalPriority,vx=a.unstable_LowPriority,ad=a.unstable_IdlePriority,yx=a.log,bx=a.unstable_setDisableYieldValue,_a=null,Ct=null;function Ln(e){if(typeof yx=="function"&&bx(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(_a,e)}catch{}}var At=Math.clz32?Math.clz32:jx,wx=Math.log,Sx=Math.LN2;function jx(e){return e>>>=0,e===0?32:31-(wx(e)/Sx|0)|0}var Vi=256,qi=262144,Gi=4194304;function fl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Yi(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var i=0,o=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=l&134217727;return b!==0?(l=b&~o,l!==0?i=fl(l):(m&=b,m!==0?i=fl(m):n||(n=b&~e,n!==0&&(i=fl(n))))):(b=l&~o,b!==0?i=fl(b):m!==0?i=fl(m):n||(n=l&~e,n!==0&&(i=fl(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Oa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function id(){var e=Gi;return Gi<<=1,(Gi&62914560)===0&&(Gi=4194304),e}function Gs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Da(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ax(e,t,n,l,i,o){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var b=e.entanglements,C=e.expirationTimes,k=e.hiddenUpdates;for(n=m&~n;0<n;){var Y=31-At(n),K=1<<Y;b[Y]=0,C[Y]=-1;var L=k[Y];if(L!==null)for(k[Y]=null,Y=0;Y<L.length;Y++){var U=L[Y];U!==null&&(U.lane&=-536870913)}n&=~K}l!==0&&rd(e,l,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(m&~t))}function rd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function sd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-At(n),i=1<<l;i&t|e[l]&t&&(e[l]|=t),n&=~i}}function od(e,t){var n=t&-t;return n=(n&42)!==0?1:Ys(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ys(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Xs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cd(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Jh(e.type))}function ud(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Bn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Bn,ht="__reactProps$"+Bn,Ol="__reactContainer$"+Bn,Zs="__reactEvents$"+Bn,Nx="__reactListeners$"+Bn,Ex="__reactHandles$"+Bn,dd="__reactResources$"+Bn,ka="__reactMarker$"+Bn;function Qs(e){delete e[rt],delete e[ht],delete e[Zs],delete e[Nx],delete e[Ex]}function Dl(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ol]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Oh(e);e!==null;){if(n=e[rt])return n;e=Oh(e)}return t}e=n,n=e.parentNode}return null}function kl(e){if(e=e[rt]||e[Ol]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function La(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ll(e){var t=e[dd];return t||(t=e[dd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[ka]=!0}var fd=new Set,md={};function ml(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(md[e]=t,e=0;e<t.length;e++)fd.add(t[e])}var Tx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),hd={},pd={};function Mx(e){return kn.call(pd,e)?!0:kn.call(hd,e)?!1:Tx.test(e)?pd[e]=!0:(hd[e]=!0,!1)}function Xi(e,t,n){if(Mx(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Zi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function fn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zx(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,o=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(m){n=""+m,o.call(this,m)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ks(e){if(!e._valueTracker){var t=gd(e)?"checked":"value";e._valueTracker=zx(e,t,""+e[t])}}function xd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=gd(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Qi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Rx=/[\n"\\]/g;function Ht(e){return e.replace(Rx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $s(e,t,n,l,i,o,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Bt(t)):e.value!==""+Bt(t)&&(e.value=""+Bt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Js(e,m,Bt(t)):n!=null?Js(e,m,Bt(n)):l!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Bt(b):e.removeAttribute("name")}function vd(e,t,n,l,i,o,m,b){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ks(e);return}n=n!=null?""+Bt(n):"",t=t!=null?""+Bt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=b?e.checked:!!l,e.defaultChecked=!!l,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ks(e)}function Js(e,t,n){t==="number"&&Qi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Hl(e,t,n,l){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Bt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function yd(e,t,n){if(t!=null&&(t=""+Bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Bt(n):""}function bd(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(s(92));if(pe(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Bt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Ks(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _x=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wd(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||_x.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Sd(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&n[i]!==l&&wd(e,i,l)}else for(var o in t)t.hasOwnProperty(o)&&wd(e,o,t[o])}function Fs(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ki(e){return Dx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mn(){}var Ws=null;function Is(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,ql=null;function jd(e){var t=kl(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if($s(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ht(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=l[ht]||null;if(!i)throw Error(s(90));$s(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&xd(l)}break e;case"textarea":yd(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Hl(e,!!n.multiple,t,!1)}}}var Ps=!1;function Cd(e,t,n){if(Ps)return e(t,n);Ps=!0;try{var l=e(t);return l}finally{if(Ps=!1,(Vl!==null||ql!==null)&&(Dr(),Vl&&(t=Vl,e=ql,ql=Vl=null,jd(t),e)))for(t=0;t<e.length;t++)jd(e[t])}}function Ba(e,t){var n=e.stateNode;if(n===null)return null;var l=n[ht]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),eo=!1;if(hn)try{var Ha={};Object.defineProperty(Ha,"passive",{get:function(){eo=!0}}),window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{eo=!1}var Hn=null,to=null,$i=null;function Ad(){if($i)return $i;var e,t=to,n=t.length,l,i="value"in Hn?Hn.value:Hn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var m=n-e;for(l=1;l<=m&&t[n-l]===i[o-l];l++);return $i=i.slice(e,1<l?1-l:void 0)}function Ji(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fi(){return!0}function Nd(){return!1}function pt(e){function t(n,l,i,o,m){this._reactName=n,this._targetInst=i,this.type=l,this.nativeEvent=o,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(o):o[b]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fi:Nd,this.isPropagationStopped=Nd,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fi)},persist:function(){},isPersistent:Fi}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wi=pt(hl),Ua=v({},hl,{view:0,detail:0}),kx=pt(Ua),no,lo,Va,Ii=v({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:io,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Va&&(Va&&e.type==="mousemove"?(no=e.screenX-Va.screenX,lo=e.screenY-Va.screenY):lo=no=0,Va=e),no)},movementY:function(e){return"movementY"in e?e.movementY:lo}}),Ed=pt(Ii),Lx=v({},Ii,{dataTransfer:0}),Bx=pt(Lx),Hx=v({},Ua,{relatedTarget:0}),ao=pt(Hx),Ux=v({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),Vx=pt(Ux),qx=v({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gx=pt(qx),Yx=v({},hl,{data:0}),Td=pt(Yx),Xx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Qx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qx[e])?!!t[e]:!1}function io(){return Kx}var $x=v({},Ua,{key:function(e){if(e.key){var t=Xx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ji(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:io,charCode:function(e){return e.type==="keypress"?Ji(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ji(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jx=pt($x),Fx=v({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Md=pt(Fx),Wx=v({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:io}),Ix=pt(Wx),Px=v({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),ev=pt(Px),tv=v({},Ii,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nv=pt(tv),lv=v({},hl,{newState:0,oldState:0}),av=pt(lv),iv=[9,13,27,32],ro=hn&&"CompositionEvent"in window,qa=null;hn&&"documentMode"in document&&(qa=document.documentMode);var rv=hn&&"TextEvent"in window&&!qa,zd=hn&&(!ro||qa&&8<qa&&11>=qa),Rd=" ",_d=!1;function Od(e,t){switch(e){case"keyup":return iv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function sv(e,t){switch(e){case"compositionend":return Dd(t);case"keypress":return t.which!==32?null:(_d=!0,Rd);case"textInput":return e=t.data,e===Rd&&_d?null:e;default:return null}}function ov(e,t){if(Gl)return e==="compositionend"||!ro&&Od(e,t)?(e=Ad(),$i=to=Hn=null,Gl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zd&&t.locale!=="ko"?null:t.data;default:return null}}var cv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cv[e.type]:t==="textarea"}function Ld(e,t,n,l){Vl?ql?ql.push(l):ql=[l]:Vl=l,t=qr(t,"onChange"),0<t.length&&(n=new Wi("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ga=null,Ya=null;function uv(e){yh(e,0)}function Pi(e){var t=La(e);if(xd(t))return e}function Bd(e,t){if(e==="change")return t}var Hd=!1;if(hn){var so;if(hn){var oo="oninput"in document;if(!oo){var Ud=document.createElement("div");Ud.setAttribute("oninput","return;"),oo=typeof Ud.oninput=="function"}so=oo}else so=!1;Hd=so&&(!document.documentMode||9<document.documentMode)}function Vd(){Ga&&(Ga.detachEvent("onpropertychange",qd),Ya=Ga=null)}function qd(e){if(e.propertyName==="value"&&Pi(Ya)){var t=[];Ld(t,Ya,e,Is(e)),Cd(uv,t)}}function dv(e,t,n){e==="focusin"?(Vd(),Ga=t,Ya=n,Ga.attachEvent("onpropertychange",qd)):e==="focusout"&&Vd()}function fv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(Ya)}function mv(e,t){if(e==="click")return Pi(t)}function hv(e,t){if(e==="input"||e==="change")return Pi(t)}function pv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:pv;function Xa(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var i=n[l];if(!kn.call(t,i)||!Nt(e[i],t[i]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yd(e,t){var n=Gd(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gd(n)}}function Xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qi(e.document)}return t}function co(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var gv=hn&&"documentMode"in document&&11>=document.documentMode,Yl=null,uo=null,Za=null,fo=!1;function Qd(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fo||Yl==null||Yl!==Qi(l)||(l=Yl,"selectionStart"in l&&co(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Za&&Xa(Za,l)||(Za=l,l=qr(uo,"onSelect"),0<l.length&&(t=new Wi("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Yl)))}function pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Xl={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionrun:pl("Transition","TransitionRun"),transitionstart:pl("Transition","TransitionStart"),transitioncancel:pl("Transition","TransitionCancel"),transitionend:pl("Transition","TransitionEnd")},mo={},Kd={};hn&&(Kd=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function gl(e){if(mo[e])return mo[e];if(!Xl[e])return e;var t=Xl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kd)return mo[e]=t[n];return e}var $d=gl("animationend"),Jd=gl("animationiteration"),Fd=gl("animationstart"),xv=gl("transitionrun"),vv=gl("transitionstart"),yv=gl("transitioncancel"),Wd=gl("transitionend"),Id=new Map,ho="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ho.push("scrollEnd");function Kt(e,t){Id.set(e,t),ml(t,[e])}var er=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Zl=0,po=0;function tr(){for(var e=Zl,t=po=Zl=0;t<e;){var n=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var o=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var m=l.pending;m===null?i.next=i:(i.next=m.next,m.next=i),l.pending=i}o!==0&&Pd(n,i,o)}}function nr(e,t,n,l){Ut[Zl++]=e,Ut[Zl++]=t,Ut[Zl++]=n,Ut[Zl++]=l,po|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function go(e,t,n,l){return nr(e,t,n,l),lr(e)}function xl(e,t){return nr(e,null,null,t),lr(e)}function Pd(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,l=o.alternate,l!==null&&(l.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-At(n),e=o.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=n|536870912),o):null}function lr(e){if(50<mi)throw mi=0,Ac=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function bv(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,n,l){return new bv(e,t,n,l)}function xo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pn(e,t){var n=e.alternate;return n===null?(n=Et(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ef(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ar(e,t,n,l,i,o){var m=0;if(l=e,typeof e=="function")xo(e)&&(m=1);else if(typeof e=="string")m=A1(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Et(31,n,t,i),e.elementType=te,e.lanes=o,e;case E:return vl(n.children,i,o,t);case N:m=8,i|=24;break;case R:return e=Et(12,n,t,i|2),e.elementType=R,e.lanes=o,e;case $:return e=Et(13,n,t,i),e.elementType=$,e.lanes=o,e;case J:return e=Et(19,n,t,i),e.elementType=J,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:m=10;break e;case H:m=9;break e;case V:m=11;break e;case Q:m=14;break e;case q:m=16,l=null;break e}m=29,n=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=Et(m,n,t,i),t.elementType=e,t.type=l,t.lanes=o,t}function vl(e,t,n,l){return e=Et(7,e,l,t),e.lanes=n,e}function vo(e,t,n){return e=Et(6,e,null,t),e.lanes=n,e}function tf(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function yo(e,t,n){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nf=new WeakMap;function Vt(e,t){if(typeof e=="object"&&e!==null){var n=nf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Hi(t)},nf.set(e,t),t)}return{value:e,source:t,stack:Hi(t)}}var Kl=[],$l=0,ir=null,Qa=0,qt=[],Gt=0,Un=null,en=1,tn="";function gn(e,t){Kl[$l++]=Qa,Kl[$l++]=ir,ir=e,Qa=t}function lf(e,t,n){qt[Gt++]=en,qt[Gt++]=tn,qt[Gt++]=Un,Un=e;var l=en;e=tn;var i=32-At(l)-1;l&=~(1<<i),n+=1;var o=32-At(t)+i;if(30<o){var m=i-i%5;o=(l&(1<<m)-1).toString(32),l>>=m,i-=m,en=1<<32-At(t)+i|n<<i|l,tn=o+e}else en=1<<o|n<<i|l,tn=e}function bo(e){e.return!==null&&(gn(e,1),lf(e,1,0))}function wo(e){for(;e===ir;)ir=Kl[--$l],Kl[$l]=null,Qa=Kl[--$l],Kl[$l]=null;for(;e===Un;)Un=qt[--Gt],qt[Gt]=null,tn=qt[--Gt],qt[Gt]=null,en=qt[--Gt],qt[Gt]=null}function af(e,t){qt[Gt++]=en,qt[Gt++]=tn,qt[Gt++]=Un,en=t.id,tn=t.overflow,Un=e}var st=null,Ve=null,Ee=!1,Vn=null,Yt=!1,So=Error(s(519));function qn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(Vt(t,e)),So}function rf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[rt]=e,t[ht]=l,n){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(n=0;n<pi.length;n++)je(pi[n],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),vd(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),bd(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||jh(t.textContent,n)?(l.popover!=null&&(je("beforetoggle",t),je("toggle",t)),l.onScroll!=null&&je("scroll",t),l.onScrollEnd!=null&&je("scrollend",t),l.onClick!=null&&(t.onclick=mn),t=!0):t=!1,t||qn(e,!0)}function sf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Yt=!1;return;case 27:case 3:Yt=!0;return;default:st=st.return}}function Jl(e){if(e!==st)return!1;if(!Ee)return sf(e),Ee=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Vc(e.type,e.memoizedProps)),n=!n),n&&Ve&&qn(e),sf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ve=_h(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Ve=_h(e)}else t===27?(t=Ve,tl(e.type)?(e=Zc,Zc=null,Ve=e):Ve=t):Ve=st?Zt(e.stateNode.nextSibling):null;return!0}function yl(){Ve=st=null,Ee=!1}function jo(){var e=Vn;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),Vn=null),e}function Ka(e){Vn===null?Vn=[e]:Vn.push(e)}var Co=T(null),bl=null,xn=null;function Gn(e,t,n){F(Co,t._currentValue),t._currentValue=n}function vn(e){e._currentValue=Co.current,X(Co)}function Ao(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function No(e,t,n,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var m=i.child;o=o.firstContext;e:for(;o!==null;){var b=o;o=i;for(var C=0;C<t.length;C++)if(b.context===t[C]){o.lanes|=n,b=o.alternate,b!==null&&(b.lanes|=n),Ao(o.return,n,e),l||(m=null);break e}o=b.next}}else if(i.tag===18){if(m=i.return,m===null)throw Error(s(341));m.lanes|=n,o=m.alternate,o!==null&&(o.lanes|=n),Ao(m,n,e),m=null}else m=i.child;if(m!==null)m.return=i;else for(m=i;m!==null;){if(m===e){m=null;break}if(i=m.sibling,i!==null){i.return=m.return,m=i;break}m=m.return}i=m}}function Fl(e,t,n,l){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var m=i.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var b=i.type;Nt(i.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(i===P.current){if(m=i.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(bi):e=[bi])}i=i.return}e!==null&&No(t,e,n,l),t.flags|=262144}function rr(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function wl(e){bl=e,xn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ot(e){return of(bl,e)}function sr(e,t){return bl===null&&wl(e),of(e,t)}function of(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},xn===null){if(e===null)throw Error(s(308));xn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xn=xn.next=t;return n}var wv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Sv=a.unstable_scheduleCallback,jv=a.unstable_NormalPriority,$e={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eo(){return{controller:new wv,data:new Map,refCount:0}}function $a(e){e.refCount--,e.refCount===0&&Sv(jv,function(){e.controller.abort()})}var Ja=null,To=0,Wl=0,Il=null;function Cv(e,t){if(Ja===null){var n=Ja=[];To=0,Wl=Rc(),Il={status:"pending",value:void 0,then:function(l){n.push(l)}}}return To++,t.then(cf,cf),t}function cf(){if(--To===0&&Ja!==null){Il!==null&&(Il.status="fulfilled");var e=Ja;Ja=null,Wl=0,Il=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Av(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),l}var uf=_.S;_.S=function(e,t){Km=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Cv(e,t),uf!==null&&uf(e,t)};var Sl=T(null);function Mo(){var e=Sl.current;return e!==null?e:Be.pooledCache}function or(e,t){t===null?F(Sl,Sl.current):F(Sl,t.pool)}function df(){var e=Mo();return e===null?null:{parent:$e._currentValue,pool:e}}var Pl=Error(s(460)),zo=Error(s(474)),cr=Error(s(542)),ur={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mn,mn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pf(e),e;default:if(typeof t.status=="string")t.then(mn,mn);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,pf(e),e}throw Cl=t,Pl}}function jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Cl=n,Pl):n}}var Cl=null;function hf(){if(Cl===null)throw Error(s(459));var e=Cl;return Cl=null,e}function pf(e){if(e===Pl||e===cr)throw Error(s(483))}var ea=null,Fa=0;function dr(e){var t=Fa;return Fa+=1,ea===null&&(ea=[]),mf(ea,e,t)}function Wa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function fr(e,t){throw t.$$typeof===w?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gf(e){function t(z,M){if(e){var D=z.deletions;D===null?(z.deletions=[M],z.flags|=16):D.push(M)}}function n(z,M){if(!e)return null;for(;M!==null;)t(z,M),M=M.sibling;return null}function l(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function i(z,M){return z=pn(z,M),z.index=0,z.sibling=null,z}function o(z,M,D){return z.index=D,e?(D=z.alternate,D!==null?(D=D.index,D<M?(z.flags|=67108866,M):D):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function b(z,M,D,Z){return M===null||M.tag!==6?(M=vo(D,z.mode,Z),M.return=z,M):(M=i(M,D),M.return=z,M)}function C(z,M,D,Z){var ce=D.type;return ce===E?Y(z,M,D.props.children,Z,D.key):M!==null&&(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&jl(ce)===M.type)?(M=i(M,D.props),Wa(M,D),M.return=z,M):(M=ar(D.type,D.key,D.props,null,z.mode,Z),Wa(M,D),M.return=z,M)}function k(z,M,D,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==D.containerInfo||M.stateNode.implementation!==D.implementation?(M=yo(D,z.mode,Z),M.return=z,M):(M=i(M,D.children||[]),M.return=z,M)}function Y(z,M,D,Z,ce){return M===null||M.tag!==7?(M=vl(D,z.mode,Z,ce),M.return=z,M):(M=i(M,D),M.return=z,M)}function K(z,M,D){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=vo(""+M,z.mode,D),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return D=ar(M.type,M.key,M.props,null,z.mode,D),Wa(D,M),D.return=z,D;case A:return M=yo(M,z.mode,D),M.return=z,M;case q:return M=jl(M),K(z,M,D)}if(pe(M)||re(M))return M=vl(M,z.mode,D,null),M.return=z,M;if(typeof M.then=="function")return K(z,dr(M),D);if(M.$$typeof===O)return K(z,sr(z,M),D);fr(z,M)}return null}function L(z,M,D,Z){var ce=M!==null?M.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ce!==null?null:b(z,M,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case j:return D.key===ce?C(z,M,D,Z):null;case A:return D.key===ce?k(z,M,D,Z):null;case q:return D=jl(D),L(z,M,D,Z)}if(pe(D)||re(D))return ce!==null?null:Y(z,M,D,Z,null);if(typeof D.then=="function")return L(z,M,dr(D),Z);if(D.$$typeof===O)return L(z,M,sr(z,D),Z);fr(z,D)}return null}function U(z,M,D,Z,ce){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(D)||null,b(M,z,""+Z,ce);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case j:return z=z.get(Z.key===null?D:Z.key)||null,C(M,z,Z,ce);case A:return z=z.get(Z.key===null?D:Z.key)||null,k(M,z,Z,ce);case q:return Z=jl(Z),U(z,M,D,Z,ce)}if(pe(Z)||re(Z))return z=z.get(D)||null,Y(M,z,Z,ce,null);if(typeof Z.then=="function")return U(z,M,D,dr(Z),ce);if(Z.$$typeof===O)return U(z,M,D,sr(M,Z),ce);fr(M,Z)}return null}function ne(z,M,D,Z){for(var ce=null,Me=null,se=M,ye=M=0,Ae=null;se!==null&&ye<D.length;ye++){se.index>ye?(Ae=se,se=null):Ae=se.sibling;var ze=L(z,se,D[ye],Z);if(ze===null){se===null&&(se=Ae);break}e&&se&&ze.alternate===null&&t(z,se),M=o(ze,M,ye),Me===null?ce=ze:Me.sibling=ze,Me=ze,se=Ae}if(ye===D.length)return n(z,se),Ee&&gn(z,ye),ce;if(se===null){for(;ye<D.length;ye++)se=K(z,D[ye],Z),se!==null&&(M=o(se,M,ye),Me===null?ce=se:Me.sibling=se,Me=se);return Ee&&gn(z,ye),ce}for(se=l(se);ye<D.length;ye++)Ae=U(se,z,ye,D[ye],Z),Ae!==null&&(e&&Ae.alternate!==null&&se.delete(Ae.key===null?ye:Ae.key),M=o(Ae,M,ye),Me===null?ce=Ae:Me.sibling=Ae,Me=Ae);return e&&se.forEach(function(rl){return t(z,rl)}),Ee&&gn(z,ye),ce}function de(z,M,D,Z){if(D==null)throw Error(s(151));for(var ce=null,Me=null,se=M,ye=M=0,Ae=null,ze=D.next();se!==null&&!ze.done;ye++,ze=D.next()){se.index>ye?(Ae=se,se=null):Ae=se.sibling;var rl=L(z,se,ze.value,Z);if(rl===null){se===null&&(se=Ae);break}e&&se&&rl.alternate===null&&t(z,se),M=o(rl,M,ye),Me===null?ce=rl:Me.sibling=rl,Me=rl,se=Ae}if(ze.done)return n(z,se),Ee&&gn(z,ye),ce;if(se===null){for(;!ze.done;ye++,ze=D.next())ze=K(z,ze.value,Z),ze!==null&&(M=o(ze,M,ye),Me===null?ce=ze:Me.sibling=ze,Me=ze);return Ee&&gn(z,ye),ce}for(se=l(se);!ze.done;ye++,ze=D.next())ze=U(se,z,ye,ze.value,Z),ze!==null&&(e&&ze.alternate!==null&&se.delete(ze.key===null?ye:ze.key),M=o(ze,M,ye),Me===null?ce=ze:Me.sibling=ze,Me=ze);return e&&se.forEach(function(L1){return t(z,L1)}),Ee&&gn(z,ye),ce}function Le(z,M,D,Z){if(typeof D=="object"&&D!==null&&D.type===E&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case j:e:{for(var ce=D.key;M!==null;){if(M.key===ce){if(ce=D.type,ce===E){if(M.tag===7){n(z,M.sibling),Z=i(M,D.props.children),Z.return=z,z=Z;break e}}else if(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===q&&jl(ce)===M.type){n(z,M.sibling),Z=i(M,D.props),Wa(Z,D),Z.return=z,z=Z;break e}n(z,M);break}else t(z,M);M=M.sibling}D.type===E?(Z=vl(D.props.children,z.mode,Z,D.key),Z.return=z,z=Z):(Z=ar(D.type,D.key,D.props,null,z.mode,Z),Wa(Z,D),Z.return=z,z=Z)}return m(z);case A:e:{for(ce=D.key;M!==null;){if(M.key===ce)if(M.tag===4&&M.stateNode.containerInfo===D.containerInfo&&M.stateNode.implementation===D.implementation){n(z,M.sibling),Z=i(M,D.children||[]),Z.return=z,z=Z;break e}else{n(z,M);break}else t(z,M);M=M.sibling}Z=yo(D,z.mode,Z),Z.return=z,z=Z}return m(z);case q:return D=jl(D),Le(z,M,D,Z)}if(pe(D))return ne(z,M,D,Z);if(re(D)){if(ce=re(D),typeof ce!="function")throw Error(s(150));return D=ce.call(D),de(z,M,D,Z)}if(typeof D.then=="function")return Le(z,M,dr(D),Z);if(D.$$typeof===O)return Le(z,M,sr(z,D),Z);fr(z,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,M!==null&&M.tag===6?(n(z,M.sibling),Z=i(M,D),Z.return=z,z=Z):(n(z,M),Z=vo(D,z.mode,Z),Z.return=z,z=Z),m(z)):n(z,M)}return function(z,M,D,Z){try{Fa=0;var ce=Le(z,M,D,Z);return ea=null,ce}catch(se){if(se===Pl||se===cr)throw se;var Me=Et(29,se,null,z.mode);return Me.lanes=Z,Me.return=z,Me}finally{}}}var Al=gf(!0),xf=gf(!1),Yn=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _o(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Re&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=lr(e),Pd(e,null,n),t}return nr(e,l,t,n),lr(e)}function Ia(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,sd(e,n)}}function Oo(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=m:o=o.next=m,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Do=!1;function Pa(){if(Do){var e=Il;if(e!==null)throw e}}function ei(e,t,n,l){Do=!1;var i=e.updateQueue;Yn=!1;var o=i.firstBaseUpdate,m=i.lastBaseUpdate,b=i.shared.pending;if(b!==null){i.shared.pending=null;var C=b,k=C.next;C.next=null,m===null?o=k:m.next=k,m=C;var Y=e.alternate;Y!==null&&(Y=Y.updateQueue,b=Y.lastBaseUpdate,b!==m&&(b===null?Y.firstBaseUpdate=k:b.next=k,Y.lastBaseUpdate=C))}if(o!==null){var K=i.baseState;m=0,Y=k=C=null,b=o;do{var L=b.lane&-536870913,U=L!==b.lane;if(U?(Ce&L)===L:(l&L)===L){L!==0&&L===Wl&&(Do=!0),Y!==null&&(Y=Y.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var ne=e,de=b;L=t;var Le=n;switch(de.tag){case 1:if(ne=de.payload,typeof ne=="function"){K=ne.call(Le,K,L);break e}K=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=de.payload,L=typeof ne=="function"?ne.call(Le,K,L):ne,L==null)break e;K=v({},K,L);break e;case 2:Yn=!0}}L=b.callback,L!==null&&(e.flags|=64,U&&(e.flags|=8192),U=i.callbacks,U===null?i.callbacks=[L]:U.push(L))}else U={lane:L,tag:b.tag,payload:b.payload,callback:b.callback,next:null},Y===null?(k=Y=U,C=K):Y=Y.next=U,m|=L;if(b=b.next,b===null){if(b=i.shared.pending,b===null)break;U=b,b=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);Y===null&&(C=K),i.baseState=C,i.firstBaseUpdate=k,i.lastBaseUpdate=Y,o===null&&(i.shared.lanes=0),Fn|=m,e.lanes=m,e.memoizedState=K}}function vf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function yf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vf(n[e],t)}var ta=T(null),mr=T(0);function bf(e,t){e=En,F(mr,e),F(ta,t),En=e|t.baseLanes}function ko(){F(mr,En),F(ta,ta.current)}function Lo(){En=mr.current,X(ta),X(mr)}var Tt=T(null),Xt=null;function Qn(e){var t=e.alternate;F(Qe,Qe.current&1),F(Tt,e),Xt===null&&(t===null||ta.current!==null||t.memoizedState!==null)&&(Xt=e)}function Bo(e){F(Qe,Qe.current),F(Tt,e),Xt===null&&(Xt=e)}function wf(e){e.tag===22?(F(Qe,Qe.current),F(Tt,e),Xt===null&&(Xt=e)):Kn()}function Kn(){F(Qe,Qe.current),F(Tt,Tt.current)}function Mt(e){X(Tt),Xt===e&&(Xt=null),X(Qe)}var Qe=T(0);function hr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yc(n)||Xc(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var yn=0,ve=null,De=null,Je=null,pr=!1,na=!1,Nl=!1,gr=0,ti=0,la=null,Nv=0;function Xe(){throw Error(s(321))}function Ho(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Nt(e[n],t[n]))return!1;return!0}function Uo(e,t,n,l,i,o){return yn=o,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?am:ec,Nl=!1,o=n(l,i),Nl=!1,na&&(o=jf(t,n,l,i)),Sf(e),o}function Sf(e){_.H=ai;var t=De!==null&&De.next!==null;if(yn=0,Je=De=ve=null,pr=!1,ti=0,la=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&rr(e)&&(Fe=!0))}function jf(e,t,n,l){ve=e;var i=0;do{if(na&&(la=null),ti=0,na=!1,25<=i)throw Error(s(301));if(i+=1,Je=De=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}_.H=im,o=t(n,l)}while(na);return o}function Ev(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ve.flags|=1024),t}function Vo(){var e=gr!==0;return gr=0,e}function qo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Go(e){if(pr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}pr=!1}yn=0,Je=De=ve=null,na=!1,ti=gr=0,la=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ve.memoizedState=Je=e:Je=Je.next=e,Je}function Ke(){if(De===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Je===null?ve.memoizedState:Je.next;if(t!==null)Je=t,De=e;else{if(e===null)throw ve.alternate===null?Error(s(467)):Error(s(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Je===null?ve.memoizedState=Je=e:Je=Je.next=e}return Je}function xr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=ti;return ti+=1,la===null&&(la=[]),e=mf(la,e,t),t=ve,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?am:ec),e}function vr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===O)return ot(e)}throw Error(s(438,String(e)))}function Yo(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xr(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=ee;return t.index++,n}function bn(e,t){return typeof t=="function"?t(e):t}function yr(e){var t=Ke();return Xo(t,De,e)}function Xo(e,t,n){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;var i=e.baseQueue,o=l.pending;if(o!==null){if(i!==null){var m=i.next;i.next=o.next,o.next=m}t.baseQueue=i=o,l.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var b=m=null,C=null,k=t,Y=!1;do{var K=k.lane&-536870913;if(K!==k.lane?(Ce&K)===K:(yn&K)===K){var L=k.revertLane;if(L===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),K===Wl&&(Y=!0);else if((yn&L)===L){k=k.next,L===Wl&&(Y=!0);continue}else K={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(b=C=K,m=o):C=C.next=K,ve.lanes|=L,Fn|=L;K=k.action,Nl&&n(o,K),o=k.hasEagerState?k.eagerState:n(o,K)}else L={lane:K,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},C===null?(b=C=L,m=o):C=C.next=L,ve.lanes|=K,Fn|=K;k=k.next}while(k!==null&&k!==t);if(C===null?m=o:C.next=b,!Nt(o,e.memoizedState)&&(Fe=!0,Y&&(n=Il,n!==null)))throw n;e.memoizedState=o,e.baseState=m,e.baseQueue=C,l.lastRenderedState=o}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Zo(e){var t=Ke(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var l=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var m=i=i.next;do o=e(o,m.action),m=m.next;while(m!==i);Nt(o,t.memoizedState)||(Fe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,l]}function Cf(e,t,n){var l=ve,i=Ke(),o=Ee;if(o){if(n===void 0)throw Error(s(407));n=n()}else n=t();var m=!Nt((De||i).memoizedState,n);if(m&&(i.memoizedState=n,Fe=!0),i=i.queue,$o(Ef.bind(null,l,i,e),[e]),i.getSnapshot!==t||m||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,aa(9,{destroy:void 0},Nf.bind(null,l,i,n,t),null),Be===null)throw Error(s(349));o||(yn&127)!==0||Af(l,t,n)}return n}function Af(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=xr(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Nf(e,t,n,l){t.value=n,t.getSnapshot=l,Tf(t)&&Mf(e)}function Ef(e,t,n){return n(function(){Tf(t)&&Mf(e)})}function Tf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nt(e,n)}catch{return!0}}function Mf(e){var t=xl(e,2);t!==null&&bt(t,e,2)}function Qo(e){var t=mt();if(typeof e=="function"){var n=e;if(e=n(),Nl){Ln(!0);try{n()}finally{Ln(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:e},t}function zf(e,t,n,l){return e.baseState=n,Xo(e,De,typeof l=="function"?l:bn)}function Tv(e,t,n,l,i){if(Sr(e))throw Error(s(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){o.listeners.push(m)}};_.T!==null?n(!0):o.isTransition=!1,l(o),n=t.pending,n===null?(o.next=t.pending=o,Rf(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Rf(e,t){var n=t.action,l=t.payload,i=e.state;if(t.isTransition){var o=_.T,m={};_.T=m;try{var b=n(i,l),C=_.S;C!==null&&C(m,b),_f(e,t,b)}catch(k){Ko(e,t,k)}finally{o!==null&&m.types!==null&&(o.types=m.types),_.T=o}}else try{o=n(i,l),_f(e,t,o)}catch(k){Ko(e,t,k)}}function _f(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Of(e,t,l)},function(l){return Ko(e,t,l)}):Of(e,t,n)}function Of(e,t,n){t.status="fulfilled",t.value=n,Df(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Rf(e,n)))}function Ko(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Df(t),t=t.next;while(t!==l)}e.action=null}function Df(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kf(e,t){return t}function Lf(e,t){if(Ee){var n=Be.formState;if(n!==null){e:{var l=ve;if(Ee){if(Ve){t:{for(var i=Ve,o=Yt;i.nodeType!==8;){if(!o){i=null;break t}if(i=Zt(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ve=Zt(i.nextSibling),l=i.data==="F!";break e}}qn(l)}l=!1}l&&(t=n[0])}}return n=mt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kf,lastRenderedState:t},n.queue=l,n=tm.bind(null,ve,l),l.dispatch=n,l=Qo(!1),o=Po.bind(null,ve,!1,l.queue),l=mt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,n=Tv.bind(null,ve,i,o,n),i.dispatch=n,l.memoizedState=e,[t,n,!1]}function Bf(e){var t=Ke();return Hf(t,De,e)}function Hf(e,t,n){if(t=Xo(e,t,kf)[0],e=yr(bn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ni(t)}catch(m){throw m===Pl?cr:m}else l=t;t=Ke();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,aa(9,{destroy:void 0},Mv.bind(null,i,n),null)),[l,o,e]}function Mv(e,t){e.action=t}function Uf(e){var t=Ke(),n=De;if(n!==null)return Hf(t,n,e);Ke(),t=t.memoizedState,n=Ke();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function aa(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ve.updateQueue,t===null&&(t=xr(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Vf(){return Ke().memoizedState}function br(e,t,n,l){var i=mt();ve.flags|=e,i.memoizedState=aa(1|t,{destroy:void 0},n,l===void 0?null:l)}function wr(e,t,n,l){var i=Ke();l=l===void 0?null:l;var o=i.memoizedState.inst;De!==null&&l!==null&&Ho(l,De.memoizedState.deps)?i.memoizedState=aa(t,o,n,l):(ve.flags|=e,i.memoizedState=aa(1|t,o,n,l))}function qf(e,t){br(8390656,8,e,t)}function $o(e,t){wr(2048,8,e,t)}function zv(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=xr(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Gf(e){var t=Ke().memoizedState;return zv({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Yf(e,t){return wr(4,2,e,t)}function Xf(e,t){return wr(4,4,e,t)}function Zf(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qf(e,t,n){n=n!=null?n.concat([e]):null,wr(4,4,Zf.bind(null,t,e),n)}function Jo(){}function Kf(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Ho(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function $f(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Ho(t,l[1]))return l[0];if(l=e(),Nl){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[l,t],l}function Fo(e,t,n){return n===void 0||(yn&1073741824)!==0&&(Ce&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Jm(),ve.lanes|=e,Fn|=e,n)}function Jf(e,t,n,l){return Nt(n,t)?n:ta.current!==null?(e=Fo(e,n,l),Nt(e,t)||(Fe=!0),e):(yn&42)===0||(yn&1073741824)!==0&&(Ce&261930)===0?(Fe=!0,e.memoizedState=n):(e=Jm(),ve.lanes|=e,Fn|=e,t)}function Ff(e,t,n,l,i){var o=G.p;G.p=o!==0&&8>o?o:8;var m=_.T,b={};_.T=b,Po(e,!1,t,n);try{var C=i(),k=_.S;if(k!==null&&k(b,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=Av(C,l);li(e,t,Y,_t(e))}else li(e,t,l,_t(e))}catch(K){li(e,t,{then:function(){},status:"rejected",reason:K},_t())}finally{G.p=o,m!==null&&b.types!==null&&(m.types=b.types),_.T=m}}function Rv(){}function Wo(e,t,n,l){if(e.tag!==5)throw Error(s(476));var i=Wf(e).queue;Ff(e,i,t,B,n===null?Rv:function(){return If(e),n(l)})}function Wf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:B},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function If(e){var t=Wf(e);t.next===null&&(t=e.alternate.memoizedState),li(e,t.next.queue,{},_t())}function Io(){return ot(bi)}function Pf(){return Ke().memoizedState}function em(){return Ke().memoizedState}function _v(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_t();e=Xn(n);var l=Zn(t,e,n);l!==null&&(bt(l,t,n),Ia(l,t,n)),t={cache:Eo()},e.payload=t;return}t=t.return}}function Ov(e,t,n){var l=_t();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Sr(e)?nm(t,n):(n=go(e,t,n,l),n!==null&&(bt(n,e,l),lm(n,t,l)))}function tm(e,t,n){var l=_t();li(e,t,n,l)}function li(e,t,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sr(e))nm(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var m=t.lastRenderedState,b=o(m,n);if(i.hasEagerState=!0,i.eagerState=b,Nt(b,m))return nr(e,t,i,0),Be===null&&tr(),!1}catch{}finally{}if(n=go(e,t,i,l),n!==null)return bt(n,e,l),lm(n,t,l),!0}return!1}function Po(e,t,n,l){if(l={lane:2,revertLane:Rc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Sr(e)){if(t)throw Error(s(479))}else t=go(e,n,l,2),t!==null&&bt(t,e,2)}function Sr(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function nm(e,t){na=pr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lm(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,sd(e,n)}}var ai={readContext:ot,use:vr,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe};ai.useEffectEvent=Xe;var am={readContext:ot,use:vr,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ot,useEffect:qf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,br(4194308,4,Zf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return br(4194308,4,e,t)},useInsertionEffect:function(e,t){br(4,2,e,t)},useMemo:function(e,t){var n=mt();t=t===void 0?null:t;var l=e();if(Nl){Ln(!0);try{e()}finally{Ln(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=mt();if(n!==void 0){var i=n(t);if(Nl){Ln(!0);try{n(t)}finally{Ln(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=Ov.bind(null,ve,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=tm.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Jo,useDeferredValue:function(e,t){var n=mt();return Fo(n,e,t)},useTransition:function(){var e=Qo(!1);return e=Ff.bind(null,ve,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ve,i=mt();if(Ee){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Be===null)throw Error(s(349));(Ce&127)!==0||Af(l,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,qf(Ef.bind(null,l,o,e),[e]),l.flags|=2048,aa(9,{destroy:void 0},Nf.bind(null,l,o,n,t),null),n},useId:function(){var e=mt(),t=Be.identifierPrefix;if(Ee){var n=tn,l=en;n=(l&~(1<<32-At(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Nv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Io,useFormState:Lf,useActionState:Lf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Po.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Yo,useCacheRefresh:function(){return mt().memoizedState=_v.bind(null,ve)},useEffectEvent:function(e){var t=mt(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},ec={readContext:ot,use:vr,useCallback:Kf,useContext:ot,useEffect:$o,useImperativeHandle:Qf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:$f,useReducer:yr,useRef:Vf,useState:function(){return yr(bn)},useDebugValue:Jo,useDeferredValue:function(e,t){var n=Ke();return Jf(n,De.memoizedState,e,t)},useTransition:function(){var e=yr(bn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Cf,useId:Pf,useHostTransitionStatus:Io,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var n=Ke();return zf(n,De,e,t)},useMemoCache:Yo,useCacheRefresh:em};ec.useEffectEvent=Gf;var im={readContext:ot,use:vr,useCallback:Kf,useContext:ot,useEffect:$o,useImperativeHandle:Qf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:$f,useReducer:Zo,useRef:Vf,useState:function(){return Zo(bn)},useDebugValue:Jo,useDeferredValue:function(e,t){var n=Ke();return De===null?Fo(n,e,t):Jf(n,De.memoizedState,e,t)},useTransition:function(){var e=Zo(bn)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Cf,useId:Pf,useHostTransitionStatus:Io,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var n=Ke();return De!==null?zf(n,De,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Yo,useCacheRefresh:em};im.useEffectEvent=Gf;function tc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var nc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=_t(),i=Xn(l);i.payload=t,n!=null&&(i.callback=n),t=Zn(e,i,l),t!==null&&(bt(t,e,l),Ia(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=_t(),i=Xn(l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zn(e,i,l),t!==null&&(bt(t,e,l),Ia(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),l=Xn(n);l.tag=2,t!=null&&(l.callback=t),t=Zn(e,l,n),t!==null&&(bt(t,e,n),Ia(t,e,n))}};function rm(e,t,n,l,i,o,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,o,m):t.prototype&&t.prototype.isPureReactComponent?!Xa(n,l)||!Xa(i,o):!0}function sm(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&nc.enqueueReplaceState(t,t.state,null)}function El(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function om(e){er(e)}function cm(e){console.error(e)}function um(e){er(e)}function jr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function dm(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function lc(e,t,n){return n=Xn(n),n.tag=3,n.payload={element:null},n.callback=function(){jr(e,t)},n}function fm(e){return e=Xn(e),e.tag=3,e}function mm(e,t,n,l){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=l.value;e.payload=function(){return i(o)},e.callback=function(){dm(t,n,l)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){dm(t,n,l),typeof i!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=l.stack;this.componentDidCatch(l.value,{componentStack:b!==null?b:""})})}function Dv(e,t,n,l,i){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Fl(t,n,i,!0),n=Tt.current,n!==null){switch(n.tag){case 31:case 13:return Xt===null?kr():n.alternate===null&&Ze===0&&(Ze=3),n.flags&=-257,n.flags|=65536,n.lanes=i,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),Tc(e,l,i)),!1;case 22:return n.flags|=65536,l===ur?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),Tc(e,l,i)),!1}throw Error(s(435,n.tag))}return Tc(e,l,i),kr(),!1}if(Ee)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==So&&(e=Error(s(422),{cause:l}),Ka(Vt(e,n)))):(l!==So&&(t=Error(s(423),{cause:l}),Ka(Vt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Vt(l,n),i=lc(e.stateNode,l,i),Oo(e,i),Ze!==4&&(Ze=2)),!1;var o=Error(s(520),{cause:l});if(o=Vt(o,n),fi===null?fi=[o]:fi.push(o),Ze!==4&&(Ze=2),t===null)return!0;l=Vt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=lc(n.stateNode,l,e),Oo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Wn===null||!Wn.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=fm(i),mm(i,e,n,l),Oo(n,i),!1}n=n.return}while(n!==null);return!1}var ac=Error(s(461)),Fe=!1;function ct(e,t,n,l){t.child=e===null?xf(t,null,n,l):Al(t,e.child,n,l)}function hm(e,t,n,l,i){n=n.render;var o=t.ref;if("ref"in l){var m={};for(var b in l)b!=="ref"&&(m[b]=l[b])}else m=l;return wl(t),l=Uo(e,t,n,m,o,i),b=Vo(),e!==null&&!Fe?(qo(e,t,i),wn(e,t,i)):(Ee&&b&&bo(t),t.flags|=1,ct(e,t,l,i),t.child)}function pm(e,t,n,l,i){if(e===null){var o=n.type;return typeof o=="function"&&!xo(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,gm(e,t,o,l,i)):(e=ar(n.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!fc(e,i)){var m=o.memoizedProps;if(n=n.compare,n=n!==null?n:Xa,n(m,l)&&e.ref===t.ref)return wn(e,t,i)}return t.flags|=1,e=pn(o,l),e.ref=t.ref,e.return=t,t.child=e}function gm(e,t,n,l,i){if(e!==null){var o=e.memoizedProps;if(Xa(o,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=o,fc(e,i))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,wn(e,t,i)}return ic(e,t,n,l,i)}function xm(e,t,n,l){var i=l.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~o}else l=0,t.child=null;return vm(e,t,o,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,o!==null?o.cachePool:null),o!==null?bf(t,o):ko(),wf(t);else return l=t.lanes=536870912,vm(e,t,o!==null?o.baseLanes|n:n,n,l)}else o!==null?(or(t,o.cachePool),bf(t,o),Kn(),t.memoizedState=null):(e!==null&&or(t,null),ko(),Kn());return ct(e,t,i,n),t.child}function ii(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vm(e,t,n,l,i){var o=Mo();return o=o===null?null:{parent:$e._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&or(t,null),ko(),wf(t),e!==null&&Fl(e,t,l,!0),t.childLanes=i,null}function Cr(e,t){return t=Nr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ym(e,t,n){return Al(t,e.child,null,n),e=Cr(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function kv(e,t,n){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ee){if(l.mode==="hidden")return e=Cr(t,l),t.lanes=536870912,ii(null,e);if(Bo(t),(e=Ve)?(e=Rh(e,Yt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Un!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=tf(e),n.return=t,t.child=n,st=t,Ve=null)):e=null,e===null)throw qn(t);return t.lanes=536870912,null}return Cr(t,l)}var o=e.memoizedState;if(o!==null){var m=o.dehydrated;if(Bo(t),i)if(t.flags&256)t.flags&=-257,t=ym(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Fe||Fl(e,t,n,!1),i=(n&e.childLanes)!==0,Fe||i){if(l=Be,l!==null&&(m=od(l,n),m!==0&&m!==o.retryLane))throw o.retryLane=m,xl(e,m),bt(l,e,m),ac;kr(),t=ym(e,t,n)}else e=o.treeContext,Ve=Zt(m.nextSibling),st=t,Ee=!0,Vn=null,Yt=!1,e!==null&&af(t,e),t=Cr(t,l),t.flags|=4096;return t}return e=pn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ar(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ic(e,t,n,l,i){return wl(t),n=Uo(e,t,n,l,void 0,i),l=Vo(),e!==null&&!Fe?(qo(e,t,i),wn(e,t,i)):(Ee&&l&&bo(t),t.flags|=1,ct(e,t,n,i),t.child)}function bm(e,t,n,l,i,o){return wl(t),t.updateQueue=null,n=jf(t,l,n,i),Sf(e),l=Vo(),e!==null&&!Fe?(qo(e,t,o),wn(e,t,o)):(Ee&&l&&bo(t),t.flags|=1,ct(e,t,n,o),t.child)}function wm(e,t,n,l,i){if(wl(t),t.stateNode===null){var o=Ql,m=n.contextType;typeof m=="object"&&m!==null&&(o=ot(m)),o=new n(l,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=nc,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=l,o.state=t.memoizedState,o.refs={},Ro(t),m=n.contextType,o.context=typeof m=="object"&&m!==null?ot(m):Ql,o.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(tc(t,n,m,l),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(m=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),m!==o.state&&nc.enqueueReplaceState(o,o.state,null),ei(t,l,o,i),Pa(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){o=t.stateNode;var b=t.memoizedProps,C=El(n,b);o.props=C;var k=o.context,Y=n.contextType;m=Ql,typeof Y=="object"&&Y!==null&&(m=ot(Y));var K=n.getDerivedStateFromProps;Y=typeof K=="function"||typeof o.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,Y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(b||k!==m)&&sm(t,o,l,m),Yn=!1;var L=t.memoizedState;o.state=L,ei(t,l,o,i),Pa(),k=t.memoizedState,b||L!==k||Yn?(typeof K=="function"&&(tc(t,n,K,l),k=t.memoizedState),(C=Yn||rm(t,n,C,l,L,k,m))?(Y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=k),o.props=l,o.state=k,o.context=m,l=C):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{o=t.stateNode,_o(e,t),m=t.memoizedProps,Y=El(n,m),o.props=Y,K=t.pendingProps,L=o.context,k=n.contextType,C=Ql,typeof k=="object"&&k!==null&&(C=ot(k)),b=n.getDerivedStateFromProps,(k=typeof b=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(m!==K||L!==C)&&sm(t,o,l,C),Yn=!1,L=t.memoizedState,o.state=L,ei(t,l,o,i),Pa();var U=t.memoizedState;m!==K||L!==U||Yn||e!==null&&e.dependencies!==null&&rr(e.dependencies)?(typeof b=="function"&&(tc(t,n,b,l),U=t.memoizedState),(Y=Yn||rm(t,n,Y,l,L,U,C)||e!==null&&e.dependencies!==null&&rr(e.dependencies))?(k||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(l,U,C),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(l,U,C)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),o.props=l,o.state=U,o.context=C,l=Y):(typeof o.componentDidUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),l=!1)}return o=l,Ar(e,t),l=(t.flags&128)!==0,o||l?(o=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,i),t.child=Al(t,null,n,i)):ct(e,t,n,i),t.memoizedState=o.state,e=t.child):e=wn(e,t,i),e}function Sm(e,t,n,l){return yl(),t.flags|=256,ct(e,t,n,l),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(e){return{baseLanes:e,cachePool:df()}}function oc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function jm(e,t,n){var l=t.pendingProps,i=!1,o=(t.flags&128)!==0,m;if((m=o)||(m=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),m&&(i=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ee){if(i?Qn(t):Kn(),(e=Ve)?(e=Rh(e,Yt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Un!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},n=tf(e),n.return=t,t.child=n,st=t,Ve=null)):e=null,e===null)throw qn(t);return Xc(e)?t.lanes=32:t.lanes=536870912,null}var b=l.children;return l=l.fallback,i?(Kn(),i=t.mode,b=Nr({mode:"hidden",children:b},i),l=vl(l,i,n,null),b.return=t,l.return=t,b.sibling=l,t.child=b,l=t.child,l.memoizedState=sc(n),l.childLanes=oc(e,m,n),t.memoizedState=rc,ii(null,l)):(Qn(t),cc(t,b))}var C=e.memoizedState;if(C!==null&&(b=C.dehydrated,b!==null)){if(o)t.flags&256?(Qn(t),t.flags&=-257,t=uc(e,t,n)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),b=l.fallback,i=t.mode,l=Nr({mode:"visible",children:l.children},i),b=vl(b,i,n,null),b.flags|=2,l.return=t,b.return=t,l.sibling=b,t.child=l,Al(t,e.child,null,n),l=t.child,l.memoizedState=sc(n),l.childLanes=oc(e,m,n),t.memoizedState=rc,t=ii(null,l));else if(Qn(t),Xc(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var k=m.dgst;m=k,l=Error(s(419)),l.stack="",l.digest=m,Ka({value:l,source:null,stack:null}),t=uc(e,t,n)}else if(Fe||Fl(e,t,n,!1),m=(n&e.childLanes)!==0,Fe||m){if(m=Be,m!==null&&(l=od(m,n),l!==0&&l!==C.retryLane))throw C.retryLane=l,xl(e,l),bt(m,e,l),ac;Yc(b)||kr(),t=uc(e,t,n)}else Yc(b)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ve=Zt(b.nextSibling),st=t,Ee=!0,Vn=null,Yt=!1,e!==null&&af(t,e),t=cc(t,l.children),t.flags|=4096);return t}return i?(Kn(),b=l.fallback,i=t.mode,C=e.child,k=C.sibling,l=pn(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,k!==null?b=pn(k,b):(b=vl(b,i,n,null),b.flags|=2),b.return=t,l.return=t,l.sibling=b,t.child=l,ii(null,l),l=t.child,b=e.child.memoizedState,b===null?b=sc(n):(i=b.cachePool,i!==null?(C=$e._currentValue,i=i.parent!==C?{parent:C,pool:C}:i):i=df(),b={baseLanes:b.baseLanes|n,cachePool:i}),l.memoizedState=b,l.childLanes=oc(e,m,n),t.memoizedState=rc,ii(e.child,l)):(Qn(t),n=e.child,e=n.sibling,n=pn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function cc(e,t){return t=Nr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nr(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function uc(e,t,n){return Al(t,e.child,null,n),e=cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cm(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Ao(e.return,t,n)}function dc(e,t,n,l,i,o){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:i,treeForkCount:o}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=l,m.tail=n,m.tailMode=i,m.treeForkCount=o)}function Am(e,t,n){var l=t.pendingProps,i=l.revealOrder,o=l.tail;l=l.children;var m=Qe.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,F(Qe,m),ct(e,t,l,n),l=Ee?Qa:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cm(e,n,t);else if(e.tag===19)Cm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&hr(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,o,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&hr(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,o,l);break;case"together":dc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function wn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Fl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=pn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&rr(e)))}function Lv(e,t,n){switch(t.tag){case 3:Ne(t,t.stateNode.containerInfo),Gn(t,$e,e.memoizedState.cache),yl();break;case 27:case 5:Ye(t);break;case 4:Ne(t,t.stateNode.containerInfo);break;case 10:Gn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bo(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Qn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?jm(e,t,n):(Qn(t),e=wn(e,t,n),e!==null?e.sibling:null);Qn(t);break;case 19:var i=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(Fl(e,t,n,!1),l=(n&t.childLanes)!==0),i){if(l)return Am(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,xm(e,t,n,t.pendingProps);case 24:Gn(t,$e,e.memoizedState.cache)}return wn(e,t,n)}function Nm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!fc(e,n)&&(t.flags&128)===0)return Fe=!1,Lv(e,t,n);Fe=(e.flags&131072)!==0}else Fe=!1,Ee&&(t.flags&1048576)!==0&&lf(t,Qa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=jl(t.elementType),t.type=e,typeof e=="function")xo(e)?(l=El(e,l),t.tag=1,t=wm(null,t,e,l,n)):(t.tag=0,t=ic(null,t,e,l,n));else{if(e!=null){var i=e.$$typeof;if(i===V){t.tag=11,t=hm(null,t,e,l,n);break e}else if(i===Q){t.tag=14,t=pm(null,t,e,l,n);break e}}throw t=fe(e)||e,Error(s(306,t,""))}}return t;case 0:return ic(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,i=El(l,t.pendingProps),wm(e,t,l,i,n);case 3:e:{if(Ne(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var o=t.memoizedState;i=o.element,_o(e,t),ei(t,l,null,n);var m=t.memoizedState;if(l=m.cache,Gn(t,$e,l),l!==o.cache&&No(t,[$e],n,!0),Pa(),l=m.element,o.isDehydrated)if(o={element:l,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Sm(e,t,l,n);break e}else if(l!==i){i=Vt(Error(s(424)),t),Ka(i),t=Sm(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ve=Zt(e.firstChild),st=t,Ee=!0,Vn=null,Yt=!0,n=xf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(yl(),l===i){t=wn(e,t,n);break e}ct(e,t,l,n)}t=t.child}return t;case 26:return Ar(e,t),e===null?(n=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ee||(n=t.type,e=t.pendingProps,l=Gr(ge.current).createElement(n),l[rt]=t,l[ht]=e,ut(l,n,e),lt(l),t.stateNode=l):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ye(t),e===null&&Ee&&(l=t.stateNode=Dh(t.type,t.pendingProps,ge.current),st=t,Yt=!0,i=Ve,tl(t.type)?(Zc=i,Ve=Zt(l.firstChild)):Ve=i),ct(e,t,t.pendingProps.children,n),Ar(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ee&&((i=l=Ve)&&(l=f1(l,t.type,t.pendingProps,Yt),l!==null?(t.stateNode=l,st=t,Ve=Zt(l.firstChild),Yt=!1,i=!0):i=!1),i||qn(t)),Ye(t),i=t.type,o=t.pendingProps,m=e!==null?e.memoizedProps:null,l=o.children,Vc(i,o)?l=null:m!==null&&Vc(i,m)&&(t.flags|=32),t.memoizedState!==null&&(i=Uo(e,t,Ev,null,null,n),bi._currentValue=i),Ar(e,t),ct(e,t,l,n),t.child;case 6:return e===null&&Ee&&((e=n=Ve)&&(n=m1(n,t.pendingProps,Yt),n!==null?(t.stateNode=n,st=t,Ve=null,e=!0):e=!1),e||qn(t)),null;case 13:return jm(e,t,n);case 4:return Ne(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,n):ct(e,t,l,n),t.child;case 11:return hm(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Gn(t,t.type,l.value),ct(e,t,l.children,n),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,wl(t),i=ot(i),l=l(i),t.flags|=1,ct(e,t,l,n),t.child;case 14:return pm(e,t,t.type,t.pendingProps,n);case 15:return gm(e,t,t.type,t.pendingProps,n);case 19:return Am(e,t,n);case 31:return kv(e,t,n);case 22:return xm(e,t,n,t.pendingProps);case 24:return wl(t),l=ot($e),e===null?(i=Mo(),i===null&&(i=Be,o=Eo(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:l,cache:i},Ro(t),Gn(t,$e,i)):((e.lanes&n)!==0&&(_o(e,t),ei(t,null,null,n),Pa()),i=e.memoizedState,o=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gn(t,$e,l)):(l=o.cache,Gn(t,$e,l),l!==i.cache&&No(t,[$e],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Sn(e){e.flags|=4}function mc(e,t,n,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Pm())e.flags|=8192;else throw Cl=ur,zo}else e.flags&=-16777217}function Em(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gh(t))if(Pm())e.flags|=8192;else throw Cl=ur,zo}function Er(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?id():536870912,e.lanes|=t,oa|=t)}function ri(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function Bv(e,t,n){var l=t.pendingProps;switch(wo(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),vn($e),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Jl(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jo())),qe(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(Sn(t),o!==null?(qe(t),Em(t,o)):(qe(t),mc(t,i,null,l,n))):o?o!==e.memoizedState?(Sn(t),qe(t),Em(t,o)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Sn(t),qe(t),mc(t,i,e,l,n)),null;case 27:if(wt(t),n=ge.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return qe(t),null}e=I.current,Jl(t)?rf(t):(e=Dh(i,l,n),t.stateNode=e,Sn(t))}return qe(t),null;case 5:if(wt(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return qe(t),null}if(o=I.current,Jl(t))rf(t);else{var m=Gr(ge.current);switch(o){case 1:o=m.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=m.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=m.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?o.multiple=!0:l.size&&(o.size=l.size);break;default:o=typeof l.is=="string"?m.createElement(i,{is:l.is}):m.createElement(i)}}o[rt]=t,o[ht]=l;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)o.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=o;e:switch(ut(o,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Sn(t)}}return qe(t),mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Sn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=ge.current,Jl(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,i=st,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||jh(e.nodeValue,n)),e||qn(t,!0)}else e=Gr(e).createTextNode(l),e[rt]=t,t.stateNode=e}return qe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=Jl(t),n!==null){if(e===null){if(!l)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[rt]=t}else yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else n=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Jl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));i[rt]=t}else yl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),i=!1}else i=jo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==i&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Er(t,t.updateQueue),qe(t),null);case 4:return be(),e===null&&kc(t.stateNode.containerInfo),qe(t),null;case 10:return vn(t.type),qe(t),null;case 19:if(X(Qe),l=t.memoizedState,l===null)return qe(t),null;if(i=(t.flags&128)!==0,o=l.rendering,o===null)if(i)ri(l,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=hr(e),o!==null){for(t.flags|=128,ri(l,!1),e=o.updateQueue,t.updateQueue=e,Er(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ef(n,e),n=n.sibling;return F(Qe,Qe.current&1|2),Ee&&gn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&jt()>_r&&(t.flags|=128,i=!0,ri(l,!1),t.lanes=4194304)}else{if(!i)if(e=hr(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Er(t,e),ri(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!Ee)return qe(t),null}else 2*jt()-l.renderingStartTime>_r&&n!==536870912&&(t.flags|=128,i=!0,ri(l,!1),t.lanes=4194304);l.isBackwards?(o.sibling=t.child,t.child=o):(e=l.last,e!==null?e.sibling=o:t.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=jt(),e.sibling=null,n=Qe.current,F(Qe,i?n&1|2:n&1),Ee&&gn(t,l.treeForkCount),e):(qe(t),null);case 22:case 23:return Mt(t),Lo(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),n=t.updateQueue,n!==null&&Er(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&X(Sl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),vn($e),qe(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Hv(e,t){switch(wo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return vn($e),be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wt(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(s(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));yl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Qe),null;case 4:return be(),null;case 10:return vn(t.type),null;case 22:case 23:return Mt(t),Lo(),e!==null&&X(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return vn($e),null;case 25:return null;default:return null}}function Tm(e,t){switch(wo(t),t.tag){case 3:vn($e),be();break;case 26:case 27:case 5:wt(t);break;case 4:be();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:X(Qe);break;case 10:vn(t.type);break;case 22:case 23:Mt(t),Lo(),e!==null&&X(Sl);break;case 24:vn($e)}}function si(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&e)===e){l=void 0;var o=n.create,m=n.inst;l=o(),m.destroy=l}n=n.next}while(n!==i)}}catch(b){Oe(t,t.return,b)}}function $n(e,t,n){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var o=i.next;l=o;do{if((l.tag&e)===e){var m=l.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,i=t;var C=n,k=b;try{k()}catch(Y){Oe(i,C,Y)}}}l=l.next}while(l!==o)}}catch(Y){Oe(t,t.return,Y)}}function Mm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yf(t,n)}catch(l){Oe(e,e.return,l)}}}function zm(e,t,n){n.props=El(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Oe(e,t,l)}}function oi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(i){Oe(e,t,i)}}function nn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){Oe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Oe(e,t,i)}else n.current=null}function Rm(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){Oe(e,e.return,i)}}function hc(e,t,n){try{var l=e.stateNode;r1(l,e.type,n,t),l[ht]=t}catch(i){Oe(e,e.return,i)}}function _m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tl(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mn));else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,n),e=e.sibling;e!==null;)gc(e,t,n),e=e.sibling}function Tr(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&tl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Tr(e,t,n),e=e.sibling;e!==null;)Tr(e,t,n),e=e.sibling}function Om(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ut(t,l,n),t[rt]=e,t[ht]=n}catch(o){Oe(e,e.return,o)}}var jn=!1,We=!1,xc=!1,Dm=typeof WeakSet=="function"?WeakSet:Set,at=null;function Uv(e,t){if(e=e.containerInfo,Hc=Jr,e=Zd(e),co(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var m=0,b=-1,C=-1,k=0,Y=0,K=e,L=null;t:for(;;){for(var U;K!==n||i!==0&&K.nodeType!==3||(b=m+i),K!==o||l!==0&&K.nodeType!==3||(C=m+l),K.nodeType===3&&(m+=K.nodeValue.length),(U=K.firstChild)!==null;)L=K,K=U;for(;;){if(K===e)break t;if(L===n&&++k===i&&(b=m),L===o&&++Y===l&&(C=m),(U=K.nextSibling)!==null)break;K=L,L=K.parentNode}K=U}n=b===-1||C===-1?null:{start:b,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Uc={focusedElem:e,selectionRange:n},Jr=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,l=n.stateNode;try{var ne=El(n.type,i);e=l.getSnapshotBeforeUpdate(ne,o),l.__reactInternalSnapshotBeforeUpdate=e}catch(de){Oe(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Gc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function km(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:An(e,n),l&4&&si(5,n);break;case 1:if(An(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Oe(n,n.return,m)}else{var i=El(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Oe(n,n.return,m)}}l&64&&Mm(n),l&512&&oi(n,n.return);break;case 3:if(An(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yf(e,t)}catch(m){Oe(n,n.return,m)}}break;case 27:t===null&&l&4&&Om(n);case 26:case 5:An(e,n),t===null&&l&4&&Rm(n),l&512&&oi(n,n.return);break;case 12:An(e,n);break;case 31:An(e,n),l&4&&Hm(e,n);break;case 13:An(e,n),l&4&&Um(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=$v.bind(null,n),h1(e,n))));break;case 22:if(l=n.memoizedState!==null||jn,!l){t=t!==null&&t.memoizedState!==null||We,i=jn;var o=We;jn=l,(We=t)&&!o?Nn(e,n,(n.subtreeFlags&8772)!==0):An(e,n),jn=i,We=o}break;case 30:break;default:An(e,n)}}function Lm(e){var t=e.alternate;t!==null&&(e.alternate=null,Lm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Qs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,gt=!1;function Cn(e,t,n){for(n=n.child;n!==null;)Bm(e,t,n),n=n.sibling}function Bm(e,t,n){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(_a,n)}catch{}switch(n.tag){case 26:We||nn(n,t),Cn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||nn(n,t);var l=Ge,i=gt;tl(n.type)&&(Ge=n.stateNode,gt=!1),Cn(e,t,n),xi(n.stateNode),Ge=l,gt=i;break;case 5:We||nn(n,t);case 6:if(l=Ge,i=gt,Ge=null,Cn(e,t,n),Ge=l,gt=i,Ge!==null)if(gt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(n.stateNode)}catch(o){Oe(n,t,o)}else try{Ge.removeChild(n.stateNode)}catch(o){Oe(n,t,o)}break;case 18:Ge!==null&&(gt?(e=Ge,Mh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ga(e)):Mh(Ge,n.stateNode));break;case 4:l=Ge,i=gt,Ge=n.stateNode.containerInfo,gt=!0,Cn(e,t,n),Ge=l,gt=i;break;case 0:case 11:case 14:case 15:$n(2,n,t),We||$n(4,n,t),Cn(e,t,n);break;case 1:We||(nn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&zm(n,t,l)),Cn(e,t,n);break;case 21:Cn(e,t,n);break;case 22:We=(l=We)||n.memoizedState!==null,Cn(e,t,n),We=l;break;default:Cn(e,t,n)}}function Hm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ga(e)}catch(n){Oe(t,t.return,n)}}}function Um(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ga(e)}catch(n){Oe(t,t.return,n)}}function Vv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dm),t;default:throw Error(s(435,e.tag))}}function Mr(e,t){var n=Vv(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var i=Jv.bind(null,e,l);l.then(i,i)}})}function xt(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var i=n[l],o=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(tl(b.type)){Ge=b.stateNode,gt=!1;break e}break;case 5:Ge=b.stateNode,gt=!1;break e;case 3:case 4:Ge=b.stateNode.containerInfo,gt=!0;break e}b=b.return}if(Ge===null)throw Error(s(160));Bm(o,m,i),Ge=null,gt=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Vm(t,e),t=t.sibling}var $t=null;function Vm(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xt(t,e),vt(e),l&4&&($n(3,e,e.return),si(3,e),$n(5,e,e.return));break;case 1:xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),l&64&&jn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var i=$t;if(xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),l&4){var o=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":o=i.getElementsByTagName("title")[0],(!o||o[ka]||o[rt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(l),i.head.insertBefore(o,i.querySelector("head > title"))),ut(o,l,n),o[rt]=e,lt(o),l=o;break e;case"link":var m=Vh("link","href",i).get(l+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(o=m[b],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}o=i.createElement(l),ut(o,l,n),i.head.appendChild(o);break;case"meta":if(m=Vh("meta","content",i).get(l+(n.content||""))){for(b=0;b<m.length;b++)if(o=m[b],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}o=i.createElement(l),ut(o,l,n),i.head.appendChild(o);break;default:throw Error(s(468,l))}o[rt]=e,lt(o),l=o}e.stateNode=l}else qh(i,e.type,e.stateNode);else e.stateNode=Uh(i,l,e.memoizedProps);else o!==l?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,l===null?qh(i,e.type,e.stateNode):Uh(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&hc(e,e.memoizedProps,n.memoizedProps)}break;case 27:xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),n!==null&&l&4&&hc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xt(t,e),vt(e),l&512&&(We||n===null||nn(n,n.return)),e.flags&32){i=e.stateNode;try{Ul(i,"")}catch(ne){Oe(e,e.return,ne)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,hc(e,i,n!==null?n.memoizedProps:i)),l&1024&&(xc=!0);break;case 6:if(xt(t,e),vt(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(ne){Oe(e,e.return,ne)}}break;case 3:if(Zr=null,i=$t,$t=Yr(t.containerInfo),xt(t,e),$t=i,vt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ga(t.containerInfo)}catch(ne){Oe(e,e.return,ne)}xc&&(xc=!1,qm(e));break;case 4:l=$t,$t=Yr(e.stateNode.containerInfo),xt(t,e),vt(e),$t=l;break;case 12:xt(t,e),vt(e);break;case 31:xt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Mr(e,l)));break;case 13:xt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Rr=jt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Mr(e,l)));break;case 22:i=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,k=jn,Y=We;if(jn=k||i,We=Y||C,xt(t,e),We=Y,jn=k,vt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||C||jn||We||Tl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(o=C.stateNode,i)m=o.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=C.stateNode;var K=C.memoizedProps.style,L=K!=null&&K.hasOwnProperty("display")?K.display:null;b.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ne){Oe(C,C.return,ne)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=i?"":C.memoizedProps}catch(ne){Oe(C,C.return,ne)}}}else if(t.tag===18){if(n===null){C=t;try{var U=C.stateNode;i?zh(U,!0):zh(C.stateNode,!1)}catch(ne){Oe(C,C.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Mr(e,n))));break;case 19:xt(t,e),vt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Mr(e,l)));break;case 30:break;case 21:break;default:xt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(_m(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode,o=pc(e);Tr(e,o,i);break;case 5:var m=n.stateNode;n.flags&32&&(Ul(m,""),n.flags&=-33);var b=pc(e);Tr(e,b,m);break;case 3:case 4:var C=n.stateNode.containerInfo,k=pc(e);gc(e,k,C);break;default:throw Error(s(161))}}catch(Y){Oe(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function An(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)km(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$n(4,t,t.return),Tl(t);break;case 1:nn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&zm(t,t.return,n),Tl(t);break;case 27:xi(t.stateNode);case 26:case 5:nn(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,o=t,m=o.flags;switch(o.tag){case 0:case 11:case 15:Nn(i,o,n),si(4,o);break;case 1:if(Nn(i,o,n),l=o,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(k){Oe(l,l.return,k)}if(l=o,i=l.updateQueue,i!==null){var b=l.stateNode;try{var C=i.shared.hiddenCallbacks;if(C!==null)for(i.shared.hiddenCallbacks=null,i=0;i<C.length;i++)vf(C[i],b)}catch(k){Oe(l,l.return,k)}}n&&m&64&&Mm(o),oi(o,o.return);break;case 27:Om(o);case 26:case 5:Nn(i,o,n),n&&l===null&&m&4&&Rm(o),oi(o,o.return);break;case 12:Nn(i,o,n);break;case 31:Nn(i,o,n),n&&m&4&&Hm(i,o);break;case 13:Nn(i,o,n),n&&m&4&&Um(i,o);break;case 22:o.memoizedState===null&&Nn(i,o,n),oi(o,o.return);break;case 30:break;default:Nn(i,o,n)}t=t.sibling}}function vc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&$a(n))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e))}function Jt(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gm(e,t,n,l),t=t.sibling}function Gm(e,t,n,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,n,l),i&2048&&si(9,t);break;case 1:Jt(e,t,n,l);break;case 3:Jt(e,t,n,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$a(e)));break;case 12:if(i&2048){Jt(e,t,n,l),e=t.stateNode;try{var o=t.memoizedProps,m=o.id,b=o.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Oe(t,t.return,C)}}else Jt(e,t,n,l);break;case 31:Jt(e,t,n,l);break;case 13:Jt(e,t,n,l);break;case 23:break;case 22:o=t.stateNode,m=t.alternate,t.memoizedState!==null?o._visibility&2?Jt(e,t,n,l):ci(e,t):o._visibility&2?Jt(e,t,n,l):(o._visibility|=2,ia(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&vc(m,t);break;case 24:Jt(e,t,n,l),i&2048&&yc(t.alternate,t);break;default:Jt(e,t,n,l)}}function ia(e,t,n,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,m=t,b=n,C=l,k=m.flags;switch(m.tag){case 0:case 11:case 15:ia(o,m,b,C,i),si(8,m);break;case 23:break;case 22:var Y=m.stateNode;m.memoizedState!==null?Y._visibility&2?ia(o,m,b,C,i):ci(o,m):(Y._visibility|=2,ia(o,m,b,C,i)),i&&k&2048&&vc(m.alternate,m);break;case 24:ia(o,m,b,C,i),i&&k&2048&&yc(m.alternate,m);break;default:ia(o,m,b,C,i)}t=t.sibling}}function ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,i=l.flags;switch(l.tag){case 22:ci(n,l),i&2048&&vc(l.alternate,l);break;case 24:ci(n,l),i&2048&&yc(l.alternate,l);break;default:ci(n,l)}t=t.sibling}}var ui=8192;function ra(e,t,n){if(e.subtreeFlags&ui)for(e=e.child;e!==null;)Ym(e,t,n),e=e.sibling}function Ym(e,t,n){switch(e.tag){case 26:ra(e,t,n),e.flags&ui&&e.memoizedState!==null&&N1(n,$t,e.memoizedState,e.memoizedProps);break;case 5:ra(e,t,n);break;case 3:case 4:var l=$t;$t=Yr(e.stateNode.containerInfo),ra(e,t,n),$t=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ui,ui=16777216,ra(e,t,n),ui=l):ra(e,t,n));break;default:ra(e,t,n)}}function Xm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function di(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Qm(l,e)}Xm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zm(e),e=e.sibling}function Zm(e){switch(e.tag){case 0:case 11:case 15:di(e),e.flags&2048&&$n(9,e,e.return);break;case 3:di(e);break;case 12:di(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zr(e)):di(e);break;default:di(e)}}function zr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Qm(l,e)}Xm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$n(8,t,t.return),zr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zr(t));break;default:zr(t)}e=e.sibling}}function Qm(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:$n(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$a(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var i=l.sibling,o=l.return;if(Lm(l),l===n){at=null;break e}if(i!==null){i.return=o,at=i;break e}at=o}}}var qv={getCacheForType:function(e){var t=ot($e),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ot($e).controller.signal}},Gv=typeof WeakMap=="function"?WeakMap:Map,Re=0,Be=null,Se=null,Ce=0,_e=0,zt=null,Jn=!1,sa=!1,bc=!1,En=0,Ze=0,Fn=0,Ml=0,wc=0,Rt=0,oa=0,fi=null,yt=null,Sc=!1,Rr=0,Km=0,_r=1/0,Or=null,Wn=null,et=0,In=null,ca=null,Tn=0,jc=0,Cc=null,$m=null,mi=0,Ac=null;function _t(){return(Re&2)!==0&&Ce!==0?Ce&-Ce:_.T!==null?Rc():cd()}function Jm(){if(Rt===0)if((Ce&536870912)===0||Ee){var e=qi;qi<<=1,(qi&3932160)===0&&(qi=262144),Rt=e}else Rt=536870912;return e=Tt.current,e!==null&&(e.flags|=32),Rt}function bt(e,t,n){(e===Be&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(ua(e,0),Pn(e,Ce,Rt,!1)),Da(e,n),((Re&2)===0||e!==Be)&&(e===Be&&((Re&2)===0&&(Ml|=n),Ze===4&&Pn(e,Ce,Rt,!1)),ln(e))}function Fm(e,t,n){if((Re&6)!==0)throw Error(s(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Oa(e,t),i=l?Zv(e,t):Ec(e,t,!0),o=l;do{if(i===0){sa&&!l&&Pn(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Yv(n)){i=Ec(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;i=fi;var C=b.current.memoizedState.isDehydrated;if(C&&(ua(b,m).flags|=256),m=Ec(b,m,!1),m!==2){if(bc&&!C){b.errorRecoveryDisabledLanes|=o,Ml|=o,i=4;break e}o=yt,yt=i,o!==null&&(yt===null?yt=o:yt.push.apply(yt,o))}i=m}if(o=!1,i!==2)continue}}if(i===1){ua(e,0),Pn(e,t,0,!0);break}e:{switch(l=e,o=i,o){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Pn(l,t,Rt,!Jn);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=Rr+300-jt(),10<i)){if(Pn(l,t,Rt,!Jn),Yi(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Eh(Wm.bind(null,l,n,yt,Or,Sc,t,Rt,Ml,oa,Jn,o,"Throttled",-0,0),i);break e}Wm(l,n,yt,Or,Sc,t,Rt,Ml,oa,Jn,o,null,-0,0)}}break}while(!0);ln(e)}function Wm(e,t,n,l,i,o,m,b,C,k,Y,K,L,U){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mn},Ym(t,o,K);var ne=(o&62914560)===o?Rr-jt():(o&4194048)===o?Km-jt():0;if(ne=E1(K,ne),ne!==null){Tn=o,e.cancelPendingCommit=ne(ih.bind(null,e,t,o,n,l,i,m,b,C,Y,K,null,L,U)),Pn(e,o,m,!k);return}}ih(e,t,o,n,l,i,m,b,C)}function Yv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var i=n[l],o=i.getSnapshot;i=i.value;try{if(!Nt(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Pn(e,t,n,l){t&=~wc,t&=~Ml,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var o=31-At(i),m=1<<o;l[o]=-1,i&=~m}n!==0&&rd(e,n,t)}function Dr(){return(Re&6)===0?(hi(0),!1):!0}function Nc(){if(Se!==null){if(_e===0)var e=Se.return;else e=Se,xn=bl=null,Go(e),ea=null,Fa=0,e=Se;for(;e!==null;)Tm(e.alternate,e),e=e.return;Se=null}}function ua(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,c1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,Nc(),Be=e,Se=n=pn(e.current,null),Ce=t,_e=0,zt=null,Jn=!1,sa=Oa(e,t),bc=!1,oa=Rt=wc=Ml=Fn=Ze=0,yt=fi=null,Sc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-At(l),o=1<<i;t|=e[i],l&=~o}return En=t,tr(),n}function Im(e,t){ve=null,_.H=ai,t===Pl||t===cr?(t=hf(),_e=3):t===zo?(t=hf(),_e=4):_e=t===ac?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,Se===null&&(Ze=1,jr(e,Vt(t,e.current)))}function Pm(){var e=Tt.current;return e===null?!0:(Ce&4194048)===Ce?Xt===null:(Ce&62914560)===Ce||(Ce&536870912)!==0?e===Xt:!1}function eh(){var e=_.H;return _.H=ai,e===null?ai:e}function th(){var e=_.A;return _.A=qv,e}function kr(){Ze=4,Jn||(Ce&4194048)!==Ce&&Tt.current!==null||(sa=!0),(Fn&134217727)===0&&(Ml&134217727)===0||Be===null||Pn(Be,Ce,Rt,!1)}function Ec(e,t,n){var l=Re;Re|=2;var i=eh(),o=th();(Be!==e||Ce!==t)&&(Or=null,ua(e,t)),t=!1;var m=Ze;e:do try{if(_e!==0&&Se!==null){var b=Se,C=zt;switch(_e){case 8:Nc(),m=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var k=_e;if(_e=0,zt=null,da(e,b,C,k),n&&sa){m=0;break e}break;default:k=_e,_e=0,zt=null,da(e,b,C,k)}}Xv(),m=Ze;break}catch(Y){Im(e,Y)}while(!0);return t&&e.shellSuspendCounter++,xn=bl=null,Re=l,_.H=i,_.A=o,Se===null&&(Be=null,Ce=0,tr()),m}function Xv(){for(;Se!==null;)nh(Se)}function Zv(e,t){var n=Re;Re|=2;var l=eh(),i=th();Be!==e||Ce!==t?(Or=null,_r=jt()+500,ua(e,t)):sa=Oa(e,t);e:do try{if(_e!==0&&Se!==null){t=Se;var o=zt;t:switch(_e){case 1:_e=0,zt=null,da(e,t,o,1);break;case 2:case 9:if(ff(o)){_e=0,zt=null,lh(t);break}t=function(){_e!==2&&_e!==9||Be!==e||(_e=7),ln(e)},o.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:ff(o)?(_e=0,zt=null,lh(t)):(_e=0,zt=null,da(e,t,o,7));break;case 5:var m=null;switch(Se.tag){case 26:m=Se.memoizedState;case 5:case 27:var b=Se;if(m?Gh(m):b.stateNode.complete){_e=0,zt=null;var C=b.sibling;if(C!==null)Se=C;else{var k=b.return;k!==null?(Se=k,Lr(k)):Se=null}break t}}_e=0,zt=null,da(e,t,o,5);break;case 6:_e=0,zt=null,da(e,t,o,6);break;case 8:Nc(),Ze=6;break e;default:throw Error(s(462))}}Qv();break}catch(Y){Im(e,Y)}while(!0);return xn=bl=null,_.H=l,_.A=i,Re=n,Se!==null?0:(Be=null,Ce=0,tr(),Ze)}function Qv(){for(;Se!==null&&!px();)nh(Se)}function nh(e){var t=Nm(e.alternate,e,En);e.memoizedProps=e.pendingProps,t===null?Lr(e):Se=t}function lh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bm(n,t,t.pendingProps,t.type,void 0,Ce);break;case 11:t=bm(n,t,t.pendingProps,t.type.render,t.ref,Ce);break;case 5:Go(t);default:Tm(n,t),t=Se=ef(t,En),t=Nm(n,t,En)}e.memoizedProps=e.pendingProps,t===null?Lr(e):Se=t}function da(e,t,n,l){xn=bl=null,Go(t),ea=null,Fa=0;var i=t.return;try{if(Dv(e,i,t,n,Ce)){Ze=1,jr(e,Vt(n,e.current)),Se=null;return}}catch(o){if(i!==null)throw Se=i,o;Ze=1,jr(e,Vt(n,e.current)),Se=null;return}t.flags&32768?(Ee||l===1?e=!0:sa||(Ce&536870912)!==0?e=!1:(Jn=e=!0,(l===2||l===9||l===3||l===6)&&(l=Tt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ah(t,e)):Lr(t)}function Lr(e){var t=e;do{if((t.flags&32768)!==0){ah(t,Jn);return}e=t.return;var n=Bv(t.alternate,t,En);if(n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);Ze===0&&(Ze=5)}function ah(e,t){do{var n=Hv(e.alternate,e);if(n!==null){n.flags&=32767,Se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Se=e;return}Se=e=n}while(e!==null);Ze=6,Se=null}function ih(e,t,n,l,i,o,m,b,C){e.cancelPendingCommit=null;do Br();while(et!==0);if((Re&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(o=t.lanes|t.childLanes,o|=po,Ax(e,n,o,m,b,C),e===Be&&(Se=Be=null,Ce=0),ca=t,In=e,Tn=n,jc=o,Cc=i,$m=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Fv(Ui,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null,i=G.p,G.p=2,m=Re,Re|=4;try{Uv(e,t,n)}finally{Re=m,G.p=i,_.T=l}}et=1,rh(),sh(),oh()}}function rh(){if(et===1){et=0;var e=In,t=ca,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var l=G.p;G.p=2;var i=Re;Re|=4;try{Vm(t,e);var o=Uc,m=Zd(e.containerInfo),b=o.focusedElem,C=o.selectionRange;if(m!==b&&b&&b.ownerDocument&&Xd(b.ownerDocument.documentElement,b)){if(C!==null&&co(b)){var k=C.start,Y=C.end;if(Y===void 0&&(Y=k),"selectionStart"in b)b.selectionStart=k,b.selectionEnd=Math.min(Y,b.value.length);else{var K=b.ownerDocument||document,L=K&&K.defaultView||window;if(L.getSelection){var U=L.getSelection(),ne=b.textContent.length,de=Math.min(C.start,ne),Le=C.end===void 0?de:Math.min(C.end,ne);!U.extend&&de>Le&&(m=Le,Le=de,de=m);var z=Yd(b,de),M=Yd(b,Le);if(z&&M&&(U.rangeCount!==1||U.anchorNode!==z.node||U.anchorOffset!==z.offset||U.focusNode!==M.node||U.focusOffset!==M.offset)){var D=K.createRange();D.setStart(z.node,z.offset),U.removeAllRanges(),de>Le?(U.addRange(D),U.extend(M.node,M.offset)):(D.setEnd(M.node,M.offset),U.addRange(D))}}}}for(K=[],U=b;U=U.parentNode;)U.nodeType===1&&K.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<K.length;b++){var Z=K[b];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Jr=!!Hc,Uc=Hc=null}finally{Re=i,G.p=l,_.T=n}}e.current=t,et=2}}function sh(){if(et===2){et=0;var e=In,t=ca,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var l=G.p;G.p=2;var i=Re;Re|=4;try{km(e,t.alternate,t)}finally{Re=i,G.p=l,_.T=n}}et=3}}function oh(){if(et===4||et===3){et=0,gx();var e=In,t=ca,n=Tn,l=$m;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,ca=In=null,ch(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Wn=null),Xs(n),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(_a,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=_.T,i=G.p,G.p=2,_.T=null;try{for(var o=e.onRecoverableError,m=0;m<l.length;m++){var b=l[m];o(b.value,{componentStack:b.stack})}}finally{_.T=t,G.p=i}}(Tn&3)!==0&&Br(),ln(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===Ac?mi++:(mi=0,Ac=e):mi=0,hi(0)}}function ch(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$a(t)))}function Br(){return rh(),sh(),oh(),uh()}function uh(){if(et!==5)return!1;var e=In,t=jc;jc=0;var n=Xs(Tn),l=_.T,i=G.p;try{G.p=32>n?32:n,_.T=null,n=Cc,Cc=null;var o=In,m=Tn;if(et=0,ca=In=null,Tn=0,(Re&6)!==0)throw Error(s(331));var b=Re;if(Re|=4,Zm(o.current),Gm(o,o.current,m,n),Re=b,hi(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(_a,o)}catch{}return!0}finally{G.p=i,_.T=l,ch(e,t)}}function dh(e,t,n){t=Vt(n,t),t=lc(e.stateNode,t,2),e=Zn(e,t,2),e!==null&&(Da(e,2),ln(e))}function Oe(e,t,n){if(e.tag===3)dh(e,e,n);else for(;t!==null;){if(t.tag===3){dh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Wn===null||!Wn.has(l))){e=Vt(n,e),n=fm(2),l=Zn(t,n,2),l!==null&&(mm(n,l,t,e),Da(l,2),ln(l));break}}t=t.return}}function Tc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Gv;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(n)||(bc=!0,i.add(n),e=Kv.bind(null,e,t,n),t.then(e,e))}function Kv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(Ce&n)===n&&(Ze===4||Ze===3&&(Ce&62914560)===Ce&&300>jt()-Rr?(Re&2)===0&&ua(e,0):wc|=n,oa===Ce&&(oa=0)),ln(e)}function fh(e,t){t===0&&(t=id()),e=xl(e,t),e!==null&&(Da(e,t),ln(e))}function $v(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fh(e,n)}function Jv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),fh(e,n)}function Fv(e,t){return Vs(e,t)}var Hr=null,fa=null,Mc=!1,Ur=!1,zc=!1,el=0;function ln(e){e!==fa&&e.next===null&&(fa===null?Hr=fa=e:fa=fa.next=e),Ur=!0,Mc||(Mc=!0,Iv())}function hi(e,t){if(!zc&&Ur){zc=!0;do for(var n=!1,l=Hr;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var o=0;else{var m=l.suspendedLanes,b=l.pingedLanes;o=(1<<31-At(42|e)+1)-1,o&=i&~(m&~b),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,gh(l,o))}else o=Ce,o=Yi(l,l===Be?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(o&3)===0||Oa(l,o)||(n=!0,gh(l,o));l=l.next}while(n);zc=!1}}function Wv(){mh()}function mh(){Ur=Mc=!1;var e=0;el!==0&&o1()&&(e=el);for(var t=jt(),n=null,l=Hr;l!==null;){var i=l.next,o=hh(l,t);o===0?(l.next=null,n===null?Hr=i:n.next=i,i===null&&(fa=n)):(n=l,(e!==0||(o&3)!==0)&&(Ur=!0)),l=i}et!==0&&et!==5||hi(e),el!==0&&(el=0)}function hh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var m=31-At(o),b=1<<m,C=i[m];C===-1?((b&n)===0||(b&l)!==0)&&(i[m]=Cx(b,t)):C<=t&&(e.expiredLanes|=b),o&=~b}if(t=Be,n=Ce,n=Yi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&qs(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Oa(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&qs(l),Xs(n)){case 2:case 8:n=ld;break;case 32:n=Ui;break;case 268435456:n=ad;break;default:n=Ui}return l=ph.bind(null,e),n=Vs(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&qs(l),e.callbackPriority=2,e.callbackNode=null,2}function ph(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var l=Ce;return l=Yi(e,e===Be?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Fm(e,l,t),hh(e,jt()),e.callbackNode!=null&&e.callbackNode===n?ph.bind(null,e):null)}function gh(e,t){if(Br())return null;Fm(e,t,!0)}function Iv(){u1(function(){(Re&6)!==0?Vs(nd,Wv):mh()})}function Rc(){if(el===0){var e=Wl;e===0&&(e=Vi,Vi<<=1,(Vi&261888)===0&&(Vi=256)),el=e}return el}function xh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ki(""+e)}function vh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Pv(e,t,n,l,i){if(t==="submit"&&n&&n.stateNode===i){var o=xh((i[ht]||null).action),m=l.submitter;m&&(t=(t=m[ht]||null)?xh(t.formAction):m.getAttribute("formAction"),t!==null&&(o=t,m=null));var b=new Wi("action","action",null,l,i);e.push({event:b,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(el!==0){var C=m?vh(i,m):new FormData(i);Wo(n,{pending:!0,data:C,method:i.method,action:o},null,C)}}else typeof o=="function"&&(b.preventDefault(),C=m?vh(i,m):new FormData(i),Wo(n,{pending:!0,data:C,method:i.method,action:o},o,C))},currentTarget:i}]})}}for(var _c=0;_c<ho.length;_c++){var Oc=ho[_c],e1=Oc.toLowerCase(),t1=Oc[0].toUpperCase()+Oc.slice(1);Kt(e1,"on"+t1)}Kt($d,"onAnimationEnd"),Kt(Jd,"onAnimationIteration"),Kt(Fd,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(xv,"onTransitionRun"),Kt(vv,"onTransitionStart"),Kt(yv,"onTransitionCancel"),Kt(Wd,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),n1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pi));function yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],i=l.event;l=l.listeners;e:{var o=void 0;if(t)for(var m=l.length-1;0<=m;m--){var b=l[m],C=b.instance,k=b.currentTarget;if(b=b.listener,C!==o&&i.isPropagationStopped())break e;o=b,i.currentTarget=k;try{o(i)}catch(Y){er(Y)}i.currentTarget=null,o=C}else for(m=0;m<l.length;m++){if(b=l[m],C=b.instance,k=b.currentTarget,b=b.listener,C!==o&&i.isPropagationStopped())break e;o=b,i.currentTarget=k;try{o(i)}catch(Y){er(Y)}i.currentTarget=null,o=C}}}}function je(e,t){var n=t[Zs];n===void 0&&(n=t[Zs]=new Set);var l=e+"__bubble";n.has(l)||(bh(t,e,2,!1),n.add(l))}function Dc(e,t,n){var l=0;t&&(l|=4),bh(n,e,l,t)}var Vr="_reactListening"+Math.random().toString(36).slice(2);function kc(e){if(!e[Vr]){e[Vr]=!0,fd.forEach(function(n){n!=="selectionchange"&&(n1.has(n)||Dc(n,!1,e),Dc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vr]||(t[Vr]=!0,Dc("selectionchange",!1,t))}}function bh(e,t,n,l){switch(Jh(t)){case 2:var i=z1;break;case 8:i=R1;break;default:i=Fc}n=i.bind(null,t,n,e),i=void 0,!eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lc(e,t,n,l,i){var o=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var m=l.tag;if(m===3||m===4){var b=l.stateNode.containerInfo;if(b===i)break;if(m===4)for(m=l.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===i)return;m=m.return}for(;b!==null;){if(m=Dl(b),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){l=o=m;continue e}b=b.parentNode}}l=l.return}Cd(function(){var k=o,Y=Is(n),K=[];e:{var L=Id.get(e);if(L!==void 0){var U=Wi,ne=e;switch(e){case"keypress":if(Ji(n)===0)break e;case"keydown":case"keyup":U=Jx;break;case"focusin":ne="focus",U=ao;break;case"focusout":ne="blur",U=ao;break;case"beforeblur":case"afterblur":U=ao;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=Ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Bx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Ix;break;case $d:case Jd:case Fd:U=Vx;break;case Wd:U=ev;break;case"scroll":case"scrollend":U=kx;break;case"wheel":U=nv;break;case"copy":case"cut":case"paste":U=Gx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Md;break;case"toggle":case"beforetoggle":U=av}var de=(t&4)!==0,Le=!de&&(e==="scroll"||e==="scrollend"),z=de?L!==null?L+"Capture":null:L;de=[];for(var M=k,D;M!==null;){var Z=M;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||z===null||(Z=Ba(M,z),Z!=null&&de.push(gi(M,Z,D))),Le)break;M=M.return}0<de.length&&(L=new U(L,ne,null,n,Y),K.push({event:L,listeners:de}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",L&&n!==Ws&&(ne=n.relatedTarget||n.fromElement)&&(Dl(ne)||ne[Ol]))break e;if((U||L)&&(L=Y.window===Y?Y:(L=Y.ownerDocument)?L.defaultView||L.parentWindow:window,U?(ne=n.relatedTarget||n.toElement,U=k,ne=ne?Dl(ne):null,ne!==null&&(Le=f(ne),de=ne.tag,ne!==Le||de!==5&&de!==27&&de!==6)&&(ne=null)):(U=null,ne=k),U!==ne)){if(de=Ed,Z="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(de=Md,Z="onPointerLeave",z="onPointerEnter",M="pointer"),Le=U==null?L:La(U),D=ne==null?L:La(ne),L=new de(Z,M+"leave",U,n,Y),L.target=Le,L.relatedTarget=D,Z=null,Dl(Y)===k&&(de=new de(z,M+"enter",ne,n,Y),de.target=D,de.relatedTarget=Le,Z=de),Le=Z,U&&ne)t:{for(de=l1,z=U,M=ne,D=0,Z=z;Z;Z=de(Z))D++;Z=0;for(var ce=M;ce;ce=de(ce))Z++;for(;0<D-Z;)z=de(z),D--;for(;0<Z-D;)M=de(M),Z--;for(;D--;){if(z===M||M!==null&&z===M.alternate){de=z;break t}z=de(z),M=de(M)}de=null}else de=null;U!==null&&wh(K,L,U,de,!1),ne!==null&&Le!==null&&wh(K,Le,ne,de,!0)}}e:{if(L=k?La(k):window,U=L.nodeName&&L.nodeName.toLowerCase(),U==="select"||U==="input"&&L.type==="file")var Me=Bd;else if(kd(L))if(Hd)Me=hv;else{Me=fv;var se=dv}else U=L.nodeName,!U||U.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?k&&Fs(k.elementType)&&(Me=Bd):Me=mv;if(Me&&(Me=Me(e,k))){Ld(K,Me,n,Y);break e}se&&se(e,L,k),e==="focusout"&&k&&L.type==="number"&&k.memoizedProps.value!=null&&Js(L,"number",L.value)}switch(se=k?La(k):window,e){case"focusin":(kd(se)||se.contentEditable==="true")&&(Yl=se,uo=k,Za=null);break;case"focusout":Za=uo=Yl=null;break;case"mousedown":fo=!0;break;case"contextmenu":case"mouseup":case"dragend":fo=!1,Qd(K,n,Y);break;case"selectionchange":if(gv)break;case"keydown":case"keyup":Qd(K,n,Y)}var ye;if(ro)e:{switch(e){case"compositionstart":var Ae="onCompositionStart";break e;case"compositionend":Ae="onCompositionEnd";break e;case"compositionupdate":Ae="onCompositionUpdate";break e}Ae=void 0}else Gl?Od(e,n)&&(Ae="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ae="onCompositionStart");Ae&&(zd&&n.locale!=="ko"&&(Gl||Ae!=="onCompositionStart"?Ae==="onCompositionEnd"&&Gl&&(ye=Ad()):(Hn=Y,to="value"in Hn?Hn.value:Hn.textContent,Gl=!0)),se=qr(k,Ae),0<se.length&&(Ae=new Td(Ae,e,null,n,Y),K.push({event:Ae,listeners:se}),ye?Ae.data=ye:(ye=Dd(n),ye!==null&&(Ae.data=ye)))),(ye=rv?sv(e,n):ov(e,n))&&(Ae=qr(k,"onBeforeInput"),0<Ae.length&&(se=new Td("onBeforeInput","beforeinput",null,n,Y),K.push({event:se,listeners:Ae}),se.data=ye)),Pv(K,e,k,n,Y)}yh(K,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",l=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Ba(e,n),i!=null&&l.unshift(gi(e,i,o)),i=Ba(e,t),i!=null&&l.push(gi(e,i,o))),e.tag===3)return l;e=e.return}return[]}function l1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wh(e,t,n,l,i){for(var o=t._reactName,m=[];n!==null&&n!==l;){var b=n,C=b.alternate,k=b.stateNode;if(b=b.tag,C!==null&&C===l)break;b!==5&&b!==26&&b!==27||k===null||(C=k,i?(k=Ba(n,o),k!=null&&m.unshift(gi(n,k,C))):i||(k=Ba(n,o),k!=null&&m.push(gi(n,k,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var a1=/\r\n?/g,i1=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(a1,`
|
|
49
|
+
`).replace(i1,"")}function jh(e,t){return t=Sh(t),Sh(e)===t}function ke(e,t,n,l,i,o){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ul(e,""+l);break;case"className":Zi(e,"class",l);break;case"tabIndex":Zi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Zi(e,n,l);break;case"style":Sd(e,l,o);break;case"data":if(t!=="object"){Zi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ki(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",i.name,i,null),ke(e,t,"formEncType",i.formEncType,i,null),ke(e,t,"formMethod",i.formMethod,i,null),ke(e,t,"formTarget",i.formTarget,i,null)):(ke(e,t,"encType",i.encType,i,null),ke(e,t,"method",i.method,i,null),ke(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Ki(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=mn);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=Ki(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":je("beforetoggle",e),je("toggle",e),Xi(e,"popover",l);break;case"xlinkActuate":fn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":fn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":fn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":fn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":fn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":fn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":fn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":fn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":fn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Xi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Ox.get(n)||n,Xi(e,n,l))}}function Bc(e,t,n,l,i,o){switch(n){case"style":Sd(e,l,o);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Ul(e,l):(typeof l=="number"||typeof l=="bigint")&&Ul(e,""+l);break;case"onScroll":l!=null&&je("scroll",e);break;case"onScrollEnd":l!=null&&je("scrollend",e);break;case"onClick":l!=null&&(e.onclick=mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!md.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[ht]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof l=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,i);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Xi(e,n,l)}}}function ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var l=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var m=n[o];if(m!=null)switch(o){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,o,m,n,null)}}i&&ke(e,t,"srcSet",n.srcSet,n,null),l&&ke(e,t,"src",n.src,n,null);return;case"input":je("invalid",e);var b=o=m=i=null,C=null,k=null;for(l in n)if(n.hasOwnProperty(l)){var Y=n[l];if(Y!=null)switch(l){case"name":i=Y;break;case"type":m=Y;break;case"checked":C=Y;break;case"defaultChecked":k=Y;break;case"value":o=Y;break;case"defaultValue":b=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,t));break;default:ke(e,t,l,Y,n,null)}}vd(e,o,b,C,k,m,i,!1);return;case"select":je("invalid",e),l=m=o=null;for(i in n)if(n.hasOwnProperty(i)&&(b=n[i],b!=null))switch(i){case"value":o=b;break;case"defaultValue":m=b;break;case"multiple":l=b;default:ke(e,t,i,b,n,null)}t=o,n=m,e.multiple=!!l,t!=null?Hl(e,!!l,t,!1):n!=null&&Hl(e,!!l,n,!0);return;case"textarea":je("invalid",e),o=i=l=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":l=b;break;case"defaultValue":i=b;break;case"children":o=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(s(91));break;default:ke(e,t,m,b,n,null)}bd(e,l,i,o);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ke(e,t,C,l,n,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(l=0;l<pi.length;l++)je(pi[l],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(k in n)if(n.hasOwnProperty(k)&&(l=n[k],l!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:ke(e,t,k,l,n,null)}return;default:if(Fs(t)){for(Y in n)n.hasOwnProperty(Y)&&(l=n[Y],l!==void 0&&Bc(e,t,Y,l,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(l=n[b],l!=null&&ke(e,t,b,l,n,null))}function r1(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,m=null,b=null,C=null,k=null,Y=null;for(U in n){var K=n[U];if(n.hasOwnProperty(U)&&K!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":C=K;default:l.hasOwnProperty(U)||ke(e,t,U,null,l,K)}}for(var L in l){var U=l[L];if(K=n[L],l.hasOwnProperty(L)&&(U!=null||K!=null))switch(L){case"type":o=U;break;case"name":i=U;break;case"checked":k=U;break;case"defaultChecked":Y=U;break;case"value":m=U;break;case"defaultValue":b=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:U!==K&&ke(e,t,L,U,l,K)}}$s(e,m,b,C,k,Y,o,i);return;case"select":U=m=b=L=null;for(o in n)if(C=n[o],n.hasOwnProperty(o)&&C!=null)switch(o){case"value":break;case"multiple":U=C;default:l.hasOwnProperty(o)||ke(e,t,o,null,l,C)}for(i in l)if(o=l[i],C=n[i],l.hasOwnProperty(i)&&(o!=null||C!=null))switch(i){case"value":L=o;break;case"defaultValue":b=o;break;case"multiple":m=o;default:o!==C&&ke(e,t,i,o,l,C)}t=b,n=m,l=U,L!=null?Hl(e,!!n,L,!1):!!l!=!!n&&(t!=null?Hl(e,!!n,t,!0):Hl(e,!!n,n?[]:"",!1));return;case"textarea":U=L=null;for(b in n)if(i=n[b],n.hasOwnProperty(b)&&i!=null&&!l.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:ke(e,t,b,null,l,i)}for(m in l)if(i=l[m],o=n[m],l.hasOwnProperty(m)&&(i!=null||o!=null))switch(m){case"value":L=i;break;case"defaultValue":U=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(s(91));break;default:i!==o&&ke(e,t,m,i,l,o)}yd(e,L,U);return;case"option":for(var ne in n)if(L=n[ne],n.hasOwnProperty(ne)&&L!=null&&!l.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:ke(e,t,ne,null,l,L)}for(C in l)if(L=l[C],U=n[C],l.hasOwnProperty(C)&&L!==U&&(L!=null||U!=null))switch(C){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:ke(e,t,C,L,l,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in n)L=n[de],n.hasOwnProperty(de)&&L!=null&&!l.hasOwnProperty(de)&&ke(e,t,de,null,l,L);for(k in l)if(L=l[k],U=n[k],l.hasOwnProperty(k)&&L!==U&&(L!=null||U!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:ke(e,t,k,L,l,U)}return;default:if(Fs(t)){for(var Le in n)L=n[Le],n.hasOwnProperty(Le)&&L!==void 0&&!l.hasOwnProperty(Le)&&Bc(e,t,Le,void 0,l,L);for(Y in l)L=l[Y],U=n[Y],!l.hasOwnProperty(Y)||L===U||L===void 0&&U===void 0||Bc(e,t,Y,L,l,U);return}}for(var z in n)L=n[z],n.hasOwnProperty(z)&&L!=null&&!l.hasOwnProperty(z)&&ke(e,t,z,null,l,L);for(K in l)L=l[K],U=n[K],!l.hasOwnProperty(K)||L===U||L==null&&U==null||ke(e,t,K,L,l,U)}function Ch(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function s1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var i=n[l],o=i.transferSize,m=i.initiatorType,b=i.duration;if(o&&b&&Ch(m)){for(m=0,b=i.responseEnd,l+=1;l<n.length;l++){var C=n[l],k=C.startTime;if(k>b)break;var Y=C.transferSize,K=C.initiatorType;Y&&Ch(K)&&(C=C.responseEnd,m+=Y*(C<b?1:(b-k)/(C-k)))}if(--l,t+=8*(o+m)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hc=null,Uc=null;function Gr(e){return e.nodeType===9?e:e.ownerDocument}function Ah(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Nh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Vc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qc=null;function o1(){var e=window.event;return e&&e.type==="popstate"?e===qc?!1:(qc=e,!0):(qc=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,c1=typeof clearTimeout=="function"?clearTimeout:void 0,Th=typeof Promise=="function"?Promise:void 0,u1=typeof queueMicrotask=="function"?queueMicrotask:typeof Th<"u"?function(e){return Th.resolve(null).then(e).catch(d1)}:Eh;function d1(e){setTimeout(function(){throw e})}function tl(e){return e==="head"}function Mh(e,t){var n=t,l=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(i),ga(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")xi(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xi(n);for(var o=n.firstChild;o;){var m=o.nextSibling,b=o.nodeName;o[ka]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=m}}else n==="body"&&xi(e.ownerDocument.body);n=i}while(n);ga(t)}function zh(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Gc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Gc(n),Qs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function f1(e,t,n,l){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ka])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Zt(e.nextSibling),e===null)break}return null}function m1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Zt(e.nextSibling),e===null))return null;return e}function Rh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Zt(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$?"||e.data==="$~"}function Xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function h1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Zt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zc=null;function _h(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Zt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Oh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Dh(e,t,n){switch(t=Gr(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function xi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qs(e)}var Qt=new Map,kh=new Set;function Yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Mn=G.d;G.d={f:p1,r:g1,D:x1,C:v1,L:y1,m:b1,X:S1,S:w1,M:j1};function p1(){var e=Mn.f(),t=Dr();return e||t}function g1(e){var t=kl(e);t!==null&&t.tag===5&&t.type==="form"?If(t):Mn.r(e)}var ma=typeof document>"u"?null:document;function Lh(e,t,n){var l=ma;if(l&&typeof t=="string"&&t){var i=Ht(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),kh.has(i)||(kh.add(i),e={rel:e,crossOrigin:n,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ut(t,"link",e),lt(t),l.head.appendChild(t)))}}function x1(e){Mn.D(e),Lh("dns-prefetch",e,null)}function v1(e,t){Mn.C(e,t),Lh("preconnect",e,t)}function y1(e,t,n){Mn.L(e,t,n);var l=ma;if(l&&e&&t){var i='link[rel="preload"][as="'+Ht(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Ht(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Ht(n.imageSizes)+'"]')):i+='[href="'+Ht(e)+'"]';var o=i;switch(t){case"style":o=ha(e);break;case"script":o=pa(e)}Qt.has(o)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qt.set(o,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(vi(o))||t==="script"&&l.querySelector(yi(o))||(t=l.createElement("link"),ut(t,"link",e),lt(t),l.head.appendChild(t)))}}function b1(e,t){Mn.m(e,t);var n=ma;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Ht(l)+'"][href="'+Ht(e)+'"]',o=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=pa(e)}if(!Qt.has(o)&&(e=v({rel:"modulepreload",href:e},t),Qt.set(o,e),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(yi(o)))return}l=n.createElement("link"),ut(l,"link",e),lt(l),n.head.appendChild(l)}}}function w1(e,t,n){Mn.S(e,t,n);var l=ma;if(l&&e){var i=Ll(l).hoistableStyles,o=ha(e);t=t||"default";var m=i.get(o);if(!m){var b={loading:0,preload:null};if(m=l.querySelector(vi(o)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qt.get(o))&&Qc(e,n);var C=m=l.createElement("link");lt(C),ut(C,"link",e),C._p=new Promise(function(k,Y){C.onload=k,C.onerror=Y}),C.addEventListener("load",function(){b.loading|=1}),C.addEventListener("error",function(){b.loading|=2}),b.loading|=4,Xr(m,t,l)}m={type:"stylesheet",instance:m,count:1,state:b},i.set(o,m)}}}function S1(e,t){Mn.X(e,t);var n=ma;if(n&&e){var l=Ll(n).hoistableScripts,i=pa(e),o=l.get(i);o||(o=n.querySelector(yi(i)),o||(e=v({src:e,async:!0},t),(t=Qt.get(i))&&Kc(e,t),o=n.createElement("script"),lt(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(i,o))}}function j1(e,t){Mn.M(e,t);var n=ma;if(n&&e){var l=Ll(n).hoistableScripts,i=pa(e),o=l.get(i);o||(o=n.querySelector(yi(i)),o||(e=v({src:e,async:!0,type:"module"},t),(t=Qt.get(i))&&Kc(e,t),o=n.createElement("script"),lt(o),ut(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},l.set(i,o))}}function Bh(e,t,n,l){var i=(i=ge.current)?Yr(i):null;if(!i)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ha(n.href),n=Ll(i).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ha(n.href);var o=Ll(i).hoistableStyles,m=o.get(e);if(m||(i=i.ownerDocument||i,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,m),(o=i.querySelector(vi(e)))&&!o._p&&(m.instance=o,m.state.loading=5),Qt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Qt.set(e,n),o||C1(i,e,n,m.state))),t&&l===null)throw Error(s(528,""));return m}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=pa(n),n=Ll(i).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ha(e){return'href="'+Ht(e)+'"'}function vi(e){return'link[rel="stylesheet"]['+e+"]"}function Hh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function C1(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",n),lt(t),e.head.appendChild(t))}function pa(e){return'[src="'+Ht(e)+'"]'}function yi(e){return"script[async]"+e}function Uh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ht(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var i=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ut(l,"style",i),Xr(l,n.precedence,e),t.instance=l;case"stylesheet":i=ha(n.href);var o=e.querySelector(vi(i));if(o)return t.state.loading|=4,t.instance=o,lt(o),o;l=Hh(n),(i=Qt.get(i))&&Qc(l,i),o=(e.ownerDocument||e).createElement("link"),lt(o);var m=o;return m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),ut(o,"link",l),t.state.loading|=4,Xr(o,n.precedence,e),t.instance=o;case"script":return o=pa(n.src),(i=e.querySelector(yi(o)))?(t.instance=i,lt(i),i):(l=n,(i=Qt.get(o))&&(l=v({},n),Kc(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),lt(i),ut(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Xr(l,n.precedence,e));return t.instance}function Xr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,o=i,m=0;m<l.length;m++){var b=l[m];if(b.dataset.precedence===t)o=b;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Zr=null;function Vh(e,t,n){if(Zr===null){var l=new Map,i=Zr=new Map;i.set(n,l)}else i=Zr,l=i.get(n),l||(l=new Map,i.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[ka]||o[rt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var m=o.getAttribute(t)||"";m=e+m;var b=l.get(m);b?b.push(o):l.set(m,[o])}}return l}function qh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function A1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function N1(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=ha(l.href),o=t.querySelector(vi(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,lt(o);return}o=t.ownerDocument||t,l=Hh(l),(i=Qt.get(i))&&Qc(l,i),o=o.createElement("link"),lt(o);var m=o;m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),ut(o,"link",l),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var $c=0;function E1(e,t){return e.stylesheets&&e.count===0&&$r(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&$c===0&&($c=62500*s1());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$r(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>$c?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Qr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$r(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function $r(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(T1,e),Kr=null,Qr.call(e))}function T1(e,t){if(!(t.state.loading&4)){var n=Kr.get(e);if(n)var l=n.get(null);else{n=new Map,Kr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var m=i[o];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),l=m)}l&&n.set(null,l)}i=t.instance,m=i.getAttribute("data-precedence"),o=n.get(m)||l,o===l&&n.set(null,i),n.set(m,i),this.count++,l=Qr.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var bi={$$typeof:O,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function M1(e,t,n,l,i,o,m,b,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gs(0),this.hiddenUpdates=Gs(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Yh(e,t,n,l,i,o,m,b,C,k,Y,K){return e=new M1(e,t,n,m,C,k,Y,K,b),t=1,o===!0&&(t|=24),o=Et(3,null,null,t),e.current=o,o.stateNode=e,t=Eo(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:l,isDehydrated:n,cache:t},Ro(o),e}function Xh(e){return e?(e=Ql,e):Ql}function Zh(e,t,n,l,i,o){i=Xh(i),l.context===null?l.context=i:l.pendingContext=i,l=Xn(t),l.payload={element:n},o=o===void 0?null:o,o!==null&&(l.callback=o),n=Zn(e,l,t),n!==null&&(bt(n,e,t),Ia(n,e,t))}function Qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jc(e,t){Qh(e,t),(e=e.alternate)&&Qh(e,t)}function Kh(e){if(e.tag===13||e.tag===31){var t=xl(e,67108864);t!==null&&bt(t,e,67108864),Jc(e,67108864)}}function $h(e){if(e.tag===13||e.tag===31){var t=_t();t=Ys(t);var n=xl(e,t);n!==null&&bt(n,e,t),Jc(e,t)}}var Jr=!0;function z1(e,t,n,l){var i=_.T;_.T=null;var o=G.p;try{G.p=2,Fc(e,t,n,l)}finally{G.p=o,_.T=i}}function R1(e,t,n,l){var i=_.T;_.T=null;var o=G.p;try{G.p=8,Fc(e,t,n,l)}finally{G.p=o,_.T=i}}function Fc(e,t,n,l){if(Jr){var i=Wc(l);if(i===null)Lc(e,t,l,Fr,n),Fh(e,l);else if(O1(i,e,t,n,l))l.stopPropagation();else if(Fh(e,l),t&4&&-1<_1.indexOf(e)){for(;i!==null;){var o=kl(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var m=fl(o.pendingLanes);if(m!==0){var b=o;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var C=1<<31-At(m);b.entanglements[1]|=C,m&=~C}ln(o),(Re&6)===0&&(_r=jt()+500,hi(0))}}break;case 31:case 13:b=xl(o,2),b!==null&&bt(b,o,2),Dr(),Jc(o,2)}if(o=Wc(l),o===null&&Lc(e,t,l,Fr,n),o===i)break;i=o}i!==null&&l.stopPropagation()}else Lc(e,t,l,null,n)}}function Wc(e){return e=Is(e),Ic(e)}var Fr=null;function Ic(e){if(Fr=null,e=Dl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=x(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fr=e,null}function Jh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xx()){case nd:return 2;case ld:return 8;case Ui:case vx:return 32;case ad:return 268435456;default:return 32}default:return 32}}var Pc=!1,nl=null,ll=null,al=null,wi=new Map,Si=new Map,il=[],_1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fh(e,t){switch(e){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":ll=null;break;case"mouseover":case"mouseout":al=null;break;case"pointerover":case"pointerout":wi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(t.pointerId)}}function ji(e,t,n,l,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:o,targetContainers:[i]},t!==null&&(t=kl(t),t!==null&&Kh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function O1(e,t,n,l,i){switch(t){case"focusin":return nl=ji(nl,e,t,n,l,i),!0;case"dragenter":return ll=ji(ll,e,t,n,l,i),!0;case"mouseover":return al=ji(al,e,t,n,l,i),!0;case"pointerover":var o=i.pointerId;return wi.set(o,ji(wi.get(o)||null,e,t,n,l,i)),!0;case"gotpointercapture":return o=i.pointerId,Si.set(o,ji(Si.get(o)||null,e,t,n,l,i)),!0}return!1}function Wh(e){var t=Dl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,ud(e.priority,function(){$h(n)});return}}else if(t===31){if(t=x(n),t!==null){e.blockedOn=t,ud(e.priority,function(){$h(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Wc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ws=l,n.target.dispatchEvent(l),Ws=null}else return t=kl(n),t!==null&&Kh(t),e.blockedOn=n,!1;t.shift()}return!0}function Ih(e,t,n){Wr(e)&&n.delete(t)}function D1(){Pc=!1,nl!==null&&Wr(nl)&&(nl=null),ll!==null&&Wr(ll)&&(ll=null),al!==null&&Wr(al)&&(al=null),wi.forEach(Ih),Si.forEach(Ih)}function Ir(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,D1)))}var Pr=null;function Ph(e){Pr!==e&&(Pr=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Pr===e&&(Pr=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Ic(l||n)===null)continue;break}var o=kl(n);o!==null&&(e.splice(t,3),t-=3,Wo(o,{pending:!0,data:i,method:n.method,action:l},l,i))}}))}function ga(e){function t(C){return Ir(C,e)}nl!==null&&Ir(nl,e),ll!==null&&Ir(ll,e),al!==null&&Ir(al,e),wi.forEach(t),Si.forEach(t);for(var n=0;n<il.length;n++){var l=il[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<il.length&&(n=il[0],n.blockedOn===null);)Wh(n),n.blockedOn===null&&il.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var i=n[l],o=n[l+1],m=i[ht]||null;if(typeof o=="function")m||Ph(n);else if(m){var b=null;if(o&&o.hasAttribute("formAction")){if(i=o,m=o[ht]||null)b=m.formAction;else if(Ic(i)!==null)continue}else b=m.action;typeof b=="function"?n[l+1]=b:(n.splice(l,3),l-=3),Ph(n)}}}function ep(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(m){return i=m})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function eu(e){this._internalRoot=e}es.prototype.render=eu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,l=_t();Zh(n,l,e,t,null,null)},es.prototype.unmount=eu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zh(e.current,2,null,e,null,null),Dr(),t[Ol]=null}};function es(e){this._internalRoot=e}es.prototype.unstable_scheduleHydration=function(e){if(e){var t=cd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<il.length&&t!==0&&t<il[n].priority;n++);il.splice(n,0,e),n===0&&Wh(e)}};var tp=r.version;if(tp!=="19.2.0")throw Error(s(527,tp,"19.2.0"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var k1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ts.isDisabled&&ts.supportsFiber)try{_a=ts.inject(k1),Ct=ts}catch{}}return Ai.createRoot=function(e,t){if(!d(e))throw Error(s(299));var n=!1,l="",i=om,o=cm,m=um;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Yh(e,1,!1,null,null,n,l,null,i,o,m,ep),e[Ol]=t.current,kc(e),new eu(t)},Ai.hydrateRoot=function(e,t,n){if(!d(e))throw Error(s(299));var l=!1,i="",o=om,m=cm,b=um,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Yh(e,1,!0,t,n??null,l,i,C,o,m,b,ep),t.context=Xh(null),n=t.current,l=_t(),l=Ys(l),i=Xn(l),i.callback=null,Zn(n,i,l),n=l,t.current.lanes=n,Da(t,n),ln(t),e[Ol]=t.current,kc(e),new es(t)},Ai.version="19.2.0",Ai}var dp;function Z1(){if(dp)return lu.exports;dp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(r){console.error(r)}}return a(),lu.exports=X1(),lu.exports}var Q1=Z1();function un(a,r=[]){let c=[];function s(f,h){const x=S.createContext(h),p=c.length;c=[...c,h];const g=v=>{var R;const{scope:w,children:j,...A}=v,E=((R=w==null?void 0:w[a])==null?void 0:R[p])||x,N=S.useMemo(()=>A,Object.values(A));return u.jsx(E.Provider,{value:N,children:j})};g.displayName=f+"Provider";function y(v,w){var E;const j=((E=w==null?void 0:w[a])==null?void 0:E[p])||x,A=S.useContext(j);if(A)return A;if(h!==void 0)return h;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[g,y]}const d=()=>{const f=c.map(h=>S.createContext(h));return function(x){const p=(x==null?void 0:x[a])||f;return S.useMemo(()=>({[`__scope${a}`]:{...x,[a]:p}}),[x,p])}};return d.scopeName=a,[s,K1(d,...r)]}function K1(...a){const r=a[0];if(a.length===1)return r;const c=()=>{const s=a.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(f){const h=s.reduce((x,{useScope:p,scopeName:g})=>{const v=p(f)[`__scope${g}`];return{...x,...v}},{});return S.useMemo(()=>({[`__scope${r.scopeName}`]:h}),[h])}};return c.scopeName=r.scopeName,c}function fp(a,r){if(typeof a=="function")return a(r);a!=null&&(a.current=r)}function og(...a){return r=>{let c=!1;const s=a.map(d=>{const f=fp(d,r);return!c&&typeof f=="function"&&(c=!0),f});if(c)return()=>{for(let d=0;d<s.length;d++){const f=s[d];typeof f=="function"?f():fp(a[d],null)}}}}function Ie(...a){return S.useCallback(og(...a),a)}function ds(a){const r=J1(a),c=S.forwardRef((s,d)=>{const{children:f,...h}=s,x=S.Children.toArray(f),p=x.find(W1);if(p){const g=p.props.children,y=x.map(v=>v===p?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:v);return u.jsx(r,{...h,ref:d,children:S.isValidElement(g)?S.cloneElement(g,void 0,y):null})}return u.jsx(r,{...h,ref:d,children:f})});return c.displayName=`${a}.Slot`,c}var $1=ds("Slot");function J1(a){const r=S.forwardRef((c,s)=>{const{children:d,...f}=c;if(S.isValidElement(d)){const h=P1(d),x=I1(f,d.props);return d.type!==S.Fragment&&(x.ref=s?og(s,h):h),S.cloneElement(d,x)}return S.Children.count(d)>1?S.Children.only(null):null});return r.displayName=`${a}.SlotClone`,r}var cg=Symbol("radix.slottable");function F1(a){const r=({children:c})=>u.jsx(u.Fragment,{children:c});return r.displayName=`${a}.Slottable`,r.__radixId=cg,r}function W1(a){return S.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===cg}function I1(a,r){const c={...r};for(const s in r){const d=a[s],f=r[s];/^on[A-Z]/.test(s)?d&&f?c[s]=(...x)=>{const p=f(...x);return d(...x),p}:d&&(c[s]=d):s==="style"?c[s]={...d,...f}:s==="className"&&(c[s]=[d,f].filter(Boolean).join(" "))}return{...a,...c}}function P1(a){var s,d;let r=(s=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:s.get,c=r&&"isReactWarning"in r&&r.isReactWarning;return c?a.ref:(r=(d=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:d.get,c=r&&"isReactWarning"in r&&r.isReactWarning,c?a.props.ref:a.props.ref||a.ref)}function zu(a){const r=a+"CollectionProvider",[c,s]=un(r),[d,f]=c(r,{collectionRef:{current:null},itemMap:new Map}),h=E=>{const{scope:N,children:R}=E,H=Te.useRef(null),O=Te.useRef(new Map).current;return u.jsx(d,{scope:N,itemMap:O,collectionRef:H,children:R})};h.displayName=r;const x=a+"CollectionSlot",p=ds(x),g=Te.forwardRef((E,N)=>{const{scope:R,children:H}=E,O=f(x,R),V=Ie(N,O.collectionRef);return u.jsx(p,{ref:V,children:H})});g.displayName=x;const y=a+"CollectionItemSlot",v="data-radix-collection-item",w=ds(y),j=Te.forwardRef((E,N)=>{const{scope:R,children:H,...O}=E,V=Te.useRef(null),$=Ie(N,V),J=f(y,R);return Te.useEffect(()=>(J.itemMap.set(V,{ref:V,...O}),()=>void J.itemMap.delete(V))),u.jsx(w,{[v]:"",ref:$,children:H})});j.displayName=y;function A(E){const N=f(a+"CollectionConsumer",E);return Te.useCallback(()=>{const H=N.collectionRef.current;if(!H)return[];const O=Array.from(H.querySelectorAll(`[${v}]`));return Array.from(N.itemMap.values()).sort((J,Q)=>O.indexOf(J.ref.current)-O.indexOf(Q.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},A,s]}function He(a,r,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a==null||a(d),c===!1||!d.defaultPrevented)return r==null?void 0:r(d)}}var ol=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},ey=rg[" useInsertionEffect ".trim().toString()]||ol;function dl({prop:a,defaultProp:r,onChange:c=()=>{},caller:s}){const[d,f,h]=ty({defaultProp:r,onChange:c}),x=a!==void 0,p=x?a:d;{const y=S.useRef(a!==void 0);S.useEffect(()=>{const v=y.current;v!==x&&console.warn(`${s} is changing from ${v?"controlled":"uncontrolled"} to ${x?"controlled":"uncontrolled"}. 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.`),y.current=x},[x,s])}const g=S.useCallback(y=>{var v;if(x){const w=ny(y)?y(a):y;w!==a&&((v=h.current)==null||v.call(h,w))}else f(y)},[x,a,f,h]);return[p,g]}function ty({defaultProp:a,onChange:r}){const[c,s]=S.useState(a),d=S.useRef(c),f=S.useRef(r);return ey(()=>{f.current=r},[r]),S.useEffect(()=>{var h;d.current!==c&&((h=f.current)==null||h.call(f,c),d.current=c)},[c,d]),[c,s,f]}function ny(a){return typeof a=="function"}var Ru=sg();const ly=ig(Ru);var ay=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=ay.reduce((a,r)=>{const c=ds(`Primitive.${r}`),s=S.forwardRef((d,f)=>{const{asChild:h,...x}=d,p=h?c:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...x,ref:f})});return s.displayName=`Primitive.${r}`,{...a,[r]:s}},{});function iy(a,r){a&&Ru.flushSync(()=>a.dispatchEvent(r))}function ry(a,r){return S.useReducer((c,s)=>r[c][s]??c,a)}var Ss=a=>{const{present:r,children:c}=a,s=sy(r),d=typeof c=="function"?c({present:s.isPresent}):S.Children.only(c),f=Ie(s.ref,oy(d));return typeof c=="function"||s.isPresent?S.cloneElement(d,{ref:f}):null};Ss.displayName="Presence";function sy(a){const[r,c]=S.useState(),s=S.useRef(null),d=S.useRef(a),f=S.useRef("none"),h=a?"mounted":"unmounted",[x,p]=ry(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const g=ns(s.current);f.current=x==="mounted"?g:"none"},[x]),ol(()=>{const g=s.current,y=d.current;if(y!==a){const w=f.current,j=ns(g);a?p("MOUNT"):j==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&w!==j?"ANIMATION_OUT":"UNMOUNT"),d.current=a}},[a,p]),ol(()=>{if(r){let g;const y=r.ownerDocument.defaultView??window,v=j=>{const E=ns(s.current).includes(CSS.escape(j.animationName));if(j.target===r&&E&&(p("ANIMATION_END"),!d.current)){const N=r.style.animationFillMode;r.style.animationFillMode="forwards",g=y.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=N)})}},w=j=>{j.target===r&&(f.current=ns(s.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{y.clearTimeout(g),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(x),ref:S.useCallback(g=>{s.current=g?getComputedStyle(g):null,c(g)},[])}}function ns(a){return(a==null?void 0:a.animationName)||"none"}function oy(a){var s,d;let r=(s=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:s.get,c=r&&"isReactWarning"in r&&r.isReactWarning;return c?a.ref:(r=(d=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:d.get,c=r&&"isReactWarning"in r&&r.isReactWarning,c?a.props.ref:a.props.ref||a.ref)}var cy=rg[" useId ".trim().toString()]||(()=>{}),uy=0;function _i(a){const[r,c]=S.useState(cy());return ol(()=>{c(s=>s??String(uy++))},[a]),a||(r?`radix-${r}`:"")}var js="Collapsible",[dy,ug]=un(js),[fy,_u]=dy(js),dg=S.forwardRef((a,r)=>{const{__scopeCollapsible:c,open:s,defaultOpen:d,disabled:f,onOpenChange:h,...x}=a,[p,g]=dl({prop:s,defaultProp:d??!1,onChange:h,caller:js});return u.jsx(fy,{scope:c,disabled:f,contentId:_i(),open:p,onOpenToggle:S.useCallback(()=>g(y=>!y),[g]),children:u.jsx(Ue.div,{"data-state":Du(p),"data-disabled":f?"":void 0,...x,ref:r})})});dg.displayName=js;var fg="CollapsibleTrigger",mg=S.forwardRef((a,r)=>{const{__scopeCollapsible:c,...s}=a,d=_u(fg,c);return u.jsx(Ue.button,{type:"button","aria-controls":d.contentId,"aria-expanded":d.open||!1,"data-state":Du(d.open),"data-disabled":d.disabled?"":void 0,disabled:d.disabled,...s,ref:r,onClick:He(a.onClick,d.onOpenToggle)})});mg.displayName=fg;var Ou="CollapsibleContent",hg=S.forwardRef((a,r)=>{const{forceMount:c,...s}=a,d=_u(Ou,a.__scopeCollapsible);return u.jsx(Ss,{present:c||d.open,children:({present:f})=>u.jsx(my,{...s,ref:r,present:f})})});hg.displayName=Ou;var my=S.forwardRef((a,r)=>{const{__scopeCollapsible:c,present:s,children:d,...f}=a,h=_u(Ou,c),[x,p]=S.useState(s),g=S.useRef(null),y=Ie(r,g),v=S.useRef(0),w=v.current,j=S.useRef(0),A=j.current,E=h.open||x,N=S.useRef(E),R=S.useRef(void 0);return S.useEffect(()=>{const H=requestAnimationFrame(()=>N.current=!1);return()=>cancelAnimationFrame(H)},[]),ol(()=>{const H=g.current;if(H){R.current=R.current||{transitionDuration:H.style.transitionDuration,animationName:H.style.animationName},H.style.transitionDuration="0s",H.style.animationName="none";const O=H.getBoundingClientRect();v.current=O.height,j.current=O.width,N.current||(H.style.transitionDuration=R.current.transitionDuration,H.style.animationName=R.current.animationName),p(s)}},[h.open,s]),u.jsx(Ue.div,{"data-state":Du(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!E,...f,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":A?`${A}px`:void 0,...a.style},children:E&&d})});function Du(a){return a?"open":"closed"}var hy=dg,py=mg,gy=hg,xy=S.createContext(void 0);function Cs(a){const r=S.useContext(xy);return a||r||"ltr"}var It="Accordion",vy=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[ku,yy,by]=zu(It),[As]=un(It,[by,ug]),Lu=ug(),pg=Te.forwardRef((a,r)=>{const{type:c,...s}=a,d=s,f=s;return u.jsx(ku.Provider,{scope:a.__scopeAccordion,children:c==="multiple"?u.jsx(Cy,{...f,ref:r}):u.jsx(jy,{...d,ref:r})})});pg.displayName=It;var[gg,wy]=As(It),[xg,Sy]=As(It,{collapsible:!1}),jy=Te.forwardRef((a,r)=>{const{value:c,defaultValue:s,onValueChange:d=()=>{},collapsible:f=!1,...h}=a,[x,p]=dl({prop:c,defaultProp:s??"",onChange:d,caller:It});return u.jsx(gg,{scope:a.__scopeAccordion,value:Te.useMemo(()=>x?[x]:[],[x]),onItemOpen:p,onItemClose:Te.useCallback(()=>f&&p(""),[f,p]),children:u.jsx(xg,{scope:a.__scopeAccordion,collapsible:f,children:u.jsx(vg,{...h,ref:r})})})}),Cy=Te.forwardRef((a,r)=>{const{value:c,defaultValue:s,onValueChange:d=()=>{},...f}=a,[h,x]=dl({prop:c,defaultProp:s??[],onChange:d,caller:It}),p=Te.useCallback(y=>x((v=[])=>[...v,y]),[x]),g=Te.useCallback(y=>x((v=[])=>v.filter(w=>w!==y)),[x]);return u.jsx(gg,{scope:a.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(xg,{scope:a.__scopeAccordion,collapsible:!0,children:u.jsx(vg,{...f,ref:r})})})}),[Ay,Ns]=As(It),vg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,disabled:s,dir:d,orientation:f="vertical",...h}=a,x=Te.useRef(null),p=Ie(x,r),g=yy(c),v=Cs(d)==="ltr",w=He(a.onKeyDown,j=>{var q;if(!vy.includes(j.key))return;const A=j.target,E=g().filter(te=>{var ee;return!((ee=te.ref.current)!=null&&ee.disabled)}),N=E.findIndex(te=>te.ref.current===A),R=E.length;if(N===-1)return;j.preventDefault();let H=N;const O=0,V=R-1,$=()=>{H=N+1,H>V&&(H=O)},J=()=>{H=N-1,H<O&&(H=V)};switch(j.key){case"Home":H=O;break;case"End":H=V;break;case"ArrowRight":f==="horizontal"&&(v?$():J());break;case"ArrowDown":f==="vertical"&&$();break;case"ArrowLeft":f==="horizontal"&&(v?J():$());break;case"ArrowUp":f==="vertical"&&J();break}const Q=H%R;(q=E[Q].ref.current)==null||q.focus()});return u.jsx(Ay,{scope:c,disabled:s,direction:d,orientation:f,children:u.jsx(ku.Slot,{scope:c,children:u.jsx(Ue.div,{...h,"data-orientation":f,ref:p,onKeyDown:s?void 0:w})})})}),fs="AccordionItem",[Ny,Bu]=As(fs),yg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,value:s,...d}=a,f=Ns(fs,c),h=wy(fs,c),x=Lu(c),p=_i(),g=s&&h.value.includes(s)||!1,y=f.disabled||a.disabled;return u.jsx(Ny,{scope:c,open:g,disabled:y,triggerId:p,children:u.jsx(hy,{"data-orientation":f.orientation,"data-state":Ag(g),...x,...d,ref:r,disabled:y,open:g,onOpenChange:v=>{v?h.onItemOpen(s):h.onItemClose(s)}})})});yg.displayName=fs;var bg="AccordionHeader",wg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,...s}=a,d=Ns(It,c),f=Bu(bg,c);return u.jsx(Ue.h3,{"data-orientation":d.orientation,"data-state":Ag(f.open),"data-disabled":f.disabled?"":void 0,...s,ref:r})});wg.displayName=bg;var pu="AccordionTrigger",Sg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,...s}=a,d=Ns(It,c),f=Bu(pu,c),h=Sy(pu,c),x=Lu(c);return u.jsx(ku.ItemSlot,{scope:c,children:u.jsx(py,{"aria-disabled":f.open&&!h.collapsible||void 0,"data-orientation":d.orientation,id:f.triggerId,...x,...s,ref:r})})});Sg.displayName=pu;var jg="AccordionContent",Cg=Te.forwardRef((a,r)=>{const{__scopeAccordion:c,...s}=a,d=Ns(It,c),f=Bu(jg,c),h=Lu(c);return u.jsx(gy,{role:"region","aria-labelledby":f.triggerId,"data-orientation":d.orientation,...h,...s,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...a.style}})});Cg.displayName=jg;function Ag(a){return a?"open":"closed"}var mp=pg,Ey=yg,Ty=wg,My=Sg,zy=Cg;/**
|
|
50
50
|
* @license lucide-react v0.487.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
@@ -166,21 +166,21 @@ Error generating stack: `+l.message+`
|
|
|
166
166
|
*
|
|
167
167
|
* This source code is licensed under the ISC license.
|
|
168
168
|
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const db=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fb=Pe("x",db);function Mg(a){var r,c,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(r=0;r<d;r++)a[r]&&(c=Mg(a[r]))&&(s&&(s+=" "),s+=c)}else for(c in a)a[c]&&(s&&(s+=" "),s+=c);return s}function Es(){for(var a,r,c=0,s="",d=arguments.length;c<d;c++)(a=arguments[c])&&(r=Mg(a))&&(s&&(s+=" "),s+=r);return s}const Hu="-",mb=a=>{const r=pb(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:s}=a;return{getClassGroupId:h=>{const x=h.split(Hu);return x[0]===""&&x.length!==1&&x.shift(),zg(x,r)||hb(h)},getConflictingClassGroupIds:(h,x)=>{const p=c[h]||[];return x&&s[h]?[...p,...s[h]]:p}}},zg=(a,r)=>{var h;if(a.length===0)return r.classGroupId;const c=a[0],s=r.nextPart.get(c),d=s?zg(a.slice(1),s):void 0;if(d)return d;if(r.validators.length===0)return;const f=a.join(Hu);return(h=r.validators.find(({validator:x})=>x(f)))==null?void 0:h.classGroupId},vp=/^\[(.+)\]$/,hb=a=>{if(vp.test(a)){const r=vp.exec(a)[1],c=r==null?void 0:r.substring(0,r.indexOf(":"));if(c)return"arbitrary.."+c}},pb=a=>{const{theme:r,classGroups:c}=a,s={nextPart:new Map,validators:[]};for(const d in c)gu(c[d],s,d,r);return s},gu=(a,r,c,s)=>{a.forEach(d=>{if(typeof d=="string"){const f=d===""?r:yp(r,d);f.classGroupId=c;return}if(typeof d=="function"){if(gb(d)){gu(d(s),r,c,s);return}r.validators.push({validator:d,classGroupId:c});return}Object.entries(d).forEach(([f,h])=>{gu(h,yp(r,f),c,s)})})},yp=(a,r)=>{let c=a;return r.split(Hu).forEach(s=>{c.nextPart.has(s)||c.nextPart.set(s,{nextPart:new Map,validators:[]}),c=c.nextPart.get(s)}),c},gb=a=>a.isThemeGetter,xb=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,c=new Map,s=new Map;const d=(f,h)=>{c.set(f,h),r++,r>a&&(r=0,s=c,c=new Map)};return{get(f){let h=c.get(f);if(h!==void 0)return h;if((h=s.get(f))!==void 0)return d(f,h),h},set(f,h){c.has(f)?c.set(f,h):d(f,h)}}},xu="!",vu=":",vb=vu.length,yb=a=>{const{prefix:r,experimentalParseClassName:c}=a;let s=d=>{const f=[];let h=0,x=0,p=0,g;for(let A=0;A<d.length;A++){let E=d[A];if(h===0&&x===0){if(E===vu){f.push(d.slice(p,A)),p=A+vb;continue}if(E==="/"){g=A;continue}}E==="["?h++:E==="]"?h--:E==="("?x++:E===")"&&x--}const y=f.length===0?d:d.substring(p),v=bb(y),w=v!==y,j=g&&g>p?g-p:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:j}};if(r){const d=r+vu,f=s;s=h=>h.startsWith(d)?f(h.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(c){const d=s;s=f=>c({className:f,parseClassName:d})}return s},bb=a=>a.endsWith(xu)?a.substring(0,a.length-1):a.startsWith(xu)?a.substring(1):a,wb=a=>{const r=Object.fromEntries(a.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const d=[];let f=[];return s.forEach(h=>{h[0]==="["||r[h]?(d.push(...f.sort(),h),f=[]):f.push(h)}),d.push(...f.sort()),d}},Sb=a=>({cache:xb(a.cacheSize),parseClassName:yb(a),sortModifiers:wb(a),...mb(a)}),jb=/\s+/,Cb=(a,r)=>{const{parseClassName:c,getClassGroupId:s,getConflictingClassGroupIds:d,sortModifiers:f}=r,h=[],x=a.trim().split(jb);let p="";for(let g=x.length-1;g>=0;g-=1){const y=x[g],{isExternal:v,modifiers:w,hasImportantModifier:j,baseClassName:A,maybePostfixModifierPosition:E}=c(y);if(v){p=y+(p.length>0?" "+p:p);continue}let N=!!E,z=s(N?A.substring(0,E):A);if(!z){if(!N){p=y+(p.length>0?" "+p:p);continue}if(z=s(A),!z){p=y+(p.length>0?" "+p:p);continue}N=!1}const H=f(w).join(":"),O=j?H+xu:H,V=O+z;if(h.includes(V))continue;h.push(V);const $=d(z,N);for(let J=0;J<$.length;++J){const K=$[J];h.push(O+K)}p=y+(p.length>0?" "+p:p)}return p};function Ab(){let a=0,r,c,s="";for(;a<arguments.length;)(r=arguments[a++])&&(c=Rg(r))&&(s&&(s+=" "),s+=c);return s}const Rg=a=>{if(typeof a=="string")return a;let r,c="";for(let s=0;s<a.length;s++)a[s]&&(r=Rg(a[s]))&&(c&&(c+=" "),c+=r);return c};function Nb(a,...r){let c,s,d,f=h;function h(p){const g=r.reduce((y,v)=>v(y),a());return c=Sb(g),s=c.cache.get,d=c.cache.set,f=x,x(p)}function x(p){const g=s(p);if(g)return g;const y=Cb(p,c);return d(p,y),y}return function(){return f(Ab.apply(null,arguments))}}const tt=a=>{const r=c=>c[a]||[];return r.isThemeGetter=!0,r},_g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Og=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Eb=/^\d+\/\d+$/,Tb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mb=/\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$/,zb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Rb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_b=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,va=a=>Eb.test(a),we=a=>!!a&&!Number.isNaN(Number(a)),sl=a=>!!a&&Number.isInteger(Number(a)),su=a=>a.endsWith("%")&&we(a.slice(0,-1)),zn=a=>Tb.test(a),Ob=()=>!0,Db=a=>Mb.test(a)&&!zb.test(a),Dg=()=>!1,kb=a=>Rb.test(a),Lb=a=>_b.test(a),Bb=a=>!ae(a)&&!ie(a),Hb=a=>Ca(a,Bg,Dg),ae=a=>_g.test(a),zl=a=>Ca(a,Hg,Db),ou=a=>Ca(a,Yb,we),bp=a=>Ca(a,kg,Dg),Ub=a=>Ca(a,Lg,Lb),ls=a=>Ca(a,Ug,kb),ie=a=>Og.test(a),Ni=a=>Aa(a,Hg),Vb=a=>Aa(a,Xb),wp=a=>Aa(a,kg),qb=a=>Aa(a,Bg),Gb=a=>Aa(a,Lg),as=a=>Aa(a,Ug,!0),Ca=(a,r,c)=>{const s=_g.exec(a);return s?s[1]?r(s[1]):c(s[2]):!1},Aa=(a,r,c=!1)=>{const s=Og.exec(a);return s?s[1]?r(s[1]):c:!1},kg=a=>a==="position"||a==="percentage",Lg=a=>a==="image"||a==="url",Bg=a=>a==="length"||a==="size"||a==="bg-size",Hg=a=>a==="length",Yb=a=>a==="number",Xb=a=>a==="family-name",Ug=a=>a==="shadow",Zb=()=>{const a=tt("color"),r=tt("font"),c=tt("text"),s=tt("font-weight"),d=tt("tracking"),f=tt("leading"),h=tt("breakpoint"),x=tt("container"),p=tt("spacing"),g=tt("radius"),y=tt("shadow"),v=tt("inset-shadow"),w=tt("text-shadow"),j=tt("drop-shadow"),A=tt("blur"),E=tt("perspective"),N=tt("aspect"),z=tt("ease"),H=tt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...V(),ie,ae],J=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto","contain","none"],q=()=>[ie,ae,p],te=()=>[va,"full","auto",...q()],ee=()=>[sl,"none","subgrid",ie,ae],le=()=>["auto",{span:["full",sl,ie,ae]},sl,ie,ae],re=()=>[sl,"auto",ie,ae],he=()=>["auto","min","max","fr",ie,ae],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...q()],G=()=>[va,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],B=()=>[a,ie,ae],oe=()=>[...V(),wp,bp,{position:[ie,ae]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",qb,Hb,{size:[ie,ae]}],X=()=>[su,Ni,zl],F=()=>["","none","full",g,ie,ae],I=()=>["",we,Ni,zl],ue=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[we,su,wp,bp],Ne=()=>["","none",A,ie,ae],be=()=>["none",we,ie,ae],Ye=()=>["none",we,ie,ae],wt=()=>[we,ie,ae],St=()=>[va,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zn],breakpoint:[zn],color:[Ob],container:[zn],"drop-shadow":[zn],ease:["in","out","in-out"],font:[Bb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zn],shadow:[zn],spacing:["px",we],text:[zn],"text-shadow":[zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",va,ae,ie,N]}],container:["container"],columns:[{columns:[we,ae,ie,x]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:$()}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[sl,"auto",ie,ae]}],basis:[{basis:[va,"full","auto",x,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,va,"auto","initial","none",ae]}],grow:[{grow:["",we,ie,ae]}],shrink:[{shrink:["",we,ie,ae]}],order:[{order:[sl,"first","last","none",ie,ae]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[x,"screen",...G()]}],"min-w":[{"min-w":[x,"screen","none",...G()]}],"max-w":[{"max-w":[x,"screen","none","prose",{screen:[h]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",c,Ni,zl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ie,ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",su,ae]}],"font-family":[{font:[Vb,ae,r]}],"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:[d,ie,ae]}],"line-clamp":[{"line-clamp":[we,"none",ie,ou]}],leading:[{leading:[f,...q()]}],"list-image":[{"list-image":["none",ie,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ie,zl]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[we,"auto",ie,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ae]}],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",ie,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sl,ie,ae],radial:["",ie,ae],conic:[sl,ie,ae]},Gb,Ub]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ie,ae]}],"outline-w":[{outline:["",we,Ni,zl]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",y,as,ls]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",v,as,ls]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[we,zl]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",w,as,ls]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[we,ie,ae]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ie,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ae]}],filter:[{filter:["","none",ie,ae]}],blur:[{blur:Ne()}],brightness:[{brightness:[we,ie,ae]}],contrast:[{contrast:[we,ie,ae]}],"drop-shadow":[{"drop-shadow":["","none",j,as,ls]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",we,ie,ae]}],"hue-rotate":[{"hue-rotate":[we,ie,ae]}],invert:[{invert:["",we,ie,ae]}],saturate:[{saturate:[we,ie,ae]}],sepia:[{sepia:["",we,ie,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ae]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[we,ie,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,ie,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ie,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ie,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,ie,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,ie,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,ie,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ie,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ie,ae]}],ease:[{ease:["linear","initial",z,ie,ae]}],delay:[{delay:[we,ie,ae]}],animate:[{animate:["none",H,ie,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ie,ae]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:wt()}],"skew-x":[{"skew-x":wt()}],"skew-y":[{"skew-y":wt()}],transform:[{transform:[ie,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",ie,ae]}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",ie,ae]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[we,Ni,zl,ou]}],stroke:[{stroke:["none",...B()]}],"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"]}},Dt=Nb(Zb);function W(...a){return Dt(Es(a))}function Qb({type:a="single",collapsible:r=!1,className:c,children:s,...d}){const[f,h]=S.useState(a==="multiple"?[]:"");return a==="multiple"?u.jsx(mp,{type:"multiple",className:c,value:f,onValueChange:x=>h(x),"data-slot":"accordion",...d,children:Te.Children.map(s,x=>Te.isValidElement(x)?Te.cloneElement(x,{openValue:f}):x)}):u.jsx(mp,{type:"single",collapsible:r,className:c,value:f,onValueChange:x=>h(x),"data-slot":"accordion",...d,children:Te.Children.map(s,x=>Te.isValidElement(x)?Te.cloneElement(x,{...x.props??{},openValue:f}):x)})}function Kb({className:a,openValue:r,value:c,children:s,...d}){return u.jsx(Ey,{"data-slot":"accordion-item",className:W("border-b last:border-b-0",a),value:c,...d,children:Te.Children.map(s,f=>Te.isValidElement(f)?Te.cloneElement(f,{itemValue:c,openValue:r}):f)})}function $b({className:a,children:r,iconOpen:c=Tg,iconClosed:s=Eg,itemValue:d,openValue:f,...h}){const x=Array.isArray(f)&&d?f.includes(d):f===d;return u.jsx(Ty,{className:"flex w-full",children:u.jsxs(My,{"data-slot":"accordion-trigger",className:W("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",a,x?"rounded-t-md":"rounded-md"),...h,children:[r,x?u.jsx(c,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}):u.jsx(s,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Jb({className:a,children:r,...c}){return u.jsx(zy,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...c,children:u.jsx("div",{className:W("pt-0 pb-4",a),children:r})})}function Fb({type:a="single",collapsible:r=!1,items:c,accordionClassName:s="w-full bg-white p-4",itemClassName:d="border-b last:border-b-0",questionClassName:f="text-lg font-medium",answerClassName:h="text-sm text-gray-600",iconClosed:x,iconOpen:p}){return u.jsx(Qb,{type:a,collapsible:r,className:`${s}`,children:c.map((g,y)=>u.jsxs(Kb,{value:`item-${y}`,className:d,children:[u.jsx($b,{className:f,iconClosed:x,iconOpen:p,children:g.question}),u.jsx(Jb,{className:h,children:g.answer})]},y))})}const ya={xs:"w-6 h-6",sm:"w-8 h-8 ",md:"w-10 h-10 ",lg:"w-12 h-12 ",xl:"w-14 h-14 ","2xl":"w-16 h-16 "},Wb={xs:"w-1.5 h-1.5",sm:"w-2 h-2 ",md:"w-2.5 h-2.5 ",lg:"w-3 h-3 ",xl:"w-3.5 h-3.5 ","2xl":"w-4 h-4 "},Sp={xs:"w-2.5 h-2.5",sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4",xl:"w-4.5 h-4.5 ","2xl":"w-5 h-5 "},Ib={xs:"gap-2",sm:"gap-2.5",md:"gap-3",lg:"gap-3.5",xl:"gap-4","2xl":"gap-4.5"},jp={xs:"text-sm",sm:"text-sm",md:"text-sm",lg:"text-md",xl:"text-lg","2xl":"text-lg"},Pb=({title:a,description:r,size:c})=>u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:W("text-rtext-secondary-700 font-semibold",jp[c]),children:a}),u.jsx("span",{className:W("font-normal text-rtext-tertiary-600",jp[c]),children:r})]});function Oi(a){const r=S.useRef(a);return S.useEffect(()=>{r.current=a}),S.useMemo(()=>(...c)=>{var s;return(s=r.current)==null?void 0:s.call(r,...c)},[])}function e2(a,r=globalThis==null?void 0:globalThis.document){const c=Oi(a);S.useEffect(()=>{const s=d=>{d.key==="Escape"&&c(d)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[c,r])}var t2="DismissableLayer",yu="dismissableLayer.update",n2="dismissableLayer.pointerDownOutside",l2="dismissableLayer.focusOutside",Cp,Vg=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qg=S.forwardRef((a,r)=>{const{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:x,...p}=a,g=S.useContext(Vg),[y,v]=S.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=S.useState({}),A=Ie(r,K=>v(K)),E=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),z=E.indexOf(N),H=y?E.indexOf(y):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,V=H>=z,$=r2(K=>{const q=K.target,te=[...g.branches].some(ee=>ee.contains(q));!V||te||(d==null||d(K),h==null||h(K),K.defaultPrevented||x==null||x())},w),J=s2(K=>{const q=K.target;[...g.branches].some(ee=>ee.contains(q))||(f==null||f(K),h==null||h(K),K.defaultPrevented||x==null||x())},w);return e2(K=>{H===g.layers.size-1&&(s==null||s(K),!K.defaultPrevented&&x&&(K.preventDefault(),x()))},w),S.useEffect(()=>{if(y)return c&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Cp=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Ap(),()=>{c&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Cp)}},[y,w,c,g]),S.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Ap())},[y,g]),S.useEffect(()=>{const K=()=>j({});return document.addEventListener(yu,K),()=>document.removeEventListener(yu,K)},[]),u.jsx(Ue.div,{...p,ref:A,style:{pointerEvents:O?V?"auto":"none":void 0,...a.style},onFocusCapture:He(a.onFocusCapture,J.onFocusCapture),onBlurCapture:He(a.onBlurCapture,J.onBlurCapture),onPointerDownCapture:He(a.onPointerDownCapture,$.onPointerDownCapture)})});qg.displayName=t2;var a2="DismissableLayerBranch",i2=S.forwardRef((a,r)=>{const c=S.useContext(Vg),s=S.useRef(null),d=Ie(r,s);return S.useEffect(()=>{const f=s.current;if(f)return c.branches.add(f),()=>{c.branches.delete(f)}},[c.branches]),u.jsx(Ue.div,{...a,ref:d})});i2.displayName=a2;function r2(a,r=globalThis==null?void 0:globalThis.document){const c=Oi(a),s=S.useRef(!1),d=S.useRef(()=>{});return S.useEffect(()=>{const f=x=>{if(x.target&&!s.current){let p=function(){Gg(n2,c,g,{discrete:!0})};const g={originalEvent:x};x.pointerType==="touch"?(r.removeEventListener("click",d.current),d.current=p,r.addEventListener("click",d.current,{once:!0})):p()}else r.removeEventListener("click",d.current);s.current=!1},h=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),r.removeEventListener("pointerdown",f),r.removeEventListener("click",d.current)}},[r,c]),{onPointerDownCapture:()=>s.current=!0}}function s2(a,r=globalThis==null?void 0:globalThis.document){const c=Oi(a),s=S.useRef(!1);return S.useEffect(()=>{const d=f=>{f.target&&!s.current&&Gg(l2,c,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",d),()=>r.removeEventListener("focusin",d)},[r,c]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ap(){const a=new CustomEvent(yu);document.dispatchEvent(a)}function Gg(a,r,c,{discrete:s}){const d=c.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});r&&d.addEventListener(a,r,{once:!0}),s?iy(d,f):d.dispatchEvent(f)}const o2=["top","right","bottom","left"],cl=Math.min,Ot=Math.max,ps=Math.round,is=Math.floor,sn=a=>({x:a,y:a}),c2={left:"right",right:"left",bottom:"top",top:"bottom"},u2={start:"end",end:"start"};function bu(a,r,c){return Ot(a,cl(r,c))}function Rn(a,r){return typeof a=="function"?a(r):a}function _n(a){return a.split("-")[0]}function Na(a){return a.split("-")[1]}function Uu(a){return a==="x"?"y":"x"}function Vu(a){return a==="y"?"height":"width"}const d2=new Set(["top","bottom"]);function rn(a){return d2.has(_n(a))?"y":"x"}function qu(a){return Uu(rn(a))}function f2(a,r,c){c===void 0&&(c=!1);const s=Na(a),d=qu(a),f=Vu(d);let h=d==="x"?s===(c?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(h=gs(h)),[h,gs(h)]}function m2(a){const r=gs(a);return[wu(a),r,wu(r)]}function wu(a){return a.replace(/start|end/g,r=>u2[r])}const Np=["left","right"],Ep=["right","left"],h2=["top","bottom"],p2=["bottom","top"];function g2(a,r,c){switch(a){case"top":case"bottom":return c?r?Ep:Np:r?Np:Ep;case"left":case"right":return r?h2:p2;default:return[]}}function x2(a,r,c,s){const d=Na(a);let f=g2(_n(a),c==="start",s);return d&&(f=f.map(h=>h+"-"+d),r&&(f=f.concat(f.map(wu)))),f}function gs(a){return a.replace(/left|right|bottom|top/g,r=>c2[r])}function v2(a){return{top:0,right:0,bottom:0,left:0,...a}}function Yg(a){return typeof a!="number"?v2(a):{top:a,right:a,bottom:a,left:a}}function xs(a){const{x:r,y:c,width:s,height:d}=a;return{width:s,height:d,top:c,left:r,right:r+s,bottom:c+d,x:r,y:c}}function Tp(a,r,c){let{reference:s,floating:d}=a;const f=rn(r),h=qu(r),x=Vu(h),p=_n(r),g=f==="y",y=s.x+s.width/2-d.width/2,v=s.y+s.height/2-d.height/2,w=s[x]/2-d[x]/2;let j;switch(p){case"top":j={x:y,y:s.y-d.height};break;case"bottom":j={x:y,y:s.y+s.height};break;case"right":j={x:s.x+s.width,y:v};break;case"left":j={x:s.x-d.width,y:v};break;default:j={x:s.x,y:s.y}}switch(Na(r)){case"start":j[h]-=w*(c&&g?-1:1);break;case"end":j[h]+=w*(c&&g?-1:1);break}return j}const y2=async(a,r,c)=>{const{placement:s="bottom",strategy:d="absolute",middleware:f=[],platform:h}=c,x=f.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(r));let g=await h.getElementRects({reference:a,floating:r,strategy:d}),{x:y,y:v}=Tp(g,s,p),w=s,j={},A=0;for(let E=0;E<x.length;E++){const{name:N,fn:z}=x[E],{x:H,y:O,data:V,reset:$}=await z({x:y,y:v,initialPlacement:s,placement:w,strategy:d,middlewareData:j,rects:g,platform:h,elements:{reference:a,floating:r}});y=H??y,v=O??v,j={...j,[N]:{...j[N],...V}},$&&A<=50&&(A++,typeof $=="object"&&($.placement&&(w=$.placement),$.rects&&(g=$.rects===!0?await h.getElementRects({reference:a,floating:r,strategy:d}):$.rects),{x:y,y:v}=Tp(g,w,p)),E=-1)}return{x:y,y:v,placement:w,strategy:d,middlewareData:j}};async function Mi(a,r){var c;r===void 0&&(r={});const{x:s,y:d,platform:f,rects:h,elements:x,strategy:p}=a,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:w=!1,padding:j=0}=Rn(r,a),A=Yg(j),N=x[w?v==="floating"?"reference":"floating":v],z=xs(await f.getClippingRect({element:(c=await(f.isElement==null?void 0:f.isElement(N)))==null||c?N:N.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(x.floating)),boundary:g,rootBoundary:y,strategy:p})),H=v==="floating"?{x:s,y:d,width:h.floating.width,height:h.floating.height}:h.reference,O=await(f.getOffsetParent==null?void 0:f.getOffsetParent(x.floating)),V=await(f.isElement==null?void 0:f.isElement(O))?await(f.getScale==null?void 0:f.getScale(O))||{x:1,y:1}:{x:1,y:1},$=xs(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:x,rect:H,offsetParent:O,strategy:p}):H);return{top:(z.top-$.top+A.top)/V.y,bottom:($.bottom-z.bottom+A.bottom)/V.y,left:(z.left-$.left+A.left)/V.x,right:($.right-z.right+A.right)/V.x}}const b2=a=>({name:"arrow",options:a,async fn(r){const{x:c,y:s,placement:d,rects:f,platform:h,elements:x,middlewareData:p}=r,{element:g,padding:y=0}=Rn(a,r)||{};if(g==null)return{};const v=Yg(y),w={x:c,y:s},j=qu(d),A=Vu(j),E=await h.getDimensions(g),N=j==="y",z=N?"top":"left",H=N?"bottom":"right",O=N?"clientHeight":"clientWidth",V=f.reference[A]+f.reference[j]-w[j]-f.floating[A],$=w[j]-f.reference[j],J=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let K=J?J[O]:0;(!K||!await(h.isElement==null?void 0:h.isElement(J)))&&(K=x.floating[O]||f.floating[A]);const q=V/2-$/2,te=K/2-E[A]/2-1,ee=cl(v[z],te),le=cl(v[H],te),re=ee,he=K-E[A]-le,fe=K/2-E[A]/2+q,pe=bu(re,fe,he),_=!p.arrow&&Na(d)!=null&&fe!==pe&&f.reference[A]/2-(fe<re?ee:le)-E[A]/2<0,G=_?fe<re?fe-re:fe-he:0;return{[j]:w[j]+G,data:{[j]:pe,centerOffset:fe-pe-G,..._&&{alignmentOffset:G}},reset:_}}}),w2=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(r){var c,s;const{placement:d,middlewareData:f,rects:h,initialPlacement:x,platform:p,elements:g}=r,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...N}=Rn(a,r);if((c=f.arrow)!=null&&c.alignmentOffset)return{};const z=_n(d),H=rn(x),O=_n(x)===x,V=await(p.isRTL==null?void 0:p.isRTL(g.floating)),$=w||(O||!E?[gs(x)]:m2(x)),J=A!=="none";!w&&J&&$.push(...x2(x,E,A,V));const K=[x,...$],q=await Mi(r,N),te=[];let ee=((s=f.flip)==null?void 0:s.overflows)||[];if(y&&te.push(q[z]),v){const fe=f2(d,h,V);te.push(q[fe[0]],q[fe[1]])}if(ee=[...ee,{placement:d,overflows:te}],!te.every(fe=>fe<=0)){var le,re;const fe=(((le=f.flip)==null?void 0:le.index)||0)+1,pe=K[fe];if(pe&&(!(v==="alignment"?H!==rn(pe):!1)||ee.every(B=>rn(B.placement)===H?B.overflows[0]>0:!0)))return{data:{index:fe,overflows:ee},reset:{placement:pe}};let _=(re=ee.filter(G=>G.overflows[0]<=0).sort((G,B)=>G.overflows[1]-B.overflows[1])[0])==null?void 0:re.placement;if(!_)switch(j){case"bestFit":{var he;const G=(he=ee.filter(B=>{if(J){const oe=rn(B.placement);return oe===H||oe==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(oe=>oe>0).reduce((oe,me)=>oe+me,0)]).sort((B,oe)=>B[1]-oe[1])[0])==null?void 0:he[0];G&&(_=G);break}case"initialPlacement":_=x;break}if(d!==_)return{reset:{placement:_}}}return{}}}};function Mp(a,r){return{top:a.top-r.height,right:a.right-r.width,bottom:a.bottom-r.height,left:a.left-r.width}}function zp(a){return o2.some(r=>a[r]>=0)}const S2=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(r){const{rects:c}=r,{strategy:s="referenceHidden",...d}=Rn(a,r);switch(s){case"referenceHidden":{const f=await Mi(r,{...d,elementContext:"reference"}),h=Mp(f,c.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:zp(h)}}}case"escaped":{const f=await Mi(r,{...d,altBoundary:!0}),h=Mp(f,c.floating);return{data:{escapedOffsets:h,escaped:zp(h)}}}default:return{}}}}},Xg=new Set(["left","top"]);async function j2(a,r){const{placement:c,platform:s,elements:d}=a,f=await(s.isRTL==null?void 0:s.isRTL(d.floating)),h=_n(c),x=Na(c),p=rn(c)==="y",g=Xg.has(h)?-1:1,y=f&&p?-1:1,v=Rn(r,a);let{mainAxis:w,crossAxis:j,alignmentAxis:A}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return x&&typeof A=="number"&&(j=x==="end"?A*-1:A),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const C2=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var c,s;const{x:d,y:f,placement:h,middlewareData:x}=r,p=await j2(r,a);return h===((c=x.offset)==null?void 0:c.placement)&&(s=x.arrow)!=null&&s.alignmentOffset?{}:{x:d+p.x,y:f+p.y,data:{...p,placement:h}}}}},A2=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:c,y:s,placement:d}=r,{mainAxis:f=!0,crossAxis:h=!1,limiter:x={fn:N=>{let{x:z,y:H}=N;return{x:z,y:H}}},...p}=Rn(a,r),g={x:c,y:s},y=await Mi(r,p),v=rn(_n(d)),w=Uu(v);let j=g[w],A=g[v];if(f){const N=w==="y"?"top":"left",z=w==="y"?"bottom":"right",H=j+y[N],O=j-y[z];j=bu(H,j,O)}if(h){const N=v==="y"?"top":"left",z=v==="y"?"bottom":"right",H=A+y[N],O=A-y[z];A=bu(H,A,O)}const E=x.fn({...r,[w]:j,[v]:A});return{...E,data:{x:E.x-c,y:E.y-s,enabled:{[w]:f,[v]:h}}}}}},N2=function(a){return a===void 0&&(a={}),{options:a,fn(r){const{x:c,y:s,placement:d,rects:f,middlewareData:h}=r,{offset:x=0,mainAxis:p=!0,crossAxis:g=!0}=Rn(a,r),y={x:c,y:s},v=rn(d),w=Uu(v);let j=y[w],A=y[v];const E=Rn(x,r),N=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(p){const O=w==="y"?"height":"width",V=f.reference[w]-f.floating[O]+N.mainAxis,$=f.reference[w]+f.reference[O]-N.mainAxis;j<V?j=V:j>$&&(j=$)}if(g){var z,H;const O=w==="y"?"width":"height",V=Xg.has(_n(d)),$=f.reference[v]-f.floating[O]+(V&&((z=h.offset)==null?void 0:z[v])||0)+(V?0:N.crossAxis),J=f.reference[v]+f.reference[O]+(V?0:((H=h.offset)==null?void 0:H[v])||0)-(V?N.crossAxis:0);A<$?A=$:A>J&&(A=J)}return{[w]:j,[v]:A}}}},E2=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(r){var c,s;const{placement:d,rects:f,platform:h,elements:x}=r,{apply:p=()=>{},...g}=Rn(a,r),y=await Mi(r,g),v=_n(d),w=Na(d),j=rn(d)==="y",{width:A,height:E}=f.floating;let N,z;v==="top"||v==="bottom"?(N=v,z=w===(await(h.isRTL==null?void 0:h.isRTL(x.floating))?"start":"end")?"left":"right"):(z=v,N=w==="end"?"top":"bottom");const H=E-y.top-y.bottom,O=A-y.left-y.right,V=cl(E-y[N],H),$=cl(A-y[z],O),J=!r.middlewareData.shift;let K=V,q=$;if((c=r.middlewareData.shift)!=null&&c.enabled.x&&(q=O),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(K=H),J&&!w){const ee=Ot(y.left,0),le=Ot(y.right,0),re=Ot(y.top,0),he=Ot(y.bottom,0);j?q=A-2*(ee!==0||le!==0?ee+le:Ot(y.left,y.right)):K=E-2*(re!==0||he!==0?re+he:Ot(y.top,y.bottom))}await p({...r,availableWidth:q,availableHeight:K});const te=await h.getDimensions(x.floating);return A!==te.width||E!==te.height?{reset:{rects:!0}}:{}}}};function Ts(){return typeof window<"u"}function Ea(a){return Zg(a)?(a.nodeName||"").toLowerCase():"#document"}function kt(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function dn(a){var r;return(r=(Zg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function Zg(a){return Ts()?a instanceof Node||a instanceof kt(a).Node:!1}function Ft(a){return Ts()?a instanceof Element||a instanceof kt(a).Element:!1}function cn(a){return Ts()?a instanceof HTMLElement||a instanceof kt(a).HTMLElement:!1}function Rp(a){return!Ts()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof kt(a).ShadowRoot}const T2=new Set(["inline","contents"]);function Di(a){const{overflow:r,overflowX:c,overflowY:s,display:d}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(r+s+c)&&!T2.has(d)}const M2=new Set(["table","td","th"]);function z2(a){return M2.has(Ea(a))}const R2=[":popover-open",":modal"];function Ms(a){return R2.some(r=>{try{return a.matches(r)}catch{return!1}})}const _2=["transform","translate","scale","rotate","perspective"],O2=["transform","translate","scale","rotate","perspective","filter"],D2=["paint","layout","strict","content"];function Gu(a){const r=Yu(),c=Ft(a)?Wt(a):a;return _2.some(s=>c[s]?c[s]!=="none":!1)||(c.containerType?c.containerType!=="normal":!1)||!r&&(c.backdropFilter?c.backdropFilter!=="none":!1)||!r&&(c.filter?c.filter!=="none":!1)||O2.some(s=>(c.willChange||"").includes(s))||D2.some(s=>(c.contain||"").includes(s))}function k2(a){let r=ul(a);for(;cn(r)&&!wa(r);){if(Gu(r))return r;if(Ms(r))return null;r=ul(r)}return null}function Yu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const L2=new Set(["html","body","#document"]);function wa(a){return L2.has(Ea(a))}function Wt(a){return kt(a).getComputedStyle(a)}function zs(a){return Ft(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ul(a){if(Ea(a)==="html")return a;const r=a.assignedSlot||a.parentNode||Rp(a)&&a.host||dn(a);return Rp(r)?r.host:r}function Qg(a){const r=ul(a);return wa(r)?a.ownerDocument?a.ownerDocument.body:a.body:cn(r)&&Di(r)?r:Qg(r)}function zi(a,r,c){var s;r===void 0&&(r=[]),c===void 0&&(c=!0);const d=Qg(a),f=d===((s=a.ownerDocument)==null?void 0:s.body),h=kt(d);if(f){const x=Su(h);return r.concat(h,h.visualViewport||[],Di(d)?d:[],x&&c?zi(x):[])}return r.concat(d,zi(d,[],c))}function Su(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Kg(a){const r=Wt(a);let c=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const d=cn(a),f=d?a.offsetWidth:c,h=d?a.offsetHeight:s,x=ps(c)!==f||ps(s)!==h;return x&&(c=f,s=h),{width:c,height:s,$:x}}function Xu(a){return Ft(a)?a:a.contextElement}function ba(a){const r=Xu(a);if(!cn(r))return sn(1);const c=r.getBoundingClientRect(),{width:s,height:d,$:f}=Kg(r);let h=(f?ps(c.width):c.width)/s,x=(f?ps(c.height):c.height)/d;return(!h||!Number.isFinite(h))&&(h=1),(!x||!Number.isFinite(x))&&(x=1),{x:h,y:x}}const B2=sn(0);function $g(a){const r=kt(a);return!Yu()||!r.visualViewport?B2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function H2(a,r,c){return r===void 0&&(r=!1),!c||r&&c!==kt(a)?!1:r}function _l(a,r,c,s){r===void 0&&(r=!1),c===void 0&&(c=!1);const d=a.getBoundingClientRect(),f=Xu(a);let h=sn(1);r&&(s?Ft(s)&&(h=ba(s)):h=ba(a));const x=H2(f,c,s)?$g(f):sn(0);let p=(d.left+x.x)/h.x,g=(d.top+x.y)/h.y,y=d.width/h.x,v=d.height/h.y;if(f){const w=kt(f),j=s&&Ft(s)?kt(s):s;let A=w,E=Su(A);for(;E&&s&&j!==A;){const N=ba(E),z=E.getBoundingClientRect(),H=Wt(E),O=z.left+(E.clientLeft+parseFloat(H.paddingLeft))*N.x,V=z.top+(E.clientTop+parseFloat(H.paddingTop))*N.y;p*=N.x,g*=N.y,y*=N.x,v*=N.y,p+=O,g+=V,A=kt(E),E=Su(A)}}return xs({width:y,height:v,x:p,y:g})}function Rs(a,r){const c=zs(a).scrollLeft;return r?r.left+c:_l(dn(a)).left+c}function Jg(a,r){const c=a.getBoundingClientRect(),s=c.left+r.scrollLeft-Rs(a,c),d=c.top+r.scrollTop;return{x:s,y:d}}function U2(a){let{elements:r,rect:c,offsetParent:s,strategy:d}=a;const f=d==="fixed",h=dn(s),x=r?Ms(r.floating):!1;if(s===h||x&&f)return c;let p={scrollLeft:0,scrollTop:0},g=sn(1);const y=sn(0),v=cn(s);if((v||!v&&!f)&&((Ea(s)!=="body"||Di(h))&&(p=zs(s)),cn(s))){const j=_l(s);g=ba(s),y.x=j.x+s.clientLeft,y.y=j.y+s.clientTop}const w=h&&!v&&!f?Jg(h,p):sn(0);return{width:c.width*g.x,height:c.height*g.y,x:c.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:c.y*g.y-p.scrollTop*g.y+y.y+w.y}}function V2(a){return Array.from(a.getClientRects())}function q2(a){const r=dn(a),c=zs(a),s=a.ownerDocument.body,d=Ot(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),f=Ot(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let h=-c.scrollLeft+Rs(a);const x=-c.scrollTop;return Wt(s).direction==="rtl"&&(h+=Ot(r.clientWidth,s.clientWidth)-d),{width:d,height:f,x:h,y:x}}const _p=25;function G2(a,r){const c=kt(a),s=dn(a),d=c.visualViewport;let f=s.clientWidth,h=s.clientHeight,x=0,p=0;if(d){f=d.width,h=d.height;const y=Yu();(!y||y&&r==="fixed")&&(x=d.offsetLeft,p=d.offsetTop)}const g=Rs(s);if(g<=0){const y=s.ownerDocument,v=y.body,w=getComputedStyle(v),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(s.clientWidth-v.clientWidth-j);A<=_p&&(f-=A)}else g<=_p&&(f+=g);return{width:f,height:h,x,y:p}}const Y2=new Set(["absolute","fixed"]);function X2(a,r){const c=_l(a,!0,r==="fixed"),s=c.top+a.clientTop,d=c.left+a.clientLeft,f=cn(a)?ba(a):sn(1),h=a.clientWidth*f.x,x=a.clientHeight*f.y,p=d*f.x,g=s*f.y;return{width:h,height:x,x:p,y:g}}function Op(a,r,c){let s;if(r==="viewport")s=G2(a,c);else if(r==="document")s=q2(dn(a));else if(Ft(r))s=X2(r,c);else{const d=$g(a);s={x:r.x-d.x,y:r.y-d.y,width:r.width,height:r.height}}return xs(s)}function Fg(a,r){const c=ul(a);return c===r||!Ft(c)||wa(c)?!1:Wt(c).position==="fixed"||Fg(c,r)}function Z2(a,r){const c=r.get(a);if(c)return c;let s=zi(a,[],!1).filter(x=>Ft(x)&&Ea(x)!=="body"),d=null;const f=Wt(a).position==="fixed";let h=f?ul(a):a;for(;Ft(h)&&!wa(h);){const x=Wt(h),p=Gu(h);!p&&x.position==="fixed"&&(d=null),(f?!p&&!d:!p&&x.position==="static"&&!!d&&Y2.has(d.position)||Di(h)&&!p&&Fg(a,h))?s=s.filter(y=>y!==h):d=x,h=ul(h)}return r.set(a,s),s}function Q2(a){let{element:r,boundary:c,rootBoundary:s,strategy:d}=a;const h=[...c==="clippingAncestors"?Ms(r)?[]:Z2(r,this._c):[].concat(c),s],x=h[0],p=h.reduce((g,y)=>{const v=Op(r,y,d);return g.top=Ot(v.top,g.top),g.right=cl(v.right,g.right),g.bottom=cl(v.bottom,g.bottom),g.left=Ot(v.left,g.left),g},Op(r,x,d));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function K2(a){const{width:r,height:c}=Kg(a);return{width:r,height:c}}function $2(a,r,c){const s=cn(r),d=dn(r),f=c==="fixed",h=_l(a,!0,f,r);let x={scrollLeft:0,scrollTop:0};const p=sn(0);function g(){p.x=Rs(d)}if(s||!s&&!f)if((Ea(r)!=="body"||Di(d))&&(x=zs(r)),s){const j=_l(r,!0,f,r);p.x=j.x+r.clientLeft,p.y=j.y+r.clientTop}else d&&g();f&&!s&&d&&g();const y=d&&!s&&!f?Jg(d,x):sn(0),v=h.left+x.scrollLeft-p.x-y.x,w=h.top+x.scrollTop-p.y-y.y;return{x:v,y:w,width:h.width,height:h.height}}function cu(a){return Wt(a).position==="static"}function Dp(a,r){if(!cn(a)||Wt(a).position==="fixed")return null;if(r)return r(a);let c=a.offsetParent;return dn(a)===c&&(c=c.ownerDocument.body),c}function Wg(a,r){const c=kt(a);if(Ms(a))return c;if(!cn(a)){let d=ul(a);for(;d&&!wa(d);){if(Ft(d)&&!cu(d))return d;d=ul(d)}return c}let s=Dp(a,r);for(;s&&z2(s)&&cu(s);)s=Dp(s,r);return s&&wa(s)&&cu(s)&&!Gu(s)?c:s||k2(a)||c}const J2=async function(a){const r=this.getOffsetParent||Wg,c=this.getDimensions,s=await c(a.floating);return{reference:$2(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function F2(a){return Wt(a).direction==="rtl"}const W2={convertOffsetParentRelativeRectToViewportRelativeRect:U2,getDocumentElement:dn,getClippingRect:Q2,getOffsetParent:Wg,getElementRects:J2,getClientRects:V2,getDimensions:K2,getScale:ba,isElement:Ft,isRTL:F2};function Ig(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function I2(a,r){let c=null,s;const d=dn(a);function f(){var x;clearTimeout(s),(x=c)==null||x.disconnect(),c=null}function h(x,p){x===void 0&&(x=!1),p===void 0&&(p=1),f();const g=a.getBoundingClientRect(),{left:y,top:v,width:w,height:j}=g;if(x||r(),!w||!j)return;const A=is(v),E=is(d.clientWidth-(y+w)),N=is(d.clientHeight-(v+j)),z=is(y),O={rootMargin:-A+"px "+-E+"px "+-N+"px "+-z+"px",threshold:Ot(0,cl(1,p))||1};let V=!0;function $(J){const K=J[0].intersectionRatio;if(K!==p){if(!V)return h();K?h(!1,K):s=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!Ig(g,a.getBoundingClientRect())&&h(),V=!1}try{c=new IntersectionObserver($,{...O,root:d.ownerDocument})}catch{c=new IntersectionObserver($,O)}c.observe(a)}return h(!0),f}function P2(a,r,c,s){s===void 0&&(s={});const{ancestorScroll:d=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:x=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,g=Xu(a),y=d||f?[...g?zi(g):[],...zi(r)]:[];y.forEach(z=>{d&&z.addEventListener("scroll",c,{passive:!0}),f&&z.addEventListener("resize",c)});const v=g&&x?I2(g,c):null;let w=-1,j=null;h&&(j=new ResizeObserver(z=>{let[H]=z;H&&H.target===g&&j&&(j.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=j)==null||O.observe(r)})),c()}),g&&!p&&j.observe(g),j.observe(r));let A,E=p?_l(a):null;p&&N();function N(){const z=_l(a);E&&!Ig(E,z)&&c(),E=z,A=requestAnimationFrame(N)}return c(),()=>{var z;y.forEach(H=>{d&&H.removeEventListener("scroll",c),f&&H.removeEventListener("resize",c)}),v==null||v(),(z=j)==null||z.disconnect(),j=null,p&&cancelAnimationFrame(A)}}const e3=C2,t3=A2,n3=w2,l3=E2,a3=S2,kp=b2,i3=N2,r3=(a,r,c)=>{const s=new Map,d={platform:W2,...c},f={...d.platform,_c:s};return y2(a,r,{...d,platform:f})};var s3=typeof document<"u",o3=function(){},us=s3?S.useLayoutEffect:o3;function vs(a,r){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(typeof a=="function"&&a.toString()===r.toString())return!0;let c,s,d;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(c=a.length,c!==r.length)return!1;for(s=c;s--!==0;)if(!vs(a[s],r[s]))return!1;return!0}if(d=Object.keys(a),c=d.length,c!==Object.keys(r).length)return!1;for(s=c;s--!==0;)if(!{}.hasOwnProperty.call(r,d[s]))return!1;for(s=c;s--!==0;){const f=d[s];if(!(f==="_owner"&&a.$$typeof)&&!vs(a[f],r[f]))return!1}return!0}return a!==a&&r!==r}function Pg(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Lp(a,r){const c=Pg(a);return Math.round(r*c)/c}function uu(a){const r=S.useRef(a);return us(()=>{r.current=a}),r}function c3(a){a===void 0&&(a={});const{placement:r="bottom",strategy:c="absolute",middleware:s=[],platform:d,elements:{reference:f,floating:h}={},transform:x=!0,whileElementsMounted:p,open:g}=a,[y,v]=S.useState({x:0,y:0,strategy:c,placement:r,middlewareData:{},isPositioned:!1}),[w,j]=S.useState(s);vs(w,s)||j(s);const[A,E]=S.useState(null),[N,z]=S.useState(null),H=S.useCallback(B=>{B!==J.current&&(J.current=B,E(B))},[]),O=S.useCallback(B=>{B!==K.current&&(K.current=B,z(B))},[]),V=f||A,$=h||N,J=S.useRef(null),K=S.useRef(null),q=S.useRef(y),te=p!=null,ee=uu(p),le=uu(d),re=uu(g),he=S.useCallback(()=>{if(!J.current||!K.current)return;const B={placement:r,strategy:c,middleware:w};le.current&&(B.platform=le.current),r3(J.current,K.current,B).then(oe=>{const me={...oe,isPositioned:re.current!==!1};fe.current&&!vs(q.current,me)&&(q.current=me,Ru.flushSync(()=>{v(me)}))})},[w,r,c,le,re]);us(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,v(B=>({...B,isPositioned:!1})))},[g]);const fe=S.useRef(!1);us(()=>(fe.current=!0,()=>{fe.current=!1}),[]),us(()=>{if(V&&(J.current=V),$&&(K.current=$),V&&$){if(ee.current)return ee.current(V,$,he);he()}},[V,$,he,ee,te]);const pe=S.useMemo(()=>({reference:J,floating:K,setReference:H,setFloating:O}),[H,O]),_=S.useMemo(()=>({reference:V,floating:$}),[V,$]),G=S.useMemo(()=>{const B={position:c,left:0,top:0};if(!_.floating)return B;const oe=Lp(_.floating,y.x),me=Lp(_.floating,y.y);return x?{...B,transform:"translate("+oe+"px, "+me+"px)",...Pg(_.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:oe,top:me}},[c,x,_.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:he,refs:pe,elements:_,floatingStyles:G}),[y,he,pe,_,G])}const u3=a=>{function r(c){return{}.hasOwnProperty.call(c,"current")}return{name:"arrow",options:a,fn(c){const{element:s,padding:d}=typeof a=="function"?a(c):a;return s&&r(s)?s.current!=null?kp({element:s.current,padding:d}).fn(c):{}:s?kp({element:s,padding:d}).fn(c):{}}}},d3=(a,r)=>({...e3(a),options:[a,r]}),f3=(a,r)=>({...t3(a),options:[a,r]}),m3=(a,r)=>({...i3(a),options:[a,r]}),h3=(a,r)=>({...n3(a),options:[a,r]}),p3=(a,r)=>({...l3(a),options:[a,r]}),g3=(a,r)=>({...a3(a),options:[a,r]}),x3=(a,r)=>({...u3(a),options:[a,r]});var v3="Arrow",e0=S.forwardRef((a,r)=>{const{children:c,width:s=10,height:d=5,...f}=a;return u.jsx(Ue.svg,{...f,ref:r,width:s,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?c:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName=v3;var y3=e0;function Zu(a){const[r,c]=S.useState(void 0);return ol(()=>{if(a){c({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const f=d[0];let h,x;if("borderBoxSize"in f){const p=f.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,x=g.blockSize}else h=a.offsetWidth,x=a.offsetHeight;c({width:h,height:x})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else c(void 0)},[a]),r}var Qu="Popper",[t0,n0]=un(Qu),[b3,l0]=t0(Qu),a0=a=>{const{__scopePopper:r,children:c}=a,[s,d]=S.useState(null);return u.jsx(b3,{scope:r,anchor:s,onAnchorChange:d,children:c})};a0.displayName=Qu;var i0="PopperAnchor",r0=S.forwardRef((a,r)=>{const{__scopePopper:c,virtualRef:s,...d}=a,f=l0(i0,c),h=S.useRef(null),x=Ie(r,h),p=S.useRef(null);return S.useEffect(()=>{const g=p.current;p.current=(s==null?void 0:s.current)||h.current,g!==p.current&&f.onAnchorChange(p.current)}),s?null:u.jsx(Ue.div,{...d,ref:x})});r0.displayName=i0;var Ku="PopperContent",[w3,S3]=t0(Ku),s0=S.forwardRef((a,r)=>{var P,Ne,be,Ye,wt,St;const{__scopePopper:c,side:s="bottom",sideOffset:d=0,align:f="center",alignOffset:h=0,arrowPadding:x=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:j="optimized",onPlaced:A,...E}=a,N=l0(Ku,c),[z,H]=S.useState(null),O=Ie(r,Dn=>H(Dn)),[V,$]=S.useState(null),J=Zu(V),K=(J==null?void 0:J.width)??0,q=(J==null?void 0:J.height)??0,te=s+(f!=="center"?"-"+f:""),ee=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},le=Array.isArray(g)?g:[g],re=le.length>0,he={padding:ee,boundary:le.filter(C3),altBoundary:re},{refs:fe,floatingStyles:pe,placement:_,isPositioned:G,middlewareData:B}=c3({strategy:"fixed",placement:te,whileElementsMounted:(...Dn)=>P2(...Dn,{animationFrame:j==="always"}),elements:{reference:N.anchor},middleware:[d3({mainAxis:d+q,alignmentAxis:h}),p&&f3({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?m3():void 0,...he}),p&&h3({...he}),p3({...he,apply:({elements:Dn,rects:Pt,availableWidth:za,availableHeight:Ra})=>{const{width:Us,height:Hi}=Pt.reference,kn=Dn.floating.style;kn.setProperty("--radix-popper-available-width",`${za}px`),kn.setProperty("--radix-popper-available-height",`${Ra}px`),kn.setProperty("--radix-popper-anchor-width",`${Us}px`),kn.setProperty("--radix-popper-anchor-height",`${Hi}px`)}}),V&&x3({element:V,padding:x}),A3({arrowWidth:K,arrowHeight:q}),w&&g3({strategy:"referenceHidden",...he})]}),[oe,me]=u0(_),T=Oi(A);ol(()=>{G&&(T==null||T())},[G,T]);const X=(P=B.arrow)==null?void 0:P.x,F=(Ne=B.arrow)==null?void 0:Ne.y,I=((be=B.arrow)==null?void 0:be.centerOffset)!==0,[ue,ge]=S.useState();return ol(()=>{z&&ge(window.getComputedStyle(z).zIndex)},[z]),u.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:G?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(Ye=B.transformOrigin)==null?void 0:Ye.x,(wt=B.transformOrigin)==null?void 0:wt.y].join(" "),...((St=B.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(w3,{scope:c,placedSide:oe,onArrowChange:$,arrowX:X,arrowY:F,shouldHideArrow:I,children:u.jsx(Ue.div,{"data-side":oe,"data-align":me,...E,ref:O,style:{...E.style,animation:G?void 0:"none"}})})})});s0.displayName=Ku;var o0="PopperArrow",j3={top:"bottom",right:"left",bottom:"top",left:"right"},c0=S.forwardRef(function(r,c){const{__scopePopper:s,...d}=r,f=S3(o0,s),h=j3[f.placedSide];return u.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:u.jsx(y3,{...d,ref:c,style:{...d.style,display:"block"}})})});c0.displayName=o0;function C3(a){return a!==null}var A3=a=>({name:"transformOrigin",options:a,fn(r){var N,z,H;const{placement:c,rects:s,middlewareData:d}=r,h=((N=d.arrow)==null?void 0:N.centerOffset)!==0,x=h?0:a.arrowWidth,p=h?0:a.arrowHeight,[g,y]=u0(c),v={start:"0%",center:"50%",end:"100%"}[y],w=(((z=d.arrow)==null?void 0:z.x)??0)+x/2,j=(((H=d.arrow)==null?void 0:H.y)??0)+p/2;let A="",E="";return g==="bottom"?(A=h?v:`${w}px`,E=`${-p}px`):g==="top"?(A=h?v:`${w}px`,E=`${s.floating.height+p}px`):g==="right"?(A=`${-p}px`,E=h?v:`${j}px`):g==="left"&&(A=`${s.floating.width+p}px`,E=h?v:`${j}px`),{data:{x:A,y:E}}}});function u0(a){const[r,c="center"]=a.split("-");return[r,c]}var N3=a0,E3=r0,T3=s0,M3=c0,z3=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"}),R3="VisuallyHidden",d0=S.forwardRef((a,r)=>u.jsx(Ue.span,{...a,ref:r,style:{...z3,...a.style}}));d0.displayName=R3;var _3=d0,[_s]=un("Tooltip",[n0]),Os=n0(),f0="TooltipProvider",O3=700,ju="tooltip.open",[D3,$u]=_s(f0),m0=a=>{const{__scopeTooltip:r,delayDuration:c=O3,skipDelayDuration:s=300,disableHoverableContent:d=!1,children:f}=a,h=S.useRef(!0),x=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),u.jsx(D3,{scope:r,isOpenDelayedRef:h,delayDuration:c,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),h.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>h.current=!0,s)},[s]),isPointerInTransitRef:x,onPointerInTransitChange:S.useCallback(g=>{x.current=g},[]),disableHoverableContent:d,children:f})};m0.displayName=f0;var Ri="Tooltip",[k3,Ds]=_s(Ri),h0=a=>{const{__scopeTooltip:r,children:c,open:s,defaultOpen:d,onOpenChange:f,disableHoverableContent:h,delayDuration:x}=a,p=$u(Ri,a.__scopeTooltip),g=Os(r),[y,v]=S.useState(null),w=_i(),j=S.useRef(0),A=h??p.disableHoverableContent,E=x??p.delayDuration,N=S.useRef(!1),[z,H]=dl({prop:s,defaultProp:d??!1,onChange:K=>{K?(p.onOpen(),document.dispatchEvent(new CustomEvent(ju))):p.onClose(),f==null||f(K)},caller:Ri}),O=S.useMemo(()=>z?N.current?"delayed-open":"instant-open":"closed",[z]),V=S.useCallback(()=>{window.clearTimeout(j.current),j.current=0,N.current=!1,H(!0)},[H]),$=S.useCallback(()=>{window.clearTimeout(j.current),j.current=0,H(!1)},[H]),J=S.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{N.current=!0,H(!0),j.current=0},E)},[E,H]);return S.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),u.jsx(N3,{...g,children:u.jsx(k3,{scope:r,contentId:w,open:z,stateAttribute:O,trigger:y,onTriggerChange:v,onTriggerEnter:S.useCallback(()=>{p.isOpenDelayedRef.current?J():V()},[p.isOpenDelayedRef,J,V]),onTriggerLeave:S.useCallback(()=>{A?$():(window.clearTimeout(j.current),j.current=0)},[$,A]),onOpen:V,onClose:$,disableHoverableContent:A,children:c})})};h0.displayName=Ri;var Cu="TooltipTrigger",p0=S.forwardRef((a,r)=>{const{__scopeTooltip:c,...s}=a,d=Ds(Cu,c),f=$u(Cu,c),h=Os(c),x=S.useRef(null),p=Ie(r,x,d.onTriggerChange),g=S.useRef(!1),y=S.useRef(!1),v=S.useCallback(()=>g.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),u.jsx(E3,{asChild:!0,...h,children:u.jsx(Ue.button,{"aria-describedby":d.open?d.contentId:void 0,"data-state":d.stateAttribute,...s,ref:p,onPointerMove:He(a.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!f.isPointerInTransitRef.current&&(d.onTriggerEnter(),y.current=!0)}),onPointerLeave:He(a.onPointerLeave,()=>{d.onTriggerLeave(),y.current=!1}),onPointerDown:He(a.onPointerDown,()=>{d.open&&d.onClose(),g.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:He(a.onFocus,()=>{g.current||d.onOpen()}),onBlur:He(a.onBlur,d.onClose),onClick:He(a.onClick,d.onClose)})})});p0.displayName=Cu;var L3="TooltipPortal",[R4,B3]=_s(L3,{forceMount:void 0}),Sa="TooltipContent",g0=S.forwardRef((a,r)=>{const c=B3(Sa,a.__scopeTooltip),{forceMount:s=c.forceMount,side:d="top",...f}=a,h=Ds(Sa,a.__scopeTooltip);return u.jsx(Ss,{present:s||h.open,children:h.disableHoverableContent?u.jsx(x0,{side:d,...f,ref:r}):u.jsx(H3,{side:d,...f,ref:r})})}),H3=S.forwardRef((a,r)=>{const c=Ds(Sa,a.__scopeTooltip),s=$u(Sa,a.__scopeTooltip),d=S.useRef(null),f=Ie(r,d),[h,x]=S.useState(null),{trigger:p,onClose:g}=c,y=d.current,{onPointerInTransitChange:v}=s,w=S.useCallback(()=>{x(null),v(!1)},[v]),j=S.useCallback((A,E)=>{const N=A.currentTarget,z={x:A.clientX,y:A.clientY},H=G3(z,N.getBoundingClientRect()),O=Y3(z,H),V=X3(E.getBoundingClientRect()),$=Q3([...O,...V]);x($),v(!0)},[v]);return S.useEffect(()=>()=>w(),[w]),S.useEffect(()=>{if(p&&y){const A=N=>j(N,y),E=N=>j(N,p);return p.addEventListener("pointerleave",A),y.addEventListener("pointerleave",E),()=>{p.removeEventListener("pointerleave",A),y.removeEventListener("pointerleave",E)}}},[p,y,j,w]),S.useEffect(()=>{if(h){const A=E=>{const N=E.target,z={x:E.clientX,y:E.clientY},H=(p==null?void 0:p.contains(N))||(y==null?void 0:y.contains(N)),O=!Z3(z,h);H?w():O&&(w(),g())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[p,y,h,g,w]),u.jsx(x0,{...a,ref:f})}),[U3,V3]=_s(Ri,{isInside:!1}),q3=F1("TooltipContent"),x0=S.forwardRef((a,r)=>{const{__scopeTooltip:c,children:s,"aria-label":d,onEscapeKeyDown:f,onPointerDownOutside:h,...x}=a,p=Ds(Sa,c),g=Os(c),{onClose:y}=p;return S.useEffect(()=>(document.addEventListener(ju,y),()=>document.removeEventListener(ju,y)),[y]),S.useEffect(()=>{if(p.trigger){const v=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[p.trigger,y]),u.jsx(qg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:v=>v.preventDefault(),onDismiss:y,children:u.jsxs(T3,{"data-state":p.stateAttribute,...g,...x,ref:r,style:{...x.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(q3,{children:s}),u.jsx(U3,{scope:c,isInside:!0,children:u.jsx(_3,{id:p.contentId,role:"tooltip",children:d||s})})]})})});g0.displayName=Sa;var v0="TooltipArrow",y0=S.forwardRef((a,r)=>{const{__scopeTooltip:c,...s}=a,d=Os(c);return V3(v0,c).isInside?null:u.jsx(M3,{...d,...s,ref:r})});y0.displayName=v0;function G3(a,r){const c=Math.abs(r.top-a.y),s=Math.abs(r.bottom-a.y),d=Math.abs(r.right-a.x),f=Math.abs(r.left-a.x);switch(Math.min(c,s,d,f)){case f:return"left";case d:return"right";case c:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Y3(a,r,c=5){const s=[];switch(r){case"top":s.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":s.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":s.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":s.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c});break}return s}function X3(a){const{top:r,right:c,bottom:s,left:d}=a;return[{x:d,y:r},{x:c,y:r},{x:c,y:s},{x:d,y:s}]}function Z3(a,r){const{x:c,y:s}=a;let d=!1;for(let f=0,h=r.length-1;f<r.length;h=f++){const x=r[f],p=r[h],g=x.x,y=x.y,v=p.x,w=p.y;y>s!=w>s&&c<(v-g)*(s-y)/(w-y)+g&&(d=!d)}return d}function Q3(a){const r=a.slice();return r.sort((c,s)=>c.x<s.x?-1:c.x>s.x?1:c.y<s.y?-1:c.y>s.y?1:0),K3(r)}function K3(a){if(a.length<=1)return a.slice();const r=[];for(let s=0;s<a.length;s++){const d=a[s];for(;r.length>=2;){const f=r[r.length-1],h=r[r.length-2];if((f.x-h.x)*(d.y-h.y)>=(f.y-h.y)*(d.x-h.x))r.pop();else break}r.push(d)}r.pop();const c=[];for(let s=a.length-1;s>=0;s--){const d=a[s];for(;c.length>=2;){const f=c[c.length-1],h=c[c.length-2];if((f.x-h.x)*(d.y-h.y)>=(f.y-h.y)*(d.x-h.x))c.pop();else break}c.push(d)}return c.pop(),r.length===1&&c.length===1&&r[0].x===c[0].x&&r[0].y===c[0].y?r:r.concat(c)}var $3=m0,J3=h0,F3=p0,b0=g0,W3=y0;const I3={none:{side:"top",align:"center"},top:{side:"top",align:"center"},topstart:{side:"top",align:"start"},topcenter:{side:"top",align:"center"},topend:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomstart:{side:"bottom",align:"start"},bottomcenter:{side:"bottom",align:"center"},bottomend:{side:"bottom",align:"end"},left:{side:"left",align:"center"},leftstart:{side:"left",align:"start"},leftcenter:{side:"left",align:"center"},leftend:{side:"left",align:"end"},right:{side:"right",align:"center"},rightstart:{side:"right",align:"start"},rightcenter:{side:"right",align:"center"},rightend:{side:"right",align:"end"}},w0=S.forwardRef(({className:a,sideOffset:r=4,...c},s)=>u.jsx(b0,{ref:s,sideOffset:r,className:W("z-50 overflow-hidden rounded-md border bg-black px-3 py-1.5 text-sm text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]",a),...c,children:c.children}));w0.displayName=b0.displayName;const ki=({children:a,content:r,description:c,className:s,contentClassName:d,descriptionClassName:f,sideOffset:h=4,position:x="none",dir:p="rtl"})=>{const g=p==="ltr",y=I3[x]||{side:"top",align:g?"start":"end"},v=x!=="none";return u.jsx($3,{children:u.jsxs(J3,{delayDuration:50,children:[u.jsx(F3,{asChild:!0,children:a}),u.jsxs(w0,{className:W(s),sideOffset:h,side:y.side,align:y.align,dir:p,children:[u.jsxs("div",{className:"flex flex-col",dir:p,children:[u.jsx("span",{className:W("text-base font-medium",d),children:r}),c&&u.jsx("span",{className:W("text-xs opacity-70 mt-1",g?"text-start":"text-end",f),children:c})]}),v&&u.jsx(W3,{className:"fill-black",width:16,height:6})]})]})})},P3=({stroke:a="",fill:r="none",width:c="12",height:s="12"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 12 12",fill:r,children:u.jsx("path",{d:"M6 2.5V9.5M2.5 6H9.5",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Bp=S.memo(P3),e6=({imgList:a,size:r,showAmount:c=5,showAddBtn:s=!1,tooltip:d,addBtnAction:f})=>{const h=a.slice(0,c),x=a.length-c;return u.jsxs("div",{className:"flex -space-x-1 w-full",children:[h.map((p,g)=>u.jsx("img",{alt:"",className:W("inline-block rounded-full ring-2 ring-white",ya[r]),style:{zIndex:g},...p},g)),x>0&&u.jsx("div",{className:W("inline-flex items-center justify-center rounded-full bg-gray-100 border-2 border-white font-medium text-gray-700 shadow-2xs align-middle hover:bg-gray-200 focus:outline-hidden focus:bg-gray-300 text-sm dark:bg-neutral-700 dark:text-white dark:hover:bg-neutral-600 dark:focus:bg-neutral-600 dark:border-neutral-800",ya[r]),style:{zIndex:c},children:u.jsxs("span",{className:"font-medium text-xs",children:["+",x]})}),s&&d?u.jsx(ki,{...d,children:u.jsx("button",{className:W("mx-2 p-1 flex justify-center items-center cursor-pointer stroke-rfg-quinary-400 rounded-full bg-rbg-primary border border-dashed border-rborder-primary hover:bg-rbg-primary-hover disabled:bg-rbg-disabled-subtle disabled:cur",ya[r]),onClick:f,children:u.jsx(Bp,{})})}):u.jsx("button",{className:W("mx-2 p-1 flex justify-center items-center cursor-pointer stroke-rfg-quinary-400 rounded-full bg-rbg-primary border border-dashed border-rborder-primary hover:bg-rbg-primary-hover disabled:bg-rbg-disabled-subtle disabled:cur",ya[r]),onClick:f,children:u.jsx(Bp,{})})]})},Hp=({img:a,size:r,notifyColor:c="",notifyIcon:s="",iconBorder:d})=>u.jsxs("div",{className:W("relative inline-block",ya[r]),children:[u.jsx("img",{alt:"",...a,className:W("rounded-full object-cover ring-2 ring-white",ya[r])}),c&&u.jsx("span",{className:W(`absolute bottom-0 right-1 block rounded-full ${c} ring-2 ring-white`,Wb[r])}),s&&u.jsx("span",{className:W("absolute bottom-0 right-1 block rounded-full",Sp[r],`has-[>svg]:${Sp[r]} ${d&&"ring-2 ring-white"}`),children:s})]}),Rl=({type:a,size:r="md",imgList:c=[],img:s={},showAmount:d=1,showAddBtn:f=!1,notifyColor:h="",notifyIcon:x="",title:p="",description:g="",iconBorder:y=!0,tooltip:v,addBtnAction:w=()=>{}})=>u.jsxs(u.Fragment,{children:[a=="single"&&u.jsx(Hp,{img:s,size:r,notifyColor:h,notifyIcon:x,iconBorder:y}),a=="group"&&u.jsx(e6,{imgList:c,size:r,showAmount:d,showAddBtn:f,tooltip:v,addBtnAction:w}),a=="labled"&&u.jsxs("div",{className:W("inline-flex items-center",Ib[r]),children:[u.jsx(Hp,{img:s,size:r,notifyColor:h,notifyIcon:x,iconBorder:y}),u.jsx(Pb,{size:r,title:p,description:g})]})]}),t6=({stroke:a="",fill:r="none",width:c="12",className:s="",height:d="12"})=>u.jsx("svg",{"data-testid":"icon-x-close",xmlns:"http://www.w3.org/2000/svg",width:c,role:"x-icon",height:d,className:s,viewBox:"0 0 12 12",fill:r,children:u.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ju=S.memo(t6),Up=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,Vp=Es,Lt=(a,r)=>c=>{var s;if((r==null?void 0:r.variants)==null)return Vp(a,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:d,defaultVariants:f}=r,h=Object.keys(d).map(g=>{const y=c==null?void 0:c[g],v=f==null?void 0:f[g];if(y===null)return null;const w=Up(y)||Up(v);return d[g][w]}),x=c&&Object.entries(c).reduce((g,y)=>{let[v,w]=y;return w===void 0||(g[v]=w),g},{}),p=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,y)=>{let{class:v,className:w,...j}=y;return Object.entries(j).every(A=>{let[E,N]=A;return Array.isArray(N)?N.includes({...f,...x}[E]):{...f,...x}[E]===N})?[...g,v,w]:g},[]);return Vp(a,h,p,c==null?void 0:c.class,c==null?void 0:c.className)},n6="flex items-center font-medium",l6={gray:"bg-utility-gray-50 text-utility-gray-700 border-utility-gray-200 has-[>svg]:stroke-utility-gray-light-400",brand:"bg-utility-brand-50 text-utility-brand-700 border-utility-brand-200 has-[>svg]:stroke-utility-brand-400",error:"bg-utility-error-50 text-utility-error-700 border-utility-error-200 has-[>svg]:stroke-utility-error-400",success:"bg-utility-success-50 text-utility-success-700 border-utility-success-200 has-[>svg]:stroke-utility-success-400",grayBlue:"bg-utility-gray-blue-50 text-utility-gray-blue-700 border-utility-gray-blue-200 has-[>svg]:stroke-utility-gray-blue-400",blueLight:"bg-utility-blue-light-50 text-utility-blue-light-700 border-utility-blue-light-200 has-[>svg]:stroke-utility-blue-light-400",blue:"bg-utility-blue-50 text-utility-blue-700 border-utility-blue-200 has-[>svg]:stroke-utility-blue-400",indigo:"bg-utility-indigo-50 text-utility-indigo-700 border-utility-indigo-200 has-[>svg]:stroke-utility-indigo-400",purple:"bg-utility-purple-50 text-utility-purple-700 border-utility-purple-200 has-[>svg]:stroke-utility-purple-400",pink:"bg-utility-pink-50 text-utility-pink-700 border-utility-pink-200 has-[>svg]:stroke-utility-pink-400",orange:"bg-utility-orange-50 text-utility-orange-700 border-utility-orange-200 has-[>svg]:stroke-utility-orange-400 fill-red-500"},a6={sm:"px-2 py-0.5 gap-1 has-[>svg]:text-sm text-xs",md:"px-2.5 py-0.5 gap-1.5 has-[>svg]:text-md text-sm",lg:"px-3 py-1 gap-2 has-[>svg]:text-lg text-sm"},i6={pillColor:"rounded-full border",pillOutline:"rounded-full border-[1.5px]",badgeColor:"rounded-sm border",badgeModern:"rounded-md shadow-sm border has-[>svg]:stroke-current"},r6=Lt(n6,{variants:{size:a6,type:i6,dir:{ltr:"flex-row",rtl:"flex-row-reverse"},color:l6},defaultVariants:{size:"sm",type:"pillColor",dir:"ltr",color:"blue"}});function Ti({className:a,size:r="sm",type:c="pillColor",color:s="blue",dir:d="rtl",icon:f,closable:h=!1,onClose:x,children:p,...g}){return u.jsxs("div",{className:W("w-fit",r6({size:r,type:c,dir:d,color:s}),c==="badgeModern"&&"bg-transparent border-primary text-secondary",a),...g,children:[f,p,h&&u.jsx("button",{onClick:x,className:"ml-1",children:u.jsx(Ju,{className:"w-3 h-3 stroke-current"})})]})}const s6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M10 12L6 8L10 4",stroke:"#D0D5DD",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),o6=S.memo(s6),c6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",children:u.jsx("path",{d:"M1 9L5 5L1 1",stroke:"#D0D5DD",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),qp=S.memo(c6),u6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M6.66667 14.1667H13.3333M9.18141 2.30333L3.52949 6.69927C3.15168 6.99312 2.96278 7.14005 2.82669 7.32405C2.70614 7.48704 2.61633 7.67065 2.56169 7.86588C2.5 8.08627 2.5 8.32558 2.5 8.80421V14.8333C2.5 15.7667 2.5 16.2335 2.68166 16.59C2.84144 16.9036 3.09641 17.1585 3.41002 17.3183C3.76654 17.5 4.23325 17.5 5.16667 17.5H14.8333C15.7668 17.5 16.2335 17.5 16.59 17.3183C16.9036 17.1585 17.1586 16.9036 17.3183 16.59C17.5 16.2335 17.5 15.7667 17.5 14.8333V8.80421C17.5 8.32558 17.5 8.08627 17.4383 7.86588C17.3837 7.67065 17.2939 7.48704 17.1733 7.32405C17.0372 7.14005 16.8483 6.99312 16.4705 6.69927L10.8186 2.30333C10.5258 2.07562 10.3794 1.96177 10.2178 1.918C10.0752 1.87938 9.92484 1.87938 9.78221 1.918C9.62057 1.96177 9.47418 2.07562 9.18141 2.30333Z",stroke:"#667085",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),d6=S.memo(u6),f6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M6.66667 14.1667H13.3333M9.18141 2.30333L3.52949 6.69927C3.15168 6.99312 2.96278 7.14005 2.82669 7.32405C2.70614 7.48704 2.61633 7.67065 2.56169 7.86588C2.5 8.08627 2.5 8.32558 2.5 8.80421V14.8333C2.5 15.7667 2.5 16.2335 2.68166 16.59C2.84144 16.9036 3.09641 17.1585 3.41002 17.3183C3.76654 17.5 4.23325 17.5 5.16667 17.5H14.8333C15.7668 17.5 16.2335 17.5 16.59 17.3183C16.9036 17.1585 17.1586 16.9036 17.3183 16.59C17.5 16.2335 17.5 15.7667 17.5 14.8333V8.80421C17.5 8.32558 17.5 8.08627 17.4383 7.86588C17.3837 7.67065 17.2939 7.48704 17.1733 7.32405C17.0372 7.14005 16.8483 6.99312 16.4705 6.69927L10.8186 2.30333C10.5258 2.07562 10.3794 1.96177 10.2178 1.918C10.0752 1.87938 9.92484 1.87938 9.78221 1.918C9.62057 1.96177 9.47418 2.07562 9.18141 2.30333Z",stroke:"#0050FF",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),m6=S.memo(f6),h6=({breadCrumbLink:a,type:r="chevron",dir:c,navClassName:s,listClassName:d,listItemClassName:f="",linkClassName:h,separatorClassName:x})=>{var E;const[p,g]=S.useState("");S.useEffect(()=>{typeof window<"u"&&g(window.location.pathname)},[]);const y=c??(((E=document==null?void 0:document.body)==null?void 0:E.getAttribute("dir"))==="rtl"?"rtl":"ltr"),v=()=>{switch(r){case"chevron":return y==="rtl"?u.jsx(o6,{}):u.jsx(qp,{});case"slash":return u.jsx(m6,{});default:return u.jsx(qp,{})}},w=[{title:u.jsx(d6,{}),link:"/"},...a],j=w.findIndex(N=>N.link===p),A=j>=0?w.slice(0,j+1):w;return u.jsx("nav",{className:`w-full overflow-x-auto scrollbar-thin scrollbar-thumb-gray-400 ${s??""}`,dir:y,children:u.jsxs("ol",{className:`flex flex-nowrap items-center gap-x-1 lg:gap-x-2 w-max py-2 rounded-md ${d??""}`,children:[" ",A.map((N,z)=>{const H=N.link??"",O=z!==A.length-1,V=p===H;return u.jsxs("li",{className:W("flex items-center text-sm font-normal leading-normal transition-colors duration-300 ",f),children:[N.link?u.jsx("a",{href:H,className:`${h??"cursor-pointer transition-colors duration-300"} ${V?"text-rtext-brand-tertiary-600":"text-rtext-placeholder"}`,children:N.title}):u.jsx("span",{className:"text-gray-500",children:N.title}),O&&u.jsx("span",{className:`${x??"ms-2"}`,children:v()})]},`${H}-${z}`)})]})})},p6="inline-flex items-center justify-center font-medium focus:outline-none transition-all w-fit rounded-md border transition-all duration-300 cursor-pointer relative",g6={primary:"border-gradient-border bg-rbutton-primary-bg hover:bg-rbutton-primary-bg-hover focus:bg-rbutton-primary-bg shadow-xs-skeuomorphic focus:shadow-focus-ring-shadow-xs-skeuomorphic text-rbutton-primary-fg has-[>svg]:text-rbutton-primary-fg disabled:bg-rbg-disabled disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled has-[>svg]:disabled:text-rfg-disabled disabled:shadow-xs",secondaryGray:"text-rbutton-secondary-fg has-[>svg]:stroke-rbutton-secondary-fg border-gradient-border bg-rbutton-secondary-bg hover:bg-rbutton-secondary-bg-hover shadow-xs-skeuomorphic disabled:bg-rbg-primary disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled has-[>svg]:disabled:text-rfg-disabled disabled:shadow-xs",secondaryColor:"text-rbutton-secondary-color-fg bg-rbutton-secondary-color-bg border-rbutton-secondary-color-border hover:text-rbutton-secondary-color-fg-hover hover:bg-rbutton-secondary-color-bg-hover border-rbutton-secondary-color-border-hover disabled:bg-rbg-primary disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled disabled:shadow-xs",tertiaryGray:"border-0 text-rbutton-tertiary-fg hover:text-rbutton-tertiary-fg-hover hover:bg-rbutton-tertiary-bg-hover disabled:text-rfg-disabled",tertiaryColor:"border-0 text-rbutton-tertiary-color-fg hover:text-rbutton-tertiary-color-fg-hover hover:bg-rbutton-tertiary-color-bg-hover disabled:text-rfg-disabled",linkGray:"border-0 text-rbutton-tertiary-fg hover:text-rbutton-tertiary-fg-hover disabled:text-rfg-disabled !p-0",linkColor:"border-0 text-rbutton-tertiary-color-fg hover:text-rbutton-tertiary-color-fg-hover disabled:text-rfg-disabled !p-0"},x6={sm:"text-sm px-3 py-2 gap-1",md:"text-base px-3.5 py-2.5 gap-1",lg:"text-lg px-4 py-2.5 gap-1.5",xl:"text-lg px-4.5 py-3 gap-1.5","2xl":"rounded-lg text-lg px-5.5 py-4 gap-2"},v6=Lt(p6,{variants:{loading:{true:"pointer-events-none"},size:x6,fullWidth:{true:"w-full"},disabled:{true:"pointer-events-none"},dir:{rtl:"flex-row",ltr:"flex-row-reverse"},variant:g6},defaultVariants:{variant:"primary",size:"md"}}),y6=({size:a="sm"})=>{const r={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-7 w-7"};return u.jsx("div",{"aria-label":"loading",className:Es("border-2 border-t-transparent rounded-full animate-spin",r[a])})},on=({variant:a="primary",size:r="md",fullWidth:c,disabled:s=!1,loading:d=!1,leftIcon:f,rightIcon:h,children:x,className:p,onClick:g,asChild:y=!1,...v})=>{const w=y?$1:"button";return u.jsxs(w,{className:v6({variant:a,size:r,fullWidth:c,disabled:s,className:p,loading:d}),disabled:s,onClick:d?()=>{}:g,...v,children:[d&&u.jsx("div",{className:"absolute inset-0 flex justify-center items-center",children:u.jsx(y6,{size:r??"md"})}),u.jsxs("span",{className:Es({invisible:d},"flex items-center gap-2"),children:[f,x,h]})]})},b6=({stroke:a="white",fill:r="none",width:c="10",className:s="",height:d="10"})=>u.jsx(u.Fragment,{children:u.jsx("svg",{width:c,"data-testid":"minus-icon",height:d,className:s,fill:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",children:u.jsx("path",{d:"M2.5 6H9.5",stroke:a,strokeWidth:"1.666",strokeLinecap:"round",strokeLinejoin:"round"})})}),Gp=S.memo(b6),w6=({stroke:a="#fff",fill:r="none",width:c="10",height:s="10"})=>u.jsx("svg",{width:c,height:s,"data-testid":"tickbox-icon",viewBox:"0 0 10 10",className:"border-white",fill:r,xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.33341 2.5L3.75008 7.08333L1.66675 5",stroke:a,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Yp=S.memo(w6),S6="border-rborder-primary rounded-xs border-[1px] peer-checked:border-rbg-brand-solid peer-checked:bg-rbg-brand-solid flex items-center justify-center",j6={sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-4.5 h-4.5"},C6=Lt(S6,{variants:{size:j6,disabled:{true:" bg-rbg-disabled-subtle cursor-auto",false:" group cursor-pointer",undefined:"group cursor-pointer"}},defaultVariants:{size:"sm"}}),A6={sm:"p-1",md:"p-[5px]",lg:"p-1.5"},Li=({size:a="sm",children:r,id:c,disabled:s=!1,checkboxIndex:d=1,isIndeterminate:f=!1,checked:h,onChange:x,onClick:p,defaultChecked:g,name:y,label:v,...w})=>{const j=S.useRef(null);S.useEffect(()=>{j.current&&(j.current.indeterminate=f)},[f]);function A(){j.current&&!s&&(j.current.click(),j.current.focus())}const E=s?"#D0D5DD":"white";let N=null;return s?h&&(N=f?u.jsx(Gp,{stroke:E}):u.jsx(Yp,{stroke:E})):N=f?u.jsx(Gp,{stroke:E}):u.jsx(Yp,{stroke:E}),u.jsxs("div",{className:"flex items-center cursor-pointer gap-2 justify-start",children:[u.jsx("input",{type:"checkbox","data-testid":"checkbox",id:c,ref:j,onChange:z=>!s&&x&&x(z),onClick:p,disabled:s,checked:h,defaultChecked:g,className:"peer hidden",...w}),u.jsx("label",{htmlFor:c??y,tabIndex:d,className:W(C6({size:a,disabled:s}),`${s&&"!bg-rbg-disabled !border-rborder-primary"} `),children:u.jsx("div",{className:`${A6[a]} ${!s&&"group-focus-within:border-2 border-rbg-brand-solid "} flex items-center justify-center rounded-md`,children:N})}),(r??v)&&u.jsx("div",{className:"leading-none",onClick:()=>A(),children:r??v})]})},S0="rounded-full border-[1px] flex items-center justify-center peer-checked:border-[5px]",N6={sm:"w-4 h-4",md:"w-5 h-5 !peer-checked:border-[6px]"},E6={sm:"text-xs",md:"text-sm"},T6={sm:"p-2.5",md:"p-3"},M6=Lt(S0,{variants:{size:N6,disabled:{true:" cursor-auto bg-rbg-disabled-subtle !border-rfg-disabled-subtle !border-[1px] ",false:"group cursor-pointer border-rbg-brand-solid",undefined:"group cursor-pointer border-rbg-brand-solid"}},defaultVariants:{size:"sm"}}),ja=({name:a,value:r,checked:c,onChange:s,size:d="sm",disabled:f,className:h,children:x,id:p,...g})=>u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsxs("label",{htmlFor:p,className:"inline-flex w-fit items-center cursor-pointer relative",children:[u.jsx("input",{type:"radio",name:a,value:r,checked:c,onChange:s,className:"sr-only peer",disabled:f,id:p,...g}),u.jsx("div",{className:W(M6({size:d,disabled:f}),S0)}),u.jsx("div",{className:`peer-focus:border-2 peer-focus-within:border-1 border-brand-500 rounded-full absolute top-1/2 left-1/2 -translate-1/2 ${T6[d]} ${c&&f&&`${d==="sm"?"!border-4":"!border-5"} !border-rfg-disabled-subtle !p-0 `} `})]}),x&&u.jsx("label",{htmlFor:p,className:`cursor-pointer ${E6[d]} ${h}`,children:x})]}),z6={sm:"text-sm",md:"text-md"},R6=`
|
|
169
|
+
*/const db=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],fb=Pe("x",db);function Mg(a){var r,c,s="";if(typeof a=="string"||typeof a=="number")s+=a;else if(typeof a=="object")if(Array.isArray(a)){var d=a.length;for(r=0;r<d;r++)a[r]&&(c=Mg(a[r]))&&(s&&(s+=" "),s+=c)}else for(c in a)a[c]&&(s&&(s+=" "),s+=c);return s}function Es(){for(var a,r,c=0,s="",d=arguments.length;c<d;c++)(a=arguments[c])&&(r=Mg(a))&&(s&&(s+=" "),s+=r);return s}const Hu="-",mb=a=>{const r=pb(a),{conflictingClassGroups:c,conflictingClassGroupModifiers:s}=a;return{getClassGroupId:h=>{const x=h.split(Hu);return x[0]===""&&x.length!==1&&x.shift(),zg(x,r)||hb(h)},getConflictingClassGroupIds:(h,x)=>{const p=c[h]||[];return x&&s[h]?[...p,...s[h]]:p}}},zg=(a,r)=>{var h;if(a.length===0)return r.classGroupId;const c=a[0],s=r.nextPart.get(c),d=s?zg(a.slice(1),s):void 0;if(d)return d;if(r.validators.length===0)return;const f=a.join(Hu);return(h=r.validators.find(({validator:x})=>x(f)))==null?void 0:h.classGroupId},vp=/^\[(.+)\]$/,hb=a=>{if(vp.test(a)){const r=vp.exec(a)[1],c=r==null?void 0:r.substring(0,r.indexOf(":"));if(c)return"arbitrary.."+c}},pb=a=>{const{theme:r,classGroups:c}=a,s={nextPart:new Map,validators:[]};for(const d in c)gu(c[d],s,d,r);return s},gu=(a,r,c,s)=>{a.forEach(d=>{if(typeof d=="string"){const f=d===""?r:yp(r,d);f.classGroupId=c;return}if(typeof d=="function"){if(gb(d)){gu(d(s),r,c,s);return}r.validators.push({validator:d,classGroupId:c});return}Object.entries(d).forEach(([f,h])=>{gu(h,yp(r,f),c,s)})})},yp=(a,r)=>{let c=a;return r.split(Hu).forEach(s=>{c.nextPart.has(s)||c.nextPart.set(s,{nextPart:new Map,validators:[]}),c=c.nextPart.get(s)}),c},gb=a=>a.isThemeGetter,xb=a=>{if(a<1)return{get:()=>{},set:()=>{}};let r=0,c=new Map,s=new Map;const d=(f,h)=>{c.set(f,h),r++,r>a&&(r=0,s=c,c=new Map)};return{get(f){let h=c.get(f);if(h!==void 0)return h;if((h=s.get(f))!==void 0)return d(f,h),h},set(f,h){c.has(f)?c.set(f,h):d(f,h)}}},xu="!",vu=":",vb=vu.length,yb=a=>{const{prefix:r,experimentalParseClassName:c}=a;let s=d=>{const f=[];let h=0,x=0,p=0,g;for(let A=0;A<d.length;A++){let E=d[A];if(h===0&&x===0){if(E===vu){f.push(d.slice(p,A)),p=A+vb;continue}if(E==="/"){g=A;continue}}E==="["?h++:E==="]"?h--:E==="("?x++:E===")"&&x--}const y=f.length===0?d:d.substring(p),v=bb(y),w=v!==y,j=g&&g>p?g-p:void 0;return{modifiers:f,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:j}};if(r){const d=r+vu,f=s;s=h=>h.startsWith(d)?f(h.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(c){const d=s;s=f=>c({className:f,parseClassName:d})}return s},bb=a=>a.endsWith(xu)?a.substring(0,a.length-1):a.startsWith(xu)?a.substring(1):a,wb=a=>{const r=Object.fromEntries(a.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const d=[];let f=[];return s.forEach(h=>{h[0]==="["||r[h]?(d.push(...f.sort(),h),f=[]):f.push(h)}),d.push(...f.sort()),d}},Sb=a=>({cache:xb(a.cacheSize),parseClassName:yb(a),sortModifiers:wb(a),...mb(a)}),jb=/\s+/,Cb=(a,r)=>{const{parseClassName:c,getClassGroupId:s,getConflictingClassGroupIds:d,sortModifiers:f}=r,h=[],x=a.trim().split(jb);let p="";for(let g=x.length-1;g>=0;g-=1){const y=x[g],{isExternal:v,modifiers:w,hasImportantModifier:j,baseClassName:A,maybePostfixModifierPosition:E}=c(y);if(v){p=y+(p.length>0?" "+p:p);continue}let N=!!E,R=s(N?A.substring(0,E):A);if(!R){if(!N){p=y+(p.length>0?" "+p:p);continue}if(R=s(A),!R){p=y+(p.length>0?" "+p:p);continue}N=!1}const H=f(w).join(":"),O=j?H+xu:H,V=O+R;if(h.includes(V))continue;h.push(V);const $=d(R,N);for(let J=0;J<$.length;++J){const Q=$[J];h.push(O+Q)}p=y+(p.length>0?" "+p:p)}return p};function Ab(){let a=0,r,c,s="";for(;a<arguments.length;)(r=arguments[a++])&&(c=Rg(r))&&(s&&(s+=" "),s+=c);return s}const Rg=a=>{if(typeof a=="string")return a;let r,c="";for(let s=0;s<a.length;s++)a[s]&&(r=Rg(a[s]))&&(c&&(c+=" "),c+=r);return c};function Nb(a,...r){let c,s,d,f=h;function h(p){const g=r.reduce((y,v)=>v(y),a());return c=Sb(g),s=c.cache.get,d=c.cache.set,f=x,x(p)}function x(p){const g=s(p);if(g)return g;const y=Cb(p,c);return d(p,y),y}return function(){return f(Ab.apply(null,arguments))}}const tt=a=>{const r=c=>c[a]||[];return r.isThemeGetter=!0,r},_g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Og=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Eb=/^\d+\/\d+$/,Tb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mb=/\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$/,zb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Rb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_b=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,va=a=>Eb.test(a),we=a=>!!a&&!Number.isNaN(Number(a)),sl=a=>!!a&&Number.isInteger(Number(a)),su=a=>a.endsWith("%")&&we(a.slice(0,-1)),zn=a=>Tb.test(a),Ob=()=>!0,Db=a=>Mb.test(a)&&!zb.test(a),Dg=()=>!1,kb=a=>Rb.test(a),Lb=a=>_b.test(a),Bb=a=>!ae(a)&&!ie(a),Hb=a=>Ca(a,Bg,Dg),ae=a=>_g.test(a),zl=a=>Ca(a,Hg,Db),ou=a=>Ca(a,Yb,we),bp=a=>Ca(a,kg,Dg),Ub=a=>Ca(a,Lg,Lb),ls=a=>Ca(a,Ug,kb),ie=a=>Og.test(a),Ni=a=>Aa(a,Hg),Vb=a=>Aa(a,Xb),wp=a=>Aa(a,kg),qb=a=>Aa(a,Bg),Gb=a=>Aa(a,Lg),as=a=>Aa(a,Ug,!0),Ca=(a,r,c)=>{const s=_g.exec(a);return s?s[1]?r(s[1]):c(s[2]):!1},Aa=(a,r,c=!1)=>{const s=Og.exec(a);return s?s[1]?r(s[1]):c:!1},kg=a=>a==="position"||a==="percentage",Lg=a=>a==="image"||a==="url",Bg=a=>a==="length"||a==="size"||a==="bg-size",Hg=a=>a==="length",Yb=a=>a==="number",Xb=a=>a==="family-name",Ug=a=>a==="shadow",Zb=()=>{const a=tt("color"),r=tt("font"),c=tt("text"),s=tt("font-weight"),d=tt("tracking"),f=tt("leading"),h=tt("breakpoint"),x=tt("container"),p=tt("spacing"),g=tt("radius"),y=tt("shadow"),v=tt("inset-shadow"),w=tt("text-shadow"),j=tt("drop-shadow"),A=tt("blur"),E=tt("perspective"),N=tt("aspect"),R=tt("ease"),H=tt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...V(),ie,ae],J=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],q=()=>[ie,ae,p],te=()=>[va,"full","auto",...q()],ee=()=>[sl,"none","subgrid",ie,ae],le=()=>["auto",{span:["full",sl,ie,ae]},sl,ie,ae],re=()=>[sl,"auto",ie,ae],he=()=>["auto","min","max","fr",ie,ae],fe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...q()],G=()=>[va,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],B=()=>[a,ie,ae],oe=()=>[...V(),wp,bp,{position:[ie,ae]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],T=()=>["auto","cover","contain",qb,Hb,{size:[ie,ae]}],X=()=>[su,Ni,zl],F=()=>["","none","full",g,ie,ae],I=()=>["",we,Ni,zl],ue=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>[we,su,wp,bp],Ne=()=>["","none",A,ie,ae],be=()=>["none",we,ie,ae],Ye=()=>["none",we,ie,ae],wt=()=>[we,ie,ae],St=()=>[va,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zn],breakpoint:[zn],color:[Ob],container:[zn],"drop-shadow":[zn],ease:["in","out","in-out"],font:[Bb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zn],shadow:[zn],spacing:["px",we],text:[zn],"text-shadow":[zn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",va,ae,ie,N]}],container:["container"],columns:[{columns:[we,ae,ie,x]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:$()}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[sl,"auto",ie,ae]}],basis:[{basis:[va,"full","auto",x,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,va,"auto","initial","none",ae]}],grow:[{grow:["",we,ie,ae]}],shrink:[{shrink:["",we,ie,ae]}],order:[{order:[sl,"first","last","none",ie,ae]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...fe(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...fe()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":fe()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[x,"screen",...G()]}],"min-w":[{"min-w":[x,"screen","none",...G()]}],"max-w":[{"max-w":[x,"screen","none","prose",{screen:[h]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",c,Ni,zl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,ie,ou]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",su,ae]}],"font-family":[{font:[Vb,ae,r]}],"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:[d,ie,ae]}],"line-clamp":[{"line-clamp":[we,"none",ie,ou]}],leading:[{leading:[f,...q()]}],"list-image":[{"list-image":["none",ie,ae]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ie,ae]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",ie,zl]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[we,"auto",ie,ae]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie,ae]}],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",ie,ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:T()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},sl,ie,ae],radial:["",ie,ae],conic:[sl,ie,ae]},Gb,Ub]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,ie,ae]}],"outline-w":[{outline:["",we,Ni,zl]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",y,as,ls]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",v,as,ls]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[we,zl]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",w,as,ls]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[we,ie,ae]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[ie,ae]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:T()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ie,ae]}],filter:[{filter:["","none",ie,ae]}],blur:[{blur:Ne()}],brightness:[{brightness:[we,ie,ae]}],contrast:[{contrast:[we,ie,ae]}],"drop-shadow":[{"drop-shadow":["","none",j,as,ls]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",we,ie,ae]}],"hue-rotate":[{"hue-rotate":[we,ie,ae]}],invert:[{invert:["",we,ie,ae]}],saturate:[{saturate:[we,ie,ae]}],sepia:[{sepia:["",we,ie,ae]}],"backdrop-filter":[{"backdrop-filter":["","none",ie,ae]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[we,ie,ae]}],"backdrop-contrast":[{"backdrop-contrast":[we,ie,ae]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,ie,ae]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,ie,ae]}],"backdrop-invert":[{"backdrop-invert":["",we,ie,ae]}],"backdrop-opacity":[{"backdrop-opacity":[we,ie,ae]}],"backdrop-saturate":[{"backdrop-saturate":[we,ie,ae]}],"backdrop-sepia":[{"backdrop-sepia":["",we,ie,ae]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ie,ae]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[we,"initial",ie,ae]}],ease:[{ease:["linear","initial",R,ie,ae]}],delay:[{delay:[we,ie,ae]}],animate:[{animate:["none",H,ie,ae]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ie,ae]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:wt()}],"skew-x":[{"skew-x":wt()}],"skew-y":[{"skew-y":wt()}],transform:[{transform:[ie,ae,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:St()}],"translate-x":[{"translate-x":St()}],"translate-y":[{"translate-y":St()}],"translate-z":[{"translate-z":St()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",ie,ae]}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",ie,ae]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[we,Ni,zl,ou]}],stroke:[{stroke:["none",...B()]}],"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"]}},Dt=Nb(Zb);function W(...a){return Dt(Es(a))}function Qb({type:a="single",collapsible:r=!1,className:c,children:s,...d}){const[f,h]=S.useState(a==="multiple"?[]:"");return a==="multiple"?u.jsx(mp,{type:"multiple",className:c,value:f,onValueChange:x=>h(x),"data-slot":"accordion",...d,children:Te.Children.map(s,x=>Te.isValidElement(x)?Te.cloneElement(x,{openValue:f}):x)}):u.jsx(mp,{type:"single",collapsible:r,className:c,value:f,onValueChange:x=>h(x),"data-slot":"accordion",...d,children:Te.Children.map(s,x=>Te.isValidElement(x)?Te.cloneElement(x,{...x.props??{},openValue:f}):x)})}function Kb({className:a,openValue:r,value:c,children:s,...d}){return u.jsx(Ey,{"data-slot":"accordion-item",className:W("border-b last:border-b-0",a),value:c,...d,children:Te.Children.map(s,f=>Te.isValidElement(f)?Te.cloneElement(f,{itemValue:c,openValue:r}):f)})}function $b({className:a,children:r,iconOpen:c=Tg,iconClosed:s=Eg,itemValue:d,openValue:f,...h}){const x=Array.isArray(f)&&d?f.includes(d):f===d;return u.jsx(Ty,{className:"flex w-full",children:u.jsxs(My,{"data-slot":"accordion-trigger",className:W("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",a,x?"rounded-t-md":"rounded-md"),...h,children:[r,x?u.jsx(c,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}):u.jsx(s,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function Jb({className:a,children:r,...c}){return u.jsx(zy,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...c,children:u.jsx("div",{className:W("pt-0 pb-4",a),children:r})})}function Fb({type:a="single",collapsible:r=!1,items:c,accordionClassName:s="w-full bg-white p-4",itemClassName:d="border-b last:border-b-0",questionClassName:f="text-lg font-medium",answerClassName:h="text-sm text-gray-600",iconClosed:x,iconOpen:p}){return u.jsx(Qb,{type:a,collapsible:r,className:`${s}`,children:c.map((g,y)=>u.jsxs(Kb,{value:`item-${y}`,className:d,children:[u.jsx($b,{className:f,iconClosed:x,iconOpen:p,children:g.question}),u.jsx(Jb,{className:h,children:g.answer})]},y))})}const ya={xs:"w-6 h-6",sm:"w-8 h-8 ",md:"w-10 h-10 ",lg:"w-12 h-12 ",xl:"w-14 h-14 ","2xl":"w-16 h-16 "},Wb={xs:"w-1.5 h-1.5",sm:"w-2 h-2 ",md:"w-2.5 h-2.5 ",lg:"w-3 h-3 ",xl:"w-3.5 h-3.5 ","2xl":"w-4 h-4 "},Sp={xs:"w-2.5 h-2.5",sm:"w-3 h-3",md:"w-3.5 h-3.5",lg:"w-4 h-4",xl:"w-4.5 h-4.5 ","2xl":"w-5 h-5 "},Ib={xs:"gap-2",sm:"gap-2.5",md:"gap-3",lg:"gap-3.5",xl:"gap-4","2xl":"gap-4.5"},jp={xs:"text-sm",sm:"text-sm",md:"text-sm",lg:"text-md",xl:"text-lg","2xl":"text-lg"},Pb=({title:a,description:r,size:c})=>u.jsxs("div",{className:"flex flex-col",children:[u.jsx("span",{className:W("text-rtext-secondary-700 font-semibold",jp[c]),children:a}),u.jsx("span",{className:W("font-normal text-rtext-tertiary-600",jp[c]),children:r})]});function Oi(a){const r=S.useRef(a);return S.useEffect(()=>{r.current=a}),S.useMemo(()=>(...c)=>{var s;return(s=r.current)==null?void 0:s.call(r,...c)},[])}function e2(a,r=globalThis==null?void 0:globalThis.document){const c=Oi(a);S.useEffect(()=>{const s=d=>{d.key==="Escape"&&c(d)};return r.addEventListener("keydown",s,{capture:!0}),()=>r.removeEventListener("keydown",s,{capture:!0})},[c,r])}var t2="DismissableLayer",yu="dismissableLayer.update",n2="dismissableLayer.pointerDownOutside",l2="dismissableLayer.focusOutside",Cp,Vg=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qg=S.forwardRef((a,r)=>{const{disableOutsidePointerEvents:c=!1,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:h,onDismiss:x,...p}=a,g=S.useContext(Vg),[y,v]=S.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=S.useState({}),A=Ie(r,Q=>v(Q)),E=Array.from(g.layers),[N]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),R=E.indexOf(N),H=y?E.indexOf(y):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,V=H>=R,$=r2(Q=>{const q=Q.target,te=[...g.branches].some(ee=>ee.contains(q));!V||te||(d==null||d(Q),h==null||h(Q),Q.defaultPrevented||x==null||x())},w),J=s2(Q=>{const q=Q.target;[...g.branches].some(ee=>ee.contains(q))||(f==null||f(Q),h==null||h(Q),Q.defaultPrevented||x==null||x())},w);return e2(Q=>{H===g.layers.size-1&&(s==null||s(Q),!Q.defaultPrevented&&x&&(Q.preventDefault(),x()))},w),S.useEffect(()=>{if(y)return c&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Cp=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Ap(),()=>{c&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Cp)}},[y,w,c,g]),S.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Ap())},[y,g]),S.useEffect(()=>{const Q=()=>j({});return document.addEventListener(yu,Q),()=>document.removeEventListener(yu,Q)},[]),u.jsx(Ue.div,{...p,ref:A,style:{pointerEvents:O?V?"auto":"none":void 0,...a.style},onFocusCapture:He(a.onFocusCapture,J.onFocusCapture),onBlurCapture:He(a.onBlurCapture,J.onBlurCapture),onPointerDownCapture:He(a.onPointerDownCapture,$.onPointerDownCapture)})});qg.displayName=t2;var a2="DismissableLayerBranch",i2=S.forwardRef((a,r)=>{const c=S.useContext(Vg),s=S.useRef(null),d=Ie(r,s);return S.useEffect(()=>{const f=s.current;if(f)return c.branches.add(f),()=>{c.branches.delete(f)}},[c.branches]),u.jsx(Ue.div,{...a,ref:d})});i2.displayName=a2;function r2(a,r=globalThis==null?void 0:globalThis.document){const c=Oi(a),s=S.useRef(!1),d=S.useRef(()=>{});return S.useEffect(()=>{const f=x=>{if(x.target&&!s.current){let p=function(){Gg(n2,c,g,{discrete:!0})};const g={originalEvent:x};x.pointerType==="touch"?(r.removeEventListener("click",d.current),d.current=p,r.addEventListener("click",d.current,{once:!0})):p()}else r.removeEventListener("click",d.current);s.current=!1},h=window.setTimeout(()=>{r.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(h),r.removeEventListener("pointerdown",f),r.removeEventListener("click",d.current)}},[r,c]),{onPointerDownCapture:()=>s.current=!0}}function s2(a,r=globalThis==null?void 0:globalThis.document){const c=Oi(a),s=S.useRef(!1);return S.useEffect(()=>{const d=f=>{f.target&&!s.current&&Gg(l2,c,{originalEvent:f},{discrete:!1})};return r.addEventListener("focusin",d),()=>r.removeEventListener("focusin",d)},[r,c]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ap(){const a=new CustomEvent(yu);document.dispatchEvent(a)}function Gg(a,r,c,{discrete:s}){const d=c.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});r&&d.addEventListener(a,r,{once:!0}),s?iy(d,f):d.dispatchEvent(f)}const o2=["top","right","bottom","left"],cl=Math.min,Ot=Math.max,ps=Math.round,is=Math.floor,sn=a=>({x:a,y:a}),c2={left:"right",right:"left",bottom:"top",top:"bottom"},u2={start:"end",end:"start"};function bu(a,r,c){return Ot(a,cl(r,c))}function Rn(a,r){return typeof a=="function"?a(r):a}function _n(a){return a.split("-")[0]}function Na(a){return a.split("-")[1]}function Uu(a){return a==="x"?"y":"x"}function Vu(a){return a==="y"?"height":"width"}const d2=new Set(["top","bottom"]);function rn(a){return d2.has(_n(a))?"y":"x"}function qu(a){return Uu(rn(a))}function f2(a,r,c){c===void 0&&(c=!1);const s=Na(a),d=qu(a),f=Vu(d);let h=d==="x"?s===(c?"end":"start")?"right":"left":s==="start"?"bottom":"top";return r.reference[f]>r.floating[f]&&(h=gs(h)),[h,gs(h)]}function m2(a){const r=gs(a);return[wu(a),r,wu(r)]}function wu(a){return a.replace(/start|end/g,r=>u2[r])}const Np=["left","right"],Ep=["right","left"],h2=["top","bottom"],p2=["bottom","top"];function g2(a,r,c){switch(a){case"top":case"bottom":return c?r?Ep:Np:r?Np:Ep;case"left":case"right":return r?h2:p2;default:return[]}}function x2(a,r,c,s){const d=Na(a);let f=g2(_n(a),c==="start",s);return d&&(f=f.map(h=>h+"-"+d),r&&(f=f.concat(f.map(wu)))),f}function gs(a){return a.replace(/left|right|bottom|top/g,r=>c2[r])}function v2(a){return{top:0,right:0,bottom:0,left:0,...a}}function Yg(a){return typeof a!="number"?v2(a):{top:a,right:a,bottom:a,left:a}}function xs(a){const{x:r,y:c,width:s,height:d}=a;return{width:s,height:d,top:c,left:r,right:r+s,bottom:c+d,x:r,y:c}}function Tp(a,r,c){let{reference:s,floating:d}=a;const f=rn(r),h=qu(r),x=Vu(h),p=_n(r),g=f==="y",y=s.x+s.width/2-d.width/2,v=s.y+s.height/2-d.height/2,w=s[x]/2-d[x]/2;let j;switch(p){case"top":j={x:y,y:s.y-d.height};break;case"bottom":j={x:y,y:s.y+s.height};break;case"right":j={x:s.x+s.width,y:v};break;case"left":j={x:s.x-d.width,y:v};break;default:j={x:s.x,y:s.y}}switch(Na(r)){case"start":j[h]-=w*(c&&g?-1:1);break;case"end":j[h]+=w*(c&&g?-1:1);break}return j}const y2=async(a,r,c)=>{const{placement:s="bottom",strategy:d="absolute",middleware:f=[],platform:h}=c,x=f.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(r));let g=await h.getElementRects({reference:a,floating:r,strategy:d}),{x:y,y:v}=Tp(g,s,p),w=s,j={},A=0;for(let E=0;E<x.length;E++){const{name:N,fn:R}=x[E],{x:H,y:O,data:V,reset:$}=await R({x:y,y:v,initialPlacement:s,placement:w,strategy:d,middlewareData:j,rects:g,platform:h,elements:{reference:a,floating:r}});y=H??y,v=O??v,j={...j,[N]:{...j[N],...V}},$&&A<=50&&(A++,typeof $=="object"&&($.placement&&(w=$.placement),$.rects&&(g=$.rects===!0?await h.getElementRects({reference:a,floating:r,strategy:d}):$.rects),{x:y,y:v}=Tp(g,w,p)),E=-1)}return{x:y,y:v,placement:w,strategy:d,middlewareData:j}};async function Mi(a,r){var c;r===void 0&&(r={});const{x:s,y:d,platform:f,rects:h,elements:x,strategy:p}=a,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:w=!1,padding:j=0}=Rn(r,a),A=Yg(j),N=x[w?v==="floating"?"reference":"floating":v],R=xs(await f.getClippingRect({element:(c=await(f.isElement==null?void 0:f.isElement(N)))==null||c?N:N.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(x.floating)),boundary:g,rootBoundary:y,strategy:p})),H=v==="floating"?{x:s,y:d,width:h.floating.width,height:h.floating.height}:h.reference,O=await(f.getOffsetParent==null?void 0:f.getOffsetParent(x.floating)),V=await(f.isElement==null?void 0:f.isElement(O))?await(f.getScale==null?void 0:f.getScale(O))||{x:1,y:1}:{x:1,y:1},$=xs(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:x,rect:H,offsetParent:O,strategy:p}):H);return{top:(R.top-$.top+A.top)/V.y,bottom:($.bottom-R.bottom+A.bottom)/V.y,left:(R.left-$.left+A.left)/V.x,right:($.right-R.right+A.right)/V.x}}const b2=a=>({name:"arrow",options:a,async fn(r){const{x:c,y:s,placement:d,rects:f,platform:h,elements:x,middlewareData:p}=r,{element:g,padding:y=0}=Rn(a,r)||{};if(g==null)return{};const v=Yg(y),w={x:c,y:s},j=qu(d),A=Vu(j),E=await h.getDimensions(g),N=j==="y",R=N?"top":"left",H=N?"bottom":"right",O=N?"clientHeight":"clientWidth",V=f.reference[A]+f.reference[j]-w[j]-f.floating[A],$=w[j]-f.reference[j],J=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let Q=J?J[O]:0;(!Q||!await(h.isElement==null?void 0:h.isElement(J)))&&(Q=x.floating[O]||f.floating[A]);const q=V/2-$/2,te=Q/2-E[A]/2-1,ee=cl(v[R],te),le=cl(v[H],te),re=ee,he=Q-E[A]-le,fe=Q/2-E[A]/2+q,pe=bu(re,fe,he),_=!p.arrow&&Na(d)!=null&&fe!==pe&&f.reference[A]/2-(fe<re?ee:le)-E[A]/2<0,G=_?fe<re?fe-re:fe-he:0;return{[j]:w[j]+G,data:{[j]:pe,centerOffset:fe-pe-G,..._&&{alignmentOffset:G}},reset:_}}}),w2=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(r){var c,s;const{placement:d,middlewareData:f,rects:h,initialPlacement:x,platform:p,elements:g}=r,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:E=!0,...N}=Rn(a,r);if((c=f.arrow)!=null&&c.alignmentOffset)return{};const R=_n(d),H=rn(x),O=_n(x)===x,V=await(p.isRTL==null?void 0:p.isRTL(g.floating)),$=w||(O||!E?[gs(x)]:m2(x)),J=A!=="none";!w&&J&&$.push(...x2(x,E,A,V));const Q=[x,...$],q=await Mi(r,N),te=[];let ee=((s=f.flip)==null?void 0:s.overflows)||[];if(y&&te.push(q[R]),v){const fe=f2(d,h,V);te.push(q[fe[0]],q[fe[1]])}if(ee=[...ee,{placement:d,overflows:te}],!te.every(fe=>fe<=0)){var le,re;const fe=(((le=f.flip)==null?void 0:le.index)||0)+1,pe=Q[fe];if(pe&&(!(v==="alignment"?H!==rn(pe):!1)||ee.every(B=>rn(B.placement)===H?B.overflows[0]>0:!0)))return{data:{index:fe,overflows:ee},reset:{placement:pe}};let _=(re=ee.filter(G=>G.overflows[0]<=0).sort((G,B)=>G.overflows[1]-B.overflows[1])[0])==null?void 0:re.placement;if(!_)switch(j){case"bestFit":{var he;const G=(he=ee.filter(B=>{if(J){const oe=rn(B.placement);return oe===H||oe==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(oe=>oe>0).reduce((oe,me)=>oe+me,0)]).sort((B,oe)=>B[1]-oe[1])[0])==null?void 0:he[0];G&&(_=G);break}case"initialPlacement":_=x;break}if(d!==_)return{reset:{placement:_}}}return{}}}};function Mp(a,r){return{top:a.top-r.height,right:a.right-r.width,bottom:a.bottom-r.height,left:a.left-r.width}}function zp(a){return o2.some(r=>a[r]>=0)}const S2=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(r){const{rects:c}=r,{strategy:s="referenceHidden",...d}=Rn(a,r);switch(s){case"referenceHidden":{const f=await Mi(r,{...d,elementContext:"reference"}),h=Mp(f,c.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:zp(h)}}}case"escaped":{const f=await Mi(r,{...d,altBoundary:!0}),h=Mp(f,c.floating);return{data:{escapedOffsets:h,escaped:zp(h)}}}default:return{}}}}},Xg=new Set(["left","top"]);async function j2(a,r){const{placement:c,platform:s,elements:d}=a,f=await(s.isRTL==null?void 0:s.isRTL(d.floating)),h=_n(c),x=Na(c),p=rn(c)==="y",g=Xg.has(h)?-1:1,y=f&&p?-1:1,v=Rn(r,a);let{mainAxis:w,crossAxis:j,alignmentAxis:A}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return x&&typeof A=="number"&&(j=x==="end"?A*-1:A),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const C2=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(r){var c,s;const{x:d,y:f,placement:h,middlewareData:x}=r,p=await j2(r,a);return h===((c=x.offset)==null?void 0:c.placement)&&(s=x.arrow)!=null&&s.alignmentOffset?{}:{x:d+p.x,y:f+p.y,data:{...p,placement:h}}}}},A2=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(r){const{x:c,y:s,placement:d}=r,{mainAxis:f=!0,crossAxis:h=!1,limiter:x={fn:N=>{let{x:R,y:H}=N;return{x:R,y:H}}},...p}=Rn(a,r),g={x:c,y:s},y=await Mi(r,p),v=rn(_n(d)),w=Uu(v);let j=g[w],A=g[v];if(f){const N=w==="y"?"top":"left",R=w==="y"?"bottom":"right",H=j+y[N],O=j-y[R];j=bu(H,j,O)}if(h){const N=v==="y"?"top":"left",R=v==="y"?"bottom":"right",H=A+y[N],O=A-y[R];A=bu(H,A,O)}const E=x.fn({...r,[w]:j,[v]:A});return{...E,data:{x:E.x-c,y:E.y-s,enabled:{[w]:f,[v]:h}}}}}},N2=function(a){return a===void 0&&(a={}),{options:a,fn(r){const{x:c,y:s,placement:d,rects:f,middlewareData:h}=r,{offset:x=0,mainAxis:p=!0,crossAxis:g=!0}=Rn(a,r),y={x:c,y:s},v=rn(d),w=Uu(v);let j=y[w],A=y[v];const E=Rn(x,r),N=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(p){const O=w==="y"?"height":"width",V=f.reference[w]-f.floating[O]+N.mainAxis,$=f.reference[w]+f.reference[O]-N.mainAxis;j<V?j=V:j>$&&(j=$)}if(g){var R,H;const O=w==="y"?"width":"height",V=Xg.has(_n(d)),$=f.reference[v]-f.floating[O]+(V&&((R=h.offset)==null?void 0:R[v])||0)+(V?0:N.crossAxis),J=f.reference[v]+f.reference[O]+(V?0:((H=h.offset)==null?void 0:H[v])||0)-(V?N.crossAxis:0);A<$?A=$:A>J&&(A=J)}return{[w]:j,[v]:A}}}},E2=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(r){var c,s;const{placement:d,rects:f,platform:h,elements:x}=r,{apply:p=()=>{},...g}=Rn(a,r),y=await Mi(r,g),v=_n(d),w=Na(d),j=rn(d)==="y",{width:A,height:E}=f.floating;let N,R;v==="top"||v==="bottom"?(N=v,R=w===(await(h.isRTL==null?void 0:h.isRTL(x.floating))?"start":"end")?"left":"right"):(R=v,N=w==="end"?"top":"bottom");const H=E-y.top-y.bottom,O=A-y.left-y.right,V=cl(E-y[N],H),$=cl(A-y[R],O),J=!r.middlewareData.shift;let Q=V,q=$;if((c=r.middlewareData.shift)!=null&&c.enabled.x&&(q=O),(s=r.middlewareData.shift)!=null&&s.enabled.y&&(Q=H),J&&!w){const ee=Ot(y.left,0),le=Ot(y.right,0),re=Ot(y.top,0),he=Ot(y.bottom,0);j?q=A-2*(ee!==0||le!==0?ee+le:Ot(y.left,y.right)):Q=E-2*(re!==0||he!==0?re+he:Ot(y.top,y.bottom))}await p({...r,availableWidth:q,availableHeight:Q});const te=await h.getDimensions(x.floating);return A!==te.width||E!==te.height?{reset:{rects:!0}}:{}}}};function Ts(){return typeof window<"u"}function Ea(a){return Zg(a)?(a.nodeName||"").toLowerCase():"#document"}function kt(a){var r;return(a==null||(r=a.ownerDocument)==null?void 0:r.defaultView)||window}function dn(a){var r;return(r=(Zg(a)?a.ownerDocument:a.document)||window.document)==null?void 0:r.documentElement}function Zg(a){return Ts()?a instanceof Node||a instanceof kt(a).Node:!1}function Ft(a){return Ts()?a instanceof Element||a instanceof kt(a).Element:!1}function cn(a){return Ts()?a instanceof HTMLElement||a instanceof kt(a).HTMLElement:!1}function Rp(a){return!Ts()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof kt(a).ShadowRoot}const T2=new Set(["inline","contents"]);function Di(a){const{overflow:r,overflowX:c,overflowY:s,display:d}=Wt(a);return/auto|scroll|overlay|hidden|clip/.test(r+s+c)&&!T2.has(d)}const M2=new Set(["table","td","th"]);function z2(a){return M2.has(Ea(a))}const R2=[":popover-open",":modal"];function Ms(a){return R2.some(r=>{try{return a.matches(r)}catch{return!1}})}const _2=["transform","translate","scale","rotate","perspective"],O2=["transform","translate","scale","rotate","perspective","filter"],D2=["paint","layout","strict","content"];function Gu(a){const r=Yu(),c=Ft(a)?Wt(a):a;return _2.some(s=>c[s]?c[s]!=="none":!1)||(c.containerType?c.containerType!=="normal":!1)||!r&&(c.backdropFilter?c.backdropFilter!=="none":!1)||!r&&(c.filter?c.filter!=="none":!1)||O2.some(s=>(c.willChange||"").includes(s))||D2.some(s=>(c.contain||"").includes(s))}function k2(a){let r=ul(a);for(;cn(r)&&!wa(r);){if(Gu(r))return r;if(Ms(r))return null;r=ul(r)}return null}function Yu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const L2=new Set(["html","body","#document"]);function wa(a){return L2.has(Ea(a))}function Wt(a){return kt(a).getComputedStyle(a)}function zs(a){return Ft(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ul(a){if(Ea(a)==="html")return a;const r=a.assignedSlot||a.parentNode||Rp(a)&&a.host||dn(a);return Rp(r)?r.host:r}function Qg(a){const r=ul(a);return wa(r)?a.ownerDocument?a.ownerDocument.body:a.body:cn(r)&&Di(r)?r:Qg(r)}function zi(a,r,c){var s;r===void 0&&(r=[]),c===void 0&&(c=!0);const d=Qg(a),f=d===((s=a.ownerDocument)==null?void 0:s.body),h=kt(d);if(f){const x=Su(h);return r.concat(h,h.visualViewport||[],Di(d)?d:[],x&&c?zi(x):[])}return r.concat(d,zi(d,[],c))}function Su(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function Kg(a){const r=Wt(a);let c=parseFloat(r.width)||0,s=parseFloat(r.height)||0;const d=cn(a),f=d?a.offsetWidth:c,h=d?a.offsetHeight:s,x=ps(c)!==f||ps(s)!==h;return x&&(c=f,s=h),{width:c,height:s,$:x}}function Xu(a){return Ft(a)?a:a.contextElement}function ba(a){const r=Xu(a);if(!cn(r))return sn(1);const c=r.getBoundingClientRect(),{width:s,height:d,$:f}=Kg(r);let h=(f?ps(c.width):c.width)/s,x=(f?ps(c.height):c.height)/d;return(!h||!Number.isFinite(h))&&(h=1),(!x||!Number.isFinite(x))&&(x=1),{x:h,y:x}}const B2=sn(0);function $g(a){const r=kt(a);return!Yu()||!r.visualViewport?B2:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function H2(a,r,c){return r===void 0&&(r=!1),!c||r&&c!==kt(a)?!1:r}function _l(a,r,c,s){r===void 0&&(r=!1),c===void 0&&(c=!1);const d=a.getBoundingClientRect(),f=Xu(a);let h=sn(1);r&&(s?Ft(s)&&(h=ba(s)):h=ba(a));const x=H2(f,c,s)?$g(f):sn(0);let p=(d.left+x.x)/h.x,g=(d.top+x.y)/h.y,y=d.width/h.x,v=d.height/h.y;if(f){const w=kt(f),j=s&&Ft(s)?kt(s):s;let A=w,E=Su(A);for(;E&&s&&j!==A;){const N=ba(E),R=E.getBoundingClientRect(),H=Wt(E),O=R.left+(E.clientLeft+parseFloat(H.paddingLeft))*N.x,V=R.top+(E.clientTop+parseFloat(H.paddingTop))*N.y;p*=N.x,g*=N.y,y*=N.x,v*=N.y,p+=O,g+=V,A=kt(E),E=Su(A)}}return xs({width:y,height:v,x:p,y:g})}function Rs(a,r){const c=zs(a).scrollLeft;return r?r.left+c:_l(dn(a)).left+c}function Jg(a,r){const c=a.getBoundingClientRect(),s=c.left+r.scrollLeft-Rs(a,c),d=c.top+r.scrollTop;return{x:s,y:d}}function U2(a){let{elements:r,rect:c,offsetParent:s,strategy:d}=a;const f=d==="fixed",h=dn(s),x=r?Ms(r.floating):!1;if(s===h||x&&f)return c;let p={scrollLeft:0,scrollTop:0},g=sn(1);const y=sn(0),v=cn(s);if((v||!v&&!f)&&((Ea(s)!=="body"||Di(h))&&(p=zs(s)),cn(s))){const j=_l(s);g=ba(s),y.x=j.x+s.clientLeft,y.y=j.y+s.clientTop}const w=h&&!v&&!f?Jg(h,p):sn(0);return{width:c.width*g.x,height:c.height*g.y,x:c.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:c.y*g.y-p.scrollTop*g.y+y.y+w.y}}function V2(a){return Array.from(a.getClientRects())}function q2(a){const r=dn(a),c=zs(a),s=a.ownerDocument.body,d=Ot(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),f=Ot(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let h=-c.scrollLeft+Rs(a);const x=-c.scrollTop;return Wt(s).direction==="rtl"&&(h+=Ot(r.clientWidth,s.clientWidth)-d),{width:d,height:f,x:h,y:x}}const _p=25;function G2(a,r){const c=kt(a),s=dn(a),d=c.visualViewport;let f=s.clientWidth,h=s.clientHeight,x=0,p=0;if(d){f=d.width,h=d.height;const y=Yu();(!y||y&&r==="fixed")&&(x=d.offsetLeft,p=d.offsetTop)}const g=Rs(s);if(g<=0){const y=s.ownerDocument,v=y.body,w=getComputedStyle(v),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,A=Math.abs(s.clientWidth-v.clientWidth-j);A<=_p&&(f-=A)}else g<=_p&&(f+=g);return{width:f,height:h,x,y:p}}const Y2=new Set(["absolute","fixed"]);function X2(a,r){const c=_l(a,!0,r==="fixed"),s=c.top+a.clientTop,d=c.left+a.clientLeft,f=cn(a)?ba(a):sn(1),h=a.clientWidth*f.x,x=a.clientHeight*f.y,p=d*f.x,g=s*f.y;return{width:h,height:x,x:p,y:g}}function Op(a,r,c){let s;if(r==="viewport")s=G2(a,c);else if(r==="document")s=q2(dn(a));else if(Ft(r))s=X2(r,c);else{const d=$g(a);s={x:r.x-d.x,y:r.y-d.y,width:r.width,height:r.height}}return xs(s)}function Fg(a,r){const c=ul(a);return c===r||!Ft(c)||wa(c)?!1:Wt(c).position==="fixed"||Fg(c,r)}function Z2(a,r){const c=r.get(a);if(c)return c;let s=zi(a,[],!1).filter(x=>Ft(x)&&Ea(x)!=="body"),d=null;const f=Wt(a).position==="fixed";let h=f?ul(a):a;for(;Ft(h)&&!wa(h);){const x=Wt(h),p=Gu(h);!p&&x.position==="fixed"&&(d=null),(f?!p&&!d:!p&&x.position==="static"&&!!d&&Y2.has(d.position)||Di(h)&&!p&&Fg(a,h))?s=s.filter(y=>y!==h):d=x,h=ul(h)}return r.set(a,s),s}function Q2(a){let{element:r,boundary:c,rootBoundary:s,strategy:d}=a;const h=[...c==="clippingAncestors"?Ms(r)?[]:Z2(r,this._c):[].concat(c),s],x=h[0],p=h.reduce((g,y)=>{const v=Op(r,y,d);return g.top=Ot(v.top,g.top),g.right=cl(v.right,g.right),g.bottom=cl(v.bottom,g.bottom),g.left=Ot(v.left,g.left),g},Op(r,x,d));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function K2(a){const{width:r,height:c}=Kg(a);return{width:r,height:c}}function $2(a,r,c){const s=cn(r),d=dn(r),f=c==="fixed",h=_l(a,!0,f,r);let x={scrollLeft:0,scrollTop:0};const p=sn(0);function g(){p.x=Rs(d)}if(s||!s&&!f)if((Ea(r)!=="body"||Di(d))&&(x=zs(r)),s){const j=_l(r,!0,f,r);p.x=j.x+r.clientLeft,p.y=j.y+r.clientTop}else d&&g();f&&!s&&d&&g();const y=d&&!s&&!f?Jg(d,x):sn(0),v=h.left+x.scrollLeft-p.x-y.x,w=h.top+x.scrollTop-p.y-y.y;return{x:v,y:w,width:h.width,height:h.height}}function cu(a){return Wt(a).position==="static"}function Dp(a,r){if(!cn(a)||Wt(a).position==="fixed")return null;if(r)return r(a);let c=a.offsetParent;return dn(a)===c&&(c=c.ownerDocument.body),c}function Wg(a,r){const c=kt(a);if(Ms(a))return c;if(!cn(a)){let d=ul(a);for(;d&&!wa(d);){if(Ft(d)&&!cu(d))return d;d=ul(d)}return c}let s=Dp(a,r);for(;s&&z2(s)&&cu(s);)s=Dp(s,r);return s&&wa(s)&&cu(s)&&!Gu(s)?c:s||k2(a)||c}const J2=async function(a){const r=this.getOffsetParent||Wg,c=this.getDimensions,s=await c(a.floating);return{reference:$2(a.reference,await r(a.floating),a.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function F2(a){return Wt(a).direction==="rtl"}const W2={convertOffsetParentRelativeRectToViewportRelativeRect:U2,getDocumentElement:dn,getClippingRect:Q2,getOffsetParent:Wg,getElementRects:J2,getClientRects:V2,getDimensions:K2,getScale:ba,isElement:Ft,isRTL:F2};function Ig(a,r){return a.x===r.x&&a.y===r.y&&a.width===r.width&&a.height===r.height}function I2(a,r){let c=null,s;const d=dn(a);function f(){var x;clearTimeout(s),(x=c)==null||x.disconnect(),c=null}function h(x,p){x===void 0&&(x=!1),p===void 0&&(p=1),f();const g=a.getBoundingClientRect(),{left:y,top:v,width:w,height:j}=g;if(x||r(),!w||!j)return;const A=is(v),E=is(d.clientWidth-(y+w)),N=is(d.clientHeight-(v+j)),R=is(y),O={rootMargin:-A+"px "+-E+"px "+-N+"px "+-R+"px",threshold:Ot(0,cl(1,p))||1};let V=!0;function $(J){const Q=J[0].intersectionRatio;if(Q!==p){if(!V)return h();Q?h(!1,Q):s=setTimeout(()=>{h(!1,1e-7)},1e3)}Q===1&&!Ig(g,a.getBoundingClientRect())&&h(),V=!1}try{c=new IntersectionObserver($,{...O,root:d.ownerDocument})}catch{c=new IntersectionObserver($,O)}c.observe(a)}return h(!0),f}function P2(a,r,c,s){s===void 0&&(s={});const{ancestorScroll:d=!0,ancestorResize:f=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:x=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,g=Xu(a),y=d||f?[...g?zi(g):[],...zi(r)]:[];y.forEach(R=>{d&&R.addEventListener("scroll",c,{passive:!0}),f&&R.addEventListener("resize",c)});const v=g&&x?I2(g,c):null;let w=-1,j=null;h&&(j=new ResizeObserver(R=>{let[H]=R;H&&H.target===g&&j&&(j.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=j)==null||O.observe(r)})),c()}),g&&!p&&j.observe(g),j.observe(r));let A,E=p?_l(a):null;p&&N();function N(){const R=_l(a);E&&!Ig(E,R)&&c(),E=R,A=requestAnimationFrame(N)}return c(),()=>{var R;y.forEach(H=>{d&&H.removeEventListener("scroll",c),f&&H.removeEventListener("resize",c)}),v==null||v(),(R=j)==null||R.disconnect(),j=null,p&&cancelAnimationFrame(A)}}const e3=C2,t3=A2,n3=w2,l3=E2,a3=S2,kp=b2,i3=N2,r3=(a,r,c)=>{const s=new Map,d={platform:W2,...c},f={...d.platform,_c:s};return y2(a,r,{...d,platform:f})};var s3=typeof document<"u",o3=function(){},us=s3?S.useLayoutEffect:o3;function vs(a,r){if(a===r)return!0;if(typeof a!=typeof r)return!1;if(typeof a=="function"&&a.toString()===r.toString())return!0;let c,s,d;if(a&&r&&typeof a=="object"){if(Array.isArray(a)){if(c=a.length,c!==r.length)return!1;for(s=c;s--!==0;)if(!vs(a[s],r[s]))return!1;return!0}if(d=Object.keys(a),c=d.length,c!==Object.keys(r).length)return!1;for(s=c;s--!==0;)if(!{}.hasOwnProperty.call(r,d[s]))return!1;for(s=c;s--!==0;){const f=d[s];if(!(f==="_owner"&&a.$$typeof)&&!vs(a[f],r[f]))return!1}return!0}return a!==a&&r!==r}function Pg(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Lp(a,r){const c=Pg(a);return Math.round(r*c)/c}function uu(a){const r=S.useRef(a);return us(()=>{r.current=a}),r}function c3(a){a===void 0&&(a={});const{placement:r="bottom",strategy:c="absolute",middleware:s=[],platform:d,elements:{reference:f,floating:h}={},transform:x=!0,whileElementsMounted:p,open:g}=a,[y,v]=S.useState({x:0,y:0,strategy:c,placement:r,middlewareData:{},isPositioned:!1}),[w,j]=S.useState(s);vs(w,s)||j(s);const[A,E]=S.useState(null),[N,R]=S.useState(null),H=S.useCallback(B=>{B!==J.current&&(J.current=B,E(B))},[]),O=S.useCallback(B=>{B!==Q.current&&(Q.current=B,R(B))},[]),V=f||A,$=h||N,J=S.useRef(null),Q=S.useRef(null),q=S.useRef(y),te=p!=null,ee=uu(p),le=uu(d),re=uu(g),he=S.useCallback(()=>{if(!J.current||!Q.current)return;const B={placement:r,strategy:c,middleware:w};le.current&&(B.platform=le.current),r3(J.current,Q.current,B).then(oe=>{const me={...oe,isPositioned:re.current!==!1};fe.current&&!vs(q.current,me)&&(q.current=me,Ru.flushSync(()=>{v(me)}))})},[w,r,c,le,re]);us(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,v(B=>({...B,isPositioned:!1})))},[g]);const fe=S.useRef(!1);us(()=>(fe.current=!0,()=>{fe.current=!1}),[]),us(()=>{if(V&&(J.current=V),$&&(Q.current=$),V&&$){if(ee.current)return ee.current(V,$,he);he()}},[V,$,he,ee,te]);const pe=S.useMemo(()=>({reference:J,floating:Q,setReference:H,setFloating:O}),[H,O]),_=S.useMemo(()=>({reference:V,floating:$}),[V,$]),G=S.useMemo(()=>{const B={position:c,left:0,top:0};if(!_.floating)return B;const oe=Lp(_.floating,y.x),me=Lp(_.floating,y.y);return x?{...B,transform:"translate("+oe+"px, "+me+"px)",...Pg(_.floating)>=1.5&&{willChange:"transform"}}:{position:c,left:oe,top:me}},[c,x,_.floating,y.x,y.y]);return S.useMemo(()=>({...y,update:he,refs:pe,elements:_,floatingStyles:G}),[y,he,pe,_,G])}const u3=a=>{function r(c){return{}.hasOwnProperty.call(c,"current")}return{name:"arrow",options:a,fn(c){const{element:s,padding:d}=typeof a=="function"?a(c):a;return s&&r(s)?s.current!=null?kp({element:s.current,padding:d}).fn(c):{}:s?kp({element:s,padding:d}).fn(c):{}}}},d3=(a,r)=>({...e3(a),options:[a,r]}),f3=(a,r)=>({...t3(a),options:[a,r]}),m3=(a,r)=>({...i3(a),options:[a,r]}),h3=(a,r)=>({...n3(a),options:[a,r]}),p3=(a,r)=>({...l3(a),options:[a,r]}),g3=(a,r)=>({...a3(a),options:[a,r]}),x3=(a,r)=>({...u3(a),options:[a,r]});var v3="Arrow",e0=S.forwardRef((a,r)=>{const{children:c,width:s=10,height:d=5,...f}=a;return u.jsx(Ue.svg,{...f,ref:r,width:s,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?c:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});e0.displayName=v3;var y3=e0;function Zu(a){const[r,c]=S.useState(void 0);return ol(()=>{if(a){c({width:a.offsetWidth,height:a.offsetHeight});const s=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const f=d[0];let h,x;if("borderBoxSize"in f){const p=f.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,x=g.blockSize}else h=a.offsetWidth,x=a.offsetHeight;c({width:h,height:x})});return s.observe(a,{box:"border-box"}),()=>s.unobserve(a)}else c(void 0)},[a]),r}var Qu="Popper",[t0,n0]=un(Qu),[b3,l0]=t0(Qu),a0=a=>{const{__scopePopper:r,children:c}=a,[s,d]=S.useState(null);return u.jsx(b3,{scope:r,anchor:s,onAnchorChange:d,children:c})};a0.displayName=Qu;var i0="PopperAnchor",r0=S.forwardRef((a,r)=>{const{__scopePopper:c,virtualRef:s,...d}=a,f=l0(i0,c),h=S.useRef(null),x=Ie(r,h),p=S.useRef(null);return S.useEffect(()=>{const g=p.current;p.current=(s==null?void 0:s.current)||h.current,g!==p.current&&f.onAnchorChange(p.current)}),s?null:u.jsx(Ue.div,{...d,ref:x})});r0.displayName=i0;var Ku="PopperContent",[w3,S3]=t0(Ku),s0=S.forwardRef((a,r)=>{var P,Ne,be,Ye,wt,St;const{__scopePopper:c,side:s="bottom",sideOffset:d=0,align:f="center",alignOffset:h=0,arrowPadding:x=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:j="optimized",onPlaced:A,...E}=a,N=l0(Ku,c),[R,H]=S.useState(null),O=Ie(r,Dn=>H(Dn)),[V,$]=S.useState(null),J=Zu(V),Q=(J==null?void 0:J.width)??0,q=(J==null?void 0:J.height)??0,te=s+(f!=="center"?"-"+f:""),ee=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},le=Array.isArray(g)?g:[g],re=le.length>0,he={padding:ee,boundary:le.filter(C3),altBoundary:re},{refs:fe,floatingStyles:pe,placement:_,isPositioned:G,middlewareData:B}=c3({strategy:"fixed",placement:te,whileElementsMounted:(...Dn)=>P2(...Dn,{animationFrame:j==="always"}),elements:{reference:N.anchor},middleware:[d3({mainAxis:d+q,alignmentAxis:h}),p&&f3({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?m3():void 0,...he}),p&&h3({...he}),p3({...he,apply:({elements:Dn,rects:Pt,availableWidth:za,availableHeight:Ra})=>{const{width:Us,height:Hi}=Pt.reference,kn=Dn.floating.style;kn.setProperty("--radix-popper-available-width",`${za}px`),kn.setProperty("--radix-popper-available-height",`${Ra}px`),kn.setProperty("--radix-popper-anchor-width",`${Us}px`),kn.setProperty("--radix-popper-anchor-height",`${Hi}px`)}}),V&&x3({element:V,padding:x}),A3({arrowWidth:Q,arrowHeight:q}),w&&g3({strategy:"referenceHidden",...he})]}),[oe,me]=u0(_),T=Oi(A);ol(()=>{G&&(T==null||T())},[G,T]);const X=(P=B.arrow)==null?void 0:P.x,F=(Ne=B.arrow)==null?void 0:Ne.y,I=((be=B.arrow)==null?void 0:be.centerOffset)!==0,[ue,ge]=S.useState();return ol(()=>{R&&ge(window.getComputedStyle(R).zIndex)},[R]),u.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:G?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(Ye=B.transformOrigin)==null?void 0:Ye.x,(wt=B.transformOrigin)==null?void 0:wt.y].join(" "),...((St=B.hide)==null?void 0:St.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:u.jsx(w3,{scope:c,placedSide:oe,onArrowChange:$,arrowX:X,arrowY:F,shouldHideArrow:I,children:u.jsx(Ue.div,{"data-side":oe,"data-align":me,...E,ref:O,style:{...E.style,animation:G?void 0:"none"}})})})});s0.displayName=Ku;var o0="PopperArrow",j3={top:"bottom",right:"left",bottom:"top",left:"right"},c0=S.forwardRef(function(r,c){const{__scopePopper:s,...d}=r,f=S3(o0,s),h=j3[f.placedSide];return u.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[h]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:u.jsx(y3,{...d,ref:c,style:{...d.style,display:"block"}})})});c0.displayName=o0;function C3(a){return a!==null}var A3=a=>({name:"transformOrigin",options:a,fn(r){var N,R,H;const{placement:c,rects:s,middlewareData:d}=r,h=((N=d.arrow)==null?void 0:N.centerOffset)!==0,x=h?0:a.arrowWidth,p=h?0:a.arrowHeight,[g,y]=u0(c),v={start:"0%",center:"50%",end:"100%"}[y],w=(((R=d.arrow)==null?void 0:R.x)??0)+x/2,j=(((H=d.arrow)==null?void 0:H.y)??0)+p/2;let A="",E="";return g==="bottom"?(A=h?v:`${w}px`,E=`${-p}px`):g==="top"?(A=h?v:`${w}px`,E=`${s.floating.height+p}px`):g==="right"?(A=`${-p}px`,E=h?v:`${j}px`):g==="left"&&(A=`${s.floating.width+p}px`,E=h?v:`${j}px`),{data:{x:A,y:E}}}});function u0(a){const[r,c="center"]=a.split("-");return[r,c]}var N3=a0,E3=r0,T3=s0,M3=c0,z3=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"}),R3="VisuallyHidden",d0=S.forwardRef((a,r)=>u.jsx(Ue.span,{...a,ref:r,style:{...z3,...a.style}}));d0.displayName=R3;var _3=d0,[_s]=un("Tooltip",[n0]),Os=n0(),f0="TooltipProvider",O3=700,ju="tooltip.open",[D3,$u]=_s(f0),m0=a=>{const{__scopeTooltip:r,delayDuration:c=O3,skipDelayDuration:s=300,disableHoverableContent:d=!1,children:f}=a,h=S.useRef(!0),x=S.useRef(!1),p=S.useRef(0);return S.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),u.jsx(D3,{scope:r,isOpenDelayedRef:h,delayDuration:c,onOpen:S.useCallback(()=>{window.clearTimeout(p.current),h.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>h.current=!0,s)},[s]),isPointerInTransitRef:x,onPointerInTransitChange:S.useCallback(g=>{x.current=g},[]),disableHoverableContent:d,children:f})};m0.displayName=f0;var Ri="Tooltip",[k3,Ds]=_s(Ri),h0=a=>{const{__scopeTooltip:r,children:c,open:s,defaultOpen:d,onOpenChange:f,disableHoverableContent:h,delayDuration:x}=a,p=$u(Ri,a.__scopeTooltip),g=Os(r),[y,v]=S.useState(null),w=_i(),j=S.useRef(0),A=h??p.disableHoverableContent,E=x??p.delayDuration,N=S.useRef(!1),[R,H]=dl({prop:s,defaultProp:d??!1,onChange:Q=>{Q?(p.onOpen(),document.dispatchEvent(new CustomEvent(ju))):p.onClose(),f==null||f(Q)},caller:Ri}),O=S.useMemo(()=>R?N.current?"delayed-open":"instant-open":"closed",[R]),V=S.useCallback(()=>{window.clearTimeout(j.current),j.current=0,N.current=!1,H(!0)},[H]),$=S.useCallback(()=>{window.clearTimeout(j.current),j.current=0,H(!1)},[H]),J=S.useCallback(()=>{window.clearTimeout(j.current),j.current=window.setTimeout(()=>{N.current=!0,H(!0),j.current=0},E)},[E,H]);return S.useEffect(()=>()=>{j.current&&(window.clearTimeout(j.current),j.current=0)},[]),u.jsx(N3,{...g,children:u.jsx(k3,{scope:r,contentId:w,open:R,stateAttribute:O,trigger:y,onTriggerChange:v,onTriggerEnter:S.useCallback(()=>{p.isOpenDelayedRef.current?J():V()},[p.isOpenDelayedRef,J,V]),onTriggerLeave:S.useCallback(()=>{A?$():(window.clearTimeout(j.current),j.current=0)},[$,A]),onOpen:V,onClose:$,disableHoverableContent:A,children:c})})};h0.displayName=Ri;var Cu="TooltipTrigger",p0=S.forwardRef((a,r)=>{const{__scopeTooltip:c,...s}=a,d=Ds(Cu,c),f=$u(Cu,c),h=Os(c),x=S.useRef(null),p=Ie(r,x,d.onTriggerChange),g=S.useRef(!1),y=S.useRef(!1),v=S.useCallback(()=>g.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),u.jsx(E3,{asChild:!0,...h,children:u.jsx(Ue.button,{"aria-describedby":d.open?d.contentId:void 0,"data-state":d.stateAttribute,...s,ref:p,onPointerMove:He(a.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!f.isPointerInTransitRef.current&&(d.onTriggerEnter(),y.current=!0)}),onPointerLeave:He(a.onPointerLeave,()=>{d.onTriggerLeave(),y.current=!1}),onPointerDown:He(a.onPointerDown,()=>{d.open&&d.onClose(),g.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:He(a.onFocus,()=>{g.current||d.onOpen()}),onBlur:He(a.onBlur,d.onClose),onClick:He(a.onClick,d.onClose)})})});p0.displayName=Cu;var L3="TooltipPortal",[R4,B3]=_s(L3,{forceMount:void 0}),Sa="TooltipContent",g0=S.forwardRef((a,r)=>{const c=B3(Sa,a.__scopeTooltip),{forceMount:s=c.forceMount,side:d="top",...f}=a,h=Ds(Sa,a.__scopeTooltip);return u.jsx(Ss,{present:s||h.open,children:h.disableHoverableContent?u.jsx(x0,{side:d,...f,ref:r}):u.jsx(H3,{side:d,...f,ref:r})})}),H3=S.forwardRef((a,r)=>{const c=Ds(Sa,a.__scopeTooltip),s=$u(Sa,a.__scopeTooltip),d=S.useRef(null),f=Ie(r,d),[h,x]=S.useState(null),{trigger:p,onClose:g}=c,y=d.current,{onPointerInTransitChange:v}=s,w=S.useCallback(()=>{x(null),v(!1)},[v]),j=S.useCallback((A,E)=>{const N=A.currentTarget,R={x:A.clientX,y:A.clientY},H=G3(R,N.getBoundingClientRect()),O=Y3(R,H),V=X3(E.getBoundingClientRect()),$=Q3([...O,...V]);x($),v(!0)},[v]);return S.useEffect(()=>()=>w(),[w]),S.useEffect(()=>{if(p&&y){const A=N=>j(N,y),E=N=>j(N,p);return p.addEventListener("pointerleave",A),y.addEventListener("pointerleave",E),()=>{p.removeEventListener("pointerleave",A),y.removeEventListener("pointerleave",E)}}},[p,y,j,w]),S.useEffect(()=>{if(h){const A=E=>{const N=E.target,R={x:E.clientX,y:E.clientY},H=(p==null?void 0:p.contains(N))||(y==null?void 0:y.contains(N)),O=!Z3(R,h);H?w():O&&(w(),g())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[p,y,h,g,w]),u.jsx(x0,{...a,ref:f})}),[U3,V3]=_s(Ri,{isInside:!1}),q3=F1("TooltipContent"),x0=S.forwardRef((a,r)=>{const{__scopeTooltip:c,children:s,"aria-label":d,onEscapeKeyDown:f,onPointerDownOutside:h,...x}=a,p=Ds(Sa,c),g=Os(c),{onClose:y}=p;return S.useEffect(()=>(document.addEventListener(ju,y),()=>document.removeEventListener(ju,y)),[y]),S.useEffect(()=>{if(p.trigger){const v=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[p.trigger,y]),u.jsx(qg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:h,onFocusOutside:v=>v.preventDefault(),onDismiss:y,children:u.jsxs(T3,{"data-state":p.stateAttribute,...g,...x,ref:r,style:{...x.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(q3,{children:s}),u.jsx(U3,{scope:c,isInside:!0,children:u.jsx(_3,{id:p.contentId,role:"tooltip",children:d||s})})]})})});g0.displayName=Sa;var v0="TooltipArrow",y0=S.forwardRef((a,r)=>{const{__scopeTooltip:c,...s}=a,d=Os(c);return V3(v0,c).isInside?null:u.jsx(M3,{...d,...s,ref:r})});y0.displayName=v0;function G3(a,r){const c=Math.abs(r.top-a.y),s=Math.abs(r.bottom-a.y),d=Math.abs(r.right-a.x),f=Math.abs(r.left-a.x);switch(Math.min(c,s,d,f)){case f:return"left";case d:return"right";case c:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Y3(a,r,c=5){const s=[];switch(r){case"top":s.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":s.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":s.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":s.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c});break}return s}function X3(a){const{top:r,right:c,bottom:s,left:d}=a;return[{x:d,y:r},{x:c,y:r},{x:c,y:s},{x:d,y:s}]}function Z3(a,r){const{x:c,y:s}=a;let d=!1;for(let f=0,h=r.length-1;f<r.length;h=f++){const x=r[f],p=r[h],g=x.x,y=x.y,v=p.x,w=p.y;y>s!=w>s&&c<(v-g)*(s-y)/(w-y)+g&&(d=!d)}return d}function Q3(a){const r=a.slice();return r.sort((c,s)=>c.x<s.x?-1:c.x>s.x?1:c.y<s.y?-1:c.y>s.y?1:0),K3(r)}function K3(a){if(a.length<=1)return a.slice();const r=[];for(let s=0;s<a.length;s++){const d=a[s];for(;r.length>=2;){const f=r[r.length-1],h=r[r.length-2];if((f.x-h.x)*(d.y-h.y)>=(f.y-h.y)*(d.x-h.x))r.pop();else break}r.push(d)}r.pop();const c=[];for(let s=a.length-1;s>=0;s--){const d=a[s];for(;c.length>=2;){const f=c[c.length-1],h=c[c.length-2];if((f.x-h.x)*(d.y-h.y)>=(f.y-h.y)*(d.x-h.x))c.pop();else break}c.push(d)}return c.pop(),r.length===1&&c.length===1&&r[0].x===c[0].x&&r[0].y===c[0].y?r:r.concat(c)}var $3=m0,J3=h0,F3=p0,b0=g0,W3=y0;const I3={none:{side:"top",align:"center"},top:{side:"top",align:"center"},topstart:{side:"top",align:"start"},topcenter:{side:"top",align:"center"},topend:{side:"top",align:"end"},bottom:{side:"bottom",align:"center"},bottomstart:{side:"bottom",align:"start"},bottomcenter:{side:"bottom",align:"center"},bottomend:{side:"bottom",align:"end"},left:{side:"left",align:"center"},leftstart:{side:"left",align:"start"},leftcenter:{side:"left",align:"center"},leftend:{side:"left",align:"end"},right:{side:"right",align:"center"},rightstart:{side:"right",align:"start"},rightcenter:{side:"right",align:"center"},rightend:{side:"right",align:"end"}},w0=S.forwardRef(({className:a,sideOffset:r=4,...c},s)=>u.jsx(b0,{ref:s,sideOffset:r,className:W("z-50 overflow-hidden rounded-md border bg-black px-3 py-1.5 text-sm text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]",a),...c,children:c.children}));w0.displayName=b0.displayName;const ki=({children:a,content:r,description:c,className:s,contentClassName:d,descriptionClassName:f,sideOffset:h=4,position:x="none",dir:p="rtl"})=>{const g=p==="ltr",y=I3[x]||{side:"top",align:g?"start":"end"},v=x!=="none";return u.jsx($3,{children:u.jsxs(J3,{delayDuration:50,children:[u.jsx(F3,{asChild:!0,children:a}),u.jsxs(w0,{className:W(s),sideOffset:h,side:y.side,align:y.align,dir:p,children:[u.jsxs("div",{className:"flex flex-col",dir:p,children:[u.jsx("span",{className:W("text-base font-medium",d),children:r}),c&&u.jsx("span",{className:W("text-xs opacity-70 mt-1",g?"text-start":"text-end",f),children:c})]}),v&&u.jsx(W3,{className:"fill-black",width:16,height:6})]})]})})},P3=({stroke:a="",fill:r="none",width:c="12",height:s="12"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 12 12",fill:r,children:u.jsx("path",{d:"M6 2.5V9.5M2.5 6H9.5",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Bp=S.memo(P3),e6=({imgList:a,size:r,showAmount:c=5,showAddBtn:s=!1,tooltip:d,addBtnAction:f})=>{const h=a.slice(0,c),x=a.length-c;return u.jsxs("div",{className:"flex -space-x-1 w-full",children:[h.map((p,g)=>u.jsx("img",{alt:"",className:W("inline-block rounded-full ring-2 ring-white",ya[r]),style:{zIndex:g},...p},g)),x>0&&u.jsx("div",{className:W("inline-flex items-center justify-center rounded-full bg-gray-100 border-2 border-white font-medium text-gray-700 shadow-2xs align-middle hover:bg-gray-200 focus:outline-hidden focus:bg-gray-300 text-sm dark:bg-neutral-700 dark:text-white dark:hover:bg-neutral-600 dark:focus:bg-neutral-600 dark:border-neutral-800",ya[r]),style:{zIndex:c},children:u.jsxs("span",{className:"font-medium text-xs",children:["+",x]})}),s&&d?u.jsx(ki,{...d,children:u.jsx("button",{className:W("mx-2 p-1 flex justify-center items-center cursor-pointer stroke-rfg-quinary-400 rounded-full bg-rbg-primary border border-dashed border-rborder-primary hover:bg-rbg-primary-hover disabled:bg-rbg-disabled-subtle disabled:cur",ya[r]),onClick:f,children:u.jsx(Bp,{})})}):u.jsx("button",{className:W("mx-2 p-1 flex justify-center items-center cursor-pointer stroke-rfg-quinary-400 rounded-full bg-rbg-primary border border-dashed border-rborder-primary hover:bg-rbg-primary-hover disabled:bg-rbg-disabled-subtle disabled:cur",ya[r]),onClick:f,children:u.jsx(Bp,{})})]})},Hp=({img:a,size:r,notifyColor:c="",notifyIcon:s="",iconBorder:d})=>u.jsxs("div",{className:W("relative inline-block",ya[r]),children:[u.jsx("img",{alt:"",...a,className:W("rounded-full object-cover ring-2 ring-white",ya[r])}),c&&u.jsx("span",{className:W(`absolute bottom-0 right-1 block rounded-full ${c} ring-2 ring-white`,Wb[r])}),s&&u.jsx("span",{className:W("absolute bottom-0 right-1 block rounded-full",Sp[r],`has-[>svg]:${Sp[r]} ${d&&"ring-2 ring-white"}`),children:s})]}),Rl=({type:a,size:r="md",imgList:c=[],img:s={},showAmount:d=1,showAddBtn:f=!1,notifyColor:h="",notifyIcon:x="",title:p="",description:g="",iconBorder:y=!0,tooltip:v,addBtnAction:w=()=>{}})=>u.jsxs(u.Fragment,{children:[a=="single"&&u.jsx(Hp,{img:s,size:r,notifyColor:h,notifyIcon:x,iconBorder:y}),a=="group"&&u.jsx(e6,{imgList:c,size:r,showAmount:d,showAddBtn:f,tooltip:v,addBtnAction:w}),a=="labled"&&u.jsxs("div",{className:W("inline-flex items-center",Ib[r]),children:[u.jsx(Hp,{img:s,size:r,notifyColor:h,notifyIcon:x,iconBorder:y}),u.jsx(Pb,{size:r,title:p,description:g})]})]}),t6=({stroke:a="",fill:r="none",width:c="12",className:s="",height:d="12"})=>u.jsx("svg",{"data-testid":"icon-x-close",xmlns:"http://www.w3.org/2000/svg",width:c,role:"x-icon",height:d,className:s,viewBox:"0 0 12 12",fill:r,children:u.jsx("path",{d:"M9 3L3 9M3 3L9 9",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),Ju=S.memo(t6),Up=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,Vp=Es,Lt=(a,r)=>c=>{var s;if((r==null?void 0:r.variants)==null)return Vp(a,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:d,defaultVariants:f}=r,h=Object.keys(d).map(g=>{const y=c==null?void 0:c[g],v=f==null?void 0:f[g];if(y===null)return null;const w=Up(y)||Up(v);return d[g][w]}),x=c&&Object.entries(c).reduce((g,y)=>{let[v,w]=y;return w===void 0||(g[v]=w),g},{}),p=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((g,y)=>{let{class:v,className:w,...j}=y;return Object.entries(j).every(A=>{let[E,N]=A;return Array.isArray(N)?N.includes({...f,...x}[E]):{...f,...x}[E]===N})?[...g,v,w]:g},[]);return Vp(a,h,p,c==null?void 0:c.class,c==null?void 0:c.className)},n6="flex items-center font-medium",l6={gray:"bg-utility-gray-50 text-utility-gray-700 border-utility-gray-200 has-[>svg]:stroke-utility-gray-light-400",brand:"bg-utility-brand-50 text-utility-brand-700 border-utility-brand-200 has-[>svg]:stroke-utility-brand-400",error:"bg-utility-error-50 text-utility-error-700 border-utility-error-200 has-[>svg]:stroke-utility-error-400",success:"bg-utility-success-50 text-utility-success-700 border-utility-success-200 has-[>svg]:stroke-utility-success-400",grayBlue:"bg-utility-gray-blue-50 text-utility-gray-blue-700 border-utility-gray-blue-200 has-[>svg]:stroke-utility-gray-blue-400",blueLight:"bg-utility-blue-light-50 text-utility-blue-light-700 border-utility-blue-light-200 has-[>svg]:stroke-utility-blue-light-400",blue:"bg-utility-blue-50 text-utility-blue-700 border-utility-blue-200 has-[>svg]:stroke-utility-blue-400",indigo:"bg-utility-indigo-50 text-utility-indigo-700 border-utility-indigo-200 has-[>svg]:stroke-utility-indigo-400",purple:"bg-utility-purple-50 text-utility-purple-700 border-utility-purple-200 has-[>svg]:stroke-utility-purple-400",pink:"bg-utility-pink-50 text-utility-pink-700 border-utility-pink-200 has-[>svg]:stroke-utility-pink-400",orange:"bg-utility-orange-50 text-utility-orange-700 border-utility-orange-200 has-[>svg]:stroke-utility-orange-400 fill-red-500"},a6={sm:"px-2 py-0.5 gap-1 has-[>svg]:text-sm text-xs",md:"px-2.5 py-0.5 gap-1.5 has-[>svg]:text-md text-sm",lg:"px-3 py-1 gap-2 has-[>svg]:text-lg text-sm"},i6={pillColor:"rounded-full border",pillOutline:"rounded-full border-[1.5px]",badgeColor:"rounded-sm border",badgeModern:"rounded-md shadow-sm border has-[>svg]:stroke-current"},r6=Lt(n6,{variants:{size:a6,type:i6,dir:{ltr:"flex-row",rtl:"flex-row-reverse"},color:l6},defaultVariants:{size:"sm",type:"pillColor",dir:"ltr",color:"blue"}});function Ti({className:a,size:r="sm",type:c="pillColor",color:s="blue",dir:d="rtl",icon:f,closable:h=!1,onClose:x,children:p,...g}){return u.jsxs("div",{className:W("w-fit",r6({size:r,type:c,dir:d,color:s}),c==="badgeModern"&&"bg-transparent border-primary text-secondary",a),...g,children:[f,p,h&&u.jsx("button",{onClick:x,className:"ml-1",children:u.jsx(Ju,{className:"w-3 h-3 stroke-current"})})]})}const s6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M10 12L6 8L10 4",stroke:"#D0D5DD",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),o6=S.memo(s6),c6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",children:u.jsx("path",{d:"M1 9L5 5L1 1",stroke:"#D0D5DD",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),qp=S.memo(c6),u6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M6.66667 14.1667H13.3333M9.18141 2.30333L3.52949 6.69927C3.15168 6.99312 2.96278 7.14005 2.82669 7.32405C2.70614 7.48704 2.61633 7.67065 2.56169 7.86588C2.5 8.08627 2.5 8.32558 2.5 8.80421V14.8333C2.5 15.7667 2.5 16.2335 2.68166 16.59C2.84144 16.9036 3.09641 17.1585 3.41002 17.3183C3.76654 17.5 4.23325 17.5 5.16667 17.5H14.8333C15.7668 17.5 16.2335 17.5 16.59 17.3183C16.9036 17.1585 17.1586 16.9036 17.3183 16.59C17.5 16.2335 17.5 15.7667 17.5 14.8333V8.80421C17.5 8.32558 17.5 8.08627 17.4383 7.86588C17.3837 7.67065 17.2939 7.48704 17.1733 7.32405C17.0372 7.14005 16.8483 6.99312 16.4705 6.69927L10.8186 2.30333C10.5258 2.07562 10.3794 1.96177 10.2178 1.918C10.0752 1.87938 9.92484 1.87938 9.78221 1.918C9.62057 1.96177 9.47418 2.07562 9.18141 2.30333Z",stroke:"#667085",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),d6=S.memo(u6),f6=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M6.66667 14.1667H13.3333M9.18141 2.30333L3.52949 6.69927C3.15168 6.99312 2.96278 7.14005 2.82669 7.32405C2.70614 7.48704 2.61633 7.67065 2.56169 7.86588C2.5 8.08627 2.5 8.32558 2.5 8.80421V14.8333C2.5 15.7667 2.5 16.2335 2.68166 16.59C2.84144 16.9036 3.09641 17.1585 3.41002 17.3183C3.76654 17.5 4.23325 17.5 5.16667 17.5H14.8333C15.7668 17.5 16.2335 17.5 16.59 17.3183C16.9036 17.1585 17.1586 16.9036 17.3183 16.59C17.5 16.2335 17.5 15.7667 17.5 14.8333V8.80421C17.5 8.32558 17.5 8.08627 17.4383 7.86588C17.3837 7.67065 17.2939 7.48704 17.1733 7.32405C17.0372 7.14005 16.8483 6.99312 16.4705 6.69927L10.8186 2.30333C10.5258 2.07562 10.3794 1.96177 10.2178 1.918C10.0752 1.87938 9.92484 1.87938 9.78221 1.918C9.62057 1.96177 9.47418 2.07562 9.18141 2.30333Z",stroke:"#0050FF",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),m6=S.memo(f6),h6=({breadCrumbLink:a,type:r="chevron",dir:c,navClassName:s,listClassName:d,listItemClassName:f="",linkClassName:h,separatorClassName:x})=>{var E;const[p,g]=S.useState("");S.useEffect(()=>{typeof window<"u"&&g(window.location.pathname)},[]);const y=c??(((E=document==null?void 0:document.body)==null?void 0:E.getAttribute("dir"))==="rtl"?"rtl":"ltr"),v=()=>{switch(r){case"chevron":return y==="rtl"?u.jsx(o6,{}):u.jsx(qp,{});case"slash":return u.jsx(m6,{});default:return u.jsx(qp,{})}},w=[{title:u.jsx(d6,{}),link:"/"},...a],j=w.findIndex(N=>N.link===p),A=j>=0?w.slice(0,j+1):w;return u.jsx("nav",{className:`w-full overflow-x-auto scrollbar-thin scrollbar-thumb-gray-400 ${s??""}`,dir:y,children:u.jsxs("ol",{className:`flex flex-nowrap items-center gap-x-1 lg:gap-x-2 w-max py-2 rounded-md ${d??""}`,children:[" ",A.map((N,R)=>{const H=N.link??"",O=R!==A.length-1,V=p===H;return u.jsxs("li",{className:W("flex items-center text-sm font-normal leading-normal transition-colors duration-300 ",f),children:[N.link?u.jsx("a",{href:H,className:`${h??"cursor-pointer transition-colors duration-300"} ${V?"text-rtext-brand-tertiary-600":"text-rtext-placeholder"}`,children:N.title}):u.jsx("span",{className:"text-gray-500",children:N.title}),O&&u.jsx("span",{className:`${x??"ms-2"}`,children:v()})]},`${H}-${R}`)})]})})},p6="inline-flex items-center justify-center font-medium focus:outline-none transition-all w-fit rounded-md border transition-all duration-300 cursor-pointer relative",g6={primary:"border-gradient-border bg-rbutton-primary-bg hover:bg-rbutton-primary-bg-hover focus:bg-rbutton-primary-bg shadow-xs-skeuomorphic focus:shadow-focus-ring-shadow-xs-skeuomorphic text-rbutton-primary-fg has-[>svg]:text-rbutton-primary-fg disabled:bg-rbg-disabled disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled has-[>svg]:disabled:text-rfg-disabled disabled:shadow-xs",secondaryGray:"text-rbutton-secondary-fg has-[>svg]:stroke-rbutton-secondary-fg border-gradient-border bg-rbutton-secondary-bg hover:bg-rbutton-secondary-bg-hover shadow-xs-skeuomorphic disabled:bg-rbg-primary disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled has-[>svg]:disabled:text-rfg-disabled disabled:shadow-xs",secondaryColor:"text-rbutton-secondary-color-fg bg-rbutton-secondary-color-bg border-rbutton-secondary-color-border hover:text-rbutton-secondary-color-fg-hover hover:bg-rbutton-secondary-color-bg-hover border-rbutton-secondary-color-border-hover disabled:bg-rbg-primary disabled:border-rborder-disabled-subtle disabled:text-rfg-disabled disabled:shadow-xs",tertiaryGray:"border-0 text-rbutton-tertiary-fg hover:text-rbutton-tertiary-fg-hover hover:bg-rbutton-tertiary-bg-hover disabled:text-rfg-disabled",tertiaryColor:"border-0 text-rbutton-tertiary-color-fg hover:text-rbutton-tertiary-color-fg-hover hover:bg-rbutton-tertiary-color-bg-hover disabled:text-rfg-disabled",linkGray:"border-0 text-rbutton-tertiary-fg hover:text-rbutton-tertiary-fg-hover disabled:text-rfg-disabled !p-0",linkColor:"border-0 text-rbutton-tertiary-color-fg hover:text-rbutton-tertiary-color-fg-hover disabled:text-rfg-disabled !p-0"},x6={sm:"text-sm px-3 py-2 gap-1",md:"text-base px-3.5 py-2.5 gap-1",lg:"text-lg px-4 py-2.5 gap-1.5",xl:"text-lg px-4.5 py-3 gap-1.5","2xl":"rounded-lg text-lg px-5.5 py-4 gap-2"},v6=Lt(p6,{variants:{loading:{true:"pointer-events-none"},size:x6,fullWidth:{true:"w-full"},disabled:{true:"pointer-events-none"},dir:{rtl:"flex-row",ltr:"flex-row-reverse"},variant:g6},defaultVariants:{variant:"primary",size:"md"}}),y6=({size:a="sm"})=>{const r={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-7 w-7"};return u.jsx("div",{"aria-label":"loading",className:Es("border-2 border-t-transparent rounded-full animate-spin",r[a])})},on=({variant:a="primary",size:r="md",fullWidth:c,disabled:s=!1,loading:d=!1,leftIcon:f,rightIcon:h,children:x,className:p,onClick:g,asChild:y=!1,...v})=>{const w=y?$1:"button";return u.jsxs(w,{className:v6({variant:a,size:r,fullWidth:c,disabled:s,className:p,loading:d}),disabled:s,onClick:d?()=>{}:g,...v,children:[d&&u.jsx("div",{className:"absolute inset-0 flex justify-center items-center",children:u.jsx(y6,{size:r??"md"})}),u.jsxs("span",{className:Es({invisible:d},"flex items-center gap-2"),children:[f,x,h]})]})},b6=({stroke:a="white",fill:r="none",width:c="10",className:s="",height:d="10"})=>u.jsx(u.Fragment,{children:u.jsx("svg",{width:c,"data-testid":"minus-icon",height:d,className:s,fill:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",children:u.jsx("path",{d:"M2.5 6H9.5",stroke:a,strokeWidth:"1.666",strokeLinecap:"round",strokeLinejoin:"round"})})}),Gp=S.memo(b6),w6=({stroke:a="#fff",fill:r="none",width:c="10",height:s="10"})=>u.jsx("svg",{width:c,height:s,"data-testid":"tickbox-icon",viewBox:"0 0 10 10",className:"border-white",fill:r,xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M8.33341 2.5L3.75008 7.08333L1.66675 5",stroke:a,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Yp=S.memo(w6),S6="border-rborder-primary rounded-xs border-[1px] peer-checked:border-rbg-brand-solid peer-checked:bg-rbg-brand-solid flex items-center justify-center",j6={sm:"w-3.5 h-3.5",md:"w-4 h-4",lg:"w-4.5 h-4.5"},C6=Lt(S6,{variants:{size:j6,disabled:{true:" bg-rbg-disabled-subtle cursor-auto",false:" group cursor-pointer",undefined:"group cursor-pointer"}},defaultVariants:{size:"sm"}}),A6={sm:"p-1",md:"p-[5px]",lg:"p-1.5"},Li=({size:a="sm",children:r,id:c,disabled:s=!1,checkboxIndex:d=1,isIndeterminate:f=!1,checked:h,onChange:x,onClick:p,defaultChecked:g,name:y,label:v,...w})=>{const j=S.useRef(null);S.useEffect(()=>{j.current&&(j.current.indeterminate=f)},[f]);function A(){j.current&&!s&&(j.current.click(),j.current.focus())}const E=s?"#D0D5DD":"white";let N=null;return s?h&&(N=f?u.jsx(Gp,{stroke:E}):u.jsx(Yp,{stroke:E})):N=f?u.jsx(Gp,{stroke:E}):u.jsx(Yp,{stroke:E}),u.jsxs("div",{className:"flex items-center cursor-pointer gap-2 justify-start",children:[u.jsx("input",{type:"checkbox","data-testid":"checkbox",id:c,ref:j,onChange:R=>!s&&x&&x(R),onClick:p,disabled:s,checked:h,defaultChecked:g,className:"peer hidden",...w}),u.jsx("label",{htmlFor:c??y,tabIndex:d,className:W(C6({size:a,disabled:s}),`${s&&"!bg-rbg-disabled !border-rborder-primary"} `),children:u.jsx("div",{className:`${A6[a]} ${!s&&"group-focus-within:border-2 border-rbg-brand-solid "} flex items-center justify-center rounded-md`,children:N})}),(r??v)&&u.jsx("div",{className:"leading-none",onClick:()=>A(),children:r??v})]})},S0="rounded-full border-[1px] flex items-center justify-center peer-checked:border-[5px]",N6={sm:"w-4 h-4",md:"w-5 h-5 !peer-checked:border-[6px]"},E6={sm:"text-xs",md:"text-sm"},T6={sm:"p-2.5",md:"p-3"},M6=Lt(S0,{variants:{size:N6,disabled:{true:" cursor-auto bg-rbg-disabled-subtle !border-rfg-disabled-subtle !border-[1px] ",false:"group cursor-pointer border-rbg-brand-solid",undefined:"group cursor-pointer border-rbg-brand-solid"}},defaultVariants:{size:"sm"}}),ja=({name:a,value:r,checked:c,onChange:s,size:d="sm",disabled:f,className:h,children:x,id:p,...g})=>u.jsxs("div",{className:"flex items-start gap-2",children:[u.jsxs("label",{htmlFor:p,className:"inline-flex w-fit items-center cursor-pointer relative",children:[u.jsx("input",{type:"radio",name:a,value:r,checked:c,onChange:s,className:"sr-only peer",disabled:f,id:p,...g}),u.jsx("div",{className:W(M6({size:d,disabled:f}),S0)}),u.jsx("div",{className:`peer-focus:border-2 peer-focus-within:border-1 border-brand-500 rounded-full absolute top-1/2 left-1/2 -translate-1/2 ${T6[d]} ${c&&f&&`${d==="sm"?"!border-4":"!border-5"} !border-rfg-disabled-subtle !p-0 `} `})]}),x&&u.jsx("label",{htmlFor:p,className:`cursor-pointer ${E6[d]} ${h}`,children:x})]}),z6={sm:"text-sm",md:"text-md"},R6=`
|
|
170
170
|
rounded-2xl md:w-3xl text-md h-fit min-w-[343px] text-rtext-tertiary-600 flex gap-2 cursor-pointer
|
|
171
171
|
border-2 border-rborder-secondary rounded-2xl`,_6=({checked:a,disabled:r,size:c,hasHeader:s})=>({label:` ${R6} ${s?"flex-col":"p-4"} ${c&&z6[c]} ${r?"bg-rbg-disabled-subtle":"group"} ${a?"!border-rbg-brand-solid":""}`}),Xp=({size:a="sm",title:r="",description:c,checked:s,disabled:d,id:f,value:h="",footer:x,icon:p,type:g="checkbox",onChange:y,name:v="",cardOnclick:w,inputProps:j,checkboxIndex:A})=>{const E=_6({checked:s,disabled:d,size:a});return u.jsxs("label",{onClick:w,htmlFor:f,tabIndex:A,className:E.label,children:[p,u.jsxs("div",{className:"flex flex-col gap-3 grow justify-between",children:[u.jsxs("div",{className:"flex flex-col",children:[u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:r}),u.jsx("span",{className:"text-rtext-tertiary-600",children:c})]}),x]}),u.jsx("div",{className:"flex items-start gap-2",children:g==="radio"?u.jsx(ja,{onChange:y,checked:s,disabled:d,value:h,name:v,size:a,id:f,...j}):u.jsx(Li,{...j,disabled:d,id:f,name:v,onChange:y,size:a})})]})},Zp={sm:"16",md:"20"},O6={sm:"text-sm",md:"text-md"},D6=`
|
|
172
172
|
md:w-3xl h-fit min-w-[343px] text-rtext-tertiary-600 rounded-2xl flex group gap-2 cursor-pointer
|
|
173
|
-
border-2 border-rborder-secondary rounded-2xl`,k6=({checked:a,disabled:r,size:c,hasHeader:s})=>({label:`${D6} ${s?"flex-col":"p-4"} ${c&&O6[c]} ${r?"bg-rbg-disabled-subtle":"group"} ${a?"!border-rbg-brand-solid":""}`}),L6=({stroke:a="#344054",fill:r="none",width:c="16",className:s="",height:d="16"})=>u.jsx(u.Fragment,{children:u.jsx("svg",{"data-testid":"layer-icon",xmlns:"http://www.w3.org/2000/svg",width:c,height:d,className:s,viewBox:"0 0 16 16",fill:r,children:u.jsx("path",{d:"M1.33325 9.66669L7.7614 12.8808C7.84886 12.9245 7.89259 12.9464 7.93845 12.955C7.97908 12.9626 8.02076 12.9626 8.06139 12.955C8.10725 12.9464 8.15098 12.9245 8.23843 12.8808L14.6666 9.66669M1.33325 6.33336L7.7614 3.11928C7.84886 3.07555 7.89259 3.05369 7.93845 3.04508C7.97908 3.03746 8.02076 3.03746 8.06139 3.04508C8.10725 3.05369 8.15098 3.07555 8.23843 3.11928L14.6666 6.33336L8.23843 9.54743C8.15098 9.59116 8.10725 9.61302 8.06139 9.62163C8.02076 9.62925 7.97908 9.62925 7.93845 9.62163C7.89259 9.61302 7.84886 9.59116 7.7614 9.54743L1.33325 6.33336Z",stroke:a,strokeWidth:"1.333",strokeLinecap:"round",strokeLinejoin:"round"})})}),j0=S.memo(L6);function ys({children:a,className:r,...c}){return u.jsx("div",{className:`${r} flex items-center justify-center border border-disabled-subtle-br rounded-md shadow-rshadow-sm-01 p-2.5 w-fit h-fit`,...c,children:a})}function B6({per:a,size:r="sm",title:c="",description:s,price:d,id:f,checkboxIndex:h,checked:x,name:p="",value:g="",inputProps:y,onChange:v,type:w,onCardClick:j,disabled:A}){return u.jsxs(u.Fragment,{children:[u.jsx(ys,{"data-testid":"icon-wrapper",children:u.jsx(j0,{width:Zp[r],height:Zp[r]})}),u.jsxs("div",{onClick:j,className:"flex flex-col grow justify-between",children:[u.jsxs("div",{className:"flex",children:[u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:c})," ",u.jsxs("span",{children:[d,"/",a]})]}),u.jsx("div",{className:"text-muted-foreground",children:s})]}),u.jsx("div",{className:"flex items-start gap-2",children:w==="radio"?u.jsx(ja,{onChange:v,checked:x,disabled:A,value:g,name:p,size:r,id:f,...y}):u.jsx(Li,{...y,disabled:A,id:f,name:p,onChange:v,size:r,value:g,checkboxIndex:h,checked:x})})]})}const H6=({title:a,size:r,disabled:c,checkboxIndex:s,id:d,name:f="",value:h="",onChange:x,inputProps:p,checked:g,type:y,...v})=>{const w=c||"group-focus-within:border-rbg-brand-solid group-focus-within:border-b-2 border-b";return u.jsxs("div",{"data-testid":"header",className:`flex items-center border-b-2 border-rborder-secondary p-4 w-full gap-2 ${w}`,...v,children:[u.jsx(ys,{children:u.jsx(j0,{width:"20",height:"20"})}),u.jsx("div",{className:"flex flex-col grow justify-between",children:u.jsx("div",{className:"flex text-sm",children:u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:a})})}),u.jsx("div",{className:"flex items-start gap-2",children:y==="radio"?u.jsx(ja,{onChange:x,checked:g,disabled:c,value:h,name:f,size:r,id:d,...p}):u.jsx(Li,{checkboxIndex:s,disabled:c,id:d,name:f,onChange:x,size:r,value:h,...p})})]})};function U6({per:a,size:r="sm",title:c="",price:s,description:d,checked:f,badgeContent:h,checkboxIndex:x=1,id:p="",value:g="value",name:y="",onChange:v,disabled:w,type:j}){return u.jsxs(u.Fragment,{children:[u.jsx(H6,{type:j,onChange:v,name:y,disabled:w,checked:f,value:g,"data-testid":"header",checkboxIndex:x,title:c,size:r,id:p}),u.jsxs("div",{className:"p-4 flex w-full",children:[u.jsxs("div",{className:"grow space-y-1",children:[u.jsxs("div",{className:"flex items-end text-sm gap-1",children:[u.jsx("span",{className:"text-3xl font-semibold text-foreground text-rtext-secondary-700",children:s}),u.jsx("span",{className:"h-fit",children:a})]}),u.jsx("div",{children:d})]}),u.jsx("span",{children:h&&u.jsx(Ti,{size:"md",type:"badgeColor",dir:"rtl",color:"success",className:"!bg-white !border-rborder-primary !text-rtext-secondary-700",icon:u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rfg-success-primary"}),children:h})})]})]})}const rs=({hasHeader:a=!1,per:r,size:c="sm",title:s="",description:d,price:f,badgeContent:h,checked:x,disabled:p,type:g,name:y,value:v,onChange:w,onCardClick:j,id:A,checkboxIndex:E})=>{const N=a?U6:B6,
|
|
173
|
+
border-2 border-rborder-secondary rounded-2xl`,k6=({checked:a,disabled:r,size:c,hasHeader:s})=>({label:`${D6} ${s?"flex-col":"p-4"} ${c&&O6[c]} ${r?"bg-rbg-disabled-subtle":"group"} ${a?"!border-rbg-brand-solid":""}`}),L6=({stroke:a="#344054",fill:r="none",width:c="16",className:s="",height:d="16"})=>u.jsx(u.Fragment,{children:u.jsx("svg",{"data-testid":"layer-icon",xmlns:"http://www.w3.org/2000/svg",width:c,height:d,className:s,viewBox:"0 0 16 16",fill:r,children:u.jsx("path",{d:"M1.33325 9.66669L7.7614 12.8808C7.84886 12.9245 7.89259 12.9464 7.93845 12.955C7.97908 12.9626 8.02076 12.9626 8.06139 12.955C8.10725 12.9464 8.15098 12.9245 8.23843 12.8808L14.6666 9.66669M1.33325 6.33336L7.7614 3.11928C7.84886 3.07555 7.89259 3.05369 7.93845 3.04508C7.97908 3.03746 8.02076 3.03746 8.06139 3.04508C8.10725 3.05369 8.15098 3.07555 8.23843 3.11928L14.6666 6.33336L8.23843 9.54743C8.15098 9.59116 8.10725 9.61302 8.06139 9.62163C8.02076 9.62925 7.97908 9.62925 7.93845 9.62163C7.89259 9.61302 7.84886 9.59116 7.7614 9.54743L1.33325 6.33336Z",stroke:a,strokeWidth:"1.333",strokeLinecap:"round",strokeLinejoin:"round"})})}),j0=S.memo(L6);function ys({children:a,className:r,...c}){return u.jsx("div",{className:`${r} flex items-center justify-center border border-disabled-subtle-br rounded-md shadow-rshadow-sm-01 p-2.5 w-fit h-fit`,...c,children:a})}function B6({per:a,size:r="sm",title:c="",description:s,price:d,id:f,checkboxIndex:h,checked:x,name:p="",value:g="",inputProps:y,onChange:v,type:w,onCardClick:j,disabled:A}){return u.jsxs(u.Fragment,{children:[u.jsx(ys,{"data-testid":"icon-wrapper",children:u.jsx(j0,{width:Zp[r],height:Zp[r]})}),u.jsxs("div",{onClick:j,className:"flex flex-col grow justify-between",children:[u.jsxs("div",{className:"flex",children:[u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:c})," ",u.jsxs("span",{children:[d,"/",a]})]}),u.jsx("div",{className:"text-muted-foreground",children:s})]}),u.jsx("div",{className:"flex items-start gap-2",children:w==="radio"?u.jsx(ja,{onChange:v,checked:x,disabled:A,value:g,name:p,size:r,id:f,...y}):u.jsx(Li,{...y,disabled:A,id:f,name:p,onChange:v,size:r,value:g,checkboxIndex:h,checked:x})})]})}const H6=({title:a,size:r,disabled:c,checkboxIndex:s,id:d,name:f="",value:h="",onChange:x,inputProps:p,checked:g,type:y,...v})=>{const w=c||"group-focus-within:border-rbg-brand-solid group-focus-within:border-b-2 border-b";return u.jsxs("div",{"data-testid":"header",className:`flex items-center border-b-2 border-rborder-secondary p-4 w-full gap-2 ${w}`,...v,children:[u.jsx(ys,{children:u.jsx(j0,{width:"20",height:"20"})}),u.jsx("div",{className:"flex flex-col grow justify-between",children:u.jsx("div",{className:"flex text-sm",children:u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:a})})}),u.jsx("div",{className:"flex items-start gap-2",children:y==="radio"?u.jsx(ja,{onChange:x,checked:g,disabled:c,value:h,name:f,size:r,id:d,...p}):u.jsx(Li,{checkboxIndex:s,disabled:c,id:d,name:f,onChange:x,size:r,value:h,...p})})]})};function U6({per:a,size:r="sm",title:c="",price:s,description:d,checked:f,badgeContent:h,checkboxIndex:x=1,id:p="",value:g="value",name:y="",onChange:v,disabled:w,type:j}){return u.jsxs(u.Fragment,{children:[u.jsx(H6,{type:j,onChange:v,name:y,disabled:w,checked:f,value:g,"data-testid":"header",checkboxIndex:x,title:c,size:r,id:p}),u.jsxs("div",{className:"p-4 flex w-full",children:[u.jsxs("div",{className:"grow space-y-1",children:[u.jsxs("div",{className:"flex items-end text-sm gap-1",children:[u.jsx("span",{className:"text-3xl font-semibold text-foreground text-rtext-secondary-700",children:s}),u.jsx("span",{className:"h-fit",children:a})]}),u.jsx("div",{children:d})]}),u.jsx("span",{children:h&&u.jsx(Ti,{size:"md",type:"badgeColor",dir:"rtl",color:"success",className:"!bg-white !border-rborder-primary !text-rtext-secondary-700",icon:u.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-rfg-success-primary"}),children:h})})]})]})}const rs=({hasHeader:a=!1,per:r,size:c="sm",title:s="",description:d,price:f,badgeContent:h,checked:x,disabled:p,type:g,name:y,value:v,onChange:w,onCardClick:j,id:A,checkboxIndex:E})=>{const N=a?U6:B6,R=k6({checked:x,disabled:p,hasHeader:a,size:c});return u.jsx("label",{onClick:j,htmlFor:A,tabIndex:E,className:R.label,children:u.jsx(N,{type:g,checkboxIndex:E,checked:x,name:y,per:r,size:c,title:s,description:d,price:f,badgeContent:h,id:A,value:v,disabled:p,onChange:w})})},V6={sm:"text-sm",md:"text-md"},q6={sm:"w-8 h-8",md:"w-10 h-10"},G6=`
|
|
174
174
|
min-w-[343px] md:w-3xl rounded-xl flex group gap-2 cursor-pointer
|
|
175
|
-
border-2 border-rborder-secondary rounded-2xl text-rtext-tertiary-600`,Y6=({checked:a,disabled:r,size:c,hasHeader:s})=>({label:` ${G6} p-4 ${c&&V6[c]} ${r?"bg-rbg-disabled-subtle":"group"} ${a?"!border-rbg-brand-solid":""}`}),ss=({size:a="sm",description:r,checked:c,disabled:s,id:d,value:f="",type:h="checkbox",onChange:x,name:p="",inputProps:g,username:y,checkboxIndex:v,userFullName:w,cardOnclick:j})=>{const A=Y6({checked:c,disabled:s,hasHeader:!1,size:a});return u.jsxs("label",{onClick:j,htmlFor:d,tabIndex:v,className:A.label,children:[u.jsx("img",{src:"/Avatar.png",alt:"avatar",role:"avatar",className:`rounded-full ${q6[a]}`}),u.jsx("div",{className:"flex flex-col gap-3 grow justify-between",children:u.jsxs("div",{className:"flex flex-col",children:[u.jsxs("div",{className:"flex gap-1",children:[u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:w}),u.jsx("span",{className:"text-rtext-tertiary-600",children:y})]}),u.jsx("span",{className:"text-rtext-tertiary-600",children:r})]})}),u.jsx("div",{className:"flex items-start gap-2",children:h==="radio"?u.jsx(ja,{onChange:x,checked:c,disabled:s,value:f,name:p,size:a,id:d,...g}):u.jsx(Li,{...g,disabled:s,id:d,name:p,checked:c,onChange:x,size:a,value:f})})]})},X6=(a,r=50)=>r+a*10,C0=(a,r=40)=>r+a*10,Z6=Lt("",{variants:{direction:{down:"",up:"",left:"",right:""},alignment:{left:"",right:"",top:"",bottom:""}},compoundVariants:[{direction:"down",alignment:"left",class:"origin-top-right right-0 mt-2"},{direction:"down",alignment:"right",class:"origin-top-left left-0 mt-2"},{direction:"down",alignment:"top",class:"origin-top-center left-1/2 -translate-x-1/2 mt-2"},{direction:"down",alignment:"bottom",class:"origin-top-center left-1/2 -translate-x-1/2 mt-2"},{direction:"up",alignment:"left",class:"origin-bottom-right right-0 bottom-full mb-2"},{direction:"up",alignment:"right",class:"origin-bottom-left left-0 bottom-full mb-2"},{direction:"up",alignment:"top",class:"origin-bottom-center left-1/2 -translate-x-1/2 bottom-full mb-2"},{direction:"up",alignment:"bottom",class:"origin-bottom-center left-1/2 -translate-x-1/2 bottom-full mb-2"},{direction:"left",alignment:"top",class:"origin-top-right top-0 right-full mr-2"},{direction:"left",alignment:"bottom",class:"origin-bottom-right bottom-0 right-full mr-2"},{direction:"left",alignment:"left",class:"origin-center right-full mr-2 top-1/2 -translate-y-1/2"},{direction:"left",alignment:"right",class:"origin-center right-full mr-2 top-1/2 -translate-y-1/2"},{direction:"right",alignment:"top",class:"origin-top-left top-0 left-full ml-2"},{direction:"right",alignment:"bottom",class:"origin-bottom-left bottom-0 left-full ml-2"},{direction:"right",alignment:"left",class:"origin-center left-full ml-2 top-1/2 -translate-y-1/2"},{direction:"right",alignment:"right",class:"origin-center left-full ml-2 top-1/2 -translate-y-1/2"}],defaultVariants:{direction:"down",alignment:"right"}}),Ei=({children:a,toggleBtn:r,direction:c="down",alignment:s="right",dropDownClassName:d="",autoAdjust:f=!0,open:h,onOpenChange:x})=>{const[p,g]=S.useState(!1),[y,v]=S.useState(c),[w,j]=S.useState(s),A=h!==void 0&&typeof x=="function",E=h??p,N=S.useRef(null),
|
|
175
|
+
border-2 border-rborder-secondary rounded-2xl text-rtext-tertiary-600`,Y6=({checked:a,disabled:r,size:c,hasHeader:s})=>({label:` ${G6} p-4 ${c&&V6[c]} ${r?"bg-rbg-disabled-subtle":"group"} ${a?"!border-rbg-brand-solid":""}`}),ss=({size:a="sm",description:r,checked:c,disabled:s,id:d,value:f="",type:h="checkbox",onChange:x,name:p="",inputProps:g,username:y,checkboxIndex:v,userFullName:w,cardOnclick:j})=>{const A=Y6({checked:c,disabled:s,hasHeader:!1,size:a});return u.jsxs("label",{onClick:j,htmlFor:d,tabIndex:v,className:A.label,children:[u.jsx("img",{src:"/Avatar.png",alt:"avatar",role:"avatar",className:`rounded-full ${q6[a]}`}),u.jsx("div",{className:"flex flex-col gap-3 grow justify-between",children:u.jsxs("div",{className:"flex flex-col",children:[u.jsxs("div",{className:"flex gap-1",children:[u.jsx("h3",{className:"font-medium text-foreground text-rtext-secondary-700",children:w}),u.jsx("span",{className:"text-rtext-tertiary-600",children:y})]}),u.jsx("span",{className:"text-rtext-tertiary-600",children:r})]})}),u.jsx("div",{className:"flex items-start gap-2",children:h==="radio"?u.jsx(ja,{onChange:x,checked:c,disabled:s,value:f,name:p,size:a,id:d,...g}):u.jsx(Li,{...g,disabled:s,id:d,name:p,checked:c,onChange:x,size:a,value:f})})]})},X6=(a,r=50)=>r+a*10,C0=(a,r=40)=>r+a*10,Z6=Lt("",{variants:{direction:{down:"",up:"",left:"",right:""},alignment:{left:"",right:"",top:"",bottom:""}},compoundVariants:[{direction:"down",alignment:"left",class:"origin-top-right right-0 mt-2"},{direction:"down",alignment:"right",class:"origin-top-left left-0 mt-2"},{direction:"down",alignment:"top",class:"origin-top-center left-1/2 -translate-x-1/2 mt-2"},{direction:"down",alignment:"bottom",class:"origin-top-center left-1/2 -translate-x-1/2 mt-2"},{direction:"up",alignment:"left",class:"origin-bottom-right right-0 bottom-full mb-2"},{direction:"up",alignment:"right",class:"origin-bottom-left left-0 bottom-full mb-2"},{direction:"up",alignment:"top",class:"origin-bottom-center left-1/2 -translate-x-1/2 bottom-full mb-2"},{direction:"up",alignment:"bottom",class:"origin-bottom-center left-1/2 -translate-x-1/2 bottom-full mb-2"},{direction:"left",alignment:"top",class:"origin-top-right top-0 right-full mr-2"},{direction:"left",alignment:"bottom",class:"origin-bottom-right bottom-0 right-full mr-2"},{direction:"left",alignment:"left",class:"origin-center right-full mr-2 top-1/2 -translate-y-1/2"},{direction:"left",alignment:"right",class:"origin-center right-full mr-2 top-1/2 -translate-y-1/2"},{direction:"right",alignment:"top",class:"origin-top-left top-0 left-full ml-2"},{direction:"right",alignment:"bottom",class:"origin-bottom-left bottom-0 left-full ml-2"},{direction:"right",alignment:"left",class:"origin-center left-full ml-2 top-1/2 -translate-y-1/2"},{direction:"right",alignment:"right",class:"origin-center left-full ml-2 top-1/2 -translate-y-1/2"}],defaultVariants:{direction:"down",alignment:"right"}}),Ei=({children:a,toggleBtn:r,direction:c="down",alignment:s="right",dropDownClassName:d="",autoAdjust:f=!0,open:h,onOpenChange:x})=>{const[p,g]=S.useState(!1),[y,v]=S.useState(c),[w,j]=S.useState(s),A=h!==void 0&&typeof x=="function",E=h??p,N=S.useRef(null),R=S.useRef(null),H=S.useRef(0);S.useEffect(()=>{const V=$=>{N.current&&!N.current.contains($.target)&&O(!1)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]),S.useLayoutEffect(()=>{if(!f){v(c),j(s);return}if(E&&N.current&&R.current){const V=N.current.getBoundingClientRect(),$=R.current.getBoundingClientRect(),J=$.width||200,Q=$.height||200,q=window.innerHeight-V.bottom,te=V.top,ee=window.innerWidth-V.right,le=V.left;if(c==="down"||c==="up")q<Q&&te>q?v("up"):v("down"),j(s);else if(c==="left"||c==="right")c==="left"?le<J&&ee>le?v("right"):v("left"):c==="right"&&(ee<J&&le>ee?v("left"):v("right")),j(s);else{const re=Math.max(q,te),he=Math.max(ee,le);re>he?(q>te?v("down"):v("up"),j(s)):(ee>le?v("right"):v("left"),j(s))}}},[E,c,s,f]);const O=V=>{A&&x?x(V):g(V)};return u.jsxs("div",{className:"relative inline-block",ref:N,children:[u.jsx(on,{...r,onClick:()=>O(!E)}),E&&u.jsx("div",{ref:R,style:{zIndex:C0(H.current)},className:W("absolute border border-rborder-secondary w-fit rounded-md shadow-lg bg-rbg-primary",Z6({direction:y,alignment:w}),d),children:a})]})},Q6=({icon:a,mainText:r,subText:c,formatText:s,acceptableFormats:d,disable:f,multiItem:h,onChange:x})=>u.jsx("div",{className:W("relative w-full py-4 px-6 flex justify-center items-center gap-1 rounded-xl border border-rborder-secondary bg-rbg-primary ",f&&"bg-rbg-disabled-subtle",!f&&"hover:border-rborder-brand focus:border-rborder-brand focus-within:border-rborder-brand"),children:u.jsxs("div",{className:"text-center flex flex-col justify-center items-center gap-2",children:[a??u.jsx(on,{variant:"secondaryGray","aria-hidden":"true",disabled:f,children:u.jsx(Iy,{"data-testid":"default-uploadcloud"})}),u.jsxs("div",{className:"flex flex-col justify-center items-center gap-1",children:[u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsxs("label",{htmlFor:"file-upload",className:W(" cursor-pointer rounded-md text-rbutton-tertiary-color-fg font-normal text-sm",f&&"text-rbg-disabled-subtle"),children:[u.jsx("span",{className:W(f&&"text-rfg-disabled"),children:r}),u.jsx("input",{id:"file-upload",name:"file-upload","data-testid":"file-input",type:"file",className:"absolute overflow-hidden top-0 left-0 w-full h-full opacity-0 cursor-pointer",disabled:f,multiple:h,accept:d?Array.isArray(d)?d.map(p=>p.startsWith(".")?p:`.${p}`).join(", "):d:void 0,onChange:x})]}),u.jsx("p",{className:"text-rtext-tertiary-600 text-sm",children:c})]}),u.jsx("p",{className:"text-xs text-rtext-tertiary-600 font-normal",children:s})]})]})});var Fu="Progress",Wu=100,[K6]=un(Fu),[$6,J6]=K6(Fu),A0=S.forwardRef((a,r)=>{const{__scopeProgress:c,value:s=null,max:d,getValueLabel:f=F6,...h}=a;(d||d===0)&&!Qp(d)&&console.error(W6(`${d}`,"Progress"));const x=Qp(d)?d:Wu;s!==null&&!Kp(s,x)&&console.error(I6(`${s}`,"Progress"));const p=Kp(s,x)?s:null,g=bs(p)?f(p,x):void 0;return u.jsx($6,{scope:c,value:p,max:x,children:u.jsx(Ue.div,{"aria-valuemax":x,"aria-valuemin":0,"aria-valuenow":bs(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":T0(p,x),"data-value":p??void 0,"data-max":x,...h,ref:r})})});A0.displayName=Fu;var N0="ProgressIndicator",E0=S.forwardRef((a,r)=>{const{__scopeProgress:c,...s}=a,d=J6(N0,c);return u.jsx(Ue.div,{"data-state":T0(d.value,d.max),"data-value":d.value??void 0,"data-max":d.max,...s,ref:r})});E0.displayName=N0;function F6(a,r){return`${Math.round(a/r*100)}%`}function T0(a,r){return a==null?"indeterminate":a===r?"complete":"loading"}function bs(a){return typeof a=="number"}function Qp(a){return bs(a)&&!isNaN(a)&&a>0}function Kp(a,r){return bs(a)&&!isNaN(a)&&a<=r&&a>=0}function W6(a,r){return`Invalid prop \`max\` of value \`${a}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Wu}\`.`}function I6(a,r){return`Invalid prop \`value\` of value \`${a}\` supplied to \`${r}\`. The \`value\` prop must be:
|
|
176
176
|
- a positive number
|
|
177
177
|
- less than the value passed to \`max\` (or ${Wu} if no \`max\` prop is set)
|
|
178
178
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
179
179
|
|
|
180
|
-
Defaulting to \`null\`.`}var P6=A0,ew=E0;const $p={xxs:"w-[64px] h-[64px]",xs:"w-[160px] h-[160px]",sm:"w-[200px] h-[200px]",md:"w-[240px] h-[240px]",lg:"w-[280px] h-[280px]"},tw={xxs:64,xs:160,sm:200,md:240,lg:280},ws=S.forwardRef(({type:a="line",value:r=0,label:c,labelClassName:s,backgroundVariant:d,indicatorVariant:f,className:h,size:x="md",strokeWidth:p=16,svgClassName:g,...y},v)=>{const w=Math.min(Math.max(r??0,0),100),j=tw[x]||240,A=(j-p)/2;if(a==="half-circle"){const E=Math.PI*A,N=E-w/100*E;return u.jsxs("div",{className:W("relative flex items-center justify-center",$p[x],h),ref:v,...y,children:[u.jsxs("svg",{width:j,height:j/2,className:W("rotate-[-90deg]",g),children:[u.jsx("circle",{stroke:"#e5e7eb",fill:"transparent",strokeWidth:p,r:A,cx:j/2,cy:j/2}),u.jsx("circle",{fill:"transparent",strokeWidth:p,strokeLinecap:"round",strokeDasharray:E,strokeDashoffset:E-N,r:A,cx:j/2,cy:j/2,style:{transition:"stroke-dashoffset 0.5s ease"},className:f})]}),c!==void 0&&u.jsxs("span",{className:W("absolute text-sm font-semibold text-muted-foreground",s),children:[c,"%"]})]})}if(a==="circle"){const E=2*Math.PI*A,N=E-w/100*E;return u.jsxs("div",{className:W("relative flex items-center justify-center",$p[x],h),ref:v,...y,children:[u.jsxs("svg",{width:j,height:j,className:W("rotate-[-90deg]",g),children:[u.jsx("circle",{stroke:"#e5e7eb",fill:"transparent",strokeWidth:p,r:A,cx:j/2,cy:j/2}),u.jsx("circle",{fill:"transparent",strokeWidth:p,strokeLinecap:"round",strokeDasharray:E,strokeDashoffset:N,r:A,cx:j/2,cy:j/2,style:{transition:"stroke-dashoffset 0.5s ease"},className:f})]}),c!==void 0&&u.jsxs("span",{className:W("absolute text-sm font-semibold text-muted-foreground",s),children:[c,"%"]})]})}return u.jsxs("div",{className:"flex items-center gap-4 w-full",children:[u.jsx(P6,{ref:v,className:W("relative h-4 w-full overflow-hidden rounded-full bg-muted",d,h),...y,children:u.jsx(ew,{className:W("h-full transition-transform duration-300",f),style:{transform:`translateX(-${100-r}%)`}})}),typeof c=="number"&&u.jsxs("span",{className:W("text-sm text-muted-foreground min-w-[40px] text-right",s),children:[c,"%"]})]})});ws.displayName="Progress";const M0=({width:a=40,height:r=40})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:r,viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M11.6667 1.89118V5.33329C11.6667 5.8 11.6667 6.03336 11.7575 6.21162C11.8374 6.36842 11.9649 6.4959 12.1217 6.5758C12.3 6.66663 12.5333 6.66663 13 6.66663H16.4422M16.6667 8.32348V14.3333C16.6667 15.7334 16.6667 16.4335 16.3942 16.9683C16.1545 17.4387 15.7721 17.8211 15.3017 18.0608C14.7669 18.3333 14.0668 18.3333 12.6667 18.3333H7.33337C5.93324 18.3333 5.23318 18.3333 4.6984 18.0608C4.22799 17.8211 3.84554 17.4387 3.60586 16.9683C3.33337 16.4335 3.33337 15.7334 3.33337 14.3333V5.66663C3.33337 4.26649 3.33337 3.56643 3.60586 3.03165C3.84554 2.56124 4.22799 2.17879 4.6984 1.93911C5.23318 1.66663 5.93324 1.66663 7.33337 1.66663H10.0099C10.6213 1.66663 10.9271 1.66663 11.2148 1.7357C11.4699 1.79694 11.7137 1.89795 11.9374 2.03503C12.1897 2.18963 12.4059 2.40582 12.8383 2.8382L15.4951 5.49505C15.9275 5.92743 16.1437 6.14362 16.2983 6.39591C16.4354 6.61959 16.5364 6.86346 16.5976 7.11855C16.6667 7.40627 16.6667 7.712 16.6667 8.32348Z",stroke:"#98A2B3",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),nw=({item:a,loadType:r,onDelete:c})=>u.jsxs("div",{className:W("p-4 flex gap-3 w-full rounded-xl border border-rborder-secondary bg-rbg-primary",(a==null?void 0:a.status)=="failed"&&"border-rborder-error"),children:[u.jsx("div",{className:" flex justify-start items-start w-10 h-10",children:(a==null?void 0:a.icon)??u.jsx(M0,{width:20,height:20,"data-testid":"fallback-icon"})}),u.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("div",{className:"flex flex-col w-1/2",children:[u.jsx("span",{className:"font-medium text-rtext-secondary-700 overflow-hidden text-ellipsis text-sm",children:a==null?void 0:a.title}),u.jsx("span",{className:"text-rtext-tertiary-600 font-normal text-sm overflow-hidden text-ellipsis",children:a==null?void 0:a.size})]}),u.jsx(on,{className:W("self-centertext-rbutton-tertiary-fg",(a==null?void 0:a.status)=="failed"&&"text-rbutton-secondary-error-fg"),onClick:()=>{c(a==null?void 0:a.id)},variant:"linkGray",children:u.jsx(ob,{width:20,height:20})})]}),r=="progressBar"&&u.jsx(ws,{type:"line",value:a==null?void 0:a.progressValue,label:a==null?void 0:a.percentage,size:"lg",indicatorVariant:"bg-rfg-brand-primary-600",backgroundVariant:"bg-rbg-quaternary",dir:"rtl",className:"h-2",labelClassName:"text-end"})]})]}),lw=({icon:a,mainText:r,subText:c,formatText:s,acceptableFormats:d="",disable:f=!1,items:h,loadType:x="progressBar",multiItem:p=!1,onChange:g,onDelete:y})=>u.jsxs("div",{className:"w-full flex flex-col gap-4",children:[u.jsx(Q6,{icon:a,mainText:r,subText:c,formatText:s,acceptableFormats:d,disable:f,multiItem:p,onChange:g}),h&&h.length>0&&u.jsx("div",{className:"flex flex-col gap-3",children:h.map(v=>u.jsx(nw,{item:v,loadType:x,onDelete:y},v==null?void 0:v.title))})]}),os=(a,r,c)=>Math.min(Math.max(a,r),c),du={x:0,y:0};function aw({src:a,alt:r="",zoom:c=2,lensSize:s=140,className:d="",lensVisibleClassName:f="hidden md:block",zoomPaneVisibleClassName:h="hidden md:block",touchToggle:x=!0,zoomPaneSize:p,zoomPanePosition:g="right",zoomMode:y="pane"}){var ge;const v=S.useRef(null),w=S.useRef(null),[j,A]=S.useState(!1),[E,N]=S.useState(du),[
|
|
180
|
+
Defaulting to \`null\`.`}var P6=A0,ew=E0;const $p={xxs:"w-[64px] h-[64px]",xs:"w-[160px] h-[160px]",sm:"w-[200px] h-[200px]",md:"w-[240px] h-[240px]",lg:"w-[280px] h-[280px]"},tw={xxs:64,xs:160,sm:200,md:240,lg:280},ws=S.forwardRef(({type:a="line",value:r=0,label:c,labelClassName:s,backgroundVariant:d,indicatorVariant:f,className:h,size:x="md",strokeWidth:p=16,svgClassName:g,...y},v)=>{const w=Math.min(Math.max(r??0,0),100),j=tw[x]||240,A=(j-p)/2;if(a==="half-circle"){const E=Math.PI*A,N=E-w/100*E;return u.jsxs("div",{className:W("relative flex items-center justify-center",$p[x],h),ref:v,...y,children:[u.jsxs("svg",{width:j,height:j/2,className:W("rotate-[-90deg]",g),children:[u.jsx("circle",{stroke:"#e5e7eb",fill:"transparent",strokeWidth:p,r:A,cx:j/2,cy:j/2}),u.jsx("circle",{fill:"transparent",strokeWidth:p,strokeLinecap:"round",strokeDasharray:E,strokeDashoffset:E-N,r:A,cx:j/2,cy:j/2,style:{transition:"stroke-dashoffset 0.5s ease"},className:f})]}),c!==void 0&&u.jsxs("span",{className:W("absolute text-sm font-semibold text-muted-foreground",s),children:[c,"%"]})]})}if(a==="circle"){const E=2*Math.PI*A,N=E-w/100*E;return u.jsxs("div",{className:W("relative flex items-center justify-center",$p[x],h),ref:v,...y,children:[u.jsxs("svg",{width:j,height:j,className:W("rotate-[-90deg]",g),children:[u.jsx("circle",{stroke:"#e5e7eb",fill:"transparent",strokeWidth:p,r:A,cx:j/2,cy:j/2}),u.jsx("circle",{fill:"transparent",strokeWidth:p,strokeLinecap:"round",strokeDasharray:E,strokeDashoffset:N,r:A,cx:j/2,cy:j/2,style:{transition:"stroke-dashoffset 0.5s ease"},className:f})]}),c!==void 0&&u.jsxs("span",{className:W("absolute text-sm font-semibold text-muted-foreground",s),children:[c,"%"]})]})}return u.jsxs("div",{className:"flex items-center gap-4 w-full",children:[u.jsx(P6,{ref:v,className:W("relative h-4 w-full overflow-hidden rounded-full bg-muted",d,h),...y,children:u.jsx(ew,{className:W("h-full transition-transform duration-300",f),style:{transform:`translateX(-${100-r}%)`}})}),typeof c=="number"&&u.jsxs("span",{className:W("text-sm text-muted-foreground min-w-[40px] text-right",s),children:[c,"%"]})]})});ws.displayName="Progress";const M0=({width:a=40,height:r=40})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:a,height:r,viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M11.6667 1.89118V5.33329C11.6667 5.8 11.6667 6.03336 11.7575 6.21162C11.8374 6.36842 11.9649 6.4959 12.1217 6.5758C12.3 6.66663 12.5333 6.66663 13 6.66663H16.4422M16.6667 8.32348V14.3333C16.6667 15.7334 16.6667 16.4335 16.3942 16.9683C16.1545 17.4387 15.7721 17.8211 15.3017 18.0608C14.7669 18.3333 14.0668 18.3333 12.6667 18.3333H7.33337C5.93324 18.3333 5.23318 18.3333 4.6984 18.0608C4.22799 17.8211 3.84554 17.4387 3.60586 16.9683C3.33337 16.4335 3.33337 15.7334 3.33337 14.3333V5.66663C3.33337 4.26649 3.33337 3.56643 3.60586 3.03165C3.84554 2.56124 4.22799 2.17879 4.6984 1.93911C5.23318 1.66663 5.93324 1.66663 7.33337 1.66663H10.0099C10.6213 1.66663 10.9271 1.66663 11.2148 1.7357C11.4699 1.79694 11.7137 1.89795 11.9374 2.03503C12.1897 2.18963 12.4059 2.40582 12.8383 2.8382L15.4951 5.49505C15.9275 5.92743 16.1437 6.14362 16.2983 6.39591C16.4354 6.61959 16.5364 6.86346 16.5976 7.11855C16.6667 7.40627 16.6667 7.712 16.6667 8.32348Z",stroke:"#98A2B3",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),nw=({item:a,loadType:r,onDelete:c})=>u.jsxs("div",{className:W("p-4 flex gap-3 w-full rounded-xl border border-rborder-secondary bg-rbg-primary",(a==null?void 0:a.status)=="failed"&&"border-rborder-error"),children:[u.jsx("div",{className:" flex justify-start items-start w-10 h-10",children:(a==null?void 0:a.icon)??u.jsx(M0,{width:20,height:20,"data-testid":"fallback-icon"})}),u.jsxs("div",{className:"flex flex-col gap-1 w-full",children:[u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("div",{className:"flex flex-col w-1/2",children:[u.jsx("span",{className:"font-medium text-rtext-secondary-700 overflow-hidden text-ellipsis text-sm",children:a==null?void 0:a.title}),u.jsx("span",{className:"text-rtext-tertiary-600 font-normal text-sm overflow-hidden text-ellipsis",children:a==null?void 0:a.size})]}),u.jsx(on,{className:W("self-centertext-rbutton-tertiary-fg",(a==null?void 0:a.status)=="failed"&&"text-rbutton-secondary-error-fg"),onClick:()=>{c(a==null?void 0:a.id)},variant:"linkGray",children:u.jsx(ob,{width:20,height:20})})]}),r=="progressBar"&&u.jsx(ws,{type:"line",value:a==null?void 0:a.progressValue,label:a==null?void 0:a.percentage,size:"lg",indicatorVariant:"bg-rfg-brand-primary-600",backgroundVariant:"bg-rbg-quaternary",dir:"rtl",className:"h-2",labelClassName:"text-end"})]})]}),lw=({icon:a,mainText:r,subText:c,formatText:s,acceptableFormats:d="",disable:f=!1,items:h,loadType:x="progressBar",multiItem:p=!1,onChange:g,onDelete:y})=>u.jsxs("div",{className:"w-full flex flex-col gap-4",children:[u.jsx(Q6,{icon:a,mainText:r,subText:c,formatText:s,acceptableFormats:d,disable:f,multiItem:p,onChange:g}),h&&h.length>0&&u.jsx("div",{className:"flex flex-col gap-3",children:h.map(v=>u.jsx(nw,{item:v,loadType:x,onDelete:y},v==null?void 0:v.title))})]}),os=(a,r,c)=>Math.min(Math.max(a,r),c),du={x:0,y:0};function aw({src:a,alt:r="",zoom:c=2,lensSize:s=140,className:d="",lensVisibleClassName:f="hidden md:block",zoomPaneVisibleClassName:h="hidden md:block",touchToggle:x=!0,zoomPaneSize:p,zoomPanePosition:g="right",zoomMode:y="pane"}){var ge;const v=S.useRef(null),w=S.useRef(null),[j,A]=S.useState(!1),[E,N]=S.useState(du),[R,H]=S.useState({w:0,h:0}),[O,V]=S.useState(!1);S.useEffect(()=>{const P=()=>{const be=w.current;be&&H({w:be.width,h:be.height})},Ne=w.current;if(Ne)return Ne.complete&&P(),Ne.addEventListener("load",P),window.addEventListener("resize",P),()=>{Ne.removeEventListener("load",P),window.removeEventListener("resize",P)}},[a]);const $=(P,Ne)=>{const be=w.current;if(!be)return du;const Ye=be.getBoundingClientRect();if(Ye.width===0||Ye.height===0)return du;const wt=os(P-Ye.left,0,Ye.width),St=os(Ne-Ye.top,0,Ye.height);return{x:wt,y:St}},J=P=>{var be;const Ne="nativeEvent"in P?P.nativeEvent:P;if("touches"in Ne&&((be=Ne.touches)==null?void 0:be.length)>0){const Ye=Ne.touches[0];N($(Ye.clientX,Ye.clientY));return}typeof Ne.clientX=="number"&&N($(Ne.clientX,Ne.clientY))},Q=P=>{J(P)},q=()=>{A(!0)},te=()=>{A(!1),O&&V(!1)},ee=P=>{x&&(P.preventDefault(),O?(V(!1),A(!1)):(V(!0),A(!0),J(P)))},le=P=>{O&&(P.preventDefault(),J(P))},re=(ge=w.current)==null?void 0:ge.getBoundingClientRect(),he=(re==null?void 0:re.width)??R.w,fe=(re==null?void 0:re.height)??R.h,pe=he||1,_=fe||1,G=`${pe*c}px ${_*c}px`,B=`${E.x/pe*100}% ${E.y/_*100}%`,oe=p??pe,me=p??_,T={width:s,height:s,left:os(E.x-s/2,0,Math.max(pe-s,0)),top:os(E.y-s/2,0,Math.max(_-s,0)),backgroundImage:y==="inline"?`url(${a})`:"none",backgroundRepeat:"no-repeat",backgroundSize:y==="inline"?G:void 0,backgroundPosition:y==="inline"?B:void 0},X={width:oe,height:me,backgroundImage:`url(${a})`,backgroundRepeat:"no-repeat",backgroundSize:G,backgroundPosition:B},F=g==="left",I=j?f:"hidden",ue=y==="pane"&&j?h:"hidden";return u.jsxs("div",{className:`relative w-fit inline-block align-top ${d}`,children:[u.jsxs("div",{ref:v,className:"relative select-none touch-none",onMouseMove:Q,onMouseEnter:q,onMouseLeave:te,onTouchStart:ee,onTouchMove:le,onTouchEnd:te,children:[u.jsx("img",{ref:w,src:a,alt:r,className:"block max-w-full h-auto select-none",draggable:!1,onDragStart:P=>P.preventDefault()}),u.jsx("div",{className:`pointer-events-none absolute rounded-full border-2 border-white shadow-lg ${I} ${y==="inline"?"bg-white/10 backdrop-blur":"bg-transparent"}`,style:T})]}),u.jsx("div",{className:`${ue} absolute top-1/2 -translate-y-1/2 overflow-hidden rounded-lg border border-slate-200 shadow-sm
|
|
181
181
|
${F?"right-full mr-3":"left-full ml-3"}
|
|
182
|
-
`,style:X})]})}const iw="rounded-md px-2 shadow-xs w-fit bg-white border border-rborder-primary focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled",rw="h-full absolute text-sm text-rfg-tertiary-600 ltr:left-3 rtl:right-3 top-1/2 -translate-y-1/2 border-e pe-2 w-15 truncate text-center",sw="flex items-center gap-1 h-full absolute text-sm text-rbutton-secondary-fg cursor-pointer ltr:right-3 rtl:left-3 top-1/2 -translate-y-1/2 border-s ps-2",ow="flex items-center h-full absolute text-rfg-tertiary-600 ltr:right-0 rtl:left-0 top-1/2 -translate-y-1/2 border-s",cw={sm:"text-xs ps-2 pe-2",md:"text-sm ps-5 pe-5",lg:"text-base ps-8 pe-8",xl:"text-base ps-11 pe-11"},uw={sm:"h-9.5 py-2.5",md:"h-10.5 pt-3 pb-3"},dw="!border-2 !border-rborder-error focus:!outline-0",fw="bg-rbg-disabled-subtle border-rborder-disabled",mw="ltr:right-2 rtl:left-2",hw="ltr:right-20 rtl:left-20",pw="ltr:right-20 rtl:left-20",gw="ltr:right-12 rtl:left-12",xw={default:"pe-8",iconLeading:"ps-10",leadingDropdown:"pe-8",trailingDropdown:"pe-8 ps-6",leadingText:"pe-8 ps-20",trailingButton:"pe-8",shaba:"pe-12"},vw=Lt(iw,{variants:{size:uw,inputType:xw},defaultVariants:{size:"sm",inputType:"default"}}),ks=({id:a,label:r,required:c,labelClass:s,labelStarClass:d})=>u.jsxs("label",{htmlFor:a,className:Dt("text-sm font-medium text-rtext-secondary-700",s),children:[r,c&&u.jsx("span",{className:Dt("dv-required-label text-rtext-brand-tertiary-600 mx-1",d),children:"*"})]}),yw=({stroke:a="#98A2B3",fill:r="none",width:c="16",height:s="16"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 16 16",fill:r,children:u.jsx("path",{d:"M6.05998 5.99998C6.21672 5.55442 6.52608 5.17872 6.93328 4.9394C7.34048 4.70009 7.81924 4.61261 8.28476 4.69245C8.75028 4.7723 9.17252 5.01433 9.4767 5.37567C9.78087 5.737 9.94735 6.19433 9.94665 6.66665C9.94665 7.99998 7.94665 8.66665 7.94665 8.66665M7.99998 11.3333H8.00665M14.6666 7.99998C14.6666 11.6819 11.6819 14.6666 7.99998 14.6666C4.31808 14.6666 1.33331 11.6819 1.33331 7.99998C1.33331 4.31808 4.31808 1.33331 7.99998 1.33331C11.6819 1.33331 14.6666 4.31808 14.6666 7.99998Z",stroke:a,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),Iu=S.memo(yw),Jp=(a,r)=>{S.useEffect(()=>{const c=s=>{!a.current||a.current.contains(s.target)||r()};return document.addEventListener("mousedown",c),document.addEventListener("touchstart",c),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("touchstart",c)}},[a,r])},bw="absolute left-1/2 z-10 max-h-[200px] w-72 -translate-x-1/2 -translate-y-11 transform overflow-auto rounded bg-gray-500 p-3 text-start text-xs text-white shadow-md transition-all duration-200",ww="flex items-center justify-between w-full bg-white border border-rborder-primary rounded-md px-2 shadow-xs text-sm text-dark/80 focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-500 px-4 py-2 text-left",Sw="absolute left-0 mt-1 w-full rounded-md bg-gray-50 shadow-lg border border-rborder-primary z-50",z0=({config:a,isLoading:r=!1,disabled:c=!1,className:s,tooltipClass:d,tooltipTitle:f,selectedValueLabel:h,onChange:x,options:p,buttonClass:g,contentClass:y,labelClass:v,labelStarClass:w})=>{var _;const{label:j,name:A,errorText:E,hintText:N,isRequiredInput:
|
|
183
|
-
${x===!0?"border-rborder-error":"border-rborder-primary"}`,children:j}),c=="trailingDropdown"&&u.jsx("p",{className:"absolute ltr:left-2 rtl:right-2 top-1/2 -translate-y-1/2",children:re?re==null?void 0:re.icon:N==null?void 0:N.icon}),u.jsx("input",{value:H,name:$,onChange:
|
|
182
|
+
`,style:X})]})}const iw="rounded-md px-2 shadow-xs w-fit bg-white border border-rborder-primary focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled",rw="h-full absolute text-sm text-rfg-tertiary-600 ltr:left-3 rtl:right-3 top-1/2 -translate-y-1/2 border-e pe-2 w-15 truncate text-center",sw="flex items-center gap-1 h-full absolute text-sm text-rbutton-secondary-fg cursor-pointer ltr:right-3 rtl:left-3 top-1/2 -translate-y-1/2 border-s ps-2",ow="flex items-center h-full absolute text-rfg-tertiary-600 ltr:right-0 rtl:left-0 top-1/2 -translate-y-1/2 border-s",cw={sm:"text-xs ps-2 pe-2",md:"text-sm ps-5 pe-5",lg:"text-base ps-8 pe-8",xl:"text-base ps-11 pe-11"},uw={sm:"h-9.5 py-2.5",md:"h-10.5 pt-3 pb-3"},dw="!border-2 !border-rborder-error focus:!outline-0",fw="bg-rbg-disabled-subtle border-rborder-disabled",mw="ltr:right-2 rtl:left-2",hw="ltr:right-20 rtl:left-20",pw="ltr:right-20 rtl:left-20",gw="ltr:right-12 rtl:left-12",xw={default:"pe-8",iconLeading:"ps-10",leadingDropdown:"pe-8",trailingDropdown:"pe-8 ps-6",leadingText:"pe-8 ps-20",trailingButton:"pe-8",shaba:"pe-12"},vw=Lt(iw,{variants:{size:uw,inputType:xw},defaultVariants:{size:"sm",inputType:"default"}}),ks=({id:a,label:r,required:c,labelClass:s,labelStarClass:d})=>u.jsxs("label",{htmlFor:a,className:Dt("text-sm font-medium text-rtext-secondary-700",s),children:[r,c&&u.jsx("span",{className:Dt("dv-required-label text-rtext-brand-tertiary-600 mx-1",d),children:"*"})]}),yw=({stroke:a="#98A2B3",fill:r="none",width:c="16",height:s="16"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 16 16",fill:r,children:u.jsx("path",{d:"M6.05998 5.99998C6.21672 5.55442 6.52608 5.17872 6.93328 4.9394C7.34048 4.70009 7.81924 4.61261 8.28476 4.69245C8.75028 4.7723 9.17252 5.01433 9.4767 5.37567C9.78087 5.737 9.94735 6.19433 9.94665 6.66665C9.94665 7.99998 7.94665 8.66665 7.94665 8.66665M7.99998 11.3333H8.00665M14.6666 7.99998C14.6666 11.6819 11.6819 14.6666 7.99998 14.6666C4.31808 14.6666 1.33331 11.6819 1.33331 7.99998C1.33331 4.31808 4.31808 1.33331 7.99998 1.33331C11.6819 1.33331 14.6666 4.31808 14.6666 7.99998Z",stroke:a,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),Iu=S.memo(yw),Jp=(a,r)=>{S.useEffect(()=>{const c=s=>{!a.current||a.current.contains(s.target)||r()};return document.addEventListener("mousedown",c),document.addEventListener("touchstart",c),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("touchstart",c)}},[a,r])},bw="absolute left-1/2 z-10 max-h-[200px] w-72 -translate-x-1/2 -translate-y-11 transform overflow-auto rounded bg-gray-500 p-3 text-start text-xs text-white shadow-md transition-all duration-200",ww="flex items-center justify-between w-full bg-white border border-rborder-primary rounded-md px-2 shadow-xs text-sm text-dark/80 focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-500 px-4 py-2 text-left",Sw="absolute left-0 mt-1 w-full rounded-md bg-gray-50 shadow-lg border border-rborder-primary z-50",z0=({config:a,isLoading:r=!1,disabled:c=!1,className:s,tooltipClass:d,tooltipTitle:f,selectedValueLabel:h,onChange:x,options:p,buttonClass:g,contentClass:y,labelClass:v,labelStarClass:w})=>{var _;const{label:j,name:A,errorText:E,hintText:N,isRequiredInput:R=!1,canSelectZero:H=!1}=a||{},[O,V]=S.useState(!1),[$,J]=S.useState(-50),[Q,q]=S.useState(!1),[te,ee]=S.useState(5),le=S.useRef(null);Jp(le,()=>q(!1));const re=G=>{const{scrollTop:B,scrollHeight:oe,clientHeight:me}=G.currentTarget;B+me>=oe-10&&ee(T=>Math.min(T+5,p==null?void 0:p.length))},he=G=>{x({name:A,value:G}),q(!1)},fe=S.useRef(null),pe=()=>{if(fe.current){const G=fe.current.offsetHeight;J(-G+window.scrollY+40)}};return S.useEffect(()=>{O&&pe()},[O]),Jp(fe,()=>V(!1)),u.jsxs("div",{className:Dt("relative flex w-full flex-col gap-1",s),children:[j&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(ks,{labelClass:v,labelStarClass:w,id:A,label:j,required:R}),f&&u.jsx("button",{type:"button",onClick:f?()=>V(G=>!G):()=>{},className:"flex-center h-4 w-4 rounded-full bg-blue-400 text-xs text-white",children:"i"})]}),u.jsxs("div",{className:"relative",children:[u.jsxs("button",{type:"button",className:Dt(ww,g),onClick:()=>q(G=>!G),disabled:r||c,children:[h,Q?u.jsx(Tg,{className:"h-4 w-4 opacity-50"}):u.jsx(Eg,{className:"h-4 w-4 opacity-50"})]}),Q&&u.jsx("div",{ref:le,className:Dt(Sw,y),children:u.jsxs("ul",{className:"max-h-48 overflow-auto p-2 text-sm text-start",onScroll:re,style:{maxHeight:"150px"},children:[!H&&u.jsx("li",{children:u.jsx("button",{type:"button",className:"w-full p-2 text-start text-gray-500 cursor-not-allowed",onClick:()=>q(!1),children:"-"})}),(_=p==null?void 0:p.slice(0,te))==null?void 0:_.map(G=>u.jsx("li",{children:u.jsx("button",{type:"button",className:"w-full p-2 text-start cursor-pointer hover:bg-gray-100",onClick:()=>he(G.value),children:G.title})},G.value))]})})]}),f&&O&&u.jsx("div",{ref:fe,className:Dt(bw,d),style:{top:`${$}px`},dangerouslySetInnerHTML:{__html:f}}),!E&&N&&u.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:N}),E&&u.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:E})]})},cs=({size:a="sm",type:r="text",inputType:c="default",disabled:s=!1,id:d,label:f,required:h=!1,destructive:x=!1,destructiveText:p,hintText:g,placeholder:y,helpIcon:v=!1,icon:w,leadingTextValue:j,className:A,trailingDropdownOptions:E,trailingDropdownDefault:N,onChange:R,value:H,tooltipProps:O,trailingButtonText:V,name:$,labelClass:J,labelStarClass:Q,shabaLabelSize:q="lg",autoFocus:te=!1,...ee})=>{const le=w,[re,he]=S.useState(),[fe,pe]=S.useState(!1),_=B=>{const oe=E==null?void 0:E.find(me=>(me==null?void 0:me.value)===(B==null?void 0:B.value));he(oe??B)},G=B=>{navigator.clipboard.writeText(B)};return u.jsxs("div",{className:"flex flex-col gap-1 items-start",children:[u.jsx(ks,{id:d,label:f,required:h,labelClass:J,labelStarClass:Q}),u.jsxs("div",{className:"relative w-full",children:[le&&c=="iconLeading"&&u.jsx("div",{"aria-label":"iconLeading",className:"absolute ltr:left-3 rtl:right-3 top-1/2 -translate-y-1/2",children:u.jsx(le,{})}),j&&c=="leadingText"&&u.jsx("div",{"aria-label":"leadingText",className:`${rw} ${a==="sm"?"pt-2":"pt-2.5"}
|
|
183
|
+
${x===!0?"border-rborder-error":"border-rborder-primary"}`,children:j}),c=="trailingDropdown"&&u.jsx("p",{className:"absolute ltr:left-2 rtl:right-2 top-1/2 -translate-y-1/2",children:re?re==null?void 0:re.icon:N==null?void 0:N.icon}),u.jsx("input",{value:H,name:$,onChange:R,placeholder:y,autoFocus:te,className:W(vw({size:a,inputType:c}),A,x&&"bg-rbg-disabled-subtle",x&&dw,s&&fw),type:r==="password"&&fe?"text":r,id:d,disabled:s,...ee}),r==="password"&&u.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 ltr:right-2 rtl:left-2 w-fit h-5 flex items-center justify-center",children:u.jsx(on,{type:"button",variant:"linkGray",onClick:()=>pe(!fe),children:fe?u.jsx(nb,{size:18,className:"text-rbutton-tertiary-fg"}):u.jsx(ab,{size:18,className:"text-rbutton-tertiary-fg"})})}),v&&O&&x===!1&&u.jsx(ki,{content:O==null?void 0:O.text,description:O==null?void 0:O.description,position:O==null?void 0:O.position,dir:O==null?void 0:O.dir,descriptionClassName:O==null?void 0:O.descriptionClassName,children:u.jsx("div",{"data-testid":"tooltip-button",className:`w-fit absolute top-1/2 -translate-y-1/2
|
|
184
184
|
${c=="trailingButton"?hw:c=="trailingDropdown"?pw:c=="shaba"?gw:mw}`,children:u.jsx(Iu,{})})}),c=="trailingButton"&&u.jsxs("button",{"aria-label":"copyButton",onClick:()=>G(String(H)),className:`${sw} ${x===!0?"border-rborder-error":"border-rborder-primary"}`,children:[u.jsx(eb,{size:20})," ",V]}),c=="trailingDropdown"&&u.jsx(z0,{onChange:_,options:E??[],selectedValueLabel:(N==null?void 0:N.title)??"-",config:{canSelectZero:!0,name:"trailingDropdown"},className:"w-fit absolute rtl:left-0 ltr:right-0 top-0"}),c=="shaba"&&u.jsx("div",{"aria-label":"shabaLabel",className:W(ow,cw[q],x===!0?"border-rborder-error":"border-rborder-primary"),children:"IR"})]}),x===!1&&g&&u.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:g}),x&&p&&u.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:p})]})},jw="w-full flex flex-col py-2.5 px-3.5 gap-2",Cw={primary:"bg-rbg-brand-solid text-rtext-white text-md font-normal",gray:"bg-rbg-secondary border border-rborder-secondary text-rtext-primary-900 text-md font-normal",white:"bg-rbg-primary border border-rborder-secondary"},Aw=Lt(jw,{variants:{sender:{admin:"",user:""},variant:Cw,direction:{ltr:"",rtl:""}},compoundVariants:[{sender:"admin",direction:"ltr",class:"rounded-tl-md rounded-tr-none rounded-br-md rounded-bl-md "},{sender:"user",direction:"ltr",class:"rounded-tl-none rounded-tr-md rounded-br-md rounded-bl-md"},{sender:"admin",direction:"rtl",class:" rounded-tl-md rounded-tr-none rounded-br-md rounded-bl-md"},{sender:"user",direction:"rtl",class:"rounded-tl-none rounded-tr-md rounded-br-md rounded-bl-md"}],defaultVariants:{variant:"primary",direction:"rtl"}}),fu=Lt("",{variants:{direction:{ltr:"",rtl:""},sender:{admin:"",user:""}},compoundVariants:[{sender:"admin",direction:"ltr",class:"flex-row-reverse"},{sender:"admin",direction:"rtl",class:"flex-row"},{sender:"user",direction:"ltr",class:"flex-row"},{sender:"user",direction:"rtl",class:"flex-row-reverse"}],defaultVariants:{direction:"ltr",sender:"user"}}),Fp=({variant:a,sender:r,senderName:c,message:s,children:d,avatar:f,date:h,className:x,dir:p})=>{var y;const g=p??(((y=document==null?void 0:document.body)==null?void 0:y.getAttribute("dir"))==="rtl"?"rtl":"ltr");return u.jsx("div",{className:W("w-full flex ",fu({sender:r,direction:g})),"data-testid":"messageWrapper",children:u.jsxs("div",{className:W("w-fit max-w-4/5 flex gap-3",fu({sender:r,direction:g}),x),"data-testid":"messageComp",children:[f??null,u.jsxs("div",{className:"w-full flex flex-col gap-1.5",children:[u.jsxs("div",{className:W("w-full flex justify-between items-center",fu({sender:r,direction:g})),children:[u.jsx("span",{className:"text-rtext-secondary-700 text-sm font-medium",children:c}),u.jsx("span",{className:"text-rtext-tertiary-600 text-xs font-normal",children:h})]}),u.jsxs("div",{className:W(Aw({variant:a,sender:r,direction:g})),children:[s&&u.jsx("span",{className:"",children:s}),d??null]})]})]})})};function Nw({className:a,...r}){return u.jsx("div",{"data-slot":"card",className:W("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a),...r})}function Ew({className:a,...r}){return u.jsx("div",{"data-slot":"card-header",className:W("@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",a),...r})}function Tw({className:a,...r}){return u.jsx("div",{"data-slot":"card-action",className:W("col-start-2 row-span-2 row-start-1 self-start justify-self-end",a),...r})}const Mw="flex flex-col h-full items-end gap-2 w-full",Wp={success:"w-12 h-12 flex items-center justify-center rounded-full bg-rbg-success-secondary",notification:"w-12 h-12 flex items-center justify-center rounded-full bg-rbg-brand-secondary",secondary:"w-12 h-12 flex items-center justify-center rounded-lg bg-rbg-primary border border-gray-light-200 shadow-xs-skeuomorphic"},Ip={normal:"font-medium text-sm text-rtext-tertiary-600",bold:"text-rtext-primary-900 font-normal text-md"},zw=({title:a,value:r,description:c,icon:s,iconType:d="secondary",statistic:f,chartImg:h,chartPosition:x,actionBtns:p,toggleBtn:g,iconPosition:y="hidden",statisticPosition:v,titleType:w="normal"})=>u.jsxs(Nw,{className:"flex flex-col gap-0 rounded-xl border border-rborder-secondary bg-rbg-primary shadow-xs w-full sm:max-w-[380px] max-w-[311px] h-fit justify-start p-0",children:[u.jsxs("div",{className:"flex gap-5 w-full py-5 px-4 sm:p-6",children:[y=="iconSide"&&u.jsx("div",{className:W("self-center",Wp[d]),children:s}),u.jsxs("div",{className:W(Mw,`${(y=="topWithTitle"||y=="topAlone")&&"gap-5 md:gap-6"}`),children:[u.jsxs(Ew,{className:"flex justify-between w-full px-0",children:[u.jsxs("div",{className:"flex items-center gap-3 ",children:[(y=="topWithTitle"||y=="topAlone")&&u.jsx("div",{className:Wp[d],children:s}),y!="topAlone"&&u.jsx("span",{className:Ip[w],children:a})]}),g]}),u.jsxs("div",{className:"flex flex-col w-full gap-2",children:[y=="topAlone"&&u.jsx("span",{className:Ip[w],children:a}),u.jsxs("div",{className:"w-full flex justify-between gap-4",children:[u.jsxs("div",{className:W("flex justify-between items-center w-full h-fit px-0",`${v=="row-below"&&"flex-col just-start items-start gap-4"}`,`${v=="row-next"&&"flex justify-start items-start gap-2"}`),children:[u.jsx("span",{className:"text-display-md font-normal text-rtext-primary-900",children:r}),u.jsxs("div",{className:"flex gap-2 items-center",children:[f,c&&u.jsx("span",{className:"font-medium text-sm text-rtext-tertiary-600",children:c})]})]}),x=="side"&&u.jsx("div",{className:"w-full",children:h})]})]}),x=="bottom"&&u.jsx("div",{className:"w-full",children:h})]})]}),p&&u.jsx(Tw,{className:"flex flex-row-reverse items-center justify-between py-4 px-6 border-t border-rborder-secondary gap-1.5 w-full",children:p==null?void 0:p.map((j,A)=>u.jsx(Te.Fragment,{children:j},A))})]}),Rw="modal-container fixed left-1/2 right-auto flex max-h-[80dvh] w-4/5 cursor-default flex-col rounded bg-white text-center",_w={sm:"max-w-rsm",md:"max-w-rmd",lg:"max-w-rlg"},Ow=Lt(Rw,{variants:{size:_w,overflow:{hidden:"overflow-hidden",auto:"overflow-auto"},position:{center:"top-1/2 -translate-y-1/2 animate-slide-in-center",bottom:"bottom-0 animate-slide-in-bottom"}},defaultVariants:{size:"md"}});let Pp=0;const Dw=({children:a,closeHandler:r,size:c="md",modalTitle:s,overflow:d,closeIconStroke:f="#000",position:h="center",icon:x,headerIconDir:p="flex-col",showModal:g=!1,modalContentStyle:y,showCloseIcon:v=!0})=>{const w=S.useRef(++Pp);return S.useEffect(()=>(g&&(document.body.style.overflow="hidden"),()=>{Pp--,document.body.style.overflow=""}),[g]),g?ly.createPortal(u.jsxs(u.Fragment,{children:[u.jsx("button",{className:"fixed left-0 top-0 h-full min-h-screen w-full cursor-default overflow-hidden bg-black/60 duration-0",style:{zIndex:C0(w.current)},onClick:r}),u.jsxs("dialog",{open:!0,"aria-label":"modal-container",className:Dt(Ow({size:c,overflow:d,position:h}),y),style:{zIndex:X6(w.current)},children:[u.jsxs("div",{className:`${p=="flex-col"?"items-start":"items-center"}
|
|
185
|
-
sticky top-0 z-10 flex justify-between gap-6 bg-white py-4`,children:[u.jsxs("div",{className:`flex gap-4 justify-start items-start ${p}`,children:[x&&x,s&&u.jsx("h2",{id:"modal-title",className:"text-lg font-semibold",children:s})]}),v&&u.jsx(on,{variant:"tertiaryGray",size:"sm",className:"!p-0",onClick:r,children:u.jsx(Ju,{width:"16",height:"16",stroke:f})})]}),u.jsx("div",{className:"overflow-y-auto",children:a})]})]}),document.body):null},kw=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M15.8334 9.99996H4.16675M4.16675 9.99996L10.0001 15.8333M4.16675 9.99996L10.0001 4.16663",stroke:"#344054",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),eg=S.memo(kw),Lw=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M4.16675 10H15.8334M15.8334 10L10.0001 4.16669M15.8334 10L10.0001 15.8334",stroke:"#344054",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),tg=S.memo(Lw),Ta=Te.forwardRef(({className:a,...r},c)=>u.jsx("ul",{ref:c,className:W("flex flex-row items-center cursor-pointer",a),...r}));Ta.displayName="PaginationContent";const ft=Te.forwardRef(({className:a,...r},c)=>u.jsx("li",{ref:c,className:W("flex items-center ",a),...r}));ft.displayName="PaginationItem";const nt=({className:a,isActive:r,activeClassName:c,disabled:s,...d})=>{const f="rounded-md border bg-[#F9FAFB] text-[#182230] border-[#F9FAFB]",h="cursor-pointer inline-flex items-center gap-1.5 px-4 py-1.5 justify-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",x=r?c||f:"",p=s?"pointer-events-none opacity-50":"";return u.jsx("a",{"aria-current":r?"page":void 0,className:W(h,r?"border border-primary text-primary":"hover:bg-accent hover:text-accent-foreground",x,p,a),...d,"aria-disabled":s,onClick:g=>{var y;s?g.preventDefault():(y=d.onClick)==null||y.call(d,g)}})},Bw=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,previousClassName:f,nextClassName:h,className:x,prevIcon:p,nextIcon:g,...y})=>{const v=s==="rtl";return u.jsx("nav",{role:"navigation","aria-label":"pagination",className:W("",x),...y,children:u.jsxs(Ta,{className:"flex justify-between items-center",children:[u.jsxs("div",{className:"flex",children:[u.jsx(ft,{className:"md:block hidden",children:u.jsx(nt,{size:"default","aria-label":"Go to first page",disabled:a===1,onClick:()=>c==null?void 0:c(1),children:d==null?void 0:d.first})}),u.jsx(ft,{children:u.jsxs(nt,{"aria-label":"Go to previous page",size:"default",className:W("gap-1",f),onClick:()=>c==null?void 0:c(a-1),disabled:a===1,children:[u.jsx("div",{className:"md:block hidden",children:(d==null?void 0:d.prev)||"قبلی"}),u.jsx("div",{className:"md:hidden block",children:v?p||u.jsx(tg,{}):g||u.jsx(eg,{})})]})})]}),u.jsxs("span",{className:"text-sm font-medium",children:[d==null?void 0:d.page," ",a," ",d==null?void 0:d.of," ",r]}),u.jsxs("div",{className:"flex",children:[u.jsx(ft,{children:u.jsxs(nt,{"aria-label":"Go to next page",size:"default",className:W("gap-1",h),onClick:()=>c==null?void 0:c(a+1),disabled:a===r,children:[u.jsx("span",{className:"md:block hidden",children:(d==null?void 0:d.next)||"بعدی"}),u.jsx("div",{className:"md:hidden block",children:v?p||u.jsx(eg,{}):g||u.jsx(tg,{})})]})}),u.jsx(ft,{className:"md:block hidden",children:u.jsx(nt,{size:"default","aria-label":"Go to last page",disabled:a===r,onClick:()=>c==null?void 0:c(r),children:d==null?void 0:d.last})})]})]})})},Hw=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,previousClassName:f,nextClassName:h,className:x,...p})=>{const g=s==="rtl";return u.jsxs("nav",{role:"navigation","aria-label":"pagination",className:W("flex w-full items-center justify-between text-sm text-muted-foreground",x),...p,children:[u.jsxs("span",{children:[d==null?void 0:d.page," ",a," ",d==null?void 0:d.of," ",r]}),u.jsxs(Ta,{className:"flex items-center gap-2",children:[u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(1),disabled:a===1||r<2,children:u.jsx("span",{children:d==null?void 0:d.first})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to previous page",size:"default",className:W("gap-1",f),onClick:()=>c==null?void 0:c(g?a+1:a-1),disabled:g?a===r:a===1,children:u.jsx("span",{children:g?d==null?void 0:d.next:d==null?void 0:d.prev})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to next page",size:"default",className:W("gap-1",h),onClick:()=>c==null?void 0:c(g?a-1:a+1),disabled:g?a===1:a===r,children:u.jsx("span",{children:g?d==null?void 0:d.prev:d==null?void 0:d.next})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(r),disabled:a===r,children:u.jsx("span",{children:d==null?void 0:d.last})})})]})]})},Uw=(a,r,c)=>{const s=[],d=c==="rtl";if(r<=6)for(let f=1;f<=r;f++)s.push(f);else{const f=a>3,h=a<r-2;if(f)if(h)s.push(1,"...",a-1,a,a+1,"...",r);else{s.push(1,2,3,"...");for(let x=r-2;x<=r;x++)s.push(x)}else{for(let x=1;x<=3;x++)s.push(x);s.push("...",r-2,r-1,r)}}return d?[...s].reverse():s},Vw=({currentPage:a,totalPages:r,onPageChange:c,labels:s,previousClassName:d,className:f,activeClassName:h,nextClassName:x,dir:p="rtl",prevIcon:g,nextIcon:y,firstIcon:v,lastIcon:w,showFirstLast:j=!0,hasText:A=!0})=>{const E=Uw(a,r,p),N=p==="rtl",z=N?[...E].reverse():E;return u.jsxs("nav",{role:"navigation","aria-label":"pagination",className:W("mx-auto flex w-full justify-center",p==="rtl"?"rtl":"ltr",f),children:[u.jsxs("div",{className:W("flex gap-2",N?"ml-auto":"mr-auto"),children:[j&&u.jsxs(nt,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(1),disabled:a===1,children:[N?v||u.jsx(xp,{}):w||u.jsx(gp,{}),A&&u.jsx("span",{children:s==null?void 0:s.first})]}),u.jsxs(nt,{"aria-label":"Go to previous page",size:"default",className:W("flex items-center",d),onClick:()=>c==null?void 0:c(a-1),disabled:a===1,children:[N?y||u.jsx(hs,{}):g||u.jsx(ms,{}),A&&u.jsx("span",{children:s==null?void 0:s.prev})]})]}),u.jsx(Ta,{children:z.map((H,O)=>u.jsx(ft,{children:H==="..."?u.jsx("span",{className:"px-2",children:"..."}):u.jsx(nt,{isActive:H===a,onClick:()=>c==null?void 0:c(Number(H)),activeClassName:Dt(h,"rounded-md"),children:H})},O))}),u.jsxs("div",{className:W("flex gap-2",N?"mr-auto":"ml-auto"),children:[u.jsxs(nt,{"aria-label":"Go to next page",size:"default",className:W("flex items-center",x),onClick:()=>c==null?void 0:c(a+1),disabled:a===r,children:[A&&u.jsx("span",{children:s==null?void 0:s.next}),N?g||u.jsx(ms,{}):y||u.jsx(hs,{})]}),j&&u.jsxs(nt,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(r),disabled:a===r,children:[A&&u.jsx("span",{children:s==null?void 0:s.last}),N?w||u.jsx(gp,{}):v||u.jsx(xp,{})]})]})]})},mu=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,renderPageNumbers:f,justifyClassName:h,prevIcon:x,nextIcon:p,hasText:g})=>{const y=s==="rtl";return u.jsx("nav",{role:"navigation","aria-label":"pagination",className:W("w-full flex",h),children:u.jsxs(Ta,{className:"border border-gray-200 rounded-md",children:[u.jsx(ft,{children:u.jsx(nt,{size:"default",className:"px-3 py-1 text-sm disabled:opacity-50 flex items-center",onClick:()=>c==null?void 0:c(a-1),disabled:a===1,children:u.jsx("div",{className:"flex items-center gap-1",children:y?u.jsxs(u.Fragment,{children:[x||u.jsx(hs,{size:16}),g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.prev})]}):u.jsxs(u.Fragment,{children:[p||u.jsx(ms,{size:16}),g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.prev})]})})})}),f(),u.jsx(ft,{children:u.jsx(nt,{size:"default",className:"px-3 py-1 text-sm disabled:opacity-50 flex items-center",onClick:()=>c==null?void 0:c(a+1),disabled:a===r,children:u.jsx("div",{className:"flex items-center gap-1",children:y?u.jsxs(u.Fragment,{children:[g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.next}),p||u.jsx(ms,{size:16})]}):u.jsxs(u.Fragment,{children:[g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.next}),x||u.jsx(hs,{size:16})]})})})})]})})},qw=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,previousClassName:f,nextClassName:h,className:x,...p})=>{const g=s==="rtl";return u.jsxs("nav",{role:"navigation","aria-label":"pagination",className:W("flex w-full items-center justify-between text-sm text-muted-foreground",x),...p,children:[u.jsxs(Ta,{className:"flex gap-2 items-center",children:[u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(1),disabled:a===1,children:u.jsx("span",{children:d==null?void 0:d.first})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to previous page",size:"default",className:W("gap-1",f),onClick:()=>c==null?void 0:c(g?a+1:a-1),disabled:g?a===r:a===1,children:u.jsx("span",{children:g?d==null?void 0:d.next:d==null?void 0:d.prev})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to next page",size:"default",className:W("gap-1",h),onClick:()=>c==null?void 0:c(g?a-1:a+1),disabled:g?a===1:a===r,children:u.jsx("span",{children:g?d==null?void 0:d.prev:d==null?void 0:d.next})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(r),disabled:a===r,children:u.jsx("span",{children:d==null?void 0:d.last})})})]}),u.jsxs("span",{children:[d==null?void 0:d.page," ",a," ",d==null?void 0:d.of," ",r]})]})},Gw=({currentPage:a,totalPages:r,onPageChange:c,type:s="default",dir:d="rtl",className:f,activeClassName:h,previousClassName:x,nextClassName:p,prevIcon:g,nextIcon:y,firstIcon:v,lastIcon:w,showFirstLast:j=!0,labels:A,hasText:E=!0,...N})=>{const z=d==="rtl",O={...{next:z?"بعدی":"Next",prev:z?"قبلی":"Previous",first:z?"اولین":"First",last:z?"آخرین":"Last",page:z?"صفحه":"page",of:z?"از":"of"},...A};if(r<=1)return null;const V=()=>{const $=typeof window<"u"&&window.innerWidth<768,J=[];if($){const q=new Set;q.add(1),q.add(2),q.add(r-1),q.add(r),a!==1&&a!==2&&a!==r-1&&a!==r&&q.add(a);const te=Array.from(q).sort((ee,le)=>ee-le);for(let ee=0;ee<te.length;ee++)J.push(te[ee]),ee<te.length-1&&te[ee+1]!==te[ee]+1&&J.push("...")}else if(r<=6)for(let q=1;q<=r;q++)J.push(q);else{const q=a>3,te=a<r-2;if(q)if(te)J.push(1,"...",a-1,a,a+1,"...",r);else{J.push(1,2,3,"...");for(let ee=r-2;ee<=r;ee++)J.push(ee)}else{for(let ee=1;ee<=3;ee++)J.push(ee);J.push("...",r-2,r-1,r)}}const K=z?[...J].reverse():J;return u.jsx("div",{className:W("flex h-full",z&&"flex-row-reverse"),children:K.map((q,te)=>q==="..."?u.jsx("span",{className:"md:px-3 md:py-1 p-2 text-gray-400 text-sm",children:"..."},`dots-${te}`):u.jsx("button",{onClick:()=>c==null?void 0:c(q),className:W("px-3 py-1 text-sm border border-gray-200",a===q?h:f),children:q},q))})};return s==="card-minimal-right-aligned"?u.jsx(Hw,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,...N}):s==="card-minimal-left-aligned"?u.jsx(qw,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,...N}):s==="card-minimal-center-aligned"?u.jsx(Bw,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,prevIcon:g,nextIcon:y,...N}):s==="card-button-group-right-aligned"?u.jsx(mu,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,renderPageNumbers:V,previousClassName:x,nextClassName:p,justifyClassName:Dt(f,"justify-end"),prevIcon:g,nextIcon:y,hasText:E,...N}):s==="card-button-group-left-aligned"?u.jsx(mu,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,renderPageNumbers:V,previousClassName:x,nextClassName:p,justifyClassName:Dt(f,"justify-start"),prevIcon:g,nextIcon:y,hasText:E,...N}):s==="card-button-group-center-aligned"?u.jsx(mu,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,renderPageNumbers:V,previousClassName:x,nextClassName:p,justifyClassName:Dt(f,"justify-center"),prevIcon:g,nextIcon:y,hasText:E,...N}):u.jsx(Vw,{activeClassName:h,currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,prevIcon:g,nextIcon:y,firstIcon:v,lastIcon:w,showFirstLast:j,hasText:E})};function R0(a,[r,c]){return Math.min(c,Math.max(r,a))}function _0(a){const r=S.useRef({value:a,previous:a});return S.useMemo(()=>(r.current.value!==a&&(r.current.previous=r.current.value,r.current.value=a),r.current.previous),[a])}var O0=["PageUp","PageDown"],D0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],k0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ma="Slider",[Au,Yw,Xw]=zu(Ma),[L0]=un(Ma,[Xw]),[Zw,Ls]=L0(Ma),B0=S.forwardRef((a,r)=>{const{name:c,min:s=0,max:d=100,step:f=1,orientation:h="horizontal",disabled:x=!1,minStepsBetweenThumbs:p=0,defaultValue:g=[s],value:y,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:j=!1,form:A,...E}=a,N=S.useRef(new Set),z=S.useRef(0),O=h==="horizontal"?Qw:Kw,[V=[],$]=dl({prop:y,defaultProp:g,onChange:le=>{var he;(he=[...N.current][z.current])==null||he.focus(),v(le)}}),J=S.useRef(V);function K(le){const re=Iw(V,le);ee(le,re)}function q(le){ee(le,z.current)}function te(){const le=J.current[z.current];V[z.current]!==le&&w(V)}function ee(le,re,{commit:he}={commit:!1}){const fe=nS(f),pe=lS(Math.round((le-s)/f)*f+s,fe),_=R0(pe,[s,d]);$((G=[])=>{const B=Fw(G,_,re);if(tS(B,p*f)){z.current=B.indexOf(_);const oe=String(B)!==String(G);return oe&&he&&w(B),oe?B:G}else return G})}return u.jsx(Zw,{scope:a.__scopeSlider,name:c,disabled:x,min:s,max:d,valueIndexToChangeRef:z,thumbs:N.current,values:V,orientation:h,form:A,children:u.jsx(Au.Provider,{scope:a.__scopeSlider,children:u.jsx(Au.Slot,{scope:a.__scopeSlider,children:u.jsx(O,{"aria-disabled":x,"data-disabled":x?"":void 0,...E,ref:r,onPointerDown:He(E.onPointerDown,()=>{x||(J.current=V)}),min:s,max:d,inverted:j,onSlideStart:x?void 0:K,onSlideMove:x?void 0:q,onSlideEnd:x?void 0:te,onHomeKeyDown:()=>!x&&ee(s,0,{commit:!0}),onEndKeyDown:()=>!x&&ee(d,V.length-1,{commit:!0}),onStepKeyDown:({event:le,direction:re})=>{if(!x){const pe=O0.includes(le.key)||le.shiftKey&&D0.includes(le.key)?10:1,_=z.current,G=V[_],B=f*pe*re;ee(G+B,_,{commit:!0})}}})})})})});B0.displayName=Ma;var[H0,U0]=L0(Ma,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Qw=S.forwardRef((a,r)=>{const{min:c,max:s,dir:d,inverted:f,onSlideStart:h,onSlideMove:x,onSlideEnd:p,onStepKeyDown:g,...y}=a,[v,w]=S.useState(null),j=Ie(r,O=>w(O)),A=S.useRef(void 0),E=Cs(d),N=E==="ltr",z=N&&!f||!N&&f;function H(O){const V=A.current||v.getBoundingClientRect(),$=[0,V.width],K=Pu($,z?[c,s]:[s,c]);return A.current=V,K(O-V.left)}return u.jsx(H0,{scope:a.__scopeSlider,startEdge:z?"left":"right",endEdge:z?"right":"left",direction:z?1:-1,size:"width",children:u.jsx(V0,{dir:E,"data-orientation":"horizontal",...y,ref:j,style:{...y.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:O=>{const V=H(O.clientX);h==null||h(V)},onSlideMove:O=>{const V=H(O.clientX);x==null||x(V)},onSlideEnd:()=>{A.current=void 0,p==null||p()},onStepKeyDown:O=>{const $=k0[z?"from-left":"from-right"].includes(O.key);g==null||g({event:O,direction:$?-1:1})}})})}),Kw=S.forwardRef((a,r)=>{const{min:c,max:s,inverted:d,onSlideStart:f,onSlideMove:h,onSlideEnd:x,onStepKeyDown:p,...g}=a,y=S.useRef(null),v=Ie(r,y),w=S.useRef(void 0),j=!d;function A(E){const N=w.current||y.current.getBoundingClientRect(),z=[0,N.height],O=Pu(z,j?[s,c]:[c,s]);return w.current=N,O(E-N.top)}return u.jsx(H0,{scope:a.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:u.jsx(V0,{"data-orientation":"vertical",...g,ref:v,style:{...g.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:E=>{const N=A(E.clientY);f==null||f(N)},onSlideMove:E=>{const N=A(E.clientY);h==null||h(N)},onSlideEnd:()=>{w.current=void 0,x==null||x()},onStepKeyDown:E=>{const z=k0[j?"from-bottom":"from-top"].includes(E.key);p==null||p({event:E,direction:z?-1:1})}})})}),V0=S.forwardRef((a,r)=>{const{__scopeSlider:c,onSlideStart:s,onSlideMove:d,onSlideEnd:f,onHomeKeyDown:h,onEndKeyDown:x,onStepKeyDown:p,...g}=a,y=Ls(Ma,c);return u.jsx(Ue.span,{...g,ref:r,onKeyDown:He(a.onKeyDown,v=>{v.key==="Home"?(h(v),v.preventDefault()):v.key==="End"?(x(v),v.preventDefault()):O0.concat(D0).includes(v.key)&&(p(v),v.preventDefault())}),onPointerDown:He(a.onPointerDown,v=>{const w=v.target;w.setPointerCapture(v.pointerId),v.preventDefault(),y.thumbs.has(w)?w.focus():s(v)}),onPointerMove:He(a.onPointerMove,v=>{v.target.hasPointerCapture(v.pointerId)&&d(v)}),onPointerUp:He(a.onPointerUp,v=>{const w=v.target;w.hasPointerCapture(v.pointerId)&&(w.releasePointerCapture(v.pointerId),f(v))})})}),q0="SliderTrack",G0=S.forwardRef((a,r)=>{const{__scopeSlider:c,...s}=a,d=Ls(q0,c);return u.jsx(Ue.span,{"data-disabled":d.disabled?"":void 0,"data-orientation":d.orientation,...s,ref:r})});G0.displayName=q0;var Nu="SliderRange",Y0=S.forwardRef((a,r)=>{const{__scopeSlider:c,...s}=a,d=Ls(Nu,c),f=U0(Nu,c),h=S.useRef(null),x=Ie(r,h),p=d.values.length,g=d.values.map(w=>Q0(w,d.min,d.max)),y=p>1?Math.min(...g):0,v=100-Math.max(...g);return u.jsx(Ue.span,{"data-orientation":d.orientation,"data-disabled":d.disabled?"":void 0,...s,ref:x,style:{...a.style,[f.startEdge]:y+"%",[f.endEdge]:v+"%"}})});Y0.displayName=Nu;var Eu="SliderThumb",X0=S.forwardRef((a,r)=>{const c=Yw(a.__scopeSlider),[s,d]=S.useState(null),f=Ie(r,x=>d(x)),h=S.useMemo(()=>s?c().findIndex(x=>x.ref.current===s):-1,[c,s]);return u.jsx($w,{...a,ref:f,index:h})}),$w=S.forwardRef((a,r)=>{const{__scopeSlider:c,index:s,name:d,...f}=a,h=Ls(Eu,c),x=U0(Eu,c),[p,g]=S.useState(null),y=Ie(r,H=>g(H)),v=p?h.form||!!p.closest("form"):!0,w=Zu(p),j=h.values[s],A=j===void 0?0:Q0(j,h.min,h.max),E=Ww(s,h.values.length),N=w==null?void 0:w[x.size],z=N?Pw(N,A,x.direction):0;return S.useEffect(()=>{if(p)return h.thumbs.add(p),()=>{h.thumbs.delete(p)}},[p,h.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[x.startEdge]:`calc(${A}% + ${z}px)`},children:[u.jsx(Au.ItemSlot,{scope:a.__scopeSlider,children:u.jsx(Ue.span,{role:"slider","aria-label":a["aria-label"]||E,"aria-valuemin":h.min,"aria-valuenow":j,"aria-valuemax":h.max,"aria-orientation":h.orientation,"data-orientation":h.orientation,"data-disabled":h.disabled?"":void 0,tabIndex:h.disabled?void 0:0,...f,ref:y,style:j===void 0?{display:"none"}:a.style,onFocus:He(a.onFocus,()=>{h.valueIndexToChangeRef.current=s})})}),v&&u.jsx(Z0,{name:d??(h.name?h.name+(h.values.length>1?"[]":""):void 0),form:h.form,value:j},s)]})});X0.displayName=Eu;var Jw="RadioBubbleInput",Z0=S.forwardRef(({__scopeSlider:a,value:r,...c},s)=>{const d=S.useRef(null),f=Ie(d,s),h=_0(r);return S.useEffect(()=>{const x=d.current;if(!x)return;const p=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==r&&y){const v=new Event("input",{bubbles:!0});y.call(x,r),x.dispatchEvent(v)}},[h,r]),u.jsx(Ue.input,{style:{display:"none"},...c,ref:f,defaultValue:r})});Z0.displayName=Jw;function Fw(a=[],r,c){const s=[...a];return s[c]=r,s.sort((d,f)=>d-f)}function Q0(a,r,c){const f=100/(c-r)*(a-r);return R0(f,[0,100])}function Ww(a,r){return r>2?`Value ${a+1} of ${r}`:r===2?["Minimum","Maximum"][a]:void 0}function Iw(a,r){if(a.length===1)return 0;const c=a.map(d=>Math.abs(d-r)),s=Math.min(...c);return c.indexOf(s)}function Pw(a,r,c){const s=a/2,f=Pu([0,50],[0,s]);return(s-f(r)*c)*c}function eS(a){return a.slice(0,-1).map((r,c)=>a[c+1]-r)}function tS(a,r){if(r>0){const c=eS(a);return Math.min(...c)>=r}return!0}function Pu(a,r){return c=>{if(a[0]===a[1]||r[0]===r[1])return r[0];const s=(r[1]-r[0])/(a[1]-a[0]);return r[0]+s*(c-a[0])}}function nS(a){return(String(a).split(".")[1]||"").length}function lS(a,r){const c=Math.pow(10,r);return Math.round(a*c)/c}var aS=B0,iS=G0,rS=Y0,sS=X0;function oS({defaultValue:a=[0,1e3],min:r=0,max:c=1e3,className:s="",trackClassName:d="",rangeClassName:f="",thumbClassName:h="",showValue:x=!1,valueClassName:p="",isPercentage:g=!1,valuePosition:y="bottom",dir:v="ltr",onValueChange:w,...j}){const[A,E]=S.useState(a),N=z=>{const[H,O]=z,V=Math.max(r,Math.min(H,c)),$=Math.min(c,Math.max(O,r)),J=[V,$];E(J),w&&w(J)};return u.jsxs(aS,{value:A,onValueChange:N,min:r,max:c,dir:v,className:W("relative flex w-full touch-none select-none items-center",s),...j,children:[u.jsx(iS,{className:W("relative h-2 w-full grow overflow-hidden rounded-full bg-gray-light-200",d),children:u.jsx(rS,{className:W("absolute h-full bg-rfg-brand-primary-600",f)})}),A.map((z,H)=>u.jsx(sS,{className:W("relative block h-5 w-5 rounded-full border-2 border-rfg-brand-primary-600 bg-white",h),children:x&&u.jsx("span",{className:W("absolute left-1/2 -translate-x-1/2 text-xs text-gray-700",y==="top"?"bottom-7":"top-7",p),style:{whiteSpace:"nowrap"},children:g?`٪${z}`:z.toLocaleString()})},H))]})}var Bs="Switch",[cS]=un(Bs),[uS,dS]=cS(Bs),K0=S.forwardRef((a,r)=>{const{__scopeSwitch:c,name:s,checked:d,defaultChecked:f,required:h,disabled:x,value:p="on",onCheckedChange:g,form:y,...v}=a,[w,j]=S.useState(null),A=Ie(r,O=>j(O)),E=S.useRef(!1),N=w?y||!!w.closest("form"):!0,[z,H]=dl({prop:d,defaultProp:f??!1,onChange:g,caller:Bs});return u.jsxs(uS,{scope:c,checked:z,disabled:x,children:[u.jsx(Ue.button,{type:"button",role:"switch","aria-checked":z,"aria-required":h,"data-state":W0(z),"data-disabled":x?"":void 0,disabled:x,value:p,...v,ref:A,onClick:He(a.onClick,O=>{H(V=>!V),N&&(E.current=O.isPropagationStopped(),E.current||O.stopPropagation())})}),N&&u.jsx(F0,{control:w,bubbles:!E.current,name:s,value:p,checked:z,required:h,disabled:x,form:y,style:{transform:"translateX(-100%)"}})]})});K0.displayName=Bs;var $0="SwitchThumb",J0=S.forwardRef((a,r)=>{const{__scopeSwitch:c,...s}=a,d=dS($0,c);return u.jsx(Ue.span,{"data-state":W0(d.checked),"data-disabled":d.disabled?"":void 0,...s,ref:r})});J0.displayName=$0;var fS="SwitchBubbleInput",F0=S.forwardRef(({__scopeSwitch:a,control:r,checked:c,bubbles:s=!0,...d},f)=>{const h=S.useRef(null),x=Ie(h,f),p=_0(c),g=Zu(r);return S.useEffect(()=>{const y=h.current;if(!y)return;const v=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(v,"checked").set;if(p!==c&&j){const A=new Event("click",{bubbles:s});j.call(y,c),y.dispatchEvent(A)}},[p,c,s]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:c,...d,tabIndex:-1,ref:x,style:{...d.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});F0.displayName=fS;function W0(a){return a?"checked":"unchecked"}var mS=K0,hS=J0;function pS({label:a,labelClassName:r,handleClick:c,description:s,descriptionClassName:d}){return u.jsxs("div",{className:"flex flex-col gap-1",children:[a&&u.jsx(on,{type:"button",variant:"linkGray",className:W("text-sm",r),onClick:c,children:a}),s&&u.jsx("span",{className:W("text-xs text-gray-500",d),children:s})]})}const ed=S.forwardRef(({className:a,thumbClassName:r,label:c,labelClassName:s,descriptionClassName:d,description:f,onToggle:h,...x},p)=>{const[g,y]=S.useState(!1),v=()=>{y(w=>!w),h()};return u.jsxs("div",{className:W("flex gap-1",f?"items-start":"items-center"),children:[u.jsx(mS,{ref:p,className:W("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-start rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-brand-600 data-[state=unchecked]:bg-gray-light-100",a,f?"mt-0.5":"mt-0"),onCheckedChange:v,checked:g,...x,children:u.jsx(hS,{className:W("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:-translate-x-5 data-[state=checked]:ltr:translate-x-5 data-[state=unchecked]:-translate-x-0",r)})}),u.jsx(pS,{label:c,labelClassName:s,handleClick:v,description:f,descriptionClassName:d})]})});ed.displayName="Switch";var hu="rovingFocusGroup.onEntryFocus",gS={bubbles:!1,cancelable:!0},Bi="RovingFocusGroup",[Tu,I0,xS]=zu(Bi),[vS,P0]=un(Bi,[xS]),[yS,bS]=vS(Bi),ex=S.forwardRef((a,r)=>u.jsx(Tu.Provider,{scope:a.__scopeRovingFocusGroup,children:u.jsx(Tu.Slot,{scope:a.__scopeRovingFocusGroup,children:u.jsx(wS,{...a,ref:r})})}));ex.displayName=Bi;var wS=S.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:c,orientation:s,loop:d=!1,dir:f,currentTabStopId:h,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...v}=a,w=S.useRef(null),j=Ie(r,w),A=Cs(f),[E,N]=dl({prop:h,defaultProp:x??null,onChange:p,caller:Bi}),[z,H]=S.useState(!1),O=Oi(g),V=I0(c),$=S.useRef(!1),[J,K]=S.useState(0);return S.useEffect(()=>{const q=w.current;if(q)return q.addEventListener(hu,O),()=>q.removeEventListener(hu,O)},[O]),u.jsx(yS,{scope:c,orientation:s,dir:A,loop:d,currentTabStopId:E,onItemFocus:S.useCallback(q=>N(q),[N]),onItemShiftTab:S.useCallback(()=>H(!0),[]),onFocusableItemAdd:S.useCallback(()=>K(q=>q+1),[]),onFocusableItemRemove:S.useCallback(()=>K(q=>q-1),[]),children:u.jsx(Ue.div,{tabIndex:z||J===0?-1:0,"data-orientation":s,...v,ref:j,style:{outline:"none",...a.style},onMouseDown:He(a.onMouseDown,()=>{$.current=!0}),onFocus:He(a.onFocus,q=>{const te=!$.current;if(q.target===q.currentTarget&&te&&!z){const ee=new CustomEvent(hu,gS);if(q.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const le=V().filter(_=>_.focusable),re=le.find(_=>_.active),he=le.find(_=>_.id===E),pe=[re,he,...le].filter(Boolean).map(_=>_.ref.current);lx(pe,y)}}$.current=!1}),onBlur:He(a.onBlur,()=>H(!1))})})}),tx="RovingFocusGroupItem",nx=S.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:c,focusable:s=!0,active:d=!1,tabStopId:f,children:h,...x}=a,p=_i(),g=f||p,y=bS(tx,c),v=y.currentTabStopId===g,w=I0(c),{onFocusableItemAdd:j,onFocusableItemRemove:A,currentTabStopId:E}=y;return S.useEffect(()=>{if(s)return j(),()=>A()},[s,j,A]),u.jsx(Tu.ItemSlot,{scope:c,id:g,focusable:s,active:d,children:u.jsx(Ue.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...x,ref:r,onMouseDown:He(a.onMouseDown,N=>{s?y.onItemFocus(g):N.preventDefault()}),onFocus:He(a.onFocus,()=>y.onItemFocus(g)),onKeyDown:He(a.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){y.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const z=CS(N,y.orientation,y.dir);if(z!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let O=w().filter(V=>V.focusable).map(V=>V.ref.current);if(z==="last")O.reverse();else if(z==="prev"||z==="next"){z==="prev"&&O.reverse();const V=O.indexOf(N.currentTarget);O=y.loop?AS(O,V+1):O.slice(V+1)}setTimeout(()=>lx(O))}}),children:typeof h=="function"?h({isCurrentTabStop:v,hasTabStop:E!=null}):h})})});nx.displayName=tx;var SS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jS(a,r){return r!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function CS(a,r,c){const s=jS(a.key,c);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return SS[s]}function lx(a,r=!1){const c=document.activeElement;for(const s of a)if(s===c||(s.focus({preventScroll:r}),document.activeElement!==c))return}function AS(a,r){return a.map((c,s)=>a[(r+s)%a.length])}var NS=ex,ES=nx,Hs="Tabs",[TS]=un(Hs,[P0]),ax=P0(),[MS,td]=TS(Hs),ix=S.forwardRef((a,r)=>{const{__scopeTabs:c,value:s,onValueChange:d,defaultValue:f,orientation:h="horizontal",dir:x,activationMode:p="automatic",...g}=a,y=Cs(x),[v,w]=dl({prop:s,onChange:d,defaultProp:f??"",caller:Hs});return u.jsx(MS,{scope:c,baseId:_i(),value:v,onValueChange:w,orientation:h,dir:y,activationMode:p,children:u.jsx(Ue.div,{dir:y,"data-orientation":h,...g,ref:r})})});ix.displayName=Hs;var rx="TabsList",sx=S.forwardRef((a,r)=>{const{__scopeTabs:c,loop:s=!0,...d}=a,f=td(rx,c),h=ax(c);return u.jsx(NS,{asChild:!0,...h,orientation:f.orientation,dir:f.dir,loop:s,children:u.jsx(Ue.div,{role:"tablist","aria-orientation":f.orientation,...d,ref:r})})});sx.displayName=rx;var ox="TabsTrigger",cx=S.forwardRef((a,r)=>{const{__scopeTabs:c,value:s,disabled:d=!1,...f}=a,h=td(ox,c),x=ax(c),p=fx(h.baseId,s),g=mx(h.baseId,s),y=s===h.value;return u.jsx(ES,{asChild:!0,...x,focusable:!d,active:y,children:u.jsx(Ue.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":d?"":void 0,disabled:d,id:p,...f,ref:r,onMouseDown:He(a.onMouseDown,v=>{!d&&v.button===0&&v.ctrlKey===!1?h.onValueChange(s):v.preventDefault()}),onKeyDown:He(a.onKeyDown,v=>{[" ","Enter"].includes(v.key)&&h.onValueChange(s)}),onFocus:He(a.onFocus,()=>{const v=h.activationMode!=="manual";!y&&!d&&v&&h.onValueChange(s)})})})});cx.displayName=ox;var ux="TabsContent",dx=S.forwardRef((a,r)=>{const{__scopeTabs:c,value:s,forceMount:d,children:f,...h}=a,x=td(ux,c),p=fx(x.baseId,s),g=mx(x.baseId,s),y=s===x.value,v=S.useRef(y);return S.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(Ss,{present:d||y,children:({present:w})=>u.jsx(Ue.div,{"data-state":y?"active":"inactive","data-orientation":x.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:r,style:{...a.style,animationDuration:v.current?"0s":void 0},children:w&&f})})});dx.displayName=ux;function fx(a,r){return`${a}-trigger-${r}`}function mx(a,r){return`${a}-content-${r}`}var zS=ix,RS=sx,_S=cx,OS=dx;function DS({className:a,...r}){return u.jsx(OS,{"data-slot":"tabs-content",className:W("flex-1 outline-none",a),...r})}const kS=" text-muted-foreground inline-flex flex-row h-9 items-center",LS={brand:"",gray:"",outlined:"border-b border-rborder-secondary gap-2",bordered:"rounded-lg border border-rborder-secondary bg-rbg-secondary-alt p-1",minimal:" rounded-md border border-rborder-secondary bg-rbg-secondary-alt !gap-0.5"},BS=Lt(kS,{variants:{listVariant:LS,fullWidth:{true:"justify-between",false:"justify-start gap-1"},direction:{vertical:"flex-col min-h-fit max-w-fit ",horizontal:"flex-row w-full"}},defaultVariants:{listVariant:"brand",fullWidth:!0,direction:"horizontal"}}),HS=" h-full py-2 px-3 cursor-pointer inline-flex items-center justify-center gap-2 text-sm font-normal whitespace-nowrap transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",US={brand:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:bg-rbg-brand-primary-alt data-[state=active]:text-rtext-brand-secondary-700 ",gray:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:bg-rbg-active data-[state=active]:text-rtext-secondary-700 ",outlined:"text-rtext-quaternary-500 data-[state=active]:text-rtext-brand-secondary-700 pb-2.5 data-[state=active]:pb-2 data-[state=active]:border-b-2 data-[state=active]:border-rgf-brand-primary-alt",bordered:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:text-rtext-secondary-700 data-[state=active]:bg-rbg-primary-alt data-[state=active]:shadow-sm",minimal:"text-rtext-quaternary-500 data-[state=active]:rounded-md data-[state=active]:text-rtext-secondary-700 data-[state=active]:bg-rbg-primary-alt data-[state=active]:border data-[state=active]:border-rborder-primary data-[state=active]:shadow-xs"},VS=Lt(HS,{variants:{triggerVariant:US,fullWidth:{true:"w-full",false:"w-fit justify-start gap-1 items-center"}},defaultVariants:{triggerVariant:"gray",fullWidth:!0}});function qS({className:a,listVariant:r,direction:c="horizontal",fullWidth:s=!1,...d}){return u.jsx(RS,{"data-slot":"tabs-list",className:W(BS({fullWidth:s,listVariant:r,direction:c}),a),...d})}function GS({className:a,triggerVariant:r,fullWidth:c,...s}){return u.jsx(_S,{"data-slot":"tabs-trigger",className:W(VS({triggerVariant:r,fullWidth:c}),a),...s})}const YS=({className:a,direction:r="horizontal",dir:c="rtl",...s})=>u.jsx(zS,{"data-slot":"tabs",dir:c,className:W("flex gap-2",r=="horizontal"?"flex-col":"flex-row",a),...s}),it=Object.assign(YS,{List:qS,Trigger:GS,Content:DS}),XS="rounded-md p-2 shadow-xs w-fit bg-white border border-rborder-primary focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled w-full",ZS="!border-2 !border-rborder-error focus:!outline-0",QS=Lt(XS),KS=({row:a=5,label:r,required:c=!1,destructive:s=!1,disabled:d=!1,destructiveText:f,hintText:h,placeholder:x,helpIcon:p=!1,onChange:g,id:y,tooltipProps:v,className:w,value:j,name:A,labelClass:E,labelStarClass:N,autoFocus:z=!1,...H})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("div",{className:"flex items-center",children:[u.jsx(ks,{id:y,label:r,required:c,labelClass:E,labelStarClass:N}),p&&v&&u.jsx(ki,{content:v==null?void 0:v.text,description:v==null?void 0:v.description,position:v==null?void 0:v.position,dir:v==null?void 0:v.dir,descriptionClassName:v==null?void 0:v.descriptionClassName,children:u.jsx("div",{children:u.jsx(Iu,{})})})]}),u.jsx("textarea",{value:j,name:A,disabled:d,rows:a,placeholder:x,id:y,onChange:g,className:W(QS(),w,s&&ZS,s&&"bg-rbg-disabled-subtle border-rborder-disabled"),autoFocus:z,...H}),s===!1&&h&&u.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:h}),s&&f&&u.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:f})]}),$S={success:u.jsx(Ky,{className:"text-green-100",size:20}),error:u.jsx(Jy,{className:"text-red-100",size:20}),info:u.jsx(rb,{className:"text-blue-100",size:20}),warning:u.jsx(ub,{className:"text-yellow-100",size:20})},JS={success:"bg-green-500",error:"bg-red-500",info:"bg-blue-500",warning:"bg-yellow-500 text-black"},FS={fade:"transition-all duration-300",slide:"transition-all duration-300 transform translate-x-0",scale:"transition-all duration-300 transform scale-100"},WS={fade:"opacity-0",slide:"translate-x-10 opacity-0",scale:"scale-0 opacity-0"};function IS(a){switch(a){case"top-left":return"top-4 left-4";case"top-center":return"top-4 left-1/2 -translate-x-1/2";case"top-right":return"top-4 right-4";case"middle-center":return"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2";case"bottom-left":return"bottom-4 left-4";case"bottom-center":return"bottom-4 left-1/2 -translate-x-1/2";case"bottom-right":return"bottom-4 right-4";default:return"top-4 right-4"}}const ng=3,PS=["top-left","top-center","top-right","middle-center","bottom-left","bottom-center","bottom-right"],hx=({type:a="info",position:r="top-right",duration:c=3e3,animation:s="fade",showProgress:d=!0})=>{const[f,h]=S.useState([]),x=S.useRef({});S.useEffect(()=>{e4({type:a,duration:c,animation:s,position:r,showProgress:d})},[]),S.useEffect(()=>{const v=w=>{const j=Date.now(),A=w.detail.duration??3e3,E={...w.detail,id:j,visible:!0,progressVisible:!1,duration:A,position:w.detail.position??"top-right",animation:w.detail.animation??"fade",showProgress:w.detail.showProgress??!1};h(N=>{if(N.length>=ng)return N;const z=Date.now();return x.current[j]={timeoutId:setTimeout(()=>p(j),A),start:z,remaining:A},[...N,E]}),requestAnimationFrame(()=>{h(N=>N.map(z=>z.id===j?{...z,progressVisible:!0}:z))})};return window.addEventListener("custom-toast",v),()=>window.removeEventListener("custom-toast",v)},[]);const p=v=>{h(w=>w.map(j=>j.id===v?{...j,visible:!1}:j)),setTimeout(()=>{h(w=>w.filter(j=>j.id!==v)),delete x.current[v]},300)},g=v=>{const w=x.current[v];if(!w)return;const A=Date.now()-w.start;w.remaining=Math.max(0,w.remaining-A),clearTimeout(w.timeoutId)},y=v=>{const w=x.current[v];!w||w.remaining<=0||(w.start=Date.now(),w.timeoutId=setTimeout(()=>p(v),w.remaining))};return u.jsx(u.Fragment,{children:PS.map(v=>{const w=f.filter(j=>j.position===v).slice(-ng);return w.length===0?null:u.jsx("div",{className:`fixed z-50 space-y-2 w-full sm:w-[320px] px-4 ${IS(v)}`,children:w.map(j=>(console.log("toast : ",j),u.jsxs("div",{onMouseEnter:()=>g(j.id),onMouseLeave:()=>y(j.id),className:Dt("relative px-4 py-3 pr-10 rounded shadow text-white flex items-start gap-3",JS[j.type??"info"],FS[j.animation??"fade"],j.visible?"":WS[j.animation??"fade"]),children:[u.jsx("span",{children:$S[j.type??"info"]}),u.jsx("div",{className:"flex-1 break-words text-sm",dangerouslySetInnerHTML:{__html:j.message}}),u.jsx("button",{className:"absolute top-2 right-2 text-white hover:opacity-80",onClick:()=>p(j.id),children:u.jsx(fb,{size:16})}),j.showProgress&&u.jsx("div",{className:"absolute bottom-0 left-0 h-1 bg-white/50",style:{width:j.progressVisible?"100%":"0%",transition:`width ${j.duration}ms linear`}})]},j.id)))},v)})})};let an={};function e4(a){an=a}function On(a){const r=typeof a=="string"?{...an,message:a,type:(an==null?void 0:an.type)??"info"}:{...an,...a},c=new CustomEvent("custom-toast",{detail:r});window.dispatchEvent(c)}On.success=(a,r)=>On({...an,...r,message:a,type:"success"});On.error=(a,r)=>On({...an,...r,message:a,type:"error"});On.info=(a,r)=>On({...an,...r,message:a,type:"info"});On.warning=(a,r)=>On({...an,...r,message:a,type:"warning"});const t4="rounded-md px-2 shadow-xs bg-white border border-rborder-primary disabled:border-rborder-disabled flex flex-wrap focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle relative min-h-[36px] h-fit w-full gap-2",n4={sm:"h-9 py-2",md:"h-10 pt-2 pb-2.5"},l4="!border-2 !border-rborder-error focus:!outline-0",a4="bg-rbg-disabled-subtle border-rborder-disabled",i4=Lt(t4,{variants:{size:n4},defaultVariants:{size:"sm"}}),r4=({stroke:a="#F04438",fill:r="none",width:c="16",height:s="16"})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 16 16",fill:r,children:[u.jsx("g",{clipPath:"url(#clip0_3531_403167)",children:u.jsx("path",{d:"M7.99998 5.33337V8.00004M7.99998 10.6667H8.00665M14.6666 8.00004C14.6666 11.6819 11.6819 14.6667 7.99998 14.6667C4.31808 14.6667 1.33331 11.6819 1.33331 8.00004C1.33331 4.31814 4.31808 1.33337 7.99998 1.33337C11.6819 1.33337 14.6666 4.31814 14.6666 8.00004Z",stroke:a,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_3531_403167",children:u.jsx("rect",{width:c,height:s,fill:"white"})})})]}),s4=S.memo(r4),o4=({stroke:a="#98A2B3",fill:r="none",width:c="14",height:s="14"})=>u.jsx("svg",{width:c,className:"remove",height:s,viewBox:"0 0 14 14",fill:r,xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.5 4.5L4.5 9.5M4.5 4.5L9.5 9.5",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),c4=S.memo(o4),u4=({size:a="sm",disabled:r=!1,id:c,label:s,required:d=!1,destructive:f=!1,destructiveText:h,hintText:x,placeholder:p,helpIcon:g=!1,className:y,onChange:v,tooltipProps:w,name:j})=>{const[A,E]=S.useState([]),[N,z]=S.useState(""),H=S.useCallback(()=>{const $=N.trim();if($&&!A.includes($)){const J=[...A,$];E(J),v==null||v(J)}z("")},[N,A,E,z,v]),O=S.useCallback($=>{const J=A.filter((K,q)=>q!==$);E(J),v==null||v(J)},[A,E,v]),V=S.useCallback($=>{$.key==="Enter"?($.preventDefault(),H()):$.key==="Backspace"&&N===""&&O((A==null?void 0:A.length)-1)},[H,N,A,O]);return u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx(ks,{id:c,label:s,required:d}),u.jsx("div",{className:"group relative w-full",children:u.jsxs("div",{className:W(i4({size:a}),y,f===!0&&l4,r&&a4,"group-focus-within:outline-2 group-focus-within:outline-rborder-brand",f&&"bg-rbg-disabled-subtle border-rborder-disabled"),children:[A==null?void 0:A.map(($,J)=>u.jsxs("span",{className:`flex items-center text-xs text-rtext-secondary-700 px-1 bg-white
|
|
186
|
-
rounded-sm border border-rborder-primary`,children:[u.jsx("span",{className:"pt-px",children:$}),u.jsx("button",{onClick:()=>O(J),className:"ms-1 my-auto cursor-pointer disabled:cursor-not-allowed",disabled:r,"data-testid":`remove-tag-${J}`,children:u.jsx(c4,{})})]},J)),u.jsx("input",{name:j,disabled:r,className:"outline-none text-sm bg-transparent disabled:cursor-not-allowed",value:N,onChange:$=>z($.target.value),onKeyDown:V,placeholder:(A==null?void 0:A.length)===0?p:""}),g&&w&&f===!1&&u.jsx(ki,{content:w==null?void 0:w.text,description:w==null?void 0:w.description,position:w==null?void 0:w.position,dir:w==null?void 0:w.dir,descriptionClassName:w==null?void 0:w.descriptionClassName,children:u.jsx("div",{"data-testid":"tooltip-button",className:"absolute top-1/2 -translate-y-1/2 ltr:right-2 rtl:left-2 w-fit",children:u.jsx(Iu,{})})}),f===!0&&u.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 ltr:right-2 rtl:left-2 w-fit",children:u.jsx(s4,{})})]})}),f===!1&&x&&u.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:x}),f&&h&&u.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:h})]})},d4=({stroke:a="#667085",fill:r="none",width:c="20",height:s="16"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 20 16",fill:r,children:u.jsx("path",{d:"M1.66669 3.83331L8.47079 8.59618C9.02176 8.98187 9.29725 9.17471 9.59691 9.2494C9.8616 9.31538 10.1384 9.31538 10.4031 9.2494C10.7028 9.17471 10.9783 8.98187 11.5293 8.59618L18.3334 3.83331M5.66669 14.6666H14.3334C15.7335 14.6666 16.4336 14.6666 16.9683 14.3942C17.4387 14.1545 17.8212 13.772 18.0609 13.3016C18.3334 12.7668 18.3334 12.0668 18.3334 10.6666V5.33331C18.3334 3.93318 18.3334 3.23312 18.0609 2.69834C17.8212 2.22793 17.4387 1.84548 16.9683 1.6058C16.4336 1.33331 15.7335 1.33331 14.3334 1.33331H5.66669C4.26656 1.33331 3.56649 1.33331 3.03171 1.6058C2.56131 1.84548 2.17885 2.22793 1.93917 2.69834C1.66669 3.23312 1.66669 3.93318 1.66669 5.33331V10.6666C1.66669 12.0668 1.66669 12.7668 1.93917 13.3016C2.17885 13.772 2.56131 14.1545 3.03171 14.3942C3.56649 14.6666 4.26656 14.6666 5.66669 14.6666Z",stroke:a,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),lg=S.memo(d4),f4=()=>{const[a,r]=S.useState(""),[c,s]=S.useState(""),d=h=>{r(h.target.value)},f=h=>{s(h.target.value)};return u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 w-full",children:[u.jsx(cs,{size:"sm",type:"email",label:"Email",required:!0,placeholder:"Enter your password",onChange:d,className:"w-full",value:a,name:"email",icon:lg,inputType:"iconLeading"}),u.jsx(cs,{size:"sm",type:"password",inputType:"default",label:"Password",required:!0,placeholder:"Enter your password",onChange:d,className:"w-full",value:a,name:"password"}),u.jsx(cs,{tooltipProps:{text:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full"},destructive:!1,destructiveText:"error text",size:"sm",type:"text",inputType:"trailingDropdown",icon:lg,label:"Email",required:!0,hintText:"This is a hint text to help user.",placeholder:"Enter your email",helpIcon:!0,leadingTextValue:"http",trailingDropdownOptions:[{title:"usd",value:1,icon:"$"},{title:"pound",value:2,icon:"£"},{title:"euro",value:3,icon:"€"}],trailingDropdownDefault:{title:"usd",value:1,icon:"$"},onChange:d,className:"w-full",value:a,trailingButtonText:"Copy",name:"Email"}),u.jsx(KS,{row:3,tooltipProps:{text:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full"},destructiveText:"This is an error message.",label:"Description",helpIcon:!0,required:!0,hintText:"This is a hint text to help user.",placeholder:"Enter a description...",className:"w-full",onChange:f,value:c,name:"description",autoFocus:!0}),u.jsx(u4,{tooltipProps:{text:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full"},destructive:!1,destructiveText:"error text",size:"sm",label:"Tags",required:!0,hintText:"This is a hint text to help user.",placeholder:"Enter your tag",helpIcon:!0,onChange:h=>console.log("tags",h),name:"tags"}),u.jsx(cs,{size:"sm",type:"number",inputType:"shaba",label:"شماره شبا",required:!0,placeholder:"شماره شبا را وارد کنید",onChange:d,className:"w-full",value:a,name:"shaba"})]})},m4=S.memo(f4),h4=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{d:"M8 12H16M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#98A2B3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),p4=S.memo(h4),g4=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{d:"M12 8V16M8 12H16M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#98A2B3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),x4=S.memo(g4),v4=()=>{const[a,r]=S.useState(1),c=10,s=h=>{r(h),console.log("صفحه تغییر کرد:",h)},d=[{title:"دسته بندی",link:"/category"},{title:"زیر دسته بندی ",link:"/subcategory"},{title:"محصولات",link:"/product"}],f=[{question:"How can I track my order?",answer:"You can track your order by logging into your account and navigating to the 'Orders' section where the order status will be displayed."},{question:"Can I return a product?",answer:"Yes, you can request a return within 7 days of receiving the product, as long as it is unused and in its original packaging."},{question:"How is the shipping cost calculated?",answer:"Shipping cost is calculated based on your location and the weight of your package. It will be shown during checkout."},{question:"What payment methods are available?",answer:"We accept online payments, bank transfers, and cash on delivery (COD) depending on your location."},{question:"How can I reset my password?",answer:"Click on the 'Forgot password?' link on the login page and follow the instructions to reset your password via email."}];return u.jsxs(u.Fragment,{children:[u.jsx(ws,{value:90,indicatorVariant:"bg-rfg-brand-primary-600",backgroundVariant:"bg-rbg-quaternary"}),u.jsx(ws,{type:"half-circle",value:90,label:70,size:"md",strokeWidth:12,indicatorVariant:"stroke-rose-500",svgClassName:"rotate-[0deg]"}),u.jsx(ed,{id:"switch",label:"مرا به خاطر بسپار",description:"جزئیات ورود من را برای دفعه بعد ذخیره کن.",onToggle:()=>alert("تغییر وضعیت سوئیچ")}),u.jsx(ki,{content:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios, tooltips help the user understand meaning, function or alt-text.",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full",children:u.jsx(on,{children:"نمایش TooltipWrapper"})}),u.jsx(h6,{breadCrumbLink:d,dir:"ltr"}),u.jsxs("div",{className:"mt-6",children:[u.jsx(Fb,{items:f,accordionClassName:"border border-white rounded-md bg-white p-6",itemClassName:"border-b border-gray-200",questionClassName:"text-lg font-bold text-blue-700",answerClassName:"text-sm text-gray-600",type:"single",iconClosed:x4,iconOpen:p4,collapsible:!0}),u.jsx("div",{className:"mt-6",children:u.jsx(oS,{min:0,max:1e7,defaultValue:[1e6,5e6],onValueChange:h=>console.log("انتخاب شده:",h),showValue:!0,className:"w-[500px]"})}),u.jsx("div",{className:"mt-10",children:u.jsx(Gw,{currentPage:a,totalPages:c,onPageChange:s,activeClassName:"bg-brand-700 border-brand-700 text-white",hasText:!1,showFirstLast:!1})})]})]})},y4=S.memo(v4),b4=({width:a="32",height:r="19"})=>u.jsxs("svg",{width:a,height:r,viewBox:"0 0 30 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9052 16.4393C13.3265 17.7699 11.2786 18.5732 9.04092 18.5732C4.04776 18.5732 0 14.5736 0 9.63988C0 4.70613 4.04776 0.706543 9.04092 0.706543C11.2786 0.706543 13.3265 1.50983 14.9052 2.84049C16.4839 1.50983 18.5317 0.706543 20.7694 0.706543C25.7626 0.706543 29.8104 4.70613 29.8104 9.63988C29.8104 14.5736 25.7626 18.5732 20.7694 18.5732C18.5317 18.5732 16.4839 17.7699 14.9052 16.4393Z",fill:"#ED0006"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9053 16.4392C16.8492 14.8006 18.0818 12.3625 18.0818 9.63988C18.0818 6.91727 16.8492 4.47913 14.9053 2.8406C16.484 1.50987 18.5319 0.706543 20.7697 0.706543C25.7628 0.706543 29.8106 4.70613 29.8106 9.63988C29.8106 14.5736 25.7628 18.5732 20.7697 18.5732C18.5319 18.5732 16.484 17.7699 14.9053 16.4392Z",fill:"#F9A000"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9052 16.4393C12.9612 14.8008 11.7285 12.3626 11.7285 9.63995C11.7285 6.91729 12.9612 4.47911 14.9052 2.84058C16.8492 4.47911 18.0818 6.9173 18.0818 9.63997C18.0818 12.3626 16.8492 14.8008 14.9052 16.4393Z",fill:"#FF5E00"})]}),ag=S.memo(b4),w4=()=>{const[a,r]=S.useState("radio1"),[c,s]=S.useState("radio1"),[d,f]=S.useState([]),h=p=>{f(g=>g.includes(p)?g.filter(y=>y!==p):[...g,p])},x=p=>{r(p)};return u.jsx("div",{className:" gap-2 grid grid-cols-4",children:u.jsxs("div",{className:"space-y-2 [&>*]:space-y-2",children:[u.jsx("div",{className:"space-x-2",children:u.jsx(Li,{id:"5",value:"value",label:"چکباکس",size:"md",name:"checkbox-plan-card-8",checkboxIndex:6,checked:d.includes("checkbox-plan-card-8"),onChange:()=>h("checkbox-plan-card-8")})}),u.jsxs("div",{children:["plan card radio",u.jsx(rs,{type:"radio",checkboxIndex:20,title:"Basic Plan",price:"$20",per:"month",size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates} articles} and promotions delivered to your inbox.",badgeContent:"limited time only",value:"basic-plan2",checked:a==="radio2",onChange:()=>x("radio2")}),u.jsx(rs,{type:"radio",checkboxIndex:19,title:"Basic Plan",price:"$20",per:"month",size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates} articles} and promotions delivered to your inbox.",badgeContent:"limited time only",value:"basic-plan2",checked:a==="radio3",onChange:()=>x("radio3")})]}),u.jsxs("div",{children:["plan card basic checkbox",u.jsx(rs,{checkboxIndex:18,title:"Basic Plan",price:"$250",per:"month",hasHeader:!0,size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates articles and promotions delivered to your inbox.",badgeContent:"limited time only",id:"checkbox-plan-card-1",value:"checkbox-plan-card-1",checked:d.includes("checkbox-plan-card-1"),onChange:()=>h("checkbox-plan-card-1"),onCardClick:()=>h("checkbox-plan-card-1")}),u.jsx(rs,{checkboxIndex:8,title:"Basic Plan",price:"$20",per:"month",hasHeader:!0,size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates articles and promotions delivered to your inbox.",badgeContent:"limited time only",id:"checkbox-plan-card-2",value:"checkbox-plan-card-2",checked:d.includes("checkbox-plan-card-2"),onChange:()=>h("checkbox-plan-card-2"),onCardClick:()=>h("checkbox-plan-card-2")})]}),u.jsxs("div",{children:["payment Card radio",u.jsx(Xp,{type:"radio",size:"sm",value:"radio2",name:"radio-group",title:"title",checkboxIndex:16,onChange:p=>r(p.target.value),cardOnclick:()=>r("radio2"),checked:a==="radio2",icon:u.jsx(ys,{className:"!h-8 !w-[46px]","data-testid":"icon-wrapper",children:u.jsx(ag,{})}),description:"Expiry 06/2024",footer:u.jsxs("div",{className:"text-muted-foreground gap-3 text-sm font-semibold flex",children:[u.jsx("span",{children:"set as default"}),u.jsx("span",{className:"text-brand-700",children:"Edit"})]})}),u.jsx(Xp,{type:"radio",size:"sm",value:"radio1",name:"radio-group",title:"title",checkboxIndex:15,onChange:p=>r(p.target.value),cardOnclick:()=>r("radio1"),checked:a==="radio1",icon:u.jsx(ys,{className:"!h-8 !w-[46px]","data-testid":"icon-wrapper",children:u.jsx(ag,{})}),description:"Expiry 06/2024",footer:u.jsxs("div",{className:"text-muted-foreground gap-3 text-sm font-semibold flex",children:[u.jsx("span",{children:"set as default"}),u.jsx("span",{className:"text-brand-700",children:"Edit"})]})})]}),u.jsxs("div",{children:["user Card radio",u.jsx(ss,{size:"sm",checkboxIndex:14,id:"id",name:"card-group",username:"@maryam",description:"product manager,contacts",type:"radio",userFullName:"maria ebrahimi",value:"user-radio1",checked:a==="user-radio1",onChange:p=>r(p.target.value),cardOnclick:()=>r("user-radio1")}),u.jsx(ss,{size:"sm",checkboxIndex:60,id:"id2",name:"card-group",userFullName:"maria ebrahimi",username:"@maryam",description:"product manager,contacts",type:"radio",value:"user-radio2",onChange:p=>r(p.target.value),checked:a==="user-radio2",cardOnclick:()=>r("user-radio2")})]}),u.jsxs("div",{children:["user Card checkbox",u.jsx(ss,{size:"sm",checkboxIndex:55,id:"salam",name:"card-group-5",username:"@maryam",description:"product manager,contacts",userFullName:"maria ebrahimi",value:"checkbox--user-card-2",checked:d.includes("checkbox--user-card-2"),onChange:p=>h(p.target.value),cardOnclick:()=>h("checkbox--user-card-2")}),u.jsx(ss,{size:"sm",checkboxIndex:65,id:"salame2",name:"card-group-5",userFullName:"maria ebrahimi",username:"@maryam",description:"product manager,contacts",value:"checkbox--user-card-1",onChange:p=>h(p.target.value),checked:d.includes("checkbox--user-card-1"),cardOnclick:()=>h("checkbox--user-card-1")})]}),"this is radio",u.jsxs("div",{children:["radio",u.jsx(ja,{id:"radio-option-1",size:"sm",name:"radio-group2",value:"radio1",checked:c==="radio1",onChange:p=>s(p.target.value),children:"Option 1"}),u.jsx(ja,{id:"radio-option-2",size:"sm",name:"radio-group2",value:"radio2",checked:c==="radio2",onChange:p=>s(p.target.value),children:"Option 2"})]})]})})},S4=S.memo(w4),j4=({icon:a,title:r,size:c,sizeFormat:s,className:d,dir:f="rtl"})=>u.jsxs("div",{className:W("w-full flex gap-3 py-2.5 px-3.5 border border-rborder-secondary bg-rbg-primary rounded-md",d,f=="ltr"&&"flex-row-reverse "),children:[u.jsx("div",{className:"w-10 h-10",children:a??null}),u.jsxs("div",{className:"flex flex-col max-w-4/5 ",children:[u.jsx("span",{className:"text-rtext-secondary-700 font-medium text-sm w-full truncate ",children:r}),u.jsxs("span",{className:W("text-rtext-tertiary-600 flex gap-0.5 items-center text-sm font-normal truncate",f=="ltr"&&"flex-row-reverse"),children:[c,s]})]})]}),C4=()=>{const a=()=>{document.documentElement.classList.toggle("dark")},r=[{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"User 1"},{src:"https://randomuser.me/api/portraits/men/32.jpg",alt:"User 2"},{src:"https://randomuser.me/api/portraits/women/25.jpg",alt:"User 3"},{src:"https://randomuser.me/api/portraits/men/19.jpg",alt:"User 4"},{src:"https://randomuser.me/api/portraits/women/11.jpg",alt:"User 5"}],[c,s]=S.useState(!1);return u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1 gap-6",children:[u.jsx("button",{className:"size-20 bg-pink dark:text-white",onClick:a,children:"Click Here"}),u.jsx("div",{className:"w-50 h-12 text-rtext-primary-900 bg-utility-gray-dark-50",children:"Lorem Ipsum"}),u.jsx(Ti,{size:"sm",type:"pillColor",color:"brand",children:"Label"}),u.jsx(zw,{title:"Total Sales",value:"$32,000",icon:u.jsx(Hy,{className:"w-6 h-6 text-green-600"}),iconType:"secondary",iconPosition:"topWithTitle",statistic:u.jsx("span",{className:"text-xs font-medium text-green-700 bg-green-100 rounded px-2 py-0.5",children:"+12%"}),toggleBtn:u.jsx("button",{className:"text-xs text-rtext-tertiary-600 underline",children:"Details"}),actionBtns:[u.jsx("button",{className:"text-sm px-4 py-1.5 bg-rbg-brand-primary text-white rounded-md",children:"View"},"1"),u.jsx("button",{className:"text-sm px-4 py-1.5 border border-rborder-secondary rounded-md",children:"Export"},"2")],statisticPosition:"row-next",dir:"rtl",chartPosition:"side",chartImg:u.jsx("img",{src:"./test.png",alt:""})}),u.jsx(Rl,{type:"single",size:"lg",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},notifyColor:"bg-red-500",addBtnAction:()=>alert("Clicked!")}),u.jsx(Rl,{type:"single",size:"2xl",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},iconBorder:!1,notifyIcon:u.jsx(pp,{}),addBtnAction:()=>alert("Clicked!")}),u.jsx(Rl,{type:"single",size:"md",img:{src:"https://randomuser.me/api/portraits/women/60.jpg",alt:"Emily"},notifyColor:"bg-red-500",title:"Emily Johnson",description:"Product Designer",addBtnAction:()=>alert("Clicked!")}),u.jsx(Rl,{type:"group",size:"lg",imgList:r,showAmount:3,showAddBtn:!0,addBtnAction:()=>alert("Add new user")}),u.jsx(Rl,{type:"labled",size:"xl",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},title:"اولیوییا رای",description:"olivia@untitledui.com",iconBorder:!1,notifyIcon:u.jsx(pp,{}),addBtnAction:()=>alert("Clicked!")}),u.jsx("div",{className:"w-full",dir:"rtl",children:u.jsxs(it,{defaultValue:"account",children:[u.jsxs(it.List,{listVariant:"gray",fullWidth:!1,children:[u.jsxs(it.Trigger,{value:"account",triggerVariant:"gray",fullWidth:!0,children:["Account",u.jsx(xa,{})]}),u.jsxs(it.Trigger,{value:"password",triggerVariant:"gray",fullWidth:!0,children:["Export",u.jsx(xa,{})]})]}),u.jsx(it.Content,{value:"account",children:u.jsx("div",{className:"",children:"acc"})}),u.jsx(it.Content,{value:"password",children:u.jsx("div",{className:"",children:"pass"})})]})}),u.jsx("div",{className:"w-full",dir:"rtl",children:u.jsxs(it,{defaultValue:"account",children:[u.jsxs(it.List,{listVariant:"minimal",fullWidth:!1,children:[u.jsxs(it.Trigger,{value:"account",triggerVariant:"minimal",fullWidth:!0,children:["Account",u.jsx(xa,{})]}),u.jsxs(it.Trigger,{value:"password",triggerVariant:"minimal",fullWidth:!0,children:["Export",u.jsx(xa,{})]})]}),u.jsx(it.Content,{value:"account",children:u.jsx("div",{className:"",children:"acc"})}),u.jsx(it.Content,{value:"password",children:u.jsx("div",{className:"",children:"pass"})})]})}),u.jsx("div",{className:"w-full",dir:"rtl",children:u.jsxs(it,{defaultValue:"account",children:[u.jsxs(it.List,{listVariant:"outlined",fullWidth:!1,children:[u.jsxs(it.Trigger,{value:"account",triggerVariant:"outlined",fullWidth:!1,children:["Account",u.jsx(xa,{})]}),u.jsxs(it.Trigger,{value:"password",triggerVariant:"outlined",fullWidth:!1,children:["Export",u.jsx(xa,{})]})]}),u.jsx(it.Content,{value:"account",children:u.jsx("div",{className:"",children:"acc"})}),u.jsx(it.Content,{value:"password",children:u.jsx("div",{className:"",children:"pass"})})]})}),u.jsx("div",{className:"w-[400px]",children:u.jsx(lw,{mainText:"برای آپلود کلیک کنید",subText:"یا بکشید و رها کنید",formatText:"SVG, PNG, JPG or GIF (max. 800x400px)",onChange:()=>{},onDelete:d=>{console.log(d)},items:[{title:"تصویر_محصول.png",progressValue:75,description:"در حال آپلود...",percentage:75,error:!1,size:"1.1 MB",status:"uploading",id:1},{title:"لوگو.svg",progressValue:100,description:"آپلود کامل شد",percentage:100,error:!1,size:"220 KB",status:"completed",id:2},{title:"بنر.gif",progressValue:0,description:"خطا در آپلود",percentage:0,error:!0,size:"3.2 MB",status:"error",id:3},{title:"بنر.gif",progressValue:0,description:"خطا در آپلود",percentage:0,error:!0,size:"3.2 MB",status:"error",id:4}]})}),u.jsxs("div",{className:"w-1/2 mx-auto flex flex-col gap-12",children:[u.jsx(Fp,{variant:"gray",sender:"user",senderName:"Alice",message:"Here's the document you asked for",date:"April 14, 2025",avatar:u.jsx(Rl,{type:"single",size:"md",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},iconBorder:!1,notifyIcon:!1,addBtnAction:()=>alert("Clicked!")}),className:""}),u.jsx(Fp,{variant:"primary",sender:"admin",senderName:"Admin",message:"Lorem,",date:"April 15, 2025",avatar:u.jsx(Rl,{type:"single",size:"md",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},iconBorder:!1,notifyIcon:!1,addBtnAction:()=>alert("Clicked!")}),children:u.jsx(j4,{title:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Egestas purus viverra accumsan in nisl nisi. Arcu cursus vitae congue mauris rhoncus aenean vel elit scelerisque. In egestas erat imperdiet sed euismod nisi porta lorem mollis. Morbi tristique senectus et netus. Mattis pellentesque id nibh tortor id aliquet lectus proin. Sapien faucibus et molestie ac feugiat sed lectus vestibulum. Ullamcorper velit sed ullamcorper morbi tincidunt ornare massa eget. Dictum varius duis at consectetur lorem. Nisi vitae suscipit tellus mauris a diam maecenas sed enim. Velit ut tortor pretium viverra suspendisse potenti nullam. Et molestie ac feugiat sed lectus. Non nisi est sit amet facilisis magna. Dignissim diam quis enim lobortis scelerisque fermentum. Odio ut enim blandit volutpat maecenas volutpat. Ornare lectus sit amet est placerat in egestas erat. Nisi vitae suscipit tellus mauris a diam maecenas sed. Placerat duis ultricies lacus sed turpis tincidunt id aliquet.",size:"1.2",sizeFormat:"mb",icon:u.jsx(M0,{})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"down",alignment:"left",toggleBtn:{children:u.jsx(u.Fragment,{children:"down left"})},dropDownClassName:" p-4",children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700 w-[1000px]",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"ProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center",children:u.jsx(Ei,{direction:"down",alignment:"right",toggleBtn:{children:u.jsx(u.Fragment,{children:"down right"})},dropDownClassName:" p-4",children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Profile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"up",alignment:"left",toggleBtn:{children:u.jsx(u.Fragment,{children:"up rightawsd"})},dropDownClassName:" p-4",children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700 w-64",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Profile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"down",alignment:"right",toggleBtn:{children:u.jsx(u.Fragment,{children:"up rightawsd"})},dropDownClassName:"w-64 p-4",autoAdjust:!0,open:c,onOpenChange:d=>s(d),children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Profile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"down",alignment:"right",toggleBtn:{variant:"primary",size:"sm",fullWidth:!0,type:"button",children:u.jsx(u.Fragment,{children:"down right"})},autoAdjust:!1,children:u.jsx("div",{className:"bg-black w-20 h-20 text-white p-5",children:"123"})})})]})]})},A4=S.memo(C4),N4=({stroke:a="black",fill:r="none",width:c="24",height:s="24"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 24 24",fill:r,children:u.jsx("path",{d:"M22 12H18L15 21L9 3L6 12H2",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),E4=S.memo(N4),T4=()=>{var f;const[a,r]=S.useState(!1),[c,s]=S.useState(null),d=[{title:"a",value:1},{title:"b",value:2},{title:"c",value:3},{title:"d",value:4},{title:"e",value:5},{title:"f",value:6},{title:"g",value:7}];return u.jsxs("div",{className:"w-full flex flex-col gap-4",children:[u.jsx(hx,{}),u.jsx(z0,{isLoading:!1,onChange:h=>s(h==null?void 0:h.value),className:"",tooltipTitle:"gio gio",tooltipClass:"",selectedValueLabel:((f=d==null?void 0:d.find(h=>(h==null?void 0:h.value)===c))==null?void 0:f.title)??"-",options:d,config:{name:"gio",canSelectZero:!0,errorText:"gio error",isRequiredInput:!0,label:"gio gio"}}),u.jsx(Ti,{size:"sm",type:"pillColor",color:"brand",children:"میلاد پسر رنگ کار مکاری است"}),u.jsx(Ti,{type:"pillColor",color:"indigo",closable:!0,onClose:()=>alert("closed"),children:"برچسب"}),u.jsx(Ti,{size:"md",type:"badgeColor",dir:"rtl",color:"orange",icon:u.jsx("img",{src:"/Avatar.png",alt:"avatar",className:"w-4 h-4 rounded-full"}),children:"Username"}),u.jsx(on,{variant:"primary",size:"sm",leftIcon:u.jsx(Ly,{size:16}),onClick:()=>On.error("test"),children:"Show Toast"}),u.jsx(on,{variant:"primary",onClick:()=>r(!0),size:"md",children:"باز کردن مودال"}),u.jsxs(Dw,{showModal:a,position:"center",size:"md",showCloseIcon:!1,closeHandler:()=>r(!1),modalTitle:"مودال تستی",icon:u.jsx("div",{children:u.jsx(E4,{})}),modalContentStyle:"gap-4 px-6",children:[u.jsx("hr",{}),u.jsx("h2",{children:"ساختار اصلی 25 مودال"}),u.jsx("p",{children:"این مودال جریانش اینه که ساختار پایه ایجاد شده و children هرچی باشه بهش پاس میدیم فقط"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("hr",{}),u.jsx("div",{className:"py-4 flex justify-end sticky bottom-0 bg-white",children:u.jsx(on,{variant:"secondaryColor",size:"sm",leftIcon:u.jsx(Ju,{stroke:"blue"}),onClick:()=>r(!1),children:"بستن"})})]}),u.jsx(aw,{src:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400&h=300&fit=crop",zoom:2,zoomPanePosition:"left",lensSize:140,touchToggle:!0})]})},M4=S.memo(T4),z4=()=>{const a=()=>{document.documentElement.classList.toggle("dark")};return u.jsx(S.StrictMode,{children:u.jsxs("div",{className:"container mx-auto p-8 min-h-screen flex flex-col gap-6 font-yekan",children:[u.jsxs("div",{className:"flex items-center justify-between rounded-xl bg-gray-200 dark:bg-gray-800 font-bold p-4 leading-[var(--line-height-display-sm)] shadow-xs-skeuomorphic",children:[u.jsx("h1",{className:"text-rfg-primary-900",children:"دیزاین سیستم راهکارگستران"}),u.jsx(ed,{id:"switch",label:"تغییر تم",onToggle:a})]}),u.jsx(m4,{}),u.jsx(M4,{}),u.jsx(S4,{}),u.jsx(y4,{}),u.jsx(A4,{})]})})};Q1.createRoot(document.getElementById("root")).render(u.jsxs(S.StrictMode,{children:[u.jsx(hx,{type:"info",position:"bottom-center",duration:4e4,animation:"slide",showProgress:!0}),u.jsx(z4,{})]}));
|
|
185
|
+
sticky top-0 z-10 flex justify-between gap-6 bg-white py-4`,children:[u.jsxs("div",{className:`flex gap-4 justify-start items-start ${p}`,children:[x&&x,s&&u.jsx("h2",{id:"modal-title",className:"text-lg font-semibold",children:s})]}),v&&u.jsx(on,{variant:"tertiaryGray",size:"sm",className:"!p-0",onClick:r,children:u.jsx(Ju,{width:"16",height:"16",stroke:f})})]}),u.jsx("div",{className:"overflow-y-auto",children:a})]})]}),document.body):null},kw=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M15.8334 9.99996H4.16675M4.16675 9.99996L10.0001 15.8333M4.16675 9.99996L10.0001 4.16663",stroke:"#344054",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),eg=S.memo(kw),Lw=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:u.jsx("path",{d:"M4.16675 10H15.8334M15.8334 10L10.0001 4.16669M15.8334 10L10.0001 15.8334",stroke:"#344054",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),tg=S.memo(Lw),Ta=Te.forwardRef(({className:a,...r},c)=>u.jsx("ul",{ref:c,className:W("flex flex-row items-center cursor-pointer",a),...r}));Ta.displayName="PaginationContent";const ft=Te.forwardRef(({className:a,...r},c)=>u.jsx("li",{ref:c,className:W("flex items-center ",a),...r}));ft.displayName="PaginationItem";const nt=({className:a,isActive:r,activeClassName:c,disabled:s,...d})=>{const f="rounded-md border bg-[#F9FAFB] text-[#182230] border-[#F9FAFB]",h="cursor-pointer inline-flex items-center gap-1.5 px-4 py-1.5 justify-center transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",x=r?c||f:"",p=s?"pointer-events-none opacity-50":"";return u.jsx("a",{"aria-current":r?"page":void 0,className:W(h,r?"border border-primary text-primary":"hover:bg-accent hover:text-accent-foreground",x,p,a),...d,"aria-disabled":s,onClick:g=>{var y;s?g.preventDefault():(y=d.onClick)==null||y.call(d,g)}})},Bw=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,previousClassName:f,nextClassName:h,className:x,prevIcon:p,nextIcon:g,...y})=>{const v=s==="rtl";return u.jsx("nav",{role:"navigation","aria-label":"pagination",className:W("",x),...y,children:u.jsxs(Ta,{className:"flex justify-between items-center",children:[u.jsxs("div",{className:"flex",children:[u.jsx(ft,{className:"md:block hidden",children:u.jsx(nt,{size:"default","aria-label":"Go to first page",disabled:a===1,onClick:()=>c==null?void 0:c(1),children:d==null?void 0:d.first})}),u.jsx(ft,{children:u.jsxs(nt,{"aria-label":"Go to previous page",size:"default",className:W("gap-1",f),onClick:()=>c==null?void 0:c(a-1),disabled:a===1,children:[u.jsx("div",{className:"md:block hidden",children:(d==null?void 0:d.prev)||"قبلی"}),u.jsx("div",{className:"md:hidden block",children:v?p||u.jsx(tg,{}):g||u.jsx(eg,{})})]})})]}),u.jsxs("span",{className:"text-sm font-medium",children:[d==null?void 0:d.page," ",a," ",d==null?void 0:d.of," ",r]}),u.jsxs("div",{className:"flex",children:[u.jsx(ft,{children:u.jsxs(nt,{"aria-label":"Go to next page",size:"default",className:W("gap-1",h),onClick:()=>c==null?void 0:c(a+1),disabled:a===r,children:[u.jsx("span",{className:"md:block hidden",children:(d==null?void 0:d.next)||"بعدی"}),u.jsx("div",{className:"md:hidden block",children:v?p||u.jsx(eg,{}):g||u.jsx(tg,{})})]})}),u.jsx(ft,{className:"md:block hidden",children:u.jsx(nt,{size:"default","aria-label":"Go to last page",disabled:a===r,onClick:()=>c==null?void 0:c(r),children:d==null?void 0:d.last})})]})]})})},Hw=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,previousClassName:f,nextClassName:h,className:x,...p})=>{const g=s==="rtl";return u.jsxs("nav",{role:"navigation","aria-label":"pagination",className:W("flex w-full items-center justify-between text-sm text-muted-foreground",x),...p,children:[u.jsxs("span",{children:[d==null?void 0:d.page," ",a," ",d==null?void 0:d.of," ",r]}),u.jsxs(Ta,{className:"flex items-center gap-2",children:[u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(1),disabled:a===1||r<2,children:u.jsx("span",{children:d==null?void 0:d.first})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to previous page",size:"default",className:W("gap-1",f),onClick:()=>c==null?void 0:c(g?a+1:a-1),disabled:g?a===r:a===1,children:u.jsx("span",{children:g?d==null?void 0:d.next:d==null?void 0:d.prev})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to next page",size:"default",className:W("gap-1",h),onClick:()=>c==null?void 0:c(g?a-1:a+1),disabled:g?a===1:a===r,children:u.jsx("span",{children:g?d==null?void 0:d.prev:d==null?void 0:d.next})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(r),disabled:a===r,children:u.jsx("span",{children:d==null?void 0:d.last})})})]})]})},Uw=(a,r,c)=>{const s=[],d=c==="rtl";if(r<=6)for(let f=1;f<=r;f++)s.push(f);else{const f=a>3,h=a<r-2;if(f)if(h)s.push(1,"...",a-1,a,a+1,"...",r);else{s.push(1,2,3,"...");for(let x=r-2;x<=r;x++)s.push(x)}else{for(let x=1;x<=3;x++)s.push(x);s.push("...",r-2,r-1,r)}}return d?[...s].reverse():s},Vw=({currentPage:a,totalPages:r,onPageChange:c,labels:s,previousClassName:d,className:f,activeClassName:h,nextClassName:x,dir:p="rtl",prevIcon:g,nextIcon:y,firstIcon:v,lastIcon:w,showFirstLast:j=!0,hasText:A=!0})=>{const E=Uw(a,r,p),N=p==="rtl",R=N?[...E].reverse():E;return u.jsxs("nav",{role:"navigation","aria-label":"pagination",className:W("mx-auto flex w-full justify-center",p==="rtl"?"rtl":"ltr",f),children:[u.jsxs("div",{className:W("flex gap-2",N?"ml-auto":"mr-auto"),children:[j&&u.jsxs(nt,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(1),disabled:a===1,children:[N?v||u.jsx(xp,{}):w||u.jsx(gp,{}),A&&u.jsx("span",{children:s==null?void 0:s.first})]}),u.jsxs(nt,{"aria-label":"Go to previous page",size:"default",className:W("flex items-center",d),onClick:()=>c==null?void 0:c(a-1),disabled:a===1,children:[N?y||u.jsx(hs,{}):g||u.jsx(ms,{}),A&&u.jsx("span",{children:s==null?void 0:s.prev})]})]}),u.jsx(Ta,{children:R.map((H,O)=>u.jsx(ft,{children:H==="..."?u.jsx("span",{className:"px-2",children:"..."}):u.jsx(nt,{isActive:H===a,onClick:()=>c==null?void 0:c(Number(H)),activeClassName:Dt(h,"rounded-md"),children:H})},O))}),u.jsxs("div",{className:W("flex gap-2",N?"mr-auto":"ml-auto"),children:[u.jsxs(nt,{"aria-label":"Go to next page",size:"default",className:W("flex items-center",x),onClick:()=>c==null?void 0:c(a+1),disabled:a===r,children:[A&&u.jsx("span",{children:s==null?void 0:s.next}),N?g||u.jsx(ms,{}):y||u.jsx(hs,{})]}),j&&u.jsxs(nt,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(r),disabled:a===r,children:[A&&u.jsx("span",{children:s==null?void 0:s.last}),N?w||u.jsx(gp,{}):v||u.jsx(xp,{})]})]})]})},mu=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,renderPageNumbers:f,justifyClassName:h,prevIcon:x,nextIcon:p,hasText:g})=>{const y=s==="rtl";return u.jsx("nav",{role:"navigation","aria-label":"pagination",className:W("w-full flex",h),children:u.jsxs(Ta,{className:"border border-gray-200 rounded-md",children:[u.jsx(ft,{children:u.jsx(nt,{size:"default",className:"px-3 py-1 text-sm disabled:opacity-50 flex items-center",onClick:()=>c==null?void 0:c(a-1),disabled:a===1,children:u.jsx("div",{className:"flex items-center gap-1",children:y?u.jsxs(u.Fragment,{children:[x||u.jsx(hs,{size:16}),g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.prev})]}):u.jsxs(u.Fragment,{children:[p||u.jsx(ms,{size:16}),g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.prev})]})})})}),f(),u.jsx(ft,{children:u.jsx(nt,{size:"default",className:"px-3 py-1 text-sm disabled:opacity-50 flex items-center",onClick:()=>c==null?void 0:c(a+1),disabled:a===r,children:u.jsx("div",{className:"flex items-center gap-1",children:y?u.jsxs(u.Fragment,{children:[g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.next}),p||u.jsx(ms,{size:16})]}):u.jsxs(u.Fragment,{children:[g&&u.jsx("span",{className:"hidden md:block",children:d==null?void 0:d.next}),x||u.jsx(hs,{size:16})]})})})})]})})},qw=({currentPage:a,totalPages:r,onPageChange:c,dir:s="rtl",labels:d,previousClassName:f,nextClassName:h,className:x,...p})=>{const g=s==="rtl";return u.jsxs("nav",{role:"navigation","aria-label":"pagination",className:W("flex w-full items-center justify-between text-sm text-muted-foreground",x),...p,children:[u.jsxs(Ta,{className:"flex gap-2 items-center",children:[u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to first page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(1),disabled:a===1,children:u.jsx("span",{children:d==null?void 0:d.first})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to previous page",size:"default",className:W("gap-1",f),onClick:()=>c==null?void 0:c(g?a+1:a-1),disabled:g?a===r:a===1,children:u.jsx("span",{children:g?d==null?void 0:d.next:d==null?void 0:d.prev})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to next page",size:"default",className:W("gap-1",h),onClick:()=>c==null?void 0:c(g?a-1:a+1),disabled:g?a===1:a===r,children:u.jsx("span",{children:g?d==null?void 0:d.prev:d==null?void 0:d.next})})}),u.jsx(ft,{children:u.jsx(nt,{"aria-label":"Go to last page",size:"default",className:"gap-1 px-2.5",onClick:()=>c==null?void 0:c(r),disabled:a===r,children:u.jsx("span",{children:d==null?void 0:d.last})})})]}),u.jsxs("span",{children:[d==null?void 0:d.page," ",a," ",d==null?void 0:d.of," ",r]})]})},Gw=({currentPage:a,totalPages:r,onPageChange:c,type:s="default",dir:d="rtl",className:f,activeClassName:h,previousClassName:x,nextClassName:p,prevIcon:g,nextIcon:y,firstIcon:v,lastIcon:w,showFirstLast:j=!0,labels:A,hasText:E=!0,...N})=>{const R=d==="rtl",O={...{next:R?"بعدی":"Next",prev:R?"قبلی":"Previous",first:R?"اولین":"First",last:R?"آخرین":"Last",page:R?"صفحه":"page",of:R?"از":"of"},...A};if(r<=1)return null;const V=()=>{const $=typeof window<"u"&&window.innerWidth<768,J=[];if($){const q=new Set;q.add(1),q.add(2),q.add(r-1),q.add(r),a!==1&&a!==2&&a!==r-1&&a!==r&&q.add(a);const te=Array.from(q).sort((ee,le)=>ee-le);for(let ee=0;ee<te.length;ee++)J.push(te[ee]),ee<te.length-1&&te[ee+1]!==te[ee]+1&&J.push("...")}else if(r<=6)for(let q=1;q<=r;q++)J.push(q);else{const q=a>3,te=a<r-2;if(q)if(te)J.push(1,"...",a-1,a,a+1,"...",r);else{J.push(1,2,3,"...");for(let ee=r-2;ee<=r;ee++)J.push(ee)}else{for(let ee=1;ee<=3;ee++)J.push(ee);J.push("...",r-2,r-1,r)}}const Q=R?[...J].reverse():J;return u.jsx("div",{className:W("flex h-full",R&&"flex-row-reverse"),children:Q.map((q,te)=>q==="..."?u.jsx("span",{className:"md:px-3 md:py-1 p-2 text-gray-400 text-sm",children:"..."},`dots-${te}`):u.jsx("button",{onClick:()=>c==null?void 0:c(q),className:W("px-3 py-1 text-sm border border-gray-200",a===q?h:f),children:q},q))})};return s==="card-minimal-right-aligned"?u.jsx(Hw,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,...N}):s==="card-minimal-left-aligned"?u.jsx(qw,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,...N}):s==="card-minimal-center-aligned"?u.jsx(Bw,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,prevIcon:g,nextIcon:y,...N}):s==="card-button-group-right-aligned"?u.jsx(mu,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,renderPageNumbers:V,previousClassName:x,nextClassName:p,justifyClassName:Dt(f,"justify-end"),prevIcon:g,nextIcon:y,hasText:E,...N}):s==="card-button-group-left-aligned"?u.jsx(mu,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,renderPageNumbers:V,previousClassName:x,nextClassName:p,justifyClassName:Dt(f,"justify-start"),prevIcon:g,nextIcon:y,hasText:E,...N}):s==="card-button-group-center-aligned"?u.jsx(mu,{currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,renderPageNumbers:V,previousClassName:x,nextClassName:p,justifyClassName:Dt(f,"justify-center"),prevIcon:g,nextIcon:y,hasText:E,...N}):u.jsx(Vw,{activeClassName:h,currentPage:a,totalPages:r,onPageChange:c,dir:d,labels:O,previousClassName:x,nextClassName:p,className:f,prevIcon:g,nextIcon:y,firstIcon:v,lastIcon:w,showFirstLast:j,hasText:E})};function R0(a,[r,c]){return Math.min(c,Math.max(r,a))}function _0(a){const r=S.useRef({value:a,previous:a});return S.useMemo(()=>(r.current.value!==a&&(r.current.previous=r.current.value,r.current.value=a),r.current.previous),[a])}var O0=["PageUp","PageDown"],D0=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],k0={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Ma="Slider",[Au,Yw,Xw]=zu(Ma),[L0]=un(Ma,[Xw]),[Zw,Ls]=L0(Ma),B0=S.forwardRef((a,r)=>{const{name:c,min:s=0,max:d=100,step:f=1,orientation:h="horizontal",disabled:x=!1,minStepsBetweenThumbs:p=0,defaultValue:g=[s],value:y,onValueChange:v=()=>{},onValueCommit:w=()=>{},inverted:j=!1,form:A,...E}=a,N=S.useRef(new Set),R=S.useRef(0),O=h==="horizontal"?Qw:Kw,[V=[],$]=dl({prop:y,defaultProp:g,onChange:le=>{var he;(he=[...N.current][R.current])==null||he.focus(),v(le)}}),J=S.useRef(V);function Q(le){const re=Iw(V,le);ee(le,re)}function q(le){ee(le,R.current)}function te(){const le=J.current[R.current];V[R.current]!==le&&w(V)}function ee(le,re,{commit:he}={commit:!1}){const fe=nS(f),pe=lS(Math.round((le-s)/f)*f+s,fe),_=R0(pe,[s,d]);$((G=[])=>{const B=Fw(G,_,re);if(tS(B,p*f)){R.current=B.indexOf(_);const oe=String(B)!==String(G);return oe&&he&&w(B),oe?B:G}else return G})}return u.jsx(Zw,{scope:a.__scopeSlider,name:c,disabled:x,min:s,max:d,valueIndexToChangeRef:R,thumbs:N.current,values:V,orientation:h,form:A,children:u.jsx(Au.Provider,{scope:a.__scopeSlider,children:u.jsx(Au.Slot,{scope:a.__scopeSlider,children:u.jsx(O,{"aria-disabled":x,"data-disabled":x?"":void 0,...E,ref:r,onPointerDown:He(E.onPointerDown,()=>{x||(J.current=V)}),min:s,max:d,inverted:j,onSlideStart:x?void 0:Q,onSlideMove:x?void 0:q,onSlideEnd:x?void 0:te,onHomeKeyDown:()=>!x&&ee(s,0,{commit:!0}),onEndKeyDown:()=>!x&&ee(d,V.length-1,{commit:!0}),onStepKeyDown:({event:le,direction:re})=>{if(!x){const pe=O0.includes(le.key)||le.shiftKey&&D0.includes(le.key)?10:1,_=R.current,G=V[_],B=f*pe*re;ee(G+B,_,{commit:!0})}}})})})})});B0.displayName=Ma;var[H0,U0]=L0(Ma,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Qw=S.forwardRef((a,r)=>{const{min:c,max:s,dir:d,inverted:f,onSlideStart:h,onSlideMove:x,onSlideEnd:p,onStepKeyDown:g,...y}=a,[v,w]=S.useState(null),j=Ie(r,O=>w(O)),A=S.useRef(void 0),E=Cs(d),N=E==="ltr",R=N&&!f||!N&&f;function H(O){const V=A.current||v.getBoundingClientRect(),$=[0,V.width],Q=Pu($,R?[c,s]:[s,c]);return A.current=V,Q(O-V.left)}return u.jsx(H0,{scope:a.__scopeSlider,startEdge:R?"left":"right",endEdge:R?"right":"left",direction:R?1:-1,size:"width",children:u.jsx(V0,{dir:E,"data-orientation":"horizontal",...y,ref:j,style:{...y.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:O=>{const V=H(O.clientX);h==null||h(V)},onSlideMove:O=>{const V=H(O.clientX);x==null||x(V)},onSlideEnd:()=>{A.current=void 0,p==null||p()},onStepKeyDown:O=>{const $=k0[R?"from-left":"from-right"].includes(O.key);g==null||g({event:O,direction:$?-1:1})}})})}),Kw=S.forwardRef((a,r)=>{const{min:c,max:s,inverted:d,onSlideStart:f,onSlideMove:h,onSlideEnd:x,onStepKeyDown:p,...g}=a,y=S.useRef(null),v=Ie(r,y),w=S.useRef(void 0),j=!d;function A(E){const N=w.current||y.current.getBoundingClientRect(),R=[0,N.height],O=Pu(R,j?[s,c]:[c,s]);return w.current=N,O(E-N.top)}return u.jsx(H0,{scope:a.__scopeSlider,startEdge:j?"bottom":"top",endEdge:j?"top":"bottom",size:"height",direction:j?1:-1,children:u.jsx(V0,{"data-orientation":"vertical",...g,ref:v,style:{...g.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:E=>{const N=A(E.clientY);f==null||f(N)},onSlideMove:E=>{const N=A(E.clientY);h==null||h(N)},onSlideEnd:()=>{w.current=void 0,x==null||x()},onStepKeyDown:E=>{const R=k0[j?"from-bottom":"from-top"].includes(E.key);p==null||p({event:E,direction:R?-1:1})}})})}),V0=S.forwardRef((a,r)=>{const{__scopeSlider:c,onSlideStart:s,onSlideMove:d,onSlideEnd:f,onHomeKeyDown:h,onEndKeyDown:x,onStepKeyDown:p,...g}=a,y=Ls(Ma,c);return u.jsx(Ue.span,{...g,ref:r,onKeyDown:He(a.onKeyDown,v=>{v.key==="Home"?(h(v),v.preventDefault()):v.key==="End"?(x(v),v.preventDefault()):O0.concat(D0).includes(v.key)&&(p(v),v.preventDefault())}),onPointerDown:He(a.onPointerDown,v=>{const w=v.target;w.setPointerCapture(v.pointerId),v.preventDefault(),y.thumbs.has(w)?w.focus():s(v)}),onPointerMove:He(a.onPointerMove,v=>{v.target.hasPointerCapture(v.pointerId)&&d(v)}),onPointerUp:He(a.onPointerUp,v=>{const w=v.target;w.hasPointerCapture(v.pointerId)&&(w.releasePointerCapture(v.pointerId),f(v))})})}),q0="SliderTrack",G0=S.forwardRef((a,r)=>{const{__scopeSlider:c,...s}=a,d=Ls(q0,c);return u.jsx(Ue.span,{"data-disabled":d.disabled?"":void 0,"data-orientation":d.orientation,...s,ref:r})});G0.displayName=q0;var Nu="SliderRange",Y0=S.forwardRef((a,r)=>{const{__scopeSlider:c,...s}=a,d=Ls(Nu,c),f=U0(Nu,c),h=S.useRef(null),x=Ie(r,h),p=d.values.length,g=d.values.map(w=>Q0(w,d.min,d.max)),y=p>1?Math.min(...g):0,v=100-Math.max(...g);return u.jsx(Ue.span,{"data-orientation":d.orientation,"data-disabled":d.disabled?"":void 0,...s,ref:x,style:{...a.style,[f.startEdge]:y+"%",[f.endEdge]:v+"%"}})});Y0.displayName=Nu;var Eu="SliderThumb",X0=S.forwardRef((a,r)=>{const c=Yw(a.__scopeSlider),[s,d]=S.useState(null),f=Ie(r,x=>d(x)),h=S.useMemo(()=>s?c().findIndex(x=>x.ref.current===s):-1,[c,s]);return u.jsx($w,{...a,ref:f,index:h})}),$w=S.forwardRef((a,r)=>{const{__scopeSlider:c,index:s,name:d,...f}=a,h=Ls(Eu,c),x=U0(Eu,c),[p,g]=S.useState(null),y=Ie(r,H=>g(H)),v=p?h.form||!!p.closest("form"):!0,w=Zu(p),j=h.values[s],A=j===void 0?0:Q0(j,h.min,h.max),E=Ww(s,h.values.length),N=w==null?void 0:w[x.size],R=N?Pw(N,A,x.direction):0;return S.useEffect(()=>{if(p)return h.thumbs.add(p),()=>{h.thumbs.delete(p)}},[p,h.thumbs]),u.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[x.startEdge]:`calc(${A}% + ${R}px)`},children:[u.jsx(Au.ItemSlot,{scope:a.__scopeSlider,children:u.jsx(Ue.span,{role:"slider","aria-label":a["aria-label"]||E,"aria-valuemin":h.min,"aria-valuenow":j,"aria-valuemax":h.max,"aria-orientation":h.orientation,"data-orientation":h.orientation,"data-disabled":h.disabled?"":void 0,tabIndex:h.disabled?void 0:0,...f,ref:y,style:j===void 0?{display:"none"}:a.style,onFocus:He(a.onFocus,()=>{h.valueIndexToChangeRef.current=s})})}),v&&u.jsx(Z0,{name:d??(h.name?h.name+(h.values.length>1?"[]":""):void 0),form:h.form,value:j},s)]})});X0.displayName=Eu;var Jw="RadioBubbleInput",Z0=S.forwardRef(({__scopeSlider:a,value:r,...c},s)=>{const d=S.useRef(null),f=Ie(d,s),h=_0(r);return S.useEffect(()=>{const x=d.current;if(!x)return;const p=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==r&&y){const v=new Event("input",{bubbles:!0});y.call(x,r),x.dispatchEvent(v)}},[h,r]),u.jsx(Ue.input,{style:{display:"none"},...c,ref:f,defaultValue:r})});Z0.displayName=Jw;function Fw(a=[],r,c){const s=[...a];return s[c]=r,s.sort((d,f)=>d-f)}function Q0(a,r,c){const f=100/(c-r)*(a-r);return R0(f,[0,100])}function Ww(a,r){return r>2?`Value ${a+1} of ${r}`:r===2?["Minimum","Maximum"][a]:void 0}function Iw(a,r){if(a.length===1)return 0;const c=a.map(d=>Math.abs(d-r)),s=Math.min(...c);return c.indexOf(s)}function Pw(a,r,c){const s=a/2,f=Pu([0,50],[0,s]);return(s-f(r)*c)*c}function eS(a){return a.slice(0,-1).map((r,c)=>a[c+1]-r)}function tS(a,r){if(r>0){const c=eS(a);return Math.min(...c)>=r}return!0}function Pu(a,r){return c=>{if(a[0]===a[1]||r[0]===r[1])return r[0];const s=(r[1]-r[0])/(a[1]-a[0]);return r[0]+s*(c-a[0])}}function nS(a){return(String(a).split(".")[1]||"").length}function lS(a,r){const c=Math.pow(10,r);return Math.round(a*c)/c}var aS=B0,iS=G0,rS=Y0,sS=X0;function oS({defaultValue:a=[0,1e3],min:r=0,max:c=1e3,step:s=1,className:d="",trackClassName:f="",rangeClassName:h="",thumbClassName:x="",showValue:p=!1,valueClassName:g="",isPercentage:y=!1,valuePosition:v="bottom",dir:w="ltr",onValueChange:j,...A}){const[E,N]=S.useState(a),R=H=>{const[O,V]=H,$=Math.max(r,Math.min(O,c)),J=Math.min(c,Math.max(V,r)),Q=[$,J];N(Q),j==null||j(Q)};return u.jsxs(aS,{value:E,onValueChange:R,min:r,max:c,step:s,dir:w,className:W("relative flex w-full touch-none select-none items-center",d),...A,children:[u.jsx(iS,{className:W("relative h-2 w-full grow overflow-hidden rounded-full bg-gray-light-200",f),children:u.jsx(rS,{className:W("absolute h-full bg-rfg-brand-primary-600",h)})}),E.map((H,O)=>u.jsx(sS,{className:W("relative block h-5 w-5 rounded-full border-2 border-rfg-brand-primary-600 bg-white focus:outline-none focus:ring-2 focus:ring-rfg-brand-primary-300",x),children:p&&u.jsx("span",{className:W("absolute left-1/2 -translate-x-1/2 whitespace-nowrap text-xs text-gray-700",v==="top"?"bottom-7":"top-7",g),children:y?`٪${H}`:H.toLocaleString()})},O))]})}var Bs="Switch",[cS]=un(Bs),[uS,dS]=cS(Bs),K0=S.forwardRef((a,r)=>{const{__scopeSwitch:c,name:s,checked:d,defaultChecked:f,required:h,disabled:x,value:p="on",onCheckedChange:g,form:y,...v}=a,[w,j]=S.useState(null),A=Ie(r,O=>j(O)),E=S.useRef(!1),N=w?y||!!w.closest("form"):!0,[R,H]=dl({prop:d,defaultProp:f??!1,onChange:g,caller:Bs});return u.jsxs(uS,{scope:c,checked:R,disabled:x,children:[u.jsx(Ue.button,{type:"button",role:"switch","aria-checked":R,"aria-required":h,"data-state":W0(R),"data-disabled":x?"":void 0,disabled:x,value:p,...v,ref:A,onClick:He(a.onClick,O=>{H(V=>!V),N&&(E.current=O.isPropagationStopped(),E.current||O.stopPropagation())})}),N&&u.jsx(F0,{control:w,bubbles:!E.current,name:s,value:p,checked:R,required:h,disabled:x,form:y,style:{transform:"translateX(-100%)"}})]})});K0.displayName=Bs;var $0="SwitchThumb",J0=S.forwardRef((a,r)=>{const{__scopeSwitch:c,...s}=a,d=dS($0,c);return u.jsx(Ue.span,{"data-state":W0(d.checked),"data-disabled":d.disabled?"":void 0,...s,ref:r})});J0.displayName=$0;var fS="SwitchBubbleInput",F0=S.forwardRef(({__scopeSwitch:a,control:r,checked:c,bubbles:s=!0,...d},f)=>{const h=S.useRef(null),x=Ie(h,f),p=_0(c),g=Zu(r);return S.useEffect(()=>{const y=h.current;if(!y)return;const v=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(v,"checked").set;if(p!==c&&j){const A=new Event("click",{bubbles:s});j.call(y,c),y.dispatchEvent(A)}},[p,c,s]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:c,...d,tabIndex:-1,ref:x,style:{...d.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});F0.displayName=fS;function W0(a){return a?"checked":"unchecked"}var mS=K0,hS=J0;function pS({label:a,labelClassName:r,handleClick:c,description:s,descriptionClassName:d}){return u.jsxs("div",{className:"flex flex-col gap-1",children:[a&&u.jsx(on,{type:"button",variant:"linkGray",className:W("text-sm",r),onClick:c,children:a}),s&&u.jsx("span",{className:W("text-xs text-gray-500",d),children:s})]})}const ed=S.forwardRef(({className:a,thumbClassName:r,label:c,labelClassName:s,descriptionClassName:d,description:f,onToggle:h,...x},p)=>{const[g,y]=S.useState(!1),v=()=>{y(w=>!w),h()};return u.jsxs("div",{className:W("flex gap-1",f?"items-start":"items-center"),children:[u.jsx(mS,{ref:p,className:W("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-start rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-brand-600 data-[state=unchecked]:bg-gray-light-100",a,f?"mt-0.5":"mt-0"),onCheckedChange:v,checked:g,...x,children:u.jsx(hS,{className:W("pointer-events-none block h-5 w-5 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:-translate-x-5 data-[state=checked]:ltr:translate-x-5 data-[state=unchecked]:-translate-x-0",r)})}),u.jsx(pS,{label:c,labelClassName:s,handleClick:v,description:f,descriptionClassName:d})]})});ed.displayName="Switch";var hu="rovingFocusGroup.onEntryFocus",gS={bubbles:!1,cancelable:!0},Bi="RovingFocusGroup",[Tu,I0,xS]=zu(Bi),[vS,P0]=un(Bi,[xS]),[yS,bS]=vS(Bi),ex=S.forwardRef((a,r)=>u.jsx(Tu.Provider,{scope:a.__scopeRovingFocusGroup,children:u.jsx(Tu.Slot,{scope:a.__scopeRovingFocusGroup,children:u.jsx(wS,{...a,ref:r})})}));ex.displayName=Bi;var wS=S.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:c,orientation:s,loop:d=!1,dir:f,currentTabStopId:h,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...v}=a,w=S.useRef(null),j=Ie(r,w),A=Cs(f),[E,N]=dl({prop:h,defaultProp:x??null,onChange:p,caller:Bi}),[R,H]=S.useState(!1),O=Oi(g),V=I0(c),$=S.useRef(!1),[J,Q]=S.useState(0);return S.useEffect(()=>{const q=w.current;if(q)return q.addEventListener(hu,O),()=>q.removeEventListener(hu,O)},[O]),u.jsx(yS,{scope:c,orientation:s,dir:A,loop:d,currentTabStopId:E,onItemFocus:S.useCallback(q=>N(q),[N]),onItemShiftTab:S.useCallback(()=>H(!0),[]),onFocusableItemAdd:S.useCallback(()=>Q(q=>q+1),[]),onFocusableItemRemove:S.useCallback(()=>Q(q=>q-1),[]),children:u.jsx(Ue.div,{tabIndex:R||J===0?-1:0,"data-orientation":s,...v,ref:j,style:{outline:"none",...a.style},onMouseDown:He(a.onMouseDown,()=>{$.current=!0}),onFocus:He(a.onFocus,q=>{const te=!$.current;if(q.target===q.currentTarget&&te&&!R){const ee=new CustomEvent(hu,gS);if(q.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const le=V().filter(_=>_.focusable),re=le.find(_=>_.active),he=le.find(_=>_.id===E),pe=[re,he,...le].filter(Boolean).map(_=>_.ref.current);lx(pe,y)}}$.current=!1}),onBlur:He(a.onBlur,()=>H(!1))})})}),tx="RovingFocusGroupItem",nx=S.forwardRef((a,r)=>{const{__scopeRovingFocusGroup:c,focusable:s=!0,active:d=!1,tabStopId:f,children:h,...x}=a,p=_i(),g=f||p,y=bS(tx,c),v=y.currentTabStopId===g,w=I0(c),{onFocusableItemAdd:j,onFocusableItemRemove:A,currentTabStopId:E}=y;return S.useEffect(()=>{if(s)return j(),()=>A()},[s,j,A]),u.jsx(Tu.ItemSlot,{scope:c,id:g,focusable:s,active:d,children:u.jsx(Ue.span,{tabIndex:v?0:-1,"data-orientation":y.orientation,...x,ref:r,onMouseDown:He(a.onMouseDown,N=>{s?y.onItemFocus(g):N.preventDefault()}),onFocus:He(a.onFocus,()=>y.onItemFocus(g)),onKeyDown:He(a.onKeyDown,N=>{if(N.key==="Tab"&&N.shiftKey){y.onItemShiftTab();return}if(N.target!==N.currentTarget)return;const R=CS(N,y.orientation,y.dir);if(R!==void 0){if(N.metaKey||N.ctrlKey||N.altKey||N.shiftKey)return;N.preventDefault();let O=w().filter(V=>V.focusable).map(V=>V.ref.current);if(R==="last")O.reverse();else if(R==="prev"||R==="next"){R==="prev"&&O.reverse();const V=O.indexOf(N.currentTarget);O=y.loop?AS(O,V+1):O.slice(V+1)}setTimeout(()=>lx(O))}}),children:typeof h=="function"?h({isCurrentTabStop:v,hasTabStop:E!=null}):h})})});nx.displayName=tx;var SS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jS(a,r){return r!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function CS(a,r,c){const s=jS(a.key,c);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return SS[s]}function lx(a,r=!1){const c=document.activeElement;for(const s of a)if(s===c||(s.focus({preventScroll:r}),document.activeElement!==c))return}function AS(a,r){return a.map((c,s)=>a[(r+s)%a.length])}var NS=ex,ES=nx,Hs="Tabs",[TS]=un(Hs,[P0]),ax=P0(),[MS,td]=TS(Hs),ix=S.forwardRef((a,r)=>{const{__scopeTabs:c,value:s,onValueChange:d,defaultValue:f,orientation:h="horizontal",dir:x,activationMode:p="automatic",...g}=a,y=Cs(x),[v,w]=dl({prop:s,onChange:d,defaultProp:f??"",caller:Hs});return u.jsx(MS,{scope:c,baseId:_i(),value:v,onValueChange:w,orientation:h,dir:y,activationMode:p,children:u.jsx(Ue.div,{dir:y,"data-orientation":h,...g,ref:r})})});ix.displayName=Hs;var rx="TabsList",sx=S.forwardRef((a,r)=>{const{__scopeTabs:c,loop:s=!0,...d}=a,f=td(rx,c),h=ax(c);return u.jsx(NS,{asChild:!0,...h,orientation:f.orientation,dir:f.dir,loop:s,children:u.jsx(Ue.div,{role:"tablist","aria-orientation":f.orientation,...d,ref:r})})});sx.displayName=rx;var ox="TabsTrigger",cx=S.forwardRef((a,r)=>{const{__scopeTabs:c,value:s,disabled:d=!1,...f}=a,h=td(ox,c),x=ax(c),p=fx(h.baseId,s),g=mx(h.baseId,s),y=s===h.value;return u.jsx(ES,{asChild:!0,...x,focusable:!d,active:y,children:u.jsx(Ue.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":d?"":void 0,disabled:d,id:p,...f,ref:r,onMouseDown:He(a.onMouseDown,v=>{!d&&v.button===0&&v.ctrlKey===!1?h.onValueChange(s):v.preventDefault()}),onKeyDown:He(a.onKeyDown,v=>{[" ","Enter"].includes(v.key)&&h.onValueChange(s)}),onFocus:He(a.onFocus,()=>{const v=h.activationMode!=="manual";!y&&!d&&v&&h.onValueChange(s)})})})});cx.displayName=ox;var ux="TabsContent",dx=S.forwardRef((a,r)=>{const{__scopeTabs:c,value:s,forceMount:d,children:f,...h}=a,x=td(ux,c),p=fx(x.baseId,s),g=mx(x.baseId,s),y=s===x.value,v=S.useRef(y);return S.useEffect(()=>{const w=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(Ss,{present:d||y,children:({present:w})=>u.jsx(Ue.div,{"data-state":y?"active":"inactive","data-orientation":x.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:r,style:{...a.style,animationDuration:v.current?"0s":void 0},children:w&&f})})});dx.displayName=ux;function fx(a,r){return`${a}-trigger-${r}`}function mx(a,r){return`${a}-content-${r}`}var zS=ix,RS=sx,_S=cx,OS=dx;function DS({className:a,...r}){return u.jsx(OS,{"data-slot":"tabs-content",className:W("flex-1 outline-none",a),...r})}const kS=" text-muted-foreground inline-flex flex-row h-9 items-center",LS={brand:"",gray:"",outlined:"border-b border-rborder-secondary gap-2",bordered:"rounded-lg border border-rborder-secondary bg-rbg-secondary-alt p-1",minimal:" rounded-md border border-rborder-secondary bg-rbg-secondary-alt !gap-0.5"},BS=Lt(kS,{variants:{listVariant:LS,fullWidth:{true:"justify-between",false:"justify-start gap-1"},direction:{vertical:"flex-col min-h-fit max-w-fit ",horizontal:"flex-row w-full"}},defaultVariants:{listVariant:"brand",fullWidth:!0,direction:"horizontal"}}),HS=" h-full py-2 px-3 cursor-pointer inline-flex items-center justify-center gap-2 text-sm font-normal whitespace-nowrap transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",US={brand:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:bg-rbg-brand-primary-alt data-[state=active]:text-rtext-brand-secondary-700 ",gray:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:bg-rbg-active data-[state=active]:text-rtext-secondary-700 ",outlined:"text-rtext-quaternary-500 data-[state=active]:text-rtext-brand-secondary-700 pb-2.5 data-[state=active]:pb-2 data-[state=active]:border-b-2 data-[state=active]:border-rgf-brand-primary-alt",bordered:"text-rtext-quaternary-500 data-[state=active]:rounded-sm data-[state=active]:text-rtext-secondary-700 data-[state=active]:bg-rbg-primary-alt data-[state=active]:shadow-sm",minimal:"text-rtext-quaternary-500 data-[state=active]:rounded-md data-[state=active]:text-rtext-secondary-700 data-[state=active]:bg-rbg-primary-alt data-[state=active]:border data-[state=active]:border-rborder-primary data-[state=active]:shadow-xs"},VS=Lt(HS,{variants:{triggerVariant:US,fullWidth:{true:"w-full",false:"w-fit justify-start gap-1 items-center"}},defaultVariants:{triggerVariant:"gray",fullWidth:!0}});function qS({className:a,listVariant:r,direction:c="horizontal",fullWidth:s=!1,...d}){return u.jsx(RS,{"data-slot":"tabs-list",className:W(BS({fullWidth:s,listVariant:r,direction:c}),a),...d})}function GS({className:a,triggerVariant:r,fullWidth:c,...s}){return u.jsx(_S,{"data-slot":"tabs-trigger",className:W(VS({triggerVariant:r,fullWidth:c}),a),...s})}const YS=({className:a,direction:r="horizontal",dir:c="rtl",...s})=>u.jsx(zS,{"data-slot":"tabs",dir:c,className:W("flex gap-2",r=="horizontal"?"flex-col":"flex-row",a),...s}),it=Object.assign(YS,{List:qS,Trigger:GS,Content:DS}),XS="rounded-md p-2 shadow-xs w-fit bg-white border border-rborder-primary focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle disabled:border-rborder-disabled w-full",ZS="!border-2 !border-rborder-error focus:!outline-0",QS=Lt(XS),KS=({row:a=5,label:r,required:c=!1,destructive:s=!1,disabled:d=!1,destructiveText:f,hintText:h,placeholder:x,helpIcon:p=!1,onChange:g,id:y,tooltipProps:v,className:w,value:j,name:A,labelClass:E,labelStarClass:N,autoFocus:R=!1,...H})=>u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsxs("div",{className:"flex items-center",children:[u.jsx(ks,{id:y,label:r,required:c,labelClass:E,labelStarClass:N}),p&&v&&u.jsx(ki,{content:v==null?void 0:v.text,description:v==null?void 0:v.description,position:v==null?void 0:v.position,dir:v==null?void 0:v.dir,descriptionClassName:v==null?void 0:v.descriptionClassName,children:u.jsx("div",{children:u.jsx(Iu,{})})})]}),u.jsx("textarea",{value:j,name:A,disabled:d,rows:a,placeholder:x,id:y,onChange:g,className:W(QS(),w,s&&ZS,s&&"bg-rbg-disabled-subtle border-rborder-disabled"),autoFocus:R,...H}),s===!1&&h&&u.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:h}),s&&f&&u.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:f})]}),$S={success:u.jsx(Ky,{className:"text-green-100",size:20}),error:u.jsx(Jy,{className:"text-red-100",size:20}),info:u.jsx(rb,{className:"text-blue-100",size:20}),warning:u.jsx(ub,{className:"text-yellow-100",size:20})},JS={success:"bg-green-500",error:"bg-red-500",info:"bg-blue-500",warning:"bg-yellow-500 text-black"},FS={fade:"transition-all duration-300",slide:"transition-all duration-300 transform translate-x-0",scale:"transition-all duration-300 transform scale-100"},WS={fade:"opacity-0",slide:"translate-x-10 opacity-0",scale:"scale-0 opacity-0"};function IS(a){switch(a){case"top-left":return"top-4 left-4";case"top-center":return"top-4 left-1/2 -translate-x-1/2";case"top-right":return"top-4 right-4";case"middle-center":return"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2";case"bottom-left":return"bottom-4 left-4";case"bottom-center":return"bottom-4 left-1/2 -translate-x-1/2";case"bottom-right":return"bottom-4 right-4";default:return"top-4 right-4"}}const ng=3,PS=["top-left","top-center","top-right","middle-center","bottom-left","bottom-center","bottom-right"],hx=({type:a="info",position:r="top-right",duration:c=3e3,animation:s="fade",showProgress:d=!0})=>{const[f,h]=S.useState([]),x=S.useRef({});S.useEffect(()=>{e4({type:a,duration:c,animation:s,position:r,showProgress:d})},[]),S.useEffect(()=>{const v=w=>{const j=Date.now(),A=w.detail.duration??3e3,E={...w.detail,id:j,visible:!0,progressVisible:!1,duration:A,position:w.detail.position??"top-right",animation:w.detail.animation??"fade",showProgress:w.detail.showProgress??!1};h(N=>{if(N.length>=ng)return N;const R=Date.now();return x.current[j]={timeoutId:setTimeout(()=>p(j),A),start:R,remaining:A},[...N,E]}),requestAnimationFrame(()=>{h(N=>N.map(R=>R.id===j?{...R,progressVisible:!0}:R))})};return window.addEventListener("custom-toast",v),()=>window.removeEventListener("custom-toast",v)},[]);const p=v=>{h(w=>w.map(j=>j.id===v?{...j,visible:!1}:j)),setTimeout(()=>{h(w=>w.filter(j=>j.id!==v)),delete x.current[v]},300)},g=v=>{const w=x.current[v];if(!w)return;const A=Date.now()-w.start;w.remaining=Math.max(0,w.remaining-A),clearTimeout(w.timeoutId)},y=v=>{const w=x.current[v];!w||w.remaining<=0||(w.start=Date.now(),w.timeoutId=setTimeout(()=>p(v),w.remaining))};return u.jsx(u.Fragment,{children:PS.map(v=>{const w=f.filter(j=>j.position===v).slice(-ng);return w.length===0?null:u.jsx("div",{className:`fixed z-50 space-y-2 w-full sm:w-[320px] px-4 ${IS(v)}`,children:w.map(j=>(console.log("toast : ",j),u.jsxs("div",{onMouseEnter:()=>g(j.id),onMouseLeave:()=>y(j.id),className:Dt("relative px-4 py-3 pr-10 rounded shadow text-white flex items-start gap-3",JS[j.type??"info"],FS[j.animation??"fade"],j.visible?"":WS[j.animation??"fade"]),children:[u.jsx("span",{children:$S[j.type??"info"]}),u.jsx("div",{className:"flex-1 break-words text-sm",dangerouslySetInnerHTML:{__html:j.message}}),u.jsx("button",{className:"absolute top-2 right-2 text-white hover:opacity-80",onClick:()=>p(j.id),children:u.jsx(fb,{size:16})}),j.showProgress&&u.jsx("div",{className:"absolute bottom-0 left-0 h-1 bg-white/50",style:{width:j.progressVisible?"100%":"0%",transition:`width ${j.duration}ms linear`}})]},j.id)))},v)})})};let an={};function e4(a){an=a}function On(a){const r=typeof a=="string"?{...an,message:a,type:(an==null?void 0:an.type)??"info"}:{...an,...a},c=new CustomEvent("custom-toast",{detail:r});window.dispatchEvent(c)}On.success=(a,r)=>On({...an,...r,message:a,type:"success"});On.error=(a,r)=>On({...an,...r,message:a,type:"error"});On.info=(a,r)=>On({...an,...r,message:a,type:"info"});On.warning=(a,r)=>On({...an,...r,message:a,type:"warning"});const t4="rounded-md px-2 shadow-xs bg-white border border-rborder-primary disabled:border-rborder-disabled flex flex-wrap focus:outline-2 focus:outline-rborder-brand disabled:bg-rbg-disabled-subtle relative min-h-[36px] h-fit w-full gap-2",n4={sm:"h-9 py-2",md:"h-10 pt-2 pb-2.5"},l4="!border-2 !border-rborder-error focus:!outline-0",a4="bg-rbg-disabled-subtle border-rborder-disabled",i4=Lt(t4,{variants:{size:n4},defaultVariants:{size:"sm"}}),r4=({stroke:a="#F04438",fill:r="none",width:c="16",height:s="16"})=>u.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 16 16",fill:r,children:[u.jsx("g",{clipPath:"url(#clip0_3531_403167)",children:u.jsx("path",{d:"M7.99998 5.33337V8.00004M7.99998 10.6667H8.00665M14.6666 8.00004C14.6666 11.6819 11.6819 14.6667 7.99998 14.6667C4.31808 14.6667 1.33331 11.6819 1.33331 8.00004C1.33331 4.31814 4.31808 1.33337 7.99998 1.33337C11.6819 1.33337 14.6666 4.31814 14.6666 8.00004Z",stroke:a,strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_3531_403167",children:u.jsx("rect",{width:c,height:s,fill:"white"})})})]}),s4=S.memo(r4),o4=({stroke:a="#98A2B3",fill:r="none",width:c="14",height:s="14"})=>u.jsx("svg",{width:c,className:"remove",height:s,viewBox:"0 0 14 14",fill:r,xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M9.5 4.5L4.5 9.5M4.5 4.5L9.5 9.5",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),c4=S.memo(o4),u4=({size:a="sm",disabled:r=!1,id:c,label:s,required:d=!1,destructive:f=!1,destructiveText:h,hintText:x,placeholder:p,helpIcon:g=!1,className:y,onChange:v,tooltipProps:w,name:j})=>{const[A,E]=S.useState([]),[N,R]=S.useState(""),H=S.useCallback(()=>{const $=N.trim();if($&&!A.includes($)){const J=[...A,$];E(J),v==null||v(J)}R("")},[N,A,E,R,v]),O=S.useCallback($=>{const J=A.filter((Q,q)=>q!==$);E(J),v==null||v(J)},[A,E,v]),V=S.useCallback($=>{$.key==="Enter"?($.preventDefault(),H()):$.key==="Backspace"&&N===""&&O((A==null?void 0:A.length)-1)},[H,N,A,O]);return u.jsxs("div",{className:"flex flex-col gap-1",children:[u.jsx(ks,{id:c,label:s,required:d}),u.jsx("div",{className:"group relative w-full",children:u.jsxs("div",{className:W(i4({size:a}),y,f===!0&&l4,r&&a4,"group-focus-within:outline-2 group-focus-within:outline-rborder-brand",f&&"bg-rbg-disabled-subtle border-rborder-disabled"),children:[A==null?void 0:A.map(($,J)=>u.jsxs("span",{className:`flex items-center text-xs text-rtext-secondary-700 px-1 bg-white
|
|
186
|
+
rounded-sm border border-rborder-primary`,children:[u.jsx("span",{className:"pt-px",children:$}),u.jsx("button",{onClick:()=>O(J),className:"ms-1 my-auto cursor-pointer disabled:cursor-not-allowed",disabled:r,"data-testid":`remove-tag-${J}`,children:u.jsx(c4,{})})]},J)),u.jsx("input",{name:j,disabled:r,className:"outline-none text-sm bg-transparent disabled:cursor-not-allowed",value:N,onChange:$=>R($.target.value),onKeyDown:V,placeholder:(A==null?void 0:A.length)===0?p:""}),g&&w&&f===!1&&u.jsx(ki,{content:w==null?void 0:w.text,description:w==null?void 0:w.description,position:w==null?void 0:w.position,dir:w==null?void 0:w.dir,descriptionClassName:w==null?void 0:w.descriptionClassName,children:u.jsx("div",{"data-testid":"tooltip-button",className:"absolute top-1/2 -translate-y-1/2 ltr:right-2 rtl:left-2 w-fit",children:u.jsx(Iu,{})})}),f===!0&&u.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 ltr:right-2 rtl:left-2 w-fit",children:u.jsx(s4,{})})]})}),f===!1&&x&&u.jsx("p",{className:"text-sm text-rtext-tertiary-600",children:x}),f&&h&&u.jsx("p",{className:"text-sm text-rtext-error-primary-600",children:h})]})},d4=({stroke:a="#667085",fill:r="none",width:c="20",height:s="16"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 20 16",fill:r,children:u.jsx("path",{d:"M1.66669 3.83331L8.47079 8.59618C9.02176 8.98187 9.29725 9.17471 9.59691 9.2494C9.8616 9.31538 10.1384 9.31538 10.4031 9.2494C10.7028 9.17471 10.9783 8.98187 11.5293 8.59618L18.3334 3.83331M5.66669 14.6666H14.3334C15.7335 14.6666 16.4336 14.6666 16.9683 14.3942C17.4387 14.1545 17.8212 13.772 18.0609 13.3016C18.3334 12.7668 18.3334 12.0668 18.3334 10.6666V5.33331C18.3334 3.93318 18.3334 3.23312 18.0609 2.69834C17.8212 2.22793 17.4387 1.84548 16.9683 1.6058C16.4336 1.33331 15.7335 1.33331 14.3334 1.33331H5.66669C4.26656 1.33331 3.56649 1.33331 3.03171 1.6058C2.56131 1.84548 2.17885 2.22793 1.93917 2.69834C1.66669 3.23312 1.66669 3.93318 1.66669 5.33331V10.6666C1.66669 12.0668 1.66669 12.7668 1.93917 13.3016C2.17885 13.772 2.56131 14.1545 3.03171 14.3942C3.56649 14.6666 4.26656 14.6666 5.66669 14.6666Z",stroke:a,strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),lg=S.memo(d4),f4=()=>{const[a,r]=S.useState(""),[c,s]=S.useState(""),d=h=>{r(h.target.value)},f=h=>{s(h.target.value)};return u.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8 w-full",children:[u.jsx(cs,{size:"sm",type:"email",label:"Email",required:!0,placeholder:"Enter your password",onChange:d,className:"w-full",value:a,name:"email",icon:lg,inputType:"iconLeading"}),u.jsx(cs,{size:"sm",type:"password",inputType:"default",label:"Password",required:!0,placeholder:"Enter your password",onChange:d,className:"w-full",value:a,name:"password"}),u.jsx(cs,{tooltipProps:{text:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full"},destructive:!1,destructiveText:"error text",size:"sm",type:"text",inputType:"trailingDropdown",icon:lg,label:"Email",required:!0,hintText:"This is a hint text to help user.",placeholder:"Enter your email",helpIcon:!0,leadingTextValue:"http",trailingDropdownOptions:[{title:"usd",value:1,icon:"$"},{title:"pound",value:2,icon:"£"},{title:"euro",value:3,icon:"€"}],trailingDropdownDefault:{title:"usd",value:1,icon:"$"},onChange:d,className:"w-full",value:a,trailingButtonText:"Copy",name:"Email"}),u.jsx(KS,{row:3,tooltipProps:{text:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full"},destructiveText:"This is an error message.",label:"Description",helpIcon:!0,required:!0,hintText:"This is a hint text to help user.",placeholder:"Enter a description...",className:"w-full",onChange:f,value:c,name:"description",autoFocus:!0}),u.jsx(u4,{tooltipProps:{text:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full"},destructive:!1,destructiveText:"error text",size:"sm",label:"Tags",required:!0,hintText:"This is a hint text to help user.",placeholder:"Enter your tag",helpIcon:!0,onChange:h=>console.log("tags",h),name:"tags"}),u.jsx(cs,{size:"sm",type:"number",inputType:"shaba",label:"شماره شبا",required:!0,placeholder:"شماره شبا را وارد کنید",onChange:d,className:"w-full",value:a,name:"shaba"})]})},m4=S.memo(f4),h4=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{d:"M8 12H16M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#98A2B3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),p4=S.memo(h4),g4=()=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:u.jsx("path",{d:"M12 8V16M8 12H16M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#98A2B3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),x4=S.memo(g4),v4=()=>{const[a,r]=S.useState(1),c=10,s=h=>{r(h),console.log("صفحه تغییر کرد:",h)},d=[{title:"دسته بندی",link:"/category"},{title:"زیر دسته بندی ",link:"/subcategory"},{title:"محصولات",link:"/product"}],f=[{question:"How can I track my order?",answer:"You can track your order by logging into your account and navigating to the 'Orders' section where the order status will be displayed."},{question:"Can I return a product?",answer:"Yes, you can request a return within 7 days of receiving the product, as long as it is unused and in its original packaging."},{question:"How is the shipping cost calculated?",answer:"Shipping cost is calculated based on your location and the weight of your package. It will be shown during checkout."},{question:"What payment methods are available?",answer:"We accept online payments, bank transfers, and cash on delivery (COD) depending on your location."},{question:"How can I reset my password?",answer:"Click on the 'Forgot password?' link on the login page and follow the instructions to reset your password via email."}];return u.jsxs(u.Fragment,{children:[u.jsx(ws,{value:90,indicatorVariant:"bg-rfg-brand-primary-600",backgroundVariant:"bg-rbg-quaternary"}),u.jsx(ws,{type:"half-circle",value:90,label:70,size:"md",strokeWidth:12,indicatorVariant:"stroke-rose-500",svgClassName:"rotate-[0deg]"}),u.jsx(ed,{id:"switch",label:"مرا به خاطر بسپار",description:"جزئیات ورود من را برای دفعه بعد ذخیره کن.",onToggle:()=>alert("تغییر وضعیت سوئیچ")}),u.jsx(ki,{content:"This is a tooltip",description:"Tooltips are used to describe or identify an element. In most scenarios, tooltips help the user understand meaning, function or alt-text.",position:"top",dir:"ltr",descriptionClassName:"max-w-[260px] w-full",children:u.jsx(on,{children:"نمایش TooltipWrapper"})}),u.jsx(h6,{breadCrumbLink:d,dir:"ltr"}),u.jsxs("div",{className:"mt-6",children:[u.jsx(Fb,{items:f,accordionClassName:"border border-white rounded-md bg-white p-6",itemClassName:"border-b border-gray-200",questionClassName:"text-lg font-bold text-blue-700",answerClassName:"text-sm text-gray-600",type:"single",iconClosed:x4,iconOpen:p4,collapsible:!0}),u.jsx("div",{className:"mt-6",children:u.jsx(oS,{min:0,max:1e7,defaultValue:[1e6,5e6],onValueChange:h=>console.log("انتخاب شده:",h),showValue:!0,className:"w-[500px]"})}),u.jsx("div",{className:"mt-10",children:u.jsx(Gw,{currentPage:a,totalPages:c,onPageChange:s,activeClassName:"bg-brand-700 border-brand-700 text-white",hasText:!1,showFirstLast:!1})})]})]})},y4=S.memo(v4),b4=({width:a="32",height:r="19"})=>u.jsxs("svg",{width:a,height:r,viewBox:"0 0 30 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9052 16.4393C13.3265 17.7699 11.2786 18.5732 9.04092 18.5732C4.04776 18.5732 0 14.5736 0 9.63988C0 4.70613 4.04776 0.706543 9.04092 0.706543C11.2786 0.706543 13.3265 1.50983 14.9052 2.84049C16.4839 1.50983 18.5317 0.706543 20.7694 0.706543C25.7626 0.706543 29.8104 4.70613 29.8104 9.63988C29.8104 14.5736 25.7626 18.5732 20.7694 18.5732C18.5317 18.5732 16.4839 17.7699 14.9052 16.4393Z",fill:"#ED0006"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9053 16.4392C16.8492 14.8006 18.0818 12.3625 18.0818 9.63988C18.0818 6.91727 16.8492 4.47913 14.9053 2.8406C16.484 1.50987 18.5319 0.706543 20.7697 0.706543C25.7628 0.706543 29.8106 4.70613 29.8106 9.63988C29.8106 14.5736 25.7628 18.5732 20.7697 18.5732C18.5319 18.5732 16.484 17.7699 14.9053 16.4392Z",fill:"#F9A000"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.9052 16.4393C12.9612 14.8008 11.7285 12.3626 11.7285 9.63995C11.7285 6.91729 12.9612 4.47911 14.9052 2.84058C16.8492 4.47911 18.0818 6.9173 18.0818 9.63997C18.0818 12.3626 16.8492 14.8008 14.9052 16.4393Z",fill:"#FF5E00"})]}),ag=S.memo(b4),w4=()=>{const[a,r]=S.useState("radio1"),[c,s]=S.useState("radio1"),[d,f]=S.useState([]),h=p=>{f(g=>g.includes(p)?g.filter(y=>y!==p):[...g,p])},x=p=>{r(p)};return u.jsx("div",{className:" gap-2 grid grid-cols-4",children:u.jsxs("div",{className:"space-y-2 [&>*]:space-y-2",children:[u.jsx("div",{className:"space-x-2",children:u.jsx(Li,{id:"5",value:"value",label:"چکباکس",size:"md",name:"checkbox-plan-card-8",checkboxIndex:6,checked:d.includes("checkbox-plan-card-8"),onChange:()=>h("checkbox-plan-card-8")})}),u.jsxs("div",{children:["plan card radio",u.jsx(rs,{type:"radio",checkboxIndex:20,title:"Basic Plan",price:"$20",per:"month",size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates} articles} and promotions delivered to your inbox.",badgeContent:"limited time only",value:"basic-plan2",checked:a==="radio2",onChange:()=>x("radio2")}),u.jsx(rs,{type:"radio",checkboxIndex:19,title:"Basic Plan",price:"$20",per:"month",size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates} articles} and promotions delivered to your inbox.",badgeContent:"limited time only",value:"basic-plan2",checked:a==="radio3",onChange:()=>x("radio3")})]}),u.jsxs("div",{children:["plan card basic checkbox",u.jsx(rs,{checkboxIndex:18,title:"Basic Plan",price:"$250",per:"month",hasHeader:!0,size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates articles and promotions delivered to your inbox.",badgeContent:"limited time only",id:"checkbox-plan-card-1",value:"checkbox-plan-card-1",checked:d.includes("checkbox-plan-card-1"),onChange:()=>h("checkbox-plan-card-1"),onCardClick:()=>h("checkbox-plan-card-1")}),u.jsx(rs,{checkboxIndex:8,title:"Basic Plan",price:"$20",per:"month",hasHeader:!0,size:"md",headerTitle:"Subscribe to newsletter",description:"Get the latest updates articles and promotions delivered to your inbox.",badgeContent:"limited time only",id:"checkbox-plan-card-2",value:"checkbox-plan-card-2",checked:d.includes("checkbox-plan-card-2"),onChange:()=>h("checkbox-plan-card-2"),onCardClick:()=>h("checkbox-plan-card-2")})]}),u.jsxs("div",{children:["payment Card radio",u.jsx(Xp,{type:"radio",size:"sm",value:"radio2",name:"radio-group",title:"title",checkboxIndex:16,onChange:p=>r(p.target.value),cardOnclick:()=>r("radio2"),checked:a==="radio2",icon:u.jsx(ys,{className:"!h-8 !w-[46px]","data-testid":"icon-wrapper",children:u.jsx(ag,{})}),description:"Expiry 06/2024",footer:u.jsxs("div",{className:"text-muted-foreground gap-3 text-sm font-semibold flex",children:[u.jsx("span",{children:"set as default"}),u.jsx("span",{className:"text-brand-700",children:"Edit"})]})}),u.jsx(Xp,{type:"radio",size:"sm",value:"radio1",name:"radio-group",title:"title",checkboxIndex:15,onChange:p=>r(p.target.value),cardOnclick:()=>r("radio1"),checked:a==="radio1",icon:u.jsx(ys,{className:"!h-8 !w-[46px]","data-testid":"icon-wrapper",children:u.jsx(ag,{})}),description:"Expiry 06/2024",footer:u.jsxs("div",{className:"text-muted-foreground gap-3 text-sm font-semibold flex",children:[u.jsx("span",{children:"set as default"}),u.jsx("span",{className:"text-brand-700",children:"Edit"})]})})]}),u.jsxs("div",{children:["user Card radio",u.jsx(ss,{size:"sm",checkboxIndex:14,id:"id",name:"card-group",username:"@maryam",description:"product manager,contacts",type:"radio",userFullName:"maria ebrahimi",value:"user-radio1",checked:a==="user-radio1",onChange:p=>r(p.target.value),cardOnclick:()=>r("user-radio1")}),u.jsx(ss,{size:"sm",checkboxIndex:60,id:"id2",name:"card-group",userFullName:"maria ebrahimi",username:"@maryam",description:"product manager,contacts",type:"radio",value:"user-radio2",onChange:p=>r(p.target.value),checked:a==="user-radio2",cardOnclick:()=>r("user-radio2")})]}),u.jsxs("div",{children:["user Card checkbox",u.jsx(ss,{size:"sm",checkboxIndex:55,id:"salam",name:"card-group-5",username:"@maryam",description:"product manager,contacts",userFullName:"maria ebrahimi",value:"checkbox--user-card-2",checked:d.includes("checkbox--user-card-2"),onChange:p=>h(p.target.value),cardOnclick:()=>h("checkbox--user-card-2")}),u.jsx(ss,{size:"sm",checkboxIndex:65,id:"salame2",name:"card-group-5",userFullName:"maria ebrahimi",username:"@maryam",description:"product manager,contacts",value:"checkbox--user-card-1",onChange:p=>h(p.target.value),checked:d.includes("checkbox--user-card-1"),cardOnclick:()=>h("checkbox--user-card-1")})]}),"this is radio",u.jsxs("div",{children:["radio",u.jsx(ja,{id:"radio-option-1",size:"sm",name:"radio-group2",value:"radio1",checked:c==="radio1",onChange:p=>s(p.target.value),children:"Option 1"}),u.jsx(ja,{id:"radio-option-2",size:"sm",name:"radio-group2",value:"radio2",checked:c==="radio2",onChange:p=>s(p.target.value),children:"Option 2"})]})]})})},S4=S.memo(w4),j4=({icon:a,title:r,size:c,sizeFormat:s,className:d,dir:f="rtl"})=>u.jsxs("div",{className:W("w-full flex gap-3 py-2.5 px-3.5 border border-rborder-secondary bg-rbg-primary rounded-md",d,f=="ltr"&&"flex-row-reverse "),children:[u.jsx("div",{className:"w-10 h-10",children:a??null}),u.jsxs("div",{className:"flex flex-col max-w-4/5 ",children:[u.jsx("span",{className:"text-rtext-secondary-700 font-medium text-sm w-full truncate ",children:r}),u.jsxs("span",{className:W("text-rtext-tertiary-600 flex gap-0.5 items-center text-sm font-normal truncate",f=="ltr"&&"flex-row-reverse"),children:[c,s]})]})]}),C4=()=>{const a=()=>{document.documentElement.classList.toggle("dark")},r=[{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"User 1"},{src:"https://randomuser.me/api/portraits/men/32.jpg",alt:"User 2"},{src:"https://randomuser.me/api/portraits/women/25.jpg",alt:"User 3"},{src:"https://randomuser.me/api/portraits/men/19.jpg",alt:"User 4"},{src:"https://randomuser.me/api/portraits/women/11.jpg",alt:"User 5"}],[c,s]=S.useState(!1);return u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1 gap-6",children:[u.jsx("button",{className:"size-20 bg-pink dark:text-white",onClick:a,children:"Click Here"}),u.jsx("div",{className:"w-50 h-12 text-rtext-primary-900 bg-utility-gray-dark-50",children:"Lorem Ipsum"}),u.jsx(Ti,{size:"sm",type:"pillColor",color:"brand",children:"Label"}),u.jsx(zw,{title:"Total Sales",value:"$32,000",icon:u.jsx(Hy,{className:"w-6 h-6 text-green-600"}),iconType:"secondary",iconPosition:"topWithTitle",statistic:u.jsx("span",{className:"text-xs font-medium text-green-700 bg-green-100 rounded px-2 py-0.5",children:"+12%"}),toggleBtn:u.jsx("button",{className:"text-xs text-rtext-tertiary-600 underline",children:"Details"}),actionBtns:[u.jsx("button",{className:"text-sm px-4 py-1.5 bg-rbg-brand-primary text-white rounded-md",children:"View"},"1"),u.jsx("button",{className:"text-sm px-4 py-1.5 border border-rborder-secondary rounded-md",children:"Export"},"2")],statisticPosition:"row-next",dir:"rtl",chartPosition:"side",chartImg:u.jsx("img",{src:"./test.png",alt:""})}),u.jsx(Rl,{type:"single",size:"lg",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},notifyColor:"bg-red-500",addBtnAction:()=>alert("Clicked!")}),u.jsx(Rl,{type:"single",size:"2xl",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},iconBorder:!1,notifyIcon:u.jsx(pp,{}),addBtnAction:()=>alert("Clicked!")}),u.jsx(Rl,{type:"single",size:"md",img:{src:"https://randomuser.me/api/portraits/women/60.jpg",alt:"Emily"},notifyColor:"bg-red-500",title:"Emily Johnson",description:"Product Designer",addBtnAction:()=>alert("Clicked!")}),u.jsx(Rl,{type:"group",size:"lg",imgList:r,showAmount:3,showAddBtn:!0,addBtnAction:()=>alert("Add new user")}),u.jsx(Rl,{type:"labled",size:"xl",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},title:"اولیوییا رای",description:"olivia@untitledui.com",iconBorder:!1,notifyIcon:u.jsx(pp,{}),addBtnAction:()=>alert("Clicked!")}),u.jsx("div",{className:"w-full",dir:"rtl",children:u.jsxs(it,{defaultValue:"account",children:[u.jsxs(it.List,{listVariant:"gray",fullWidth:!1,children:[u.jsxs(it.Trigger,{value:"account",triggerVariant:"gray",fullWidth:!0,children:["Account",u.jsx(xa,{})]}),u.jsxs(it.Trigger,{value:"password",triggerVariant:"gray",fullWidth:!0,children:["Export",u.jsx(xa,{})]})]}),u.jsx(it.Content,{value:"account",children:u.jsx("div",{className:"",children:"acc"})}),u.jsx(it.Content,{value:"password",children:u.jsx("div",{className:"",children:"pass"})})]})}),u.jsx("div",{className:"w-full",dir:"rtl",children:u.jsxs(it,{defaultValue:"account",children:[u.jsxs(it.List,{listVariant:"minimal",fullWidth:!1,children:[u.jsxs(it.Trigger,{value:"account",triggerVariant:"minimal",fullWidth:!0,children:["Account",u.jsx(xa,{})]}),u.jsxs(it.Trigger,{value:"password",triggerVariant:"minimal",fullWidth:!0,children:["Export",u.jsx(xa,{})]})]}),u.jsx(it.Content,{value:"account",children:u.jsx("div",{className:"",children:"acc"})}),u.jsx(it.Content,{value:"password",children:u.jsx("div",{className:"",children:"pass"})})]})}),u.jsx("div",{className:"w-full",dir:"rtl",children:u.jsxs(it,{defaultValue:"account",children:[u.jsxs(it.List,{listVariant:"outlined",fullWidth:!1,children:[u.jsxs(it.Trigger,{value:"account",triggerVariant:"outlined",fullWidth:!1,children:["Account",u.jsx(xa,{})]}),u.jsxs(it.Trigger,{value:"password",triggerVariant:"outlined",fullWidth:!1,children:["Export",u.jsx(xa,{})]})]}),u.jsx(it.Content,{value:"account",children:u.jsx("div",{className:"",children:"acc"})}),u.jsx(it.Content,{value:"password",children:u.jsx("div",{className:"",children:"pass"})})]})}),u.jsx("div",{className:"w-[400px]",children:u.jsx(lw,{mainText:"برای آپلود کلیک کنید",subText:"یا بکشید و رها کنید",formatText:"SVG, PNG, JPG or GIF (max. 800x400px)",onChange:()=>{},onDelete:d=>{console.log(d)},items:[{title:"تصویر_محصول.png",progressValue:75,description:"در حال آپلود...",percentage:75,error:!1,size:"1.1 MB",status:"uploading",id:1},{title:"لوگو.svg",progressValue:100,description:"آپلود کامل شد",percentage:100,error:!1,size:"220 KB",status:"completed",id:2},{title:"بنر.gif",progressValue:0,description:"خطا در آپلود",percentage:0,error:!0,size:"3.2 MB",status:"error",id:3},{title:"بنر.gif",progressValue:0,description:"خطا در آپلود",percentage:0,error:!0,size:"3.2 MB",status:"error",id:4}]})}),u.jsxs("div",{className:"w-1/2 mx-auto flex flex-col gap-12",children:[u.jsx(Fp,{variant:"gray",sender:"user",senderName:"Alice",message:"Here's the document you asked for",date:"April 14, 2025",avatar:u.jsx(Rl,{type:"single",size:"md",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},iconBorder:!1,notifyIcon:!1,addBtnAction:()=>alert("Clicked!")}),className:""}),u.jsx(Fp,{variant:"primary",sender:"admin",senderName:"Admin",message:"Lorem,",date:"April 15, 2025",avatar:u.jsx(Rl,{type:"single",size:"md",img:{src:"https://randomuser.me/api/portraits/women/44.jpg",alt:"John"},iconBorder:!1,notifyIcon:!1,addBtnAction:()=>alert("Clicked!")}),children:u.jsx(j4,{title:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Egestas purus viverra accumsan in nisl nisi. Arcu cursus vitae congue mauris rhoncus aenean vel elit scelerisque. In egestas erat imperdiet sed euismod nisi porta lorem mollis. Morbi tristique senectus et netus. Mattis pellentesque id nibh tortor id aliquet lectus proin. Sapien faucibus et molestie ac feugiat sed lectus vestibulum. Ullamcorper velit sed ullamcorper morbi tincidunt ornare massa eget. Dictum varius duis at consectetur lorem. Nisi vitae suscipit tellus mauris a diam maecenas sed enim. Velit ut tortor pretium viverra suspendisse potenti nullam. Et molestie ac feugiat sed lectus. Non nisi est sit amet facilisis magna. Dignissim diam quis enim lobortis scelerisque fermentum. Odio ut enim blandit volutpat maecenas volutpat. Ornare lectus sit amet est placerat in egestas erat. Nisi vitae suscipit tellus mauris a diam maecenas sed. Placerat duis ultricies lacus sed turpis tincidunt id aliquet.",size:"1.2",sizeFormat:"mb",icon:u.jsx(M0,{})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"down",alignment:"left",toggleBtn:{children:u.jsx(u.Fragment,{children:"down left"})},dropDownClassName:" p-4",children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700 w-[1000px]",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"ProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfileProfile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center",children:u.jsx(Ei,{direction:"down",alignment:"right",toggleBtn:{children:u.jsx(u.Fragment,{children:"down right"})},dropDownClassName:" p-4",children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Profile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"up",alignment:"left",toggleBtn:{children:u.jsx(u.Fragment,{children:"up rightawsd"})},dropDownClassName:" p-4",children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700 w-64",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Profile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"down",alignment:"right",toggleBtn:{children:u.jsx(u.Fragment,{children:"up rightawsd"})},dropDownClassName:"w-64 p-4",autoAdjust:!0,open:c,onOpenChange:d=>s(d),children:u.jsxs("ul",{className:"space-y-2 text-sm text-gray-700",children:[u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Profile"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Settings"}),u.jsx("li",{className:"hover:bg-gray-100 px-2 py-1 rounded",children:"Logout"})]})})}),u.jsx("div",{className:"flex justify-center items-center ",children:u.jsx(Ei,{direction:"down",alignment:"right",toggleBtn:{variant:"primary",size:"sm",fullWidth:!0,type:"button",children:u.jsx(u.Fragment,{children:"down right"})},autoAdjust:!1,children:u.jsx("div",{className:"bg-black w-20 h-20 text-white p-5",children:"123"})})})]})]})},A4=S.memo(C4),N4=({stroke:a="black",fill:r="none",width:c="24",height:s="24"})=>u.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:c,height:s,viewBox:"0 0 24 24",fill:r,children:u.jsx("path",{d:"M22 12H18L15 21L9 3L6 12H2",stroke:a,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),E4=S.memo(N4),T4=()=>{var f;const[a,r]=S.useState(!1),[c,s]=S.useState(null),d=[{title:"a",value:1},{title:"b",value:2},{title:"c",value:3},{title:"d",value:4},{title:"e",value:5},{title:"f",value:6},{title:"g",value:7}];return u.jsxs("div",{className:"w-full flex flex-col gap-4",children:[u.jsx(hx,{}),u.jsx(z0,{isLoading:!1,onChange:h=>s(h==null?void 0:h.value),className:"",tooltipTitle:"gio gio",tooltipClass:"",selectedValueLabel:((f=d==null?void 0:d.find(h=>(h==null?void 0:h.value)===c))==null?void 0:f.title)??"-",options:d,config:{name:"gio",canSelectZero:!0,errorText:"gio error",isRequiredInput:!0,label:"gio gio"}}),u.jsx(Ti,{size:"sm",type:"pillColor",color:"brand",children:"میلاد پسر رنگ کار مکاری است"}),u.jsx(Ti,{type:"pillColor",color:"indigo",closable:!0,onClose:()=>alert("closed"),children:"برچسب"}),u.jsx(Ti,{size:"md",type:"badgeColor",dir:"rtl",color:"orange",icon:u.jsx("img",{src:"/Avatar.png",alt:"avatar",className:"w-4 h-4 rounded-full"}),children:"Username"}),u.jsx(on,{variant:"primary",size:"sm",leftIcon:u.jsx(Ly,{size:16}),onClick:()=>On.error("test"),children:"Show Toast"}),u.jsx(on,{variant:"primary",onClick:()=>r(!0),size:"md",children:"باز کردن مودال"}),u.jsxs(Dw,{showModal:a,position:"center",size:"md",showCloseIcon:!1,closeHandler:()=>r(!1),modalTitle:"مودال تستی",icon:u.jsx("div",{children:u.jsx(E4,{})}),modalContentStyle:"gap-4 px-6",children:[u.jsx("hr",{}),u.jsx("h2",{children:"ساختار اصلی 25 مودال"}),u.jsx("p",{children:"این مودال جریانش اینه که ساختار پایه ایجاد شده و children هرچی باشه بهش پاس میدیم فقط"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("p",{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi molestias incidunt labore porro quibusdam, reprehenderit reiciendis ipsam veritatis nam deserunt tenetur dolore, delectus consectetur magni nulla voluptate, tempora dolores? Sapiente!"}),u.jsx("hr",{}),u.jsx("div",{className:"py-4 flex justify-end sticky bottom-0 bg-white",children:u.jsx(on,{variant:"secondaryColor",size:"sm",leftIcon:u.jsx(Ju,{stroke:"blue"}),onClick:()=>r(!1),children:"بستن"})})]}),u.jsx(aw,{src:"https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400&h=300&fit=crop",zoom:2,zoomPanePosition:"left",lensSize:140,touchToggle:!0})]})},M4=S.memo(T4),z4=()=>{const a=()=>{document.documentElement.classList.toggle("dark")};return u.jsx(S.StrictMode,{children:u.jsxs("div",{className:"container mx-auto p-8 min-h-screen flex flex-col gap-6 font-yekan",children:[u.jsxs("div",{className:"flex items-center justify-between rounded-xl bg-gray-200 dark:bg-gray-800 font-bold p-4 leading-[var(--line-height-display-sm)] shadow-xs-skeuomorphic",children:[u.jsx("h1",{className:"text-rfg-primary-900",children:"دیزاین سیستم راهکارگستران"}),u.jsx(ed,{id:"switch",label:"تغییر تم",onToggle:a})]}),u.jsx(m4,{}),u.jsx(M4,{}),u.jsx(S4,{}),u.jsx(y4,{}),u.jsx(A4,{})]})})};Q1.createRoot(document.getElementById("root")).render(u.jsxs(S.StrictMode,{children:[u.jsx(hx,{type:"info",position:"bottom-center",duration:4e4,animation:"slide",showProgress:!0}),u.jsx(z4,{})]}));
|