(function(){"use strict";var Mr={exports:{}},As={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var vf;function Gg(){if(vf)return As;vf=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(o,f,h){var d=null;if(h!==void 0&&(d=""+h),f.key!==void 0&&(d=""+f.key),"key"in f){h={};for(var p in f)p!=="key"&&(h[p]=f[p])}else h=f;return f=h.ref,{$$typeof:a,type:o,key:d,ref:f!==void 0?f:null,props:h}}return As.Fragment=l,As.jsx=i,As.jsxs=i,As}var jf;function Yg(){return jf||(jf=1,Mr.exports=Gg()),Mr.exports}var r=Yg(),kr={exports:{}},me={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Sf;function Xg(){if(Sf)return me;Sf=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),j=Symbol.iterator;function T(S){return S===null||typeof S!="object"?null:(S=j&&S[j]||S["@@iterator"],typeof S=="function"?S:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,V={};function G(S,R,J){this.props=S,this.context=R,this.refs=V,this.updater=J||E}G.prototype.isReactComponent={},G.prototype.setState=function(S,R){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,R,"setState")},G.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function Y(){}Y.prototype=G.prototype;function X(S,R,J){this.props=S,this.context=R,this.refs=V,this.updater=J||E}var U=X.prototype=new Y;U.constructor=X,O(U,G.prototype),U.isPureReactComponent=!0;var K=Array.isArray;function oe(){}var $={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function se(S,R,J){var z=J.ref;return{$$typeof:a,type:S,key:R,ref:z!==void 0?z:null,props:J}}function ee(S,R){return se(S.type,R,S.props)}function he(S){return typeof S=="object"&&S!==null&&S.$$typeof===a}function pe(S){var R={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(J){return R[J]})}var Ce=/\/+/g;function fe(S,R){return typeof S=="object"&&S!==null&&S.key!=null?pe(""+S.key):R.toString(36)}function ae(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(oe,oe):(S.status="pending",S.then(function(R){S.status==="pending"&&(S.status="fulfilled",S.value=R)},function(R){S.status==="pending"&&(S.status="rejected",S.reason=R)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function _(S,R,J,z,W){var ne=typeof S;(ne==="undefined"||ne==="boolean")&&(S=null);var ce=!1;if(S===null)ce=!0;else switch(ne){case"bigint":case"string":case"number":ce=!0;break;case"object":switch(S.$$typeof){case a:case l:ce=!0;break;case y:return ce=S._init,_(ce(S._payload),R,J,z,W)}}if(ce)return W=W(S),ce=z===""?"."+fe(S,0):z,K(W)?(J="",ce!=null&&(J=ce.replace(Ce,"$&/")+"/"),_(W,R,J,"",function(at){return at})):W!=null&&(he(W)&&(W=ee(W,J+(W.key==null||S&&S.key===W.key?"":(""+W.key).replace(Ce,"$&/")+"/")+ce)),R.push(W)),1;ce=0;var Me=z===""?".":z+":";if(K(S))for(var ye=0;ye<S.length;ye++)z=S[ye],ne=Me+fe(z,ye),ce+=_(z,R,J,ne,W);else if(ye=T(S),typeof ye=="function")for(S=ye.call(S),ye=0;!(z=S.next()).done;)z=z.value,ne=Me+fe(z,ye++),ce+=_(z,R,J,ne,W);else if(ne==="object"){if(typeof S.then=="function")return _(ae(S),R,J,z,W);throw R=String(S),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return ce}function F(S,R,J){if(S==null)return S;var z=[],W=0;return _(S,z,"","",function(ne){return R.call(J,ne,W++)}),z}function A(S){if(S._status===-1){var R=S._result;R=R(),R.then(function(J){(S._status===0||S._status===-1)&&(S._status=1,S._result=J)},function(J){(S._status===0||S._status===-1)&&(S._status=2,S._result=J)}),S._status===-1&&(S._status=0,S._result=R)}if(S._status===1)return S._result.default;throw S._result}var B=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},P={map:F,forEach:function(S,R,J){F(S,function(){R.apply(this,arguments)},J)},count:function(S){var R=0;return F(S,function(){R++}),R},toArray:function(S){return F(S,function(R){return R})||[]},only:function(S){if(!he(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return me.Activity=v,me.Children=P,me.Component=G,me.Fragment=i,me.Profiler=f,me.PureComponent=X,me.StrictMode=o,me.Suspense=g,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,me.__COMPILER_RUNTIME={__proto__:null,c:function(S){return $.H.useMemoCache(S)}},me.cache=function(S){return function(){return S.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(S,R,J){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var z=O({},S.props),W=S.key;if(R!=null)for(ne in R.key!==void 0&&(W=""+R.key),R)!I.call(R,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&R.ref===void 0||(z[ne]=R[ne]);var ne=arguments.length-2;if(ne===1)z.children=J;else if(1<ne){for(var ce=Array(ne),Me=0;Me<ne;Me++)ce[Me]=arguments[Me+2];z.children=ce}return se(S.type,W,z)},me.createContext=function(S){return S={$$typeof:d,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},me.createElement=function(S,R,J){var z,W={},ne=null;if(R!=null)for(z in R.key!==void 0&&(ne=""+R.key),R)I.call(R,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(W[z]=R[z]);var ce=arguments.length-2;if(ce===1)W.children=J;else if(1<ce){for(var Me=Array(ce),ye=0;ye<ce;ye++)Me[ye]=arguments[ye+2];W.children=Me}if(S&&S.defaultProps)for(z in ce=S.defaultProps,ce)W[z]===void 0&&(W[z]=ce[z]);return se(S,ne,W)},me.createRef=function(){return{current:null}},me.forwardRef=function(S){return{$$typeof:p,render:S}},me.isValidElement=he,me.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:A}},me.memo=function(S,R){return{$$typeof:x,type:S,compare:R===void 0?null:R}},me.startTransition=function(S){var R=$.T,J={};$.T=J;try{var z=S(),W=$.S;W!==null&&W(J,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(oe,B)}catch(ne){B(ne)}finally{R!==null&&J.types!==null&&(R.types=J.types),$.T=R}},me.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},me.use=function(S){return $.H.use(S)},me.useActionState=function(S,R,J){return $.H.useActionState(S,R,J)},me.useCallback=function(S,R){return $.H.useCallback(S,R)},me.useContext=function(S){return $.H.useContext(S)},me.useDebugValue=function(){},me.useDeferredValue=function(S,R){return $.H.useDeferredValue(S,R)},me.useEffect=function(S,R){return $.H.useEffect(S,R)},me.useEffectEvent=function(S){return $.H.useEffectEvent(S)},me.useId=function(){return $.H.useId()},me.useImperativeHandle=function(S,R,J){return $.H.useImperativeHandle(S,R,J)},me.useInsertionEffect=function(S,R){return $.H.useInsertionEffect(S,R)},me.useLayoutEffect=function(S,R){return $.H.useLayoutEffect(S,R)},me.useMemo=function(S,R){return $.H.useMemo(S,R)},me.useOptimistic=function(S,R){return $.H.useOptimistic(S,R)},me.useReducer=function(S,R,J){return $.H.useReducer(S,R,J)},me.useRef=function(S){return $.H.useRef(S)},me.useState=function(S){return $.H.useState(S)},me.useSyncExternalStore=function(S,R,J){return $.H.useSyncExternalStore(S,R,J)},me.useTransition=function(){return $.H.useTransition()},me.version="19.2.8",me}var wf;function Rr(){return wf||(wf=1,kr.exports=Xg()),kr.exports}var H=Rr(),zr={exports:{}},Cs={},Or={exports:{}},Vr={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Nf;function Fg(){return Nf||(Nf=1,(function(a){function l(_,F){var A=_.length;_.push(F);e:for(;0<A;){var B=A-1>>>1,P=_[B];if(0<f(P,F))_[B]=F,_[A]=P,A=B;else break e}}function i(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var F=_[0],A=_.pop();if(A!==F){_[0]=A;e:for(var B=0,P=_.length,S=P>>>1;B<S;){var R=2*(B+1)-1,J=_[R],z=R+1,W=_[z];if(0>f(J,A))z<P&&0>f(W,J)?(_[B]=W,_[z]=A,B=z):(_[B]=J,_[R]=A,B=R);else if(z<P&&0>f(W,A))_[B]=W,_[z]=A,B=z;else break e}}return F}function f(_,F){var A=_.sortIndex-F.sortIndex;return A!==0?A:_.id-F.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var d=Date,p=d.now();a.unstable_now=function(){return d.now()-p}}var g=[],x=[],y=1,v=null,j=3,T=!1,E=!1,O=!1,V=!1,G=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function U(_){for(var F=i(x);F!==null;){if(F.callback===null)o(x);else if(F.startTime<=_)o(x),F.sortIndex=F.expirationTime,l(g,F);else break;F=i(x)}}function K(_){if(O=!1,U(_),!E)if(i(g)!==null)E=!0,oe||(oe=!0,pe());else{var F=i(x);F!==null&&ae(K,F.startTime-_)}}var oe=!1,$=-1,I=5,se=-1;function ee(){return V?!0:!(a.unstable_now()-se<I)}function he(){if(V=!1,oe){var _=a.unstable_now();se=_;var F=!0;try{e:{E=!1,O&&(O=!1,Y($),$=-1),T=!0;var A=j;try{t:{for(U(_),v=i(g);v!==null&&!(v.expirationTime>_&&ee());){var B=v.callback;if(typeof B=="function"){v.callback=null,j=v.priorityLevel;var P=B(v.expirationTime<=_);if(_=a.unstable_now(),typeof P=="function"){v.callback=P,U(_),F=!0;break t}v===i(g)&&o(g),U(_)}else o(g);v=i(g)}if(v!==null)F=!0;else{var S=i(x);S!==null&&ae(K,S.startTime-_),F=!1}}break e}finally{v=null,j=A,T=!1}F=void 0}}finally{F?pe():oe=!1}}}var pe;if(typeof X=="function")pe=function(){X(he)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,fe=Ce.port2;Ce.port1.onmessage=he,pe=function(){fe.postMessage(null)}}else pe=function(){G(he,0)};function ae(_,F){$=G(function(){_(a.unstable_now())},F)}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"):I=0<_?Math.floor(1e3/_):5},a.unstable_getCurrentPriorityLevel=function(){return j},a.unstable_next=function(_){switch(j){case 1:case 2:case 3:var F=3;break;default:F=j}var A=j;j=F;try{return _()}finally{j=A}},a.unstable_requestPaint=function(){V=!0},a.unstable_runWithPriority=function(_,F){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var A=j;j=_;try{return F()}finally{j=A}},a.unstable_scheduleCallback=function(_,F,A){var B=a.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?B+A:B):A=B,_){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=A+P,_={id:y++,callback:F,priorityLevel:_,startTime:A,expirationTime:P,sortIndex:-1},A>B?(_.sortIndex=A,l(x,_),i(g)===null&&_===i(x)&&(O?(Y($),$=-1):O=!0,ae(K,A-B))):(_.sortIndex=P,l(g,_),E||T||(E=!0,oe||(oe=!0,pe()))),_},a.unstable_shouldYield=ee,a.unstable_wrapCallback=function(_){var F=j;return function(){var A=j;j=F;try{return _.apply(this,arguments)}finally{j=A}}}})(Vr)),Vr}var Tf;function Zg(){return Tf||(Tf=1,Or.exports=Fg()),Or.exports}var Br={exports:{}},ut={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Af;function Qg(){if(Af)return ut;Af=1;var a=Rr();function l(g){var x="https://react.dev/errors/"+g;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)x+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+g+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var o={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},f=Symbol.for("react.portal");function h(g,x,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:g,containerInfo:x,implementation:y}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(g,x){if(g==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ut.createPortal=function(g,x){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(l(299));return h(g,x,null,y)},ut.flushSync=function(g){var x=d.T,y=o.p;try{if(d.T=null,o.p=2,g)return g()}finally{d.T=x,o.p=y,o.d.f()}},ut.preconnect=function(g,x){typeof g=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(g,x))},ut.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},ut.preinit=function(g,x){if(typeof g=="string"&&x&&typeof x.as=="string"){var y=x.as,v=p(y,x.crossOrigin),j=typeof x.integrity=="string"?x.integrity:void 0,T=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;y==="style"?o.d.S(g,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:v,integrity:j,fetchPriority:T}):y==="script"&&o.d.X(g,{crossOrigin:v,integrity:j,fetchPriority:T,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ut.preinitModule=function(g,x){if(typeof g=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var y=p(x.as,x.crossOrigin);o.d.M(g,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(g)},ut.preload=function(g,x){if(typeof g=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var y=x.as,v=p(y,x.crossOrigin);o.d.L(g,y,{crossOrigin:v,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ut.preloadModule=function(g,x){if(typeof g=="string")if(x){var y=p(x.as,x.crossOrigin);o.d.m(g,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(g)},ut.requestFormReset=function(g){o.d.r(g)},ut.unstable_batchedUpdates=function(g,x){return g(x)},ut.useFormState=function(g,x,y){return d.H.useFormState(g,x,y)},ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},ut.version="19.2.8",ut}var Cf;function Kg(){if(Cf)return Br.exports;Cf=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(l){console.error(l)}}return a(),Br.exports=Qg(),Br.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ef;function $g(){if(Ef)return Cs;Ef=1;var a=Zg(),l=Rr(),i=Kg();function o(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 f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(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 d(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 p(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 g(e){if(h(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,s=t;;){var c=n.return;if(c===null)break;var u=c.alternate;if(u===null){if(s=c.return,s!==null){n=s;continue}break}if(c.child===u.child){for(u=c.child;u;){if(u===n)return g(c),e;if(u===s)return g(c),t;u=u.sibling}throw Error(o(188))}if(n.return!==s.return)n=c,s=u;else{for(var m=!1,b=c.child;b;){if(b===n){m=!0,n=c,s=u;break}if(b===s){m=!0,s=c,n=u;break}b=b.sibling}if(!m){for(b=u.child;b;){if(b===n){m=!0,n=u,s=c;break}if(b===s){m=!0,s=u,n=c;break}b=b.sibling}if(!m)throw Error(o(189))}}if(n.alternate!==s)throw Error(o(190))}if(n.tag!==3)throw Error(o(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,j=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),X=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function pe(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Symbol.for("react.client.reference");function fe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case G:return"Profiler";case V:return"StrictMode";case K:return"Suspense";case oe:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case X:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case U:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:fe(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}var ae=Array.isArray,_=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A={pending:!1,data:null,method:null,action:null},B=[],P=-1;function S(e){return{current:e}}function R(e){0>P||(e.current=B[P],B[P]=null,P--)}function J(e,t){P++,B[P]=e.current,e.current=t}var z=S(null),W=S(null),ne=S(null),ce=S(null);function Me(e,t){switch(J(ne,t),J(W,e),J(z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fg(t),e=dg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}R(z),J(z,e)}function ye(){R(z),R(W),R(ne)}function at(e){e.memoizedState!==null&&J(ce,e);var t=z.current,n=dg(t,e.type);t!==n&&(J(W,e),J(z,n))}function Vn(e){W.current===e&&(R(z),R(W)),ce.current===e&&(R(ce),zl._currentValue=A)}var St,Ot;function $t(e){if(St===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);St=t&&t[1]||"",Ot=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+St+e+Ot}var pa=!1;function st(e,t){if(!e||pa)return"";pa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(L){var k=L}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(L){k=L}e.call(Q.prototype)}}else{try{throw Error()}catch(L){k=L}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=s.DetermineComponentFrameRoot(),m=u[0],b=u[1];if(m&&b){var w=m.split(`
`),M=b.split(`
`);for(c=s=0;s<w.length&&!w[s].includes("DetermineComponentFrameRoot");)s++;for(;c<M.length&&!M[c].includes("DetermineComponentFrameRoot");)c++;if(s===w.length||c===M.length)for(s=w.length-1,c=M.length-1;1<=s&&0<=c&&w[s]!==M[c];)c--;for(;1<=s&&0<=c;s--,c--)if(w[s]!==M[c]){if(s!==1||c!==1)do if(s--,c--,0>c||w[s]!==M[c]){var q=`
`+w[s].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=s&&0<=c);break}}}finally{pa=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?$t(n):""}function U5(e,t){switch(e.tag){case 26:case 27:case 5:return $t(e.type);case 16:return $t("Lazy");case 13:return e.child!==t&&t!==null?$t("Suspense Fallback"):$t("Suspense");case 19:return $t("SuspenseList");case 0:case 15:return st(e.type,!1);case 11:return st(e.type.render,!1);case 1:return st(e.type,!0);case 31:return $t("Activity");default:return""}}function G0(e){try{var t="",n=null;do t+=U5(e,n),n=e,e=e.return;while(e);return t}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}var sc=Object.prototype.hasOwnProperty,lc=a.unstable_scheduleCallback,ic=a.unstable_cancelCallback,H5=a.unstable_shouldYield,q5=a.unstable_requestPaint,wt=a.unstable_now,G5=a.unstable_getCurrentPriorityLevel,Y0=a.unstable_ImmediatePriority,X0=a.unstable_UserBlockingPriority,mi=a.unstable_NormalPriority,Y5=a.unstable_LowPriority,F0=a.unstable_IdlePriority,X5=a.log,F5=a.unstable_setDisableYieldValue,Zs=null,Nt=null;function Bn(e){if(typeof X5=="function"&&F5(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Zs,e)}catch{}}var Tt=Math.clz32?Math.clz32:K5,Z5=Math.log,Q5=Math.LN2;function K5(e){return e>>>=0,e===0?32:31-(Z5(e)/Q5|0)|0}var pi=256,xi=262144,gi=4194304;function xa(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 s=e.pendingLanes;if(s===0)return 0;var c=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=s&134217727;return b!==0?(s=b&~u,s!==0?c=xa(s):(m&=b,m!==0?c=xa(m):n||(n=b&~e,n!==0&&(c=xa(n))))):(b=s&~u,b!==0?c=xa(b):m!==0?c=xa(m):n||(n=s&~e,n!==0&&(c=xa(n)))),c===0?0:t!==0&&t!==c&&(t&u)===0&&(u=c&-c,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:c}function Qs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $5(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 Z0(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function rc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ks(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function J5(e,t,n,s,c,u){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,w=e.expirationTimes,M=e.hiddenUpdates;for(n=m&~n;0<n;){var q=31-Tt(n),Q=1<<q;b[q]=0,w[q]=-1;var k=M[q];if(k!==null)for(M[q]=null,q=0;q<k.length;q++){var L=k[q];L!==null&&(L.lane&=-536870913)}n&=~Q}s!==0&&Q0(e,s,0),u!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function Q0(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-Tt(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|n&261930}function K0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-Tt(n),c=1<<s;c&t|e[s]&t&&(e[s]|=t),n&=~c}}function $0(e,t){var n=t&-t;return n=(n&42)!==0?1:oc(n),(n&(e.suspendedLanes|t))!==0?0:n}function oc(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 cc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function J0(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:Og(e.type))}function P0(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Ln=Math.random().toString(36).slice(2),lt="__reactFiber$"+Ln,mt="__reactProps$"+Ln,Ga="__reactContainer$"+Ln,uc="__reactEvents$"+Ln,P5="__reactListeners$"+Ln,W5="__reactHandles$"+Ln,W0="__reactResources$"+Ln,$s="__reactMarker$"+Ln;function fc(e){delete e[lt],delete e[mt],delete e[uc],delete e[P5],delete e[W5]}function Ya(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ga]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bg(e);e!==null;){if(n=e[lt])return n;e=bg(e)}return t}e=n,n=e.parentNode}return null}function Xa(e){if(e=e[lt]||e[Ga]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Js(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Fa(e){var t=e[W0];return t||(t=e[W0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[$s]=!0}var I0=new Set,em={};function ga(e,t){Za(e,t),Za(e+"Capture",t)}function Za(e,t){for(em[e]=t,e=0;e<t.length;e++)I0.add(t[e])}var I5=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]*$"),tm={},nm={};function ej(e){return sc.call(nm,e)?!0:sc.call(tm,e)?!1:I5.test(e)?nm[e]=!0:(tm[e]=!0,!1)}function bi(e,t,n){if(ej(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function vi(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 dn(e,t,n,s){if(s===null)e.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+s)}}function Vt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function am(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tj(e,t,n){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,u=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dc(e){if(!e._valueTracker){var t=am(e)?"checked":"value";e._valueTracker=tj(e,t,""+e[t])}}function sm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=am(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function ji(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 nj=/[\n"\\]/g;function Bt(e){return e.replace(nj,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hc(e,t,n,s,c,u,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=""+Vt(t)):e.value!==""+Vt(t)&&(e.value=""+Vt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?mc(e,m,Vt(t)):n!=null?mc(e,m,Vt(n)):s!=null&&e.removeAttribute("value"),c==null&&u!=null&&(e.defaultChecked=!!u),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+Vt(b):e.removeAttribute("name")}function lm(e,t,n,s,c,u,m,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){dc(e);return}n=n!=null?""+Vt(n):"",t=t!=null?""+Vt(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}s=s??c,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=b?e.checked:!!s,e.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),dc(e)}function mc(e,t,n){t==="number"&&ji(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Qa(e,t,n,s){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&s&&(e[n].defaultSelected=!0)}else{for(n=""+Vt(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,s&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function im(e,t,n){if(t!=null&&(t=""+Vt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Vt(n):""}function rm(e,t,n,s){if(t==null){if(s!=null){if(n!=null)throw Error(o(92));if(ae(s)){if(1<s.length)throw Error(o(93));s=s[0]}n=s}n==null&&(n=""),t=n}n=Vt(t),e.defaultValue=n,s=e.textContent,s===n&&s!==""&&s!==null&&(e.value=s),dc(e)}function Ka(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var aj=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 om(e,t,n){var s=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,n):typeof n!="number"||n===0||aj.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function cm(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var c in t)s=t[c],t.hasOwnProperty(c)&&n[c]!==s&&om(e,c,s)}else for(var u in t)t.hasOwnProperty(u)&&om(e,u,t[u])}function pc(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 sj=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"]]),lj=/^[\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 Si(e){return lj.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hn(){}var xc=null;function gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $a=null,Ja=null;function um(e){var t=Xa(e);if(t&&(e=t.stateNode)){var n=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(hc(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="'+Bt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var c=s[mt]||null;if(!c)throw Error(o(90));hc(s,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)s=n[t],s.form===e.form&&sm(s)}break e;case"textarea":im(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Qa(e,!!n.multiple,t,!1)}}}var yc=!1;function fm(e,t,n){if(yc)return e(t,n);yc=!0;try{var s=e(t);return s}finally{if(yc=!1,($a!==null||Ja!==null)&&(cr(),$a&&(t=$a,e=Ja,Ja=$a=null,um(t),e)))for(t=0;t<e.length;t++)um(e[t])}}function Ps(e,t){var n=e.stateNode;if(n===null)return null;var s=n[mt]||null;if(s===null)return null;n=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=!1;if(mn)try{var Ws={};Object.defineProperty(Ws,"passive",{get:function(){bc=!0}}),window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{bc=!1}var Un=null,vc=null,wi=null;function dm(){if(wi)return wi;var e,t=vc,n=t.length,s,c="value"in Un?Un.value:Un.textContent,u=c.length;for(e=0;e<n&&t[e]===c[e];e++);var m=n-e;for(s=1;s<=m&&t[n-s]===c[u-s];s++);return wi=c.slice(e,1<s?1-s:void 0)}function Ni(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 Ti(){return!0}function hm(){return!1}function pt(e){function t(n,s,c,u,m){this._reactName=n,this._targetInst=c,this.type=s,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ti:hm,this.isPropagationStopped=hm,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=Ti)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ti)},persist:function(){},isPersistent:Ti}),t}var ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ai=pt(ya),Is=v({},ya,{view:0,detail:0}),ij=pt(Is),jc,Sc,el,Ci=v({},Is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nc,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!==el&&(el&&e.type==="mousemove"?(jc=e.screenX-el.screenX,Sc=e.screenY-el.screenY):Sc=jc=0,el=e),jc)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),mm=pt(Ci),rj=v({},Ci,{dataTransfer:0}),oj=pt(rj),cj=v({},Is,{relatedTarget:0}),wc=pt(cj),uj=v({},ya,{animationName:0,elapsedTime:0,pseudoElement:0}),fj=pt(uj),dj=v({},ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hj=pt(dj),mj=v({},ya,{data:0}),pm=pt(mj),pj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xj={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"},gj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gj[e])?!!t[e]:!1}function Nc(){return yj}var bj=v({},Is,{key:function(e){if(e.key){var t=pj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nc,charCode:function(e){return e.type==="keypress"?Ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),vj=pt(bj),jj=v({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xm=pt(jj),Sj=v({},Is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nc}),wj=pt(Sj),Nj=v({},ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tj=pt(Nj),Aj=v({},Ci,{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}),Cj=pt(Aj),Ej=v({},ya,{newState:0,oldState:0}),_j=pt(Ej),Dj=[9,13,27,32],Tc=mn&&"CompositionEvent"in window,tl=null;mn&&"documentMode"in document&&(tl=document.documentMode);var Mj=mn&&"TextEvent"in window&&!tl,gm=mn&&(!Tc||tl&&8<tl&&11>=tl),ym=" ",bm=!1;function vm(e,t){switch(e){case"keyup":return Dj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pa=!1;function kj(e,t){switch(e){case"compositionend":return jm(t);case"keypress":return t.which!==32?null:(bm=!0,ym);case"textInput":return e=t.data,e===ym&&bm?null:e;default:return null}}function Rj(e,t){if(Pa)return e==="compositionend"||!Tc&&vm(e,t)?(e=dm(),wi=vc=Un=null,Pa=!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 gm&&t.locale!=="ko"?null:t.data;default:return null}}var zj={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 Sm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zj[e.type]:t==="textarea"}function wm(e,t,n,s){$a?Ja?Ja.push(s):Ja=[s]:$a=s,t=xr(t,"onChange"),0<t.length&&(n=new Ai("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var nl=null,al=null;function Oj(e){lg(e,0)}function Ei(e){var t=Js(e);if(sm(t))return e}function Nm(e,t){if(e==="change")return t}var Tm=!1;if(mn){var Ac;if(mn){var Cc="oninput"in document;if(!Cc){var Am=document.createElement("div");Am.setAttribute("oninput","return;"),Cc=typeof Am.oninput=="function"}Ac=Cc}else Ac=!1;Tm=Ac&&(!document.documentMode||9<document.documentMode)}function Cm(){nl&&(nl.detachEvent("onpropertychange",Em),al=nl=null)}function Em(e){if(e.propertyName==="value"&&Ei(al)){var t=[];wm(t,al,e,gc(e)),fm(Oj,t)}}function Vj(e,t,n){e==="focusin"?(Cm(),nl=t,al=n,nl.attachEvent("onpropertychange",Em)):e==="focusout"&&Cm()}function Bj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(al)}function Lj(e,t){if(e==="click")return Ei(t)}function Uj(e,t){if(e==="input"||e==="change")return Ei(t)}function Hj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:Hj;function sl(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var c=n[s];if(!sc.call(t,c)||!At(e[c],t[c]))return!1}return!0}function _m(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dm(e,t){var n=_m(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_m(n)}}function Mm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function km(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ji(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=ji(e.document)}return t}function Ec(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 qj=mn&&"documentMode"in document&&11>=document.documentMode,Wa=null,_c=null,ll=null,Dc=!1;function Rm(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dc||Wa==null||Wa!==ji(s)||(s=Wa,"selectionStart"in s&&Ec(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ll&&sl(ll,s)||(ll=s,s=xr(_c,"onSelect"),0<s.length&&(t=new Ai("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=Wa)))}function ba(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ia={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionrun:ba("Transition","TransitionRun"),transitionstart:ba("Transition","TransitionStart"),transitioncancel:ba("Transition","TransitionCancel"),transitionend:ba("Transition","TransitionEnd")},Mc={},zm={};mn&&(zm=document.createElement("div").style,"AnimationEvent"in window||(delete Ia.animationend.animation,delete Ia.animationiteration.animation,delete Ia.animationstart.animation),"TransitionEvent"in window||delete Ia.transitionend.transition);function va(e){if(Mc[e])return Mc[e];if(!Ia[e])return e;var t=Ia[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in zm)return Mc[e]=t[n];return e}var Om=va("animationend"),Vm=va("animationiteration"),Bm=va("animationstart"),Gj=va("transitionrun"),Yj=va("transitionstart"),Xj=va("transitioncancel"),Lm=va("transitionend"),Um=new Map,kc="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(" ");kc.push("scrollEnd");function Jt(e,t){Um.set(e,t),ga(t,[e])}var _i=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)},Lt=[],es=0,Rc=0;function Di(){for(var e=es,t=Rc=es=0;t<e;){var n=Lt[t];Lt[t++]=null;var s=Lt[t];Lt[t++]=null;var c=Lt[t];Lt[t++]=null;var u=Lt[t];if(Lt[t++]=null,s!==null&&c!==null){var m=s.pending;m===null?c.next=c:(c.next=m.next,m.next=c),s.pending=c}u!==0&&Hm(n,c,u)}}function Mi(e,t,n,s){Lt[es++]=e,Lt[es++]=t,Lt[es++]=n,Lt[es++]=s,Rc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function zc(e,t,n,s){return Mi(e,t,n,s),ki(e)}function ja(e,t){return Mi(e,null,null,t),ki(e)}function Hm(e,t,n){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n);for(var c=!1,u=e.return;u!==null;)u.childLanes|=n,s=u.alternate,s!==null&&(s.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(c=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,c&&t!==null&&(c=31-Tt(n),e=u.hiddenUpdates,s=e[c],s===null?e[c]=[t]:s.push(t),t.lane=n|536870912),u):null}function ki(e){if(50<Cl)throw Cl=0,Yu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ts={};function Fj(e,t,n,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,s){return new Fj(e,t,n,s)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pn(e,t){var n=e.alternate;return n===null?(n=Ct(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 qm(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 Ri(e,t,n,s,c,u){var m=0;if(s=e,typeof e=="function")Oc(e)&&(m=1);else if(typeof e=="string")m=J3(e,n,z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Ct(31,n,t,c),e.elementType=se,e.lanes=u,e;case O:return Sa(n.children,c,u,t);case V:m=8,c|=24;break;case G:return e=Ct(12,n,t,c|2),e.elementType=G,e.lanes=u,e;case K:return e=Ct(13,n,t,c),e.elementType=K,e.lanes=u,e;case oe:return e=Ct(19,n,t,c),e.elementType=oe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:m=10;break e;case Y:m=9;break e;case U:m=11;break e;case $:m=14;break e;case I:m=16,s=null;break e}m=29,n=Error(o(130,e===null?"null":typeof e,"")),s=null}return t=Ct(m,n,t,c),t.elementType=e,t.type=s,t.lanes=u,t}function Sa(e,t,n,s){return e=Ct(7,e,s,t),e.lanes=n,e}function Vc(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function Gm(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Bc(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ym=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var n=Ym.get(e);return n!==void 0?n:(t={value:e,source:t,stack:G0(t)},Ym.set(e,t),t)}return{value:e,source:t,stack:G0(t)}}var ns=[],as=0,zi=null,il=0,Ht=[],qt=0,Hn=null,sn=1,ln="";function xn(e,t){ns[as++]=il,ns[as++]=zi,zi=e,il=t}function Xm(e,t,n){Ht[qt++]=sn,Ht[qt++]=ln,Ht[qt++]=Hn,Hn=e;var s=sn;e=ln;var c=32-Tt(s)-1;s&=~(1<<c),n+=1;var u=32-Tt(t)+c;if(30<u){var m=c-c%5;u=(s&(1<<m)-1).toString(32),s>>=m,c-=m,sn=1<<32-Tt(t)+c|n<<c|s,ln=u+e}else sn=1<<u|n<<c|s,ln=e}function Lc(e){e.return!==null&&(xn(e,1),Xm(e,1,0))}function Uc(e){for(;e===zi;)zi=ns[--as],ns[as]=null,il=ns[--as],ns[as]=null;for(;e===Hn;)Hn=Ht[--qt],Ht[qt]=null,ln=Ht[--qt],Ht[qt]=null,sn=Ht[--qt],Ht[qt]=null}function Fm(e,t){Ht[qt++]=sn,Ht[qt++]=ln,Ht[qt++]=Hn,sn=t.id,ln=t.overflow,Hn=e}var it=null,Be=null,we=!1,qn=null,Gt=!1,Hc=Error(o(519));function Gn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw rl(Ut(t,e)),Hc}function Zm(e){var t=e.stateNode,n=e.type,s=e.memoizedProps;switch(t[lt]=e,t[mt]=s,n){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(n=0;n<_l.length;n++)ve(_l[n],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),lm(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),rm(t,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||s.suppressHydrationWarning===!0||cg(t.textContent,n)?(s.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),s.onScroll!=null&&ve("scroll",t),s.onScrollEnd!=null&&ve("scrollend",t),s.onClick!=null&&(t.onclick=hn),t=!0):t=!1,t||Gn(e,!0)}function Qm(e){for(it=e.return;it;)switch(it.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:it=it.return}}function ss(e){if(e!==it)return!1;if(!we)return Qm(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||sf(e.type,e.memoizedProps)),n=!n),n&&Be&&Gn(e),Qm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Be=yg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Be=yg(e)}else t===27?(t=Be,na(e.type)?(e=uf,uf=null,Be=e):Be=t):Be=it?Xt(e.stateNode.nextSibling):null;return!0}function wa(){Be=it=null,we=!1}function qc(){var e=qn;return e!==null&&(bt===null?bt=e:bt.push.apply(bt,e),qn=null),e}function rl(e){qn===null?qn=[e]:qn.push(e)}var Gc=S(null),Na=null,gn=null;function Yn(e,t,n){J(Gc,t._currentValue),t._currentValue=n}function yn(e){e._currentValue=Gc.current,R(Gc)}function Yc(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Xc(e,t,n,s){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var u=c.dependencies;if(u!==null){var m=c.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=c;for(var w=0;w<t.length;w++)if(b.context===t[w]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),Yc(u.return,n,e),s||(m=null);break e}u=b.next}}else if(c.tag===18){if(m=c.return,m===null)throw Error(o(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),Yc(m,n,e),m=null}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===e){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}}function ls(e,t,n,s){e=null;for(var c=t,u=!1;c!==null;){if(!u){if((c.flags&524288)!==0)u=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var m=c.alternate;if(m===null)throw Error(o(387));if(m=m.memoizedProps,m!==null){var b=c.type;At(c.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(c===ce.current){if(m=c.alternate,m===null)throw Error(o(387));m.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(zl):e=[zl])}c=c.return}e!==null&&Xc(t,e,n,s),t.flags|=262144}function Oi(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Na=e,gn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Km(Na,e)}function Vi(e,t){return Na===null&&Ta(e),Km(e,t)}function Km(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gn===null){if(e===null)throw Error(o(308));gn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else gn=gn.next=t;return n}var Zj=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Qj=a.unstable_scheduleCallback,Kj=a.unstable_NormalPriority,Qe={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fc(){return{controller:new Zj,data:new Map,refCount:0}}function ol(e){e.refCount--,e.refCount===0&&Qj(Kj,function(){e.controller.abort()})}var cl=null,Zc=0,is=0,rs=null;function $j(e,t){if(cl===null){var n=cl=[];Zc=0,is=$u(),rs={status:"pending",value:void 0,then:function(s){n.push(s)}}}return Zc++,t.then($m,$m),t}function $m(){if(--Zc===0&&cl!==null){rs!==null&&(rs.status="fulfilled");var e=cl;cl=null,is=0,rs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jj(e,t){var n=[],s={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(s.status="rejected",s.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),s}var Jm=_.S;_.S=function(e,t){Rx=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$j(e,t),Jm!==null&&Jm(e,t)};var Aa=S(null);function Qc(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function Bi(e,t){t===null?J(Aa,Aa.current):J(Aa,t.pool)}function Pm(){var e=Qc();return e===null?null:{parent:Qe._currentValue,pool:e}}var os=Error(o(460)),Kc=Error(o(474)),Li=Error(o(542)),Ui={then:function(){}};function Wm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Im(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(hn,hn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tp(e),e;default:if(typeof t.status=="string")t.then(hn,hn);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=s}},function(s){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tp(e),e}throw Ea=t,os}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ea=n,os):n}}var Ea=null;function ep(){if(Ea===null)throw Error(o(459));var e=Ea;return Ea=null,e}function tp(e){if(e===os||e===Li)throw Error(o(483))}var cs=null,ul=0;function Hi(e){var t=ul;return ul+=1,cs===null&&(cs=[]),Im(cs,e,t)}function fl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===j?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function np(e){function t(C,N){if(e){var D=C.deletions;D===null?(C.deletions=[N],C.flags|=16):D.push(N)}}function n(C,N){if(!e)return null;for(;N!==null;)t(C,N),N=N.sibling;return null}function s(C){for(var N=new Map;C!==null;)C.key!==null?N.set(C.key,C):N.set(C.index,C),C=C.sibling;return N}function c(C,N){return C=pn(C,N),C.index=0,C.sibling=null,C}function u(C,N,D){return C.index=D,e?(D=C.alternate,D!==null?(D=D.index,D<N?(C.flags|=67108866,N):D):(C.flags|=67108866,N)):(C.flags|=1048576,N)}function m(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function b(C,N,D,Z){return N===null||N.tag!==6?(N=Vc(D,C.mode,Z),N.return=C,N):(N=c(N,D),N.return=C,N)}function w(C,N,D,Z){var ue=D.type;return ue===O?q(C,N,D.props.children,Z,D.key):N!==null&&(N.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&Ca(ue)===N.type)?(N=c(N,D.props),fl(N,D),N.return=C,N):(N=Ri(D.type,D.key,D.props,null,C.mode,Z),fl(N,D),N.return=C,N)}function M(C,N,D,Z){return N===null||N.tag!==4||N.stateNode.containerInfo!==D.containerInfo||N.stateNode.implementation!==D.implementation?(N=Bc(D,C.mode,Z),N.return=C,N):(N=c(N,D.children||[]),N.return=C,N)}function q(C,N,D,Z,ue){return N===null||N.tag!==7?(N=Sa(D,C.mode,Z,ue),N.return=C,N):(N=c(N,D),N.return=C,N)}function Q(C,N,D){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Vc(""+N,C.mode,D),N.return=C,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case T:return D=Ri(N.type,N.key,N.props,null,C.mode,D),fl(D,N),D.return=C,D;case E:return N=Bc(N,C.mode,D),N.return=C,N;case I:return N=Ca(N),Q(C,N,D)}if(ae(N)||pe(N))return N=Sa(N,C.mode,D,null),N.return=C,N;if(typeof N.then=="function")return Q(C,Hi(N),D);if(N.$$typeof===X)return Q(C,Vi(C,N),D);qi(C,N)}return null}function k(C,N,D,Z){var ue=N!==null?N.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ue!==null?null:b(C,N,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case T:return D.key===ue?w(C,N,D,Z):null;case E:return D.key===ue?M(C,N,D,Z):null;case I:return D=Ca(D),k(C,N,D,Z)}if(ae(D)||pe(D))return ue!==null?null:q(C,N,D,Z,null);if(typeof D.then=="function")return k(C,N,Hi(D),Z);if(D.$$typeof===X)return k(C,N,Vi(C,D),Z);qi(C,D)}return null}function L(C,N,D,Z,ue){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return C=C.get(D)||null,b(N,C,""+Z,ue);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case T:return C=C.get(Z.key===null?D:Z.key)||null,w(N,C,Z,ue);case E:return C=C.get(Z.key===null?D:Z.key)||null,M(N,C,Z,ue);case I:return Z=Ca(Z),L(C,N,D,Z,ue)}if(ae(Z)||pe(Z))return C=C.get(D)||null,q(N,C,Z,ue,null);if(typeof Z.then=="function")return L(C,N,D,Hi(Z),ue);if(Z.$$typeof===X)return L(C,N,D,Vi(N,Z),ue);qi(N,Z)}return null}function le(C,N,D,Z){for(var ue=null,Ne=null,re=N,ge=N=0,Se=null;re!==null&&ge<D.length;ge++){re.index>ge?(Se=re,re=null):Se=re.sibling;var Te=k(C,re,D[ge],Z);if(Te===null){re===null&&(re=Se);break}e&&re&&Te.alternate===null&&t(C,re),N=u(Te,N,ge),Ne===null?ue=Te:Ne.sibling=Te,Ne=Te,re=Se}if(ge===D.length)return n(C,re),we&&xn(C,ge),ue;if(re===null){for(;ge<D.length;ge++)re=Q(C,D[ge],Z),re!==null&&(N=u(re,N,ge),Ne===null?ue=re:Ne.sibling=re,Ne=re);return we&&xn(C,ge),ue}for(re=s(re);ge<D.length;ge++)Se=L(re,C,ge,D[ge],Z),Se!==null&&(e&&Se.alternate!==null&&re.delete(Se.key===null?ge:Se.key),N=u(Se,N,ge),Ne===null?ue=Se:Ne.sibling=Se,Ne=Se);return e&&re.forEach(function(ra){return t(C,ra)}),we&&xn(C,ge),ue}function de(C,N,D,Z){if(D==null)throw Error(o(151));for(var ue=null,Ne=null,re=N,ge=N=0,Se=null,Te=D.next();re!==null&&!Te.done;ge++,Te=D.next()){re.index>ge?(Se=re,re=null):Se=re.sibling;var ra=k(C,re,Te.value,Z);if(ra===null){re===null&&(re=Se);break}e&&re&&ra.alternate===null&&t(C,re),N=u(ra,N,ge),Ne===null?ue=ra:Ne.sibling=ra,Ne=ra,re=Se}if(Te.done)return n(C,re),we&&xn(C,ge),ue;if(re===null){for(;!Te.done;ge++,Te=D.next())Te=Q(C,Te.value,Z),Te!==null&&(N=u(Te,N,ge),Ne===null?ue=Te:Ne.sibling=Te,Ne=Te);return we&&xn(C,ge),ue}for(re=s(re);!Te.done;ge++,Te=D.next())Te=L(re,C,ge,Te.value,Z),Te!==null&&(e&&Te.alternate!==null&&re.delete(Te.key===null?ge:Te.key),N=u(Te,N,ge),Ne===null?ue=Te:Ne.sibling=Te,Ne=Te);return e&&re.forEach(function(rS){return t(C,rS)}),we&&xn(C,ge),ue}function ze(C,N,D,Z){if(typeof D=="object"&&D!==null&&D.type===O&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case T:e:{for(var ue=D.key;N!==null;){if(N.key===ue){if(ue=D.type,ue===O){if(N.tag===7){n(C,N.sibling),Z=c(N,D.props.children),Z.return=C,C=Z;break e}}else if(N.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===I&&Ca(ue)===N.type){n(C,N.sibling),Z=c(N,D.props),fl(Z,D),Z.return=C,C=Z;break e}n(C,N);break}else t(C,N);N=N.sibling}D.type===O?(Z=Sa(D.props.children,C.mode,Z,D.key),Z.return=C,C=Z):(Z=Ri(D.type,D.key,D.props,null,C.mode,Z),fl(Z,D),Z.return=C,C=Z)}return m(C);case E:e:{for(ue=D.key;N!==null;){if(N.key===ue)if(N.tag===4&&N.stateNode.containerInfo===D.containerInfo&&N.stateNode.implementation===D.implementation){n(C,N.sibling),Z=c(N,D.children||[]),Z.return=C,C=Z;break e}else{n(C,N);break}else t(C,N);N=N.sibling}Z=Bc(D,C.mode,Z),Z.return=C,C=Z}return m(C);case I:return D=Ca(D),ze(C,N,D,Z)}if(ae(D))return le(C,N,D,Z);if(pe(D)){if(ue=pe(D),typeof ue!="function")throw Error(o(150));return D=ue.call(D),de(C,N,D,Z)}if(typeof D.then=="function")return ze(C,N,Hi(D),Z);if(D.$$typeof===X)return ze(C,N,Vi(C,D),Z);qi(C,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,N!==null&&N.tag===6?(n(C,N.sibling),Z=c(N,D),Z.return=C,C=Z):(n(C,N),Z=Vc(D,C.mode,Z),Z.return=C,C=Z),m(C)):n(C,N)}return function(C,N,D,Z){try{ul=0;var ue=ze(C,N,D,Z);return cs=null,ue}catch(re){if(re===os||re===Li)throw re;var Ne=Ct(29,re,null,C.mode);return Ne.lanes=Z,Ne.return=C,Ne}finally{}}}var _a=np(!0),ap=np(!1),Xn=!1;function $c(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jc(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 Fn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ae&2)!==0){var c=s.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),s.pending=t,t=ki(e),Hm(e,null,n),t}return Mi(e,s,t,n),ki(e)}function dl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,K0(e,n)}}function Pc(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var c=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?c=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?c=u=t:u=u.next=t}else c=u=t;n={baseState:s.baseState,firstBaseUpdate:c,lastBaseUpdate:u,shared:s.shared,callbacks:s.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Wc=!1;function hl(){if(Wc){var e=rs;if(e!==null)throw e}}function ml(e,t,n,s){Wc=!1;var c=e.updateQueue;Xn=!1;var u=c.firstBaseUpdate,m=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var w=b,M=w.next;w.next=null,m===null?u=M:m.next=M,m=w;var q=e.alternate;q!==null&&(q=q.updateQueue,b=q.lastBaseUpdate,b!==m&&(b===null?q.firstBaseUpdate=M:b.next=M,q.lastBaseUpdate=w))}if(u!==null){var Q=c.baseState;m=0,q=M=w=null,b=u;do{var k=b.lane&-536870913,L=k!==b.lane;if(L?(je&k)===k:(s&k)===k){k!==0&&k===is&&(Wc=!0),q!==null&&(q=q.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var le=e,de=b;k=t;var ze=n;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){Q=le.call(ze,Q,k);break e}Q=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,k=typeof le=="function"?le.call(ze,Q,k):le,k==null)break e;Q=v({},Q,k);break e;case 2:Xn=!0}}k=b.callback,k!==null&&(e.flags|=64,L&&(e.flags|=8192),L=c.callbacks,L===null?c.callbacks=[k]:L.push(k))}else L={lane:k,tag:b.tag,payload:b.payload,callback:b.callback,next:null},q===null?(M=q=L,w=Q):q=q.next=L,m|=k;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;L=b,b=L.next,L.next=null,c.lastBaseUpdate=L,c.shared.pending=null}}while(!0);q===null&&(w=Q),c.baseState=w,c.firstBaseUpdate=M,c.lastBaseUpdate=q,u===null&&(c.shared.lanes=0),Pn|=m,e.lanes=m,e.memoizedState=Q}}function sp(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function lp(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)sp(n[e],t)}var us=S(null),Gi=S(0);function ip(e,t){e=Cn,J(Gi,e),J(us,t),Cn=e|t.baseLanes}function Ic(){J(Gi,Cn),J(us,us.current)}function eu(){Cn=Gi.current,R(us),R(Gi)}var Et=S(null),Yt=null;function Qn(e){var t=e.alternate;J(Xe,Xe.current&1),J(Et,e),Yt===null&&(t===null||us.current!==null||t.memoizedState!==null)&&(Yt=e)}function tu(e){J(Xe,Xe.current),J(Et,e),Yt===null&&(Yt=e)}function rp(e){e.tag===22?(J(Xe,Xe.current),J(Et,e),Yt===null&&(Yt=e)):Kn()}function Kn(){J(Xe,Xe.current),J(Et,Et.current)}function _t(e){R(Et),Yt===e&&(Yt=null),R(Xe)}var Xe=S(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||cf(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 bn=0,xe=null,ke=null,Ke=null,Xi=!1,fs=!1,Da=!1,Fi=0,pl=0,ds=null,Pj=0;function Ge(){throw Error(o(321))}function nu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!At(e[n],t[n]))return!1;return!0}function au(e,t,n,s,c,u){return bn=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?Xp:yu,Da=!1,u=n(s,c),Da=!1,fs&&(u=cp(t,n,s,c)),op(e),u}function op(e){_.H=yl;var t=ke!==null&&ke.next!==null;if(bn=0,Ke=ke=xe=null,Xi=!1,pl=0,ds=null,t)throw Error(o(300));e===null||$e||(e=e.dependencies,e!==null&&Oi(e)&&($e=!0))}function cp(e,t,n,s){xe=e;var c=0;do{if(fs&&(ds=null),pl=0,fs=!1,25<=c)throw Error(o(301));if(c+=1,Ke=ke=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}_.H=Fp,u=t(n,s)}while(fs);return u}function Wj(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?xl(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(xe.flags|=1024),t}function su(){var e=Fi!==0;return Fi=0,e}function lu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function iu(e){if(Xi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Xi=!1}bn=0,Ke=ke=xe=null,fs=!1,pl=Fi=0,ds=null}function ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?xe.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Fe(){if(ke===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=Ke===null?xe.memoizedState:Ke.next;if(t!==null)Ke=t,ke=e;else{if(e===null)throw xe.alternate===null?Error(o(467)):Error(o(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},Ke===null?xe.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xl(e){var t=pl;return pl+=1,ds===null&&(ds=[]),e=Im(ds,e,t),t=xe,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?Xp:yu),e}function Qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xl(e);if(e.$$typeof===X)return rt(e)}throw Error(o(438,String(e)))}function ru(e){var t=null,n=xe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var s=xe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Zi(),xe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),s=0;s<e;s++)n[s]=ee;return t.index++,n}function vn(e,t){return typeof t=="function"?t(e):t}function Ki(e){var t=Fe();return ou(t,ke,e)}function ou(e,t,n){var s=e.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=n;var c=e.baseQueue,u=s.pending;if(u!==null){if(c!==null){var m=c.next;c.next=u.next,u.next=m}t.baseQueue=c=u,s.pending=null}if(u=e.baseState,c===null)e.memoizedState=u;else{t=c.next;var b=m=null,w=null,M=t,q=!1;do{var Q=M.lane&-536870913;if(Q!==M.lane?(je&Q)===Q:(bn&Q)===Q){var k=M.revertLane;if(k===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),Q===is&&(q=!0);else if((bn&k)===k){M=M.next,k===is&&(q=!0);continue}else Q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(b=w=Q,m=u):w=w.next=Q,xe.lanes|=k,Pn|=k;Q=M.action,Da&&n(u,Q),u=M.hasEagerState?M.eagerState:n(u,Q)}else k={lane:Q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(b=w=k,m=u):w=w.next=k,xe.lanes|=Q,Pn|=Q;M=M.next}while(M!==null&&M!==t);if(w===null?m=u:w.next=b,!At(u,e.memoizedState)&&($e=!0,q&&(n=rs,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=w,s.lastRenderedState=u}return c===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function cu(e){var t=Fe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var s=n.dispatch,c=n.pending,u=t.memoizedState;if(c!==null){n.pending=null;var m=c=c.next;do u=e(u,m.action),m=m.next;while(m!==c);At(u,t.memoizedState)||($e=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,s]}function up(e,t,n){var s=xe,c=Fe(),u=we;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var m=!At((ke||c).memoizedState,n);if(m&&(c.memoizedState=n,$e=!0),c=c.queue,du(hp.bind(null,s,c,e),[e]),c.getSnapshot!==t||m||Ke!==null&&Ke.memoizedState.tag&1){if(s.flags|=2048,hs(9,{destroy:void 0},dp.bind(null,s,c,n,t),null),Ve===null)throw Error(o(349));u||(bn&127)!==0||fp(s,t,n)}return n}function fp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t=Zi(),xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function dp(e,t,n,s){t.value=n,t.getSnapshot=s,mp(t)&&pp(e)}function hp(e,t,n){return n(function(){mp(t)&&pp(e)})}function mp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!At(e,n)}catch{return!0}}function pp(e){var t=ja(e,2);t!==null&&vt(t,e,2)}function uu(e){var t=ht();if(typeof e=="function"){var n=e;if(e=n(),Da){Bn(!0);try{n()}finally{Bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:e},t}function xp(e,t,n,s){return e.baseState=n,ou(e,ke,typeof s=="function"?s:vn)}function Ij(e,t,n,s,c){if(Pi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};_.T!==null?n(!0):u.isTransition=!1,s(u),n=t.pending,n===null?(u.next=t.pending=u,gp(t,u)):(u.next=n.next,t.pending=n.next=u)}}function gp(e,t){var n=t.action,s=t.payload,c=e.state;if(t.isTransition){var u=_.T,m={};_.T=m;try{var b=n(c,s),w=_.S;w!==null&&w(m,b),yp(e,t,b)}catch(M){fu(e,t,M)}finally{u!==null&&m.types!==null&&(u.types=m.types),_.T=u}}else try{u=n(c,s),yp(e,t,u)}catch(M){fu(e,t,M)}}function yp(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){bp(e,t,s)},function(s){return fu(e,t,s)}):bp(e,t,n)}function bp(e,t,n){t.status="fulfilled",t.value=n,vp(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,gp(e,n)))}function fu(e,t,n){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=n,vp(t),t=t.next;while(t!==s)}e.action=null}function vp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jp(e,t){return t}function Sp(e,t){if(we){var n=Ve.formState;if(n!==null){e:{var s=xe;if(we){if(Be){t:{for(var c=Be,u=Gt;c.nodeType!==8;){if(!u){c=null;break t}if(c=Xt(c.nextSibling),c===null){c=null;break t}}u=c.data,c=u==="F!"||u==="F"?c:null}if(c){Be=Xt(c.nextSibling),s=c.data==="F!";break e}}Gn(s)}s=!1}s&&(t=n[0])}}return n=ht(),n.memoizedState=n.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:t},n.queue=s,n=qp.bind(null,xe,s),s.dispatch=n,s=uu(!1),u=gu.bind(null,xe,!1,s.queue),s=ht(),c={state:t,dispatch:null,action:e,pending:null},s.queue=c,n=Ij.bind(null,xe,c,u,n),c.dispatch=n,s.memoizedState=e,[t,n,!1]}function wp(e){var t=Fe();return Np(t,ke,e)}function Np(e,t,n){if(t=ou(e,t,jp)[0],e=Ki(vn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=xl(t)}catch(m){throw m===os?Li:m}else s=t;t=Fe();var c=t.queue,u=c.dispatch;return n!==t.memoizedState&&(xe.flags|=2048,hs(9,{destroy:void 0},e3.bind(null,c,n),null)),[s,u,e]}function e3(e,t){e.action=t}function Tp(e){var t=Fe(),n=ke;if(n!==null)return Np(t,n,e);Fe(),t=t.memoizedState,n=Fe();var s=n.queue.dispatch;return n.memoizedState=e,[t,s,!1]}function hs(e,t,n,s){return e={tag:e,create:n,deps:s,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Zi(),xe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Ap(){return Fe().memoizedState}function $i(e,t,n,s){var c=ht();xe.flags|=e,c.memoizedState=hs(1|t,{destroy:void 0},n,s===void 0?null:s)}function Ji(e,t,n,s){var c=Fe();s=s===void 0?null:s;var u=c.memoizedState.inst;ke!==null&&s!==null&&nu(s,ke.memoizedState.deps)?c.memoizedState=hs(t,u,n,s):(xe.flags|=e,c.memoizedState=hs(1|t,u,n,s))}function Cp(e,t){$i(8390656,8,e,t)}function du(e,t){Ji(2048,8,e,t)}function t3(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Zi(),xe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ep(e){var t=Fe().memoizedState;return t3({ref:t,nextImpl:e}),function(){if((Ae&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function _p(e,t){return Ji(4,2,e,t)}function Dp(e,t){return Ji(4,4,e,t)}function Mp(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 kp(e,t,n){n=n!=null?n.concat([e]):null,Ji(4,4,Mp.bind(null,t,e),n)}function hu(){}function Rp(e,t){var n=Fe();t=t===void 0?null:t;var s=n.memoizedState;return t!==null&&nu(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function zp(e,t){var n=Fe();t=t===void 0?null:t;var s=n.memoizedState;if(t!==null&&nu(t,s[1]))return s[0];if(s=e(),Da){Bn(!0);try{e()}finally{Bn(!1)}}return n.memoizedState=[s,t],s}function mu(e,t,n){return n===void 0||(bn&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ox(),xe.lanes|=e,Pn|=e,n)}function Op(e,t,n,s){return At(n,t)?n:us.current!==null?(e=mu(e,n,s),At(e,t)||($e=!0),e):(bn&42)===0||(bn&1073741824)!==0&&(je&261930)===0?($e=!0,e.memoizedState=n):(e=Ox(),xe.lanes|=e,Pn|=e,t)}function Vp(e,t,n,s,c){var u=F.p;F.p=u!==0&&8>u?u:8;var m=_.T,b={};_.T=b,gu(e,!1,t,n);try{var w=c(),M=_.S;if(M!==null&&M(b,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var q=Jj(w,s);gl(e,t,q,kt(e))}else gl(e,t,s,kt(e))}catch(Q){gl(e,t,{then:function(){},status:"rejected",reason:Q},kt())}finally{F.p=u,m!==null&&b.types!==null&&(m.types=b.types),_.T=m}}function n3(){}function pu(e,t,n,s){if(e.tag!==5)throw Error(o(476));var c=Bp(e).queue;Vp(e,c,t,A,n===null?n3:function(){return Lp(e),n(s)})}function Bp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:A,baseState:A,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:A},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lp(e){var t=Bp(e);t.next===null&&(t=e.alternate.memoizedState),gl(e,t.next.queue,{},kt())}function xu(){return rt(zl)}function Up(){return Fe().memoizedState}function Hp(){return Fe().memoizedState}function a3(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=Fn(n);var s=Zn(t,e,n);s!==null&&(vt(s,t,n),dl(s,t,n)),t={cache:Fc()},e.payload=t;return}t=t.return}}function s3(e,t,n){var s=kt();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Pi(e)?Gp(t,n):(n=zc(e,t,n,s),n!==null&&(vt(n,e,s),Yp(n,t,s)))}function qp(e,t,n){var s=kt();gl(e,t,n,s)}function gl(e,t,n,s){var c={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pi(e))Gp(t,c);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,b=u(m,n);if(c.hasEagerState=!0,c.eagerState=b,At(b,m))return Mi(e,t,c,0),Ve===null&&Di(),!1}catch{}finally{}if(n=zc(e,t,c,s),n!==null)return vt(n,e,s),Yp(n,t,s),!0}return!1}function gu(e,t,n,s){if(s={lane:2,revertLane:$u(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Pi(e)){if(t)throw Error(o(479))}else t=zc(e,n,s,2),t!==null&&vt(t,e,2)}function Pi(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Gp(e,t){fs=Xi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yp(e,t,n){if((n&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,K0(e,n)}}var yl={readContext:rt,use:Qi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};yl.useEffectEvent=Ge;var Xp={readContext:rt,use:Qi,useCallback:function(e,t){return ht().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Cp,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,$i(4194308,4,Mp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){$i(4,2,e,t)},useMemo:function(e,t){var n=ht();t=t===void 0?null:t;var s=e();if(Da){Bn(!0);try{e()}finally{Bn(!1)}}return n.memoizedState=[s,t],s},useReducer:function(e,t,n){var s=ht();if(n!==void 0){var c=n(t);if(Da){Bn(!0);try{n(t)}finally{Bn(!1)}}}else c=t;return s.memoizedState=s.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},s.queue=e,e=e.dispatch=s3.bind(null,xe,e),[s.memoizedState,e]},useRef:function(e){var t=ht();return e={current:e},t.memoizedState=e},useState:function(e){e=uu(e);var t=e.queue,n=qp.bind(null,xe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hu,useDeferredValue:function(e,t){var n=ht();return mu(n,e,t)},useTransition:function(){var e=uu(!1);return e=Vp.bind(null,xe,e.queue,!0,!1),ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var s=xe,c=ht();if(we){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Ve===null)throw Error(o(349));(je&127)!==0||fp(s,t,n)}c.memoizedState=n;var u={value:n,getSnapshot:t};return c.queue=u,Cp(hp.bind(null,s,u,e),[e]),s.flags|=2048,hs(9,{destroy:void 0},dp.bind(null,s,u,n,t),null),n},useId:function(){var e=ht(),t=Ve.identifierPrefix;if(we){var n=ln,s=sn;n=(s&~(1<<32-Tt(s)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Fi++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Pj++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xu,useFormState:Sp,useActionState:Sp,useOptimistic:function(e){var t=ht();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=gu.bind(null,xe,!0,n),n.dispatch=t,[e,t]},useMemoCache:ru,useCacheRefresh:function(){return ht().memoizedState=a3.bind(null,xe)},useEffectEvent:function(e){var t=ht(),n={impl:e};return t.memoizedState=n,function(){if((Ae&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},yu={readContext:rt,use:Qi,useCallback:Rp,useContext:rt,useEffect:du,useImperativeHandle:kp,useInsertionEffect:_p,useLayoutEffect:Dp,useMemo:zp,useReducer:Ki,useRef:Ap,useState:function(){return Ki(vn)},useDebugValue:hu,useDeferredValue:function(e,t){var n=Fe();return Op(n,ke.memoizedState,e,t)},useTransition:function(){var e=Ki(vn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:up,useId:Up,useHostTransitionStatus:xu,useFormState:wp,useActionState:wp,useOptimistic:function(e,t){var n=Fe();return xp(n,ke,e,t)},useMemoCache:ru,useCacheRefresh:Hp};yu.useEffectEvent=Ep;var Fp={readContext:rt,use:Qi,useCallback:Rp,useContext:rt,useEffect:du,useImperativeHandle:kp,useInsertionEffect:_p,useLayoutEffect:Dp,useMemo:zp,useReducer:cu,useRef:Ap,useState:function(){return cu(vn)},useDebugValue:hu,useDeferredValue:function(e,t){var n=Fe();return ke===null?mu(n,e,t):Op(n,ke.memoizedState,e,t)},useTransition:function(){var e=cu(vn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:xl(e),t]},useSyncExternalStore:up,useId:Up,useHostTransitionStatus:xu,useFormState:Tp,useActionState:Tp,useOptimistic:function(e,t){var n=Fe();return ke!==null?xp(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ru,useCacheRefresh:Hp};Fp.useEffectEvent=Ep;function bu(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vu={enqueueSetState:function(e,t,n){e=e._reactInternals;var s=kt(),c=Fn(s);c.payload=t,n!=null&&(c.callback=n),t=Zn(e,c,s),t!==null&&(vt(t,e,s),dl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=kt(),c=Fn(s);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Zn(e,c,s),t!==null&&(vt(t,e,s),dl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),s=Fn(n);s.tag=2,t!=null&&(s.callback=t),t=Zn(e,s,n),t!==null&&(vt(t,e,n),dl(t,e,n))}};function Zp(e,t,n,s,c,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,u,m):t.prototype&&t.prototype.isPureReactComponent?!sl(n,s)||!sl(c,u):!0}function Qp(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&vu.enqueueReplaceState(t,t.state,null)}function Ma(e,t){var n=t;if("ref"in t){n={};for(var s in t)s!=="ref"&&(n[s]=t[s])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function Kp(e){_i(e)}function $p(e){console.error(e)}function Jp(e){_i(e)}function Wi(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Pp(e,t,n){try{var s=e.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ju(e,t,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){Wi(e,t)},n}function Wp(e){return e=Fn(e),e.tag=3,e}function Ip(e,t,n,s){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var u=s.value;e.payload=function(){return c(u)},e.callback=function(){Pp(t,n,s)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Pp(t,n,s),typeof c!="function"&&(Wn===null?Wn=new Set([this]):Wn.add(this));var b=s.stack;this.componentDidCatch(s.value,{componentStack:b!==null?b:""})})}function l3(e,t,n,s,c){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=n.alternate,t!==null&&ls(t,n,c,!0),n=Et.current,n!==null){switch(n.tag){case 31:case 13:return Yt===null?ur():n.alternate===null&&Ye===0&&(Ye=3),n.flags&=-257,n.flags|=65536,n.lanes=c,s===Ui?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([s]):t.add(s),Zu(e,s,c)),!1;case 22:return n.flags|=65536,s===Ui?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([s]):n.add(s)),Zu(e,s,c)),!1}throw Error(o(435,n.tag))}return Zu(e,s,c),ur(),!1}if(we)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,s!==Hc&&(e=Error(o(422),{cause:s}),rl(Ut(e,n)))):(s!==Hc&&(t=Error(o(423),{cause:s}),rl(Ut(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,s=Ut(s,n),c=ju(e.stateNode,s,c),Pc(e,c),Ye!==4&&(Ye=2)),!1;var u=Error(o(520),{cause:s});if(u=Ut(u,n),Al===null?Al=[u]:Al.push(u),Ye!==4&&(Ye=2),t===null)return!0;s=Ut(s,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=ju(n.stateNode,s,e),Pc(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Wn===null||!Wn.has(u))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Wp(c),Ip(c,e,n,s),Pc(n,c),!1}n=n.return}while(n!==null);return!1}var Su=Error(o(461)),$e=!1;function ot(e,t,n,s){t.child=e===null?ap(t,null,n,s):_a(t,e.child,n,s)}function ex(e,t,n,s,c){n=n.render;var u=t.ref;if("ref"in s){var m={};for(var b in s)b!=="ref"&&(m[b]=s[b])}else m=s;return Ta(t),s=au(e,t,n,m,u,c),b=su(),e!==null&&!$e?(lu(e,t,c),jn(e,t,c)):(we&&b&&Lc(t),t.flags|=1,ot(e,t,s,c),t.child)}function tx(e,t,n,s,c){if(e===null){var u=n.type;return typeof u=="function"&&!Oc(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,nx(e,t,u,s,c)):(e=Ri(n.type,null,s,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Du(e,c)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:sl,n(m,s)&&e.ref===t.ref)return jn(e,t,c)}return t.flags|=1,e=pn(u,s),e.ref=t.ref,e.return=t,t.child=e}function nx(e,t,n,s,c){if(e!==null){var u=e.memoizedProps;if(sl(u,s)&&e.ref===t.ref)if($e=!1,t.pendingProps=s=u,Du(e,c))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,jn(e,t,c)}return wu(e,t,n,s,c)}function ax(e,t,n,s){var c=s.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;s=c&~u}else s=0,t.child=null;return sx(e,t,u,n,s)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bi(t,u!==null?u.cachePool:null),u!==null?ip(t,u):Ic(),rp(t);else return s=t.lanes=536870912,sx(e,t,u!==null?u.baseLanes|n:n,n,s)}else u!==null?(Bi(t,u.cachePool),ip(t,u),Kn(),t.memoizedState=null):(e!==null&&Bi(t,null),Ic(),Kn());return ot(e,t,c,n),t.child}function bl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sx(e,t,n,s,c){var u=Qc();return u=u===null?null:{parent:Qe._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Bi(t,null),Ic(),rp(t),e!==null&&ls(e,t,s,!0),t.childLanes=c,null}function Ii(e,t){return t=tr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lx(e,t,n){return _a(t,e.child,null,n),e=Ii(t,t.pendingProps),e.flags|=2,_t(t),t.memoizedState=null,e}function i3(e,t,n){var s=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(s.mode==="hidden")return e=Ii(t,s),t.lanes=536870912,bl(null,e);if(tu(t),(e=Be)?(e=gg(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:sn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Gm(e),n.return=t,t.child=n,it=t,Be=null)):e=null,e===null)throw Gn(t);return t.lanes=536870912,null}return Ii(t,s)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(tu(t),c)if(t.flags&256)t.flags&=-257,t=lx(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if($e||ls(e,t,n,!1),c=(n&e.childLanes)!==0,$e||c){if(s=Ve,s!==null&&(m=$0(s,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,ja(e,m),vt(s,e,m),Su;ur(),t=lx(e,t,n)}else e=u.treeContext,Be=Xt(m.nextSibling),it=t,we=!0,qn=null,Gt=!1,e!==null&&Fm(t,e),t=Ii(t,s),t.flags|=4096;return t}return e=pn(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function er(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(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function wu(e,t,n,s,c){return Ta(t),n=au(e,t,n,s,void 0,c),s=su(),e!==null&&!$e?(lu(e,t,c),jn(e,t,c)):(we&&s&&Lc(t),t.flags|=1,ot(e,t,n,c),t.child)}function ix(e,t,n,s,c,u){return Ta(t),t.updateQueue=null,n=cp(t,s,n,c),op(e),s=su(),e!==null&&!$e?(lu(e,t,u),jn(e,t,u)):(we&&s&&Lc(t),t.flags|=1,ot(e,t,n,u),t.child)}function rx(e,t,n,s,c){if(Ta(t),t.stateNode===null){var u=ts,m=n.contextType;typeof m=="object"&&m!==null&&(u=rt(m)),u=new n(s,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=vu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=s,u.state=t.memoizedState,u.refs={},$c(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?rt(m):ts,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(bu(t,n,m,s),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&vu.enqueueReplaceState(u,u.state,null),ml(t,s,u,c),hl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,w=Ma(n,b);u.props=w;var M=u.context,q=n.contextType;m=ts,typeof q=="object"&&q!==null&&(m=rt(q));var Q=n.getDerivedStateFromProps;q=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||M!==m)&&Qp(t,u,s,m),Xn=!1;var k=t.memoizedState;u.state=k,ml(t,s,u,c),hl(),M=t.memoizedState,b||k!==M||Xn?(typeof Q=="function"&&(bu(t,n,Q,s),M=t.memoizedState),(w=Xn||Zp(t,n,w,s,k,M,m))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=M),u.props=s,u.state=M,u.context=m,s=w):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{u=t.stateNode,Jc(e,t),m=t.memoizedProps,q=Ma(n,m),u.props=q,Q=t.pendingProps,k=u.context,M=n.contextType,w=ts,typeof M=="object"&&M!==null&&(w=rt(M)),b=n.getDerivedStateFromProps,(M=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==Q||k!==w)&&Qp(t,u,s,w),Xn=!1,k=t.memoizedState,u.state=k,ml(t,s,u,c),hl();var L=t.memoizedState;m!==Q||k!==L||Xn||e!==null&&e.dependencies!==null&&Oi(e.dependencies)?(typeof b=="function"&&(bu(t,n,b,s),L=t.memoizedState),(q=Xn||Zp(t,n,q,s,k,L,w)||e!==null&&e.dependencies!==null&&Oi(e.dependencies))?(M||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(s,L,w),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(s,L,w)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=L),u.props=s,u.state=L,u.context=w,s=q):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&k===e.memoizedState||(t.flags|=1024),s=!1)}return u=s,er(e,t),s=(t.flags&128)!==0,u||s?(u=t.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&s?(t.child=_a(t,e.child,null,c),t.child=_a(t,null,n,c)):ot(e,t,n,c),t.memoizedState=u.state,e=t.child):e=jn(e,t,c),e}function ox(e,t,n,s){return wa(),t.flags|=256,ot(e,t,n,s),t.child}var Nu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tu(e){return{baseLanes:e,cachePool:Pm()}}function Au(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Mt),e}function cx(e,t,n){var s=t.pendingProps,c=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),m&&(c=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(c?Qn(t):Kn(),(e=Be)?(e=gg(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hn!==null?{id:sn,overflow:ln}:null,retryLane:536870912,hydrationErrors:null},n=Gm(e),n.return=t,t.child=n,it=t,Be=null)):e=null,e===null)throw Gn(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var b=s.children;return s=s.fallback,c?(Kn(),c=t.mode,b=tr({mode:"hidden",children:b},c),s=Sa(s,c,n,null),b.return=t,s.return=t,b.sibling=s,t.child=b,s=t.child,s.memoizedState=Tu(n),s.childLanes=Au(e,m,n),t.memoizedState=Nu,bl(null,s)):(Qn(t),Cu(t,b))}var w=e.memoizedState;if(w!==null&&(b=w.dehydrated,b!==null)){if(u)t.flags&256?(Qn(t),t.flags&=-257,t=Eu(e,t,n)):t.memoizedState!==null?(Kn(),t.child=e.child,t.flags|=128,t=null):(Kn(),b=s.fallback,c=t.mode,s=tr({mode:"visible",children:s.children},c),b=Sa(b,c,n,null),b.flags|=2,s.return=t,b.return=t,s.sibling=b,t.child=s,_a(t,e.child,null,n),s=t.child,s.memoizedState=Tu(n),s.childLanes=Au(e,m,n),t.memoizedState=Nu,t=bl(null,s));else if(Qn(t),cf(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var M=m.dgst;m=M,s=Error(o(419)),s.stack="",s.digest=m,rl({value:s,source:null,stack:null}),t=Eu(e,t,n)}else if($e||ls(e,t,n,!1),m=(n&e.childLanes)!==0,$e||m){if(m=Ve,m!==null&&(s=$0(m,n),s!==0&&s!==w.retryLane))throw w.retryLane=s,ja(e,s),vt(m,e,s),Su;of(b)||ur(),t=Eu(e,t,n)}else of(b)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Be=Xt(b.nextSibling),it=t,we=!0,qn=null,Gt=!1,e!==null&&Fm(t,e),t=Cu(t,s.children),t.flags|=4096);return t}return c?(Kn(),b=s.fallback,c=t.mode,w=e.child,M=w.sibling,s=pn(w,{mode:"hidden",children:s.children}),s.subtreeFlags=w.subtreeFlags&65011712,M!==null?b=pn(M,b):(b=Sa(b,c,n,null),b.flags|=2),b.return=t,s.return=t,s.sibling=b,t.child=s,bl(null,s),s=t.child,b=e.child.memoizedState,b===null?b=Tu(n):(c=b.cachePool,c!==null?(w=Qe._currentValue,c=c.parent!==w?{parent:w,pool:w}:c):c=Pm(),b={baseLanes:b.baseLanes|n,cachePool:c}),s.memoizedState=b,s.childLanes=Au(e,m,n),t.memoizedState=Nu,bl(e.child,s)):(Qn(t),n=e.child,e=n.sibling,n=pn(n,{mode:"visible",children:s.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 Cu(e,t){return t=tr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tr(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Eu(e,t,n){return _a(t,e.child,null,n),e=Cu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ux(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Yc(e.return,t,n)}function _u(e,t,n,s,c,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:c,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=n,m.tailMode=c,m.treeForkCount=u)}function fx(e,t,n){var s=t.pendingProps,c=s.revealOrder,u=s.tail;s=s.children;var m=Xe.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,J(Xe,m),ot(e,t,s,n),s=we?il:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ux(e,n,t);else if(e.tag===19)ux(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(c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Yi(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),_u(t,!1,c,n,u,s);break;case"backwards":case"unstable_legacy-backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Yi(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}_u(t,!0,n,null,u,s);break;case"together":_u(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function jn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Pn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ls(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(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 Du(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Oi(e)))}function r3(e,t,n){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),Yn(t,Qe,e.memoizedState.cache),wa();break;case 27:case 5:at(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:Yn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,tu(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(Qn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?cx(e,t,n):(Qn(t),e=jn(e,t,n),e!==null?e.sibling:null);Qn(t);break;case 19:var c=(e.flags&128)!==0;if(s=(n&t.childLanes)!==0,s||(ls(e,t,n,!1),s=(n&t.childLanes)!==0),c){if(s)return fx(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),J(Xe,Xe.current),s)break;return null;case 22:return t.lanes=0,ax(e,t,n,t.pendingProps);case 24:Yn(t,Qe,e.memoizedState.cache)}return jn(e,t,n)}function dx(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!Du(e,n)&&(t.flags&128)===0)return $e=!1,r3(e,t,n);$e=(e.flags&131072)!==0}else $e=!1,we&&(t.flags&1048576)!==0&&Xm(t,il,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e=="function")Oc(e)?(s=Ma(e,s),t.tag=1,t=rx(null,t,e,s,n)):(t.tag=0,t=wu(null,t,e,s,n));else{if(e!=null){var c=e.$$typeof;if(c===U){t.tag=11,t=ex(null,t,e,s,n);break e}else if(c===$){t.tag=14,t=tx(null,t,e,s,n);break e}}throw t=fe(e)||e,Error(o(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,n);case 1:return s=t.type,c=Ma(s,t.pendingProps),rx(e,t,s,c,n);case 3:e:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error(o(387));s=t.pendingProps;var u=t.memoizedState;c=u.element,Jc(e,t),ml(t,s,null,n);var m=t.memoizedState;if(s=m.cache,Yn(t,Qe,s),s!==u.cache&&Xc(t,[Qe],n,!0),hl(),s=m.element,u.isDehydrated)if(u={element:s,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=ox(e,t,s,n);break e}else if(s!==c){c=Ut(Error(o(424)),t),rl(c),t=ox(e,t,s,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(Be=Xt(e.firstChild),it=t,we=!0,qn=null,Gt=!0,n=ap(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(wa(),s===c){t=jn(e,t,n);break e}ot(e,t,s,n)}t=t.child}return t;case 26:return er(e,t),e===null?(n=wg(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,s=gr(ne.current).createElement(n),s[lt]=t,s[mt]=e,ct(s,n,e),et(s),t.stateNode=s):t.memoizedState=wg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return at(t),e===null&&we&&(s=t.stateNode=vg(t.type,t.pendingProps,ne.current),it=t,Gt=!0,c=Be,na(t.type)?(uf=c,Be=Xt(s.firstChild)):Be=c),ot(e,t,t.pendingProps.children,n),er(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((c=s=Be)&&(s=B3(s,t.type,t.pendingProps,Gt),s!==null?(t.stateNode=s,it=t,Be=Xt(s.firstChild),Gt=!1,c=!0):c=!1),c||Gn(t)),at(t),c=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,s=u.children,sf(c,u)?s=null:m!==null&&sf(c,m)&&(t.flags|=32),t.memoizedState!==null&&(c=au(e,t,Wj,null,null,n),zl._currentValue=c),er(e,t),ot(e,t,s,n),t.child;case 6:return e===null&&we&&((e=n=Be)&&(n=L3(n,t.pendingProps,Gt),n!==null?(t.stateNode=n,it=t,Be=null,e=!0):e=!1),e||Gn(t)),null;case 13:return cx(e,t,n);case 4:return Me(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=_a(t,null,s,n):ot(e,t,s,n),t.child;case 11:return ex(e,t,t.type,t.pendingProps,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:return s=t.pendingProps,Yn(t,t.type,s.value),ot(e,t,s.children,n),t.child;case 9:return c=t.type._context,s=t.pendingProps.children,Ta(t),c=rt(c),s=s(c),t.flags|=1,ot(e,t,s,n),t.child;case 14:return tx(e,t,t.type,t.pendingProps,n);case 15:return nx(e,t,t.type,t.pendingProps,n);case 19:return fx(e,t,n);case 31:return i3(e,t,n);case 22:return ax(e,t,n,t.pendingProps);case 24:return Ta(t),s=rt(Qe),e===null?(c=Qc(),c===null&&(c=Ve,u=Fc(),c.pooledCache=u,u.refCount++,u!==null&&(c.pooledCacheLanes|=n),c=u),t.memoizedState={parent:s,cache:c},$c(t),Yn(t,Qe,c)):((e.lanes&n)!==0&&(Jc(e,t),ml(t,null,null,n),hl()),c=e.memoizedState,u=t.memoizedState,c.parent!==s?(c={parent:s,cache:s},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Yn(t,Qe,s)):(s=u.cache,Yn(t,Qe,s),s!==c.cache&&Xc(t,[Qe],n,!0))),ot(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Sn(e){e.flags|=4}function Mu(e,t,n,s,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Ux())e.flags|=8192;else throw Ea=Ui,Kc}else e.flags&=-16777217}function hx(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Eg(t))if(Ux())e.flags|=8192;else throw Ea=Ui,Kc}function nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Z0():536870912,e.lanes|=t,gs|=t)}function vl(e,t){if(!we)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 s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags&65011712,s|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,s|=c.subtreeFlags,s|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function o3(e,t,n){var s=t.pendingProps;switch(Uc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return n=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),yn(Qe),ye(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ss(t)?Sn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qc())),Le(t),null;case 26:var c=t.type,u=t.memoizedState;return e===null?(Sn(t),u!==null?(Le(t),hx(t,u)):(Le(t),Mu(t,c,null,s,n))):u?u!==e.memoizedState?(Sn(t),Le(t),hx(t,u)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&Sn(t),Le(t),Mu(t,c,e,s,n)),null;case 27:if(Vn(t),n=ne.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Sn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Le(t),null}e=z.current,ss(t)?Zm(t):(e=vg(c,s,n),t.stateNode=e,Sn(t))}return Le(t),null;case 5:if(Vn(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&Sn(t);else{if(!s){if(t.stateNode===null)throw Error(o(166));return Le(t),null}if(u=z.current,ss(t))Zm(t);else{var m=gr(ne.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?u.multiple=!0:s.size&&(u.size=s.size);break;default:u=typeof s.is=="string"?m.createElement(c,{is:s.is}):m.createElement(c)}}u[lt]=t,u[mt]=s;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.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=u;e:switch(ct(u,c,s),c){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Sn(t)}}return Le(t),Mu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&Sn(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(o(166));if(e=ne.current,ss(t)){if(e=t.stateNode,n=t.memoizedProps,s=null,c=it,c!==null)switch(c.tag){case 27:case 5:s=c.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||cg(e.nodeValue,n)),e||Gn(t,!0)}else e=gr(e).createTextNode(s),e[lt]=t,t.stateNode=e}return Le(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(s=ss(t),n!==null){if(e===null){if(!s)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[lt]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else n=qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(_t(t),t):(_t(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Le(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ss(t),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[lt]=t}else wa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),c=!1}else c=qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(_t(t),t):(_t(t),null)}return _t(t),(t.flags&128)!==0?(t.lanes=n,t):(n=s!==null,e=e!==null&&e.memoizedState!==null,n&&(s=t.child,c=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(c=s.alternate.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==c&&(s.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),nr(t,t.updateQueue),Le(t),null);case 4:return ye(),e===null&&Iu(t.stateNode.containerInfo),Le(t),null;case 10:return yn(t.type),Le(t),null;case 19:if(R(Xe),s=t.memoizedState,s===null)return Le(t),null;if(c=(t.flags&128)!==0,u=s.rendering,u===null)if(c)vl(s,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Yi(e),u!==null){for(t.flags|=128,vl(s,!1),e=u.updateQueue,t.updateQueue=e,nr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qm(n,e),n=n.sibling;return J(Xe,Xe.current&1|2),we&&xn(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&wt()>rr&&(t.flags|=128,c=!0,vl(s,!1),t.lanes=4194304)}else{if(!c)if(e=Yi(u),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,nr(t,e),vl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!we)return Le(t),null}else 2*wt()-s.renderingStartTime>rr&&n!==536870912&&(t.flags|=128,c=!0,vl(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(e=s.last,e!==null?e.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=wt(),e.sibling=null,n=Xe.current,J(Xe,c?n&1|2:n&1),we&&xn(t,s.treeForkCount),e):(Le(t),null);case 22:case 23:return _t(t),eu(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(n&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),n=t.updateQueue,n!==null&&nr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==n&&(t.flags|=2048),e!==null&&R(Aa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),yn(Qe),Le(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function c3(e,t){switch(Uc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yn(Qe),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Vn(t),null;case 31:if(t.memoizedState!==null){if(_t(t),t.alternate===null)throw Error(o(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return R(Xe),null;case 4:return ye(),null;case 10:return yn(t.type),null;case 22:case 23:return _t(t),eu(),e!==null&&R(Aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return yn(Qe),null;case 25:return null;default:return null}}function mx(e,t){switch(Uc(t),t.tag){case 3:yn(Qe),ye();break;case 26:case 27:case 5:Vn(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&_t(t);break;case 13:_t(t);break;case 19:R(Xe);break;case 10:yn(t.type);break;case 22:case 23:_t(t),eu(),e!==null&&R(Aa);break;case 24:yn(Qe)}}function jl(e,t){try{var n=t.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var c=s.next;n=c;do{if((n.tag&e)===e){s=void 0;var u=n.create,m=n.inst;s=u(),m.destroy=s}n=n.next}while(n!==c)}}catch(b){De(t,t.return,b)}}function $n(e,t,n){try{var s=t.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var u=c.next;s=u;do{if((s.tag&e)===e){var m=s.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,c=t;var w=n,M=b;try{M()}catch(q){De(c,w,q)}}}s=s.next}while(s!==u)}}catch(q){De(t,t.return,q)}}function px(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{lp(t,n)}catch(s){De(e,e.return,s)}}}function xx(e,t,n){n.props=Ma(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(s){De(e,t,s)}}function Sl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof n=="function"?e.refCleanup=n(s):n.current=s}}catch(c){De(e,t,c)}}function rn(e,t){var n=e.ref,s=e.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(c){De(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){De(e,t,c)}else n.current=null}function gx(e){var t=e.type,n=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(c){De(e,e.return,c)}}function ku(e,t,n){try{var s=e.stateNode;M3(s,e.type,n,t),s[mt]=t}catch(c){De(e,e.return,c)}}function yx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&na(e.type)||e.tag===4}function Ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||yx(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&&na(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 zu(e,t,n){var s=e.tag;if(s===5||s===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=hn));else if(s!==4&&(s===27&&na(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(zu(e,t,n),e=e.sibling;e!==null;)zu(e,t,n),e=e.sibling}function ar(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(s===27&&na(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ar(e,t,n),e=e.sibling;e!==null;)ar(e,t,n),e=e.sibling}function bx(e){var t=e.stateNode,n=e.memoizedProps;try{for(var s=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ct(t,s,n),t[lt]=e,t[mt]=n}catch(u){De(e,e.return,u)}}var wn=!1,Je=!1,Ou=!1,vx=typeof WeakSet=="function"?WeakSet:Set,tt=null;function u3(e,t){if(e=e.containerInfo,nf=Nr,e=km(e),Ec(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var c=s.anchorOffset,u=s.focusNode;s=s.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,b=-1,w=-1,M=0,q=0,Q=e,k=null;t:for(;;){for(var L;Q!==n||c!==0&&Q.nodeType!==3||(b=m+c),Q!==u||s!==0&&Q.nodeType!==3||(w=m+s),Q.nodeType===3&&(m+=Q.nodeValue.length),(L=Q.firstChild)!==null;)k=Q,Q=L;for(;;){if(Q===e)break t;if(k===n&&++M===c&&(b=m),k===u&&++q===s&&(w=m),(L=Q.nextSibling)!==null)break;Q=k,k=Q.parentNode}Q=L}n=b===-1||w===-1?null:{start:b,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(af={focusedElem:e,selectionRange:n},Nr=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,u=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++)c=e[n],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,c=u.memoizedProps,u=u.memoizedState,s=n.stateNode;try{var le=Ma(n.type,c);e=s.getSnapshotBeforeUpdate(le,u),s.__reactInternalSnapshotBeforeUpdate=e}catch(de){De(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)rf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rf(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function jx(e,t,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Tn(e,n),s&4&&jl(5,n);break;case 1:if(Tn(e,n),s&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){De(n,n.return,m)}else{var c=Ma(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){De(n,n.return,m)}}s&64&&px(n),s&512&&Sl(n,n.return);break;case 3:if(Tn(e,n),s&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{lp(e,t)}catch(m){De(n,n.return,m)}}break;case 27:t===null&&s&4&&bx(n);case 26:case 5:Tn(e,n),t===null&&s&4&&gx(n),s&512&&Sl(n,n.return);break;case 12:Tn(e,n);break;case 31:Tn(e,n),s&4&&Nx(e,n);break;case 13:Tn(e,n),s&4&&Tx(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=b3.bind(null,n),U3(e,n))));break;case 22:if(s=n.memoizedState!==null||wn,!s){t=t!==null&&t.memoizedState!==null||Je,c=wn;var u=Je;wn=s,(Je=t)&&!u?An(e,n,(n.subtreeFlags&8772)!==0):Tn(e,n),wn=c,Je=u}break;case 30:break;default:Tn(e,n)}}function Sx(e){var t=e.alternate;t!==null&&(e.alternate=null,Sx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fc(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 Ue=null,xt=!1;function Nn(e,t,n){for(n=n.child;n!==null;)wx(e,t,n),n=n.sibling}function wx(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Zs,n)}catch{}switch(n.tag){case 26:Je||rn(n,t),Nn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Je||rn(n,t);var s=Ue,c=xt;na(n.type)&&(Ue=n.stateNode,xt=!1),Nn(e,t,n),Ml(n.stateNode),Ue=s,xt=c;break;case 5:Je||rn(n,t);case 6:if(s=Ue,c=xt,Ue=null,Nn(e,t,n),Ue=s,xt=c,Ue!==null)if(xt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode)}catch(u){De(n,t,u)}else try{Ue.removeChild(n.stateNode)}catch(u){De(n,t,u)}break;case 18:Ue!==null&&(xt?(e=Ue,pg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ts(e)):pg(Ue,n.stateNode));break;case 4:s=Ue,c=xt,Ue=n.stateNode.containerInfo,xt=!0,Nn(e,t,n),Ue=s,xt=c;break;case 0:case 11:case 14:case 15:$n(2,n,t),Je||$n(4,n,t),Nn(e,t,n);break;case 1:Je||(rn(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"&&xx(n,t,s)),Nn(e,t,n);break;case 21:Nn(e,t,n);break;case 22:Je=(s=Je)||n.memoizedState!==null,Nn(e,t,n),Je=s;break;default:Nn(e,t,n)}}function Nx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ts(e)}catch(n){De(t,t.return,n)}}}function Tx(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ts(e)}catch(n){De(t,t.return,n)}}function f3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new vx),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new vx),t;default:throw Error(o(435,e.tag))}}function sr(e,t){var n=f3(e);t.forEach(function(s){if(!n.has(s)){n.add(s);var c=v3.bind(null,e,s);s.then(c,c)}})}function gt(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var c=n[s],u=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(na(b.type)){Ue=b.stateNode,xt=!1;break e}break;case 5:Ue=b.stateNode,xt=!1;break e;case 3:case 4:Ue=b.stateNode.containerInfo,xt=!0;break e}b=b.return}if(Ue===null)throw Error(o(160));wx(u,m,c),Ue=null,xt=!1,u=c.alternate,u!==null&&(u.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ax(t,e),t=t.sibling}var Pt=null;function Ax(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),yt(e),s&4&&($n(3,e,e.return),jl(3,e),$n(5,e,e.return));break;case 1:gt(t,e),yt(e),s&512&&(Je||n===null||rn(n,n.return)),s&64&&wn&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?s:n.concat(s))));break;case 26:var c=Pt;if(gt(t,e),yt(e),s&512&&(Je||n===null||rn(n,n.return)),s&4){var u=n!==null?n.memoizedState:null;if(s=e.memoizedState,n===null)if(s===null)if(e.stateNode===null){e:{s=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(s){case"title":u=c.getElementsByTagName("title")[0],(!u||u[$s]||u[lt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=c.createElement(s),c.head.insertBefore(u,c.querySelector("head > title"))),ct(u,s,n),u[lt]=e,et(u),s=u;break e;case"link":var m=Ag("link","href",c).get(s+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(u=m[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}u=c.createElement(s),ct(u,s,n),c.head.appendChild(u);break;case"meta":if(m=Ag("meta","content",c).get(s+(n.content||""))){for(b=0;b<m.length;b++)if(u=m[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}u=c.createElement(s),ct(u,s,n),c.head.appendChild(u);break;default:throw Error(o(468,s))}u[lt]=e,et(u),s=u}e.stateNode=s}else Cg(c,e.type,e.stateNode);else e.stateNode=Tg(c,s,e.memoizedProps);else u!==s?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,s===null?Cg(c,e.type,e.stateNode):Tg(c,s,e.memoizedProps)):s===null&&e.stateNode!==null&&ku(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),yt(e),s&512&&(Je||n===null||rn(n,n.return)),n!==null&&s&4&&ku(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),yt(e),s&512&&(Je||n===null||rn(n,n.return)),e.flags&32){c=e.stateNode;try{Ka(c,"")}catch(le){De(e,e.return,le)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,ku(e,c,n!==null?n.memoizedProps:c)),s&1024&&(Ou=!0);break;case 6:if(gt(t,e),yt(e),s&4){if(e.stateNode===null)throw Error(o(162));s=e.memoizedProps,n=e.stateNode;try{n.nodeValue=s}catch(le){De(e,e.return,le)}}break;case 3:if(vr=null,c=Pt,Pt=yr(t.containerInfo),gt(t,e),Pt=c,yt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Ts(t.containerInfo)}catch(le){De(e,e.return,le)}Ou&&(Ou=!1,Cx(e));break;case 4:s=Pt,Pt=yr(e.stateNode.containerInfo),gt(t,e),yt(e),Pt=s;break;case 12:gt(t,e),yt(e);break;case 31:gt(t,e),yt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,sr(e,s)));break;case 13:gt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ir=wt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,sr(e,s)));break;case 22:c=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,M=wn,q=Je;if(wn=M||c,Je=q||w,gt(t,e),Je=q,wn=M,yt(e),s&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||w||wn||Je||ka(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(u=w.stateNode,c)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=w.stateNode;var Q=w.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;b.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(le){De(w,w.return,le)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=c?"":w.memoizedProps}catch(le){De(w,w.return,le)}}}else if(t.tag===18){if(n===null){w=t;try{var L=w.stateNode;c?xg(L,!0):xg(w.stateNode,!1)}catch(le){De(w,w.return,le)}}}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}s&4&&(s=e.updateQueue,s!==null&&(n=s.retryQueue,n!==null&&(s.retryQueue=null,sr(e,n))));break;case 19:gt(t,e),yt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,sr(e,s)));break;case 30:break;case 21:break;default:gt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var n,s=e.return;s!==null;){if(yx(s)){n=s;break}s=s.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,u=Ru(e);ar(e,u,c);break;case 5:var m=n.stateNode;n.flags&32&&(Ka(m,""),n.flags&=-33);var b=Ru(e);ar(e,b,m);break;case 3:case 4:var w=n.stateNode.containerInfo,M=Ru(e);zu(e,M,w);break;default:throw Error(o(161))}}catch(q){De(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cx(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jx(e,t.alternate,t),t=t.sibling}function ka(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),ka(t);break;case 1:rn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&xx(t,t.return,n),ka(t);break;case 27:Ml(t.stateNode);case 26:case 5:rn(t,t.return),ka(t);break;case 22:t.memoizedState===null&&ka(t);break;case 30:ka(t);break;default:ka(t)}e=e.sibling}}function An(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,c=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:An(c,u,n),jl(4,u);break;case 1:if(An(c,u,n),s=u,c=s.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(M){De(s,s.return,M)}if(s=u,c=s.updateQueue,c!==null){var b=s.stateNode;try{var w=c.shared.hiddenCallbacks;if(w!==null)for(c.shared.hiddenCallbacks=null,c=0;c<w.length;c++)sp(w[c],b)}catch(M){De(s,s.return,M)}}n&&m&64&&px(u),Sl(u,u.return);break;case 27:bx(u);case 26:case 5:An(c,u,n),n&&s===null&&m&4&&gx(u),Sl(u,u.return);break;case 12:An(c,u,n);break;case 31:An(c,u,n),n&&m&4&&Nx(c,u);break;case 13:An(c,u,n),n&&m&4&&Tx(c,u);break;case 22:u.memoizedState===null&&An(c,u,n),Sl(u,u.return);break;case 30:break;default:An(c,u,n)}t=t.sibling}}function Vu(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&&ol(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ol(e))}function Wt(e,t,n,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ex(e,t,n,s),t=t.sibling}function Ex(e,t,n,s){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,n,s),c&2048&&jl(9,t);break;case 1:Wt(e,t,n,s);break;case 3:Wt(e,t,n,s),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ol(e)));break;case 12:if(c&2048){Wt(e,t,n,s),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,b=u.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){De(t,t.return,w)}}else Wt(e,t,n,s);break;case 31:Wt(e,t,n,s);break;case 13:Wt(e,t,n,s);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?Wt(e,t,n,s):wl(e,t):u._visibility&2?Wt(e,t,n,s):(u._visibility|=2,ms(e,t,n,s,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Vu(m,t);break;case 24:Wt(e,t,n,s),c&2048&&Bu(t.alternate,t);break;default:Wt(e,t,n,s)}}function ms(e,t,n,s,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,b=n,w=s,M=m.flags;switch(m.tag){case 0:case 11:case 15:ms(u,m,b,w,c),jl(8,m);break;case 23:break;case 22:var q=m.stateNode;m.memoizedState!==null?q._visibility&2?ms(u,m,b,w,c):wl(u,m):(q._visibility|=2,ms(u,m,b,w,c)),c&&M&2048&&Vu(m.alternate,m);break;case 24:ms(u,m,b,w,c),c&&M&2048&&Bu(m.alternate,m);break;default:ms(u,m,b,w,c)}t=t.sibling}}function wl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,s=t,c=s.flags;switch(s.tag){case 22:wl(n,s),c&2048&&Vu(s.alternate,s);break;case 24:wl(n,s),c&2048&&Bu(s.alternate,s);break;default:wl(n,s)}t=t.sibling}}var Nl=8192;function ps(e,t,n){if(e.subtreeFlags&Nl)for(e=e.child;e!==null;)_x(e,t,n),e=e.sibling}function _x(e,t,n){switch(e.tag){case 26:ps(e,t,n),e.flags&Nl&&e.memoizedState!==null&&P3(n,Pt,e.memoizedState,e.memoizedProps);break;case 5:ps(e,t,n);break;case 3:case 4:var s=Pt;Pt=yr(e.stateNode.containerInfo),ps(e,t,n),Pt=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Nl,Nl=16777216,ps(e,t,n),Nl=s):ps(e,t,n));break;default:ps(e,t,n)}}function Dx(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 Tl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];tt=s,kx(s,e)}Dx(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mx(e),e=e.sibling}function Mx(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&$n(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lr(e)):Tl(e);break;default:Tl(e)}}function lr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var s=t[n];tt=s,kx(s,e)}Dx(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$n(8,t,t.return),lr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,lr(t));break;default:lr(t)}e=e.sibling}}function kx(e,t){for(;tt!==null;){var n=tt;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 s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ol(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,tt=s;else e:for(n=e;tt!==null;){s=tt;var c=s.sibling,u=s.return;if(Sx(s),s===n){tt=null;break e}if(c!==null){c.return=u,tt=c;break e}tt=u}}}var d3={getCacheForType:function(e){var t=rt(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rt(Qe).controller.signal}},h3=typeof WeakMap=="function"?WeakMap:Map,Ae=0,Ve=null,be=null,je=0,_e=0,Dt=null,Jn=!1,xs=!1,Lu=!1,Cn=0,Ye=0,Pn=0,Ra=0,Uu=0,Mt=0,gs=0,Al=null,bt=null,Hu=!1,ir=0,Rx=0,rr=1/0,or=null,Wn=null,Ie=0,In=null,ys=null,En=0,qu=0,Gu=null,zx=null,Cl=0,Yu=null;function kt(){return(Ae&2)!==0&&je!==0?je&-je:_.T!==null?$u():J0()}function Ox(){if(Mt===0)if((je&536870912)===0||we){var e=xi;xi<<=1,(xi&3932160)===0&&(xi=262144),Mt=e}else Mt=536870912;return e=Et.current,e!==null&&(e.flags|=32),Mt}function vt(e,t,n){(e===Ve&&(_e===2||_e===9)||e.cancelPendingCommit!==null)&&(bs(e,0),ea(e,je,Mt,!1)),Ks(e,n),((Ae&2)===0||e!==Ve)&&(e===Ve&&((Ae&2)===0&&(Ra|=n),Ye===4&&ea(e,je,Mt,!1)),on(e))}function Vx(e,t,n){if((Ae&6)!==0)throw Error(o(327));var s=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Qs(e,t),c=s?x3(e,t):Fu(e,t,!0),u=s;do{if(c===0){xs&&!s&&ea(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!m3(n)){c=Fu(e,t,!1),u=!1;continue}if(c===2){if(u=t,e.errorRecoveryDisabledLanes&u)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;c=Al;var w=b.current.memoizedState.isDehydrated;if(w&&(bs(b,m).flags|=256),m=Fu(b,m,!1),m!==2){if(Lu&&!w){b.errorRecoveryDisabledLanes|=u,Ra|=u,c=4;break e}u=bt,bt=c,u!==null&&(bt===null?bt=u:bt.push.apply(bt,u))}c=m}if(u=!1,c!==2)continue}}if(c===1){bs(e,0),ea(e,t,0,!0);break}e:{switch(s=e,u=c,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ea(s,t,Mt,!Jn);break e;case 2:bt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=ir+300-wt(),10<c)){if(ea(s,t,Mt,!Jn),yi(s,0,!0)!==0)break e;En=t,s.timeoutHandle=hg(Bx.bind(null,s,n,bt,or,Hu,t,Mt,Ra,gs,Jn,u,"Throttled",-0,0),c);break e}Bx(s,n,bt,or,Hu,t,Mt,Ra,gs,Jn,u,null,-0,0)}}break}while(!0);on(e)}function Bx(e,t,n,s,c,u,m,b,w,M,q,Q,k,L){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:hn},_x(t,u,Q);var le=(u&62914560)===u?ir-wt():(u&4194048)===u?Rx-wt():0;if(le=W3(Q,le),le!==null){En=u,e.cancelPendingCommit=le(Fx.bind(null,e,t,u,n,s,c,m,b,w,q,Q,null,k,L)),ea(e,u,m,!M);return}}Fx(e,t,u,n,s,c,m,b,w)}function m3(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 s=0;s<n.length;s++){var c=n[s],u=c.getSnapshot;c=c.value;try{if(!At(u(),c))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 ea(e,t,n,s){t&=~Uu,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var c=t;0<c;){var u=31-Tt(c),m=1<<u;s[u]=-1,c&=~m}n!==0&&Q0(e,n,t)}function cr(){return(Ae&6)===0?(El(0),!1):!0}function Xu(){if(be!==null){if(_e===0)var e=be.return;else e=be,gn=Na=null,iu(e),cs=null,ul=0,e=be;for(;e!==null;)mx(e.alternate,e),e=e.return;be=null}}function bs(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,z3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),En=0,Xu(),Ve=e,be=n=pn(e.current,null),je=t,_e=0,Dt=null,Jn=!1,xs=Qs(e,t),Lu=!1,gs=Mt=Uu=Ra=Pn=Ye=0,bt=Al=null,Hu=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var c=31-Tt(s),u=1<<c;t|=e[c],s&=~u}return Cn=t,Di(),n}function Lx(e,t){xe=null,_.H=yl,t===os||t===Li?(t=ep(),_e=3):t===Kc?(t=ep(),_e=4):_e=t===Su?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dt=t,be===null&&(Ye=1,Wi(e,Ut(t,e.current)))}function Ux(){var e=Et.current;return e===null?!0:(je&4194048)===je?Yt===null:(je&62914560)===je||(je&536870912)!==0?e===Yt:!1}function Hx(){var e=_.H;return _.H=yl,e===null?yl:e}function qx(){var e=_.A;return _.A=d3,e}function ur(){Ye=4,Jn||(je&4194048)!==je&&Et.current!==null||(xs=!0),(Pn&134217727)===0&&(Ra&134217727)===0||Ve===null||ea(Ve,je,Mt,!1)}function Fu(e,t,n){var s=Ae;Ae|=2;var c=Hx(),u=qx();(Ve!==e||je!==t)&&(or=null,bs(e,t)),t=!1;var m=Ye;e:do try{if(_e!==0&&be!==null){var b=be,w=Dt;switch(_e){case 8:Xu(),m=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var M=_e;if(_e=0,Dt=null,vs(e,b,w,M),n&&xs){m=0;break e}break;default:M=_e,_e=0,Dt=null,vs(e,b,w,M)}}p3(),m=Ye;break}catch(q){Lx(e,q)}while(!0);return t&&e.shellSuspendCounter++,gn=Na=null,Ae=s,_.H=c,_.A=u,be===null&&(Ve=null,je=0,Di()),m}function p3(){for(;be!==null;)Gx(be)}function x3(e,t){var n=Ae;Ae|=2;var s=Hx(),c=qx();Ve!==e||je!==t?(or=null,rr=wt()+500,bs(e,t)):xs=Qs(e,t);e:do try{if(_e!==0&&be!==null){t=be;var u=Dt;t:switch(_e){case 1:_e=0,Dt=null,vs(e,t,u,1);break;case 2:case 9:if(Wm(u)){_e=0,Dt=null,Yx(t);break}t=function(){_e!==2&&_e!==9||Ve!==e||(_e=7),on(e)},u.then(t,t);break e;case 3:_e=7;break e;case 4:_e=5;break e;case 7:Wm(u)?(_e=0,Dt=null,Yx(t)):(_e=0,Dt=null,vs(e,t,u,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var b=be;if(m?Eg(m):b.stateNode.complete){_e=0,Dt=null;var w=b.sibling;if(w!==null)be=w;else{var M=b.return;M!==null?(be=M,fr(M)):be=null}break t}}_e=0,Dt=null,vs(e,t,u,5);break;case 6:_e=0,Dt=null,vs(e,t,u,6);break;case 8:Xu(),Ye=6;break e;default:throw Error(o(462))}}g3();break}catch(q){Lx(e,q)}while(!0);return gn=Na=null,_.H=s,_.A=c,Ae=n,be!==null?0:(Ve=null,je=0,Di(),Ye)}function g3(){for(;be!==null&&!H5();)Gx(be)}function Gx(e){var t=dx(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?fr(e):be=t}function Yx(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ix(n,t,t.pendingProps,t.type,void 0,je);break;case 11:t=ix(n,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:iu(t);default:mx(n,t),t=be=qm(t,Cn),t=dx(n,t,Cn)}e.memoizedProps=e.pendingProps,t===null?fr(e):be=t}function vs(e,t,n,s){gn=Na=null,iu(t),cs=null,ul=0;var c=t.return;try{if(l3(e,c,t,n,je)){Ye=1,Wi(e,Ut(n,e.current)),be=null;return}}catch(u){if(c!==null)throw be=c,u;Ye=1,Wi(e,Ut(n,e.current)),be=null;return}t.flags&32768?(we||s===1?e=!0:xs||(je&536870912)!==0?e=!1:(Jn=e=!0,(s===2||s===9||s===3||s===6)&&(s=Et.current,s!==null&&s.tag===13&&(s.flags|=16384))),Xx(t,e)):fr(t)}function fr(e){var t=e;do{if((t.flags&32768)!==0){Xx(t,Jn);return}e=t.return;var n=o3(t.alternate,t,Cn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ye===0&&(Ye=5)}function Xx(e,t){do{var n=c3(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);Ye=6,be=null}function Fx(e,t,n,s,c,u,m,b,w){e.cancelPendingCommit=null;do dr();while(Ie!==0);if((Ae&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Rc,J5(e,n,u,m,b,w),e===Ve&&(be=Ve=null,je=0),ys=t,In=e,En=n,qu=u,Gu=c,zx=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,j3(mi,function(){return Jx(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=_.T,_.T=null,c=F.p,F.p=2,m=Ae,Ae|=4;try{u3(e,t,n)}finally{Ae=m,F.p=c,_.T=s}}Ie=1,Zx(),Qx(),Kx()}}function Zx(){if(Ie===1){Ie=0;var e=In,t=ys,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=_.T,_.T=null;var s=F.p;F.p=2;var c=Ae;Ae|=4;try{Ax(t,e);var u=af,m=km(e.containerInfo),b=u.focusedElem,w=u.selectionRange;if(m!==b&&b&&b.ownerDocument&&Mm(b.ownerDocument.documentElement,b)){if(w!==null&&Ec(b)){var M=w.start,q=w.end;if(q===void 0&&(q=M),"selectionStart"in b)b.selectionStart=M,b.selectionEnd=Math.min(q,b.value.length);else{var Q=b.ownerDocument||document,k=Q&&Q.defaultView||window;if(k.getSelection){var L=k.getSelection(),le=b.textContent.length,de=Math.min(w.start,le),ze=w.end===void 0?de:Math.min(w.end,le);!L.extend&&de>ze&&(m=ze,ze=de,de=m);var C=Dm(b,de),N=Dm(b,ze);if(C&&N&&(L.rangeCount!==1||L.anchorNode!==C.node||L.anchorOffset!==C.offset||L.focusNode!==N.node||L.focusOffset!==N.offset)){var D=Q.createRange();D.setStart(C.node,C.offset),L.removeAllRanges(),de>ze?(L.addRange(D),L.extend(N.node,N.offset)):(D.setEnd(N.node,N.offset),L.addRange(D))}}}}for(Q=[],L=b;L=L.parentNode;)L.nodeType===1&&Q.push({element:L,left:L.scrollLeft,top:L.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}}Nr=!!nf,af=nf=null}finally{Ae=c,F.p=s,_.T=n}}e.current=t,Ie=2}}function Qx(){if(Ie===2){Ie=0;var e=In,t=ys,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=_.T,_.T=null;var s=F.p;F.p=2;var c=Ae;Ae|=4;try{jx(e,t.alternate,t)}finally{Ae=c,F.p=s,_.T=n}}Ie=3}}function Kx(){if(Ie===4||Ie===3){Ie=0,q5();var e=In,t=ys,n=En,s=zx;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ie=5:(Ie=0,ys=In=null,$x(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Wn=null),cc(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Zs,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=_.T,c=F.p,F.p=2,_.T=null;try{for(var u=e.onRecoverableError,m=0;m<s.length;m++){var b=s[m];u(b.value,{componentStack:b.stack})}}finally{_.T=t,F.p=c}}(En&3)!==0&&dr(),on(e),c=e.pendingLanes,(n&261930)!==0&&(c&42)!==0?e===Yu?Cl++:(Cl=0,Yu=e):Cl=0,El(0)}}function $x(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ol(t)))}function dr(){return Zx(),Qx(),Kx(),Jx()}function Jx(){if(Ie!==5)return!1;var e=In,t=qu;qu=0;var n=cc(En),s=_.T,c=F.p;try{F.p=32>n?32:n,_.T=null,n=Gu,Gu=null;var u=In,m=En;if(Ie=0,ys=In=null,En=0,(Ae&6)!==0)throw Error(o(331));var b=Ae;if(Ae|=4,Mx(u.current),Ex(u,u.current,m,n),Ae=b,El(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Zs,u)}catch{}return!0}finally{F.p=c,_.T=s,$x(e,t)}}function Px(e,t,n){t=Ut(n,t),t=ju(e.stateNode,t,2),e=Zn(e,t,2),e!==null&&(Ks(e,2),on(e))}function De(e,t,n){if(e.tag===3)Px(e,e,n);else for(;t!==null;){if(t.tag===3){Px(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Wn===null||!Wn.has(s))){e=Ut(n,e),n=Wp(2),s=Zn(t,n,2),s!==null&&(Ip(n,s,t,e),Ks(s,2),on(s));break}}t=t.return}}function Zu(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new h3;var c=new Set;s.set(t,c)}else c=s.get(t),c===void 0&&(c=new Set,s.set(t,c));c.has(n)||(Lu=!0,c.add(n),e=y3.bind(null,e,t,n),t.then(e,e))}function y3(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ve===e&&(je&n)===n&&(Ye===4||Ye===3&&(je&62914560)===je&&300>wt()-ir?(Ae&2)===0&&bs(e,0):Uu|=n,gs===je&&(gs=0)),on(e)}function Wx(e,t){t===0&&(t=Z0()),e=ja(e,t),e!==null&&(Ks(e,t),on(e))}function b3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Wx(e,n)}function v3(e,t){var n=0;switch(e.tag){case 31:case 13:var s=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(o(314))}s!==null&&s.delete(t),Wx(e,n)}function j3(e,t){return lc(e,t)}var hr=null,js=null,Qu=!1,mr=!1,Ku=!1,ta=0;function on(e){e!==js&&e.next===null&&(js===null?hr=js=e:js=js.next=e),mr=!0,Qu||(Qu=!0,w3())}function El(e,t){if(!Ku&&mr){Ku=!0;do for(var n=!1,s=hr;s!==null;){if(e!==0){var c=s.pendingLanes;if(c===0)var u=0;else{var m=s.suspendedLanes,b=s.pingedLanes;u=(1<<31-Tt(42|e)+1)-1,u&=c&~(m&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,ng(s,u))}else u=je,u=yi(s,s===Ve?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(u&3)===0||Qs(s,u)||(n=!0,ng(s,u));s=s.next}while(n);Ku=!1}}function S3(){Ix()}function Ix(){mr=Qu=!1;var e=0;ta!==0&&R3()&&(e=ta);for(var t=wt(),n=null,s=hr;s!==null;){var c=s.next,u=eg(s,t);u===0?(s.next=null,n===null?hr=c:n.next=c,c===null&&(js=n)):(n=s,(e!==0||(u&3)!==0)&&(mr=!0)),s=c}Ie!==0&&Ie!==5||El(e),ta!==0&&(ta=0)}function eg(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,c=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-Tt(u),b=1<<m,w=c[m];w===-1?((b&n)===0||(b&s)!==0)&&(c[m]=$5(b,t)):w<=t&&(e.expiredLanes|=b),u&=~b}if(t=Ve,n=je,n=yi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,n===0||e===t&&(_e===2||_e===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&ic(s),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Qs(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(s!==null&&ic(s),cc(n)){case 2:case 8:n=X0;break;case 32:n=mi;break;case 268435456:n=F0;break;default:n=mi}return s=tg.bind(null,e),n=lc(n,s),e.callbackPriority=t,e.callbackNode=n,t}return s!==null&&s!==null&&ic(s),e.callbackPriority=2,e.callbackNode=null,2}function tg(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(dr()&&e.callbackNode!==n)return null;var s=je;return s=yi(e,e===Ve?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Vx(e,s,t),eg(e,wt()),e.callbackNode!=null&&e.callbackNode===n?tg.bind(null,e):null)}function ng(e,t){if(dr())return null;Vx(e,t,!0)}function w3(){O3(function(){(Ae&6)!==0?lc(Y0,S3):Ix()})}function $u(){if(ta===0){var e=is;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),ta=e}return ta}function ag(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Si(""+e)}function sg(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 N3(e,t,n,s,c){if(t==="submit"&&n&&n.stateNode===c){var u=ag((c[mt]||null).action),m=s.submitter;m&&(t=(t=m[mt]||null)?ag(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var b=new Ai("action","action",null,s,c);e.push({event:b,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ta!==0){var w=m?sg(c,m):new FormData(c);pu(n,{pending:!0,data:w,method:c.method,action:u},null,w)}}else typeof u=="function"&&(b.preventDefault(),w=m?sg(c,m):new FormData(c),pu(n,{pending:!0,data:w,method:c.method,action:u},u,w))},currentTarget:c}]})}}for(var Ju=0;Ju<kc.length;Ju++){var Pu=kc[Ju],T3=Pu.toLowerCase(),A3=Pu[0].toUpperCase()+Pu.slice(1);Jt(T3,"on"+A3)}Jt(Om,"onAnimationEnd"),Jt(Vm,"onAnimationIteration"),Jt(Bm,"onAnimationStart"),Jt("dblclick","onDoubleClick"),Jt("focusin","onFocus"),Jt("focusout","onBlur"),Jt(Gj,"onTransitionRun"),Jt(Yj,"onTransitionStart"),Jt(Xj,"onTransitionCancel"),Jt(Lm,"onTransitionEnd"),Za("onMouseEnter",["mouseout","mouseover"]),Za("onMouseLeave",["mouseout","mouseover"]),Za("onPointerEnter",["pointerout","pointerover"]),Za("onPointerLeave",["pointerout","pointerover"]),ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="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(" "),C3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function lg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],c=s.event;s=s.listeners;e:{var u=void 0;if(t)for(var m=s.length-1;0<=m;m--){var b=s[m],w=b.instance,M=b.currentTarget;if(b=b.listener,w!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=M;try{u(c)}catch(q){_i(q)}c.currentTarget=null,u=w}else for(m=0;m<s.length;m++){if(b=s[m],w=b.instance,M=b.currentTarget,b=b.listener,w!==u&&c.isPropagationStopped())break e;u=b,c.currentTarget=M;try{u(c)}catch(q){_i(q)}c.currentTarget=null,u=w}}}}function ve(e,t){var n=t[uc];n===void 0&&(n=t[uc]=new Set);var s=e+"__bubble";n.has(s)||(ig(t,e,2,!1),n.add(s))}function Wu(e,t,n){var s=0;t&&(s|=4),ig(n,e,s,t)}var pr="_reactListening"+Math.random().toString(36).slice(2);function Iu(e){if(!e[pr]){e[pr]=!0,I0.forEach(function(n){n!=="selectionchange"&&(C3.has(n)||Wu(n,!1,e),Wu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pr]||(t[pr]=!0,Wu("selectionchange",!1,t))}}function ig(e,t,n,s){switch(Og(t)){case 2:var c=tS;break;case 8:c=nS;break;default:c=pf}n=c.bind(null,t,n,e),c=void 0,!bc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),s?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function ef(e,t,n,s,c){var u=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var b=s.stateNode.containerInfo;if(b===c)break;if(m===4)for(m=s.return;m!==null;){var w=m.tag;if((w===3||w===4)&&m.stateNode.containerInfo===c)return;m=m.return}for(;b!==null;){if(m=Ya(b),m===null)return;if(w=m.tag,w===5||w===6||w===26||w===27){s=u=m;continue e}b=b.parentNode}}s=s.return}fm(function(){var M=u,q=gc(n),Q=[];e:{var k=Um.get(e);if(k!==void 0){var L=Ai,le=e;switch(e){case"keypress":if(Ni(n)===0)break e;case"keydown":case"keyup":L=vj;break;case"focusin":le="focus",L=wc;break;case"focusout":le="blur",L=wc;break;case"beforeblur":case"afterblur":L=wc;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":L=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=oj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=wj;break;case Om:case Vm:case Bm:L=fj;break;case Lm:L=Tj;break;case"scroll":case"scrollend":L=ij;break;case"wheel":L=Cj;break;case"copy":case"cut":case"paste":L=hj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=xm;break;case"toggle":case"beforetoggle":L=_j}var de=(t&4)!==0,ze=!de&&(e==="scroll"||e==="scrollend"),C=de?k!==null?k+"Capture":null:k;de=[];for(var N=M,D;N!==null;){var Z=N;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||C===null||(Z=Ps(N,C),Z!=null&&de.push(Dl(N,Z,D))),ze)break;N=N.return}0<de.length&&(k=new L(k,le,null,n,q),Q.push({event:k,listeners:de}))}}if((t&7)===0){e:{if(k=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",k&&n!==xc&&(le=n.relatedTarget||n.fromElement)&&(Ya(le)||le[Ga]))break e;if((L||k)&&(k=q.window===q?q:(k=q.ownerDocument)?k.defaultView||k.parentWindow:window,L?(le=n.relatedTarget||n.toElement,L=M,le=le?Ya(le):null,le!==null&&(ze=h(le),de=le.tag,le!==ze||de!==5&&de!==27&&de!==6)&&(le=null)):(L=null,le=M),L!==le)){if(de=mm,Z="onMouseLeave",C="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(de=xm,Z="onPointerLeave",C="onPointerEnter",N="pointer"),ze=L==null?k:Js(L),D=le==null?k:Js(le),k=new de(Z,N+"leave",L,n,q),k.target=ze,k.relatedTarget=D,Z=null,Ya(q)===M&&(de=new de(C,N+"enter",le,n,q),de.target=D,de.relatedTarget=ze,Z=de),ze=Z,L&&le)t:{for(de=E3,C=L,N=le,D=0,Z=C;Z;Z=de(Z))D++;Z=0;for(var ue=N;ue;ue=de(ue))Z++;for(;0<D-Z;)C=de(C),D--;for(;0<Z-D;)N=de(N),Z--;for(;D--;){if(C===N||N!==null&&C===N.alternate){de=C;break t}C=de(C),N=de(N)}de=null}else de=null;L!==null&&rg(Q,k,L,de,!1),le!==null&&ze!==null&&rg(Q,ze,le,de,!0)}}e:{if(k=M?Js(M):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var Ne=Nm;else if(Sm(k))if(Tm)Ne=Uj;else{Ne=Bj;var re=Vj}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?M&&pc(M.elementType)&&(Ne=Nm):Ne=Lj;if(Ne&&(Ne=Ne(e,M))){wm(Q,Ne,n,q);break e}re&&re(e,k,M),e==="focusout"&&M&&k.type==="number"&&M.memoizedProps.value!=null&&mc(k,"number",k.value)}switch(re=M?Js(M):window,e){case"focusin":(Sm(re)||re.contentEditable==="true")&&(Wa=re,_c=M,ll=null);break;case"focusout":ll=_c=Wa=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,Rm(Q,n,q);break;case"selectionchange":if(qj)break;case"keydown":case"keyup":Rm(Q,n,q)}var ge;if(Tc)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Pa?vm(e,n)&&(Se="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Se="onCompositionStart");Se&&(gm&&n.locale!=="ko"&&(Pa||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Pa&&(ge=dm()):(Un=q,vc="value"in Un?Un.value:Un.textContent,Pa=!0)),re=xr(M,Se),0<re.length&&(Se=new pm(Se,e,null,n,q),Q.push({event:Se,listeners:re}),ge?Se.data=ge:(ge=jm(n),ge!==null&&(Se.data=ge)))),(ge=Mj?kj(e,n):Rj(e,n))&&(Se=xr(M,"onBeforeInput"),0<Se.length&&(re=new pm("onBeforeInput","beforeinput",null,n,q),Q.push({event:re,listeners:Se}),re.data=ge)),N3(Q,e,M,n,q)}lg(Q,t)})}function Dl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xr(e,t){for(var n=t+"Capture",s=[];e!==null;){var c=e,u=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||u===null||(c=Ps(e,n),c!=null&&s.unshift(Dl(e,c,u)),c=Ps(e,t),c!=null&&s.push(Dl(e,c,u))),e.tag===3)return s;e=e.return}return[]}function E3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rg(e,t,n,s,c){for(var u=t._reactName,m=[];n!==null&&n!==s;){var b=n,w=b.alternate,M=b.stateNode;if(b=b.tag,w!==null&&w===s)break;b!==5&&b!==26&&b!==27||M===null||(w=M,c?(M=Ps(n,u),M!=null&&m.unshift(Dl(n,M,w))):c||(M=Ps(n,u),M!=null&&m.push(Dl(n,M,w)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var _3=/\r\n?/g,D3=/\u0000|\uFFFD/g;function og(e){return(typeof e=="string"?e:""+e).replace(_3,`
`).replace(D3,"")}function cg(e,t){return t=og(t),og(e)===t}function Re(e,t,n,s,c,u){switch(n){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Ka(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Ka(e,""+s);break;case"className":vi(e,"class",s);break;case"tabIndex":vi(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":vi(e,n,s);break;case"style":cm(e,s,u);break;case"data":if(t!=="object"){vi(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Si(""+s),e.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="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 u=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",c.name,c,null),Re(e,t,"formEncType",c.formEncType,c,null),Re(e,t,"formMethod",c.formMethod,c,null),Re(e,t,"formTarget",c.formTarget,c,null)):(Re(e,t,"encType",c.encType,c,null),Re(e,t,"method",c.method,c,null),Re(e,t,"target",c.target,c,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(n);break}s=Si(""+s),e.setAttribute(n,s);break;case"onClick":s!=null&&(e.onclick=hn);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}n=Si(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":s===!0?e.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(n,s):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(n,s):e.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(n):e.setAttribute(n,s);break;case"popover":ve("beforetoggle",e),ve("toggle",e),bi(e,"popover",s);break;case"xlinkActuate":dn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":dn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":dn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":dn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":dn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":dn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":dn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":dn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":dn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":bi(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=sj.get(n)||n,bi(e,n,s))}}function tf(e,t,n,s,c,u){switch(n){case"style":cm(e,s,u);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(o(61));if(n=s.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof s=="string"?Ka(e,s):(typeof s=="number"||typeof s=="bigint")&&Ka(e,""+s);break;case"onScroll":s!=null&&ve("scroll",e);break;case"onScrollEnd":s!=null&&ve("scrollend",e);break;case"onClick":s!=null&&(e.onclick=hn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!em.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),u=e[mt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,c),typeof s=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,s,c);break e}n in e?e[n]=s:s===!0?e.setAttribute(n,""):bi(e,n,s)}}}function ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ve("error",e),ve("load",e);var s=!1,c=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":s=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,u,m,n,null)}}c&&Re(e,t,"srcSet",n.srcSet,n,null),s&&Re(e,t,"src",n.src,n,null);return;case"input":ve("invalid",e);var b=u=m=c=null,w=null,M=null;for(s in n)if(n.hasOwnProperty(s)){var q=n[s];if(q!=null)switch(s){case"name":c=q;break;case"type":m=q;break;case"checked":w=q;break;case"defaultChecked":M=q;break;case"value":u=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:Re(e,t,s,q,n,null)}}lm(e,u,b,w,M,m,c,!1);return;case"select":ve("invalid",e),s=m=u=null;for(c in n)if(n.hasOwnProperty(c)&&(b=n[c],b!=null))switch(c){case"value":u=b;break;case"defaultValue":m=b;break;case"multiple":s=b;default:Re(e,t,c,b,n,null)}t=u,n=m,e.multiple=!!s,t!=null?Qa(e,!!s,t,!1):n!=null&&Qa(e,!!s,n,!0);return;case"textarea":ve("invalid",e),u=c=s=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":s=b;break;case"defaultValue":c=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(o(91));break;default:Re(e,t,m,b,n,null)}rm(e,s,c,u);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(s=n[w],s!=null))switch(w){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Re(e,t,w,s,n,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(s=0;s<_l.length;s++)ve(_l[s],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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(M in n)if(n.hasOwnProperty(M)&&(s=n[M],s!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Re(e,t,M,s,n,null)}return;default:if(pc(t)){for(q in n)n.hasOwnProperty(q)&&(s=n[q],s!==void 0&&tf(e,t,q,s,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(s=n[b],s!=null&&Re(e,t,b,s,n,null))}function M3(e,t,n,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,u=null,m=null,b=null,w=null,M=null,q=null;for(L in n){var Q=n[L];if(n.hasOwnProperty(L)&&Q!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":w=Q;default:s.hasOwnProperty(L)||Re(e,t,L,null,s,Q)}}for(var k in s){var L=s[k];if(Q=n[k],s.hasOwnProperty(k)&&(L!=null||Q!=null))switch(k){case"type":u=L;break;case"name":c=L;break;case"checked":M=L;break;case"defaultChecked":q=L;break;case"value":m=L;break;case"defaultValue":b=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:L!==Q&&Re(e,t,k,L,s,Q)}}hc(e,m,b,w,M,q,u,c);return;case"select":L=m=b=k=null;for(u in n)if(w=n[u],n.hasOwnProperty(u)&&w!=null)switch(u){case"value":break;case"multiple":L=w;default:s.hasOwnProperty(u)||Re(e,t,u,null,s,w)}for(c in s)if(u=s[c],w=n[c],s.hasOwnProperty(c)&&(u!=null||w!=null))switch(c){case"value":k=u;break;case"defaultValue":b=u;break;case"multiple":m=u;default:u!==w&&Re(e,t,c,u,s,w)}t=b,n=m,s=L,k!=null?Qa(e,!!n,k,!1):!!s!=!!n&&(t!=null?Qa(e,!!n,t,!0):Qa(e,!!n,n?[]:"",!1));return;case"textarea":L=k=null;for(b in n)if(c=n[b],n.hasOwnProperty(b)&&c!=null&&!s.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Re(e,t,b,null,s,c)}for(m in s)if(c=s[m],u=n[m],s.hasOwnProperty(m)&&(c!=null||u!=null))switch(m){case"value":k=c;break;case"defaultValue":L=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==u&&Re(e,t,m,c,s,u)}im(e,k,L);return;case"option":for(var le in n)if(k=n[le],n.hasOwnProperty(le)&&k!=null&&!s.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Re(e,t,le,null,s,k)}for(w in s)if(k=s[w],L=n[w],s.hasOwnProperty(w)&&k!==L&&(k!=null||L!=null))switch(w){case"selected":e.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Re(e,t,w,k,s,L)}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)k=n[de],n.hasOwnProperty(de)&&k!=null&&!s.hasOwnProperty(de)&&Re(e,t,de,null,s,k);for(M in s)if(k=s[M],L=n[M],s.hasOwnProperty(M)&&k!==L&&(k!=null||L!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(o(137,t));break;default:Re(e,t,M,k,s,L)}return;default:if(pc(t)){for(var ze in n)k=n[ze],n.hasOwnProperty(ze)&&k!==void 0&&!s.hasOwnProperty(ze)&&tf(e,t,ze,void 0,s,k);for(q in s)k=s[q],L=n[q],!s.hasOwnProperty(q)||k===L||k===void 0&&L===void 0||tf(e,t,q,k,s,L);return}}for(var C in n)k=n[C],n.hasOwnProperty(C)&&k!=null&&!s.hasOwnProperty(C)&&Re(e,t,C,null,s,k);for(Q in s)k=s[Q],L=n[Q],!s.hasOwnProperty(Q)||k===L||k==null&&L==null||Re(e,t,Q,k,s,L)}function ug(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function k3(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var c=n[s],u=c.transferSize,m=c.initiatorType,b=c.duration;if(u&&b&&ug(m)){for(m=0,b=c.responseEnd,s+=1;s<n.length;s++){var w=n[s],M=w.startTime;if(M>b)break;var q=w.transferSize,Q=w.initiatorType;q&&ug(Q)&&(w=w.responseEnd,m+=q*(w<b?1:(b-M)/(w-M)))}if(--s,t+=8*(u+m)/(c.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 nf=null,af=null;function gr(e){return e.nodeType===9?e:e.ownerDocument}function fg(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 dg(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 sf(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 lf=null;function R3(){var e=window.event;return e&&e.type==="popstate"?e===lf?!1:(lf=e,!0):(lf=null,!1)}var hg=typeof setTimeout=="function"?setTimeout:void 0,z3=typeof clearTimeout=="function"?clearTimeout:void 0,mg=typeof Promise=="function"?Promise:void 0,O3=typeof queueMicrotask=="function"?queueMicrotask:typeof mg<"u"?function(e){return mg.resolve(null).then(e).catch(V3)}:hg;function V3(e){setTimeout(function(){throw e})}function na(e){return e==="head"}function pg(e,t){var n=t,s=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"||n==="/&"){if(s===0){e.removeChild(c),Ts(t);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")Ml(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ml(n);for(var u=n.firstChild;u;){var m=u.nextSibling,b=u.nodeName;u[$s]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&Ml(e.ownerDocument.body);n=c}while(n);Ts(t)}function xg(e,t){var n=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=s}while(n)}function rf(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":rf(n),fc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function B3(e,t,n,s){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[$s])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Xt(e.nextSibling),e===null)break}return null}function L3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Xt(e.nextSibling),e===null))return null;return e}function gg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Xt(e.nextSibling),e===null))return null;return e}function of(e){return e.data==="$?"||e.data==="$~"}function cf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function U3(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var s=function(){t(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function Xt(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 uf=null;function yg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Xt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function bg(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 vg(e,t,n){switch(t=gr(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Ml(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fc(e)}var Ft=new Map,jg=new Set;function yr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _n=F.d;F.d={f:H3,r:q3,D:G3,C:Y3,L:X3,m:F3,X:Q3,S:Z3,M:K3};function H3(){var e=_n.f(),t=cr();return e||t}function q3(e){var t=Xa(e);t!==null&&t.tag===5&&t.type==="form"?Lp(t):_n.r(e)}var Ss=typeof document>"u"?null:document;function Sg(e,t,n){var s=Ss;if(s&&typeof t=="string"&&t){var c=Bt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),jg.has(c)||(jg.add(c),e={rel:e,crossOrigin:n,href:t},s.querySelector(c)===null&&(t=s.createElement("link"),ct(t,"link",e),et(t),s.head.appendChild(t)))}}function G3(e){_n.D(e),Sg("dns-prefetch",e,null)}function Y3(e,t){_n.C(e,t),Sg("preconnect",e,t)}function X3(e,t,n){_n.L(e,t,n);var s=Ss;if(s&&e&&t){var c='link[rel="preload"][as="'+Bt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Bt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Bt(n.imageSizes)+'"]')):c+='[href="'+Bt(e)+'"]';var u=c;switch(t){case"style":u=ws(e);break;case"script":u=Ns(e)}Ft.has(u)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Ft.set(u,e),s.querySelector(c)!==null||t==="style"&&s.querySelector(kl(u))||t==="script"&&s.querySelector(Rl(u))||(t=s.createElement("link"),ct(t,"link",e),et(t),s.head.appendChild(t)))}}function F3(e,t){_n.m(e,t);var n=Ss;if(n&&e){var s=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Bt(s)+'"][href="'+Bt(e)+'"]',u=c;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ns(e)}if(!Ft.has(u)&&(e=v({rel:"modulepreload",href:e},t),Ft.set(u,e),n.querySelector(c)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Rl(u)))return}s=n.createElement("link"),ct(s,"link",e),et(s),n.head.appendChild(s)}}}function Z3(e,t,n){_n.S(e,t,n);var s=Ss;if(s&&e){var c=Fa(s).hoistableStyles,u=ws(e);t=t||"default";var m=c.get(u);if(!m){var b={loading:0,preload:null};if(m=s.querySelector(kl(u)))b.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Ft.get(u))&&ff(e,n);var w=m=s.createElement("link");et(w),ct(w,"link",e),w._p=new Promise(function(M,q){w.onload=M,w.onerror=q}),w.addEventListener("load",function(){b.loading|=1}),w.addEventListener("error",function(){b.loading|=2}),b.loading|=4,br(m,t,s)}m={type:"stylesheet",instance:m,count:1,state:b},c.set(u,m)}}}function Q3(e,t){_n.X(e,t);var n=Ss;if(n&&e){var s=Fa(n).hoistableScripts,c=Ns(e),u=s.get(c);u||(u=n.querySelector(Rl(c)),u||(e=v({src:e,async:!0},t),(t=Ft.get(c))&&df(e,t),u=n.createElement("script"),et(u),ct(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function K3(e,t){_n.M(e,t);var n=Ss;if(n&&e){var s=Fa(n).hoistableScripts,c=Ns(e),u=s.get(c);u||(u=n.querySelector(Rl(c)),u||(e=v({src:e,async:!0,type:"module"},t),(t=Ft.get(c))&&df(e,t),u=n.createElement("script"),et(u),ct(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},s.set(c,u))}}function wg(e,t,n,s){var c=(c=ne.current)?yr(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ws(n.href),n=Fa(c).hoistableStyles,s=n.get(t),s||(s={type:"style",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ws(n.href);var u=Fa(c).hoistableStyles,m=u.get(e);if(m||(c=c.ownerDocument||c,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=c.querySelector(kl(e)))&&!u._p&&(m.instance=u,m.state.loading=5),Ft.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},Ft.set(e,n),u||$3(c,e,n,m.state))),t&&s===null)throw Error(o(528,""));return m}if(t&&s!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ns(n),n=Fa(c).hoistableScripts,s=n.get(t),s||(s={type:"script",instance:null,count:0,state:null},n.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ws(e){return'href="'+Bt(e)+'"'}function kl(e){return'link[rel="stylesheet"]['+e+"]"}function Ng(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function $3(e,t,n,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),ct(t,"link",n),et(t),e.head.appendChild(t))}function Ns(e){return'[src="'+Bt(e)+'"]'}function Rl(e){return"script[async]"+e}function Tg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+Bt(n.href)+'"]');if(s)return t.instance=s,et(s),s;var c=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),et(s),ct(s,"style",c),br(s,n.precedence,e),t.instance=s;case"stylesheet":c=ws(n.href);var u=e.querySelector(kl(c));if(u)return t.state.loading|=4,t.instance=u,et(u),u;s=Ng(n),(c=Ft.get(c))&&ff(s,c),u=(e.ownerDocument||e).createElement("link"),et(u);var m=u;return m._p=new Promise(function(b,w){m.onload=b,m.onerror=w}),ct(u,"link",s),t.state.loading|=4,br(u,n.precedence,e),t.instance=u;case"script":return u=Ns(n.src),(c=e.querySelector(Rl(u)))?(t.instance=c,et(c),c):(s=n,(c=Ft.get(u))&&(s=v({},n),df(s,c)),e=e.ownerDocument||e,c=e.createElement("script"),et(c),ct(c,"link",s),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,br(s,n.precedence,e));return t.instance}function br(e,t,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=s.length?s[s.length-1]:null,u=c,m=0;m<s.length;m++){var b=s[m];if(b.dataset.precedence===t)u=b;else if(u!==c)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ff(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function df(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vr=null;function Ag(e,t,n){if(vr===null){var s=new Map,c=vr=new Map;c.set(n,s)}else c=vr,s=c.get(n),s||(s=new Map,c.set(n,s));if(s.has(e))return s;for(s.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var u=n[c];if(!(u[$s]||u[lt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var b=s.get(m);b?b.push(u):s.set(m,[u])}}return s}function Cg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function J3(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 Eg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function P3(e,t,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var c=ws(s.href),u=t.querySelector(kl(c));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=jr.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,et(u);return}u=t.ownerDocument||t,s=Ng(s),(c=Ft.get(c))&&ff(s,c),u=u.createElement("link"),et(u);var m=u;m._p=new Promise(function(b,w){m.onload=b,m.onerror=w}),ct(u,"link",s),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=jr.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var hf=0;function W3(e,t){return e.stylesheets&&e.count===0&&wr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var s=setTimeout(function(){if(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&hf===0&&(hf=62500*k3());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wr(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>hf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(c)}}:null}function jr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Sr=null;function wr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Sr=new Map,t.forEach(I3,e),Sr=null,jr.call(e))}function I3(e,t){if(!(t.state.loading&4)){var n=Sr.get(e);if(n)var s=n.get(null);else{n=new Map,Sr.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<c.length;u++){var m=c[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),s=m)}s&&n.set(null,s)}c=t.instance,m=c.getAttribute("data-precedence"),u=n.get(m)||s,u===s&&n.set(null,c),n.set(m,c),this.count++,s=jr.bind(this),c.addEventListener("load",s),c.addEventListener("error",s),u?u.parentNode.insertBefore(c,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var zl={$$typeof:X,Provider:null,Consumer:null,_currentValue:A,_currentValue2:A,_threadCount:0};function eS(e,t,n,s,c,u,m,b,w){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=rc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rc(0),this.hiddenUpdates=rc(null),this.identifierPrefix=s,this.onUncaughtError=c,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function _g(e,t,n,s,c,u,m,b,w,M,q,Q){return e=new eS(e,t,n,m,w,M,q,Q,b),t=1,u===!0&&(t|=24),u=Ct(3,null,null,t),e.current=u,u.stateNode=e,t=Fc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:s,isDehydrated:n,cache:t},$c(u),e}function Dg(e){return e?(e=ts,e):ts}function Mg(e,t,n,s,c,u){c=Dg(c),s.context===null?s.context=c:s.pendingContext=c,s=Fn(t),s.payload={element:n},u=u===void 0?null:u,u!==null&&(s.callback=u),n=Zn(e,s,t),n!==null&&(vt(n,e,t),dl(n,e,t))}function kg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mf(e,t){kg(e,t),(e=e.alternate)&&kg(e,t)}function Rg(e){if(e.tag===13||e.tag===31){var t=ja(e,67108864);t!==null&&vt(t,e,67108864),mf(e,67108864)}}function zg(e){if(e.tag===13||e.tag===31){var t=kt();t=oc(t);var n=ja(e,t);n!==null&&vt(n,e,t),mf(e,t)}}var Nr=!0;function tS(e,t,n,s){var c=_.T;_.T=null;var u=F.p;try{F.p=2,pf(e,t,n,s)}finally{F.p=u,_.T=c}}function nS(e,t,n,s){var c=_.T;_.T=null;var u=F.p;try{F.p=8,pf(e,t,n,s)}finally{F.p=u,_.T=c}}function pf(e,t,n,s){if(Nr){var c=xf(s);if(c===null)ef(e,t,s,Tr,n),Vg(e,s);else if(sS(c,e,t,n,s))s.stopPropagation();else if(Vg(e,s),t&4&&-1<aS.indexOf(e)){for(;c!==null;){var u=Xa(c);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=xa(u.pendingLanes);if(m!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var w=1<<31-Tt(m);b.entanglements[1]|=w,m&=~w}on(u),(Ae&6)===0&&(rr=wt()+500,El(0))}}break;case 31:case 13:b=ja(u,2),b!==null&&vt(b,u,2),cr(),mf(u,2)}if(u=xf(s),u===null&&ef(e,t,s,Tr,n),u===c)break;c=u}c!==null&&s.stopPropagation()}else ef(e,t,s,null,n)}}function xf(e){return e=gc(e),gf(e)}var Tr=null;function gf(e){if(Tr=null,e=Ya(e),e!==null){var t=h(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=p(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 Tr=e,null}function Og(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(G5()){case Y0:return 2;case X0:return 8;case mi:case Y5:return 32;case F0:return 268435456;default:return 32}default:return 32}}var yf=!1,aa=null,sa=null,la=null,Ol=new Map,Vl=new Map,ia=[],aS="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 Vg(e,t){switch(e){case"focusin":case"focusout":aa=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Ol.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vl.delete(t.pointerId)}}function Bl(e,t,n,s,c,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:u,targetContainers:[c]},t!==null&&(t=Xa(t),t!==null&&Rg(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function sS(e,t,n,s,c){switch(t){case"focusin":return aa=Bl(aa,e,t,n,s,c),!0;case"dragenter":return sa=Bl(sa,e,t,n,s,c),!0;case"mouseover":return la=Bl(la,e,t,n,s,c),!0;case"pointerover":var u=c.pointerId;return Ol.set(u,Bl(Ol.get(u)||null,e,t,n,s,c)),!0;case"gotpointercapture":return u=c.pointerId,Vl.set(u,Bl(Vl.get(u)||null,e,t,n,s,c)),!0}return!1}function Bg(e){var t=Ya(e.target);if(t!==null){var n=h(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,P0(e.priority,function(){zg(n)});return}}else if(t===31){if(t=p(n),t!==null){e.blockedOn=t,P0(e.priority,function(){zg(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 Ar(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xf(e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);xc=s,n.target.dispatchEvent(s),xc=null}else return t=Xa(n),t!==null&&Rg(t),e.blockedOn=n,!1;t.shift()}return!0}function Lg(e,t,n){Ar(e)&&n.delete(t)}function lS(){yf=!1,aa!==null&&Ar(aa)&&(aa=null),sa!==null&&Ar(sa)&&(sa=null),la!==null&&Ar(la)&&(la=null),Ol.forEach(Lg),Vl.forEach(Lg)}function Cr(e,t){e.blockedOn===t&&(e.blockedOn=null,yf||(yf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,lS)))}var Er=null;function Ug(e){Er!==e&&(Er=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Er===e&&(Er=null);for(var t=0;t<e.length;t+=3){var n=e[t],s=e[t+1],c=e[t+2];if(typeof s!="function"){if(gf(s||n)===null)continue;break}var u=Xa(n);u!==null&&(e.splice(t,3),t-=3,pu(u,{pending:!0,data:c,method:n.method,action:s},s,c))}}))}function Ts(e){function t(w){return Cr(w,e)}aa!==null&&Cr(aa,e),sa!==null&&Cr(sa,e),la!==null&&Cr(la,e),Ol.forEach(t),Vl.forEach(t);for(var n=0;n<ia.length;n++){var s=ia[n];s.blockedOn===e&&(s.blockedOn=null)}for(;0<ia.length&&(n=ia[0],n.blockedOn===null);)Bg(n),n.blockedOn===null&&ia.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var c=n[s],u=n[s+1],m=c[mt]||null;if(typeof u=="function")m||Ug(n);else if(m){var b=null;if(u&&u.hasAttribute("formAction")){if(c=u,m=u[mt]||null)b=m.formAction;else if(gf(c)!==null)continue}else b=m.action;typeof b=="function"?n[s+1]=b:(n.splice(s,3),s-=3),Ug(n)}}}function Hg(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return c=m})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function bf(e){this._internalRoot=e}_r.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,s=kt();Mg(n,s,e,t,null,null)},_r.prototype.unmount=bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Mg(e.current,2,null,e,null,null),cr(),t[Ga]=null}};function _r(e){this._internalRoot=e}_r.prototype.unstable_scheduleHydration=function(e){if(e){var t=J0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ia.length&&t!==0&&t<ia[n].priority;n++);ia.splice(n,0,e),n===0&&Bg(e)}};var qg=l.version;if(qg!=="19.2.8")throw Error(o(527,qg,"19.2.8"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var iS={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dr.isDisabled&&Dr.supportsFiber)try{Zs=Dr.inject(iS),Nt=Dr}catch{}}return Cs.createRoot=function(e,t){if(!f(e))throw Error(o(299));var n=!1,s="",c=Kp,u=$p,m=Jp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=_g(e,1,!1,null,null,n,s,null,c,u,m,Hg),e[Ga]=t.current,Iu(e),new bf(t)},Cs.hydrateRoot=function(e,t,n){if(!f(e))throw Error(o(299));var s=!1,c="",u=Kp,m=$p,b=Jp,w=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(w=n.formState)),t=_g(e,1,!0,t,n??null,s,c,w,u,m,b,Hg),t.context=Dg(null),n=t.current,s=kt(),s=oc(s),c=Fn(s),c.callback=null,Zn(n,c,s),n=s,t.current.lanes=n,Ks(t,n),on(t),e[Ga]=t.current,Iu(e),new _r(t)},Cs.version="19.2.8",Cs}var _f;function Jg(){if(_f)return zr.exports;_f=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(l){console.error(l)}}return a(),zr.exports=$g(),zr.exports}var Pg=Jg();const Lr=H.createContext({});function Es(a){const l=H.useRef(null);return l.current===null&&(l.current=a()),l.current}const Ll=typeof window<"u"?H.useLayoutEffect:H.useEffect,Ul=H.createContext(null);function Ur(a,l){a.indexOf(l)===-1&&a.push(l)}function Hl(a,l){const i=a.indexOf(l);i>-1&&a.splice(i,1)}const It=(a,l,i)=>i>l?l:i<a?a:i;let ql=()=>{};const Dn={},Df=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a),Mf=a=>typeof a=="object"&&a!==null,kf=a=>/^0[^.\s]+$/u.test(a);function Rf(a){let l;return()=>(l===void 0&&(l=a()),l)}const Rt=a=>a,_s=(...a)=>a.reduce((l,i)=>o=>i(l(o))),Ds=(a,l,i)=>{const o=l-a;return o?(i-a)/o:1};class Hr{constructor(){this.subscriptions=[]}add(l){return Ur(this.subscriptions,l),()=>Hl(this.subscriptions,l)}notify(l,i,o){const f=this.subscriptions.length;if(f)if(f===1)this.subscriptions[0](l,i,o);else for(let h=0;h<f;h++){const d=this.subscriptions[h];d&&d(l,i,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const jt=a=>a*1e3,zt=a=>a/1e3,zf=(a,l)=>l?a*(1e3/l):0,Of=(a,l,i)=>(((1-3*i+3*l)*a+(3*i-6*l))*a+3*l)*a,Wg=1e-7,Ig=12;function e1(a,l,i,o,f){let h,d,p=0;do d=l+(i-l)/2,h=Of(d,o,f)-a,h>0?i=d:l=d;while(Math.abs(h)>Wg&&++p<Ig);return d}function Ms(a,l,i,o){if(a===l&&i===o)return Rt;const f=h=>e1(h,0,1,a,i);return h=>h===0||h===1?h:Of(f(h),l,o)}const Vf=a=>l=>l<=.5?a(2*l)/2:(2-a(2*(1-l)))/2,Bf=a=>l=>1-a(1-l),Lf=Ms(.33,1.53,.69,.99),qr=Bf(Lf),Uf=Vf(qr),Hf=a=>a>=1?1:(a*=2)<1?.5*qr(a):.5*(2-Math.pow(2,-10*(a-1))),Gr=a=>1-Math.sin(Math.acos(a)),qf=Bf(Gr),Gf=Vf(Gr),t1=Ms(.42,0,1,1),n1=Ms(0,0,.58,1),Yf=Ms(.42,0,.58,1),a1=a=>Array.isArray(a)&&typeof a[0]!="number",Xf=a=>Array.isArray(a)&&typeof a[0]=="number",s1={linear:Rt,easeIn:t1,easeInOut:Yf,easeOut:n1,circIn:Gr,circInOut:Gf,circOut:qf,backIn:qr,backInOut:Uf,backOut:Lf,anticipate:Hf},l1=a=>typeof a=="string",Ff=a=>{if(Xf(a)){ql(a.length===4);const[l,i,o,f]=a;return Ms(l,i,o,f)}else if(l1(a))return s1[a];return a},Gl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function i1(a){let l=new Set,i=new Set,o=!1,f=!1;const h=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function p(x){h.has(x)&&(g.schedule(x),a()),x(d)}const g={schedule:(x,y=!1,v=!1)=>{const T=v&&o?l:i;return y&&h.add(x),T.add(x),x},cancel:x=>{i.delete(x),h.delete(x)},process:x=>{if(d=x,o){f=!0;return}o=!0;const y=l;l=i,i=y,l.forEach(p),l.clear(),o=!1,f&&(f=!1,g.process(x))}};return g}const r1=40;function Zf(a,l){let i=!1,o=!0;const f={delta:0,timestamp:0,isProcessing:!1},h=()=>i=!0,d=Gl.reduce((X,U)=>(X[U]=i1(h),X),{}),{setup:p,read:g,resolveKeyframes:x,preUpdate:y,update:v,preRender:j,render:T,postRender:E}=d,O=()=>{const X=Dn.useManualTiming,U=X?f.timestamp:performance.now();i=!1,X||(f.delta=o?1e3/60:Math.max(Math.min(U-f.timestamp,r1),1)),f.timestamp=U,f.isProcessing=!0,p.process(f),g.process(f),x.process(f),y.process(f),v.process(f),j.process(f),T.process(f),E.process(f),f.isProcessing=!1,i&&l&&(o=!1,a(O))},V=()=>{i=!0,o=!0,f.isProcessing||a(O)};return{schedule:Gl.reduce((X,U)=>{const K=d[U];return X[U]=(oe,$=!1,I=!1)=>(i||V(),K.schedule(oe,$,I)),X},{}),cancel:X=>{for(let U=0;U<Gl.length;U++)d[Gl[U]].cancel(X)},state:f,steps:d}}const{schedule:Ee,cancel:cn,state:nt,steps:Yr}=Zf(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0);let Yl;function o1(){Yl=void 0}const ft={now:()=>(Yl===void 0&&ft.set(nt.isProcessing||Dn.useManualTiming?nt.timestamp:performance.now()),Yl),set:a=>{Yl=a,queueMicrotask(o1)}},Qf=a=>l=>typeof l=="string"&&l.startsWith(a),Kf=Qf("--"),c1=Qf("var(--"),Xr=a=>c1(a)?u1.test(a.split("/*")[0].trim()):!1,u1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function $f(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const za={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},ks={...za,transform:a=>It(0,1,a)},Xl={...za,default:1},Rs=a=>Math.round(a*1e5)/1e5,Fr=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function f1(a){return a==null}const d1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zr=(a,l)=>i=>!!(typeof i=="string"&&d1.test(i)&&i.startsWith(a)||l&&!f1(i)&&Object.prototype.hasOwnProperty.call(i,l)),Jf=(a,l,i)=>o=>{if(typeof o!="string")return o;const[f,h,d,p]=o.match(Fr);return{[a]:parseFloat(f),[l]:parseFloat(h),[i]:parseFloat(d),alpha:p!==void 0?parseFloat(p):1}},h1=a=>It(0,255,a),Qr={...za,transform:a=>Math.round(h1(a))},oa={test:Zr("rgb","red"),parse:Jf("red","green","blue"),transform:({red:a,green:l,blue:i,alpha:o=1})=>"rgba("+Qr.transform(a)+", "+Qr.transform(l)+", "+Qr.transform(i)+", "+Rs(ks.transform(o))+")"};function m1(a){let l="",i="",o="",f="";return a.length>5?(l=a.substring(1,3),i=a.substring(3,5),o=a.substring(5,7),f=a.substring(7,9)):(l=a.substring(1,2),i=a.substring(2,3),o=a.substring(3,4),f=a.substring(4,5),l+=l,i+=i,o+=o,f+=f),{red:parseInt(l,16),green:parseInt(i,16),blue:parseInt(o,16),alpha:f?parseInt(f,16)/255:1}}const Kr={test:Zr("#"),parse:m1,transform:oa.transform},zs=a=>({test:l=>typeof l=="string"&&l.endsWith(a)&&l.split(" ").length===1,parse:parseFloat,transform:l=>`${l}${a}`}),un=zs("deg"),en=zs("%"),ie=zs("px"),p1=zs("vh"),x1=zs("vw"),Pf={...en,parse:a=>en.parse(a)/100,transform:a=>en.transform(a*100)},Oa={test:Zr("hsl","hue"),parse:Jf("hue","saturation","lightness"),transform:({hue:a,saturation:l,lightness:i,alpha:o=1})=>"hsla("+Math.round(a)+", "+en.transform(Rs(l))+", "+en.transform(Rs(i))+", "+Rs(ks.transform(o))+")"},Ze={test:a=>oa.test(a)||Kr.test(a)||Oa.test(a),parse:a=>oa.test(a)?oa.parse(a):Oa.test(a)?Oa.parse(a):Kr.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?oa.transform(a):Oa.transform(a),getAnimatableNone:a=>{const l=Ze.parse(a);return l.alpha=0,Ze.transform(l)}},g1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function y1(a){var l,i;return isNaN(a)&&typeof a=="string"&&(((l=a.match(Fr))==null?void 0:l.length)||0)+(((i=a.match(g1))==null?void 0:i.length)||0)>0}const Wf="number",If="color",b1="var",v1="var(",ed="${}",j1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Va(a){const l=a.toString(),i=[],o={color:[],number:[],var:[]},f=[];let h=0;const p=l.replace(j1,g=>(Ze.test(g)?(o.color.push(h),f.push(If),i.push(Ze.parse(g))):g.startsWith(v1)?(o.var.push(h),f.push(b1),i.push(g)):(o.number.push(h),f.push(Wf),i.push(parseFloat(g))),++h,ed)).split(ed);return{values:i,split:p,indexes:o,types:f}}function S1(a){return Va(a).values}function td({split:a,types:l}){const i=a.length;return o=>{let f="";for(let h=0;h<i;h++)if(f+=a[h],o[h]!==void 0){const d=l[h];d===Wf?f+=Rs(o[h]):d===If?f+=Ze.transform(o[h]):f+=o[h]}return f}}function w1(a){return td(Va(a))}const N1=a=>typeof a=="number"?0:Ze.test(a)?Ze.getAnimatableNone(a):a,T1=(a,l)=>typeof a=="number"?l!=null&&l.trim().endsWith("/")?a:0:N1(a);function A1(a){const l=Va(a);return td(l)(l.values.map((o,f)=>T1(o,l.split[f])))}const Zt={test:y1,parse:S1,createTransformer:w1,getAnimatableNone:A1};function $r(a,l,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?a+(l-a)*6*i:i<1/2?l:i<2/3?a+(l-a)*(2/3-i)*6:a}function C1({hue:a,saturation:l,lightness:i,alpha:o}){a/=360,l/=100,i/=100;let f=0,h=0,d=0;if(!l)f=h=d=i;else{const p=i<.5?i*(1+l):i+l-i*l,g=2*i-p;f=$r(g,p,a+1/3),h=$r(g,p,a),d=$r(g,p,a-1/3)}return{red:Math.round(f*255),green:Math.round(h*255),blue:Math.round(d*255),alpha:o}}function Fl(a,l){return i=>i>0?l:a}const Oe=(a,l,i)=>a+(l-a)*i,Jr=(a,l,i)=>{const o=a*a,f=i*(l*l-o)+o;return f<0?0:Math.sqrt(f)},E1=[Kr,oa,Oa],_1=a=>E1.find(l=>l.test(a));function nd(a){const l=_1(a);if(!l)return!1;let i=l.parse(a);return l===Oa&&(i=C1(i)),i}const ad=(a,l)=>{const i=nd(a),o=nd(l);if(!i||!o)return Fl(a,l);const f={...i};return h=>(f.red=Jr(i.red,o.red,h),f.green=Jr(i.green,o.green,h),f.blue=Jr(i.blue,o.blue,h),f.alpha=Oe(i.alpha,o.alpha,h),oa.transform(f))},Pr=new Set(["none","hidden"]);function D1(a,l){return Pr.has(a)?i=>i<=0?a:l:i=>i>=1?l:a}function M1(a,l){return i=>Oe(a,l,i)}function Wr(a){return typeof a=="number"?M1:typeof a=="string"?Xr(a)?Fl:Ze.test(a)?ad:z1:Array.isArray(a)?sd:typeof a=="object"?Ze.test(a)?ad:k1:Fl}function sd(a,l){const i=[...a],o=i.length,f=a.map((h,d)=>Wr(h)(h,l[d]));return h=>{for(let d=0;d<o;d++)i[d]=f[d](h);return i}}function k1(a,l){const i={...a,...l},o={};for(const f in i)a[f]!==void 0&&l[f]!==void 0&&(o[f]=Wr(a[f])(a[f],l[f]));return f=>{for(const h in o)i[h]=o[h](f);return i}}function R1(a,l){const i=[],o={color:0,var:0,number:0};for(let f=0;f<l.values.length;f++){const h=l.types[f],d=a.indexes[h][o[h]],p=a.values[d]??0;i[f]=p,o[h]++}return i}const z1=(a,l)=>{const i=Zt.createTransformer(l),o=Va(a),f=Va(l);return o.indexes.var.length===f.indexes.var.length&&o.indexes.color.length===f.indexes.color.length&&o.indexes.number.length>=f.indexes.number.length?Pr.has(a)&&!f.values.length||Pr.has(l)&&!o.values.length?D1(a,l):_s(sd(R1(o,f),f.values),i):Fl(a,l)};function ld(a,l,i){return typeof a=="number"&&typeof l=="number"&&typeof i=="number"?Oe(a,l,i):Wr(a)(a,l)}const O1=a=>{const l=({timestamp:i})=>a(i);return{start:(i=!0)=>Ee.update(l,i),stop:()=>cn(l),now:()=>nt.isProcessing?nt.timestamp:ft.now()}},id=(a,l,i=10)=>{let o="";const f=Math.max(Math.round(l/i),2);for(let h=0;h<f;h++)o+=Math.round(a(h/(f-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Zl=2e4;function Ir(a){let l=0;const i=50;let o=a.next(l);for(;!o.done&&l<Zl;)l+=i,o=a.next(l);return l>=Zl?1/0:l}function V1(a,l=100,i){const o=i({...a,keyframes:[0,l]}),f=Math.min(Ir(o),Zl);return{type:"keyframes",ease:h=>o.next(f*h).value/l,duration:zt(f)}}const qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eo(a,l){return a*Math.sqrt(1-l*l)}const B1=12;function L1(a,l,i){let o=i;for(let f=1;f<B1;f++)o=o-a(o)/l(o);return o}const to=.001;function U1({duration:a=qe.duration,bounce:l=qe.bounce,velocity:i=qe.velocity,mass:o=qe.mass}){let f,h,d=1-l;d=It(qe.minDamping,qe.maxDamping,d),a=It(qe.minDuration,qe.maxDuration,zt(a)),d<1?(f=x=>{const y=x*d,v=y*a,j=y-i,T=eo(x,d),E=Math.exp(-v);return to-j/T*E},h=x=>{const v=x*d*a,j=v*i+i,T=Math.pow(d,2)*Math.pow(x,2)*a,E=Math.exp(-v),O=eo(Math.pow(x,2),d);return(-f(x)+to>0?-1:1)*((j-T)*E)/O}):(f=x=>{const y=Math.exp(-x*a),v=(x-i)*a+1;return-to+y*v},h=x=>{const y=Math.exp(-x*a),v=(i-x)*(a*a);return y*v});const p=5/a,g=L1(f,h,p);if(a=jt(a),isNaN(g))return{stiffness:qe.stiffness,damping:qe.damping,duration:a};{const x=Math.pow(g,2)*o;return{stiffness:x,damping:d*2*Math.sqrt(o*x),duration:a}}}const H1=["duration","bounce"],q1=["stiffness","damping","mass"];function rd(a,l){return l.some(i=>a[i]!==void 0)}function G1(a){let l={velocity:qe.velocity,stiffness:qe.stiffness,damping:qe.damping,mass:qe.mass,isResolvedFromDuration:!1,...a};if(!rd(a,q1)&&rd(a,H1))if(l.velocity=0,a.visualDuration){const i=a.visualDuration,o=2*Math.PI/(i*1.2),f=o*o,h=2*It(.05,1,1-(a.bounce||0))*Math.sqrt(f);l={...l,mass:qe.mass,stiffness:f,damping:h}}else{const i=U1({...a,velocity:0});l={...l,...i,mass:qe.mass},l.isResolvedFromDuration=!0}return l}function Ql(a=qe.visualDuration,l=qe.bounce){const i=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:l}:a;let{restSpeed:o,restDelta:f}=i;const h=i.keyframes[0],d=i.keyframes[i.keyframes.length-1],p={done:!1,value:h},{stiffness:g,damping:x,mass:y,duration:v,velocity:j,isResolvedFromDuration:T}=G1({...i,velocity:-zt(i.velocity||0)}),E=j||0,O=x/(2*Math.sqrt(g*y)),V=d-h,G=zt(Math.sqrt(g/y)),Y=Math.abs(V)<5;o||(o=Y?qe.restSpeed.granular:qe.restSpeed.default),f||(f=Y?qe.restDelta.granular:qe.restDelta.default);let X,U,K,oe,$,I;if(O<1)K=eo(G,O),oe=(E+O*G*V)/K,X=ee=>{const he=Math.exp(-O*G*ee);return d-he*(oe*Math.sin(K*ee)+V*Math.cos(K*ee))},$=O*G*oe+V*K,I=O*G*V-oe*K,U=ee=>Math.exp(-O*G*ee)*($*Math.sin(K*ee)+I*Math.cos(K*ee));else if(O===1){X=he=>d-Math.exp(-G*he)*(V+(E+G*V)*he);const ee=E+G*V;U=he=>Math.exp(-G*he)*(G*ee*he-E)}else{const ee=G*Math.sqrt(O*O-1);X=fe=>{const ae=Math.exp(-O*G*fe),_=Math.min(ee*fe,300);return d-ae*((E+O*G*V)*Math.sinh(_)+ee*V*Math.cosh(_))/ee};const he=(E+O*G*V)/ee,pe=O*G*he-V*ee,Ce=O*G*V-he*ee;U=fe=>{const ae=Math.exp(-O*G*fe),_=Math.min(ee*fe,300);return ae*(pe*Math.sinh(_)+Ce*Math.cosh(_))}}const se={calculatedDuration:T&&v||null,velocity:ee=>jt(U(ee)),next:ee=>{if(!T&&O<1){const pe=Math.exp(-O*G*ee),Ce=Math.sin(K*ee),fe=Math.cos(K*ee),ae=d-pe*(oe*Ce+V*fe),_=jt(pe*($*Ce+I*fe));return p.done=Math.abs(_)<=o&&Math.abs(d-ae)<=f,p.value=p.done?d:ae,p}const he=X(ee);if(T)p.done=ee>=v;else{const pe=jt(U(ee));p.done=Math.abs(pe)<=o&&Math.abs(d-he)<=f}return p.value=p.done?d:he,p},toString:()=>{const ee=Math.min(Ir(se),Zl),he=id(pe=>se.next(ee*pe).value,ee,30);return ee+"ms "+he},toTransition:()=>{}};return se}Ql.applyToOptions=a=>{const l=V1(a,100,Ql);return a.ease=l.ease,a.duration=jt(l.duration),a.type="keyframes",a};const Y1=5;function od(a,l,i){const o=Math.max(l-Y1,0);return zf(i-a(o),l-o)}function no({keyframes:a,velocity:l=0,power:i=.8,timeConstant:o=325,bounceDamping:f=10,bounceStiffness:h=500,modifyTarget:d,min:p,max:g,restDelta:x=.5,restSpeed:y}){const v=a[0],j={done:!1,value:v},T=I=>p!==void 0&&I<p||g!==void 0&&I>g,E=I=>p===void 0?g:g===void 0||Math.abs(p-I)<Math.abs(g-I)?p:g;let O=i*l;const V=v+O,G=d===void 0?V:d(V);G!==V&&(O=G-v);const Y=I=>-O*Math.exp(-I/o),X=I=>G+Y(I),U=I=>{const se=Y(I),ee=X(I);j.done=Math.abs(se)<=x,j.value=j.done?G:ee};let K,oe;const $=I=>{T(j.value)&&(K=I,oe=Ql({keyframes:[j.value,E(j.value)],velocity:od(X,I,j.value),damping:f,stiffness:h,restDelta:x,restSpeed:y}))};return $(0),{calculatedDuration:null,next:I=>{let se=!1;return!oe&&K===void 0&&(se=!0,U(I),$(I)),K!==void 0&&I>=K?oe.next(I-K):(!se&&U(I),j)}}}function X1(a,l,i){const o=[],f=i||Dn.mix||ld,h=a.length-1;for(let d=0;d<h;d++){let p=f(a[d],a[d+1]);if(l){const g=Array.isArray(l)?l[d]||Rt:l;p=_s(g,p)}o.push(p)}return o}function cd(a,l,{clamp:i=!0,ease:o,mixer:f}={}){const h=a.length;if(ql(h===l.length),h===1)return()=>l[0];if(h===2&&l[0]===l[1])return()=>l[1];const d=a[0]===a[1];a[0]>a[h-1]&&(a=[...a].reverse(),l=[...l].reverse());const p=X1(l,o,f),g=p.length,x=y=>{if(d&&y<a[0])return l[0];let v=0;if(g>1)for(;v<a.length-2&&!(y<a[v+1]);v++);const j=Ds(a[v],a[v+1],y);return p[v](j)};return i?y=>x(It(a[0],a[h-1],y)):x}function F1(a,l){const i=a[a.length-1];for(let o=1;o<=l;o++){const f=Ds(0,l,o);a.push(Oe(i,1,f))}}function Z1(a){const l=[0];return F1(l,a.length-1),l}function Q1(a,l){return a.map(i=>i*l)}function K1(a,l){return a.map(()=>l||Yf).splice(0,a.length-1)}function Os({duration:a=300,keyframes:l,times:i,ease:o="easeInOut"}){const f=a1(o)?o.map(Ff):Ff(o),h={done:!1,value:l[0]},d=Q1(i&&i.length===l.length?i:Z1(l),a),p=cd(d,l,{ease:Array.isArray(f)?f:K1(l,f)});return{calculatedDuration:a,next:g=>(h.value=p(g),h.done=g>=a,h)}}const $1=a=>a!==null;function Kl(a,{repeat:l,repeatType:i="loop"},o,f=1){const h=a.filter($1),p=f<0||l&&i!=="loop"&&l%2===1?0:h.length-1;return!p||o===void 0?h[p]:o}const J1={decay:no,inertia:no,tween:Os,keyframes:Os,spring:Ql};function ud(a){typeof a.type=="string"&&(a.type=J1[a.type])}class ao{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(l=>{this.resolve=l})}notifyFinished(){this.resolve()}then(l,i){return this.finished.then(l,i)}}const P1=a=>a/100;class Vs extends ao{constructor(l){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var o,f;const{motionValue:i}=this.options;i&&i.updatedAt!==ft.now()&&this.tick(ft.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(f=(o=this.options).onStop)==null||f.call(o))},this.options=l,this.initAnimation(),this.play(),l.autoplay===!1&&this.pause()}initAnimation(){const{options:l}=this;ud(l);const{type:i=Os,repeat:o=0,repeatDelay:f=0,repeatType:h,velocity:d=0}=l;let{keyframes:p}=l;const g=i||Os;g!==Os&&typeof p[0]!="number"&&(this.mixKeyframes=_s(P1,ld(p[0],p[1])),p=[0,100]);const x=g({...l,keyframes:p});h==="mirror"&&(this.mirroredGenerator=g({...l,keyframes:[...p].reverse(),velocity:-d})),x.calculatedDuration===null&&(x.calculatedDuration=Ir(x));const{calculatedDuration:y}=x;this.calculatedDuration=y,this.resolvedDuration=y+f,this.totalDuration=this.resolvedDuration*(o+1)-f,this.generator=x}updateTime(l){const i=Math.round(l-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(l,i=!1){const{generator:o,totalDuration:f,mixKeyframes:h,mirroredGenerator:d,resolvedDuration:p,calculatedDuration:g}=this;if(this.startTime===null)return o.next(0);const{delay:x=0,keyframes:y,repeat:v,repeatType:j,repeatDelay:T,type:E,onUpdate:O,finalKeyframe:V}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,l):this.speed<0&&(this.startTime=Math.min(l-f/this.speed,this.startTime)),i?this.currentTime=l:this.updateTime(l);const G=this.currentTime-x*(this.playbackSpeed>=0?1:-1),Y=this.playbackSpeed>=0?G<0:G>f;this.currentTime=Math.max(G,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let X=this.currentTime,U=o;if(v){const I=Math.min(this.currentTime,f)/p;let se=Math.floor(I),ee=I%1;!ee&&I>=1&&(ee=1),ee===1&&se--,se=Math.min(se,v+1),!!(se%2)&&(j==="reverse"?(ee=1-ee,T&&(ee-=T/p)):j==="mirror"&&(U=d)),X=It(0,1,ee)*p}let K;Y?(this.delayState.value=y[0],K=this.delayState):K=U.next(X),h&&!Y&&(K.value=h(K.value));let{done:oe}=K;!Y&&g!==null&&(oe=this.playbackSpeed>=0?this.currentTime>=f:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&oe);return $&&E!==no&&(K.value=Kl(y,this.options,V,this.speed)),O&&O(K.value),$&&this.finish(),K}then(l,i){return this.finished.then(l,i)}get duration(){return zt(this.calculatedDuration)}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+zt(l)}get time(){return zt(this.currentTime)}set time(l){l=jt(l),this.currentTime=l,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=l:this.driver&&(this.startTime=this.driver.now()-l/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=l,this.tick(l))}getGeneratorVelocity(){const l=this.currentTime;if(l<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(l);const i=this.generator.next(l).value;return od(o=>this.generator.next(o).value,l,i)}get speed(){return this.playbackSpeed}set speed(l){const i=this.playbackSpeed!==l;i&&this.driver&&this.updateTime(ft.now()),this.playbackSpeed=l,i&&this.driver&&(this.time=zt(this.currentTime))}play(){var f,h;if(this.isStopped)return;const{driver:l=O1,startTime:i}=this.options;this.driver||(this.driver=l(d=>this.tick(d))),(h=(f=this.options).onPlay)==null||h.call(f);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=i??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ft.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var l,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(l=this.options).onComplete)==null||i.call(l)}cancel(){var l,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(l=this.options).onCancel)==null||i.call(l)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(l){return this.startTime=0,this.tick(l,!0)}attachTimeline(l){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),l.observe(this)}}function W1(a){for(let l=1;l<a.length;l++)a[l]??(a[l]=a[l-1])}const ca=a=>a*180/Math.PI,so=a=>{const l=ca(Math.atan2(a[1],a[0]));return lo(l)},I1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:so,rotateZ:so,skewX:a=>ca(Math.atan(a[1])),skewY:a=>ca(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},lo=a=>(a=a%360,a<0&&(a+=360),a),fd=so,dd=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),hd=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),ey={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dd,scaleY:hd,scale:a=>(dd(a)+hd(a))/2,rotateX:a=>lo(ca(Math.atan2(a[6],a[5]))),rotateY:a=>lo(ca(Math.atan2(-a[2],a[0]))),rotateZ:fd,rotate:fd,skewX:a=>ca(Math.atan(a[4])),skewY:a=>ca(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function io(a){return a.includes("scale")?1:0}function ro(a,l){if(!a||a==="none")return io(l);const i=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,f;if(i)o=ey,f=i;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=I1,f=p}if(!f)return io(l);const h=o[l],d=f[1].split(",").map(ny);return typeof h=="function"?h(d):d[h]}const ty=(a,l)=>{const{transform:i="none"}=getComputedStyle(a);return ro(i,l)};function ny(a){return parseFloat(a.trim())}const Ba=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],La=new Set([...Ba,"pathRotation"]),md=a=>a===za||a===ie,ay=new Set(["x","y","z"]),sy=Ba.filter(a=>!ay.has(a));function ly(a){const l=[];return sy.forEach(i=>{const o=a.getValue(i);o!==void 0&&(l.push([i,o.get()]),o.set(i.startsWith("scale")?1:0))}),l}const Mn={width:({x:a},{paddingLeft:l="0",paddingRight:i="0",boxSizing:o})=>{const f=a.max-a.min;return o==="border-box"?f:f-parseFloat(l)-parseFloat(i)},height:({y:a},{paddingTop:l="0",paddingBottom:i="0",boxSizing:o})=>{const f=a.max-a.min;return o==="border-box"?f:f-parseFloat(l)-parseFloat(i)},top:(a,{top:l})=>parseFloat(l),left:(a,{left:l})=>parseFloat(l),bottom:({y:a},{top:l})=>parseFloat(l)+(a.max-a.min),right:({x:a},{left:l})=>parseFloat(l)+(a.max-a.min),x:(a,{transform:l})=>ro(l,"x"),y:(a,{transform:l})=>ro(l,"y")};Mn.translateX=Mn.x,Mn.translateY=Mn.y;const ua=new Set;let oo=!1,co=!1,uo=!1;function pd(){if(co){const a=Array.from(ua).filter(o=>o.needsMeasurement),l=new Set(a.map(o=>o.element)),i=new Map;l.forEach(o=>{const f=ly(o);f.length&&(i.set(o,f),o.render())}),a.forEach(o=>o.measureInitialState()),l.forEach(o=>{o.render();const f=i.get(o);f&&f.forEach(([h,d])=>{var p;(p=o.getValue(h))==null||p.set(d)})}),a.forEach(o=>o.measureEndState()),a.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}co=!1,oo=!1,ua.forEach(a=>a.complete(uo)),ua.clear()}function xd(){ua.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(co=!0)})}function iy(){uo=!0,xd(),pd(),uo=!1}class fo{constructor(l,i,o,f,h,d=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...l],this.onComplete=i,this.name=o,this.motionValue=f,this.element=h,this.isAsync=d}scheduleResolve(){this.state="scheduled",this.isAsync?(ua.add(this),oo||(oo=!0,Ee.read(xd),Ee.resolveKeyframes(pd))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:l,name:i,element:o,motionValue:f}=this;if(l[0]===null){const h=f==null?void 0:f.get(),d=l[l.length-1];if(h!==void 0)l[0]=h;else if(o&&i){const p=o.readValue(i,d);p!=null&&(l[0]=p)}l[0]===void 0&&(l[0]=d),f&&h===void 0&&f.set(l[0])}W1(l)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(l=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,l),ua.delete(this)}cancel(){this.state==="scheduled"&&(ua.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ry=a=>a.startsWith("--");function gd(a,l,i){ry(l)?a.style.setProperty(l,i):a.style[l]=i}const oy={};function yd(a,l){const i=Rf(a);return()=>oy[l]??i()}const cy=yd(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),bd=yd(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bs=([a,l,i,o])=>`cubic-bezier(${a}, ${l}, ${i}, ${o})`,vd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bs([0,.65,.55,1]),circOut:Bs([.55,0,1,.45]),backIn:Bs([.31,.01,.66,-.59]),backOut:Bs([.33,1.53,.69,.99])};function jd(a,l){if(a)return typeof a=="function"?bd()?id(a,l):"ease-out":Xf(a)?Bs(a):Array.isArray(a)?a.map(i=>jd(i,l)||vd.easeOut):vd[a]}function uy(a,l,i,{delay:o=0,duration:f=300,repeat:h=0,repeatType:d="loop",ease:p="easeOut",times:g}={},x=void 0){const y={[l]:i};g&&(y.offset=g);const v=jd(p,f);Array.isArray(v)&&(y.easing=v);const j={delay:o,duration:f,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:h+1,direction:d==="reverse"?"alternate":"normal"};return x&&(j.pseudoElement=x),a.animate(y,j)}function Sd(a){return typeof a=="function"&&"applyToOptions"in a}function fy({type:a,...l}){return Sd(a)&&bd()?a.applyToOptions(l):(l.duration??(l.duration=300),l.ease??(l.ease="easeOut"),l)}class wd extends ao{constructor(l){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!l)return;const{element:i,name:o,keyframes:f,pseudoElement:h,allowFlatten:d=!1,finalKeyframe:p,onComplete:g}=l;this.isPseudoElement=!!h,this.allowFlatten=d,this.options=l,ql(typeof l.type!="string");const x=fy(l);this.animation=uy(i,o,f,x,h),x.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!h){const y=Kl(f,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(y),gd(i,o,y),this.animation.cancel()}g==null||g(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var l,i;(i=(l=this.animation).finish)==null||i.call(l)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:l}=this;l==="idle"||l==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var i,o,f;const l=(i=this.options)==null?void 0:i.element;!this.isPseudoElement&&(l!=null&&l.isConnected)&&((f=(o=this.animation).commitStyles)==null||f.call(o))}get duration(){var i,o;const l=((o=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:o.call(i).duration)||0;return zt(Number(l))}get iterationDuration(){const{delay:l=0}=this.options||{};return this.duration+zt(l)}get time(){return zt(Number(this.animation.currentTime)||0)}set time(l){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=jt(l),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(l){l<0&&(this.finishedTime=null),this.animation.playbackRate=l}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(l){this.manualStartTime=this.animation.startTime=l}attachTimeline({timeline:l,rangeStart:i,rangeEnd:o,observe:f}){var h;return this.allowFlatten&&((h=this.animation.effect)==null||h.updateTiming({easing:"linear"})),this.animation.onfinish=null,l&&cy()?(this.animation.timeline=l,i&&(this.animation.rangeStart=i),o&&(this.animation.rangeEnd=o),Rt):f(this)}}const Nd={anticipate:Hf,backInOut:Uf,circInOut:Gf};function dy(a){return a in Nd}function hy(a){typeof a.ease=="string"&&dy(a.ease)&&(a.ease=Nd[a.ease])}const ho=10;class my extends wd{constructor(l){hy(l),ud(l),super(l),l.startTime!==void 0&&l.autoplay!==!1&&(this.startTime=l.startTime),this.options=l}updateMotionValue(l){const{motionValue:i,onUpdate:o,onComplete:f,element:h,...d}=this.options;if(!i)return;if(l!==void 0){i.set(l);return}const p=new Vs({...d,autoplay:!1}),g=Math.max(ho,ft.now()-this.startTime),x=It(0,ho,g-ho),y=p.sample(g).value,{name:v}=this.options;h&&v&&gd(h,v,y),i.setWithVelocity(p.sample(Math.max(0,g-x)).value,y,x),p.stop()}}const Td=(a,l)=>l==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(Zt.test(a)||a==="0")&&!a.startsWith("url("));function py(a){const l=a[0];if(a.length===1)return!0;for(let i=0;i<a.length;i++)if(a[i]!==l)return!0}function xy(a,l,i,o){const f=a[0];if(f===null)return!1;if(l==="display"||l==="visibility")return!0;const h=a[a.length-1],d=Td(f,l),p=Td(h,l);return!d||!p?!1:py(a)||(i==="spring"||Sd(i))&&o}function mo(a){a.duration=0,a.type="keyframes"}const Ad=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),gy=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function yy(a){for(let l=0;l<a.length;l++)if(typeof a[l]=="string"&&gy.test(a[l]))return!0;return!1}const by=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),vy=Rf(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jy(a){var v;const{motionValue:l,name:i,repeatDelay:o,repeatType:f,damping:h,type:d,keyframes:p}=a,g=(v=l==null?void 0:l.owner)==null?void 0:v.current;if(!(g instanceof HTMLElement)&&!(g instanceof SVGElement))return!1;const{onUpdate:x,transformTemplate:y}=l.owner.getProps();return vy()&&i&&(Ad.has(i)||by.has(i)&&yy(p))&&(i!=="transform"||!y)&&!x&&!o&&f!=="mirror"&&h!==0&&d!=="inertia"}const Sy=40;class wy extends ao{constructor({autoplay:l=!0,delay:i=0,type:o="keyframes",repeat:f=0,repeatDelay:h=0,repeatType:d="loop",keyframes:p,name:g,motionValue:x,element:y,...v}){var E;super(),this.stop=()=>{var O,V;this._animation&&(this._animation.stop(),(O=this.stopTimeline)==null||O.call(this)),(V=this.keyframeResolver)==null||V.cancel()},this.createdAt=ft.now();const j={autoplay:l,delay:i,type:o,repeat:f,repeatDelay:h,repeatType:d,name:g,motionValue:x,element:y,...v},T=(y==null?void 0:y.KeyframeResolver)||fo;this.keyframeResolver=new T(p,(O,V,G)=>this.onKeyframesResolved(O,V,j,!G),g,x,y),(E=this.keyframeResolver)==null||E.scheduleResolve()}onKeyframesResolved(l,i,o,f){var G,Y;this.keyframeResolver=void 0;const{name:h,type:d,velocity:p,delay:g,isHandoff:x,onUpdate:y}=o;this.resolvedAt=ft.now();let v=!0;xy(l,h,d,p)||(v=!1,(Dn.instantAnimations||!g)&&(y==null||y(Kl(l,o,i))),l[0]=l[l.length-1],mo(o),o.repeat=0);const T={startTime:f?this.resolvedAt?this.resolvedAt-this.createdAt>Sy?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...o,keyframes:l},E=v&&!x&&jy(T),O=(Y=(G=T.motionValue)==null?void 0:G.owner)==null?void 0:Y.current;let V;if(E)try{V=new my({...T,element:O})}catch{V=new Vs(T)}else V=new Vs(T);V.finished.then(()=>{this.notifyFinished()}).catch(Rt),this.pendingTimeline&&(this.stopTimeline=V.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=V}get finished(){return this._animation?this.animation.finished:this._finished}then(l,i){return this.finished.finally(l).then(()=>{})}get animation(){var l;return this._animation||((l=this.keyframeResolver)==null||l.resume(),iy()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(l){this.animation.time=l}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(l){this.animation.speed=l}get startTime(){return this.animation.startTime}attachTimeline(l){return this._animation?this.stopTimeline=this.animation.attachTimeline(l):this.pendingTimeline=l,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var l;this._animation&&this.animation.cancel(),(l=this.keyframeResolver)==null||l.cancel()}}function Cd(a,l,i,o=0,f=1){const h=Array.from(a).sort((x,y)=>x.sortNodePosition(y)).indexOf(l),d=a.size,p=(d-1)*o;return typeof i=="function"?i(h,d):f===1?h*o:p-h*o}const Ed=30,Ny=a=>!isNaN(parseFloat(a)),Ls={current:void 0};class Ty{constructor(l,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{var h;const f=ft.now();if(this.updatedAt!==f&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((h=this.events.change)==null||h.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(l),this.owner=i.owner}setCurrent(l){this.current=l,this.updatedAt=ft.now(),this.canTrackVelocity===null&&l!==void 0&&(this.canTrackVelocity=Ny(this.current))}setPrevFrameValue(l=this.current){this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt}onChange(l){return this.on("change",l)}on(l,i){this.events[l]||(this.events[l]=new Hr);const o=this.events[l].add(i);return l==="change"?()=>{o(),Ee.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const l in this.events)this.events[l].clear()}attach(l,i){this.passiveEffect=l,this.stopPassiveEffect=i}set(l){this.passiveEffect?this.passiveEffect(l,this.updateAndNotify):this.updateAndNotify(l)}setWithVelocity(l,i,o){this.set(i),this.prev=void 0,this.prevFrameValue=l,this.prevUpdatedAt=this.updatedAt-o}jump(l,i=!0){this.updateAndNotify(l),this.prev=l,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var l;(l=this.events.change)==null||l.notify(this.current)}addDependent(l){this.dependents||(this.dependents=new Set),this.dependents.add(l)}removeDependent(l){this.dependents&&this.dependents.delete(l)}get(){return Ls.current&&Ls.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const l=ft.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||l-this.updatedAt>Ed)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,Ed);return zf(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(l){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=l(i),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var l,i;(l=this.dependents)==null||l.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fa(a,l){return new Ty(a,l)}function _d(a,l){if(a!=null&&a.inherit&&l){const{inherit:i,...o}=a;return{...l,...o}}return a}function po(a,l){const i=(a==null?void 0:a[l])??(a==null?void 0:a.default)??a;return i!==a?_d(i,a):i}const Ay={type:"spring",stiffness:500,damping:25,restSpeed:10},Cy=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),Ey={type:"keyframes",duration:.8},_y={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Dy=(a,{keyframes:l})=>l.length>2?Ey:La.has(a)?a.startsWith("scale")?Cy(l[1]):Ay:_y,My=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ky(a){for(const l in a)if(!My.has(l))return!0;return!1}const xo=(a,l,i,o={},f,h)=>d=>{const p=po(o,a)||{},g=p.delay||o.delay||0;let{elapsed:x=0}=o;x=x-jt(g);const y={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:l.getVelocity(),...p,delay:-x,onUpdate:j=>{l.set(j),p.onUpdate&&p.onUpdate(j)},onComplete:()=>{d(),p.onComplete&&p.onComplete()},name:a,motionValue:l,element:h?void 0:f};ky(p)||Object.assign(y,Dy(a,y)),y.duration&&(y.duration=jt(y.duration)),y.repeatDelay&&(y.repeatDelay=jt(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let v=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(mo(y),y.delay===0&&(v=!0)),(Dn.instantAnimations||Dn.skipAnimations||f!=null&&f.shouldSkipAnimations||p.skipAnimations)&&(v=!0,mo(y),y.delay=0),y.allowFlatten=!p.type&&!p.ease,v&&!h&&l.get()!==void 0){const j=Kl(y.keyframes,p);if(j!==void 0){Ee.update(()=>{y.onUpdate(j),y.onComplete()});return}}return p.isSync?new Vs(y):new wy(y)},Ry=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function zy(a){const l=Ry.exec(a);if(!l)return[,];const[,i,o,f]=l;return[`--${i??o}`,f]}function Dd(a,l,i=1){const[o,f]=zy(a);if(!o)return;const h=window.getComputedStyle(l).getPropertyValue(o);if(h){const d=h.trim();return Df(d)?parseFloat(d):d}return Xr(f)?Dd(f,l,i+1):f}function Md(a){const l=[{},{}];return a==null||a.values.forEach((i,o)=>{l[0][o]=i.get(),l[1][o]=i.getVelocity()}),l}function go(a,l,i,o){if(typeof l=="function"){const[f,h]=Md(o);l=l(i!==void 0?i:a.custom,f,h)}if(typeof l=="string"&&(l=a.variants&&a.variants[l]),typeof l=="function"){const[f,h]=Md(o);l=l(i!==void 0?i:a.custom,f,h)}return l}function da(a,l,i){const o=a.getProps();return go(o,l,i!==void 0?i:o.custom,a)}const kd=new Set(["width","height","top","left","right","bottom",...Ba]),yo=a=>Array.isArray(a);function Oy(a,l,i){a.hasValue(l)?a.getValue(l).set(i):a.addValue(l,fa(i))}function Vy(a){return yo(a)?a[a.length-1]||0:a}function By(a,l){const i=da(a,l);let{transitionEnd:o={},transition:f={},...h}=i||{};h={...h,...o};for(const d in h){const p=Vy(h[d]);Oy(a,d,p)}}const Pe=a=>!!(a&&a.getVelocity);function Ly(a){return!!(Pe(a)&&a.add)}function bo(a,l){const i=a.getValue("willChange");if(Ly(i))return i.add(l);if(!i&&Dn.WillChange){const o=new Dn.WillChange("auto");a.addValue("willChange",o),o.add(l)}}function vo(a){return a.replace(/([A-Z])/g,l=>`-${l.toLowerCase()}`)}const Rd="data-"+vo("framerAppearId");function zd(a){return a.props[Rd]}function Uy({protectedKeys:a,needsAnimating:l},i){const o=a.hasOwnProperty(i)&&l[i]!==!0;return l[i]=!1,o}function Od(a,l,{delay:i=0,transitionOverride:o,type:f}={}){let{transition:h,transitionEnd:d,...p}=l;const g=a.getDefaultTransition();h=h?_d(h,g):g;const x=h==null?void 0:h.reduceMotion,y=h==null?void 0:h.skipAnimations;o&&(h=o);const v=[],j=f&&a.animationState&&a.animationState.getState()[f],T=h==null?void 0:h.path;T&&T.animateVisualElement(a,p,h,i,v);for(const E in p){const O=a.getValue(E,a.latestValues[E]??null),V=p[E];if(V===void 0||j&&Uy(j,E))continue;const G={delay:i,...po(h||{},E)};y&&(G.skipAnimations=!0);const Y=O.get();if(Y!==void 0&&!O.isAnimating()&&!Array.isArray(V)&&V===Y&&!G.velocity){Ee.update(()=>O.set(V));continue}let X=!1;if(window.MotionHandoffAnimation){const oe=zd(a);if(oe){const $=window.MotionHandoffAnimation(oe,E,Ee);$!==null&&(G.startTime=$,X=!0)}}bo(a,E);const U=x??a.shouldReduceMotion;O.start(xo(E,O,V,U&&kd.has(E)?{type:!1}:G,a,X));const K=O.animation;K&&v.push(K)}if(d){const E=()=>Ee.update(()=>{d&&By(a,d)});v.length?Promise.all(v).then(E):E()}return v}function jo(a,l,i={}){var g;const o=da(a,l,i.type==="exit"?(g=a.presenceContext)==null?void 0:g.custom:void 0);let{transition:f=a.getDefaultTransition()||{}}=o||{};i.transitionOverride&&(f=i.transitionOverride);const h=o?()=>Promise.all(Od(a,o,i)):()=>Promise.resolve(),d=a.variantChildren&&a.variantChildren.size?(x=0)=>{const{delayChildren:y=0,staggerChildren:v,staggerDirection:j}=f;return Hy(a,l,x,y,v,j,i)}:()=>Promise.resolve(),{when:p}=f;if(p){const[x,y]=p==="beforeChildren"?[h,d]:[d,h];return x().then(()=>y())}else return Promise.all([h(),d(i.delay)])}function Hy(a,l,i=0,o=0,f=0,h=1,d){const p=[];for(const g of a.variantChildren)g.notify("AnimationStart",l),p.push(jo(g,l,{...d,delay:i+(typeof o=="function"?0:o)+Cd(a.variantChildren,g,o,f,h)}).then(()=>g.notify("AnimationComplete",l)));return Promise.all(p)}function qy(a,l,i={}){a.notify("AnimationStart",l);let o;if(Array.isArray(l)){const f=l.map(h=>jo(a,h,i));o=Promise.all(f)}else if(typeof l=="string")o=jo(a,l,i);else{const f=typeof l=="function"?da(a,l,i.custom):l;o=Promise.all(Od(a,f,i))}return o.then(()=>{a.notify("AnimationComplete",l)})}const Gy={test:a=>a==="auto",parse:a=>a},Vd=a=>l=>l.test(a),Bd=[za,ie,en,un,x1,p1,Gy],Ld=a=>Bd.find(Vd(a));function Yy(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||kf(a):!0}const Xy=new Set(["brightness","contrast","saturate","opacity"]);function Fy(a){const[l,i]=a.slice(0,-1).split("(");if(l==="drop-shadow")return a;const[o]=i.match(Fr)||[];if(!o)return a;const f=i.replace(o,"");let h=Xy.has(l)?1:0;return o!==i&&(h*=100),l+"("+h+f+")"}const Zy=/\b([a-z-]*)\(.*?\)/gu,So={...Zt,getAnimatableNone:a=>{const l=a.match(Zy);return l?l.map(Fy).join(" "):a}},wo={...Zt,getAnimatableNone:a=>{const l=Zt.parse(a);return Zt.createTransformer(a)(l.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}},Ud={...za,transform:Math.round},$l={borderWidth:ie,borderTopWidth:ie,borderRightWidth:ie,borderBottomWidth:ie,borderLeftWidth:ie,borderRadius:ie,borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomRightRadius:ie,borderBottomLeftRadius:ie,width:ie,maxWidth:ie,height:ie,maxHeight:ie,top:ie,right:ie,bottom:ie,left:ie,inset:ie,insetBlock:ie,insetBlockStart:ie,insetBlockEnd:ie,insetInline:ie,insetInlineStart:ie,insetInlineEnd:ie,padding:ie,paddingTop:ie,paddingRight:ie,paddingBottom:ie,paddingLeft:ie,paddingBlock:ie,paddingBlockStart:ie,paddingBlockEnd:ie,paddingInline:ie,paddingInlineStart:ie,paddingInlineEnd:ie,margin:ie,marginTop:ie,marginRight:ie,marginBottom:ie,marginLeft:ie,marginBlock:ie,marginBlockStart:ie,marginBlockEnd:ie,marginInline:ie,marginInlineStart:ie,marginInlineEnd:ie,fontSize:ie,backgroundPositionX:ie,backgroundPositionY:ie,...{rotate:un,pathRotation:un,rotateX:un,rotateY:un,rotateZ:un,scale:Xl,scaleX:Xl,scaleY:Xl,scaleZ:Xl,skew:un,skewX:un,skewY:un,distance:ie,translateX:ie,translateY:ie,translateZ:ie,x:ie,y:ie,z:ie,perspective:ie,transformPerspective:ie,opacity:ks,originX:Pf,originY:Pf,originZ:ie},zIndex:Ud,fillOpacity:ks,strokeOpacity:ks,numOctaves:Ud},Qy={...$l,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:So,WebkitFilter:So,mask:wo,WebkitMask:wo},Hd=a=>Qy[a],Ky=new Set([So,wo]);function qd(a,l){let i=Hd(a);return Ky.has(i)||(i=Zt),i.getAnimatableNone?i.getAnimatableNone(l):void 0}const $y=new Set(["auto","none","0"]);function Jy(a,l,i){let o=0,f;for(;o<a.length&&!f;){const h=a[o];typeof h=="string"&&!$y.has(h)&&Va(h).values.length&&(f=a[o]),o++}if(f&&i)for(const h of l)a[h]=qd(i,f)}class Py extends fo{constructor(l,i,o,f,h){super(l,i,o,f,h,!0)}readKeyframes(){const{unresolvedKeyframes:l,element:i,name:o}=this;if(!i||!i.current)return;super.readKeyframes();for(let y=0;y<l.length;y++){let v=l[y];if(typeof v=="string"&&(v=v.trim(),Xr(v))){const j=Dd(v,i.current);j!==void 0&&(l[y]=j),y===l.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!kd.has(o)||l.length!==2)return;const[f,h]=l,d=Ld(f),p=Ld(h),g=$f(f),x=$f(h);if(g!==x&&Mn[o]){this.needsMeasurement=!0;return}if(d!==p)if(md(d)&&md(p))for(let y=0;y<l.length;y++){const v=l[y];typeof v=="string"&&(l[y]=parseFloat(v))}else Mn[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:l,name:i}=this,o=[];for(let f=0;f<l.length;f++)(l[f]===null||Yy(l[f]))&&o.push(f);o.length&&Jy(l,o,i)}measureInitialState(){const{element:l,unresolvedKeyframes:i,name:o}=this;if(!l||!l.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Mn[o](l.measureViewportBox(),window.getComputedStyle(l.current)),i[0]=this.measuredOrigin;const f=i[i.length-1];f!==void 0&&l.getValue(o,f).jump(f,!1)}measureEndState(){var p;const{element:l,name:i,unresolvedKeyframes:o}=this;if(!l||!l.current)return;const f=l.getValue(i);f&&f.jump(this.measuredOrigin,!1);const h=o.length-1,d=o[h];o[h]=Mn[i](l.measureViewportBox(),window.getComputedStyle(l.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),(p=this.removedTransforms)!=null&&p.length&&this.removedTransforms.forEach(([g,x])=>{l.getValue(g).set(x)}),this.resolveNoneKeyframes()}}const No=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Gd(a,l,i){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let o=document;const f=(i==null?void 0:i[a])??o.querySelectorAll(a);return f?Array.from(f):[]}return Array.from(a).filter(o=>o!=null)}const To=(a,l)=>l&&typeof a=="number"?l.transform(a):a;function Jl(a){return Mf(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Ao}=Zf(queueMicrotask,!1),Qt={x:!1,y:!1};function Yd(){return Qt.x||Qt.y}function Wy(a){return a==="x"||a==="y"?Qt[a]?null:(Qt[a]=!0,()=>{Qt[a]=!1}):Qt.x||Qt.y?null:(Qt.x=Qt.y=!0,()=>{Qt.x=Qt.y=!1})}function Xd(a,l){const i=Gd(a),o=new AbortController,f={passive:!0,...l,signal:o.signal};return[i,f,()=>o.abort()]}function Iy(a){return!(a.pointerType==="touch"||Yd())}function eb(a,l,i={}){const[o,f,h]=Xd(a,i);return o.forEach(d=>{let p=!1,g=!1,x;const y=()=>{d.removeEventListener("pointerleave",E)},v=V=>{x&&(x(V),x=void 0),y()},j=V=>{p=!1,window.removeEventListener("pointerup",j),window.removeEventListener("pointercancel",j),g&&(g=!1,v(V))},T=()=>{p=!0,window.addEventListener("pointerup",j,f),window.addEventListener("pointercancel",j,f)},E=V=>{if(V.pointerType!=="touch"){if(p){g=!0;return}v(V)}},O=V=>{if(!Iy(V))return;g=!1;const G=l(d,V);typeof G=="function"&&(x=G,d.addEventListener("pointerleave",E,f))};d.addEventListener("pointerenter",O,f),d.addEventListener("pointerdown",T,f)}),h}const Fd=(a,l)=>l?a===l?!0:Fd(a,l.parentElement):!1,Co=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,tb=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nb(a){return tb.has(a.tagName)||a.isContentEditable===!0}const ab=new Set(["INPUT","SELECT","TEXTAREA"]);function sb(a){return ab.has(a.tagName)||a.isContentEditable===!0}const Pl=new WeakSet;function Zd(a){return l=>{l.key==="Enter"&&a(l)}}function Eo(a,l){a.dispatchEvent(new PointerEvent("pointer"+l,{isPrimary:!0,bubbles:!0}))}const lb=(a,l)=>{const i=a.currentTarget;if(!i)return;const o=Zd(()=>{if(Pl.has(i))return;Eo(i,"down");const f=Zd(()=>{Eo(i,"up")}),h=()=>Eo(i,"cancel");i.addEventListener("keyup",f,l),i.addEventListener("blur",h,l)});i.addEventListener("keydown",o,l),i.addEventListener("blur",()=>i.removeEventListener("keydown",o),l)};function Qd(a){return Co(a)&&!Yd()}const Kd=new WeakSet;function ib(a,l,i={}){const[o,f,h]=Xd(a,i),d=p=>{const g=p.currentTarget;if(!Qd(p)||Kd.has(p))return;Pl.add(g),i.stopPropagation&&Kd.add(p);const x=l(g,p),y={...f,capture:!0},v=(E,O)=>{window.removeEventListener("pointerup",j,y),window.removeEventListener("pointercancel",T,y),Pl.has(g)&&Pl.delete(g),Qd(E)&&typeof x=="function"&&x(E,{success:O})},j=E=>{v(E,g===window||g===document||i.useGlobalTarget||Fd(g,E.target))},T=E=>{v(E,!1)};window.addEventListener("pointerup",j,y),window.addEventListener("pointercancel",T,y)};return o.forEach(p=>{(i.useGlobalTarget?window:p).addEventListener("pointerdown",d,f),Jl(p)&&(p.addEventListener("focus",x=>lb(x,f)),!nb(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),h}function _o(a){return Mf(a)&&"ownerSVGElement"in a}const Wl=new WeakMap;let kn;const $d=(a,l,i)=>(o,f)=>f&&f[0]?f[0][a+"Size"]:_o(o)&&"getBBox"in o?o.getBBox()[l]:o[i],rb=$d("inline","width","offsetWidth"),ob=$d("block","height","offsetHeight");function cb({target:a,borderBoxSize:l}){var i;(i=Wl.get(a))==null||i.forEach(o=>{o(a,{get width(){return rb(a,l)},get height(){return ob(a,l)}})})}function ub(a){a.forEach(cb)}function fb(){typeof ResizeObserver>"u"||(kn=new ResizeObserver(ub))}function db(a,l){kn||fb();const i=Gd(a);return i.forEach(o=>{let f=Wl.get(o);f||(f=new Set,Wl.set(o,f)),f.add(l),kn==null||kn.observe(o)}),()=>{i.forEach(o=>{const f=Wl.get(o);f==null||f.delete(l),f!=null&&f.size||kn==null||kn.unobserve(o)})}}const Il=new Set;let Ua;function hb(){Ua=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Il.forEach(l=>l(a))},window.addEventListener("resize",Ua)}function mb(a){return Il.add(a),Ua||hb(),()=>{Il.delete(a),!Il.size&&typeof Ua=="function"&&(window.removeEventListener("resize",Ua),Ua=void 0)}}function Jd(a,l){return typeof a=="function"?mb(a):db(a,l)}function pb(a){return _o(a)&&a.tagName==="svg"}function xb(...a){const l=!Array.isArray(a[0]),i=l?0:-1,o=a[0+i],f=a[1+i],h=a[2+i],d=a[3+i],p=cd(f,h,d);return l?p(o):p}function gb(a,l,i={}){const o=a.get();let f=null,h=o,d;const p=typeof o=="string"?o.replace(/[\d.-]/g,""):void 0,g=()=>{f&&(f.stop(),f=null),a.animation=void 0},x=()=>{const v=Pd(a.get()),j=Pd(h);if(v===j){g();return}const T=f?f.getGeneratorVelocity():a.getVelocity();g(),f=new Vs({keyframes:[v,j],velocity:T,type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:d})},y=()=>{var v;x(),a.animation=f??void 0,(v=a.events.animationStart)==null||v.notify(),f==null||f.then(()=>{var j;a.animation=void 0,(j=a.events.animationComplete)==null||j.notify()})};if(a.attach((v,j)=>{h=v,d=T=>j(Do(T,p)),Ee.postRender(y)},g),Pe(l)){let v=i.skipInitialAnimation===!0;const j=l.on("change",E=>{v?(v=!1,a.jump(Do(E,p),!1)):a.set(Do(E,p))}),T=a.on("destroy",j);return()=>{j(),T()}}return g}function Do(a,l){return l?a+l:a}function Pd(a){return typeof a=="number"?a:parseFloat(a)}const yb=[...Bd,Ze,Zt],bb=a=>yb.find(Vd(a)),Wd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ha=()=>({x:Wd(),y:Wd()}),Id=()=>({min:0,max:0}),We=()=>({x:Id(),y:Id()}),vb=new WeakMap;function ei(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function Us(a){return typeof a=="string"||Array.isArray(a)}const Mo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ko=["initial",...Mo];function ti(a){return ei(a.animate)||ko.some(l=>Us(a[l]))}function eh(a){return!!(ti(a)||a.variants)}function jb(a,l,i){for(const o in l){const f=l[o],h=i[o];if(Pe(f))a.addValue(o,f);else if(Pe(h))a.addValue(o,fa(f,{owner:a}));else if(h!==f)if(a.hasValue(o)){const d=a.getValue(o);d.liveStyle===!0?d.jump(f):d.hasAnimated||d.set(f)}else{const d=a.getStaticValue(o);a.addValue(o,fa(d!==void 0?d:f,{owner:a}))}}for(const o in i)l[o]===void 0&&a.removeValue(o);return l}const Ro={current:null},th={current:!1},Sb=typeof window<"u";function wb(){if(th.current=!0,!!Sb)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),l=()=>Ro.current=a.matches;a.addEventListener("change",l),l()}else Ro.current=!1}const nh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ni={};function ah(a){ni=a}function Nb(){return ni}class Tb{scrapeMotionValuesFromProps(l,i,o){return{}}constructor({parent:l,props:i,presenceContext:o,reducedMotionConfig:f,skipAnimations:h,blockInitialAnimation:d,visualState:p},g={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=fo,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=ft.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Ee.render(this.render,!1,!0))};const{latestValues:x,renderState:y}=p;this.latestValues=x,this.baseTarget={...x},this.initialValues=i.initial?{...x}:{},this.renderState=y,this.parent=l,this.props=i,this.presenceContext=o,this.depth=l?l.depth+1:0,this.reducedMotionConfig=f,this.skipAnimationsConfig=h,this.options=g,this.blockInitialAnimation=!!d,this.isControllingVariants=ti(i),this.isVariantNode=eh(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(l&&l.current);const{willChange:v,...j}=this.scrapeMotionValuesFromProps(i,{},this);for(const T in j){const E=j[T];x[T]!==void 0&&Pe(E)&&E.set(x[T])}}mount(l){var i,o;if(this.hasBeenMounted)for(const f in this.initialValues)(i=this.values.get(f))==null||i.jump(this.initialValues[f]),this.latestValues[f]=this.initialValues[f];this.current=l,vb.set(l,this),this.projection&&!this.projection.instance&&this.projection.mount(l),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((f,h)=>this.bindToMotionValue(h,f)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(th.current||wb(),this.shouldReduceMotion=Ro.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(o=this.parent)==null||o.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var l;this.projection&&this.projection.unmount(),cn(this.notifyUpdate),cn(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(l=this.parent)==null||l.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const o=this.features[i];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(l){this.children.add(l),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(l)}removeChild(l){this.children.delete(l),this.enteringChildren&&this.enteringChildren.delete(l)}bindToMotionValue(l,i){if(this.valueSubscriptions.has(l)&&this.valueSubscriptions.get(l)(),i.accelerate&&Ad.has(l)&&this.current instanceof HTMLElement){const{factory:d,keyframes:p,times:g,ease:x,duration:y}=i.accelerate,v=new wd({element:this.current,name:l,keyframes:p,times:g,ease:x,duration:jt(y)}),j=d(v);this.valueSubscriptions.set(l,()=>{j(),v.cancel()});return}const o=La.has(l);o&&this.onBindTransform&&this.onBindTransform();const f=i.on("change",d=>{this.latestValues[l]=d,this.props.onUpdate&&Ee.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let h;typeof window<"u"&&window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,l,i)),this.valueSubscriptions.set(l,()=>{f(),h&&h()})}sortNodePosition(l){return!this.current||!this.sortInstanceNodePosition||this.type!==l.type?0:this.sortInstanceNodePosition(this.current,l.current)}updateFeatures(){let l="animation";for(l in ni){const i=ni[l];if(!i)continue;const{isEnabled:o,Feature:f}=i;if(!this.features[l]&&f&&o(this.props)&&(this.features[l]=new f(this)),this.features[l]){const h=this.features[l];h.isMounted?h.update():(h.mount(),h.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):We()}getStaticValue(l){return this.latestValues[l]}setStaticValue(l,i){this.latestValues[l]=i}update(l,i){(l.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=l,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let o=0;o<nh.length;o++){const f=nh[o];this.propEventSubscriptions[f]&&(this.propEventSubscriptions[f](),delete this.propEventSubscriptions[f]);const h="on"+f,d=l[h];d&&(this.propEventSubscriptions[f]=this.on(f,d))}this.prevMotionValues=jb(this,this.scrapeMotionValuesFromProps(l,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(l){return this.props.variants?this.props.variants[l]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(l){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(l),()=>i.variantChildren.delete(l)}addValue(l,i){const o=this.values.get(l);i!==o&&(o&&this.removeValue(l),this.bindToMotionValue(l,i),this.values.set(l,i),this.latestValues[l]=i.get())}removeValue(l){this.values.delete(l);const i=this.valueSubscriptions.get(l);i&&(i(),this.valueSubscriptions.delete(l)),delete this.latestValues[l],this.removeValueFromRenderState(l,this.renderState)}hasValue(l){return this.values.has(l)}getValue(l,i){if(this.props.values&&this.props.values[l])return this.props.values[l];let o=this.values.get(l);return o===void 0&&i!==void 0&&(o=fa(i===null?void 0:i,{owner:this}),this.addValue(l,o)),o}readValue(l,i){let o=this.latestValues[l]!==void 0||!this.current?this.latestValues[l]:this.getBaseTargetFromProps(this.props,l)??this.readValueFromInstance(this.current,l,this.options);return o!=null&&(typeof o=="string"&&(Df(o)||kf(o))?o=parseFloat(o):!bb(o)&&Zt.test(i)&&(o=qd(l,i)),this.setBaseTarget(l,Pe(o)?o.get():o)),Pe(o)?o.get():o}setBaseTarget(l,i){this.baseTarget[l]=i}getBaseTarget(l){var h;const{initial:i}=this.props;let o;if(typeof i=="string"||typeof i=="object"){const d=go(this.props,i,(h=this.presenceContext)==null?void 0:h.custom);d&&(o=d[l])}if(i&&o!==void 0)return o;const f=this.getBaseTargetFromProps(this.props,l);return f!==void 0&&!Pe(f)?f:this.initialValues[l]!==void 0&&o===void 0?void 0:this.baseTarget[l]}on(l,i){return this.events[l]||(this.events[l]=new Hr),this.events[l].add(i)}notify(l,...i){this.events[l]&&this.events[l].notify(...i)}scheduleRenderMicrotask(){Ao.render(this.render)}}class sh extends Tb{constructor(){super(...arguments),this.KeyframeResolver=Py}sortInstanceNodePosition(l,i){return l.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(l,i){const o=l.style;return o?o[i]:void 0}removeValueFromRenderState(l,{vars:i,style:o}){delete i[l],delete o[l]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:l}=this.props;Pe(l)&&(this.childSubscription=l.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}class Rn{constructor(l){this.isMounted=!1,this.node=l}update(){}}function lh({top:a,left:l,right:i,bottom:o}){return{x:{min:l,max:i},y:{min:a,max:o}}}function Ab({x:a,y:l}){return{top:l.min,right:a.max,bottom:l.max,left:a.min}}function Cb(a,l){if(!l)return a;const i=l({x:a.left,y:a.top}),o=l({x:a.right,y:a.bottom});return{top:i.y,left:i.x,bottom:o.y,right:o.x}}function zo(a){return a===void 0||a===1}function Oo({scale:a,scaleX:l,scaleY:i}){return!zo(a)||!zo(l)||!zo(i)}function ha(a){return Oo(a)||ih(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function ih(a){return rh(a.x)||rh(a.y)}function rh(a){return a&&a!=="0%"}function ai(a,l,i){const o=a-i,f=l*o;return i+f}function oh(a,l,i,o,f){return f!==void 0&&(a=ai(a,f,o)),ai(a,i,o)+l}function Vo(a,l=0,i=1,o,f){a.min=oh(a.min,l,i,o,f),a.max=oh(a.max,l,i,o,f)}function ch(a,{x:l,y:i}){Vo(a.x,l.translate,l.scale,l.originPoint),Vo(a.y,i.translate,i.scale,i.originPoint)}const uh=.999999999999,fh=1.0000000000001;function Eb(a,l,i,o=!1){var p;const f=i.length;if(!f)return;l.x=l.y=1;let h,d;for(let g=0;g<f;g++){h=i[g],d=h.projectionDelta;const{visualElement:x}=h.options;x&&x.props.style&&x.props.style.display==="contents"||(o&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(tn(a.x,-h.scroll.offset.x),tn(a.y,-h.scroll.offset.y)),d&&(l.x*=d.x.scale,l.y*=d.y.scale,ch(a,d)),o&&ha(h.latestValues)&&si(a,h.latestValues,(p=h.layout)==null?void 0:p.layoutBox))}l.x<fh&&l.x>uh&&(l.x=1),l.y<fh&&l.y>uh&&(l.y=1)}function tn(a,l){a.min+=l,a.max+=l}function dh(a,l,i,o,f=.5){const h=Oe(a.min,a.max,f);Vo(a,l,i,h,o)}function hh(a,l){return typeof a=="string"?parseFloat(a)/100*(l.max-l.min):a}function si(a,l,i){const o=i??a;dh(a.x,hh(l.x,o.x),l.scaleX,l.scale,l.originX),dh(a.y,hh(l.y,o.y),l.scaleY,l.scale,l.originY)}function mh(a,l){return lh(Cb(a.getBoundingClientRect(),l))}function _b(a,l,i){const o=mh(a,i),{scroll:f}=l;return f&&(tn(o.x,f.offset.x),tn(o.y,f.offset.y)),o}const Db={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mb=Ba.length;function kb(a,l,i){let o="",f=!0;for(let d=0;d<Mb;d++){const p=Ba[d],g=a[p];if(g===void 0)continue;let x=!0;if(typeof g=="number")x=g===(p.startsWith("scale")?1:0);else{const y=parseFloat(g);x=p.startsWith("scale")?y===1:y===0}if(!x||i){const y=To(g,$l[p]);if(!x){f=!1;const v=Db[p]||p;o+=`${v}(${y}) `}i&&(l[p]=y)}}const h=a.pathRotation;return h&&(f=!1,o+=`rotate(${To(h,$l.pathRotation)}) `),o=o.trim(),i?o=i(l,f?"":o):f&&(o="none"),o}function Bo(a,l,i){const{style:o,vars:f,transformOrigin:h}=a;let d=!1,p=!1;for(const g in l){const x=l[g];if(La.has(g)){d=!0;continue}else if(Kf(g)){f[g]=x;continue}else{const y=To(x,$l[g]);g.startsWith("origin")?(p=!0,h[g]=y):o[g]=y}}if(l.transform||(d||i?o.transform=kb(l,a.transform,i):o.transform&&(o.transform="none")),p){const{originX:g="50%",originY:x="50%",originZ:y=0}=h;o.transformOrigin=`${g} ${x} ${y}`}}function ph(a,{style:l,vars:i},o,f){const h=a.style;let d;for(d in l)h[d]=l[d];f==null||f.applyProjectionStyles(h,o);for(d in i)h.setProperty(d,i[d])}function xh(a,l){return l.max===l.min?0:a/(l.max-l.min)*100}const Hs={correct:(a,l)=>{if(!l.target)return a;if(typeof a=="string")if(ie.test(a))a=parseFloat(a);else return a;const i=xh(a,l.target.x),o=xh(a,l.target.y);return`${i}% ${o}%`}},Rb={correct:(a,{treeScale:l,projectionDelta:i})=>{const o=a,f=Zt.parse(a);if(f.length>5)return o;const h=Zt.createTransformer(a),d=typeof f[0]!="number"?1:0,p=i.x.scale*l.x,g=i.y.scale*l.y;f[0+d]/=p,f[1+d]/=g;const x=Oe(p,g,.5);return typeof f[2+d]=="number"&&(f[2+d]/=x),typeof f[3+d]=="number"&&(f[3+d]/=x),h(f)}},Lo={borderRadius:{...Hs,applyTo:[...No]},borderTopLeftRadius:Hs,borderTopRightRadius:Hs,borderBottomLeftRadius:Hs,borderBottomRightRadius:Hs,boxShadow:Rb};function gh(a,{layout:l,layoutId:i}){return La.has(a)||a.startsWith("origin")||(l||i!==void 0)&&(!!Lo[a]||a==="opacity")}function Uo(a,l,i){var d;const o=a.style,f=l==null?void 0:l.style,h={};if(!o)return h;for(const p in o)(Pe(o[p])||f&&Pe(f[p])||gh(p,a)||((d=i==null?void 0:i.getValue(p))==null?void 0:d.liveStyle)!==void 0)&&(h[p]=o[p]);return h}function zb(a){return window.getComputedStyle(a)}class Ob extends sh{constructor(){super(...arguments),this.type="html",this.renderInstance=ph}mount(l){ql(!!l.style),super.mount(l)}readValueFromInstance(l,i){var o;if(La.has(i))return(o=this.projection)!=null&&o.isProjecting?io(i):ty(l,i);{const f=zb(l),h=(Kf(i)?f.getPropertyValue(i):f[i])||0;return typeof h=="string"?h.trim():h}}measureInstanceViewportBox(l,{transformPagePoint:i}){return mh(l,i)}build(l,i,o){Bo(l,i,o.transformTemplate)}scrapeMotionValuesFromProps(l,i,o){return Uo(l,i,o)}}const Vb={offset:"stroke-dashoffset",array:"stroke-dasharray"},Bb={offset:"strokeDashoffset",array:"strokeDasharray"};function Lb(a,l,i=1,o=0,f=!0){a.pathLength=1;const h=f?Vb:Bb;a[h.offset]=`${-o}`,a[h.array]=`${l} ${i}`}const Ub=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yh(a,{attrX:l,attrY:i,attrScale:o,pathLength:f,pathSpacing:h=1,pathOffset:d=0,...p},g,x,y){if(Bo(a,p,x),g){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:v,style:j}=a;v.transform&&(j.transform=v.transform,delete v.transform),(j.transform||v.transformOrigin)&&(j.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),j.transform&&(j.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete v.transformBox);for(const T of Ub)v[T]!==void 0&&(j[T]=v[T],delete v[T]);l!==void 0&&(v.x=l),i!==void 0&&(v.y=i),o!==void 0&&(v.scale=o),f!==void 0&&Lb(v,f,h,d,!1)}const bh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),vh=a=>typeof a=="string"&&a.toLowerCase()==="svg";function Hb(a,l,i,o){ph(a,l,void 0,o);for(const f in l.attrs)a.setAttribute(bh.has(f)?f:vo(f),l.attrs[f])}function jh(a,l,i){const o=Uo(a,l,i);for(const f in a)if(Pe(a[f])||Pe(l[f])){const h=Ba.indexOf(f)!==-1?"attr"+f.charAt(0).toUpperCase()+f.substring(1):f;o[h]=a[f]}return o}class qb extends sh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=We}getBaseTargetFromProps(l,i){return l[i]}readValueFromInstance(l,i){if(La.has(i)){const o=Hd(i);return o&&o.default||0}return i=bh.has(i)?i:vo(i),l.getAttribute(i)}scrapeMotionValuesFromProps(l,i,o){return jh(l,i,o)}build(l,i,o){yh(l,i,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(l,i,o,f){Hb(l,i,o,f)}mount(l){this.isSVGTag=vh(l.tagName),super.mount(l)}}const Gb=ko.length;function Sh(a){if(!a)return;if(!a.isControllingVariants){const i=a.parent?Sh(a.parent)||{}:{};return a.props.initial!==void 0&&(i.initial=a.props.initial),i}const l={};for(let i=0;i<Gb;i++){const o=ko[i],f=a.props[o];(Us(f)||f===!1)&&(l[o]=f)}return l}function wh(a,l){if(!Array.isArray(l))return!1;const i=l.length;if(i!==a.length)return!1;for(let o=0;o<i;o++)if(l[o]!==a[o])return!1;return!0}const Yb=[...Mo].reverse(),Xb=Mo.length;function Fb(a){return l=>Promise.all(l.map(({animation:i,options:o})=>qy(a,i,o)))}function Zb(a){let l=Fb(a),i=Nh(),o=!0,f=!1;const h=x=>(y,v)=>{var T;const j=da(a,v,x==="exit"?(T=a.presenceContext)==null?void 0:T.custom:void 0);if(j){const{transition:E,transitionEnd:O,...V}=j;y={...y,...V,...O}}return y};function d(x){l=x(a)}function p(x){const{props:y}=a,v=Sh(a.parent)||{},j=[],T=new Set;let E={},O=1/0;for(let G=0;G<Xb;G++){const Y=Yb[G],X=i[Y],U=y[Y]!==void 0?y[Y]:v[Y],K=Us(U),oe=Y===x?X.isActive:null;oe===!1&&(O=G);let $=U===v[Y]&&U!==y[Y]&&K;if($&&(o||f)&&a.manuallyAnimateOnMount&&($=!1),X.protectedKeys={...E},!X.isActive&&oe===null||!U&&!X.prevProp||ei(U)||typeof U=="boolean")continue;if(Y==="exit"&&X.isActive&&oe!==!0){X.prevResolvedValues&&(E={...E,...X.prevResolvedValues});continue}const I=Qb(X.prevProp,U);let se=I||Y===x&&X.isActive&&!$&&K||G>O&&K,ee=!1;const he=Array.isArray(U)?U:[U];let pe=he.reduce(h(Y),{});oe===!1&&(pe={});const{prevResolvedValues:Ce={}}=X,fe={...Ce,...pe},ae=A=>{se=!0,T.has(A)&&(ee=!0,T.delete(A)),X.needsAnimating[A]=!0;const B=a.getValue(A);B&&(B.liveStyle=!1)};for(const A in fe){const B=pe[A],P=Ce[A];if(E.hasOwnProperty(A))continue;let S=!1;yo(B)&&yo(P)?S=!wh(B,P)||I:S=B!==P,S?B!=null?ae(A):T.add(A):B!==void 0&&T.has(A)?ae(A):X.protectedKeys[A]=!0}X.prevProp=U,X.prevResolvedValues=pe,X.isActive&&(E={...E,...pe}),(o||f)&&a.blockInitialAnimation&&(se=!1);const _=$&&I;se&&(!_||ee)&&j.push(...he.map(A=>{const B={type:Y};if(typeof A=="string"&&(o||f)&&!_&&a.manuallyAnimateOnMount&&a.parent){const{parent:P}=a,S=da(P,A);if(P.enteringChildren&&S){const{delayChildren:R}=S.transition||{};B.delay=Cd(P.enteringChildren,a,R)}}return{animation:A,options:B}}))}if(T.size){const G={};if(typeof y.initial!="boolean"){const Y=da(a,Array.isArray(y.initial)?y.initial[0]:y.initial);Y&&Y.transition&&(G.transition=Y.transition)}T.forEach(Y=>{const X=a.getBaseTarget(Y),U=a.getValue(Y);U&&(U.liveStyle=!0),G[Y]=X??null}),j.push({animation:G})}let V=!!j.length;return o&&(y.initial===!1||y.initial===y.animate)&&!a.manuallyAnimateOnMount&&(V=!1),o=!1,f=!1,V?l(j):Promise.resolve()}function g(x,y){var j;if(i[x].isActive===y)return Promise.resolve();(j=a.variantChildren)==null||j.forEach(T=>{var E;return(E=T.animationState)==null?void 0:E.setActive(x,y)}),i[x].isActive=y;const v=p(x);for(const T in i)i[T].protectedKeys={};return v}return{animateChanges:p,setActive:g,setAnimateFunction:d,getState:()=>i,reset:()=>{i=Nh(),f=!0}}}function Qb(a,l){return typeof l=="string"?l!==a:Array.isArray(l)?!wh(l,a):!1}function ma(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Nh(){return{animate:ma(!0),whileInView:ma(),whileHover:ma(),whileTap:ma(),whileDrag:ma(),whileFocus:ma(),exit:ma()}}function Ho(a,l){a.min=l.min,a.max=l.max}function Kt(a,l){Ho(a.x,l.x),Ho(a.y,l.y)}function Th(a,l){a.translate=l.translate,a.scale=l.scale,a.originPoint=l.originPoint,a.origin=l.origin}const Ah=1e-4,Kb=1-Ah,$b=1+Ah,Ch=.01,Jb=0-Ch,Pb=0+Ch;function dt(a){return a.max-a.min}function Wb(a,l,i){return Math.abs(a-l)<=i}function Eh(a,l,i,o=.5){a.origin=o,a.originPoint=Oe(l.min,l.max,a.origin),a.scale=dt(i)/dt(l),a.translate=Oe(i.min,i.max,a.origin)-a.originPoint,(a.scale>=Kb&&a.scale<=$b||isNaN(a.scale))&&(a.scale=1),(a.translate>=Jb&&a.translate<=Pb||isNaN(a.translate))&&(a.translate=0)}function qs(a,l,i,o){Eh(a.x,l.x,i.x,o?o.originX:void 0),Eh(a.y,l.y,i.y,o?o.originY:void 0)}function _h(a,l,i,o=0){const f=o?Oe(i.min,i.max,o):i.min;a.min=f+l.min,a.max=a.min+dt(l)}function Ib(a,l,i,o){_h(a.x,l.x,i.x,o==null?void 0:o.x),_h(a.y,l.y,i.y,o==null?void 0:o.y)}function Dh(a,l,i,o=0){const f=o?Oe(i.min,i.max,o):i.min;a.min=l.min-f,a.max=a.min+dt(l)}function li(a,l,i,o){Dh(a.x,l.x,i.x,o==null?void 0:o.x),Dh(a.y,l.y,i.y,o==null?void 0:o.y)}function Mh(a,l,i,o,f){return a-=l,a=ai(a,1/i,o),f!==void 0&&(a=ai(a,1/f,o)),a}function ev(a,l=0,i=1,o=.5,f,h=a,d=a){if(en.test(l)&&(l=parseFloat(l),l=Oe(d.min,d.max,l/100)-d.min),typeof l!="number")return;let p=Oe(h.min,h.max,o);a===h&&(p-=l),a.min=Mh(a.min,l,i,p,f),a.max=Mh(a.max,l,i,p,f)}function kh(a,l,[i,o,f],h,d){ev(a,l[i],l[o],l[f],l.scale,h,d)}const tv=["x","scaleX","originX"],nv=["y","scaleY","originY"];function Rh(a,l,i,o){kh(a.x,l,tv,i?i.x:void 0,o?o.x:void 0),kh(a.y,l,nv,i?i.y:void 0,o?o.y:void 0)}function zh(a){return a.translate===0&&a.scale===1}function Oh(a){return zh(a.x)&&zh(a.y)}function Vh(a,l){return a.min===l.min&&a.max===l.max}function av(a,l){return Vh(a.x,l.x)&&Vh(a.y,l.y)}function Bh(a,l){return Math.round(a.min)===Math.round(l.min)&&Math.round(a.max)===Math.round(l.max)}function Lh(a,l){return Bh(a.x,l.x)&&Bh(a.y,l.y)}function Uh(a){return dt(a.x)/dt(a.y)}function Hh(a,l){return a.translate===l.translate&&a.scale===l.scale&&a.originPoint===l.originPoint}function nn(a){return[a("x"),a("y")]}function sv(a,l,i){let o="";const f=a.x.translate/l.x,h=a.y.translate/l.y,d=(i==null?void 0:i.z)||0;if((f||h||d)&&(o=`translate3d(${f}px, ${h}px, ${d}px) `),(l.x!==1||l.y!==1)&&(o+=`scale(${1/l.x}, ${1/l.y}) `),i){const{transformPerspective:x,rotate:y,pathRotation:v,rotateX:j,rotateY:T,skewX:E,skewY:O}=i;x&&(o=`perspective(${x}px) ${o}`),y&&(o+=`rotate(${y}deg) `),v&&(o+=`rotate(${v}deg) `),j&&(o+=`rotateX(${j}deg) `),T&&(o+=`rotateY(${T}deg) `),E&&(o+=`skewX(${E}deg) `),O&&(o+=`skewY(${O}deg) `)}const p=a.x.scale*l.x,g=a.y.scale*l.y;return(p!==1||g!==1)&&(o+=`scale(${p}, ${g})`),o||"none"}const lv=No.length,qh=a=>typeof a=="string"?parseFloat(a):a,Gh=a=>typeof a=="number"||ie.test(a);function iv(a,l,i,o,f,h){f?(a.opacity=Oe(0,i.opacity??1,rv(o)),a.opacityExit=Oe(l.opacity??1,0,ov(o))):h&&(a.opacity=Oe(l.opacity??1,i.opacity??1,o));for(let d=0;d<lv;d++){const p=No[d];let g=Yh(l,p),x=Yh(i,p);if(g===void 0&&x===void 0)continue;g||(g=0),x||(x=0),g===0||x===0||Gh(g)===Gh(x)?(a[p]=Math.max(Oe(qh(g),qh(x),o),0),(en.test(x)||en.test(g))&&(a[p]+="%")):a[p]=x}(l.rotate||i.rotate)&&(a.rotate=Oe(l.rotate||0,i.rotate||0,o))}function Yh(a,l){return a[l]!==void 0?a[l]:a.borderRadius}const rv=Xh(0,.5,qf),ov=Xh(.5,.95,Rt);function Xh(a,l,i){return o=>o<a?0:o>l?1:i(Ds(a,l,o))}function cv(a,l,i){const o=Pe(a)?a:fa(a);return o.start(xo("",o,l,i)),o.animation}function Gs(a,l,i,o={passive:!0}){return a.addEventListener(l,i,o),()=>a.removeEventListener(l,i,o)}const uv=(a,l)=>a.depth-l.depth;class fv{constructor(){this.children=[],this.isDirty=!1}add(l){Ur(this.children,l),this.isDirty=!0}remove(l){Hl(this.children,l),this.isDirty=!0}forEach(l){this.isDirty&&this.children.sort(uv),this.isDirty=!1,this.children.forEach(l)}}function dv(a,l){const i=ft.now(),o=({timestamp:f})=>{const h=f-i;h>=l&&(cn(o),a(h-l))};return Ee.setup(o,!0),()=>cn(o)}function ii(a){return Pe(a)?a.get():a}class hv{constructor(){this.members=[]}add(l){Ur(this.members,l);for(let i=this.members.length-1;i>=0;i--){const o=this.members[i];if(o===l||o===this.lead||o===this.prevLead)continue;const f=o.instance;(!f||f.isConnected===!1)&&!o.snapshot&&(Hl(this.members,o),o.unmount())}l.scheduleRender()}remove(l){if(Hl(this.members,l),l===this.prevLead&&(this.prevLead=void 0),l===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(l){var i;for(let o=this.members.indexOf(l)-1;o>=0;o--){const f=this.members[o];if(f.isPresent!==!1&&((i=f.instance)==null?void 0:i.isConnected)!==!1)return this.promote(f),!0}return!1}promote(l,i){var f;const o=this.lead;if(l!==o&&(this.prevLead=o,this.lead=l,l.show(),o)){o.updateSnapshot(),l.scheduleRender();const{layoutDependency:h}=o.options,{layoutDependency:d}=l.options;(h===void 0||h!==d)&&(l.resumeFrom=o,i&&(o.preserveOpacity=!0),o.snapshot&&(l.snapshot=o.snapshot,l.snapshot.latestValues=o.animationValues||o.latestValues),(f=l.root)!=null&&f.isUpdating&&(l.isLayoutDirty=!0)),l.options.crossfade===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(l=>{var i,o,f,h,d;(o=(i=l.options).onExitComplete)==null||o.call(i),(d=(f=l.resumingFrom)==null?void 0:(h=f.options).onExitComplete)==null||d.call(h)})}scheduleRender(){this.members.forEach(l=>l.instance&&l.scheduleRender(!1))}removeLeadSnapshot(){var l;(l=this.lead)!=null&&l.snapshot&&(this.lead.snapshot=void 0)}}const ri={hasAnimatedSinceResize:!0,hasEverUpdated:!1},qo=["","X","Y","Z"],mv=1e3;let pv=0;function Go(a,l,i,o){const{latestValues:f}=l;f[a]&&(i[a]=f[a],l.setStaticValue(a,0),o&&(o[a]=0))}function Fh(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:l}=a.options;if(!l)return;const i=zd(l);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:f,layoutId:h}=a.options;window.MotionCancelOptimisedAnimation(i,"transform",Ee,!(f||h))}const{parent:o}=a;o&&!o.hasCheckedOptimisedAppear&&Fh(o)}function Zh({attachResizeListener:a,defaultParent:l,measureScroll:i,checkIsScrollRoot:o,resetTransform:f}){return class{constructor(d={},p=l==null?void 0:l()){this.id=pv++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yv),this.nodes.forEach(Nv),this.nodes.forEach(Tv),this.nodes.forEach(bv)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=d,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let g=0;g<this.path.length;g++)this.path[g].shouldResetTransform=!0;this.root===this&&(this.nodes=new fv)}addEventListener(d,p){return this.eventHandlers.has(d)||this.eventHandlers.set(d,new Hr),this.eventHandlers.get(d).add(p)}notifyListeners(d,...p){const g=this.eventHandlers.get(d);g&&g.notify(...p)}hasListeners(d){return this.eventHandlers.has(d)}mount(d){if(this.instance)return;this.isSVG=_o(d)&&!pb(d),this.instance=d;const{layoutId:p,layout:g,visualElement:x}=this.options;if(x&&!x.current&&x.mount(d),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(g||p)&&(this.isLayoutDirty=!0),a){let y,v=0;const j=()=>this.root.updateBlockedByResize=!1;Ee.read(()=>{v=window.innerWidth}),a(d,()=>{const T=window.innerWidth;T!==v&&(v=T,this.root.updateBlockedByResize=!0,y&&y(),y=dv(j,250),ri.hasAnimatedSinceResize&&(ri.hasAnimatedSinceResize=!1,this.nodes.forEach($h)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&x&&(p||g)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:v,hasRelativeLayoutChanged:j,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||x.getDefaultTransition()||Dv,{onLayoutAnimationStart:O,onLayoutAnimationComplete:V}=x.getProps(),G=!this.targetLayout||!Lh(this.targetLayout,T),Y=!v&&j;if(this.options.layoutRoot||this.resumeFrom||Y||v&&(G||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const X={...po(E,"layout"),onPlay:O,onComplete:V};(x.shouldReduceMotion||this.options.layoutRoot)&&(X.delay=0,X.type=!1),this.startAnimation(X),this.setAnimationOrigin(y,Y,X.path)}else v||$h(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const d=this.getStack();d&&d.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),cn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Av),this.animationId++)}getTransformTemplate(){const{visualElement:d}=this.options;return d&&d.getProps().transformTemplate}willUpdate(d=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Fh(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const v=this.path[y];v.shouldResetTransform=!0,(typeof v.latestValues.x=="string"||typeof v.latestValues.y=="string")&&(v.isLayoutDirty=!0),v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:p,layout:g}=this.options;if(p===void 0&&!g)return;const x=this.getTransformTemplate();this.prevTransformTemplateValue=x?x(this.latestValues,""):void 0,this.updateSnapshot(),d&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const g=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),g&&this.nodes.forEach(jv),this.nodes.forEach(Qh);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Kh);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Sv),this.nodes.forEach(wv),this.nodes.forEach(xv),this.nodes.forEach(gv)):this.nodes.forEach(Kh),this.clearAllSnapshots();const p=ft.now();nt.delta=It(0,1e3/60,p-nt.timestamp),nt.timestamp=p,nt.isProcessing=!0,Yr.update.process(nt),Yr.preRender.process(nt),Yr.render.process(nt),nt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ao.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(vv),this.sharedNodes.forEach(Cv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ee.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ee.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!dt(this.snapshot.measuredBox.x)&&!dt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let g=0;g<this.path.length;g++)this.path[g].updateScroll();const d=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=We()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,d?d.layoutBox:void 0)}updateScroll(d="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===d&&(p=!1),p&&this.instance){const g=o(this.instance);this.scroll={animationId:this.root.animationId,phase:d,isRoot:g,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:g}}}resetTransform(){if(!f)return;const d=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!Oh(this.projectionDelta),g=this.getTransformTemplate(),x=g?g(this.latestValues,""):void 0,y=x!==this.prevTransformTemplateValue;d&&this.instance&&(p||ha(this.latestValues)||y)&&(f(this.instance,x),this.shouldResetTransform=!1,this.scheduleRender())}measure(d=!0){const p=this.measurePageBox();let g=this.removeElementScroll(p);return d&&(g=this.removeTransform(g)),Mv(g),{animationId:this.root.animationId,measuredBox:p,layoutBox:g,latestValues:{},source:this.id}}measurePageBox(){var x;const{visualElement:d}=this.options;if(!d)return We();const p=d.measureViewportBox();if(!(((x=this.scroll)==null?void 0:x.wasRoot)||this.path.some(kv))){const{scroll:y}=this.root;y&&(tn(p.x,y.offset.x),tn(p.y,y.offset.y))}return p}removeElementScroll(d){var g;const p=We();if(Kt(p,d),(g=this.scroll)!=null&&g.wasRoot)return p;for(let x=0;x<this.path.length;x++){const y=this.path[x],{scroll:v,options:j}=y;y!==this.root&&v&&j.layoutScroll&&(v.wasRoot&&Kt(p,d),tn(p.x,v.offset.x),tn(p.y,v.offset.y))}return p}applyTransform(d,p=!1,g){var y,v;const x=g||We();Kt(x,d);for(let j=0;j<this.path.length;j++){const T=this.path[j];!p&&T.options.layoutScroll&&T.scroll&&T!==T.root&&(tn(x.x,-T.scroll.offset.x),tn(x.y,-T.scroll.offset.y)),ha(T.latestValues)&&si(x,T.latestValues,(y=T.layout)==null?void 0:y.layoutBox)}return ha(this.latestValues)&&si(x,this.latestValues,(v=this.layout)==null?void 0:v.layoutBox),x}removeTransform(d){var g;const p=We();Kt(p,d);for(let x=0;x<this.path.length;x++){const y=this.path[x];if(!ha(y.latestValues))continue;let v;y.instance&&(Oo(y.latestValues)&&y.updateSnapshot(),v=We(),Kt(v,y.measurePageBox())),Rh(p,y.latestValues,(g=y.snapshot)==null?void 0:g.layoutBox,v)}return ha(this.latestValues)&&Rh(p,this.latestValues),p}setTargetDelta(d){this.targetDelta=d,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(d){this.options={...this.options,...d,crossfade:d.crossfade!==void 0?d.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==nt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(d=!1){var T;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const g=!!this.resumingFrom||this!==p;if(!(d||g&&this.isSharedProjectionDirty||this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:v}=this.options;if(!this.layout||!(y||v))return;this.resolvedRelativeTargetAt=nt.timestamp;const j=this.getClosestProjectingParent();j&&this.linkedParentVersion!==j.layoutVersion&&!j.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&j&&j.layout?this.createRelativeTarget(j,this.layout.layoutBox,j.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=We(),this.targetWithTransforms=We()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ib(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Kt(this.target,this.layout.layoutBox),ch(this.target,this.targetDelta)):Kt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?this.createRelativeTarget(j,this.target,j.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Oo(this.parent.latestValues)||ih(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(d,p,g){this.relativeParent=d,this.linkedParentVersion=d.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=We(),this.relativeTargetOrigin=We(),li(this.relativeTargetOrigin,p,g,this.options.layoutAnchor||void 0),Kt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var E;const d=this.getLead(),p=!!this.resumingFrom||this!==d;let g=!0;if((this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty)&&(g=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(g=!1),this.resolvedRelativeTargetAt===nt.timestamp&&(g=!1),g)return;const{layout:x,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(x||y))return;Kt(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,j=this.treeScale.y;Eb(this.layoutCorrected,this.treeScale,this.path,p),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=We());const{target:T}=d;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Th(this.prevProjectionDelta.x,this.projectionDelta.x),Th(this.prevProjectionDelta.y,this.projectionDelta.y)),qs(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==j||!Hh(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hh(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(d=!0){var p;if((p=this.options.visualElement)==null||p.scheduleRender(),d){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ha(),this.projectionDelta=Ha(),this.projectionDeltaWithTransform=Ha()}setAnimationOrigin(d,p=!1,g){const x=this.snapshot,y=x?x.latestValues:{},v={...this.latestValues},j=Ha();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const T=We(),E=x?x.source:void 0,O=this.layout?this.layout.source:void 0,V=E!==O,G=this.getStack(),Y=!G||G.members.length<=1,X=!!(V&&!Y&&this.options.crossfade===!0&&!this.path.some(_v));this.animationProgress=0;let U;const K=g==null?void 0:g.interpolateProjection(d);this.mixTargetDelta=oe=>{const $=oe/1e3,I=K==null?void 0:K($);I?(j.x.translate=I.x,j.x.scale=Oe(d.x.scale,1,$),j.x.origin=d.x.origin,j.x.originPoint=d.x.originPoint,j.y.translate=I.y,j.y.scale=Oe(d.y.scale,1,$),j.y.origin=d.y.origin,j.y.originPoint=d.y.originPoint):(Jh(j.x,d.x,$),Jh(j.y,d.y,$)),this.setTargetDelta(j),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(li(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ev(this.relativeTarget,this.relativeTargetOrigin,T,$),U&&av(this.relativeTarget,U)&&(this.isProjectionDirty=!1),U||(U=We()),Kt(U,this.relativeTarget)),V&&(this.animationValues=v,iv(v,y,this.latestValues,$,X,Y)),I&&I.rotate!==void 0&&(this.animationValues||(this.animationValues=v),this.animationValues.pathRotation=I.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(d){var p,g,x;this.notifyListeners("animationStart"),(p=this.currentAnimation)==null||p.stop(),(x=(g=this.resumingFrom)==null?void 0:g.currentAnimation)==null||x.stop(),this.pendingAnimation&&(cn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ee.update(()=>{ri.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=fa(0)),this.motionValue.jump(0,!1),this.currentAnimation=cv(this.motionValue,[0,1e3],{...d,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),d.onUpdate&&d.onUpdate(y)},onComplete:()=>{d.onComplete&&d.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const d=this.getStack();d&&d.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(mv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const d=this.getLead();let{targetWithTransforms:p,target:g,layout:x,latestValues:y}=d;if(!(!p||!g||!x)){if(this!==d&&this.layout&&x&&t0(this.options.animationType,this.layout.layoutBox,x.layoutBox)){g=this.target||We();const v=dt(this.layout.layoutBox.x);g.x.min=d.target.x.min,g.x.max=g.x.min+v;const j=dt(this.layout.layoutBox.y);g.y.min=d.target.y.min,g.y.max=g.y.min+j}Kt(p,g),si(p,y),qs(this.projectionDeltaWithTransform,this.layoutCorrected,p,y)}}registerSharedNode(d,p){this.sharedNodes.has(d)||this.sharedNodes.set(d,new hv),this.sharedNodes.get(d).add(p);const x=p.options.initialPromotionConfig;p.promote({transition:x?x.transition:void 0,preserveFollowOpacity:x&&x.shouldPreserveFollowOpacity?x.shouldPreserveFollowOpacity(p):void 0})}isLead(){const d=this.getStack();return d?d.lead===this:!0}getLead(){var p;const{layoutId:d}=this.options;return d?((p=this.getStack())==null?void 0:p.lead)||this:this}getPrevLead(){var p;const{layoutId:d}=this.options;return d?(p=this.getStack())==null?void 0:p.prevLead:void 0}getStack(){const{layoutId:d}=this.options;if(d)return this.root.sharedNodes.get(d)}promote({needsReset:d,transition:p,preserveFollowOpacity:g}={}){const x=this.getStack();x&&x.promote(this,g),d&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const d=this.getStack();return d?d.relegate(this):!1}resetSkewAndRotation(){const{visualElement:d}=this.options;if(!d)return;let p=!1;const{latestValues:g}=d;if((g.z||g.rotate||g.rotateX||g.rotateY||g.rotateZ||g.skewX||g.skewY)&&(p=!0),!p)return;const x={};g.z&&Go("z",d,x,this.animationValues);for(let y=0;y<qo.length;y++)Go(`rotate${qo[y]}`,d,x,this.animationValues),Go(`skew${qo[y]}`,d,x,this.animationValues);d.render();for(const y in x)d.setStaticValue(y,x[y]),this.animationValues&&(this.animationValues[y]=x[y]);d.scheduleRender()}applyProjectionStyles(d,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){d.visibility="hidden";return}const g=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,d.visibility="",d.opacity="",d.pointerEvents=ii(p==null?void 0:p.pointerEvents)||"",d.transform=g?g(this.latestValues,""):"none";return}const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){this.options.layoutId&&(d.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,d.pointerEvents=ii(p==null?void 0:p.pointerEvents)||""),this.hasProjected&&!ha(this.latestValues)&&(d.transform=g?g({},""):"none",this.hasProjected=!1);return}d.visibility="";const y=x.animationValues||x.latestValues;this.applyTransformsToTarget();let v=sv(this.projectionDeltaWithTransform,this.treeScale,y);g&&(v=g(y,v)),d.transform=v;const{x:j,y:T}=this.projectionDelta;d.transformOrigin=`${j.origin*100}% ${T.origin*100}% 0`,x.animationValues?d.opacity=x===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:d.opacity=x===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const E in Lo){if(y[E]===void 0)continue;const{correct:O,applyTo:V,isCSSVariable:G}=Lo[E],Y=v==="none"?y[E]:O(y[E],x);if(V){const X=V.length;for(let U=0;U<X;U++)d[V[U]]=Y}else G?this.options.visualElement.renderState.vars[E]=Y:d[E]=Y}this.options.layoutId&&(d.pointerEvents=x===this?ii(p==null?void 0:p.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(d=>{var p;return(p=d.currentAnimation)==null?void 0:p.stop()}),this.root.nodes.forEach(Qh),this.root.sharedNodes.clear()}}}function xv(a){a.updateLayout()}function gv(a){var i;const l=((i=a.resumeFrom)==null?void 0:i.snapshot)||a.snapshot;if(a.isLead()&&a.layout&&l&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:f}=a.layout,{animationType:h}=a.options,d=l.source!==a.layout.source;if(h==="size")nn(v=>{const j=d?l.measuredBox[v]:l.layoutBox[v],T=dt(j);j.min=o[v].min,j.max=j.min+T});else if(h==="x"||h==="y"){const v=h==="x"?"y":"x";Ho(d?l.measuredBox[v]:l.layoutBox[v],o[v])}else t0(h,l.layoutBox,o)&&nn(v=>{const j=d?l.measuredBox[v]:l.layoutBox[v],T=dt(o[v]);j.max=j.min+T,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[v].max=a.relativeTarget[v].min+T)});const p=Ha();qs(p,o,l.layoutBox);const g=Ha();d?qs(g,a.applyTransform(f,!0),l.measuredBox):qs(g,o,l.layoutBox);const x=!Oh(p);let y=!1;if(!a.resumeFrom){const v=a.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:j,layout:T}=v;if(j&&T){const E=a.options.layoutAnchor||void 0,O=We();li(O,l.layoutBox,j.layoutBox,E);const V=We();li(V,o,T.layoutBox,E),Lh(O,V)||(y=!0),v.options.layoutRoot&&(a.relativeTarget=V,a.relativeTargetOrigin=O,a.relativeParent=v)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:l,delta:g,layoutDelta:p,hasLayoutChanged:x,hasRelativeLayoutChanged:y})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function yv(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function bv(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function vv(a){a.clearSnapshot()}function Qh(a){a.clearMeasurements()}function jv(a){a.isLayoutDirty=!0,a.updateLayout()}function Kh(a){a.isLayoutDirty=!1}function Sv(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function wv(a){const{visualElement:l}=a.options;l&&l.getProps().onBeforeLayoutMeasure&&l.notify("BeforeLayoutMeasure"),a.resetTransform()}function $h(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function Nv(a){a.resolveTargetDelta()}function Tv(a){a.calcProjection()}function Av(a){a.resetSkewAndRotation()}function Cv(a){a.removeLeadSnapshot()}function Jh(a,l,i){a.translate=Oe(l.translate,0,i),a.scale=Oe(l.scale,1,i),a.origin=l.origin,a.originPoint=l.originPoint}function Ph(a,l,i,o){a.min=Oe(l.min,i.min,o),a.max=Oe(l.max,i.max,o)}function Ev(a,l,i,o){Ph(a.x,l.x,i.x,o),Ph(a.y,l.y,i.y,o)}function _v(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const Dv={duration:.45,ease:[.4,0,.1,1]},Wh=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Ih=Wh("applewebkit/")&&!Wh("chrome/")?Math.round:Rt;function e0(a){a.min=Ih(a.min),a.max=Ih(a.max)}function Mv(a){e0(a.x),e0(a.y)}function t0(a,l,i){return a==="position"||a==="preserve-aspect"&&!Wb(Uh(l),Uh(i),.2)}function kv(a){var l;return a!==a.root&&((l=a.scroll)==null?void 0:l.wasRoot)}const Rv=Zh({attachResizeListener:(a,l)=>Gs(a,"resize",l),measureScroll:()=>{var a,l;return{x:document.documentElement.scrollLeft||((a=document.body)==null?void 0:a.scrollLeft)||0,y:document.documentElement.scrollTop||((l=document.body)==null?void 0:l.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Yo={current:void 0},n0=Zh({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Yo.current){const a=new Rv({});a.mount(window),a.setOptions({layoutScroll:!0}),Yo.current=a}return Yo.current},resetTransform:(a,l)=>{a.style.transform=l!==void 0?l:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Ys=H.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function a0(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function zv(...a){return l=>{let i=!1;const o=a.map(f=>{const h=a0(f,l);return!i&&typeof h=="function"&&(i=!0),h});if(i)return()=>{for(let f=0;f<o.length;f++){const h=o[f];typeof h=="function"?h():a0(a[f],null)}}}}function Ov(...a){return H.useCallback(zv(...a),a)}class Vv extends H.Component{getSnapshotBeforeUpdate(l){const i=this.props.childRef.current;if(Jl(i)&&l.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const o=i.offsetParent,f=Jl(o)&&o.offsetWidth||0,h=Jl(o)&&o.offsetHeight||0,d=getComputedStyle(i),p=this.props.sizeRef.current;p.height=parseFloat(d.height),p.width=parseFloat(d.width),p.top=i.offsetTop,p.left=i.offsetLeft,p.right=f-p.width-p.left,p.bottom=h-p.height-p.top,p.direction=d.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Bv({children:a,isPresent:l,anchorX:i,anchorY:o,root:f,pop:h}){var j;const d=H.useId(),p=H.useRef(null),g=H.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:x}=H.useContext(Ys),y=h!==!1?((j=a.props)==null?void 0:j.ref)??(a==null?void 0:a.ref):void 0,v=Ov(p,y);return H.useInsertionEffect(()=>{const{width:T,height:E,top:O,left:V,right:G,bottom:Y,direction:X}=g.current;if(l||h===!1||!p.current||!T||!E)return;const U=X==="rtl",K=i==="left"?U?`right: ${G}`:`left: ${V}`:U?`left: ${V}`:`right: ${G}`,oe=o==="bottom"?`bottom: ${Y}`:`top: ${O}`;p.current.dataset.motionPopId=d;const $=document.createElement("style");x&&($.nonce=x);const I=f??document.head;return I.appendChild($),$.sheet&&$.sheet.insertRule(`
          [data-motion-pop-id="${d}"] {
            position: absolute !important;
            width: ${T}px !important;
            height: ${E}px !important;
            ${K}px !important;
            ${oe}px !important;
          }
        `),()=>{var se;(se=p.current)==null||se.removeAttribute("data-motion-pop-id"),I.contains($)&&I.removeChild($)}},[l]),r.jsx(Vv,{isPresent:l,childRef:p,sizeRef:g,pop:h,children:h===!1?a:H.cloneElement(a,{ref:v})})}const Lv=({children:a,initial:l,isPresent:i,onExitComplete:o,custom:f,presenceAffectsLayout:h,mode:d,anchorX:p,anchorY:g,root:x})=>{const y=Es(Uv),v=H.useId(),j=H.useRef(i),T=H.useRef(o);Ll(()=>{j.current=i,T.current=o});let E=!0,O=H.useMemo(()=>(E=!1,{id:v,initial:l,isPresent:i,custom:f,onExitComplete:V=>{y.set(V,!0);for(const G of y.values())if(!G)return;o&&o()},register:V=>(y.set(V,!1),()=>{var G;y.delete(V),!j.current&&!y.size&&((G=T.current)==null||G.call(T))})}),[i,y,o]);return h&&E&&(O={...O}),H.useMemo(()=>{y.forEach((V,G)=>y.set(G,!1))},[i]),H.useEffect(()=>{!i&&!y.size&&o&&o()},[i]),a=r.jsx(Bv,{pop:d==="popLayout",isPresent:i,anchorX:p,anchorY:g,root:x,children:a}),r.jsx(Ul.Provider,{value:O,children:a})};function Uv(){return new Map}function s0(a=!0){const l=H.useContext(Ul);if(l===null)return[!0,null];const{isPresent:i,onExitComplete:o,register:f}=l,h=H.useId();H.useEffect(()=>{if(a)return f(h)},[a]);const d=H.useCallback(()=>a&&o&&o(h),[h,o,a]);return!i&&o?[!1,d]:[!0]}const oi=a=>a.key||"";function l0(a){const l=[];return H.Children.forEach(a,i=>{H.isValidElement(i)&&l.push(i)}),l}const fn=({children:a,custom:l,initial:i=!0,onExitComplete:o,presenceAffectsLayout:f=!0,mode:h="sync",propagate:d=!1,anchorX:p="left",anchorY:g="top",root:x})=>{const[y,v]=s0(d),j=H.useMemo(()=>l0(a),[a]),T=d&&!y?[]:j.map(oi),E=H.useRef(!0),O=H.useRef(j),V=Es(()=>new Map),G=H.useRef(new Set),[Y,X]=H.useState(j),[U,K]=H.useState(j);Ll(()=>{E.current=!1,O.current=j;for(let I=0;I<U.length;I++){const se=oi(U[I]);T.includes(se)?(V.delete(se),G.current.delete(se)):V.get(se)!==!0&&V.set(se,!1)}},[U,T.length,T.join("-")]);const oe=[];if(j!==Y){let I=[...j];for(let se=0;se<U.length;se++){const ee=U[se],he=oi(ee);T.includes(he)||(I.splice(se,0,ee),oe.push(ee))}return h==="wait"&&oe.length&&(I=oe),K(l0(I)),X(j),null}const{forceRender:$}=H.useContext(Lr);return r.jsx(r.Fragment,{children:U.map(I=>{const se=oi(I),ee=d&&!y?!1:j===U||T.includes(se),he=()=>{if(G.current.has(se))return;if(V.has(se))G.current.add(se),V.set(se,!0);else return;let pe=!0;V.forEach(Ce=>{Ce||(pe=!1)}),pe&&($==null||$(),K(O.current),d&&(v==null||v()),o&&o())};return r.jsx(Lv,{isPresent:ee,initial:!E.current||i?void 0:!1,custom:l,presenceAffectsLayout:f,mode:h,root:x,onExitComplete:ee?void 0:he,anchorX:p,anchorY:g,children:I},se)})})},i0=H.createContext({strict:!1}),r0={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let o0=!1;function Hv(){if(o0)return;const a={};for(const l in r0)a[l]={isEnabled:i=>r0[l].some(o=>!!i[o])};ah(a),o0=!0}function c0(){return Hv(),Nb()}function qv(a){const l=c0();for(const i in a)l[i]={...l[i],...a[i]};ah(l)}const Gv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ci(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||Gv.has(a)}let u0=a=>!ci(a);function Yv(a){typeof a=="function"&&(u0=l=>l.startsWith("on")?!ci(l):a(l))}try{Yv(require("@emotion/is-prop-valid").default)}catch{}function Xv(a,l,i){const o={};for(const f in a)f==="values"&&typeof a.values=="object"||Pe(a[f])||(u0(f)||i===!0&&ci(f)||!l&&!ci(f)||a.draggable&&f.startsWith("onDrag"))&&(o[f]=a[f]);return o}const ui=H.createContext({});function Fv(a,l){if(ti(a)){const{initial:i,animate:o}=a;return{initial:i===!1||Us(i)?i:void 0,animate:Us(o)?o:void 0}}return a.inherit!==!1?l:{}}function Zv(a){const{initial:l,animate:i}=Fv(a,H.useContext(ui));return H.useMemo(()=>({initial:l,animate:i}),[f0(l),f0(i)])}function f0(a){return Array.isArray(a)?a.join(" "):a}const Xo=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d0(a,l,i){for(const o in l)!Pe(l[o])&&!gh(o,i)&&(a[o]=l[o])}function Qv({transformTemplate:a},l){return H.useMemo(()=>{const i=Xo();return Bo(i,l,a),Object.assign({},i.vars,i.style)},[l])}function Kv(a,l){const i=a.style||{},o={};return d0(o,i,a),Object.assign(o,Qv(a,l)),o}function $v(a,l){const i={},o=Kv(a,l);return a.drag&&a.dragListener!==!1&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(i.tabIndex=0),i.style=o,i}const h0=()=>({...Xo(),attrs:{}});function Jv(a,l,i,o){const f=H.useMemo(()=>{const h=h0();return yh(h,l,vh(o),a.transformTemplate,a.style),{...h.attrs,style:{...h.style}}},[l]);if(a.style){const h={};d0(h,a.style,a),f.style={...h,...f.style}}return f}const Pv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fo(a){return typeof a!="string"||a.includes("-")?!1:!!(Pv.indexOf(a)>-1||/[A-Z]/u.test(a))}function Wv(a,l,i,{latestValues:o},f,h=!1,d){const g=(d??Fo(a)?Jv:$v)(l,o,f,a),x=Xv(l,typeof a=="string",h),y=a!==H.Fragment?{...x,...g,ref:i}:{},{children:v}=l,j=H.useMemo(()=>Pe(v)?v.get():v,[v]);return H.createElement(a,{...y,children:j})}function Iv({scrapeMotionValuesFromProps:a,createRenderState:l},i,o,f){return{latestValues:e2(i,o,f,a),renderState:l()}}function e2(a,l,i,o){const f={},h=o(a,{});for(const j in h)f[j]=ii(h[j]);let{initial:d,animate:p}=a;const g=ti(a),x=eh(a);l&&x&&!g&&a.inherit!==!1&&(d===void 0&&(d=l.initial),p===void 0&&(p=l.animate));let y=i?i.initial===!1:!1;y=y||d===!1;const v=y?p:d;if(v&&typeof v!="boolean"&&!ei(v)){const j=Array.isArray(v)?v:[v];for(let T=0;T<j.length;T++){const E=go(a,j[T]);if(E){const{transitionEnd:O,transition:V,...G}=E;for(const Y in G){let X=G[Y];if(Array.isArray(X)){const U=y?X.length-1:0;X=X[U]}X!==null&&(f[Y]=X)}for(const Y in O)f[Y]=O[Y]}}}return f}const m0=a=>(l,i)=>{const o=H.useContext(ui),f=H.useContext(Ul),h=()=>Iv(a,l,o,f);return i?h():Es(h)},t2=m0({scrapeMotionValuesFromProps:Uo,createRenderState:Xo}),n2=m0({scrapeMotionValuesFromProps:jh,createRenderState:h0}),a2=Symbol.for("motionComponentSymbol");function s2(a,l,i){const o=H.useRef(i);H.useInsertionEffect(()=>{o.current=i});const f=H.useRef(null);return H.useCallback(h=>{var p;h&&((p=a.onMount)==null||p.call(a,h)),l&&(h?l.mount(h):l.unmount());const d=o.current;if(typeof d=="function")if(h){const g=d(h);typeof g=="function"&&(f.current=g)}else f.current?(f.current(),f.current=null):d(h);else d&&(d.current=h)},[l])}const p0=H.createContext({});function qa(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function l2(a,l,i,o,f,h){var X,U;const{visualElement:d}=H.useContext(ui),p=H.useContext(i0),g=H.useContext(Ul),x=H.useContext(Ys),y=x.reducedMotion,v=x.skipAnimations,j=H.useRef(null),T=H.useRef(!1);o=o||p.renderer,!j.current&&o&&(j.current=o(a,{visualState:l,parent:d,props:i,presenceContext:g,blockInitialAnimation:g?g.initial===!1:!1,reducedMotionConfig:y,skipAnimations:v,isSVG:h}),T.current&&j.current&&(j.current.manuallyAnimateOnMount=!0));const E=j.current,O=H.useContext(p0);E&&!E.projection&&f&&(E.type==="html"||E.type==="svg")&&i2(j.current,i,f,O);const V=H.useRef(!1);H.useInsertionEffect(()=>{E&&V.current&&E.update(i,g)});const G=i[Rd],Y=H.useRef(!!G&&typeof window<"u"&&!((X=window.MotionHandoffIsComplete)!=null&&X.call(window,G))&&((U=window.MotionHasOptimisedAnimation)==null?void 0:U.call(window,G)));return Ll(()=>{T.current=!0,E&&(V.current=!0,window.MotionIsMounted=!0,E.updateFeatures(),E.scheduleRenderMicrotask(),Y.current&&E.animationState&&E.animationState.animateChanges())}),H.useEffect(()=>{E&&(!Y.current&&E.animationState&&E.animationState.animateChanges(),Y.current&&(queueMicrotask(()=>{var K;(K=window.MotionHandoffMarkAsComplete)==null||K.call(window,G)}),Y.current=!1),E.enteringChildren=void 0)}),E}function i2(a,l,i,o){const{layoutId:f,layout:h,drag:d,dragConstraints:p,layoutScroll:g,layoutRoot:x,layoutAnchor:y,layoutCrossfade:v}=l;a.projection=new i(a.latestValues,l["data-framer-portal-id"]?void 0:x0(a.parent)),a.projection.setOptions({layoutId:f,layout:h,alwaysMeasureLayout:!!d||p&&qa(p),visualElement:a,animationType:typeof h=="string"?h:"both",initialPromotionConfig:o,crossfade:v,layoutScroll:g,layoutRoot:x,layoutAnchor:y})}function x0(a){if(a)return a.options.allowProjection!==!1?a.projection:x0(a.parent)}function Zo(a,{forwardMotionProps:l=!1,type:i}={},o,f){o&&qv(o);const h=i?i==="svg":Fo(a),d=h?n2:t2;function p(x,y){let v;const j={...H.useContext(Ys),...x,layoutId:r2(x)},{isStatic:T}=j,E=Zv(x),O=d(x,T);if(!T&&typeof window<"u"){o2();const V=c2(j);v=V.MeasureLayout,E.visualElement=l2(a,O,j,f,V.ProjectionNode,h)}return r.jsxs(ui.Provider,{value:E,children:[v&&E.visualElement?r.jsx(v,{visualElement:E.visualElement,...j}):null,Wv(a,x,s2(O,E.visualElement,y),O,T,l,h)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const g=H.forwardRef(p);return g[a2]=a,g}function r2({layoutId:a}){const l=H.useContext(Lr).id;return l&&a!==void 0?l+"-"+a:a}function o2(a,l){H.useContext(i0).strict}function c2(a){const l=c0(),{drag:i,layout:o}=l;if(!i&&!o)return{};const f={...i,...o};return{MeasureLayout:i!=null&&i.isEnabled(a)||o!=null&&o.isEnabled(a)?f.MeasureLayout:void 0,ProjectionNode:f.ProjectionNode}}function u2(a,l){if(typeof Proxy>"u")return Zo;const i=new Map,o=(h,d)=>Zo(h,d,a,l),f=(h,d)=>o(h,d);return new Proxy(f,{get:(h,d)=>d==="create"?o:(i.has(d)||i.set(d,Zo(d,void 0,a,l)),i.get(d))})}const f2=(a,l)=>l.isSVG??Fo(a)?new qb(l):new Ob(l,{allowProjection:a!==H.Fragment});class d2 extends Rn{constructor(l){super(l),l.animationState||(l.animationState=Zb(l))}updateAnimationControlsSubscription(){const{animate:l}=this.node.getProps();ei(l)&&(this.unmountControls=l.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:l}=this.node.getProps(),{animate:i}=this.node.prevProps||{};l!==i&&this.updateAnimationControlsSubscription()}unmount(){var l;this.node.animationState.reset(),(l=this.unmountControls)==null||l.call(this)}}let h2=0;class m2 extends Rn{constructor(){super(...arguments),this.id=h2++,this.isExitComplete=!1}update(){var h;if(!this.node.presenceContext)return;const{isPresent:l,onExitComplete:i}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||l===o)return;if(l&&o===!1){if(this.isExitComplete){const{initial:d,custom:p}=this.node.getProps();if(typeof d=="string"||typeof d=="object"&&d!==null&&!Array.isArray(d)){const g=da(this.node,d,p);if(g){const{transition:x,transitionEnd:y,...v}=g;for(const j in v)(h=this.node.getValue(j))==null||h.jump(v[j])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const f=this.node.animationState.setActive("exit",!l);i&&!l&&f.then(()=>{this.isExitComplete=!0,i(this.id)})}mount(){const{register:l,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),l&&(this.unmount=l(this.id))}unmount(){}}const p2={animation:{Feature:d2},exit:{Feature:m2}};function Xs(a){return{point:{x:a.pageX,y:a.pageY}}}const x2=a=>l=>Co(l)&&a(l,Xs(l));function Fs(a,l,i,o){return Gs(a,l,x2(i),o)}const g0=({current:a})=>a?a.ownerDocument.defaultView:null,y0=(a,l)=>Math.abs(a-l);function g2(a,l){const i=y0(a.x,l.x),o=y0(a.y,l.y);return Math.sqrt(i**2+o**2)}const b0=new Set(["auto","scroll"]);class v0{constructor(l,i,{transformPagePoint:o,contextWindow:f=window,dragSnapToOrigin:h=!1,distanceThreshold:d=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=fi(this.lastRawMoveEventInfo,this.transformPagePoint));const E=Qo(this.lastMoveEventInfo,this.history),O=this.startEvent!==null,V=g2(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!O&&!V)return;const{point:G}=E,{timestamp:Y}=nt;this.history.push({...G,timestamp:Y});const{onStart:X,onMove:U}=this.handlers;O||(X&&X(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),U&&U(this.lastMoveEvent,E)},this.handlePointerMove=(E,O)=>{this.lastMoveEvent=E,this.lastRawMoveEventInfo=O,this.lastMoveEventInfo=fi(O,this.transformPagePoint),Ee.update(this.updatePoint,!0)},this.handlePointerUp=(E,O)=>{this.end();const{onEnd:V,onSessionEnd:G,resumeAnimation:Y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Y&&Y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const X=Qo(E.type==="pointercancel"?this.lastMoveEventInfo:fi(O,this.transformPagePoint),this.history);this.startEvent&&V&&V(E,X),G&&G(E,X)},!Co(l))return;this.dragSnapToOrigin=h,this.handlers=i,this.transformPagePoint=o,this.distanceThreshold=d,this.contextWindow=f||window;const g=Xs(l),x=fi(g,this.transformPagePoint),{point:y}=x,{timestamp:v}=nt;this.history=[{...y,timestamp:v}];const{onSessionStart:j}=i;j&&j(l,Qo(x,this.history));const T={passive:!0,capture:!0};this.removeListeners=_s(Fs(this.contextWindow,"pointermove",this.handlePointerMove,T),Fs(this.contextWindow,"pointerup",this.handlePointerUp,T),Fs(this.contextWindow,"pointercancel",this.handlePointerUp,T)),p&&this.startScrollTracking(p)}startScrollTracking(l){let i=l.parentElement;for(;i;){const o=getComputedStyle(i);(b0.has(o.overflowX)||b0.has(o.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(l){const i=this.scrollPositions.get(l);if(!i)return;const o=l===window,f=o?{x:window.scrollX,y:window.scrollY}:{x:l.scrollLeft,y:l.scrollTop},h={x:f.x-i.x,y:f.y-i.y};h.x===0&&h.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=h.x,this.lastMoveEventInfo.point.y+=h.y):this.history.length>0&&(this.history[0].x-=h.x,this.history[0].y-=h.y),this.scrollPositions.set(l,f),Ee.update(this.updatePoint,!0))}updateHandlers(l){this.handlers=l}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),cn(this.updatePoint)}}function fi(a,l){return l?{point:l(a.point)}:a}function j0(a,l){return{x:a.x-l.x,y:a.y-l.y}}function Qo({point:a},l){return{point:a,delta:j0(a,S0(l)),offset:j0(a,y2(l)),velocity:b2(l,.1)}}function y2(a){return a[0]}function S0(a){return a[a.length-1]}function b2(a,l){if(a.length<2)return{x:0,y:0};let i=a.length-1,o=null;const f=S0(a);for(;i>=0&&(o=a[i],!(f.timestamp-o.timestamp>jt(l)));)i--;if(!o)return{x:0,y:0};o===a[0]&&a.length>2&&f.timestamp-o.timestamp>jt(l)*2&&(o=a[1]);const h=zt(f.timestamp-o.timestamp);if(h===0)return{x:0,y:0};const d={x:(f.x-o.x)/h,y:(f.y-o.y)/h};return d.x===1/0&&(d.x=0),d.y===1/0&&(d.y=0),d}function v2(a,{min:l,max:i},o){return l!==void 0&&a<l?a=o?Oe(l,a,o.min):Math.max(a,l):i!==void 0&&a>i&&(a=o?Oe(i,a,o.max):Math.min(a,i)),a}function w0(a,l,i){return{min:l!==void 0?a.min+l:void 0,max:i!==void 0?a.max+i-(a.max-a.min):void 0}}function j2(a,{top:l,left:i,bottom:o,right:f}){return{x:w0(a.x,i,f),y:w0(a.y,l,o)}}function N0(a,l){let i=l.min-a.min,o=l.max-a.max;return l.max-l.min<a.max-a.min&&([i,o]=[o,i]),{min:i,max:o}}function S2(a,l){return{x:N0(a.x,l.x),y:N0(a.y,l.y)}}function w2(a,l){let i=.5;const o=dt(a),f=dt(l);return f>o?i=Ds(l.min,l.max-o,a.min):o>f&&(i=Ds(a.min,a.max-f,l.min)),It(0,1,i)}function N2(a,l){const i={};return l.min!==void 0&&(i.min=l.min-a.min),l.max!==void 0&&(i.max=l.max-a.min),i}const Ko=.35;function T2(a=Ko){return a===!1?a=0:a===!0&&(a=Ko),{x:T0(a,"left","right"),y:T0(a,"top","bottom")}}function T0(a,l,i){return{min:A0(a,l),max:A0(a,i)}}function A0(a,l){return typeof a=="number"?a:a[l]||0}const A2=new WeakMap;class C2{constructor(l){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=We(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=l}start(l,{snapToCursor:i=!1,distanceThreshold:o}={}){const{presenceContext:f}=this.visualElement;if(f&&f.isPresent===!1)return;const h=v=>{i&&this.snapToCursor(Xs(v).point),this.stopAnimation()},d=(v,j)=>{const{drag:T,dragPropagation:E,onDragStart:O}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Wy(T),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=j,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nn(G=>{let Y=this.getAxisMotionValue(G).get()||0;if(en.test(Y)){const{projection:X}=this.visualElement;if(X&&X.layout){const U=X.layout.layoutBox[G];U&&(Y=dt(U)*(parseFloat(Y)/100))}}this.originPoint[G]=Y}),O&&Ee.update(()=>O(v,j),!1,!0),bo(this.visualElement,"transform");const{animationState:V}=this.visualElement;V&&V.setActive("whileDrag",!0)},p=(v,j)=>{this.latestPointerEvent=v,this.latestPanInfo=j;const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:O,onDrag:V}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:G}=j;if(E&&this.currentDirection===null){this.currentDirection=_2(G),this.currentDirection!==null&&O&&O(this.currentDirection);return}this.updateAxis("x",j.point,G),this.updateAxis("y",j.point,G),this.visualElement.render(),V&&Ee.update(()=>V(v,j),!1,!0)},g=(v,j)=>{this.latestPointerEvent=v,this.latestPanInfo=j,this.stop(v,j),this.latestPointerEvent=null,this.latestPanInfo=null},x=()=>{const{dragSnapToOrigin:v}=this.getProps();(v||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new v0(l,{onSessionStart:h,onStart:d,onMove:p,onSessionEnd:g,resumeAnimation:x},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:o,contextWindow:g0(this.visualElement),element:this.visualElement.current})}stop(l,i){const o=l||this.latestPointerEvent,f=i||this.latestPanInfo,h=this.isDragging;if(this.cancel(),!h||!f||!o)return;const{velocity:d}=f;this.startAnimation(d);const{onDragEnd:p}=this.getProps();p&&Ee.postRender(()=>p(o,f))}cancel(){this.isDragging=!1;const{projection:l,animationState:i}=this.visualElement;l&&(l.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(l,i,o){const{drag:f}=this.getProps();if(!o||!di(l,f,this.currentDirection))return;const h=this.getAxisMotionValue(l);let d=this.originPoint[l]+o[l];this.constraints&&this.constraints[l]&&(d=v2(d,this.constraints[l],this.elastic[l])),h.set(d)}resolveConstraints(){var h;const{dragConstraints:l,dragElastic:i}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(h=this.visualElement.projection)==null?void 0:h.layout,f=this.constraints;l&&qa(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&o?this.constraints=j2(o.layoutBox,l):this.constraints=!1,this.elastic=T2(i),f!==this.constraints&&!qa(l)&&o&&this.constraints&&!this.hasMutatedConstraints&&nn(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=N2(o.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:l,onMeasureDragConstraints:i}=this.getProps();if(!l||!qa(l))return!1;const o=l.current,{projection:f}=this.visualElement;if(!f||!f.layout)return!1;f.root&&(f.root.scroll=void 0,f.root.updateScroll());const h=_b(o,f.root,this.visualElement.getTransformPagePoint());let d=S2(f.layout.layoutBox,h);if(i){const p=i(Ab(d));this.hasMutatedConstraints=!!p,p&&(d=lh(p))}return d}startAnimation(l){const{drag:i,dragMomentum:o,dragElastic:f,dragTransition:h,dragSnapToOrigin:d,onDragTransitionEnd:p}=this.getProps(),g=this.constraints||{},x=nn(y=>{if(!di(y,i,this.currentDirection))return;let v=g&&g[y]||{};(d===!0||d===y)&&(v={min:0,max:0});const j=f?200:1e6,T=f?40:1e7,E={type:"inertia",velocity:o?l[y]:0,bounceStiffness:j,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...h,...v};return this.startAxisValueAnimation(y,E)});return Promise.all(x).then(p)}startAxisValueAnimation(l,i){const o=this.getAxisMotionValue(l);return bo(this.visualElement,l),o.start(xo(l,o,0,i,this.visualElement,!1))}stopAnimation(){nn(l=>this.getAxisMotionValue(l).stop())}getAxisMotionValue(l){const i=`_drag${l.toUpperCase()}`,f=this.visualElement.getProps()[i];return f||this.visualElement.getValue(l,this.visualElement.latestValues[l]??0)}snapToCursor(l){nn(i=>{const{drag:o}=this.getProps();if(!di(i,o,this.currentDirection))return;const{projection:f}=this.visualElement,h=this.getAxisMotionValue(i);if(f&&f.layout){const{min:d,max:p}=f.layout.layoutBox[i],g=h.get()||0;h.set(l[i]-Oe(d,p,.5)+g)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:l,dragConstraints:i}=this.getProps(),{projection:o}=this.visualElement;if(!qa(i)||!o||!this.constraints)return;this.stopAnimation();const f={x:0,y:0};nn(d=>{const p=this.getAxisMotionValue(d);if(p&&this.constraints!==!1){const g=p.get();f[d]=w2({min:g,max:g},this.constraints[d])}});const{transformTemplate:h}=this.visualElement.getProps();this.visualElement.current.style.transform=h?h({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),nn(d=>{if(!di(d,l,null))return;const p=this.getAxisMotionValue(d),{min:g,max:x}=this.constraints[d];p.set(Oe(g,x,f[d]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;A2.set(this.visualElement,this);const l=this.visualElement.current,i=Fs(l,"pointerdown",x=>{const{drag:y,dragListener:v=!0}=this.getProps(),j=x.target,T=j!==l&&sb(j);y&&v&&!T&&this.start(x)});let o;const f=()=>{const{dragConstraints:x}=this.getProps();qa(x)&&x.current&&(this.constraints=this.resolveRefConstraints(),o||(o=E2(l,x.current,()=>this.scalePositionWithinConstraints())))},{projection:h}=this.visualElement,d=h.addEventListener("measure",f);h&&!h.layout&&(h.root&&h.root.updateScroll(),h.updateLayout()),Ee.read(f);const p=Gs(window,"resize",()=>this.scalePositionWithinConstraints()),g=h.addEventListener("didUpdate",(({delta:x,hasLayoutChanged:y})=>{this.isDragging&&y&&(nn(v=>{const j=this.getAxisMotionValue(v);j&&(this.originPoint[v]+=x[v].translate,j.set(j.get()+x[v].translate))}),this.visualElement.render())}));return()=>{p(),i(),d(),g&&g(),o&&o()}}getProps(){const l=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:o=!1,dragPropagation:f=!1,dragConstraints:h=!1,dragElastic:d=Ko,dragMomentum:p=!0}=l;return{...l,drag:i,dragDirectionLock:o,dragPropagation:f,dragConstraints:h,dragElastic:d,dragMomentum:p}}}function C0(a){let l=!0;return()=>{if(l){l=!1;return}a()}}function E2(a,l,i){const o=Jd(a,C0(i)),f=Jd(l,C0(i));return()=>{o(),f()}}function di(a,l,i){return(l===!0||l===a)&&(i===null||i===a)}function _2(a,l=10){let i=null;return Math.abs(a.y)>l?i="y":Math.abs(a.x)>l&&(i="x"),i}class D2 extends Rn{constructor(l){super(l),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new C2(l)}mount(){const{dragControls:l}=this.node.getProps();l&&(this.removeGroupControls=l.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}update(){const{dragControls:l}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};l!==i&&(this.removeGroupControls(),l&&(this.removeGroupControls=l.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const $o=a=>(l,i)=>{a&&Ee.update(()=>a(l,i),!1,!0)};class M2 extends Rn{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(l){this.session=new v0(l,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:g0(this.node)})}createPanHandlers(){const{onPanSessionStart:l,onPanStart:i,onPan:o,onPanEnd:f}=this.node.getProps();return{onSessionStart:$o(l),onStart:$o(i),onMove:$o(o),onEnd:(h,d)=>{delete this.session,f&&Ee.postRender(()=>f(h,d))}}}mount(){this.removePointerDownListener=Fs(this.node.current,"pointerdown",l=>this.onPointerDown(l))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Jo=!1;class k2 extends H.Component{componentDidMount(){const{visualElement:l,layoutGroup:i,switchLayoutGroup:o,layoutId:f}=this.props,{projection:h}=l;h&&(i.group&&i.group.add(h),o&&o.register&&f&&o.register(h),Jo&&h.root.didUpdate(),h.addEventListener("animationComplete",()=>{this.safeToRemove()}),h.setOptions({...h.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ri.hasEverUpdated=!0}getSnapshotBeforeUpdate(l){const{layoutDependency:i,visualElement:o,drag:f,isPresent:h}=this.props,{projection:d}=o;return d&&(d.isPresent=h,l.layoutDependency!==i&&d.setOptions({...d.options,layoutDependency:i}),Jo=!0,f||l.layoutDependency!==i||i===void 0||l.isPresent!==h?d.willUpdate():this.safeToRemove(),l.isPresent!==h&&(h?d.promote():d.relegate()||Ee.postRender(()=>{const p=d.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:l,layoutAnchor:i}=this.props,{projection:o}=l;o&&(o.options.layoutAnchor=i,o.root.didUpdate(),Ao.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:l,layoutGroup:i,switchLayoutGroup:o}=this.props,{projection:f}=l;Jo=!0,f&&(f.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(f),o&&o.deregister&&o.deregister(f))}safeToRemove(){const{safeToRemove:l}=this.props;l&&l()}render(){return null}}function E0(a){const[l,i]=s0(),o=H.useContext(Lr);return r.jsx(k2,{...a,layoutGroup:o,switchLayoutGroup:H.useContext(p0),isPresent:l,safeToRemove:i})}const R2={pan:{Feature:M2},drag:{Feature:D2,ProjectionNode:n0,MeasureLayout:E0}};function _0(a,l,i){const{props:o}=a;a.animationState&&o.whileHover&&a.animationState.setActive("whileHover",i==="Start");const f="onHover"+i,h=o[f];h&&Ee.postRender(()=>h(l,Xs(l)))}class z2 extends Rn{mount(){const{current:l}=this.node;l&&(this.unmount=eb(l,(i,o)=>(_0(this.node,o,"Start"),f=>_0(this.node,f,"End"))))}unmount(){}}class O2 extends Rn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let l=!1;try{l=this.node.current.matches(":focus-visible")}catch{l=!0}!l||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_s(Gs(this.node.current,"focus",()=>this.onFocus()),Gs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function D0(a,l,i){const{props:o}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&o.whileTap&&a.animationState.setActive("whileTap",i==="Start");const f="onTap"+(i==="End"?"":i),h=o[f];h&&Ee.postRender(()=>h(l,Xs(l)))}class V2 extends Rn{mount(){const{current:l}=this.node;if(!l)return;const{globalTapTarget:i,propagate:o}=this.node.props;this.unmount=ib(l,(f,h)=>(D0(this.node,h,"Start"),(d,{success:p})=>D0(this.node,d,p?"End":"Cancel")),{useGlobalTarget:i,stopPropagation:(o==null?void 0:o.tap)===!1})}unmount(){}}const Po=new WeakMap,Wo=new WeakMap,B2=a=>{const l=Po.get(a.target);l&&l(a)},L2=a=>{a.forEach(B2)};function U2({root:a,...l}){const i=a||document;Wo.has(i)||Wo.set(i,{});const o=Wo.get(i),f=JSON.stringify(l);return o[f]||(o[f]=new IntersectionObserver(L2,{root:a,...l})),o[f]}function H2(a,l,i){const o=U2(l);return Po.set(a,i),o.observe(a),()=>{Po.delete(a),o.unobserve(a)}}const q2={some:0,all:1};class G2 extends Rn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var g;(g=this.stopObserver)==null||g.call(this);const{viewport:l={}}=this.node.getProps(),{root:i,margin:o,amount:f="some",once:h}=l,d={root:i?i.current:void 0,rootMargin:o,threshold:typeof f=="number"?f:q2[f]},p=x=>{const{isIntersecting:y}=x;if(this.isInView===y||(this.isInView=y,h&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:v,onViewportLeave:j}=this.node.getProps(),T=y?v:j;T&&T(x)};this.stopObserver=H2(this.node.current,d,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:l,prevProps:i}=this.node;["amount","margin","root"].some(Y2(l,i))&&this.startObserver()}unmount(){var l;(l=this.stopObserver)==null||l.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Y2({viewport:a={}},{viewport:l={}}={}){return i=>a[i]!==l[i]}const X2={...p2,...{inView:{Feature:G2},tap:{Feature:V2},focus:{Feature:O2},hover:{Feature:z2}},...R2,...{layout:{ProjectionNode:n0,MeasureLayout:E0}}},zn=u2(X2,f2);function M0(a){const l=Es(()=>fa(a)),{isStatic:i}=H.useContext(Ys);if(i){const[,o]=H.useState(a);H.useEffect(()=>l.on("change",o),[])}return l}function k0(a,l){const i=M0(l()),o=()=>i.set(l());return o(),Ll(()=>{const f=()=>Ee.preRender(o,!1,!0),h=a.map(d=>d.on("change",f));return()=>{h.forEach(d=>d()),cn(o)}}),i}function F2(a){Ls.current=[],a();const l=k0(Ls.current,a);return Ls.current=void 0,l}function R0(a,l,i,o){if(typeof a=="function")return F2(a);const h=typeof l=="function"?l:xb(l,i,o),d=Array.isArray(a)?z0(a,h):z0([a],([g])=>h(g)),p=Array.isArray(a)?void 0:a.accelerate;return p&&!p.isTransformed&&typeof l!="function"&&Array.isArray(i)&&(o==null?void 0:o.clamp)!==!1&&(d.accelerate={...p,times:l,keyframes:i,isTransformed:!0}),d}function z0(a,l){const i=Es(()=>[]);return k0(a,()=>{i.length=0;const o=a.length;for(let f=0;f<o;f++)i[f]=a[f].get();return l(i)})}function Z2(a,l={}){const{isStatic:i}=H.useContext(Ys),o=()=>Pe(a)?a.get():a;if(i)return R0(o);const f=M0(o());return H.useInsertionEffect(()=>gb(f,a,l),[f,JSON.stringify(l)]),f}function Q2(a,l={}){return Z2(a,{type:"spring",...l})}const te=zn;/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K2=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$2=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,i,o)=>o?o.toUpperCase():i.toLowerCase()),O0=a=>{const l=$2(a);return l.charAt(0).toUpperCase()+l.slice(1)},V0=(...a)=>a.filter((l,i,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===i).join(" ").trim(),J2=a=>{for(const l in a)if(l.startsWith("aria-")||l==="role"||l==="title")return!0};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var P2={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W2=H.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:f="",children:h,iconNode:d,...p},g)=>H.createElement("svg",{ref:g,...P2,width:l,height:l,stroke:a,strokeWidth:o?Number(i)*24/Number(l):i,className:V0("lucide",f),...!h&&!J2(p)&&{"aria-hidden":"true"},...p},[...d.map(([x,y])=>H.createElement(x,y)),...Array.isArray(h)?h:[h]]));/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const He=(a,l)=>{const i=H.forwardRef(({className:o,...f},h)=>H.createElement(W2,{ref:h,iconNode:l,className:V0(`lucide-${K2(O0(a))}`,`lucide-${a}`,o),...f}));return i.displayName=O0(a),i};/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B0=He("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Io=He("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hi=He("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L0=He("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I2=He("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e5=He("coffee",[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ec=He("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t5=He("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tc=He("gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n5=He("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a5=He("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s5=He("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l5=He("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i5=He("map",[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r5=He("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U0=He("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o5=He("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c5=He("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nc=He("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u5=He("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f5=He("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d5=He("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.546.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ac=He("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),an=[{id:"sealed-machine",name:"家用真空封口机 (高端灰白款)",market:"罗马尼亚",codLabel:"COD 高接受度",audience:"45-65+岁注重实用",price:168,productCost:45,adCost:28,shippingCost:20,profit:75,signingRate:.82,revenue:61.5,logisticsCode:"VAC-WHT:1; BAG-SET:2"},{id:"smart-mug",name:"智能温控加热杯 (极简磨砂款)",market:"波兰",codLabel:"直邮次日达",audience:"22-40岁差旅白领",price:149,productCost:35.05,adCost:22,shippingCost:18,profit:73.95,signingRate:.85,revenue:62.86,logisticsCode:"MUG-TRV:1; CHG-CBL:1"},{id:"ultrasonic-cleaner",name:"多功能超声波清洗机 (珍珠白款)",market:"匈牙利",codLabel:"精细轻奢爆款",audience:"25-50岁精致生活派",price:199,productCost:55,adCost:32,shippingCost:22,profit:90,signingRate:.78,revenue:70.2,logisticsCode:"ULT-CLN:1; CLEAN-LIQ:1"}],h5=()=>r.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-tr from-[#92A8D1] to-[#A8E6CF] shadow-lg shadow-blue-100 flex items-center justify-center shrink-0",children:r.jsx(te.div,{animate:{opacity:[.6,1,.6]},transition:{duration:2,repeat:1/0},className:"w-3 h-3 bg-white rounded-full"})}),m5=({onSelect:a})=>{const l=[{id:"sealed-machine",icon:"🥗",title:"厨房饭菜保鲜",obs:"吃剩菜或拆封零食封不紧，极易变温变坏，拉扯保鲜膜很麻烦。",match:"家用真空封口机",highlight:"罗马尼亚大卖款"},{id:"smart-mug",icon:"☕",title:"差旅打工人暖胃杯",obs:"工作一忙倒好的热水立马冰冷。普通加热杯控温不准，冷暖难调。",match:"智能温控加热杯",highlight:"波兰极速直邮款"},{id:"ultrasonic-cleaner",icon:"👓",title:"眼镜首饰超声除污",obs:"眼镜戴着戴着油脂污浊，钻戒首饰也容易氧化变暗。",match:"多功能超声波清洗机",highlight:"匈牙利精致中产款"}];return r.jsxs(te.div,{initial:{opacity:0,scale:.96,y:15},animate:{opacity:1,scale:1,y:0},transition:{type:"spring",stiffness:100,damping:15},className:"w-full flex flex-col gap-3.5 bg-gradient-to-tr from-[#92A8D1]/5 via-white to-[#A8E6CF]/5 border border-slate-200/80 rounded-2xl p-4.5 mt-2 text-left select-none shadow-sm",children:[r.jsxs("div",{className:"flex flex-col gap-1.5",children:[r.jsx("span",{className:"text-[10px] font-bold tracking-widest text-[#3A75C4] bg-blue-50 border border-blue-100/40 px-2.5 py-1 rounded-full w-max",children:"🎯 新手友好 · 导师带你开第一单"}),r.jsx("h4",{className:"text-[13px] font-bold text-slate-800 mt-1.5",children:"第一期由我来帮你保驾护航。请挑选一个在生活中最感同身受的痛点，见证开单变现可以多么简单："})]}),r.jsx("div",{className:"flex flex-col gap-2.5",children:l.map(i=>r.jsxs(te.button,{whileHover:{scale:1.015,translateY:-1.5},whileTap:{scale:.985},onClick:()=>a(i.id),className:"w-full text-left bg-white hover:bg-slate-50 border border-slate-250/70 hover:border-[#92A8D1] rounded-xl p-3.5 transition-all flex gap-3 cursor-pointer shadow-sm group relative overflow-hidden",children:[r.jsx("div",{className:"w-10 h-10 rounded-xl bg-slate-55 border border-slate-100 flex items-center justify-center text-xl shrink-0 group-hover:bg-blue-50/50 transition-colors",children:i.icon}),r.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[r.jsxs("div",{className:"flex items-center justify-between gap-2",children:[r.jsx("span",{className:"text-xs font-bold text-slate-800 truncate",children:i.title}),r.jsx("span",{className:"text-[9px] font-extrabold text-[#3A75C4] bg-blue-50 border border-blue-100/40 px-2.5 py-0.5 rounded-full shrink-0",children:i.highlight})]}),r.jsxs("p",{className:"text-[11px] text-slate-400 mt-1 leading-normal italic line-clamp-1",children:["“",i.obs,"”"]}),r.jsxs("div",{className:"flex items-center gap-1 mt-2 text-[10px] font-bold text-slate-500 group-hover:text-[#3A75C4] transition-colors",children:[r.jsxs("span",{children:["⚡ 匹配货盘：",i.match]}),r.jsx("span",{className:"ml-auto font-extrabold group-hover:translate-x-1 transition-transform",children:"帮我出这单 ➔"})]})]})]},i.id))})]})};function p5({messages:a,onSendMessage:l,step:i,setStep:o,transitionTo:f,selectedProduct:h,setSelectedProduct:d,onReset:p,userExpertise:g="",setUserExpertise:x=()=>{},part3Options:y=[],part1Inspirations:v=[],selectedPart3Option:j=null,setSelectedPart3Option:T=()=>{},children:E}){const O=H.useRef(null),[V,G]=H.useState("");H.useEffect(()=>{O.current&&(O.current.scrollTop=O.current.scrollHeight,setTimeout(()=>{O.current&&(O.current.scrollTop=O.current.scrollHeight)},100))},[a,i]);const Y=U=>{U.preventDefault(),V.trim()&&(l(V),G(""))},X=U=>{const K=an.find(oe=>oe.id===U);K&&d&&(d(K),f("scanning",`我从新闻中敏锐捕捉到了关于【${K.name.split(" ")[0]}】的痛点商机，一键把它匹配至：${K.market}货盘，开启数据雷达扫描测算！`))};return r.jsxs("div",{className:"flex flex-col h-full w-full bg-transparent",children:[r.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden p-6 space-y-6 pt-10",ref:O,children:i==="intro1"&&a.length<=1?r.jsx("div",{className:"w-full h-full flex flex-col justify-center items-center px-4",children:r.jsxs(te.form,{layoutId:"chat-input-box",transition:{type:"spring",stiffness:70,damping:14,mass:1.2},onSubmit:U=>{U.preventDefault(),g!=null&&g.trim()&&(l(g),x==null||x(""))},className:"w-full max-w-[800px] bg-white rounded-[24px] shadow-[0_8px_30px_rgba(0,0,0,0.06)] border border-slate-100 p-3 flex items-center relative transition-all duration-300 focus-within:shadow-[0_8px_40px_rgba(59,130,246,0.12)] focus-within:border-blue-200/60 focus-within:ring-4 focus-within:ring-blue-50/50",children:[r.jsx("input",{className:"flex-1 outline-none px-6 py-4 text-slate-700 bg-transparent text-[16px] placeholder:text-slate-400 font-medium input-reveal-text",placeholder:"在此粘贴你想分析的新闻...",value:g||"",onChange:U=>x==null?void 0:x(U.target.value)}),r.jsx(te.button,{whileHover:{scale:1.05},whileTap:{scale:.95},type:"submit",className:"w-12 h-12 shrink-0 rounded-[16px] bg-[#091119] text-[#14F195] flex items-center justify-center transition-all hover:bg-[#1A222A] shadow-sm disabled:opacity-50 cursor-pointer mr-1",disabled:!(g!=null&&g.trim()),children:r.jsx(Io,{size:20,strokeWidth:2.5})})]})}):r.jsxs(fn,{initial:!1,children:[a.map(U=>r.jsxs(te.div,{initial:{opacity:0,y:15,scale:.98},animate:{opacity:1,y:0,scale:1},className:`flex ${U.role==="ai"?"justify-start":"justify-end"}`,children:[U.role==="ai"&&r.jsx("div",{className:"shrink-0 mr-3 mt-1",children:r.jsx(h5,{})}),r.jsx("div",{className:`max-w-[85%] rounded-2xl px-5 py-3.5 text-[14px] leading-relaxed text-left
                ${U.role==="ai"?"bg-[#F1F3F5] text-[#2D2D2D] rounded-tl-none border border-slate-100":"bg-slate-900 border border-[#1e293b] text-white rounded-tr-none shadow-sm"}
              `,children:U.content})]},U.id)),i==="intro2"&&r.jsx(m5,{onSelect:X}),E&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"w-full mt-4 flex items-center justify-center",children:r.jsx("div",{className:"w-full max-w-[800px] bg-transparent",children:E})})]})}),r.jsx("div",{className:"p-4 bg-gradient-to-t from-white via-white to-transparent mt-auto relative z-20 pb-8 flex justify-center w-full",children:r.jsxs("div",{className:"w-full max-w-[800px] flex flex-col gap-3 relative overflow-visible",children:[r.jsxs(fn,{children:[i==="intro1"&&a.length>1&&r.jsx(te.div,{initial:{opacity:0,y:10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,scale:.9,height:0},className:"mb-4 overflow-hidden text-left",children:r.jsx("button",{onClick:()=>{g!=null&&g.trim()?(l(g),x==null||x("")):l("欧洲多国罕见高温天气，电费飙升...（默认新闻）")},className:"text-[12px] text-blue-600 bg-blue-50 border border-blue-200/50 px-4 py-2.5 rounded-full shadow-sm hover:bg-blue-100 hover:shadow transition-all font-bold cursor-pointer animate-pulse",children:"⚡ 一键挖掘商机 ➔"})}),i==="locked"&&r.jsx(te.div,{initial:{opacity:0,y:10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,scale:.9,height:0},className:"mb-4 overflow-hidden text-left",children:r.jsx("button",{onClick:()=>f("marketing",`锁定该爆品【${h.name}】并生成其营销素材`),className:"text-[12px] text-blue-600 bg-blue-50 border border-blue-200/50 px-4 py-2 rounded-full shadow-sm hover:bg-blue-100/60 hover:shadow transition-all font-semibold cursor-pointer",children:"⚡ “锁定这款爆品，立即为它生成广告素材！”"})}),i==="marketing"&&r.jsx(te.div,{initial:{opacity:0,y:10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,scale:.9,height:0},className:"mb-4 overflow-hidden text-left",children:r.jsx("button",{onClick:()=>f("funnel","一键启动广告投流，开始曝光获客！"),className:"text-[12px] text-red-600 bg-red-50 border border-red-200/50 px-4 py-2 rounded-full shadow-sm hover:bg-red-100/60 hover:shadow transition-all font-semibold cursor-pointer",children:"🚀 “推广文案极好，一键启动向全球曝光！”"})}),i==="settlement"&&r.jsx(te.div,{initial:{opacity:0,y:10,height:0},animate:{opacity:1,y:0,height:"auto"},exit:{opacity:0,scale:.9,height:0},className:"mb-4 overflow-hidden text-left",children:r.jsx("button",{onClick:()=>f("success","申请立即提现累计分成收益到我微信钱包！"),className:"text-[12px] text-emerald-600 bg-emerald-50 border border-[#A8E6CF]/40 px-4 py-2 rounded-full shadow-sm hover:bg-emerald-100/60 hover:shadow transition-all font-semibold cursor-pointer animate-pulse",children:"💰 “查看微信结算提现，直接发微信钱包额！”"})})]}),!(i==="intro1"&&a.length<=1)&&r.jsxs(te.form,{layoutId:"chat-input-box",transition:{type:"spring",stiffness:70,damping:14,mass:1.2},onSubmit:Y,className:"bg-white rounded-[24px] border border-slate-100 shadow-[0_4px_24px_rgba(0,0,0,0.04)] p-2 flex flex-col relative overflow-visible",children:[i==="success"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans space-y-2",children:r.jsx("button",{type:"button",onClick:()=>f("explore_environment","我要探索更复杂的真实商业环境，进入第二阶段 ➔"),className:"text-[12px] text-white bg-emerald-600 border border-emerald-500 px-4 py-3 rounded-xl shadow-md hover:bg-emerald-700 transition-all font-bold cursor-pointer w-full text-center",children:"🚀 继续商业进阶 ➔ 开启第二阶段 (痛点对齐)"})}),i==="explore_environment"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:()=>f("socratic_q1","进入商业逻辑校准 ➔"),className:"text-[12px] text-blue-600 bg-blue-50 border border-blue-200/50 px-4 py-2.5 rounded-full shadow-sm hover:bg-blue-105 transition-all font-bold cursor-pointer w-full text-center",children:"💡 “分析 11 位犹豫用户真实的痛点环境 ➔”"})}),i==="socratic_q1"&&r.jsxs(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 flex flex-col gap-2.5 overflow-hidden text-left w-full font-sans",children:[r.jsx("span",{className:"text-[10px] uppercase font-bold tracking-wider text-slate-400 block px-1",children:"🔍 供需拆解线索提示："}),r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx("button",{type:"button",onClick:()=>{l("我观察了 42 号院 Maria 的冬储地窖：堆满番茄的她，担忧原装 10 个真空保鲜袋不够、很快耗尽。")},className:"text-[11px] text-left text-slate-700 bg-white border border-slate-200 hover:border-slate-350 px-3.5 py-2 rounded-xl shadow-xs hover:bg-slate-50 transition-all font-medium cursor-pointer w-full leading-relaxed",children:"🌾 1. 观察 Maria 农庄：番茄囤大货，原装袋耗材怕不够？"}),r.jsx("button",{type:"button",onClick:()=>{l("我观察了 56 号院 Stefan 的腊熏肉车间：带锋利骨尖的熏肉，肉含水且袋皮不韧，容易被硬刺戳透漏气。")},className:"text-[11px] text-left text-slate-700 bg-white border border-slate-205 hover:border-slate-350 px-3.5 py-2 rounded-xl shadow-xs hover:bg-slate-50 transition-all font-medium cursor-pointer w-full leading-relaxed",children:"🥩 2. 观察 Stefan 肉铺：腊硬骨坚，怕袋子不够厚刺破漏氧？"}),r.jsx("button",{type:"button",onClick:()=>{l("我观察了 18 号楼 Elena 的果蔬采集：蓝莓松露过分娇软，普通高压强真空抽氧容易直接碾碎、溢汁。")},className:"text-[11px] text-left text-slate-705 bg-white border border-slate-205 hover:border-slate-350 px-3.5 py-2 rounded-xl shadow-xs hover:bg-slate-50 transition-all font-medium cursor-pointer w-full leading-relaxed",children:"🍒 3. 观察 Elena 浆果屋：树莓多汁太嫩，强抽压强怕揉扁压碎？"}),r.jsx("button",{type:"button",onClick:()=>f("socratic_q2","我分析完了所有环境：Maria（量少）、Stefan（骨硬）、Elena（果嫩）。我们立即开始做供需精确重构！"),className:"text-[11px] text-center text-blue-700 bg-blue-50 border border-blue-200 px-4 py-2.5 rounded-xl shadow-sm hover:bg-blue-100 transition-all font-bold cursor-pointer w-full mt-1.5 animate-pulse",children:"💡 供需拆解已到位 ➔ 制定第二轮突破策略组合"})]})]}),i==="socratic_q2"&&r.jsxs(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 flex flex-col gap-2 overflow-hidden text-left w-full font-sans",children:[r.jsx("span",{className:"text-[10px] uppercase font-bold tracking-wider text-slate-400 block px-1",children:"🎁 策略套餐制定（系统匹配转化测算）："}),r.jsx("button",{type:"button",onClick:()=>l("我的供给侧策略：加量大礼包 —— 主打超分量赠袋, 附赠送 50 个高抗撕加厚复合保鲜袋。"),className:"text-[11px] text-left text-slate-700 bg-white border border-slate-200 px-4 py-2 rounded-xl shadow-xs hover:bg-slate-50 transition-all font-semibold cursor-pointer w-full",children:"📦 策略一：追加 50 个加厚抗穿刺大容量保鲜袋 (对齐 Maria / Stefan)"}),r.jsx("button",{type:"button",onClick:()=>l("我的供给侧策略：功能化升级 —— 增加无级点触柔性精调抽真空程序与气阀控制。"),className:"text-[11px] text-left text-slate-700 bg-white border border-slate-200 px-4 py-2 rounded-xl shadow-xs hover:bg-slate-50 transition-all font-semibold cursor-pointer w-full",children:"🕹️ 策略二：定制点捏无级慢控抽气压力模式 (对齐浆果 Elena)"}),r.jsx("button",{type:"button",onClick:()=>l("我的供给侧策略：极致三合一方案 —— 买即免费赠送 50 个高材质复合防穿刺大袋子 + 慢抽柔压点捏多场景气阀 + Romania 货到验收开箱，若碎损包退赔付。"),className:"text-[11px] text-left text-emerald-800 bg-emerald-50/70 hover:bg-emerald-100/60 border border-emerald-200 px-4 py-2.5 rounded-xl shadow-xs transition-all font-bold cursor-pointer w-full mt-1 animate-pulse",children:"✨ 极致方案 C：加赠50个复合厚袋 + 柔控抽真空 + 货到验货包退 (玫瑰路 100% 转化)"})]}),i==="expert_safeguard"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:()=>f("funnel2"),className:"text-[11.5px] text-emerald-600 bg-emerald-50 border border-emerald-200 px-4 py-2.5 rounded-xl shadow-sm hover:bg-emerald-100 transition-all font-bold cursor-pointer w-full text-center",children:"🚀 “商业方案全线核定！一键架设新素材并开启二次大爆单投流 ➔”"})}),i==="funnel2"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans select-none",children:r.jsx("div",{className:"text-[12px] text-slate-500 bg-slate-50 border border-slate-200 px-4 py-2.5 rounded-full shadow-sm font-semibold w-full text-center",children:"⏳ 爆单扩频策略中，投流大盘极速转换优化中..."})}),i==="settlement2"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:()=>f("success2"),className:"text-[12px] text-orange-600 bg-orange-50 border border-orange-200 px-4 py-3 rounded-xl shadow-sm hover:bg-orange-100 transition-all font-bold cursor-pointer animate-pulse w-full text-center",children:"💸 提取优化爆单分成收益 315.00 元至微信零钱 ➔"})}),i==="success2"&&r.jsxs(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans space-y-2",children:[r.jsx("button",{type:"button",onClick:()=>f("part3_intro","我要扩大商业，进军高阶认知优势与全网蓝海挖掘！"),className:"text-[12px] text-white bg-gradient-to-r from-emerald-600 to-green-600 border border-emerald-400 px-4 py-3 rounded-xl shadow-md hover:from-emerald-700 hover:to-green-700 transition-all font-bold cursor-pointer w-full text-center hover:scale-101",children:"🚀 扩大你的商业 ➔ 开启第三部分 (专属蓝海)"}),r.jsx("button",{type:"button",onClick:p,className:"text-[11px] text-slate-500 bg-slate-50 border border-slate-200 px-4 py-2 rounded-xl shadow-sm hover:bg-slate-100 transition-all font-semibold cursor-pointer w-full text-center",children:"🔄 重新开始体验第 1 部分"})]}),i==="part3_intro"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:()=>f("part3_survey","开始我的专属高智选品与非标意愿分析 ➔"),className:"text-[12px] text-white bg-blue-600 border border-blue-500 px-4 py-3 rounded-xl shadow-md hover:bg-blue-700 transition-all font-bold cursor-pointer w-full text-center",children:"🎯 立即开始非标认知调研 ➜"})}),i==="part3_survey"&&null,i==="part3_searching"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans select-none",children:r.jsx("div",{className:"text-[11.5px] text-slate-500 bg-slate-50 border border-slate-200 px-4 py-2.5 rounded-full shadow-sm font-semibold w-full text-center",children:"⏳ 全网小众蓝海数据和交互模型极速挖掘分析中..."})}),i==="part3_results"&&r.jsxs(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans flex flex-col gap-2",children:[r.jsx("button",{type:"button",onClick:()=>{const U=(j==null?void 0:j.name)||"东方高能香薰机",K=(j==null?void 0:j.price)||249;f("part3_marketing",`我已仔细修改并核定蓝海商品参数，名称【${U}】，零售售价【¥ ${K}】！`)},className:"text-[11.5px] text-emerald-700 bg-emerald-50 border border-emerald-200 px-4 py-3 rounded-xl shadow-sm hover:bg-emerald-100 transition-all font-bold cursor-pointer w-full text-center",children:"💮 锁定本项精选蓝海商品参数，进入本地化营销素材架设 ➔"}),r.jsx("span",{className:"text-[9px] text-slate-400 block px-1 text-center",children:"💡 提示：您可以在右侧仪表盘输入框内，对手写商品名、售价或解析逻辑进行精细修改，它是您最懂的行产。"})]}),i==="part3_marketing"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:()=>f("part3_funnel","营销素材和静安符号设计完全匹配！立即进行 50 元高溢价智能流量广告投放！"),className:"text-[12px] text-white bg-slate-900 border border-slate-850 px-4 py-3 rounded-xl shadow-md hover:bg-black transition-all font-bold cursor-pointer w-full text-center animate-pulse",children:"🚀 一键开启专属蓝海首轮高溢价流量投放 ➔"})}),i==="part3_funnel"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans select-none",children:r.jsx("div",{className:"text-[11.5px] text-indigo-600 bg-indigo-50 border border-indigo-1.5 px-4 py-2.5 rounded-full shadow-sm font-bold w-full text-center",children:"⏳ 蓝海静物符号大展现，罗马尼亚中产用户锁单成交转化中..."})}),i==="part3_settlement"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:()=>f("part3_success"),className:"text-[12px] text-amber-700 bg-amber-50 border border-amber-200 px-4 py-3 rounded-xl shadow-sm hover:bg-amber-100 transition-all font-bold cursor-pointer animate-pulse w-full text-center",children:"💸 提取高额非标收益分成 480.00 元 ➔"})}),i==="part3_success"&&r.jsx(te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0},className:"mb-1 overflow-hidden text-left w-full font-sans",children:r.jsx("button",{type:"button",onClick:p,className:"text-[12px] text-slate-700 bg-slate-100 border border-slate-205 px-4 py-2.5 rounded-xl shadow-sm hover:bg-slate-200 transition-all font-bold cursor-pointer w-full text-center",children:"🔄 商业考核完美通关！清除模拟账本从头体验"})}),r.jsxs("div",{className:"flex items-center gap-2 w-full pt-1 shrink-0 px-1",children:[r.jsx("input",{value:V,onChange:U=>G(U.target.value),placeholder:"发送消息...",className:"flex-1 bg-transparent border-none outline-none text-[15px] text-slate-800 px-3 py-2 placeholder:text-slate-400"}),r.jsx(te.button,{whileHover:{scale:1.05},whileTap:{scale:.95},type:"submit",className:"bg-[#091119] text-[#14F195] w-10 h-10 rounded-[14px] flex items-center justify-center hover:bg-[#1A222A] shrink-0 transition-colors shadow-sm disabled:opacity-50 cursor-pointer",disabled:!V.trim(),children:r.jsx(Io,{size:18,strokeWidth:2.5})})]})]})]})})]})}const x5=({userExpertise:a,setUserExpertise:l,transitionTo:i,onSendMessage:o})=>{var F;const[f,h]=H.useState("aquatics"),[d,p]=H.useState("radar"),[g,x]=H.useState("opt1"),[y,v]=H.useState(""),[j,T]=H.useState([]),E=[{id:"aquatics",text:"养鱼专业户",icon:"🐟",color:"indigo"},{id:"coffee",text:"咖啡大师",icon:"☕",color:"amber"},{id:"hiking",text:"户外行家",icon:"🏕️",color:"emerald"},{id:"gardening",text:"园艺达人",icon:"🌿",color:"green"},{id:"collectibles",text:"潮玩收藏",icon:"🧸",color:"pink"}],O={aquatics:[95,85,90,80,92],coffee:[82,94,88,96,75],hiking:[84,76,92,88,80],gardening:[78,80,85,87,88],collectibles:[90,92,94,95,82]},V=["非标低纠纷 (Frictionless)","大厂垄断薄 (Barrier High)","地缘COD溢价 (Geo-Premium)","符号心灵疗愈 (Symbol Aura)","本乡散活拼装 (Assembly Feas.)"],Y=(A=>{const B=O[A]||[80,80,80,80,80],P=110,S=65;return B.map((R,J)=>{const z=-Math.PI/2+J*2*Math.PI/5,W=R/100*S,ne=P+W*Math.cos(z),ce=P+W*Math.sin(z);return{x:ne,y:ce}})})(f),X=Y.map(A=>`${A.x},${A.y}`).join(" "),U={aquatics:{title:"🐟 水族发烧友 & 生态缸造景圈",options:[{id:"opt1",name:"“有没有那种绝对静音的微型陶瓷流水器？”",queries:["如何降低室内水族缸水泵高频低鸣噪音 (14.2k) - 热搜","极小桌面瀑布冷制陶流水器 (8.5k) - 暴涨80%"],amazon:["SUBMERSIBLE LOW-VOLTAGE PUMP (公模塑料泵，白热拼价 $12.99)","ACRYLIC SHIELD FILTERS (流水线注塑盖片 & 极易溢流跟卖)"],facebookAds:["“超静音自造水净化器带给卧室绝对安宁” (5.2w 播放/波兰独立站)","“精工原木包饰防霉造景平台” (冷淡日系风格，点赞4.3k)"],weakness:"大厂全为冷冰冰的低劣公模变压器与笨重塑料桶，充满运转蜂鸣声。白领极为渴求复古天然外观且绝对静音的高溢价设备。"},{id:"opt2",name:"“不想玩公版的方缸，想找手工吹制的无影胶悬浮微缸...”",queries:["半悬浮超白微距玻璃微缸 (18.1k) - 需求极速上升","手工吹制无影胶封水草箱 (9.2k) - 高溢价热搜"],amazon:["STANDARD GLASS TANK 5-GAL (公版热熔缸，同质化严重 $25)","PLASTIC BETTA BOWLS (极低端亚克力鱼缸，无美感 $12)"],facebookAds:["“将一角亚马逊微缩在书桌上-悬浮生态全透缸” (11w播放/荷兰)","“古法吹制异形生态微缸带来的终极解压” (极高转化)"],weakness:"市售全部是直角或量产半球形，毫无艺术呼吸感。由于玻璃异形加工极易破损漏水，大厂绝不开模生产悬浮异形缸。但这却是资深造景师最愿砸钱的极客级容器。"}]},coffee:{title:"☕ 手冲及高阶个性咖啡极客圈",options:[{id:"opt1",name:"“电磨太吵了，我想找手感好的胡桃木阻尼手摇研磨机？”",queries:["无摩擦静电手摇咖啡研磨机 (22.1k) - 强烈痛点","古法红铜制做旧天鹅颈水壶手感 (11.4k) - 探寻美学"],amazon:["ELECTRIC STAINLESS STEEL GRINDER (流水线铝片/巨大磨削温差 $29)","GOOSENECK KETTLE 350ML (公模铁皮壶，低门槛严重同质 $15)"],facebookAds:["“书房深度伴侣-全红木装配手摇研磨阻尼感” (12w 浏览/匈牙利)","“无源气流气压精准意式微压咖啡托” (点赞5.5k/波兰)"],weakness:"大厂全部沉浸在插电和极高飞速及磨削发热参数里，导致豆变酸和电磁噪音。发烧友极度向往安静而有阻尼的手工质感。"},{id:"opt2",name:"“便宜塑料不要，要工业赛博朋克风的航空铝冰滴冷萃塔！”",queries:["无菌密闭航空级冷萃冰滴塔 (15.5k) - 破圈热搜","如何控制冰滴流速一致不变酸 (11k) - 痛点"],amazon:["CHEAP PLASTIC COLD BREWER (亚克力简易壶 $19)","GLASS COLD DRIP MAKER (脆弱玻璃易碎系统 $45)"],facebookAds:["“赛博朋克风-全金属稳压冷萃塔” (8w赞/高复购)","“不为速度妥协的极致冰萃工业机甲” (火爆中)"],weakness:"目前多为廉价注塑或是极易碎的普通玻璃体，流速受温差改变大。硬核咖啡极客不仅要稳定长达12小时的萃取，更要摆放在吧台有工业级科幻质感。"}]},hiking:{title:"🏕️ 野奢露营 & 硬派户外山系美学",options:[{id:"opt1",name:"“不想买大路货，想要一把沉甸甸、能包浆变色的黄铜折叠柴炉”",queries:["不插电拉膛气孔强燃露营火箭柴炉 (18.6k) - 火热探求","便携防风聚能黄铜微型阵列火炉 (9.5k) - 攀升趋势"],amazon:["FOLDING SHEET METAL CAMP STOVE (简易薄面冲压白铁炉 $35)","CAMPING GAS STOVE (粗糙不锈钢燃气炉 $15)"],facebookAds:["“篝火夜晚最硬派的自然重力旋流黄铜火箭炉” (18k赞/德国)","“无需燃料瓶的原始取火艺术品” (美观高转化)"],weakness:"市面上大厂倾销的全是轻飘飘的白铁皮、低劣塑料件组合，极易变形。Glamping野奢玩家要的是能在时间里包浆的黄铜和粗粝原铁的原始手感。"},{id:"opt2",name:"“普通尼龙包太没质感，我想找植鞣皮手工缝饰的灯具收纳皮套！”",queries:["手工户外气罐套 (11k) - 细分需求","高颜值露营点火装备定制收纳 (6.5k) - 痛点"],amazon:["SILICONE PROTECTIVE SEATS (流水线低端硅胶管 $8)","NYLON STORAGE BAG (最普通无设计感尼龙袋 $6)"],facebookAds:["“头层牛皮手工缝线露营灯托套与地垫灯围” (ROI达4.2)","“给你的山系荒野穿上一件质感皮衣” (高留言高转发)"],weakness:"普通露营护具都是批量化伞绳或工厂硅胶，缺乏温度。高端玩家不仅需要实用，更需要皮具那种在日晒雨淋中随岁月留下油光的精神寄托。"}]},gardening:{title:"🌿 小众珍植种植 & 精细阳台艺术园艺",options:[{id:"opt1",name:"“塑料壶按到手酸水珠还大，要那种能持续喷微米雾的精铜气压枪。”",queries:["高压双向活塞无手酸微米细喷雾壶 (8.4k) - 极度痛点","不生锈全铜降温保水雾化器 (7.2k) - 需求上升"],amazon:["HAND COMPRESSION SPRAYER (低端简易按压枪 $3.99)","PLASTIC MISTER BOTTLE (普通压克力薄壳喷斗 $6)"],facebookAds:["“黄铜双向重压一触持续5秒微米花卉雾化枪” (12w播放/捷克)","“专为娇弱蕨类打造的水晶微滴生成器” (波兰植物圈疯抢)"],weakness:"大路货喷雾壶全为塑料射出件，手按酸且轻易破坏名贵花叶(如秋海棠)水汽平衡。他们需要极具工艺感且极致细腻的造雾神器。"},{id:"opt2",name:"“不想让几百刀的植物烂根，求那种表面像陨石的火山灰熟陶晶体盆！”",queries:["火山灰熟陶超强透水不烂根多肉盆 (11.2k) - 新晋潮流","多孔粗陶肌理透气养根块根植物盆 (13k) - 热搜"],amazon:["PLASTIC SEEDLING POT 50-PACK (廉价育苗塑料框 $9.99)","CERAMIC GLAZED POT (便宜釉面工业白瓷 $14)"],facebookAds:["“火山砂泥沙古旧肌理多孔毛细生息盆” (极富禅意，波罗的海ROI 3.9)","“会呼吸的陨石表面：让珍稀块根植物告别死烂” (北欧植物极客极速下单)"],weakness:"大厂盆器只追求表面规整，用极其不透气的塑料或者上色釉瓷，易导致昂贵的珍稀块根烂根。粗糙多孔犹陨石般的发烧透气瓦砾才是核心诉求。"}]},collectibles:{title:"🧸 绝版手办 & 高阶潮流玩陈列收藏",options:[{id:"opt1",name:"“绝版模型怕泛黄，找带微气密、防紫外并能发柔光的自旋转盘。”",queries:["微气密柔光慢速转动手办防尘仓 (15.5k) - 热门趋势","磁吸密闭防紫外老化浮法超净自旋仓 (8k) - 热搜"],amazon:["CLEAR ACRYLIC BOX (简易散片插拼塑料盒满是静电 $19.99)","PLASTIC TURNTABLE (黑漆漆充满廉价塑料感和吵声 $14)"],facebookAds:["“为你的珍藏构筑一座北欧实木柔光呼吸神龛” (8w波兰高热留评)","“静谧自转：隔绝尘埃与紫外线的微缩美术馆” (极高溢价)"],weakness:"大量低端跟风商只提供吸聚毛球和划痕的压克力拼接盒。完全无法隔绝静电吸尘与阳光直射泛黄。绝版藏家极度饥渴厚重陈列仓。"},{id:"opt2",name:"“不想看那些恶心的注塑拼接缝了！有无影高透亚克力堆叠柜吗？”",queries:["防爆高透博物馆级拼接镇宅柜 (12.4k) - 痛点搜寻","无限扩展无胶水印痕潮玩墙 (9.5k) - 持续走高"],amazon:["PLASTIC SHOE BOXES FOR TOYS (变形松垮鞋盒替代品 $25)","CHEAP DISPLAY CASES (接缝处全是大白胶的亚克力 $18)"],facebookAds:["“一刀未剪无胶水热弯-属于你的博物馆级潮玩墙” (播放点赞惊人)","“绝对领域：你的桌面无限延伸收藏地堡” (匈牙利极客高粘度)"],weakness:"大厂的展示盒接缝处全是丑陋的插槽和胶流，时间长了易变黄变脆。玩家急需像建筑模块一样严丝合缝极其坚固的积木展示矩阵。"}]}},K=U[f],$=g==="custom"?(A=>{const B=A.trim()||"未定义蓝海需求",P=B.length,S=(B.charCodeAt(0)||0)%3;return{id:"custom",name:B,queries:[`"${B}" (1${P+S}.2k) - 新晋长尾极客热搜`,`如何解决 "${B}" 痛点 (8.${P%10+1}k) - 需求隐形暴增`],amazon:[`STANDARD CHEAP ALTERNATIVE (大多为公模或不完全符合"${B}"诉求 $12)`,"LOW QUALITY COUNTERFEIT (低配版，客诉率极高 $29)"],facebookAds:[`“终于找到了真正的：${B}” (10w播放/北欧跑量极佳)`,`“告别妥协：你的专属${B}解决方案” (高客单价高转化)`],weakness:`主流大厂认为 “${B}” 市场太垂类而不去倾力研发。批量生产的替代品做工粗制滥造、体验割裂缺乏质感，造成了这群高净值玩家处于长期的消费饥渴状态。`}})(y):K.options.find(A=>A.id===g)||K.options[0],I=A=>{if(h(A),d==="research"){const B=U[A].options[0];x(B.id),v(B.name),se(A,B.id,B.name)}},se=(A,B,P)=>{const S=new Date,R=`${S.getHours().toString().padStart(2,"0")}:${S.getMinutes().toString().padStart(2,"0")}`,J=Math.random().toString(36).substring(2,6);T(z=>{var ce;let W=P;if(!W){const Me=U[A];if(Me){const ye=Me.options.find(at=>at.id===B);ye&&(W=ye.name)}}return W||(W="自定义探索"),z.length>0&&z[0].optionId===B&&z[0].nicheId===A&&z[0].optionName===W?z:[{id:J,nicheId:A,optionId:B,nicheTitle:((ce=E.find(Me=>Me.id===A))==null?void 0:ce.text)||"",optionName:W,time:R},...z].slice(0,15)})},ee=()=>{p("research"),j.length===0&&(se(f,K.options[0].id,K.options[0].name),x(K.options[0].id),v(K.options[0].name))},he=()=>{p("radar")},pe=(A,B)=>{x(A),v(B),se(f,A,B)},Ce=A=>{const B=A.target.value;v(B);const P=K.options.find(S=>S.name===B);x(P?P.id:"custom")},fe=()=>{g==="custom"&&y.trim()!==""&&se(f,"custom",y.trim())},ae=A=>{h(A.nicheId),x(A.optionId),v(A.optionName)},_=A=>{A.preventDefault();const B=y.trim()||$.name;g==="custom"&&se(f,"custom",B),l(`niche::${f}||gap::${B}`),o(`我锁定了以下蓝海调查维度：
1. 专注领域：【${K.title}】 
2. 配置的选择空白点 (Opportunity Gap)：【${B}】！ 

请帮我以此空白为原点，结合大厂货架软肋、中国优质产业带工坊源头制造链，极速反向狙击生成一套海外地缘蓝海高利润货盘！`),i("part3_searching","正在匹配中国源头非标微型加工网络 ➔")};return r.jsxs("div",{className:`w-full ${d==="research"?"max-w-5xl":"max-w-sm sm:max-w-md"} mx-auto flex flex-col md:flex-row gap-4 sm:gap-6 relative transition-all duration-500`,children:[r.jsxs(zn.div,{initial:{scale:.96,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"flex-1 bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-6 flex flex-col relative text-left",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-500 via-indigo-500 to-emerald-500 rounded-t-[2rem]"}),d==="radar"?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"flex justify-between items-start mb-3",children:r.jsxs("div",{children:[r.jsx("span",{className:"text-[9px] font-bold text-indigo-500 border border-indigo-200 px-2 py-0.5 rounded-full font-sans tracking-widest uppercase",children:"🧠 认知经验评测 · COGNITIVE RADAR"}),r.jsx("h2",{className:"text-base font-extrabold text-slate-800 tracking-tight mt-1.5 leading-snug",children:"雷达扫描：您在现实里最懂的领域是？"})]})}),r.jsxs("p",{className:"text-[11px] text-slate-500 leading-normal mb-3",children:["选择一个让您亲切、在日常爱好或知识见地中拥有独特嗅觉的行业。我们通过",r.jsx("b",{children:"五维地缘模型"}),"测算，找出最适合拼装、能避开标准化公模的蓝海黑马。"]}),r.jsx("div",{className:"my-1.5 bg-slate-50/70 rounded-2xl border border-slate-100/75 p-3 relative flex items-center justify-center",children:r.jsxs("svg",{width:"220",height:"220",className:"overflow-visible select-none",children:[[25,50,75,100].map((A,B)=>{const P=V.map((S,R)=>{const J=-Math.PI/2+R*2*Math.PI/5,z=A/100*65,W=110+z*Math.cos(J),ne=110+z*Math.sin(J);return`${W},${ne}`}).join(" ");return r.jsx("polygon",{points:P,fill:"none",stroke:"#E2E8F0",strokeWidth:"0.75",strokeDasharray:B===3?"0":"2,2"},B)}),V.map((A,B)=>{const P=-Math.PI/2+B*2*Math.PI/5,S=110+65*Math.cos(P),R=110+65*Math.sin(P);return r.jsx("line",{x1:"110",y1:"110",x2:S,y2:R,stroke:"#E2E8F0",strokeWidth:"1"},B)}),V.map((A,B)=>{var ce;const P=-Math.PI/2+B*2*Math.PI/5,R=65+(B===0?11:B===2||B===3?12:10),J=110+R*Math.cos(P),z=110+R*Math.sin(P);let W="middle";Math.cos(P)>.1&&(W="start"),Math.cos(P)<-.1&&(W="end");const ne=A.split(" (");return r.jsxs("g",{children:[r.jsx("text",{x:J,y:B===0?z-1:z+3,textAnchor:W,className:"fill-slate-800 font-bold text-[8.5px] font-sans",children:ne[0]}),r.jsx("text",{x:J,y:B===0?z+6:z+10,textAnchor:W,className:"fill-slate-400 font-mono text-[6.5px]",children:(ce=ne[1])==null?void 0:ce.replace(")","")})]},B)}),r.jsx("polygon",{points:X,className:"fill-indigo-500/20 stroke-indigo-500 stroke-2 transition-all duration-500"}),Y.map((A,B)=>r.jsx("circle",{cx:A.x,cy:A.y,r:"3.5",className:"fill-white stroke-indigo-600 stroke-[1.5] shadow-xs transition-all duration-500"},B)),r.jsx("circle",{cx:"110",cy:"110",r:"2.5",className:"fill-indigo-600"})]})}),r.jsx("div",{className:"space-y-1.5 my-3",children:r.jsx("div",{className:"flex flex-wrap gap-2",children:E.map(A=>{const B=f===A.id;return r.jsxs("button",{type:"button",onClick:()=>I(A.id),className:`px-3 py-1.5 rounded-full border text-[11px] font-bold flex items-center gap-1.5 transition-all cursor-pointer shadow-xs ${B?"bg-slate-900 border-indigo-500 text-white shadow-sm scale-[1.02]":"bg-slate-50/40 border-slate-200 text-slate-700 hover:bg-slate-50"}`,children:[r.jsx("span",{children:A.icon}),r.jsx("span",{children:A.text})]},A.id)})})}),r.jsxs("button",{onClick:ee,className:"w-full py-3 bg-gradient-to-r from-blue-600 to-indigo-600 text-white rounded-xl font-bold text-xs tracking-wider shadow-md hover:from-blue-700 hover:to-indigo-750 transition-all cursor-pointer font-sans text-center",children:["🚀 进入【",(F=E.find(A=>A.id===f))==null?void 0:F.text,"】真实跨境流量透视 ➜"]})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.jsx("button",{onClick:he,className:"p-1 rounded-lg bg-slate-50 border border-slate-150 hover:bg-slate-100 text-slate-600 cursor-pointer shrink-0",title:"返回雷达微图",children:r.jsx(L0,{className:"w-4 h-4"})}),r.jsxs("div",{children:[r.jsx("span",{className:"text-[8.5px] font-bold text-emerald-600 bg-emerald-50 border border-emerald-100 px-1.5 py-0.2 rounded-full font-sans uppercase",children:"🌐 LIVE MARKET COGNITIVE DETECTOR"}),r.jsx("h2",{className:"text-base font-extrabold text-slate-800 tracking-tight mt-1 leading-none flex items-center gap-2",children:K.title})]})]}),r.jsxs("p",{className:"text-[11px] text-slate-500 mb-2 leading-relaxed border-b border-dashed border-slate-150 pb-2",children:["我们提取了 Facebook Ads Library、海外 Google Trends 及亚马逊货架数据。",r.jsx("b",{children:"输入你的细分蓝海洞察，透视玩家真实诉求："})]}),r.jsxs("div",{className:"relative mb-3 mt-1",children:[r.jsx("input",{type:"text",value:y,onChange:Ce,onBlur:fe,placeholder:"例如：“想要一款不沾油的碳纤维切菜板...”",className:"w-full pl-10 pr-4 py-3 rounded-xl border-2 border-indigo-100 text-[13px] font-bold text-slate-800 placeholder-slate-400 focus:outline-none focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500 transition-all bg-indigo-50/30"}),r.jsx(o5,{className:"absolute left-3 top-[13px] w-4 h-4 text-indigo-400"})]}),r.jsx("div",{className:"flex flex-col gap-2 mb-5",children:K.options.map(A=>{const B=g===A.id;return r.jsxs("button",{onClick:()=>pe(A.id,A.name),className:`w-full text-left px-3.5 py-2.5 rounded-lg text-[12px] leading-relaxed font-bold border transition-all cursor-pointer flex items-start gap-2 ${B?"bg-blue-50 border-blue-400 text-blue-700 shadow-sm":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"}`,children:[r.jsx("div",{className:"pt-[1px] shrink-0",children:B?r.jsx(ac,{className:"w-3.5 h-3.5 text-blue-500"}):r.jsx("div",{className:"w-3.5 h-3.5 rounded-full border border-slate-300 mt-[1px]"})}),r.jsx("span",{children:A.name})]},A.id)})}),r.jsxs("div",{className:"space-y-3 mb-4 text-[11px] flex-1",children:[r.jsxs(zn.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},className:"bg-blue-50/30 border border-blue-100/50 rounded-xl p-3",children:[r.jsxs("span",{className:"text-[9px] font-bold text-blue-600 block uppercase mb-1",children:["🔍 区域热搜痛点检索 (",$.name,"):"]}),r.jsx("ul",{className:"list-inside list-disc space-y-1 text-slate-700 font-medium",children:$.queries.map((A,B)=>r.jsx("li",{className:"leading-tight",children:A},B))})]},`queries-${$.id}`),r.jsxs(zn.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{delay:.05},className:"bg-amber-50/20 border border-amber-100/50 rounded-xl p-3",children:[r.jsx("span",{className:"text-[9px] font-bold text-amber-600 block uppercase mb-1",children:"📦 典型亚马逊红海巨头货架对比:"}),r.jsx("ul",{className:"list-inside list-disc space-y-1 text-slate-600 font-sans",children:$.amazon.map((A,B)=>r.jsx("li",{className:"leading-tight",children:A},B))})]},`az-${$.id}`),r.jsxs(zn.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-emerald-50/20 border border-emerald-150/40 rounded-xl p-3",children:[r.jsx("span",{className:"text-[9px] font-bold text-emerald-600 block uppercase mb-1",children:"📱 高 ROI 社媒爆红创意素材参考:"}),r.jsx("ul",{className:"list-inside list-disc space-y-1 text-slate-600",children:$.facebookAds.map((A,B)=>r.jsx("li",{className:"leading-tight italic",children:A},B))})]},`fb-${$.id}`),r.jsxs(zn.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{delay:.15},className:"bg-slate-50 rounded-xl p-3 border border-slate-150/50",children:[r.jsx("span",{className:"text-[9px] font-bold text-slate-500 block uppercase mb-1",children:"🚫 大厂核心软肋:"}),r.jsx("p",{className:"text-slate-600 leading-normal font-sans",children:$.weakness})]},`weak-${$.id}`)]}),r.jsx("div",{className:"border-t border-slate-100 pt-3",children:r.jsx("button",{onClick:_,className:"w-full bg-indigo-600 hover:bg-indigo-750 text-white text-xs font-extrabold px-3.5 py-3 rounded-xl transition-all cursor-pointer font-sans shadow-md",children:"探索此领域的非标中国源头货盘 ➔"})})]})]}),d==="research"&&r.jsxs(zn.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"w-full md:w-[280px] bg-slate-900 border border-slate-800 rounded-[2rem] shadow-2xl flex flex-col overflow-hidden text-left",children:[r.jsx("div",{className:"p-4 border-b border-slate-800/80 bg-slate-900 flex justify-between items-center shrink-0",children:r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(B0,{className:"w-3.5 h-3.5 text-blue-400"}),r.jsx("h3",{className:"text-xs font-bold text-slate-200 tracking-tight font-sans",children:"调研历史纪录"})]}),r.jsx("p",{className:"text-[9px] text-[#8e9bb4] mt-0.5",children:"历史数据穿梭与比较"})]})}),r.jsx("div",{className:"flex-1 p-4 overflow-y-auto space-y-4 scrollbar-thin scrollbar-thumb-slate-800 relative max-h-[500px]",children:j.length===0?r.jsx("div",{className:"text-center py-6 text-[10px] text-slate-500",children:"尚无探索记录"}):r.jsxs("div",{className:"relative pl-4 mt-1",children:[r.jsx("div",{className:"absolute left-[3px] top-2 bottom-2 w-0.5 bg-gradient-to-b from-blue-500 via-indigo-600 to-slate-850 opacity-80"}),r.jsx("div",{className:"space-y-4",children:j.map((A,B)=>{const P=A.nicheId===f&&A.optionId===g,S=P?"bg-blue-400 ring-4 ring-blue-500/30":"bg-slate-500 ring-2 ring-slate-700";return r.jsxs(zn.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},className:"relative group select-none text-left",children:[r.jsx("div",{className:"absolute -left-[19.5px] top-[14px] z-20 flex h-3.5 w-3.5 items-center justify-center bg-transparent",children:r.jsx("span",{className:`h-2.5 w-2.5 rounded-full transition-all duration-200 group-hover:scale-125 ${S}`})}),r.jsxs("button",{onClick:()=>ae(A),className:`w-full text-left p-3 rounded-2xl border transition-all duration-200 cursor-pointer font-sans relative ${P?"bg-slate-850/95 border-blue-500/80 shadow-[0_4px_16px_rgba(59,130,246,0.2)]":"bg-slate-950/20 hover:bg-slate-850/60 border-slate-800/85 hover:border-slate-700/80"}`,children:[r.jsxs("div",{className:"flex items-center justify-between gap-1 mb-1 font-sans text-[9px] text-[#8e9bb4]",children:[r.jsxs("span",{className:`font-bold transition-colors group-hover:text-blue-400 ${P?"text-blue-400":"text-slate-450"}`,children:["方案 #",A.id]}),r.jsx("span",{children:A.time})]}),r.jsx("div",{className:"text-[11px] font-bold text-slate-200 leading-normal line-clamp-1 mb-1",children:A.nicheTitle}),r.jsxs("div",{className:"text-[10px] text-indigo-300 font-medium",children:["▪ ",A.optionName]})]})]},A.id+"-"+B)})})]})})]})]})},g5=a=>r.jsxs(te.div,{initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:150,damping:15},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100/85 p-6 sm:p-7 flex flex-col relative overflow-hidden select-none",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-emerald-300 via-blue-300 to-amber-300"}),r.jsx("div",{className:"bg-[#FAFBF9] border border-slate-100/90 rounded-2xl p-4 sm:p-5 text-left shadow-inner",children:r.jsxs("p",{className:"text-[11.5px] text-slate-600 font-medium leading-relaxed",children:["👈 ",r.jsx("strong",{children:"体验指引"}),"：请从左侧对话栏粘贴一段近期新闻内容（或直接发送系统默认的新闻样例）。AI 将帮您发掘隐藏的出海商业方向！"]})})]}),y5=({onReady:a,part1Inspirations:l})=>{const[i,o]=H.useState(0),f=[{id:"sealed-machine",title:"厨房一角的饭菜保鲜",icon:"🥗",lifeObs:"吃剩菜或者买回的零食封不紧，很快串味发霉变坏。每次都觉得扯保鲜膜很麻烦。",matchProduct:"家用真空封口机",domesticCost:45,overseaRetail:168,market:"罗马尼亚",margin:"273%",desc:"在国内外商场超市里司空见惯的食物保鲜习惯，在受工业制造供应链约束的东欧国家，因“极致锁鲜”诉求成为高热度抢手红利产品！配合东欧极风靡的货到付款(COD)，安全签收率竟出奇地高。"}],h=l&&l.length>0?l:f,d=h[i];return r.jsxs(te.div,{initial:{scale:.95,opacity:0,y:15},animate:{scale:1,opacity:1,y:0},exit:{scale:1.05,opacity:0,transition:{duration:.2}},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100/80 p-5 sm:p-6 flex flex-col relative overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-emerald-300 via-blue-300 to-amber-300 animate-pulse"}),r.jsxs("div",{className:"text-left mb-4 select-none",children:[r.jsx("span",{className:"text-[9px] font-bold tracking-widest text-[#9BB7D4] uppercase bg-[#9BB7D4]/10 px-2.5 py-1 rounded-full",children:"💡 从新闻洞察到国际生意"}),r.jsx("h2",{className:"text-base sm:text-lg font-extrabold text-[#2D2D2D] tracking-tight mt-2.5 leading-tight",children:"在海量新闻中发掘潜藏的爆单商机"}),r.jsx("p",{className:"text-[11px] text-slate-400 mt-1 leading-normal",children:"从突发新闻、热点事件及社会趋势中寻找信息差。AI 能帮您迅速解码全球实时新闻，锁定海外痛点，并将其转化为利润丰厚的跨境出海货盘。"})]}),r.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-4",children:h.map((p,g)=>r.jsxs("button",{onClick:()=>o(g),className:`py-2 px-1 rounded-xl border flex flex-col items-center gap-1 transition-all cursor-pointer text-center select-none ${i===g?"bg-blue-50/50 border-[#92A8D1] text-[#2D3A54] shadow-[0_4px_12px_rgba(146,168,209,0.15)] ring-1 ring-[#92A8D1]/30":"bg-slate-50/60 border-slate-100 hover:bg-white text-slate-400 hover:text-slate-600"}`,children:[r.jsx("span",{className:"text-lg sm:text-xl",children:p.icon}),r.jsx("span",{className:"text-[10px] sm:text-[11px] font-bold truncate w-full",children:p.title.split("的")[0]})]},p.id))}),r.jsxs("div",{className:"bg-[#FAFBF9] border border-slate-100/90 rounded-2xl p-4 text-left flex flex-col gap-3 mb-5 transition-all duration-300",children:[r.jsxs("div",{className:"flex items-center justify-between pb-3",children:[r.jsxs("div",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-widest flex items-center gap-1",children:[r.jsx("span",{children:"📰"})," ",r.jsx("span",{children:"从新闻提炼出的市场急需（动机）"})]}),d.sentiment&&r.jsxs("div",{className:`text-[9px] font-extrabold px-2 py-0.5 rounded-full border ${d.sentiment==="Positive"?"bg-emerald-50 text-emerald-600 border-emerald-200":d.sentiment==="Negative"?"bg-red-50 text-red-600 border-red-200":"bg-slate-50 text-slate-600 border-slate-200"}`,children:["新闻情绪: ",d.sentiment==="Positive"?"积极":d.sentiment==="Negative"?"消极 (需求激增)":"中性"]})]}),r.jsx("div",{children:r.jsxs("p",{className:"text-slate-600 text-xs mt-1.5 leading-relaxed font-semibold",children:["“",d.lifeObs,"”"]})}),r.jsx("div",{className:"h-px bg-slate-100/80 w-full"}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-[9px] font-bold text-slate-400 uppercase tracking-widest",children:"🇨🇳 国内货源采购价"}),r.jsxs("p",{className:"text-slate-800 text-[14.5px] font-extrabold font-mono mt-0.5",children:["¥ ",d.domesticCost.toFixed(2)]}),r.jsx("p",{className:"text-[9px] text-slate-400",children:"一键极速对接低价源头供应链"})]}),r.jsxs("div",{children:[r.jsx("div",{className:"text-[9px] font-bold text-blue-400 uppercase tracking-widest",children:"🇪🇺 匹配欧洲零售溢价"}),r.jsxs("p",{className:"text-[#3A75C4] text-[14.5px] font-extrabold font-mono mt-0.5",children:["¥ ",d.overseaRetail.toFixed(2)]}),r.jsxs("p",{className:"text-[9px] text-blue-400/80 font-bold",children:[d.market,"当地高客单认购"]})]})]}),r.jsx("div",{className:"h-px bg-slate-100/80 w-full"}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-1.5",children:[r.jsxs("span",{className:"text-[10px] font-extrabold text-emerald-700 uppercase tracking-wider flex items-center gap-1 shrink-0",children:["⚡ 锁定海外推荐爆盘：",d.matchProduct]}),r.jsxs("span",{className:"text-[9px] bg-emerald-100 text-emerald-800 font-extrabold px-2 py-0.5 rounded-full shrink-0",children:["客单价差 ",d.margin]})]}),r.jsx("p",{className:"text-slate-500 text-[10px] mt-1.5 leading-relaxed",children:d.desc})]})]}),r.jsxs("button",{onClick:a,className:"w-full relative group py-3.5 bg-slate-900 hover:bg-black text-white rounded-2xl font-bold tracking-wide shadow-lg shadow-gray-200/50 hover:shadow-gray-300 transition-all duration-300 flex items-center justify-center gap-2.5 cursor-pointer",children:[r.jsx("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-r from-white/10 to-transparent opacity-0 group-hover:opacity-100 transition duration-300"}),r.jsx("div",{className:"w-2 h-2 rounded-full bg-[#A8E6CF] shadow-[0_0_8px_#A8E6CF] animate-ping"}),r.jsx("span",{className:"text-xs sm:text-sm font-extrabold",children:"开启智能数据雷达，全网高签收货盘扫描 ➔"})]})]})},b5=({onComplete:a})=>(H.useEffect(()=>{const l=setTimeout(a,3e3);return()=>clearTimeout(l)},[a]),r.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,scale:.95},className:"flex flex-col items-center",children:[r.jsxs("div",{className:"relative w-56 h-56 border border-slate-200/60 rounded-full flex items-center justify-center overflow-hidden bg-white/40 backdrop-blur-md shadow-inner",children:[r.jsx(te.div,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},className:"absolute w-1/2 h-1/2 origin-bottom-right bg-gradient-to-t from-[#A7D7C5]/60 to-transparent left-0 top-0 rounded-tl-full mix-blend-multiply"}),r.jsx("div",{className:"w-44 h-44 border border-slate-200/80 rounded-full absolute"}),r.jsx("div",{className:"w-28 h-28 border border-white rounded-full absolute bg-white/70 shadow-sm flex items-center justify-center backdrop-blur-sm z-10",children:r.jsx(B0,{className:"text-[#9BB7D4] w-8 h-8 opacity-90"})})]}),r.jsx(te.p,{animate:{opacity:[.4,1,.4]},transition:{duration:1.5,repeat:1/0},className:"mt-10 text-sm font-bold tracking-[0.2em] text-[#9BB7D4] uppercase",children:"Scanning Markets..."})]})),v5=({selectedProduct:a,setSelectedProduct:l,onConfirm:i})=>{const o=an.findIndex(h=>h.id===a.id),f=()=>{const h=(o+1)%an.length;l(an[h])};return r.jsxs(te.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},exit:{x:-25,opacity:0,scale:.98},className:"w-full max-w-md rounded-[32px] p-6 flex flex-col gap-4 relative bg-white/80 backdrop-blur-xl shadow-[0_20px_50px_rgba(0,0,0,0.04)] border border-white",children:[r.jsxs("div",{className:"flex flex-col text-center",children:[r.jsx("span",{className:"text-[11px] uppercase tracking-wider text-[#9E9E9E] font-medium mb-1",children:"系统已匹配 3 款海外高热度爆品"}),r.jsx("h2",{className:"text-base font-bold text-[#2D2D2D]",children:"切换以下合伙项目:"})]}),r.jsx("div",{className:"relative w-full h-[230px] my-4 flex items-center justify-center select-none overflow-visible",children:an.map((h,d)=>{const p=(d-o+an.length)%an.length,g=p===0,x=30-p*10,y=1-p*.06,v=p===0?0:p===1?6:-6,j=p===0?0:p===1?24:-24,T=p===0?0:p===1?12:20,E=1-p*.25;let O=r5;return h.id==="smart-mug"&&(O=e5),h.id==="ultrasonic-cleaner"&&(O=ac),r.jsxs(te.div,{style:{zIndex:x},animate:{x:j,y:T,scale:y,rotate:v,opacity:E},transition:{type:"spring",stiffness:350,damping:25},onClick:()=>l(h),className:`absolute w-[240px] h-[180px] p-4.5 rounded-[1.75rem] border cursor-pointer flex flex-col justify-between transition-all select-none
                  ${g?"bg-white border-[#92A8D1]/90 ring-2 ring-[#92A8D1]/40 shadow-[0_15px_30px_rgba(146,168,209,0.22)]":"bg-slate-50/90 border-[#ECEBE9] hover:bg-white shadow-[0_10px_25px_rgba(0,0,0,0.02)]"}`,children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2.5",children:[r.jsx("div",{className:`w-8.5 h-8.5 rounded-xl flex items-center justify-center shrink-0 ${g?"bg-[#92A8D1] text-white shadow-sm":"bg-[#FAFAF8] text-slate-400 border border-[#ECEBE9]/50"}`,children:r.jsx(O,{className:"w-4 h-4"})}),r.jsx("div",{className:"min-w-0 flex-1",children:r.jsx("h3",{className:"text-xs font-bold text-[#2D2D2D] leading-tight break-words text-left",children:h.name})})]}),r.jsxs("div",{className:"flex flex-wrap items-center gap-1.5 mt-3",children:[r.jsxs("span",{className:"text-[9px] bg-slate-100 text-slate-500 px-2.5 py-0.5 rounded-full font-bold font-mono inline-flex items-center shrink-0",children:[r.jsx(l5,{className:"w-2.5 h-2.5 text-[#9E9E9E] mr-0.5"}),h.market]}),r.jsx("span",{className:"text-[9px] bg-[#A8E6CF]/20 text-[#2D6A4F] px-2.5 py-0.5 rounded-full font-bold shrink-0",children:h.codLabel})]})]}),r.jsxs("div",{className:"mt-2 pt-2 border-t border-slate-100/80 flex flex-col gap-1 text-[10px]",children:[r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400 font-medium",children:"推荐受众"}),r.jsx("span",{className:"font-semibold text-slate-600 text-[9px]",children:h.audience})]}),r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400 font-medium font-sans",children:"海外客单价"}),r.jsxs("span",{className:"font-extrabold text-slate-800 font-mono text-[11px]",children:["¥",h.price.toFixed(2)]})]})]})]},h.id)})}),r.jsxs("div",{className:"flex flex-col items-center gap-2 mb-2 select-none",children:[r.jsx("div",{className:"flex justify-center gap-1.5",children:an.map((h,d)=>r.jsx("span",{onClick:()=>l(h),className:`h-1.5 rounded-full transition-all cursor-pointer ${h.id===a.id?"w-4 bg-[#92A8D1]":"w-1.5 bg-slate-200"}`},h.id))}),r.jsx("button",{type:"button",onClick:f,className:"text-[11px] text-blue-500 font-extrabold hover:underline cursor-pointer tracking-wider",children:"切换项目 ➔"})]}),r.jsxs("button",{onClick:i,className:"w-full bg-slate-900 text-white rounded-2xl py-4 font-bold text-[15px] hover:bg-black transition-all shadow-lg hover:-translate-y-0.5 relative overflow-hidden group cursor-pointer",children:[r.jsx("div",{className:"absolute inset-0 bg-white/10 translate-x-[-100%] skew-x-[-15deg] group-hover:animate-[shimmer_1s_forwards]"}),"锁定该爆品并生成其营销素材"]})]})},j5=({selectedProduct:a,onLaunch:l})=>{let i="延长食物保鲜 ",o="5",f=" 倍时间！一键操作，锁住新鲜。支持开箱验货，货到付款 (Plata la livrare)。";return a.id==="smart-mug"?(i="无论寒冷，锁住 ",o="55℃",f=" 黄金温度！长效续航，双层防烫。支持海外直邮，最快次日达。"):a.id==="ultrasonic-cleaner"&&(i="360° 声波高频深层净洗，焕醒 ",o="100%",f=" 璀璨如新！首创专效轻度洁净。支持安全到主，支持开箱试机货到付款。"),r.jsxs(te.div,{initial:{y:30,opacity:0},animate:{y:0,opacity:1},exit:{opacity:0,scale:.95},className:"w-full max-w-[420px] aspect-auto",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6 px-2",children:[r.jsx("div",{className:"w-2.5 h-7 rounded-full bg-gradient-to-b from-[#E15151] to-[#CD3E3E]"}),r.jsx("h2",{className:"font-bold text-slate-800 text-[22px] tracking-tight",children:"营销素材生成完毕"})]}),r.jsx("div",{className:"grid grid-cols-3 gap-3.5 mb-8",children:[1,2,3].map(h=>r.jsxs(te.div,{initial:{opacity:0,y:15},animate:{opacity:1,y:0},transition:{delay:h*.15},className:"bg-white rounded-2xl aspect-square shadow-[0_8px_20px_rgba(0,0,0,0.03)] border border-slate-100 flex items-center justify-center p-2 relative overflow-hidden group hover:scale-105 transition-transform",children:[r.jsxs("div",{className:"w-full h-full bg-slate-50/80 rounded-xl flex flex-col items-center justify-center border border-slate-100/50",children:[r.jsx(n5,{className:`w-7 h-7 mb-2 ${h===2?"text-[#A8E6CF]":"text-slate-300"}`}),r.jsxs("span",{className:"text-[11px] font-bold tracking-widest text-slate-400",children:["场景 0",h]})]}),h===2&&r.jsx("div",{className:"absolute inset-0 bg-[#A8E6CF]/10 pointer-events-none"})]},h))}),r.jsxs(te.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.6},className:"bg-white p-7 rounded-[2rem] shadow-[0_12px_40px_rgb(0,0,0,0.05)] border border-slate-100 mb-10 relative",children:[r.jsx("div",{className:"absolute -top-3.5 left-7 bg-[#92A8D1]/20 border border-[#92A8D1]/30 text-blue-800 px-3 py-1 rounded-full text-[10px] items-center gap-1 flex font-bold tracking-widest shadow-sm backdrop-blur-md",children:"AD COPY"}),r.jsxs("p",{className:"text-slate-700 font-medium leading-[1.8] mt-2 text-[15px]",children:[i,r.jsx("span",{className:"text-[#E15151] font-black text-xl mx-0.5 shadow-sm",children:o}),f]})]}),r.jsxs(te.button,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.8},whileHover:{scale:1.02},whileTap:{scale:.96},onClick:l,className:"w-full bg-red-600 hover:bg-red-700 active:bg-red-800 text-white rounded-2xl py-4.5 font-bold text-[17px] tracking-wide transition-all shadow-[0_12px_30px_rgba(220,38,38,0.45)] hover:shadow-[0_16px_36px_rgba(220,38,38,0.6)] flex items-center justify-center gap-2.5 group border border-red-700/30 cursor-pointer relative overflow-hidden",children:[r.jsx("span",{className:"absolute inset-x-0 h-1 bg-gradient-to-r from-red-400 via-white to-red-400 opacity-20 group-hover:top-0 transition-all top-[-2px]"}),r.jsx(U0,{className:"w-5 h-5 animate-pulse group-hover:-translate-y-0.5 group-hover:scale-110 transition-transform"}),r.jsx("span",{children:"🚀 一键启动广告投流 (100% 准备就绪)"})]})]})},S5=({value:a,format:l=!1})=>{const i=Q2(a,{stiffness:150,damping:15});H.useEffect(()=>{i.set(a)},[a,i]);const o=R0(i,f=>{const h=Math.round(f);return l?h.toLocaleString():h.toString()});return r.jsx(te.span,{children:o})},w5=({metrics:a,onFinish:l})=>r.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:-20},className:"flex flex-col items-center justify-center w-full max-w-sm",children:[r.jsxs("div",{className:"w-full flex flex-col items-center space-y-2.5 relative select-none",children:[r.jsx("div",{className:"absolute top-4 bottom-4 w-10 bg-white/50 border-x border-[#ECEBE9] rounded-full -z-10"}),r.jsx(On,{label:"实时曝光量",value:a.impressions,format:!0,width:"w-full",active:a.impressions>0}),r.jsx(On,{label:"广告点击量",value:a.clicks,width:"w-[85%]",active:a.clicks>0}),r.jsx(On,{label:"生成加购量",value:a.addCarts,width:"w-[70%]",active:a.addCarts>0}),r.jsx(On,{label:"安全结账出单",value:a.orders,width:"w-[55%]",active:a.orders>0,color:a.orders>0?"bg-emerald-50 text-emerald-600 border-emerald-300 ring-2 ring-emerald-300/40":void 0})]}),r.jsxs("div",{className:"mt-8 h-28 flex items-center justify-center relative",children:[r.jsx("div",{className:"absolute w-40 h-40 bg-emerald-500/10 rounded-full blur-2xl flex items-center justify-center"}),r.jsx(fn,{children:a.orders>0?r.jsxs(te.div,{initial:{scale:0,y:30},animate:{scale:1,y:0},transition:{type:"spring",stiffness:200,damping:15},className:"flex flex-col items-center relative z-10",children:[r.jsx(tc,{className:"w-12 h-12 text-[#2D6A4F] mb-2 drop-shadow-xl animate-bounce"}),r.jsx("span",{className:"text-[22px] font-bold text-emerald-600 tracking-tight drop-shadow-sm",children:"订单成功转化！"})]}):r.jsxs("div",{className:"flex flex-col items-center gap-2",children:[r.jsx(te.div,{animate:{rotate:360},transition:{repeat:1/0,duration:1.5,ease:"linear"},className:"w-8 h-8 rounded-full border-2 border-t-[#92A8D1] border-slate-200"}),r.jsx("span",{className:"text-xs text-slate-400 font-medium tracking-widest animate-pulse",children:"海外信息流高频曝光中..."})]})})]}),r.jsx(fn,{children:a.orders>0&&r.jsx(te.button,{whileTap:{scale:.96},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{type:"spring"},onClick:l,className:"mt-6 w-full py-4.5 bg-slate-900 border border-slate-900 text-white rounded-2xl font-bold tracking-wide shadow-lg shadow-emerald-50 hover:bg-black transition-all cursor-pointer relative",children:"查看即时结账单簿册"})})]}),N5=({metrics:a,onFinish:l})=>r.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,y:-20},className:"flex flex-col items-center justify-center w-full max-w-sm",children:[r.jsxs("div",{className:"w-full flex flex-col items-center space-y-2.5 relative select-none",children:[r.jsx("div",{className:"absolute top-4 bottom-4 w-10 bg-white/50 border-x border-[#ECEBE9] rounded-full -z-10"}),r.jsx(On,{label:"二次曝光量",value:a.impressions,format:!0,width:"w-full",active:a.impressions>0}),r.jsx(On,{label:"精确点击量",value:a.clicks,width:"w-[85%]",active:a.clicks>0}),r.jsx(On,{label:"转化加购量",value:a.addCarts,width:"w-[70%]",active:a.addCarts>0}),r.jsx(On,{label:"二次安全结账出单",value:a.orders,width:"w-[55%]",active:a.orders>0,color:a.orders>0?"bg-emerald-50 text-emerald-600 border-emerald-300 ring-2 ring-emerald-300/40":void 0})]}),r.jsxs("div",{className:"mt-8 h-28 flex items-center justify-center relative",children:[r.jsx("div",{className:"absolute w-40 h-40 bg-emerald-500/10 rounded-full blur-2xl flex items-center justify-center"}),r.jsx(fn,{children:a.orders>0?r.jsxs(te.div,{initial:{scale:0,y:30},animate:{scale:1,y:0},transition:{type:"spring",stiffness:200,damping:15},className:"flex flex-col items-center relative z-10",children:[r.jsx(tc,{className:"w-12 h-12 text-[#2D6A4F] mb-2 drop-shadow-xl animate-bounce"}),r.jsx("span",{className:"text-[22px] font-bold text-emerald-600 tracking-tight drop-shadow-sm",children:"二次优化爆单成功！"})]}):r.jsxs("div",{className:"flex flex-col items-center gap-2",children:[r.jsx(te.div,{animate:{rotate:360},transition:{repeat:1/0,duration:1.5,ease:"linear"},className:"w-8 h-8 rounded-full border-2 border-t-[#92A8D1] border-slate-200"}),r.jsx("span",{className:"text-xs text-slate-400 font-medium tracking-widest animate-pulse",children:"精准引流二次优化高频投放中..."})]})})]}),r.jsx(fn,{children:a.orders>0&&r.jsx(te.button,{whileTap:{scale:.96},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{type:"spring"},onClick:l,className:"mt-6 w-full py-4.5 bg-slate-900 border border-slate-900 text-white rounded-2xl font-bold tracking-wide shadow-lg shadow-emerald-50 hover:bg-black transition-all cursor-pointer relative",children:"查看二次对齐爆单结算账本单"})})]}),On=({label:a,value:l,width:i,active:o,color:f,format:h=!1})=>r.jsxs(te.div,{initial:{opacity:0,y:-15},animate:{opacity:o?1:.35,y:0,scale:o?1:.95},transition:{type:"spring",stiffness:150,damping:15},className:`${i} ${f||"bg-white border-[#ECEBE9]"} backdrop-blur-sm border ${o?"shadow-[0_8px_20px_rgba(0,0,0,0.04)]":"shadow-sm"} rounded-[24px] py-3 flex justify-between px-5 items-center transition-all duration-300`,children:[r.jsx("span",{className:`text-[13px] font-bold ${o?"text-slate-700":"text-slate-400"}`,children:a}),r.jsx("span",{className:`font-mono font-extrabold ${o?"text-slate-800":"text-slate-400"} text-lg`,children:r.jsx(S5,{value:l,format:h})})]}),T5=({step:a,selectedProduct:l,orderBills:i=[],hasWithdrawn:o,onWithdraw:f,onGoBack:h,transitionTo:d})=>{const p=j=>{switch(j){case"ultrasonic-cleaner":return{text:"极速破冰收益榜第 2 名",pct:"前 0.8%"};case"smart-mug":return{text:"极速破冰收益榜第 4 名",pct:"前 1.5%"};case"sealed-machine":default:return{text:"极速破冰收益榜第 5 名",pct:"前 2.1%"}}},g=i.reduce((j,T)=>j+T.revenue,0),[x,y]=H.useState(0),v=()=>{y(j=>j+360),setTimeout(()=>{f()},450)};return r.jsxs(te.div,{initial:{y:30,opacity:0,scale:.95},animate:{y:0,opacity:1,scale:1,rotateY:x},transition:{type:"spring",stiffness:150,damping:15},style:{transformStyle:"preserve-3d"},className:"w-full max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.04)] border border-white p-6 relative overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-[#A8E6CF] via-[#92A8D1] to-[#F7CAC9]"}),a==="success"&&r.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 bg-white/98 backdrop-blur-xl z-20 flex flex-col items-center justify-center p-6 text-center select-none",children:[r.jsx(te.div,{whileHover:{scale:1.1,rotate:12},initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.1},className:"w-14 h-14 bg-[#1AAD19] rounded-2xl flex items-center justify-center mb-4 shadow-[0_10px_30px_rgba(26,173,25,0.35)] animate-bounce",children:r.jsx(hi,{className:"w-7 h-7 text-white"})}),r.jsx("h3",{className:"font-bold text-lg text-slate-800 tracking-tight",children:"微信零钱结算成功"}),r.jsx("p",{className:"font-mono text-3.5xl font-black text-emerald-600 mt-1 tracking-tight",children:"+ ¥ 61.50"}),r.jsx("p",{className:"text-[11px] text-slate-400 mt-1 leading-normal",children:"提现清算已发往微信零钱包安全到账"}),r.jsxs("div",{className:"bg-slate-50 border border-slate-200/50 p-3.5 rounded-2xl w-full my-4 flex justify-between select-none shadow-inner",children:[r.jsxs("div",{className:"text-center flex-1",children:[r.jsx("span",{className:"text-[9px] text-slate-400 block tracking-widest font-semibold",children:"发生加购数"}),r.jsx("span",{className:"text-[#3A75C4] font-mono font-black text-[13.5px] mt-1 block animate-pulse",children:"⏳ 12 核心加购"})]}),r.jsx("div",{className:"w-px bg-slate-200"}),r.jsxs("div",{className:"text-center flex-1",children:[r.jsx("span",{className:"text-[9px] text-slate-400 block tracking-widest font-semibold",children:"最终开出单"}),r.jsx("span",{className:"text-emerald-600 font-mono font-black text-[13.5px] mt-1 block animate-pulse",children:"🎯 1 笔爆单"})]})]}),r.jsx("button",{onClick:()=>d("explore_environment","探索那 11 位犹豫加购者的真实环境"),className:"w-full py-3.5 bg-[#E07A5F] hover:bg-[#D36B50] active:bg-[#B5523A] text-white rounded-xl font-extrabold text-xs tracking-wider shadow-lg shadow-orange-100 transition-all duration-300 flex items-center justify-center gap-1 cursor-pointer animate-pulse",children:r.jsx("span",{children:"🔍 探索那 11 位犹豫加购者的真实环境 ➔"})})]}),r.jsxs("div",{className:"flex justify-between items-start mb-4 mt-1",children:[r.jsxs("div",{className:"flex flex-col text-left",children:[r.jsx("h2",{className:"text-lg font-bold text-[#2D2D2D]",children:"即时分成收益"}),r.jsxs("p",{className:"text-[11px] text-slate-400 mt-0.5",children:["当前累计总收益：",r.jsxs("span",{className:"font-bold text-emerald-600 font-mono",children:["¥ ",g.toFixed(2)]})," (共 ",i.length," 笔订单)"]})]}),r.jsx("div",{className:"w-10 h-10 bg-[#A8E6CF]/25 rounded-full flex items-center justify-center text-[#2D6A4F] shrink-0",children:r.jsx(hi,{className:"w-5 h-5 font-bold"})})]}),r.jsxs("div",{className:"space-y-1 mb-2",children:[i.length>1&&r.jsxs("div",{className:"flex justify-between items-center px-1 mb-1 text-[10px] text-[#9E9E9E] font-medium",children:[r.jsx("span",{children:"交互指引:"}),r.jsxs("span",{className:"animate-pulse",children:["查看所有 ",i.length," 笔结算收益单"]})]}),r.jsx("div",{className:"flex overflow-x-auto snap-x scrollbar-none gap-3 pb-3 -mx-2 px-2 select-none",children:i.map(j=>r.jsxs("div",{className:"w-[290px] md:w-[310px] shrink-0 snap-center bg-slate-50/60 p-4 rounded-2xl border border-[#ECEBE9] flex flex-col justify-between shadow-sm relative",children:[r.jsx("div",{className:"absolute top-2.5 right-3 text-[9px] font-mono text-slate-400 bg-slate-100 px-1.5 py-0.5 rounded",children:j.timeString}),r.jsx("div",{className:"pb-2 mb-2 border-b border-dashed border-[#ECEBE9] text-left",children:r.jsxs("span",{className:"text-[10px] text-slate-400 block tracking-tight uppercase",children:["结算号: ",j.id]})}),r.jsxs("div",{className:"space-y-2 mb-3 text-xs text-slate-600 text-left",children:[r.jsxs("div",{className:"flex justify-between items-center text-[11px]",children:[r.jsx("span",{children:"订单客单价"}),r.jsxs("span",{className:"font-mono font-semibold text-[#2D2D2D]",children:["¥ ",j.price.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400",children:[r.jsx("span",{children:"商品出厂成本"}),r.jsxs("span",{className:"font-mono text-red-500",children:["- ¥ ",j.productCost.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400",children:[r.jsx("span",{children:"广告投放费用"}),r.jsxs("span",{className:"font-mono text-red-400",children:["- ¥ ",j.adCost.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400",children:[r.jsx("span",{children:"跨境物流运费"}),r.jsxs("span",{className:"font-mono text-red-400",children:["- ¥ ",j.shippingCost.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between items-center pt-2 border-t border-slate-200/50",children:[r.jsx("span",{className:"font-medium text-slate-500",children:"单笔预估纯利"}),r.jsxs("span",{className:"font-mono font-bold text-slate-800",children:["¥ ",j.profit.toFixed(2)]})]})]}),r.jsxs("div",{className:"bg-emerald-50/40 border border-emerald-100 p-2.5 rounded-xl flex justify-between items-center",children:[r.jsxs("div",{className:"text-left",children:[r.jsxs("p",{className:"text-[9px] text-[#9E9E9E] leading-none mb-1",children:["平台签收买断分成 (",Math.round(j.signingRate*100),"%)"]}),r.jsxs("p",{className:"text-sm font-extrabold text-[#2D6A4F] font-mono leading-none",children:["¥ ",j.revenue.toFixed(2)]})]}),r.jsx("span",{className:"text-[10px] text-emerald-600 font-bold bg-white px-2 py-0.5 rounded shadow-sm border border-emerald-100 shrink-0",children:"已入账"})]})]},j.id))})]}),r.jsxs("div",{className:"mb-6 flex justify-between items-center text-[11px] bg-amber-50/40 border border-amber-200/40 px-3.5 py-2 rounded-xl text-left select-none",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-amber-800 font-semibold shrink-0",children:[r.jsx("span",{children:"🏆"}),r.jsx("span",{children:"极速破冰成绩："})]}),r.jsxs("div",{className:"font-bold text-amber-900 truncate flex-1 text-right",children:[p(l.id).text," ",r.jsx("span",{className:"font-semibold text-amber-700 text-[10px] ml-1 bg-amber-100/80 px-1.5 py-0.5 rounded-full",children:p(l.id).pct})]})]}),r.jsx("button",{onClick:v,disabled:a==="success",className:"w-full py-3.5 bg-slate-900 text-white rounded-xl font-bold text-sm tracking-wide shadow-lg shadow-gray-200 hover:bg-black transition-all cursor-pointer active:scale-95 disabled:bg-slate-205 disabled:text-slate-400 disabled:cursor-not-allowed",children:o?"查看累计分成收益":"立即提现累计收益到微信钱包"})]})},A5=({step:a,transitionTo:l})=>{const[i,o]=H.useState(0),[f,h]=H.useState("map"),d=[{id:0,name:"马莉亚 Maria (家庭女主妇)",tag:"典型农妇家庭 · Strada Trandafirilor 42号院",title:"东欧乡村农舍 · 土造地窖储藏间",emoji:"🏡",hesitation:"担心赠送真空袋太快用完（默认仅送10个），不舍得在支付界面下单",sceneryTitle:"Maria 自家庭院 & 地下菜窖储藏间 🥫",description:"一到冬储期，家里堆满了刚采摘新鲜的番茄、马铃薯。因要吃一整个冬天，必须极高厚度与气密锁鲜。如果没有足够的袋子赠品，她对真空机本身价值便产生动摇。",svgType:"maria",bonusTips:"提示：针对Maria这种客户，‘买一送50个袋子’能100%击穿心防！"},{id:1,name:"斯特凡 Stefan (高山肉类加工散户)",tag:"微型猪禽畜栏 · Strada Trandafirilor 56号院",title:"家禽养殖后院 · 肉类腊熏干制棚",emoji:"🥩",hesitation:"担心这块1.5kg轻便型真空机真空力过低、或者保鲜膜扎扎实实易漏气",sceneryTitle:"Stefan 肉制品熏干棚与工具间 🐖",description:"斯特凡秋季宰杀生猪，自制熏香肠、腊肉火腿。因为带尖骨、水分较多且边缘粗砺，需要极强的高压双泵强吸力和坚韧防穿刺的高复合保鲜袋。他对坚固度极度敏感。",svgType:"stefan",bonusTips:"提示：强调高强度复合袋材质，能完美解决硬刺猪骨扎破的痛点！"},{id:2,name:"埃琳娜 Elena (山地野山菌采集商)",tag:"林间果珍作坊 · Strada Trandafirilor 18号楼",title:"松林山货精舍 · 浆果菌菇储纳棚",emoji:"🍄",hesitation:"害怕市面上超强力真空抽取会直接把松软桑葚、脆牛肝菌压得稀烂汁溢",sceneryTitle:"Elena 浆果山菌手作临时收纳间 🍓",description:"埃琳娜采摘黑莓、树霉及野生松露。桑葚皮极娇嫩易流汁，普通强抽真空机会由于单压强破坏食材完好品相，迫切需要能‘按需点触慢抽、点控气量’的精细保护机制。",svgType:"elena",bonusTips:"提示：点按精控模式能保留浆果完好充盈状态，正中她的下怀！"}],p=d[i],g=()=>{o(y=>(y+1)%d.length)},x=()=>{o(y=>(y-1+d.length)%d.length)};return r.jsxs(te.div,{initial:{opacity:0,scale:.96,y:15},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95},className:"w-full max-w-xl bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.04)] border border-slate-100/80 p-5 sm:p-6 flex flex-col relative overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-amber-400 via-orange-400 to-amber-500"}),r.jsxs("div",{className:"text-left mb-4 select-none",children:[r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2",children:[r.jsx("span",{className:"text-[9.5px] font-bold tracking-widest text-[#E07A5F] bg-orange-50 border border-orange-100/80 px-2.5 py-1 rounded-full uppercase w-fit",children:"📍 玫瑰路下沉街区 · 11位加购未付款海外原生态客户"}),r.jsxs("div",{className:"flex bg-slate-100 p-0.5 rounded-lg text-[10.5px] font-semibold w-fit self-end sm:self-auto",children:[r.jsxs("button",{onClick:()=>h("map"),className:`px-3 py-1 rounded-md transition-all flex items-center gap-1 cursor-pointer ${f==="map"?"bg-white text-slate-800 shadow-sm":"text-slate-400 hover:text-slate-600"}`,children:[r.jsx(i5,{className:"w-3 h-3"}),r.jsx("span",{children:"微观地图"})]}),r.jsxs("button",{onClick:()=>h("street"),className:`px-3 py-1 rounded-md transition-all flex items-center gap-1 cursor-pointer ${f==="street"?"bg-white text-slate-800 shadow-sm":"text-slate-400 hover:text-slate-600"}`,children:[r.jsx(t5,{className:"w-3 h-3"}),r.jsx("span",{children:"外景街景"})]})]})]}),r.jsx("h3",{className:"text-sm sm:text-base font-extrabold text-[#2D2D2D] tracking-tight mt-3",children:"东欧下沉市场 · 三类典型客户微观生活环境拆解"}),r.jsxs("p",{className:"text-[11px] text-slate-400 mt-1 leading-normal flex flex-wrap items-center gap-x-1",children:[r.jsx("span",{children:"系统已将犹豫未付的用户归为同一街区（Strada Trandafirilor）的3个家庭："}),r.jsx("a",{href:"https://www.google.com/maps/@46.5583734,23.5042479,3a,75y,241.62h,90t/data=!3m7!1e1!3m5!1seU_XTvLv6_e9Monk-fzDFA!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fcb_client%3Dmaps_sv.tactile%26w%3D900%26h%3D600%26pitch%3D0%26panoid%3DeU_XTvLv6_e9Monk-fzDFA%26yaw%3D241.62178!7i16384!8i8192?entry=ttu&g_ep=EgoyMDI2MDYwMS4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-0.5 text-[#E07A5F] hover:text-[#D36B50] font-extrabold underline transition-all hover:opacity-95 cursor-pointer bg-orange-50/80 border border-orange-100 px-1.5 py-0.5 rounded text-[10.5px]",title:"Google Maps 实景定位",children:"🗺️ 谷歌地图实景定位 ➔"})]})]}),r.jsxs("div",{className:"relative mb-4",children:[r.jsx(fn,{mode:"wait",children:f==="map"?r.jsx(te.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:10},transition:{type:"spring",stiffness:150,damping:15},children:r.jsxs("svg",{viewBox:"0 0 400 200",className:"w-full h-44 rounded-2xl bg-[#ECEFF1] border border-slate-205 shadow-inner relative overflow-hidden select-none",children:[r.jsxs("g",{stroke:"#CFD8DC",strokeWidth:"0.5",strokeDasharray:"5 5",children:[r.jsx("line",{x1:"40",y1:"0",x2:"40",y2:"200"}),r.jsx("line",{x1:"80",y1:"0",x2:"80",y2:"200"}),r.jsx("line",{x1:"120",y1:"0",x2:"120",y2:"200"}),r.jsx("line",{x1:"160",y1:"0",x2:"160",y2:"200"}),r.jsx("line",{x1:"200",y1:"0",x2:"200",y2:"200"}),r.jsx("line",{x1:"240",y1:"0",x2:"240",y2:"200"}),r.jsx("line",{x1:"280",y1:"0",x2:"280",y2:"200"}),r.jsx("line",{x1:"320",y1:"0",x2:"320",y2:"200"}),r.jsx("line",{x1:"360",y1:"0",x2:"360",y2:"200"})]}),r.jsxs("g",{fill:"#B0BEC5",opacity:"0.4",children:[r.jsx("circle",{cx:"30",cy:"35",r:"14"}),r.jsx("circle",{cx:"160",cy:"25",r:"10"}),r.jsx("circle",{cx:"370",cy:"170",r:"18"}),r.jsx("circle",{cx:"340",cy:"180",r:"12"})]}),r.jsx("path",{d:"M -10,105 C 100,55 180,145 410,95",fill:"none",stroke:"#D1DBE0",strokeWidth:"32",strokeLinecap:"round"}),r.jsx("path",{d:"M -10,105 C 100,55 180,145 410,95",fill:"none",stroke:"#90A4AE",strokeWidth:"24",strokeLinecap:"round"}),r.jsx("path",{d:"M -10,105 C 100,55 180,145 410,95",fill:"none",stroke:"#FFFFFF",strokeWidth:"1.5",strokeDasharray:"6 6",strokeLinecap:"round"}),r.jsxs("g",{transform:"translate(365, 30)",opacity:"0.8",children:[r.jsx("circle",{cx:"0",cy:"0",r:"14",fill:"#FFF",stroke:"#90A4AE",strokeWidth:"1.2"}),r.jsx("polygon",{points:"0,-11 3,0 -3,0",fill:"#E07A5F"}),r.jsx("polygon",{points:"0,11 3,0 -3,0",fill:"#90A4AE"})]}),r.jsx("text",{x:"110",y:"88",fill:"#37474F",fontSize:"8",fontWeight:"bold",transform:"rotate(10, 110, 88)",opacity:.8,children:"Strada Trandafirilor (中下沉街区)"}),r.jsxs("g",{className:"cursor-pointer",onClick:()=>o(0),children:[i===0&&r.jsx("circle",{cx:"70",cy:"55",r:"18",fill:"#E07A5F",fillOpacity:"0.2",className:"animate-ping"}),r.jsx("rect",{x:"52",y:"45",width:"36",height:"20",rx:"4",fill:i===0?"#E07A5F":"#78909C",stroke:"#FFF",strokeWidth:"1"}),r.jsx("polygon",{points:"48,45 70,30 92,45",fill:i===0?"#C0392B":"#546E7A"}),r.jsx("text",{x:"57",y:"58",fill:"#FFF",fontSize:"8",fontWeight:"bold",children:"🏡 42"}),r.jsx("circle",{cx:"70",cy:"30",r:"3",fill:"#C0392B",stroke:"#FFF",strokeWidth:"1"})]}),r.jsxs("g",{className:"cursor-pointer",onClick:()=>o(1),children:[i===1&&r.jsx("circle",{cx:"210",cy:"135",r:"18",fill:"#E07A5F",fillOpacity:"0.2",className:"animate-ping"}),r.jsx("rect",{x:"192",y:"125",width:"36",height:"20",rx:"4",fill:i===1?"#E07A5F":"#78909C",stroke:"#FFF",strokeWidth:"1"}),r.jsx("polygon",{points:"188,125 210,110 232,125",fill:i===1?"#C0392B":"#546E7A"}),r.jsx("text",{x:"197",y:"138",fill:"#FFF",fontSize:"8",fontWeight:"bold",children:"🥩 56"}),r.jsx("circle",{cx:"210",cy:"110",r:"3",fill:"#C0392B",stroke:"#FFF",strokeWidth:"1"})]}),r.jsxs("g",{className:"cursor-pointer",onClick:()=>o(2),children:[i===2&&r.jsx("circle",{cx:"330",cy:"75",r:"18",fill:"#E07A5F",fillOpacity:"0.2",className:"animate-ping"}),r.jsx("rect",{x:"312",y:"65",width:"36",height:"20",rx:"4",fill:i===2?"#E07A5F":"#78909C",stroke:"#FFF",strokeWidth:"1"}),r.jsx("polygon",{points:"308,65 330,50 352,65",fill:i===2?"#C0392B":"#546E7A"}),r.jsx("text",{x:"317",y:"78",fill:"#FFF",fontSize:"8",fontWeight:"bold",children:"🍄 18"}),r.jsx("circle",{cx:"330",cy:"50",r:"3",fill:"#C0392B",stroke:"#FFF",strokeWidth:"1"})]})]})},"map-view"):r.jsx(te.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{type:"spring",stiffness:150,damping:15},children:r.jsxs("svg",{viewBox:"0 0 400 150",className:"w-full h-36 rounded-2xl bg-[#FAF9F5] border border-slate-205 shadow-inner relative overflow-hidden select-none",children:[p.svgType==="maria"&&r.jsxs("g",{children:[r.jsx("rect",{width:"400",height:"150",fill:"#FAF8F3"}),r.jsx("rect",{x:"40",y:"30",width:"140",height:"95",fill:"#EFE5D3",stroke:"#D7CCC8",strokeWidth:"1.5"}),r.jsx("polygon",{points:"30,30 110,5 190,30",fill:"#D32F2F"}),r.jsx("rect",{x:"85",y:"60",width:"50",height:"40",fill:"#FCFAF2",stroke:"#D7CCC8",strokeWidth:"1"}),r.jsx("line",{x1:"110",y1:"60",x2:"110",y2:"100",stroke:"#D7CCC8",strokeWidth:"1"}),r.jsx("line",{x1:"85",y1:"80",x2:"135",y2:"80",stroke:"#D7CCC8",strokeWidth:"1"}),r.jsxs("g",{transform:"translate(230, 75)",children:[r.jsx("rect",{x:"0",y:"10",width:"130",height:"50",fill:"#8D6E63",rx:"4"}),r.jsx("circle",{cx:"20",cy:"25",r:"8",fill:"#B28C78",stroke:"#3E2723",strokeWidth:"1"}),r.jsx("circle",{cx:"40",cy:"25",r:"8",fill:"#B28C78",stroke:"#3E2723",strokeWidth:"1"}),r.jsx("circle",{cx:"30",cy:"40",r:"8",fill:"#B28C78",stroke:"#3E2723",strokeWidth:"1"}),r.jsx("circle",{cx:"60",cy:"35",r:"8",fill:"#B28C78",stroke:"#3E2723",strokeWidth:"1"}),r.jsx("circle",{cx:"80",cy:"25",r:"8",fill:"#B28C78",stroke:"#3E2723",strokeWidth:"1"}),r.jsx("circle",{cx:"100",cy:"35",r:"8",fill:"#B28C78",stroke:"#3E2723",strokeWidth:"1"}),r.jsx("text",{x:"12",y:"-2",fill:"#5D4037",fontSize:"8",fontWeight:"bold",children:"🪵 自家前院积存柴火"})]}),r.jsx("circle",{cx:"200",cy:"120",r:"9.5",fill:"#E24C3C"}),r.jsx("circle",{cx:"212",cy:"122",r:"8.5",fill:"#E43A26"}),r.jsx("circle",{cx:"206",cy:"114",r:"9",fill:"#CD3122"}),r.jsx("text",{x:"182",y:"102",fill:"#8B2519",fontSize:"7.5",fontWeight:"bold",children:"🥫 鲜采果蔬"})]}),p.svgType==="stefan"&&r.jsxs("g",{children:[r.jsx("rect",{width:"400",height:"150",fill:"#ECEFF1"}),r.jsx("rect",{x:"50",y:"25",width:"120",height:"100",fill:"#90A4AE",stroke:"#607D8B",strokeWidth:"1.5"}),r.jsx("polygon",{points:"40,25 110,5 180,25",fill:"#37474F"}),r.jsx("rect",{x:"95",y:"70",width:"30",height:"55",fill:"#455A64"}),r.jsx("rect",{x:"0",y:"125",width:"400",height:"25",fill:"#CFD8DC"}),r.jsxs("g",{transform:"translate(210, 25)",children:[r.jsx("line",{x1:"10",y1:"10",x2:"150",y2:"10",stroke:"#37474F",strokeWidth:"2.5"}),r.jsx("line",{x1:"40",y1:"10",x2:"40",y2:"40",stroke:"#78909C",strokeWidth:"1"}),r.jsx("line",{x1:"80",y1:"10",x2:"80",y2:"45",stroke:"#78909C",strokeWidth:"1"}),r.jsx("line",{x1:"120",y1:"10",x2:"120",y2:"40",stroke:"#78909C",strokeWidth:"1"}),r.jsx("rect",{x:"34",y:"40",width:"12",height:"30",rx:"5",fill:"#C0392B"}),r.jsx("rect",{x:"74",y:"45",width:"12",height:"35",rx:"5",fill:"#7B241C"}),r.jsx("rect",{x:"114",y:"40",width:"12",height:"28",rx:"5",fill:"#C0392B"}),r.jsx("text",{x:"15",y:"94",fill:"#37474F",fontSize:"8",fontWeight:"bold",children:"🥩 高挂腌制大骨腊肉"})]})]}),p.svgType==="elena"&&r.jsxs("g",{children:[r.jsx("rect",{width:"400",height:"150",fill:"#F3E5F5"}),r.jsx("rect",{x:"220",y:"25",width:"140",height:"95",fill:"#CE93D8",stroke:"#8E24AA",strokeWidth:"1.5",rx:"4"}),r.jsx("polygon",{points:"210,25 290,2 370,25",fill:"#4A148C"}),r.jsx("rect",{x:"250",y:"55",width:"30",height:"30",fill:"#FFF",opacity:.6}),r.jsx("rect",{x:"300",y:"55",width:"30",height:"30",fill:"#FFF",opacity:.6}),r.jsxs("g",{transform:"translate(40, 50)",children:[r.jsx("rect",{x:"0",y:"40",width:"130",height:"8",fill:"#8D6E63"}),r.jsx("line",{x1:"20",y1:"48",x2:"20",y2:"80",stroke:"#5D4037",strokeWidth:"2.5"}),r.jsx("line",{x1:"110",y1:"48",x2:"110",y2:"80",stroke:"#5D4037",strokeWidth:"2.5"}),r.jsx("path",{d:"M 25,15 L 105,15 L 95,40 L 35,40 Z",fill:"#E8D7D0",stroke:"#8D6E63",strokeWidth:"1"}),r.jsx("circle",{cx:"45",cy:"14",r:"5.5",fill:"#8D6E63"}),r.jsx("circle",{cx:"65",cy:"13",r:"6.5",fill:"#5D4037"}),r.jsx("circle",{cx:"85",cy:"14",r:"5",fill:"#8D6E63"}),r.jsx("circle",{cx:"53",cy:"15",r:"3.5",fill:"#E81123"}),r.jsx("circle",{cx:"75",cy:"14",r:"3",fill:"#E81123"}),r.jsx("text",{x:"12",y:"8",fill:"#731C89",fontSize:"8",fontWeight:"bold",children:"🍇 高贵莓果与菌菇"})]})]})]})},"street-view")}),r.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 left-2",children:r.jsx("button",{onClick:x,className:"p-1.5 rounded-full bg-white/90 stroke-slate-700 shadow-md border border-slate-200/50 hover:bg-slate-50 transition-all cursor-pointer",children:r.jsx(L0,{className:"w-4 h-4 text-slate-700"})})}),r.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 right-2",children:r.jsx("button",{onClick:g,className:"p-1.5 rounded-full bg-white/90 stroke-slate-700 shadow-md border border-slate-200/50 hover:bg-slate-50 transition-all cursor-pointer",children:r.jsx(I2,{className:"w-4 h-4 text-slate-700"})})}),r.jsxs("a",{href:"https://www.google.com/maps/@46.5583734,23.5042479,3a,75y,241.62h,90t/data=!3m7!1e1!3m5!1seU_XTvLv6_e9Monk-fzDFA!2e0!6shttps:%2F%2Fstreetviewpixels-pa.googleapis.com%2Fv1%2Fthumbnail%3Fcb_client%3Dmaps_sv.tactile%26w%3D900%26h%3D600%26pitch%3D0%26panoid%3DeU_XTvLv6_e9Monk-fzDFA%26yaw%3D241.62178!7i16384!8i8192?entry=ttu&g_ep=EgoyMDI2MDYwMS4wIKXMDSoASAFQAw%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"absolute bottom-2 left-1/2 -translate-x-1/2 px-3 py-1 rounded-full bg-slate-900/85 hover:bg-slate-900 backdrop-blur-md border border-white/15 text-white text-[10px] font-bold flex items-center gap-1.5 shadow-md transition-all hover:scale-103 cursor-pointer",title:"Google Maps",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),r.jsxs("span",{children:["街区住址：",p.tag]}),r.jsx("span",{className:"border-l border-white/20 pl-1.5 ml-0.5 text-blue-300 hover:text-blue-200",children:"🔍 地图定位"})]})]}),r.jsxs("div",{className:"bg-slate-50/70 border border-[#ECEBE9] rounded-2.5xl p-4 text-left select-none mb-4 min-h-[145px] hover:bg-slate-50 transition-all flex flex-col justify-between",children:[r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"text-2xl mt-0.5",children:p.emoji}),r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h4",{className:"text-xs sm:text-[13px] font-extrabold text-slate-800",children:p.name}),r.jsx("span",{className:"text-[9px] px-1.5 py-0.5 bg-slate-200/60 text-slate-500 rounded-md font-bold",children:p.title})]}),r.jsx("p",{className:"text-[11px] text-slate-650 leading-relaxed mt-1.5",children:p.description})]})]}),r.jsxs("div",{className:"mt-3 bg-red-50/75 border border-red-100/60 p-2.5 rounded-xl flex items-start gap-2.5",children:[r.jsx(u5,{className:"w-4 h-4 text-orange-500 shrink-0 mt-0.5"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("strong",{className:"text-[10px] text-orange-700 font-extrabold block",children:"🚨 核心拒绝痛点（加购流失阻碍）:"}),r.jsxs("span",{className:"text-[10.5px] text-slate-750 block leading-normal mt-0.5 font-medium",children:['"',p.hesitation,'"']})]})]})]}),r.jsxs("div",{className:"flex justify-between items-center px-1 select-none mb-4",children:[r.jsx("div",{className:"flex gap-2",children:d.map((y,v)=>r.jsx("button",{onClick:()=>o(v),className:`w-2 h-2 rounded-full transition-all cursor-pointer ${i===v?"bg-[#E07A5F] w-4":"bg-slate-300"}`},y.id))}),r.jsxs("div",{className:"text-[10px] font-mono font-medium text-[#E07A5F] bg-orange-50/60 px-2.5 py-0.5 rounded-md border border-orange-100/40",children:["📍 ",p.bonusTips]})]}),a==="explore_environment"?r.jsx("button",{onClick:()=>l("socratic_q1","让我们开启商业逻辑校准，分析他们真正的需求！"),className:"w-full relative py-3.5 bg-[#E07A5F] hover:bg-[#D36B50] active:bg-[#B5523A] text-white rounded-xl font-bold text-xs tracking-wider shadow-lg shadow-orange-150 transition-all duration-300 flex items-center justify-center gap-1 cursor-pointer select-none",children:r.jsx("span",{children:"💡 对准街区客户痛点：进入决策校准 ➔"})}):r.jsxs("div",{className:"w-full py-3 px-4 bg-[#FFF9F6] border border-orange-200/50 rounded-xl text-left select-none",children:[r.jsxs("p",{className:"text-[11px] font-bold text-orange-800 flex items-center gap-1",children:[r.jsx(ec,{className:"w-3.5 h-3.5 text-[#E07A5F] animate-spin-slow"}),r.jsx("span",{children:"AI 逻辑校准中枢 · 观察与回复"})]}),r.jsx("span",{className:"text-[10.5px] text-slate-500 block leading-normal mt-1",children:"💡 请在左侧对话框中回复导师。"})]})]})},C5=({step:a,transitionTo:l,selectedProduct:i,setSelectedProduct:o,strategySelections:f,setStrategySelections:h,stampApproved:d,setStampApproved:p,onSendMessage:g})=>{const{targetGroup:x,vacuumPower:y,packPlan:v,trustOffer:j}=f,[T,E]=H.useState(0),[O,V]=H.useState(0),[G,Y]=H.useState(null),X=[{id:"pkg-all-in",name:"👑 全能王「50只加厚防刺袋 + 柔触无级气量阀」白金统配装",tag:"一网打尽 · 全场景顶级配型",price:299,margin:"380%",domesticCost:45,expectedSales:"👑 出海转化率: 98.2%",desc:"专为玫瑰路街区全社区三类矛盾人群（主妇Maria、工头Stefan、少女Elena）深度定制：配有50只防排骨骨尖扎漏的复合保鲜套袋，更有指尖慢调气阻阀保护Elena脆弱的树莓不碎不漏。"},{id:"pkg-strong-power",name:"⚡ 狂暴硬核款「20只防刺袋 + 85kPa暴风真空吸力」纯享冬储型",tag:"硬核排气 · 熏肉骨尖克星",price:249,margin:"320%",domesticCost:38,expectedSales:"⚡ 出海转化率: 86.5%",desc:"追求极致物理排开的大推力性价比包。85kPa爆压在瞬间将带硬排骨的熏拉肉卷抽成紧密硬块。虽然Elena的细腻草莓在狂暴抽拉下易破碎，但能将前期采购及测款推广门槛压到极低。"},{id:"pkg-aesthetic-wood",name:"🌿 禅意情怀版「100只抗菌锁鲜袋 + 红木手磨外设阻尼」至臻艺术组合",tag:"天然奢侈 · 符号高溢价收割",price:429,margin:"480%",domesticCost:68,expectedSales:"🌿 出海转化率: 92.4%",desc:"长在欧洲中产灵魂痛点里的手工美学奢侈大套包。使用不霉防潮老胡桃木外包装、超静音物理手调微调节阀，附赠全额高级抗菌耗材袋。极高的溢价让人心甘情愿购买。"}],U=X[T],K=()=>{V(-350),setTimeout(()=>{E(z=>(z+1)%X.length),V(0),Y(null)},280)},oe=z=>{V(350);const W=U;setTimeout(()=>{if(o){const ne={...i,name:W.name,price:W.price,productCost:W.domesticCost,profit:W.price-W.domesticCost-i.adCost-i.shippingCost};ne.revenue=Number((ne.profit*i.signingRate).toFixed(2)),o(ne)}g(`我已锁定制胜大礼包货架配型：【${W.name}】，售价 【¥ ${W.price}】 (利差高达 ${W.margin})，出海即刻爆单！`),l("funnel2",`我已批准通过该黄金重组货盘并精选货包【${W.name}】，立即一键启动高阶投流！`)},280)},$=(z,W)=>{const ne=W.offset.x;ne<-85?Y("left"):ne>85?Y("right"):Y(null)},I=(z,W)=>{const ne=W.velocity.x,ce=W.offset.x;ce<-120||ne<-300?K():ce>120||ne>300?oe():Y(null)},se={none:"未选择",elder_rural:"👵偏远冬储端",rough_meat:"🍖硬骨熏肉端",delicate_gourmet:"🍓细嫩果气端",broad_all:"🎯全域统制配"},ee={none:"未选择",ultra_strong:"⚡85kPa狂暴吸力",eco_mild:"🍃40kPa柔和慢捏",delicate_pulse:"🕹️无级调阻气阀"},he={none:"未选择",on_demand:"💸自购袋无赠包",combo_50:"🎁免费加厚50袋"},pe={none:"未选择",online_only:"💳线上外卡预付款",delivery_cod:"🚚货到付款Plata COD"},[Ce,fe]=H.useState(()=>{try{const z=localStorage.getItem("strategy_history");if(z){const W=JSON.parse(z);if(Array.isArray(W)){const ne=[];return W.forEach(ce=>{ne.some(ye=>ye.selections.targetGroup===ce.selections.targetGroup&&ye.selections.vacuumPower===ce.selections.vacuumPower&&ye.selections.packPlan===ce.selections.packPlan&&ye.selections.trustOffer===ce.selections.trustOffer)||ne.push(ce)}),ne.slice(-4)}}return[]}catch{return[]}});let ae=30;x==="elder_rural"?(v==="combo_50"&&(ae+=20),j==="delivery_cod"&&(ae+=25),(y==="delicate_pulse"||y==="eco_mild")&&(ae+=5)):x==="rough_meat"?(y==="ultra_strong"&&(ae+=25),v==="combo_50"&&(ae+=20),j==="delivery_cod"&&(ae+=10)):x==="delicate_gourmet"?(y==="delicate_pulse"&&(ae+=30),j==="online_only"&&(ae+=15),v==="combo_50"&&(ae+=5)):x==="broad_all"&&(y==="delicate_pulse"&&(ae+=25),v==="combo_50"&&(ae+=15),j==="delivery_cod"&&(ae+=25));const _=Math.min(ae,100),F=x!=="none"&&y!=="none"&&v!=="none"&&j!=="none",A=_>=95;H.useEffect(()=>{try{localStorage.setItem("strategy_history",JSON.stringify(Ce))}catch{}},[Ce]),H.useEffect(()=>{F&&fe(z=>{if(z.some(at=>at.selections.targetGroup===x&&at.selections.vacuumPower===y&&at.selections.packPlan===v&&at.selections.trustOffer===j))return z;const ne=new Date,ce=`${String(ne.getHours()).padStart(2,"0")}:${String(ne.getMinutes()).padStart(2,"0")}:${String(ne.getSeconds()).padStart(2,"0")}`,Me={id:Math.random().toString(36).substr(2,9),selections:{targetGroup:x,vacuumPower:y,packPlan:v,trustOffer:j},probability:_,time:ce},ye=[...z,Me];return ye.length>4?ye.slice(ye.length-4):ye})},[x,y,v,j,F,_]);const B=()=>{fe([]);try{localStorage.removeItem("strategy_history")}catch{}},P=(z,W)=>{h(ne=>({...ne,[z]:W}))},S=()=>{h({targetGroup:"broad_all",vacuumPower:"delicate_pulse",packPlan:"combo_50",trustOffer:"delivery_cod"})},R=()=>{g(`参数匹配度估算提交：当前拟合度达到 ${_}%！`)},J=()=>{p(!0),g("完美对齐拟合完成！我已经成功通过了该策略，准备进行投放推广。")};return r.jsxs("div",{className:"w-full max-w-5xl flex flex-col lg:flex-row gap-5 items-stretch justify-center relative z-10 animate-fade-in px-2 py-1 bg-transparent",children:[r.jsxs(te.div,{initial:{opacity:0,scale:.98,y:15},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:150,damping:15,ease:"easeOut"},className:"flex-1 bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-5 sm:p-7 flex flex-col relative overflow-hidden select-none",id:"strategy-configurator-card",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-300 via-indigo-300 to-emerald-300"}),d&&a!=="expert_safeguard"&&r.jsx(te.div,{initial:{scale:3,opacity:0,rotate:-45},animate:{scale:1,opacity:.95,rotate:-12},transition:{type:"spring",damping:8,stiffness:85},className:"absolute top-[35%] left-[25%] pointer-events-none select-none z-50 flex items-center justify-center p-4 bg-transparent",children:r.jsxs("div",{className:"border-4 border-double border-red-500 text-red-500 font-extrabold tracking-widest text-[16px] sm:text-[18px] px-6 py-2.5 rounded-xl rotate-[-8deg] bg-white/95 shadow-xl flex flex-col items-center justify-center min-w-[210px] gap-0.5 select-none pointer-events-none animate-fade-in",children:[r.jsx("span",{className:"text-[8px] font-bold text-red-400 tracking-widest uppercase pointer-events-none",children:"RO_DECISION_MGM"}),r.jsx("span",{className:"leading-none py-1 block pointer-events-none",children:"💮 APPROVED · 批准投放 💮"}),r.jsx("span",{className:"text-[9px] font-mono font-bold text-red-400 pointer-events-none",children:"供需精确重构对齐 · 通过"})]})}),r.jsxs("div",{className:"flex justify-between items-start mb-4 pb-3 border-b border-slate-100 bg-transparent",children:[r.jsxs("div",{className:"text-left bg-transparent",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"flex h-2.5 w-2.5 rounded-full bg-blue-500 animate-pulse"}),r.jsx("h3",{className:"text-base font-bold text-slate-800 tracking-tight",children:"⚙️ 供需微观人群画像对齐卡"})]}),r.jsx("p",{className:"text-[11px] text-slate-400 mt-0.5",children:"Strada Trandafirilor 街区 11 位观望客群 of 供给精细化匹配"})]}),r.jsx("div",{className:"bg-slate-50 text-[10px] px-2.5 py-1 text-slate-500 border border-slate-200/60 font-mono rounded-lg font-bold shrink-0",children:"真空包装机 · 迭代重配"})]}),a==="expert_safeguard"?r.jsxs("div",{className:"flex-1 flex flex-col justify-between py-1 px-1",children:[r.jsxs("div",{className:"text-left font-sans select-none mb-3",children:[r.jsx("span",{className:"text-rose-500 text-[10px] font-extrabold uppercase tracking-widest block mb-0.5",children:"🚀 阶段 2.5: 黄金拼配货盘 · 划选上架"}),r.jsx("h4",{className:"text-[13px] font-black text-slate-800 tracking-tight flex items-center gap-1",children:r.jsx("span",{children:"📦 完美契合大功告成！选定最终投放货盘 ➔"})}),r.jsxs("p",{className:"text-[10.5px] text-slate-400 mt-1 leading-normal font-sans",children:["为了承载 ",r.jsx("strong",{children:"98.2%"})," 的精细供需闭环引力，我们为您特制了 3 组独有小批量溢价出海大礼包。选定大礼包即可立即全网自动爆单投放。"]})]}),r.jsx("div",{className:"relative flex-1 min-h-[295px] flex items-center justify-center select-none py-1 overflow-visible",children:X.map((z,W)=>{const ne=W===T,ce=W===(T+1)%X.length,Me=W===(T+2)%X.length;if(!ne&&!ce&&!Me)return null;const ye=ne?40:ce?30:20,at=ne?1:ce?.94:.88,Vn=ne?0:ce?12:24;return r.jsxs(te.div,{style:{zIndex:ye,x:ne?O:0},drag:ne?"x":!1,dragConstraints:{left:0,right:0},onDrag:ne?$:void 0,onDragEnd:ne?I:void 0,animate:{scale:at,y:Vn,opacity:ne?1:ce?.75:.45},transition:ne?{type:"spring",stiffness:350,damping:25}:{duration:.25},className:"absolute w-full max-w-[340px] bg-slate-900 text-white rounded-3xl border border-slate-700/60 p-5 shadow-[0_15px_30px_rgba(0,0,0,0.15)] flex flex-col cursor-grab active:cursor-grabbing text-left overflow-hidden select-none font-sans",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-emerald-500 via-teal-400 to-indigo-500"}),ne&&G==="right"&&r.jsx("div",{className:"absolute top-4 right-4 border-2 border-emerald-500 text-emerald-500 font-black text-[10px] px-3 py-1 rounded-sm rotate-[12deg] tracking-widest uppercase bg-slate-900/90 z-50",children:"✓ 确认选用此款"}),ne&&G==="left"&&r.jsx("div",{className:"absolute top-4 left-4 border-2 border-rose-500 text-rose-500 font-black text-[10px] px-3 py-1 rounded-sm rotate-[-12deg] tracking-widest uppercase bg-slate-900/90 z-50",children:"✕ 换下一个货盘"}),r.jsxs("div",{className:"flex justify-between items-start mb-2",children:[r.jsx("span",{className:"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20 text-[9px] font-extrabold px-2 py-0.5 rounded-full uppercase tracking-wider",children:z.tag}),r.jsx("span",{className:"font-mono text-emerald-400 font-bold text-[10px]",children:z.expectedSales})]}),r.jsx("h5",{className:"text-[12.5px] font-black tracking-tight text-white mb-2 line-clamp-1 leading-normal",children:z.name}),r.jsx("p",{className:"text-[10px] text-slate-300 leading-normal min-h-[52px] mb-3 font-sans",children:z.desc}),r.jsxs("div",{className:"mt-auto grid grid-cols-3 gap-1.5 pt-3 border-t border-slate-800 font-mono",children:[r.jsxs("div",{className:"text-left",children:[r.jsx("span",{className:"text-[8px] text-slate-500 block leading-none mb-1",children:"建议海外单价"}),r.jsxs("span",{className:"text-[11.5px] font-extrabold text-slate-200",children:["¥ ",z.price," 元"]})]}),r.jsxs("div",{className:"text-left",children:[r.jsx("span",{className:"text-[8px] text-slate-500 block leading-none mb-1",children:"工坊采购契约"}),r.jsxs("span",{className:"text-[11.5px] font-extrabold text-slate-200",children:["¥ ",z.domesticCost," 元"]})]}),r.jsxs("div",{className:"text-left bg-slate-800/40 px-2 py-0.5 rounded-lg border border-slate-800",children:[r.jsx("span",{className:"text-[8px] text-emerald-500 block font-bold leading-none mb-1",children:"至臻纯利差"}),r.jsx("span",{className:"text-[11px] font-black text-emerald-400",children:z.margin})]})]})]},z.id)})}),r.jsxs("div",{className:"flex justify-center items-center gap-6 mt-3 pt-1",children:[r.jsx("button",{onClick:K,className:"w-11 h-11 flex items-center justify-center rounded-full bg-slate-100 hover:bg-rose-50 border border-slate-200 text-rose-500 hover:text-rose-600 transition-all hover:scale-105 active:scale-95 cursor-pointer shadow-sm shadow-slate-100/40",title:"切换：看下一个大礼包货盘",children:r.jsx(d5,{size:16,className:"stroke-[3]"})}),r.jsxs("span",{className:"text-[10px] text-slate-400 tracking-wide font-sans font-semibold",children:[T+1," / ",X.length," 套定制货架盘"]}),r.jsx("button",{onClick:()=>oe(),className:"w-11 h-11 flex items-center justify-center rounded-full bg-emerald-500 hover:bg-emerald-600 border border-emerald-400 text-white transition-all hover:scale-105 active:scale-95 cursor-pointer shadow-md shadow-emerald-100/50",title:"锁定：选中此方案一键投放推广",children:r.jsx(hi,{size:16,className:"stroke-[3]"})})]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"bg-[#FAFBF9] border border-slate-100 p-4 rounded-xl flex flex-col gap-3 mb-4 shadow-inner animate-fade-in",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"relative shrink-0 flex items-center justify-center w-14 h-14 rounded-full bg-white border border-slate-100 shadow-sm",children:[r.jsxs("svg",{viewBox:"0 0 56 56",className:"absolute top-0 left-0 w-full h-full -rotate-90 select-none",children:[r.jsx("circle",{cx:"28",cy:"28",r:"22",className:"stroke-slate-100",strokeWidth:"4",fill:"transparent"}),r.jsx(te.circle,{cx:"28",cy:"28",r:"22",className:_>90?"stroke-emerald-500":_>50?"stroke-amber-400":"stroke-rose-500",strokeWidth:"4",fill:"transparent",strokeDasharray:"138.23",animate:{strokeDashoffset:138.23-138.23*_/100},transition:{type:"spring",stiffness:150,damping:15,ease:"easeOut"}})]}),r.jsxs("span",{className:"relative z-10 text-xs font-mono font-black text-slate-800 tracking-tighter",children:[_.toFixed(1),"%"]})]}),r.jsxs("div",{className:"text-left flex-1 min-w-0",children:[r.jsx("p",{className:"text-[9.5px] font-bold tracking-wider text-slate-400 uppercase leading-none mb-1",children:"地缘人群转化预测率"}),F?_<50?r.jsx("p",{className:"text-[11px] text-rose-500 font-semibold leading-relaxed font-sans",children:"❌ 灾难适配：严重的物理矛盾或不恰当支付方式，买家严重跳出不买"}):_<90?r.jsx("p",{className:"text-[11px] text-amber-600 font-medium leading-relaxed font-sans",children:"⚠️ 部分重对齐：击中单个群落痛点，但其他两类人或因包装破裂或因天价耗材而弃款"}):r.jsx("p",{className:"text-[11px] text-emerald-600 font-bold leading-relaxed animate-pulse font-sans",children:"🎉 终极供需闭环：三大矛盾群落心防全合模！出海二次爆单条件已100%具备！"}):r.jsx("p",{className:"text-[11px] text-slate-500 leading-normal font-sans",children:"🤔 匹配雷达处于空闲状态，请在下方为四个维度选择合适策略。"}),r.jsx("div",{className:"mt-1.5 h-1 w-full bg-slate-200/50 rounded-full overflow-hidden",children:r.jsx(te.div,{className:`h-full ${_>90?"bg-emerald-500":_>50?"bg-amber-400":"bg-rose-400"}`,animate:{width:`${_}%`},transition:{type:"spring",stiffness:150,damping:15}})})]})]})}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 mb-4 max-h-[295px] overflow-y-auto pr-1",children:[r.jsxs("div",{className:"bg-slate-50/50 hover:bg-slate-50 p-3 rounded-xl border border-slate-100 transition-colors text-left",children:[r.jsxs("div",{className:"flex items-center gap-1.5 mb-2 text-slate-700",children:[r.jsx(ec,{size:13,className:"text-indigo-500 shrink-0"}),r.jsx("span",{className:"text-[11.5px] font-bold",children:"1. 核心定位目标客群"})]}),r.jsxs("select",{value:x,onChange:z=>P("targetGroup",z.target.value),className:"w-full bg-white border border-slate-200 rounded-lg p-2 text-[11px] focus:outline-none focus:ring-1 focus:ring-indigo-500/50 focus:border-indigo-500 text-slate-705 font-medium cursor-pointer",children:[r.jsx("option",{value:"none",children:"-- 请选择核心目标人群 --"}),r.jsx("option",{value:"elder_rural",children:"👵 偏远村落冬储老年派 (Maria们 — 占50%)"}),r.jsx("option",{value:"rough_meat",children:"🍖 生鲜硬骨熏肉店铺商 (Stefan们 — 占20%)"}),r.jsx("option",{value:"delicate_gourmet",children:"🍓 脆弱细嫩有机鲜莓铺 (Elena们 — 占10%)"}),r.jsx("option",{value:"broad_all",children:"🎯 多场景下沉人群整合统配 (Maria+Stefan+Elena)"})]}),r.jsxs("div",{className:"mt-1.5 text-[9.5px] text-slate-400 leading-normal font-sans",children:[x==="none"&&"💡 锁定核心定位影响最大潜在受众池厚度",x==="elder_rural"&&"👵 仅服务老年人，价格极其敏感，放弃两个高利润商家",x==="rough_meat"&&"🍖 仅打折 Stefan 肉铺，容量 and 刺针穿透是核心矛盾",x==="delicate_gourmet"&&"🍓 收窄服务 Elena 有机甜品。受众过于狭窄娇贵",x==="broad_all"&&"✨ 全场景大满贯吃下！但如果产品适配爆粗即招致索赔"]})]}),r.jsxs("div",{className:"bg-slate-50/50 hover:bg-slate-50 p-3 rounded-xl border border-slate-100 transition-colors text-left",children:[r.jsxs("div",{className:"flex items-center gap-1.5 mb-2 text-slate-700",children:[r.jsx(ac,{size:13,className:"text-amber-500 shrink-0"}),r.jsx("span",{className:"text-[11.5px] font-bold",children:"2. 温控真空吸力技术"})]}),r.jsxs("select",{value:y,onChange:z=>P("vacuumPower",z.target.value),className:"w-full bg-white border border-slate-200 rounded-lg p-2 text-[11px] focus:outline-none focus:ring-1 focus:ring-amber-500/50 focus:border-amber-500 text-slate-705 font-medium cursor-pointer",children:[r.jsx("option",{value:"none",children:"-- 请选择真空控制技术 --"}),r.jsx("option",{value:"ultra_strong",children:"⚡ 85kPa 狂暴排出大抽吸 (吸力极致拉满)"}),r.jsx("option",{value:"eco_mild",children:"🍃 40kPa 静音慢速温和档 (文静轻捏抽空)"}),r.jsx("option",{value:"delicate_pulse",children:"🕹️ 阻尼无级调按点吸气阀 (柔触慢控可控)"})]}),r.jsxs("div",{className:"mt-1.5 text-[9.5px] text-slate-400 leading-normal font-sans",children:[y==="none"&&"💡 机器物理控制设计直接决定被包裹食材存活率",y==="ultra_strong"&&"⚠️ 抽骨肉极佳，但这狂暴重抽直接把 Elena 的草莓吸炸成烂浆！",y==="eco_mild"&&"⚠️ 太虚浮，40kPa 根本吸不干 Stefan 肉干与 Maria 大土豆，36小时起霉",y==="delicate_pulse"&&"✨ 指尖无级调压，不仅能大吸力对骨，更能微吸点控对莓不伤分毫！"]})]}),r.jsxs("div",{className:"bg-slate-50/55 hover:bg-slate-50 p-3 rounded-xl border border-slate-100 transition-colors text-left",children:[r.jsxs("div",{className:"flex items-center gap-1.5 mb-2 text-slate-700",children:[r.jsx(tc,{size:13,className:"text-red-500 shrink-0"}),r.jsx("span",{className:"text-[11.5px] font-bold",children:"3. 耗材赠予服务组合"})]}),r.jsxs("select",{value:v,onChange:z=>P("packPlan",z.target.value),className:"w-full bg-white border border-slate-200 rounded-lg p-2 text-[11px] focus:outline-none focus:ring-1 focus:ring-red-500/50 focus:border-red-500 text-slate-705 font-medium cursor-pointer",children:[r.jsx("option",{value:"none",children:"-- 请选择赠装礼包计划 --"}),r.jsx("option",{value:"on_demand",children:"💸 0追加即用即买原装 (无赠送附加包)"}),r.jsx("option",{value:"combo_50",children:"🎁 免费追加 50 只 Embossed 抗抗抗扎大保鲜袋"})]}),r.jsxs("div",{className:"mt-1.5 text-[9.5px] text-slate-400 leading-normal font-sans",children:[v==="none"&&"💡 耗材消耗顾虑是非必需品出海转化的无形屏障",v==="on_demand"&&"⚠️ Maria 大婶一见后续天价耗材袋自付，立马在付款处弃款折返",v==="combo_50"&&"✨ 送大礼包直接管够 Maria 一年冬储！加厚防扎让 Stefan 赞叹不漏！"]})]}),r.jsxs("div",{className:"bg-slate-50/50 hover:bg-slate-50 p-3 rounded-xl border border-slate-100 transition-colors text-left",children:[r.jsxs("div",{className:"flex items-center gap-1.5 mb-2 text-slate-700",children:[r.jsx(nc,{size:13,className:"text-emerald-500 shrink-0"}),r.jsx("span",{className:"text-[11.5px] font-bold",children:"4. 地缘信任保障契约"})]}),r.jsxs("select",{value:j,onChange:z=>P("trustOffer",z.target.value),className:"w-full bg-white border border-slate-200 rounded-lg p-2 text-[11px] focus:outline-none focus:ring-1 focus:ring-emerald-500/50 focus:border-emerald-500 text-slate-705 font-medium cursor-pointer",children:[r.jsx("option",{value:"none",children:"-- 请选择支付信保政策 --"}),r.jsx("option",{value:"online_only",children:"💳 限全线上外币银行卡先付款 (境外预结网关)"}),r.jsx("option",{value:"delivery_cod",children:"🚚 Plata la livrare (COD，开箱当面验收满意付现)"})]}),r.jsxs("div",{className:"mt-1.5 text-[9.5px] text-slate-400 leading-normal font-sans",children:[j==="none"&&"💡 地缘文化支付形态直接拦截最后付款心防",j==="online_only"&&"⚠️ 下沉偏远乡镇深怀跨境钓鱼卡欺骗恐慌，弃单比爆发到 85.0%",j==="delivery_cod"&&"✨ 迎合东欧 Plata 传统！先白嫖验收，不漏气才掏现金，打通地缘闭环！"]})]})]})]}),r.jsx("div",{className:"mt-2 pt-3 border-t border-slate-100 shrink-0",children:r.jsx(fn,{mode:"wait",children:a==="expert_safeguard"?r.jsx("div",{className:"text-center text-slate-400 text-[10px] py-1 select-none animate-pulse font-sans",children:"💡 专家守卫已就绪：请选定方案锁定及升级高阶爆火分发！"}):F?A?r.jsx(te.button,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},whileTap:{scale:.96},onClick:J,className:"w-full relative py-3 bg-rose-500 hover:bg-rose-600 active:bg-rose-700 text-white text-xs rounded-xl font-bold tracking-wider shadow-md shadow-rose-100 transition-all flex items-center justify-center gap-1.5 cursor-pointer animate-pulse font-sans",children:r.jsx("span",{children:"💮 签署并敲章通过当前黄金重组对齐案 · 核实盖章批准 ➔"})},"btn-stamp"):r.jsxs("div",{className:"flex flex-col gap-2 font-sans text-amber-500",children:[r.jsx(te.button,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:-5},whileTap:{scale:.96},onClick:R,className:"w-full py-3 bg-blue-600 hover:bg-blue-700 text-white font-bold rounded-xl text-xs tracking-wider transition-all flex items-center justify-center gap-1.5 cursor-pointer shadow-md shadow-blue-150 animate-bounce",children:r.jsx("span",{children:"📡 提交当前参数组合（由 AI 导师评测拟合度）➔"})},"btn-evaluate"),r.jsx(te.button,{whileTap:{scale:.96},onClick:S,className:"text-[10px] text-indigo-500 hover:underline font-bold text-center cursor-pointer",children:"或者：一键套用导师推荐的最佳无瑕配置?"})]}):r.jsxs("div",{className:"flex flex-col gap-2 font-sans overflow-hidden",children:[r.jsx("p",{className:"text-[10px] text-slate-400 text-center italic",children:"💡 提示：为全部 4 个维度选择不同搭配，即可向 AI 导师发起匹配拟合"}),r.jsx(te.button,{whileTap:{scale:.96},onClick:S,className:"w-full py-2.5 bg-blue-50 hover:bg-blue-100 border border-blue-200 text-blue-600 font-bold rounded-xl text-xs tracking-wider transition-all flex items-center justify-center gap-1.5 cursor-pointer",children:r.jsx("span",{children:"💡 一键配置满客精选多合一方案 (直取完美通关)"})})]})})})]}),r.jsxs("div",{className:"w-full lg:w-72 shrink-0 flex flex-col bg-slate-900 border border-slate-800 shadow-2xl rounded-[2rem] overflow-hidden select-none",children:[r.jsxs("div",{className:"p-4 border-b border-slate-800 flex items-center justify-between bg-slate-950/40 shrink-0",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-500 animate-pulse shrink-0"}),r.jsx("span",{className:"text-[10px] font-sans tracking-tight font-black text-slate-300",children:"📋 历史对齐配置方案"}),r.jsx("span",{className:"bg-slate-850 text-slate-300 border border-slate-800 font-mono text-[9px] px-1.5 py-0.2 rounded-full font-bold",children:Ce.length})]}),Ce.length>0&&r.jsx("button",{onClick:B,className:"text-[9px] font-sans text-slate-400 hover:text-rose-400 hover:border-rose-905 transition-colors px-1.5 py-0.5 rounded border border-slate-800 bg-slate-900/60 cursor-pointer",title:"清空所有调参记录并重置画布",children:"清空历史"})]}),r.jsx("div",{className:"flex-1 p-4 overflow-y-auto max-h-[360px] lg:max-h-[580px] space-y-4 scrollbar-thin scrollbar-thumb-slate-800 relative",children:Ce.length===0?r.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-center py-12 px-3 font-sans",children:[r.jsx("div",{className:"w-9 h-9 rounded-full bg-slate-850 border border-slate-800 flex items-center justify-center text-slate-500 mb-2 shadow-inner font-mono text-xs",children:"N/A"}),r.jsx("p",{className:"text-[11px] font-bold text-slate-450 font-sans",children:"暂无保存快照"}),r.jsx("p",{className:"text-[10px] text-slate-505 mt-2 leading-relaxed",children:"为 4 个供需维度完成参数配置，系统即可将该方案自动配置为对齐快照，并记录在右侧对比面板中。"})]}):r.jsxs("div",{className:"relative pl-5",children:[r.jsx("div",{className:"absolute left-[3px] top-2 bottom-2 w-0.5 bg-gradient-to-b from-blue-500 via-indigo-600 to-slate-850 opacity-80"}),r.jsx("div",{className:"space-y-4 mt-1",children:Ce.map((z,W)=>{const ce=((St,Ot)=>St.targetGroup===Ot.targetGroup&&St.vacuumPower===Ot.vacuumPower&&St.packPlan===Ot.packPlan&&St.trustOffer===Ot.trustOffer)(f,z.selections),Me=z.probability>=95,ye=z.probability>=90,at=z.id?z.id.slice(0,7):`c${W+1}`,Vn=ce?"bg-blue-400 ring-4 ring-blue-500/30":Me?"bg-emerald-500 ring-2 ring-emerald-500/20":ye?"bg-green-500 ring-2 ring-green-500/20":"bg-amber-500 ring-2 ring-amber-500/20";return r.jsxs(te.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:.25,delay:W*.05},className:"relative group select-none text-left",children:[r.jsx("div",{className:"absolute -left-[22.5px] top-[14px] z-20 flex h-3.5 w-3.5 items-center justify-center bg-transparent",children:r.jsx("span",{className:`h-2.5 w-2.5 rounded-full transition-all duration-200 group-hover:scale-125 ${Vn}`})}),r.jsxs("div",{className:"relative bg-transparent",children:[r.jsxs(te.button,{whileTap:{scale:.97},onClick:()=>h(z.selections),className:`w-full text-left p-3 rounded-2xl border transition-all duration-200 cursor-pointer font-sans relative ${ce?"bg-slate-850/95 border-blue-500/80 shadow-[0_4px_16px_rgba(59,130,246,0.2)]":"bg-slate-950/20 hover:bg-slate-850/60 border-slate-800/85 hover:border-slate-700/80"}`,children:[r.jsxs("div",{className:"flex items-center justify-between gap-1 mb-1 font-sans text-[9px] text-[#8e9bb4]",children:[r.jsxs("span",{className:`font-bold transition-colors group-hover:text-blue-400 ${ce?"text-blue-400":"text-slate-450"}`,children:["策略版本 #",at]}),r.jsx("span",{children:z.time})]}),r.jsxs("div",{className:"text-[11px] font-bold text-slate-200 leading-normal line-clamp-1",children:[se[z.selections.targetGroup]||"自由配置"," 调参数"]}),r.jsxs("div",{className:"mt-1.5 flex justify-between items-center text-[9px] font-sans leading-none bg-transparent",children:[r.jsxs("span",{className:`px-1.5 py-0.5 rounded-full font-bold border ${Me?"bg-emerald-950/40 text-emerald-400 border-emerald-900/60":ye?"bg-green-950/40 text-green-400 border-green-900/60":"bg-amber-950/40 text-amber-400 border-amber-900/60"}`,children:["对齐分: ",z.probability.toFixed(0),"%"]}),r.jsx("span",{className:"text-[9.5px] text-blue-400 opacity-60 group-hover:opacity-100 transition-opacity flex items-center gap-0.5 font-bold font-sans",children:ce?"● 当前生效":"带回至画布 ➔"})]})]}),r.jsxs("div",{className:"pointer-events-none opacity-0 scale-95 group-hover:opacity-100 group-hover:scale-100 absolute right-[103%] top-0 w-72 p-4 bg-[#0F172A] border border-slate-800 text-white rounded-2xl shadow-2xl z-50 transition-all duration-200 text-left mr-3 origin-right",children:[r.jsxs("div",{className:"bg-[#1E293B] -mx-4 -mt-4 p-3 rounded-t-2xl border-b border-indigo-950/30 flex justify-between items-center mb-3",children:[r.jsxs("span",{className:"font-sans text-[10px] font-black text-indigo-400 uppercase tracking-wider",children:["🔍 方案快照详情 #",at]}),r.jsxs("span",{className:"font-mono text-[9px] text-slate-400",children:["🕒 ",z.time]})]}),r.jsxs("div",{className:"space-y-1.5 text-[10.5px]",children:[r.jsxs("div",{className:"flex justify-between items-center border-b border-slate-800/80 pb-1",children:[r.jsx("span",{className:"text-slate-505 text-slate-400 font-medium",children:"🎯 客群画像"}),r.jsx("span",{className:"font-bold text-slate-200",children:se[z.selections.targetGroup]})]}),r.jsxs("div",{className:"flex justify-between items-center border-b border-slate-800/80 pb-1",children:[r.jsx("span",{className:"text-slate-400 font-medium",children:"🌀 吸力控制"}),r.jsx("span",{className:"font-bold text-slate-200",children:ee[z.selections.vacuumPower]})]}),r.jsxs("div",{className:"flex justify-between items-center border-b border-slate-800/80 pb-1",children:[r.jsx("span",{className:"text-slate-400 font-medium",children:"📦 赠袋套餐"}),r.jsx("span",{className:"font-bold text-slate-200",children:he[z.selections.packPlan]})]}),r.jsxs("div",{className:"flex justify-between items-center border-b border-slate-800/80 pb-1",children:[r.jsx("span",{className:"text-slate-400 font-medium",children:"🚚 信任保障"}),r.jsx("span",{className:"font-bold text-slate-200",children:pe[z.selections.trustOffer]})]})]}),r.jsx("div",{className:"mt-3 bg-slate-900/90 p-2.5 rounded-xl border border-slate-800 text-[10px] text-indigo-200 leading-relaxed font-sans",children:(()=>{const St=z.selections.targetGroup,Ot=z.selections.vacuumPower,$t=z.selections.packPlan,pa=z.selections.trustOffer;if(St==="broad_all"&&Ot==="delicate_pulse"&&$t==="combo_50"&&pa==="delivery_cod")return"🌟【黄金对齐案】完美的万全闭环！采取阻尼微级调压恰好保护了 Elena 娇美草莓，赠附加包管够 Maria 冬储消耗，并配备 Plata Livrare 货到付款完满消解下沉首单外卡恐惧，全员合规二次爆单！";let st=[];return St==="elder_rural"?(pa!=="delivery_cod"&&st.push("大婶排斥线上支付"),$t!=="combo_50"&&st.push("高耗卡痛点引发犹豫"),Ot==="ultra_strong"&&st.push("狂暴档噪大震颤且易吸爆蔬菜"),`👵【偏远冬储老年群落】当前方案转化率 ${z.probability}%。${st.length>0?"冲突阻力: "+st.join(" and ")+"导致客群流失。":"虽然照顾了大婶需求，但该画像太窄，放弃了高纯利的多品类商户需求，潜力偏低。"}`):St==="rough_meat"?(Ot!=="ultra_strong"&&st.push("气压不够生鲜肉干36H出水发霉"),$t!=="combo_50"&&st.push("漏气刺刺极多损袋"),pa!=="delivery_cod"&&st.push("高额线下结现对齐破产"),`🍖【生鲜熏肉店铺群落】当前方案转化率 ${z.probability}%。${st.length>0?"冲突阻力: "+st.join(" & ")+"，达不到商户高标准密封抗震。":"Stefan 肉铺老板满意，但定位局限在肉业批发，没吃下下沉大盘。"}`):St==="delicate_gourmet"?(Ot!=="delicate_pulse"&&st.push("抽真空过速直接把 Elena 的草莓捏成烂汁流液"),`🍓【有机甜品高级商户】当前方案转化率 ${z.probability}%。${st.length>0?"绝望回潮: "+st.join(" & ")+"导致强烈破损退款诉求！":"阻尼无级点动微控非常到位，只是客群太过高端娇贵，盘子量级略小。"}`):`📂【通用组合对齐方案】匹配度: ${z.probability.toFixed(1)}%。这是过渡设计参数，地缘支付抗性较大或生鲜草莓密封时仍存物理冲突，建议继续调整配置组合尝试满客精选！`})()})]})]})]},z.id)})})]})})]})]})},E5=({step:a,selectedProduct:l,hasWithdrawn:i,onWithdraw:o,onReset:f,transitionTo:h})=>{const[d,p]=H.useState(0),g=[{id:"RO-CS2-001",target:"Maria (42号院)",item:"冬储加倍锁鲜组合包",profit:75,rate:.84,revenue:63.05,time:"09:15"},{id:"RO-CS2-002",target:"Stefan (56号院)",item:"高气密防刺硬骨肉包",profit:75,rate:.84,revenue:63,time:"09:22"},{id:"RO-CS2-003",target:"Elena (18号楼)",item:"无损慢捏点抽保鲜包",profit:75,rate:.84,revenue:63,time:"09:30"},{id:"RO-CS2-004",target:"Ion (邻街熟客)",item:"冬储大礼包追加装",profit:75,rate:.84,revenue:63,time:"10:05"},{id:"RO-CS2-005",target:"Vasile (肉食作坊)",item:"多合一防穿刺硬包款",profit:75,rate:.84,revenue:62.95,time:"10:18"}],x=()=>{p(y=>y+360),setTimeout(()=>{o()},450)};return r.jsxs(te.div,{initial:{y:30,opacity:0,scale:.95},animate:{y:0,opacity:1,scale:1,rotateY:d},transition:{type:"spring",stiffness:150,damping:15},style:{transformStyle:"preserve-3d"},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.04)] border border-slate-100 p-6 relative overflow-hidden flex flex-col",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-yellow-400 via-amber-400 to-emerald-400"}),a==="success2"&&r.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 bg-white/98 backdrop-blur-xl z-20 flex flex-col items-center justify-center p-6 text-center select-none",children:[r.jsx(te.div,{whileHover:{scale:1.1,rotate:12},initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.1},className:"w-14 h-14 bg-[#1AAD19] rounded-2xl flex items-center justify-center mb-4 shadow-[0_10px_30px_rgba(26,173,25,0.35)] animate-bounce",children:r.jsx(hi,{className:"w-7 h-7 text-white animate-pulse"})}),r.jsx("h3",{className:"font-bold text-lg text-slate-800 tracking-tight",children:"微信零钱提现成功"}),r.jsx("p",{className:"font-mono text-3.5xl font-black text-emerald-600 mt-1 tracking-tight",children:"+ ¥ 315.00"}),r.jsx("p",{className:"text-[11px] text-slate-400 mt-1 leading-normal",children:"账本已完全核销，离岸汇兑资金已全额下付"}),r.jsxs("div",{className:"bg-slate-50 border border-slate-200/50 p-3.5 rounded-2xl w-full my-4 flex justify-between select-none shadow-inner",children:[r.jsxs("div",{className:"text-center flex-1",children:[r.jsx("span",{className:"text-[9px] text-slate-400 block tracking-widest font-semibold font-sans",children:"交付包裹数"}),r.jsx("span",{className:"text-blue-500 font-mono font-black text-[13px] mt-1 block",children:"📦 5 笔全签收"})]}),r.jsx("div",{className:"w-px bg-slate-200"}),r.jsxs("div",{className:"text-center flex-1",children:[r.jsx("span",{className:"text-[9px] text-slate-400 block tracking-widest font-semibold font-sans",children:"平均签收率"}),r.jsx("span",{className:"text-emerald-600 font-mono font-black text-[13px] mt-1 block",children:"📈 100% (COD)"})]})]}),r.jsx("button",{onClick:()=>{h&&h("part3_intro","我要扩大商业，进军高阶认知优势与全网蓝海挖掘！")},className:"w-full mb-3 py-3.5 bg-gradient-to-r from-emerald-600 to-[#1AAD19] hover:from-emerald-700 hover:to-green-600 text-white rounded-xl font-extrabold text-xs tracking-wider shadow-lg transition-all cursor-pointer font-sans",children:"🚀 扩大你的商业 ➔ 开启第三部分"}),r.jsx("button",{onClick:f,className:"w-full py-2 bg-slate-100 hover:bg-slate-200 text-slate-500 rounded-xl font-bold text-[10px] tracking-wider transition-all cursor-pointer font-sans",children:"🔄 重新体验第一部分"})]}),r.jsxs("div",{className:"flex justify-between items-start mb-4 mt-1",children:[r.jsxs("div",{className:"flex flex-col text-left",children:[r.jsx("h2",{className:"text-sm sm:text-base font-bold text-[#2D2D2D]",children:"高阶合并分成总账单"}),r.jsxs("p",{className:"text-[11px] text-slate-400 mt-0.5",children:["累积高产分成纯利：",r.jsx("span",{className:"font-bold text-emerald-600 font-mono",children:"¥ 315.00"})]})]}),r.jsx("div",{className:"w-9 h-9 bg-amber-100/40 rounded-full flex items-center justify-center text-amber-600 shrink-0",children:r.jsx(nc,{className:"w-4 h-4 font-bold"})})]}),r.jsx("div",{className:"space-y-2 mb-4 max-h-60 overflow-y-auto pr-1",children:g.map(y=>r.jsxs("div",{className:"bg-slate-50/60 p-3 rounded-xl border border-slate-100 flex flex-col gap-1 text-left",children:[r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400",children:[r.jsxs("span",{className:"font-mono",children:["ID: ",y.id," (",y.time,")"]}),r.jsx("span",{className:"text-emerald-600 font-bold bg-white border border-emerald-100 px-1.5 py-0.2 rounded",children:"已出单"})]}),r.jsxs("div",{className:"flex justify-between items-center pt-0.5",children:[r.jsx("span",{className:"text-xs font-bold text-slate-700 font-sans",children:y.target}),r.jsx("span",{className:"text-xs font-mono font-medium text-slate-500",children:y.item})]}),r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400 border-t border-dashed border-slate-200/60 pt-1.5 mt-1",children:[r.jsxs("span",{className:"font-sans",children:["估计毛利 ¥",y.profit.toFixed(2)," (折损签收率 ",Math.round(y.rate*100),"%)"]}),r.jsxs("span",{className:"font-mono font-bold text-emerald-600",children:["+ ¥ ",y.revenue.toFixed(2)]})]})]},y.id))}),r.jsx("button",{onClick:x,disabled:a==="success2",className:"w-full py-3.5 bg-slate-900 text-white rounded-xl font-bold text-sm tracking-wide shadow-lg shadow-gray-200 hover:bg-black transition-all cursor-pointer font-sans",children:"💰 提现全额利润 ¥315.00 到微信钱包"})]})},_5=({transitionTo:a})=>{const[l,i]=H.useState(!0);return H.useEffect(()=>{const o=setInterval(()=>i(f=>!f),1800);return()=>clearInterval(o)},[]),r.jsxs(te.div,{initial:{scale:.96,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-6 flex flex-col relative overflow-hidden select-none",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-500 via-indigo-500 to-emerald-500"}),r.jsxs("div",{className:"flex justify-between items-start mb-4 text-left",children:[r.jsxs("div",{children:[r.jsx("span",{className:"bg-blue-50 border border-blue-200 text-blue-600 text-[9px] font-extrabold uppercase px-2 py-0.5 rounded-full font-sans tracking-widest",children:"🌟 第三阶段: 认知偏好 & 地缘蓝海"}),r.jsx("h2",{className:"text-base font-bold text-slate-800 tracking-tight mt-1.5",children:"中国源头产业 ➔ 东欧畅销走廊"})]}),r.jsx("div",{className:"w-9 h-9 bg-blue-50 border border-blue-100 rounded-full flex items-center justify-center text-blue-500 shrink-0",children:r.jsx(ec,{className:"w-4 h-4 animate-spin-slow"})})]}),r.jsxs("div",{className:"my-3.5 bg-slate-50 rounded-2xl border border-slate-100 p-4 relative flex flex-col items-center justify-center overflow-hidden min-h-[140px]",children:[r.jsxs("div",{className:"absolute inset-x-0 inset-y-0 flex items-center justify-center pointer-events-none z-0",children:[r.jsx("div",{className:`absolute rounded-full border border-blue-400/20 transition-all duration-1000 ${l?"w-24 h-24 scale-150 opacity-10":"w-10 h-10 scale-100 opacity-60"}`}),r.jsx("div",{className:`absolute rounded-full border border-indigo-400/10 transition-all duration-1000 ${l?"w-36 h-36 scale-125 opacity-5":"w-20 h-20 scale-100 opacity-40"}`}),r.jsx("div",{className:"absolute w-2.5 h-2.5 bg-blue-500 rounded-full animate-ping"}),r.jsx("div",{className:"absolute w-2 h-2 bg-blue-600 rounded-full shadow-lg"})]}),r.jsxs("div",{className:"relative z-10 text-center space-y-1.5",children:[r.jsx("p",{className:"text-[10px] font-semibold text-blue-600 uppercase tracking-widest font-mono",children:"📡 Geographic Signal Lock"}),r.jsxs("div",{className:"flex items-center gap-1.5 justify-center text-slate-800 font-bold text-[12px] font-sans",children:[r.jsx("span",{className:"flex h-2 w-2 rounded-full bg-emerald-500 animate-pulse"}),r.jsx("span",{children:"中国本位供应重镇 (广东/义乌/深圳)"})]}),r.jsx("div",{className:"text-[11px] text-slate-400 font-mono",children:"对齐 ➔ 罗马尼亚玫瑰街 COD 回结网络"})]})]}),r.jsxs("div",{className:"text-left text-[11px] text-slate-500 leading-relaxed mb-4 bg-slate-50/50 rounded-xl p-3 border border-slate-200/50 space-y-1.5",children:[r.jsxs("p",{children:[r.jsx("strong",{children:"💡 商业机制"}),": 在 Part 1 & 2 中，我们借助别人定义的保鲜机赢得了首笔分成。但在高阶商战中，我们必须把",r.jsx("strong",{children:"“自己的生计专长 / 认知直觉”"}),"与已经铺设好的低摩擦跨境渠道闭环融合。"]}),r.jsxs("p",{children:["我们将针对您个人进行",r.jsx("strong",{children:"“极速非标认知调研（Mental Survey）”"}),"，提炼您的专属蓝海货托！"]})]}),r.jsx("button",{onClick:()=>a("part3_survey","开始我的高阶专属非标认知调研 ➔"),className:"w-full py-3 bg-gradient-to-r from-blue-600 to-indigo-600 text-white rounded-xl font-bold text-xs tracking-wider shadow-md hover:from-blue-700 hover:to-indigo-750 transition-all cursor-pointer font-sans",children:"🎯 立即开启认知调研 ➜"})]})},D5=({key:a}={})=>{const[l,i]=H.useState(0),[o,f]=H.useState("正在接入 Google Ads 与 Facebook SDK 测算端口...");return H.useEffect(()=>{const h=setInterval(()=>{i(d=>{const p=d+Math.floor(Math.random()*15+10);return p>=100?(clearInterval(h),100):p})},380);return()=>clearInterval(h)},[]),H.useEffect(()=>{l<25?f("📡 正在获取罗马尼亚、匈牙利、波兰谷歌趋势指数..."):l<55?f("🔍 获取 Facebook Pixel 最新高潜交互人群模型..."):l<80?f("⚙️ 套用【角度一：极速微组织系统演化】解耦管理交易摩擦..."):f("🧪 套用【角度二：文化无阻尼 · 符号价值提纯】重构货架...")},[l]),r.jsxs(te.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-6 flex flex-col relative items-center justify-center py-10 text-center select-none",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-500 via-indigo-400 to-emerald-400 animate-pulse"}),r.jsxs("div",{className:"relative w-20 h-20 mb-5 flex items-center justify-center",children:[r.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-slate-100 border-t-indigo-500 animate-spin"}),r.jsx("div",{className:"absolute w-12 h-12 rounded-full border border-dashed border-indigo-200 animate-spin-slow"}),r.jsxs("div",{className:"absolute font-mono font-black text-slate-800 text-sm",children:[l,"%"]})]}),r.jsx("h3",{className:"font-bold text-sm text-slate-800 tracking-tight",children:"全网非标黑马蓝海扫描中"}),r.jsx("p",{className:"text-[11px] text-slate-400 mt-1 max-w-[280px] h-10 leading-normal",children:o}),r.jsx("div",{className:"w-full bg-slate-100 h-1 rounded-full mt-4 overflow-hidden shadow-inner max-w-[240px]",children:r.jsx("div",{className:"bg-gradient-to-r from-blue-500 to-indigo-500 h-full rounded-full transition-all duration-300",style:{width:`${l}%`}})})]})},M5=({part3Options:a,selectedPart3Option:l,setSelectedPart3Option:i,transitionTo:o})=>{const[f,h]=H.useState(a),[d,p]=H.useState(0),[g,x]=H.useState(0),[y,v]=H.useState(null);H.useEffect(()=>{a&&a.length>0&&(h(a),i(a[0]))},[a]);const j=f[d]||f[0]||l,T=(Y,X,U)=>{const K=f.map($=>{if($.id===Y){const I={...$,[X]:U};if(X==="price"||X==="domesticCost"){const se=Number(I.price)||1,ee=Number(I.domesticCost)||1;I.margin=`${Math.round((se-ee)/ee*100)}%`}return I}return $});h(K);const oe=K[d]||K[0];oe&&i(oe)},E=()=>{x(-350),setTimeout(()=>{const Y=(d+1)%f.length;p(Y),i(f[Y]),x(0),v(null)},280)},O=Y=>{x(350);const X=j;setTimeout(()=>{i(X),o("part3_marketing",`我经手打量并确认了这套极致拼装爆品：售价【¥ ${X.price}】 的 【${X.name}】，立即上架开启独立的数字美观投流柜台！`)},280)},V=(Y,X)=>{const U=X.offset.x;U<-80?v("left"):U>80?v("right"):v(null)},G=(Y,X)=>{const U=X.velocity.x,K=X.offset.x;K<-120||U<-300?E():K>120||U>300?O():v(null)};return!f||f.length===0?r.jsx("div",{className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] p-6 text-center text-slate-400 font-bold border border-slate-100",children:"⌛ 正在评估符合您认知经验的精选货架..."}):r.jsxs(te.div,{initial:{y:25,opacity:0},animate:{y:0,opacity:1},exit:{opacity:0},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-6 flex flex-col relative text-left select-none overflow-visible",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-emerald-400 to-blue-500"}),r.jsx("div",{className:"flex justify-between items-start mb-2.5",children:r.jsxs("div",{children:[r.jsx("span",{className:"bg-emerald-50 text-emerald-700 text-[9px] font-extrabold px-2 py-0.5 rounded-full font-sans tracking-widest uppercase",children:"⚖️ 双重心智契合 · COGNITIVE BLUE OCEAN"}),r.jsx("h2",{className:"text-base font-extrabold text-slate-800 tracking-tight mt-1.5 leading-snug",children:"Tinder 交互：挑选您的蓝海极客货盘"})]})}),r.jsx("p",{className:"text-[11px] text-slate-400 mb-3.5 leading-relaxed",children:"根据您的思考空白，全套整合中国供选货盘出海链路以供筛选："}),r.jsx("div",{className:"relative w-full h-[220px] my-1 flex items-center justify-center overflow-visible",children:f.map((Y,X)=>{const U=(X-d+f.length)%f.length,K=U===0;if(U>2)return null;const oe=30-U*10,$=1-U*.06,I=U===0?0:U===1?5:-4,se=U===0?g:U===1?20:-18,ee=U===0?0:U===1?8:14,he=U===0?1:1-U*.35;return r.jsxs(te.div,{drag:K?"x":!1,dragConstraints:{left:0,right:0},onDrag:K?V:void 0,onDragEnd:K?G:void 0,style:{zIndex:oe},animate:{x:se,y:ee,scale:$,rotate:I,opacity:he},transition:{type:"spring",stiffness:320,damping:23},className:`absolute w-[250px] sm:w-[270px] h-[190px] p-5 rounded-[2rem] border flex flex-col justify-between cursor-grab active:cursor-grabbing select-none transition-all duration-150
                ${K?"bg-slate-900 border-indigo-400 text-white shadow-[0_15px_35px_rgba(30,41,59,0.15)]":"bg-slate-50 border-slate-150 hover:bg-white text-slate-800 shadow-[0_5px_15px_rgba(0,0,0,0.01)]"}`,children:[K&&y&&r.jsx("div",{className:`absolute top-4 inset-x-0 mx-auto w-fit px-3 py-1 rounded-full text-[9px] font-black uppercase tracking-widest shadow-md z-50 text-white flex items-center gap-1.5 ${y==="left"?"bg-red-500 animate-pulse":"bg-emerald-500 animate-pulse"}`,children:y==="left"?r.jsx("span",{children:"╳ 下一个货盘 (Skip)"}):r.jsx("span",{children:"✓ 上架此蓝海 (Proceed)"})}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between items-start text-[8.5px]",children:[r.jsx("span",{className:`font-mono font-bold uppercase tracking-wider ${K?"text-indigo-300":"text-slate-400"}`,children:Y.angleType}),r.jsxs("span",{className:`font-black uppercase px-2 py-0.5 rounded ${K?"bg-indigo-950/80 text-[#A8E6CF]":"bg-emerald-50 text-[#2D6A4F] border border-emerald-100"}`,children:[Y.margin," 达致利差"]})]}),r.jsx("div",{className:"mt-3 text-left",children:r.jsx("h3",{className:"text-[12.5px] font-black leading-tight tracking-tight break-words",children:Y.name})})]}),r.jsxs("div",{className:"flex gap-2.5 items-center mt-2",children:[r.jsxs("div",{className:"text-[10px]",children:[r.jsx("span",{className:K?"text-slate-400":"text-slate-500",children:"海外估售价: "}),r.jsxs("span",{className:"font-mono font-black text-rose-500 text-xs text-left",children:["¥ ",Y.price]})]}),r.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-slate-300/40"}),r.jsxs("div",{className:"text-[10px]",children:[r.jsx("span",{className:K?"text-slate-400":"text-slate-500",children:"国内工坊采购价: "}),r.jsxs("span",{className:"font-mono font-bold text-emerald-500 text-xs",children:["¥ ",Y.domesticCost]})]})]}),r.jsx("div",{className:"pt-2 border-t border-dashed border-slate-200/20 text-[9.5px] text-left leading-relaxed",children:r.jsx("p",{className:`${K?"text-slate-300":"text-slate-500"} line-clamp-2`,children:Y.desc})})]},Y.id)})}),r.jsxs("div",{className:"flex justify-center gap-5 items-center my-1.5",children:[r.jsx("button",{onClick:E,className:"w-11 h-11 bg-rose-50 hover:bg-rose-100 text-rose-500 border border-rose-200 rounded-full flex items-center justify-center cursor-pointer shadow-sm hover:scale-105 active:scale-95 transition-all text-xs font-bold",title:"下一个",children:"❌ 换"}),r.jsx("span",{className:"text-[9.5px] text-slate-400 font-bold uppercase tracking-widest font-mono",children:"Skip or Keep"}),r.jsx("button",{onClick:()=>O(),className:"w-11 h-11 bg-emerald-50 hover:bg-emerald-100 text-emerald-500 border border-emerald-200 rounded-full flex items-center justify-center cursor-pointer shadow-sm hover:scale-105 active:scale-95 transition-all text-xs font-bold",title:"上架并投流",children:"❤️ 要"})]}),j&&r.jsxs(te.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-3.5 border-t border-slate-100 pt-3 space-y-2.5",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"text-[10px] bg-slate-105 px-2 py-0.5 rounded text-slate-600 font-bold",children:"⚙️ 行家二次手工打磨面板"}),r.jsx("span",{className:"text-[9px] text-slate-400 font-sans",children:"（您可以在此随意修改其标题、海外估售价等，参数联动计算）："})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-[9px] font-bold text-slate-500 block mb-0.5",children:"修改专属商品名称:"}),r.jsx("input",{value:j.name,onChange:Y=>T(j.id,"name",Y.target.value),className:"w-full bg-slate-50 border border-slate-200 rounded-xl px-3 py-2 text-xs font-bold text-slate-800 outline-none focus:bg-white focus:ring-1 focus:ring-indigo-400"})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[r.jsxs("div",{children:[r.jsx("label",{className:"text-[9px] font-bold text-slate-400 block mb-0.5",children:"零售建议价 (¥):"}),r.jsx("input",{type:"number",value:j.price,onChange:Y=>T(j.id,"price",Number(Y.target.value)),className:"w-full bg-slate-50 border border-slate-200 text-xs font-mono font-extrabold text-[#2D6A4F] rounded-xl px-3 py-1.5"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-[9px] font-bold text-slate-400 block mb-0.5",children:"工坊采购价 (¥):"}),r.jsx("input",{type:"number",value:j.domesticCost,onChange:Y=>T(j.id,"domesticCost",Number(Y.target.value)),className:"w-full bg-slate-50 border border-slate-200 text-xs font-mono font-extrabold text-slate-500 rounded-xl px-3 py-1.5"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"text-[9px] font-bold text-slate-400 block mb-0.5",children:"源头供应链与商业逻辑文案修改:"}),r.jsx("textarea",{value:j.desc,rows:2,onChange:Y=>T(j.id,"desc",Y.target.value),className:"w-full bg-slate-50 border border-slate-200 text-[10.5px] text-slate-700 rounded-xl p-2.5 resize-none leading-normal focus:bg-white focus:ring-1 focus:ring-indigo-400"})]})]}),r.jsx("button",{type:"button",onClick:()=>O(),className:"w-full py-2.5 mt-1 bg-slate-900 hover:bg-black text-white rounded-xl font-bold text-xs tracking-wider transition-all cursor-pointer font-sans text-center shadow-md",children:"✓ 确定此项货盘，以此高溢价投流 ➔"})]})]})},k5=({selectedOption:a,onLaunch:l})=>{const i=a||{name:"高价值非标香薰机",price:249};return r.jsxs(te.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{opacity:0},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-6 flex flex-col relative text-left",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-500 to-indigo-500"}),r.jsx("div",{className:"flex justify-between items-start mb-3.5",children:r.jsxs("div",{children:[r.jsx("span",{className:"bg-blue-50 text-blue-600 text-[9px] font-extrabold px-2 py-0.5 rounded-full font-sans tracking-widest uppercase",children:"🎨 鲍德里亚符号美学 · AD CREATIVE"}),r.jsx("h2",{className:"text-base font-extrabold text-slate-800 tracking-tight mt-1",children:"剥离人类主体的“静物美学”营销卡片"})]})}),r.jsxs("div",{className:"bg-slate-50 border border-slate-105 rounded-2xl p-3 mb-4 select-none",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("div",{className:"w-5 h-5 rounded-full bg-slate-350 animate-pulse"}),r.jsx("div",{className:"text-[10px] font-bold text-slate-700",children:"Studio.Elegance (海外独立站赞助商)"})]}),r.jsxs("div",{className:"w-full h-32 bg-gradient-to-b from-slate-900 via-slate-800 to-black rounded-xl mb-2.5 flex flex-col items-center justify-center p-4 relative overflow-hidden text-center border border-slate-950",children:[r.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(255,255,255,0.04)_0,transparent_60%)]"}),r.jsx("div",{className:"absolute bottom-2 w-12 h-2 bg-black/60 blur-xs rounded-full animate-pulse",style:{animationDuration:"4s"}}),r.jsx("div",{className:"w-10 h-16 bg-slate-400/90 rounded-xs relative z-10 shadow-xl opacity-90",style:{backgroundImage:"linear-gradient(45deg, #111 0%, #333 100%)"}}),r.jsx("span",{className:"text-[9px] text-slate-500 font-mono absolute bottom-2 tracking-widest uppercase",children:"Atmosphere · Textures · Shadows"})]}),r.jsx("p",{className:"text-[12px] font-bold text-slate-800 font-sans",children:i.name}),r.jsx("p",{className:"text-[10.5px] text-slate-500 leading-relaxed font-sans mt-1",children:"🍃 独处时的宁静呼吸，不需喧嚣与多余解释。 手工考究材质，让自然的质朴伴随时光的缓行。 支持安全货到检验 (Plata la livrare)，我们把最真实的尊重，送抵您的门前。"}),r.jsxs("div",{className:"flex justify-between items-center border-t border-slate-200/50 pt-2 mt-2 font-mono",children:[r.jsxs("span",{className:"text-[11px] text-emerald-600 font-bold",children:["RRP (零售建议售价): ¥ ",i.price]}),r.jsx("span",{className:"text-[9px] text-slate-400",children:"COD 支持 · 坏账池覆盖"})]})]}),r.jsx("button",{onClick:l,className:"w-full py-3.5 bg-slate-950 text-white rounded-xl font-extrabold text-xs tracking-wider shadow-lg hover:bg-black transition-all cursor-pointer font-sans",children:"🚀 一键开始高阶蓝海投流爆发 ➔"})]})},R5=({metrics:a,onFinish:l})=>(H.useEffect(()=>{if(a.orders>=5){const o=setTimeout(l,2e3);return()=>clearTimeout(o)}},[a.orders,l]),r.jsxs(te.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{opacity:0},className:"w-full max-w-sm bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.03)] border border-slate-100 p-6 flex flex-col relative text-left select-none",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-500 via-indigo-500 to-emerald-500"}),r.jsx("div",{className:"flex justify-between items-center mb-4",children:r.jsxs("div",{children:[r.jsx("span",{className:"bg-indigo-50 border border-indigo-100 text-indigo-700 text-[9.5px] font-extrabold px-2.5 py-0.5 rounded-full tracking-widest font-sans",children:"📈 蓝海专属流量引擎 · CORE FUNNEL"}),r.jsx("h2",{className:"text-base font-black text-slate-800 mt-1.5 tracking-tight",children:"高转化蓝海溢价漏斗"})]})}),r.jsxs("div",{className:"space-y-2.5 mb-5 font-sans",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between text-[11px] font-bold text-slate-600 mb-1",children:[r.jsx("span",{children:"🌍 社交信息流大展现 (Impressions)"}),r.jsx("span",{className:"font-mono font-black",children:a.impressions})]}),r.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:r.jsx(te.div,{initial:{width:0},animate:{width:"100%"},className:"bg-slate-400 h-full rounded-full"})})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between text-[11px] font-bold text-slate-600 mb-1",children:[r.jsx("span",{children:"🖱️ 情绪符号物点击 (Clicks)"}),r.jsxs("span",{className:"font-mono font-black text-blue-500",children:[a.clicks," ",r.jsxs("span",{className:"text-[9.5px] font-normal text-slate-400",children:["(",16.5,"% CTR)"]})]})]}),r.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:r.jsx(te.div,{initial:{width:0},animate:{width:`${16.5*4}%`},className:"bg-blue-500 h-full rounded-full"})})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between text-[11px] font-bold text-slate-600 mb-1",children:[r.jsx("span",{children:"🛒 独角客群锁入加购 (Add to Cart)"}),r.jsx("span",{className:"font-mono font-black text-amber-500",children:a.addCarts})]}),r.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:r.jsx(te.div,{initial:{width:0},animate:{width:`${a.addCarts/(a.clicks||1)*100}%`},className:"bg-amber-500 h-full rounded-full"})})]}),r.jsxs("div",{children:[r.jsxs("div",{className:"flex justify-between text-[11px] font-bold text-slate-700 mb-1",children:[r.jsx("span",{children:"📦 Plata COD 成交闭环 (Real Orders)"}),r.jsxs("span",{className:"font-mono font-black text-emerald-600",children:[a.orders," / 5"]})]}),r.jsx("div",{className:"w-full bg-slate-100 h-2 rounded-full overflow-hidden",children:r.jsx("div",{className:"bg-emerald-600 h-full rounded-full transition-all duration-500",style:{width:`${a.orders/5*100}%`}})})]})]}),r.jsxs("div",{className:"bg-slate-50 border border-slate-100 p-3 rounded-xl flex items-center justify-between text-[11px] text-slate-500 gap-3",children:[r.jsx("span",{className:"flex h-2.5 w-2.5 rounded-full bg-emerald-500 animate-ping shrink-0"}),r.jsx("p",{className:"leading-tight flex-1",children:"由于剥离了人类模特的红海大同叙述，本货盘依靠**极其强烈的手工常识与静安符号价值**在东欧社交圈形成口碑大热！ 成交爆单滚动中..."})]})]})),z5=({step:a,selectedOption:l,hasWithdrawn:i,onWithdraw:o,onReset:f,transitionTo:h})=>{const d=l||{name:"高阶非标蓝海香薰机",price:249,domesticCost:55},[p,g]=H.useState(0),x=d.price||249,y=d.domesticCost||55,v=Number((x*.14).toFixed(2)),j=38,T=Number((x-y-v-j).toFixed(2)),E=[{id:"RO-P3-091",buyer:"Nicoleta (科尔尼拉街区)",profit:T,sign:"96%",signStatus:"100% 妥投 COD"},{id:"RO-P3-092",buyer:"Bogdan (特拉帕大公馆)",profit:T,sign:"96%",signStatus:"100% 妥投 COD"},{id:"RO-P3-093",buyer:"Andrada (山野猎人小屋)",profit:T,sign:"96%",signStatus:"100% 妥投 COD"},{id:"RO-P3-094",buyer:"Alexandru (老河畔手工工坊)",profit:T,sign:"96%",signStatus:"100% 妥投 COD"},{id:"RO-P3-095",buyer:"Florin (森林木桥俱乐部)",profit:T,sign:"96%",signStatus:"100% 妥投 COD"}],O=()=>{g(V=>V+360),setTimeout(()=>{o()},450)};return r.jsxs(te.div,{initial:{y:30,opacity:0,scale:.95},animate:{y:0,opacity:1,scale:1,rotateY:p},transition:{type:"spring",stiffness:150,damping:15},style:{transformStyle:"preserve-3d"},className:"w-full max-w-sm sm:max-w-md bg-white rounded-[2rem] shadow-[0_20px_50px_rgba(0,0,0,0.04)] border border-slate-100 p-6 relative overflow-hidden flex flex-col",children:[r.jsx("div",{className:"absolute top-0 left-0 w-full h-1.5 bg-gradient-to-r from-blue-500 via-indigo-500 to-emerald-400"}),a==="part3_success"&&r.jsxs(te.div,{initial:{opacity:0},animate:{opacity:1},className:"absolute inset-0 bg-white/98 backdrop-blur-xl z-20 flex flex-col items-center justify-center p-6 text-center select-none",children:[r.jsx(te.div,{whileHover:{scale:1.1,rotate:12},initial:{scale:0},animate:{scale:1},transition:{type:"spring",delay:.15},className:"w-14 h-14 bg-gradient-to-tr from-amber-400 to-yellow-500 rounded-2xl flex items-center justify-center mb-4 shadow-[0_10px_30px_rgba(245,158,11,0.35)] animate-bounce",children:r.jsx(nc,{className:"w-7 h-7 text-white animate-pulse"})}),r.jsx("h3",{className:"font-extrabold text-base text-slate-800 tracking-tight",children:"👑 本关微信离岸下付打款成功"}),r.jsx("p",{className:"font-mono text-3.5xl font-black text-emerald-600 mt-1 tracking-tight",children:"+ ¥ 480.00"}),r.jsx("p",{className:"text-[11px] text-slate-400 mt-1 leading-normal",children:"累积分成现款结清，您已通过三个阶段全部测试！"}),r.jsxs("div",{className:"bg-slate-50 border border-slate-200/50 p-3.5 rounded-2xl w-full my-4 text-left select-none shadow-inner space-y-1",children:[r.jsx("p",{className:"text-[10px] text-indigo-600 font-extrabold uppercase font-mono tracking-widest text-center",children:"🏆 出海极速增值商业勋章 🏆"}),r.jsx("p",{className:"text-[11px] text-slate-600 leading-normal text-center pt-1 font-semibold",children:"【高阶地缘与认知自适应大总管】"}),r.jsx("p",{className:"text-[9.5px] text-slate-400 leading-normal text-center",children:"您完美对冲了资本大厂异化逻辑，证明了非标智慧的强大溢价。"})]}),r.jsx("button",{onClick:f,className:"w-full py-3.5 bg-slate-900 hover:bg-black text-white rounded-xl font-extrabold text-xs tracking-wider shadow-lg transition-all cursor-pointer font-sans",children:"🔄 完美毕业！清理账册从关卡1重载体验"})]}),r.jsxs("div",{className:"flex justify-between items-start mb-3 mt-1",children:[r.jsxs("div",{className:"flex flex-col text-left font-sans",children:[r.jsx("h2",{className:"text-sm sm:text-base font-extrabold text-[#2D2D2D]",children:"第三关：专属蓝海分成总账"}),r.jsxs("p",{className:"text-[11px] text-slate-400 mt-0.5",children:["本关专属高额提成分成累计: ",r.jsx("span",{className:"font-bold text-emerald-600 font-mono text-xs",children:"¥ 480.00"})]})]}),r.jsx("div",{className:"w-9 h-9 bg-emerald-50 border border-emerald-100 rounded-full flex items-center justify-center text-emerald-600 shrink-0",children:r.jsx(U0,{className:"w-4 h-4"})})]}),r.jsx("div",{className:"space-y-2 mb-4 max-h-60 overflow-y-auto pr-1",children:E.map(V=>r.jsxs("div",{className:"bg-slate-50/60 p-3 rounded-xl border border-slate-100 flex flex-col gap-1 text-left font-sans",children:[r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400",children:[r.jsxs("span",{className:"font-mono",children:["ID: ",V.id]}),r.jsx("span",{className:"text-emerald-600 font-bold bg-white border border-emerald-150 px-1.5 py-0.2 rounded",children:V.signStatus})]}),r.jsxs("div",{className:"flex justify-between items-center pt-0.5",children:[r.jsx("span",{className:"text-xs font-bold text-slate-700",children:V.buyer}),r.jsx("span",{className:"text-[11px] text-slate-400 lines-clamp-1",children:d.name})]}),r.jsxs("p",{className:"text-[9.5px] text-slate-400 mt-0.5",children:["售价 ¥",x," - 采购 ¥",y," - 推广 ¥",v," - 履约邮费 ¥",j]}),r.jsxs("div",{className:"flex justify-between items-center text-[10px] text-slate-400 border-t border-dashed border-slate-200/60 pt-1.5 mt-1",children:[r.jsx("span",{children:"单笔真实高签收分成纯利:"}),r.jsxs("span",{className:"font-mono font-bold text-emerald-600",children:["+ ¥ ",V.profit.toFixed(2)]})]})]},V.id))}),r.jsx("button",{onClick:O,disabled:a==="part3_success",className:"w-full py-3.5 bg-slate-900 text-white rounded-xl font-bold text-sm tracking-wide shadow-lg shadow-gray-200 hover:bg-black transition-all cursor-pointer font-sans",children:"💰 立即提现累计超额利润 ¥480.00 到微信钱包"})]})};function H0({step:a,setStep:l,transitionTo:i,onReset:o,hasWithdrawn:f,selectedProduct:h,setSelectedProduct:d,metrics:p,orderBills:g,strategySelections:x,setStrategySelections:y,stampApproved:v,setStampApproved:j,onSendMessage:T,userExpertise:E="",setUserExpertise:O=()=>{},part3Options:V=[],part1Inspirations:G=[],selectedPart3Option:Y=null,setSelectedPart3Option:X=()=>{}}){return r.jsx("div",{className:"w-full h-full px-4 lg:px-10 relative bg-transparent overflow-y-auto",children:r.jsxs("div",{className:"min-h-full w-full flex flex-col items-center justify-center max-w-[800px] mx-auto py-8 relative z-10",children:[r.jsxs(fn,{mode:"wait",children:[a==="intro1"&&r.jsx(g5,{},"welcome"),a==="intro2"&&r.jsx(y5,{part1Inspirations:G,onReady:()=>i("scanning","我已经完全准备就绪，一秒开启极速跨境商业选品！")},"ready"),a==="scanning"&&r.jsx(b5,{onComplete:()=>i("locked",void 0)},"radar"),a==="locked"&&r.jsx(v5,{selectedProduct:h,setSelectedProduct:d,onConfirm:()=>i("marketing",`我已选定爆品【${h.name}】，立即上架制作广告素材！`)},"product"),a==="marketing"&&r.jsx(j5,{selectedProduct:h,onLaunch:()=>i("funnel","素材完美契合！一键启动红点高流广告投放！")},"marketing"),a==="funnel"&&r.jsx(w5,{metrics:p,onFinish:()=>i("settlement","罗马尼亚货到付款回款分成到账！立即核对分成结算细节。")},"funnel"),(a==="settlement"||a==="success")&&r.jsx(T5,{step:a,selectedProduct:h,orderBills:g,hasWithdrawn:f,onWithdraw:()=>i("success",void 0,"SILENT"),onGoBack:()=>i("settlement",void 0,"SILENT"),transitionTo:i},"settlement"),(a==="explore_environment"||a==="socratic_q1")&&r.jsx(A5,{step:a,transitionTo:i},"explore_environment"),(a==="socratic_q2"||a==="expert_safeguard")&&r.jsx(C5,{step:a,transitionTo:i,selectedProduct:h,setSelectedProduct:d,strategySelections:x,setStrategySelections:y,stampApproved:v,setStampApproved:j,onSendMessage:T},"strategy_configurator"),a==="funnel2"&&r.jsx(N5,{metrics:p,onFinish:()=>i("settlement2","二次极致优化爆单完成！查看高阶结算账本单")},"funnel2"),(a==="settlement2"||a==="success2")&&r.jsx(E5,{step:a,selectedProduct:h,hasWithdrawn:f,onWithdraw:()=>i("success2",void 0,"SILENT"),onReset:o,transitionTo:i},"settlement2"),a==="part3_intro"&&r.jsx(_5,{transitionTo:i},"p3_intro"),a==="part3_survey"&&r.jsx(x5,{userExpertise:E,setUserExpertise:O,transitionTo:i,onSendMessage:T},"p3_survey"),a==="part3_searching"&&r.jsx(D5,{},"p3_searching"),a==="part3_results"&&r.jsx(M5,{part3Options:V,selectedPart3Option:Y,setSelectedPart3Option:X,transitionTo:i},"p3_results"),a==="part3_marketing"&&r.jsx(k5,{selectedOption:Y,onLaunch:()=>i("part3_funnel","素材与受众对齐！启动专属蓝海推广投流！")},"p3_marketing"),a==="part3_funnel"&&r.jsx(R5,{metrics:p,onFinish:()=>i("part3_settlement","专属蓝海订单开始下付结账！立即核算纯提分成！")},"p3_funnel"),(a==="part3_settlement"||a==="part3_success")&&r.jsx(z5,{step:a,selectedOption:Y,hasWithdrawn:f,onWithdraw:()=>i("part3_success",void 0,"SILENT"),onReset:o,transitionTo:i},"p3_settlement")]}),(a==="settlement"||a==="success"||a==="funnel"||a==="part3_funnel")&&r.jsxs(te.div,{initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.08}}},className:"mt-8 grid grid-cols-4 gap-3 w-full select-none",children:[r.jsxs(te.div,{variants:{hidden:{opacity:0,y:15,scale:.9},visible:{opacity:1,y:0,scale:1}},transition:{type:"spring",stiffness:150,damping:15},className:"bg-white py-4 px-2 rounded-2xl border border-slate-100 shadow-[0_8px_30px_rgba(0,0,0,0.02)] flex flex-col items-center justify-center",children:[r.jsx("p",{className:"text-[10px] font-bold tracking-wider text-slate-400 mb-1",children:"曝光数"}),r.jsx("p",{className:"text-base md:text-lg font-mono font-bold text-[#1E293B]",children:p.impressions.toLocaleString()})]}),r.jsxs(te.div,{variants:{hidden:{opacity:0,y:15,scale:.9},visible:{opacity:1,y:0,scale:1}},transition:{type:"spring",stiffness:150,damping:15},className:"bg-white py-4 px-2 rounded-2xl border border-slate-100 shadow-[0_8px_30px_rgba(0,0,0,0.02)] flex flex-col items-center justify-center",children:[r.jsx("p",{className:"text-[10px] font-bold tracking-wider text-slate-400 mb-1",children:"点击数"}),r.jsx("p",{className:"text-base md:text-lg font-mono font-bold text-blue-500",children:p.clicks})]}),r.jsxs(te.div,{variants:{hidden:{opacity:0,y:15,scale:.9},visible:{opacity:1,y:0,scale:1}},transition:{type:"spring",stiffness:150,damping:15},className:"bg-white py-4 px-2 rounded-2xl border border-slate-100 shadow-[0_8px_30px_rgba(0,0,0,0.02)] flex flex-col items-center justify-center",children:[r.jsx("p",{className:"text-[10px] font-bold tracking-wider text-slate-400 mb-1",children:"加购数"}),r.jsx("p",{className:"text-base md:text-lg font-mono font-bold text-amber-500",children:p.addCarts})]}),r.jsxs(te.div,{variants:{hidden:{opacity:0,y:15,scale:.9},visible:{opacity:1,y:0,scale:1}},transition:{type:"spring",stiffness:150,damping:15},className:"bg-white py-4 px-2 rounded-2xl border border-slate-100 shadow-[0_8px_30px_rgba(0,0,0,0.02)] flex flex-col items-center justify-center",children:[r.jsx("p",{className:"text-[10px] font-bold tracking-wider text-slate-400 mb-1",children:"出单数"}),r.jsx("p",{className:"text-base md:text-lg font-mono font-bold text-emerald-600",children:p.orders})]})]})]})})}function O5({onLogin:a}){const[l,i]=H.useState("demo_admin"),[o,f]=H.useState("password123"),h=d=>{d.preventDefault(),l&&o&&a()};return r.jsx("div",{className:"min-h-screen bg-[#FAFAF8] flex items-center justify-center p-4",children:r.jsxs(te.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"w-full max-w-md bg-white rounded-2xl shadow-xl overflow-hidden border border-slate-200/60",children:[r.jsxs("div",{className:"p-8 text-center bg-gradient-to-br from-slate-50 to-slate-100 border-b border-slate-100",children:[r.jsx("div",{className:"w-16 h-16 bg-blue-600 rounded-2xl mx-auto flex items-center justify-center shadow-lg shadow-blue-500/30 mb-6",children:r.jsx(c5,{className:"w-8 h-8 text-white"})}),r.jsx("h2",{className:"text-2xl font-bold tracking-tight text-slate-800",children:"出海商业模拟平台"}),r.jsx("p",{className:"text-slate-500 text-sm mt-2",children:"天识科技"})]}),r.jsxs("form",{onSubmit:h,className:"p-8 space-y-6",children:[r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"relative",children:[r.jsx("label",{className:"text-sm font-semibold text-slate-700 mb-1.5 block",children:"用户名 / 账号"}),r.jsx("div",{className:"absolute inset-y-0 left-0 top-7 pl-3 flex items-center pointer-events-none",children:r.jsx(f5,{className:"h-5 w-5 text-slate-400"})}),r.jsx("input",{type:"text",value:l,onChange:d=>i(d.target.value),className:"w-full pl-10 pr-4 py-3 rounded-xl border border-slate-200 bg-slate-50/50 focus:bg-white focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all text-sm font-medium",placeholder:"请输入账号"})]}),r.jsxs("div",{className:"relative",children:[r.jsx("label",{className:"text-sm font-semibold text-slate-700 mb-1.5 block",children:"密码 / 授权码"}),r.jsx("div",{className:"absolute inset-y-0 left-0 top-7 pl-3 flex items-center pointer-events-none",children:r.jsx(a5,{className:"h-5 w-5 text-slate-400"})}),r.jsx("input",{type:"password",value:o,onChange:d=>f(d.target.value),className:"w-full pl-10 pr-4 py-3 rounded-xl border border-slate-200 bg-slate-50/50 focus:bg-white focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none transition-all text-sm font-medium tracking-widest",placeholder:"••••••••"})]})]}),r.jsxs("button",{type:"submit",className:"w-full bg-slate-900 hover:bg-slate-800 text-white rounded-xl py-3.5 font-bold flex items-center justify-center gap-2 transition-all shadow-md active:scale-[0.98]",children:["安全登录平台",r.jsx(Io,{className:"w-4 h-4"})]}),r.jsx("p",{className:"text-center text-xs text-slate-400 mt-6",children:"此为模拟测试环境，账号密码已预填定。"})]})]})})}function V5(a){let l="aquatics",i="";const o=a.toLowerCase().trim();if(o.includes("niche::")&&o.includes("||gap::")){const d=a.split("||gap::")[0],p=a.split("||gap::")[1];l=d.replace("niche::","").trim(),i=p.trim()}else o.includes("咖啡")||o.includes("coffee")||o.includes("大师")?l="coffee":o.includes("徒步")||o.includes("露营")||o.includes("camp")||o.includes("hiking")||o.includes("户外")?l="hiking":o.includes("园艺")||o.includes("植物")||o.includes("绿植")||o.includes("garden")?l="gardening":o.includes("手办")||o.includes("玩具")||o.includes("潮玩")||o.includes("coll")?l="collectibles":l="aquatics",i=a.replace(/我最熟悉的是：/g,"").substring(a.indexOf("【")!==-1?a.indexOf("【")+1:0,a.indexOf("】")!==-1?a.indexOf("】"):a.length).trim();const f={aquatics:[{id:"p3-fish-1",name:"智能超静音「常温多孔陶培菌」自冷微生态过滤插屏缸",angleType:"机制优势：小批非标·避免大牌跟卖",price:249,domesticCost:55,margin:"352%",desc:"完美温控自造景。大厂看不上这种高质感的手作老陶瓷造型。我们对接国内手工艺制作，免去了大额折旧成本，在东欧公寓用户中极具黑马相。"},{id:"p3-fish-2",name:"物理阻尼「轻柔慢调恒温」防爆微型高密加热器",angleType:"情怀溢价：回归纯自然温控常识",price:189,domesticCost:38,margin:"397%",desc:"高溢价至臻对齐。传统塑料加热棒太累赘突兀，此款采用实木护持和无摩擦物理旋钮锁阻，对追求极致静音安全的高端白领有长效号召力。"},{id:"p3-fish-3",name:"胡桃实木框「高质防霉抗菌」水族微景观生态台",angleType:"偏好对齐：质朴审美融汇静安美学",price:298,domesticCost:65,margin:"358%",desc:"不插电的纯天然物理隔水阻冷。将纯朴的胡桃木微缩手作美感完美装配，击穿大厂在塑料、不锈钢等工业冷品领域的拼价血海，独占极致高毛利。"}],coffee:[{id:"p3-coffee-1",name:"红木手作「无静电慢速重力盘」手摇咖啡研磨机",angleType:"机制优势：小批非标·避免大牌跟卖",price:269,domesticCost:58,margin:"363%",desc:"拒绝大马达插电噪音。全红木外饰拼装，利用低速铜轴大齿盘精准研磨不出温、无飞粉。长在海外书房咖啡玩家的热核痛点上。"},{id:"p3-coffee-2",name:"纯铜捶打「阻尼天鹅颈」自平衡重力手冲控水壶",angleType:"情怀溢价：讲好手工捶打与古法故事",price:228,domesticCost:45,margin:"406%",desc:"将现代公模的轻钢壶替换为匠意十足的黄铜皮，把重力重心完美藏入物理阻尼把手。断水极干脆，极强地标美学溢价，令中产发烧友甘愿认购。"},{id:"p3-coffee-3",name:"大理石榫接「冷工艺气动力」手控均压意式微模托",angleType:"偏好对齐：手感阻尼至上享受",price:259,domesticCost:55,margin:"370%",desc:"利用大理石厚重自重搭配机械无源减压气密层，免除大容量电池折损与变频老化雷区，高符号价值击破拼价大路货。"}],hiking:[{id:"p3-camp-1",name:"手工头层牛皮「匠缝做旧」防摔地垫灯营地保护执套",angleType:"机制优势：超轻量打样·轻装突围",price:198,domesticCost:42,margin:"371%",desc:"大厂的巨型生产线无法量化皮料天然断纹手工锁线的缝制变动成本。我们与特色工艺微厂合作，小批量快速周转，高调收割野奢情怀。"},{id:"p3-camp-2",name:"非插电「黄铜拉膛风道」强燃气控无烟露营火箭柴炉",angleType:"情怀溢价：浪漫星空仪式感对齐",price:278,domesticCost:60,margin:"363%",desc:"摆脱笨重钢管和电路充电。利用微烟气膛自旋流体力学，不需要电力风扇依旧火力熊熊。精工黄铜做旧感极其硬派，是户外野行家炫图神器。"},{id:"p3-camp-3",name:"黑胡桃木榫接「天然高强防水纹」露营防护折叠台垫",angleType:"偏好对齐：手工实木解构工业白铁白铁感",price:228,domesticCost:48,margin:"375%",desc:"使用高阻燃、高密度防水保护的原木横切纹，将户外下午茶格调推向极限，在欧洲社交网站里具有极高的拍照流量转化溢价力。"}],gardening:[{id:"p3-garden-1",name:"黄铜精工「双向活塞重压」一触持续5秒微米细雨壶",angleType:"机制优势：高敏反应快速迭代",price:239,domesticCost:50,margin:"378%",desc:"解决海外普通塑料壶按压累、手酸且雾化不均的真实痛点。精密活塞自蓄气技术带来连绵微米迷雾，温和润透奇花珍植，溢价高昂。"},{id:"p3-garden-2",name:"火山灰粗陶「怀旧沙纹呼吸透气」植物免烂根种植陶盆",angleType:"情怀溢价：将日常工具提纯为生命疗愈器",price:189,domesticCost:38,margin:"397%",desc:"大厂塑料盆无法保证多孔毛细气汽互换。此陶盆用火山砂与熟土天然锻烧，完美防止烂根，为海外中产阳台带来古典园艺意境。"},{id:"p3-garden-3",name:"原切实木「纤维慢导水」悬挂草本植物造景木吊篮",angleType:"偏好对齐：美学常识击穿普通跟卖",price:268,domesticCost:58,margin:"362%",desc:"大厂的铁网和塑料篮毫无温暖。本吊篮以高硬防腐胡桃实木，内置纯天然慢阻导水芯，让公寓白领的常青藤享受无忧生息，利润空间丰厚。"}],collectibles:[{id:"p3-coll-1",name:"北美黑胡桃「无尘密封哑影」手办柔光呼吸展示神龛",angleType:"机制优势：小批量非供货·极速制胜",price:289,domesticCost:60,margin:"381%",desc:"手工榫制高密度黑胡桃框架，专供海外买手陈列潮玩。高透有机板兼备无尘微阻尼换气性能，使藏品被温润木纹环围，极受收藏家爱戴。"},{id:"p3-coll-2",name:"浮法极净「微气密封无重力」手办悬浮慢速自旋保护仓",angleType:"情怀溢价：为百万死忠藏家提供殿堂极守护仪式",price:249,domesticCost:52,margin:"378%",desc:"无缝浮法超白玻璃配合抗老气密唇卡簧，恒定微干预。有效防辐射老化、黄变落灰，击碎市场上普通拼接塑料拼接盒的廉价感。"},{id:"p3-coll-3",name:"随形天然大理石「重岩不规则」粗糙精切手工防摔展示台",angleType:"偏好对齐：天然独一无二纹理溢价",price:199,domesticCost:40,margin:"397%",desc:"在轻飘塑料支架漫天卷底价的夹缝里，高质感的大理石重基座不仅抗撞防倒，更让潮流藏品绽放出极度硬核的高级格调，销量极为稳健。"}]},h=f[l]||f.aquatics;return i&&i.length>1&&!["传统东方非标养生/家居杂货","传统东方非标养生","传统东方非标养生/家居","个性疗愈数码硬件/减压手玩","户外复古美学/手工野性刀鞘工具","传统东方非标养生/竹制手工家居"].includes(i)?[{id:"p3-cust-1",name:`独家工艺「${i}」手作极上限量版`,angleType:"机制优势：小批非标·避免拼价血海竞争",price:269,domesticCost:58,margin:"363%",desc:`这正是地缘最缺乏的瑰宝！大厂因为无法自动化量化它的特制皮纹、竹条卡榫或磨石变动加工成本而退出。我们对接国内村民工坊协作生产，独享海外「${i}」高溢价风口。`},{id:"p3-cust-2",name:`古雅温存「${i}」情怀仪式陪伴件`,angleType:"情怀溢价：唤醒海外高净值中产阶级的心灵归宿",price:228,domesticCost:45,margin:"406%",desc:"从原本冷冰冰的工业壳，重新升华为温暖生活仪式感与返璞归真的故事。高纯度阴影美学摄影卡片在海外买手圈中击中绝对痛点，创造多倍高利空间。"},{id:"p3-cust-3",name:`极极简实木工打「${i}」北欧静息艺术台垫`,angleType:"偏好对齐：美学共鸣度一掷千金阻击大厂",price:298,domesticCost:65,margin:"358%",desc:"天然做旧、原木手感等极致的物理温度，完美击中了海外受众在沉闷都市中渴望寻求自然静息的深层需求，令大厂公模望尘莫及。"}]:h}const B5=a=>a.includes("好")||a.includes("增长")||a.includes("复苏")||a.includes("积极")?"Positive":a.includes("危机")||a.includes("飙升")||a.includes("困难")||a.includes("极端")||a.includes("热")?"Negative":"Neutral",q0=a=>{const l=B5(a);return[{id:"news-dir-1",title:"突发热点应对方案",icon:"🔥",lifeObs:a.length>20?a.substring(0,30)+"...":"日常热点现象记录",matchProduct:"应急保障生存包",domesticCost:75,overseaRetail:299,market:"德国",margin:"298%",sentiment:l,desc:"借力新闻事件引发的恐慌与预防心理，将高溢价的防御与自救物资精准推送到需求井喷地。利用新闻焦虑制造不可抗拒的稀缺性抢购潮。"},{id:"news-dir-2",title:"极端气候小家电",icon:"❄️",lifeObs:a.length>20?"由新闻引发的环境担忧...":"气候变化的反常感知",matchProduct:"智能便携控温空调",domesticCost:85,overseaRetail:259,market:"意大利",margin:"204%",sentiment:l,desc:"精准打击极端天气频发的地区。切中痛点，利用短期气象新闻发酵事件，迅速在社交平台收割冲动型清凉需求订单。"},{id:"news-dir-3",title:"生活成本削减平替",icon:"💰",lifeObs:a.length>20?"近期物价波动与资产缩水导致的新闻...":"生活成本飙升下的平替选择",matchProduct:"节能多用轻简电饭煲",domesticCost:45,overseaRetail:188,market:"英国",margin:"317%",sentiment:l,desc:"在生活成本危机的巨大社会背景下，用一机多用的低碳省电属性迎合消费者。结合账单飙升的新闻，主打“买它即省钱”的消费心理学。"}]};function L5(){const[a,l]=H.useState(!1),[i,o]=H.useState("intro1"),[f,h]=H.useState(an[0]),[d,p]=H.useState(!1),[g,x]=H.useState({targetGroup:"none",vacuumPower:"none",packPlan:"none",trustOffer:"none"}),[y,v]=H.useState(!1),[j,T]=H.useState({impressions:0,clicks:0,addCarts:0,orders:0}),[E,O]=H.useState([]),[V,G]=H.useState("欧洲多国罕见高温天气，电费飙升，家庭节能避暑需求大增..."),[Y,X]=H.useState([]),[U,K]=H.useState([]),[oe,$]=H.useState(null),[I,se]=H.useState([{id:"msg-initial",role:"ai",content:"您好，欢迎来到出海极速增值获利模拟端！我是您的AI全球化商业决策顾问。零基础、担心没经验？这都无需担心！因为今天，第一单由我直接带你跑通并成功开单！无需你垫一分钱，也不用管理实物货盘，你只需在接下来的环节里作为商业总管见证一笔海外订单的流量转化与成交变现有多么简单！请在此发送一段近期的新闻内容，让我为您从中发掘隐藏的出海商业方向吧（或直接发送「开始」使用系统默认案例）。"}]),ee=(fe,ae,_)=>{const F=[];if(ae&&F.push({id:`user-${Date.now()}-${Math.random()}`,role:"user",content:ae}),o(fe),(fe==="success"||fe==="success2"||fe==="part3_success")&&p(!0),fe==="part3_searching"&&setTimeout(()=>{const B=V5(V);K(B),$(B[0]),ee("part3_results")},3200),fe==="part3_funnel"){T({impressions:420,clicks:35,addCarts:8,orders:0});let B=0;const P=setInterval(()=>{B+=1,T(S=>({...S,impressions:S.impressions+Math.floor(18+Math.random()*20),clicks:S.clicks+Math.floor(2+Math.random()*4),addCarts:S.addCarts+(Math.random()<.6?1:0),orders:B})),B>=5&&(clearInterval(P),setTimeout(()=>{ee("part3_settlement","专属蓝海出海推广完成！核算最终收益账单 ➔")},800))},900)}if(fe==="funnel2"){T({impressions:45,clicks:4,addCarts:1,orders:0});let B=0;const P=setInterval(()=>{B+=1,T(S=>({...S,impressions:S.impressions+Math.floor(15+Math.random()*20),clicks:S.clicks+Math.floor(2+Math.random()*3),addCarts:S.addCarts+(Math.random()<.6?1:0),orders:B})),B>=5&&clearInterval(P)},1e3)}let A="";if(_)A=_;else switch(fe){case"intro2":A=r.jsxs("div",{className:"space-y-3.5 text-left",children:[r.jsx("p",{className:"text-slate-800 font-bold text-sm",children:"✨ 像逛街一样发现出海商机！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"出海选品并没有任何高级魔法。我们从看似平常的新闻事件、气候变化、或社会现象中提炼出的“痛点与生存焦虑”，只要对接上国内成熟的集约式采购及共享前置仓，在外币高购买力的东中欧等国家往往能爆发出高额溢价！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"下面，我也通过数据雷达从货盘储备中，帮您初步筛分出了三个最贴合该热闻情绪的高溢价痛点方向。请在下方卡片中**直接挑选您认为最有潜力的一个新闻衍生商机**，我们一键对接大厂产线并发起全球雷达扫描！"})]});break;case"scanning":A="正在解析罗马尼亚、匈牙利等中东欧成长型COD（货到付款）市场即时API大盘！雷达正与海外多家主流社交媒体活跃买家数据进行交叉匹配，提取低采购成本、低退货损耗、具备海量流量预测及高分成比率的核心黄金款...";break;case"locked":A=`数据雷达解析完毕，受众画像已就绪！这款【${f.name}】由于满足了高客单价和强功能对比需求，在当前测试大盘中呈现出惊人的受众人群拉力。建议在右下角锁定此品，交由DSP引擎在海外推广多路由竞价展现！`;break;case"marketing":{let B="";f.id==="sealed-machine"?B="延长食物保鲜 5 倍时间！一键操作，锁住新鲜。支持开箱验货，货到付款。":f.id==="smart-mug"?B="无论寒冷，锁住 55℃ 黄金温度！长效续航，双层防烫。支持海外直邮，最快次日达。":B="360° 声波高频深度清洗，焕醒 100% 璨璀如新！首创专效轻度洁净，开箱试机货到付款。",A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-slate-800 font-bold text-sm",children:"🎨 专属高质感营销素材极速配齐！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"我们已根据您的商品属性，在海外主流社交圈中，自动搭设了简约风格的精美产品展示图，并配称了最打动当地消费者的销售文案："}),r.jsxs("div",{className:"bg-slate-50/80 p-3 rounded-xl border border-slate-200/60 text-[12px] italic text-[#3A75C4] font-medium",children:["“",B,"”"]}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"一键把这些广告极速投递到中东欧千家万户，准备看订单到来吧！"})]});break}case"funnel":A="🚀 广告投放计划已被毫秒级送达海外主流渠道！导师已垫资投放。快观察右面板的数据漏斗，实战出海大盘点击、加购数据已经开始实时流转。一旦用户确认购买、平台发货并完成货到付款（COD）签收，丰厚收益就会马上入账！";break;case"settlement":A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-slate-800 font-bold text-sm",children:"🔥 恭喜开单！今日首次出海实战一战告捷！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"在加购的海外主顾中，已经有第 1 位完成了开箱验货并签收支付！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"系统扣除进货价、运输和广告后，直接把该首单提成 **¥ 61.50** 转换为合规人民币！提现到零钱的链路已开启，提取至您的微信零钱见证开单的巨大喜悦！"})]});break;case"success":A="✅ 微信结算提现指令执行完毕！资金已由合规清算通道实时打入您的零钱账户。在大规模推广时，订单会呈数十倍自动产出。恭喜您轻驾就熟，成功跑通目前出海最高效、极速的智能跨境获利全流程！接下来让我们开启高阶爆单！";break;case"explore_environment":A="第一笔分成收益很赞，对吧？你看右边的仪表盘数据，刚才有 12 个人把商品锁单加入了购物车，但最终只有 1 个人完成了货到付款下单。想不想知道那 11 位犹豫的海外用户为什么流失？想不想了解他们真实的居住微观世界、赚到他们口袋里的钱？";break;case"socratic_q1":A=r.jsxs("div",{className:"space-y-2.5 text-left font-sans",children:[r.jsx("p",{className:"text-slate-800 font-bold text-sm",children:"💡 第一轮：观察下沉街区，多角度拆解流失原委"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"我们已经将犹豫不决的 11 位加购未付款用户，归纳为了右侧 Strada Trandafirilor 街区（玫瑰路）的三个典型代表。"}),r.jsxs("div",{className:"bg-slate-50/50 p-2.5 rounded-xl border border-slate-200/50 text-[11px] text-slate-500 space-y-1",children:[r.jsxs("p",{children:["📍 ",r.jsx("strong",{children:"42号院 Maria"}),"：传统农户。地窖里堆满自产番茄蔬菜备冬囤积。"]}),r.jsxs("p",{children:["📍 ",r.jsx("strong",{children:"56号院 Stefan"}),"：熏排骨工坊老板。满屋子带骨熏肉和香肠，骨尖锋利。"]}),r.jsxs("p",{children:["📍 ",r.jsx("strong",{children:"18号公寓 Elena"}),"：居家精致少女。喜欢采集林间草莓、树莓，果实娇嫩多汁。"]})]}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"请把他们可能遇到的痛点找出来。"})]});break;case"socratic_q2":A=r.jsxs("div",{className:"space-y-2.5 text-left font-sans",children:[r.jsx("p",{className:"text-[#3A75C4] font-bold text-sm",children:"💡 第二轮：高阶供需精确对齐推演（货盘拼配）"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"你挖掘到这一步证明了超凡的商业直觉！单纯卖一件机械产品往往遭遇冷场，因为客户要的是“生活场景的完全承载与对零花钱的安全感”。"}),r.jsxs("div",{className:"bg-blue-50/40 p-2.5 rounded-xl border border-blue-100 text-[11px] text-slate-600 space-y-1.5 leading-relaxed",children:[r.jsxs("p",{children:["📍 ",r.jsx("strong",{children:"Maria"}),"：番茄囤极多，送 50 个加厚袋打消她后续还要买袋子的顾虑。"]}),r.jsxs("p",{children:["📍 ",r.jsx("strong",{children:"Stefan"}),"：排骨骨尖锋利，必须配备超厚抗扎耐磨袋，防止漏气。"]}),r.jsxs("p",{children:["📍 ",r.jsx("strong",{children:"Elena"}),"：娇嫩浆果，机器需搭配“无级阻尼调节气心”进行微降压温和抽取，避免捏碎。"]})]}),r.jsxs("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:[r.jsx("strong",{children:"AI导师决策："})," 观察上面的地缘生活痛点！请在右侧的",r.jsx("strong",{children:"“供需高阶拼配”"}),"控制台面板里，勾选你的对齐优化组合。完成后提交咱们看评估率！"]})]});break;case"expert_safeguard":A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-emerald-850 font-bold text-sm",children:"🛡️ AI 专家机制：安全风控与合规保单"}),r.jsxs("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:["太棒了！你的最佳供需搭配在模拟推演中拿到了高达 ",r.jsx("strong",{children:"98.2%"})," 的惊人对齐率！"]}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"我们已随之自动配置了专属的货到付款(COD)提示文案与去燥海报，同时平台官方的「专家寂静守卫保全基金」全自动为你承担后续物流过程的所有拒付坏损风险。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px] font-bold text-emerald-700 animate-pulse",children:"无需担心垫资和实物，让我们开始高二段爆单投流！"})]});break;case"funnel2":A="🚀 供需合模高频爆流正式发布！我们的“买即赠50个加厚大耗材”以及“货到付款开箱验货”策略迅速风靡了玫瑰路整条下沉社区。请看右边面板的高阶互动漏斗，惊人的点击转化与签收回报正在向结算面板汇拢！";break;case"settlement2":A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-slate-800 font-bold text-sm",children:"🔥 恭喜！高阶对齐爆单惊人大获全胜！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"这就是出海商业的硬核核心：通过观察生活痛点，调整货盘的搭配与诚意，把流失率直接转为成交量。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"我们已经**直接捞回 5 笔真实的罗马尼亚爆单主顾**，并为您扣除投流试错款后锁定佣金分成共计 **¥ 315.00** 元！提现清算通道已通畅，享受极速自动为您全额担保的提成离岸分成款！"})]});break;case"success2":A="🎉 全部微信离岸结账及高阶提现划拨安全到位！恭喜您在这个出海商业沙盘中完美通本毕业！今天我们通过“观察痛点环境 -> 对齐供需盲区 -> 专家风控兜底 -> 终极爆单翻盘”彻底揭示了无套路、正能量、实打实的精细化出海盈利绝活。您可以通过重置流程，再次换个爆品（如“智能保暖杯”、“超声波大清洗机”）体验不同痛点商业对齐，祝您出海顺利！";break;case"part3_intro":A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-emerald-850 font-bold text-sm",children:"🌌 欢迎进军：第三阶段「专属非标蓝海挖掘」"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"在前两关，我们通过销售标准化的大路货证明了出海的利润是真实存在的。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"但标准化商品的最大痛点就是竞对容易卷入恶性价格战。而真正的极高利润独立良机，往往靠的是**大厂不愿意做、也没办法批量开模生产的「小批量、高质感、手工感」非标好物**。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"这一关，我们不谈高功利教条。我会根据你的特长和爱好，通过一轮最温和的对话，来帮你量身挖掘适合你的专属高溢价产品。开始咱们的非标好物之旅吧！"})]});break;case"part3_survey":{let B="「生活务实型 · 追求实在品质」",P="你更看重解决实在温饱、储存、防护等硬核痛点，在第2关中你给老街坊配置袋子和搭配方案也非常仔细，说明你拥有天生的商业直觉，更偏爱通过给客户提供实打实的生活保障、实用便利来获得信任、达成销售。",S="传统东方非标养生 / 竹制手工家居";f.id==="smart-mug"?(B="「情绪疗愈型 · 重视心理慰藉」",P="你对智能温控杯情有独钟，并在策略上体贴差旅白领的情感疲惫，这体现出你天生适合做有情感共鸣、缓解焦虑、提供宁静氛围感的深度美物。",S="心灵治愈数码硬件 / 桌面安神减压玩具"):f.id==="ultrasonic-cleaner"&&(B="「精致美学型 · 吹毛求疵的生活美学家」",P="你挑了超声波清洗机，而且在服务罗马尼亚家庭时追求连灰尘细节都净化的极致洁净与优雅。你骨子里是个完美主义者，非常适合销售带有硬朗手工感、高艺术门槛的独特产品。",S="荒野复古露营美学 / 做旧高质感铜铁器具"),A=r.jsxs("div",{className:"space-y-3 text-left font-sans",children:[r.jsx("p",{className:"text-blue-700 font-bold text-sm",children:"🌿 恭喜！你的商业性格画像已生成！"}),r.jsxs("div",{className:"bg-blue-50/50 p-3 rounded-2xl border border-blue-100 space-y-1 text-[12px]",children:[r.jsxs("p",{className:"font-extrabold text-blue-800",children:["📊 诊断结论：",B]}),r.jsx("p",{className:"text-slate-600 leading-relaxed text-[11.5px]",children:P})]}),r.jsxs("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:["基于你前两关的经营偏好直觉，我为你量身挑选了最适合你的定制行业方向：",r.jsx("strong",{className:"text-indigo-600",children:S}),"。"]}),r.jsxs("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:["现在，你可以直接在聊天框里，用你**最熟知的大白话**告诉我你的想法。比如，你可以在底下的气泡选项中直接选择回复，或者打字提出你更感兴趣的方向，例如",r.jsx("em",{children:"“我更想卖手作陶罐”"}),"或",r.jsx("em",{children:"“我对小众手工皮具有共鸣”"}),"："]})]});break}case"part3_searching":A="📡 收到！正在根据你刚才诉说的行业倾向，全力在 Facebook 小众兴趣社群和国外高热度买手讨论帖里，过滤普通的机电流水线血海竞争，专门挑选更具有“不打价格战、只比质感情怀、利润空间高达数倍”的高净值非标小众爆款。请稍等几秒，蓝海商品库正在调出中...";break;case"part3_results":A=r.jsxs("div",{className:"space-y-2.5 text-left font-sans",children:[r.jsx("p",{className:"text-violet-750 font-bold text-sm",children:"💮 蓝海挖掘成果出炉！请您亲自审阅与修改"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"快看右侧仪表盘！我们为您匹配到了 3 款完全针对该行业的蓝海对齐方案，深度融合了："}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"🪚 **灵活度低洼**：避开科层管理成本，采用微观工厂，管理边界成本归零。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"🔮 **符号提纯**：剥离同质，让商品成为海外中产阶级自我标榜的纯粹符号载体。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"因为这是您熟悉的绝活，**您可以直接在右面板修改它的国内采购价、海外售价和向消费者的合理解释！** 修改确认后即可锁定！"})]});break;case"part3_marketing":A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-slate-800 font-bold text-sm",children:"🎨 Baudrillard 宁静符号美学生成"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"本轮出海营销素材，我们不搞大声尖叫。右侧展示的是专门为您配称的**“去人类化静安主义”**美学产品摄影与地缘说明卡。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"我们将通过 50 元初始垫资，全力在东欧罗马尼亚白领阶层中推动这场静安感叹号。准备就绪后即可一键启动！"})]});break;case"part3_funnel":A="🚀 爆流激越！属于您的专属小众非标方案，由于极其微妙、无与伦比的符号溢价设计，在东欧高净值社交俱乐部中引发震荡。您看右上面板！曝光平滑铺设，点击率不仅飞踩红足（达到夸张的 18.5%），每一次锁单都伴随着极高的纯利回报，资金池正高额回结中！";break;case"part3_settlement":A=r.jsxs("div",{className:"space-y-2 text-left font-sans",children:[r.jsx("p",{className:"text-amber-850 font-bold text-sm",children:"🔥 恭喜！第三关专属非标蓝海大胜成功！"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"真正的溢价艺术在这一刻绽放了极奢光芒。"}),r.jsx("p",{className:"text-slate-650 leading-relaxed text-[12.5px]",children:"在您的指导与修改下，共成交 **5 大笔极奢符号单**，高溢价为您扣除广告等开支后直接扣回提成 **¥ 480.00** 元！秒期账户汇下付通道已极速就绪，快快提现分成，感受商业最深邃的愉悦！"})]});break;case"part3_success":A="🏆 完美大通关！全网商业神话成就达成！从“大众温控对齐”到“自发优势下的非标蓝海跨越”，您不仅击退了大厂的无谓内卷，更站在科斯交易低谷与鲍德里亚符号溢价之巅，体验了一款成功非标高利润生意如何诞生、扩盘和防风控收尾的全方位大成。再次祝您全球商业乘风破浪，勇往直前！";break;default:A="欢迎，您可以随时通过右侧的控制台进行流转，或通过左侧跟我畅谈！";break}se(B=>{const P=[...B,...F];return A&&P.push({id:`ai-${Date.now()}-${Math.random()}`,role:"ai",content:A}),P})},he=fe=>{if(!fe.trim())return;se(_=>[..._,{id:`user-input-${Date.now()}`,role:"user",content:fe}]);const ae=fe.toLowerCase().trim();setTimeout(()=>{if(ae.includes("重置")||ae.includes("重新开始")||ae.includes("restart")||ae.includes("reset")){pe();return}if(i==="intro1"){if(ae.includes("开始")||ae.includes("开启")||ae.includes("下一步")||ae.includes("好")||ae.includes("欧洲多国")){const A=q0("欧洲多国罕见高温天气，电费飙升，家庭节能避暑需求大增...");X(A),ee("intro2")}else{const A=q0(ae);X(A),ee("intro2")}return}if(i==="socratic_q2"){if(ae.includes("完美对齐")||ae.includes("通过了该策略")||ae.includes("批准投放")||ae.includes("盖章")||ae.includes("核实盖章")){v(!0),ee("expert_safeguard");return}const{targetGroup:F,vacuumPower:A,packPlan:B,trustOffer:P}=g;if(F==="none"||A==="none"||B==="none"||P==="none"){se(z=>[...z,{id:`ai-reply-${Date.now()}`,role:"ai",content:r.jsxs("div",{className:"space-y-2 text-left font-sans select-none",children:[r.jsx("p",{className:"text-amber-700 font-bold text-xs",children:"🤔 AI 导师提示：核心画像尚未完全对齐"}),r.jsx("p",{className:"text-[12px] text-slate-600 leading-relaxed",children:"您的人群画像匹配雷达尚未完全校准！请在右侧优化面板中，为**【核心客群目标】、【温控真空吸力】、【耗材服务大礼包】**和**【地缘支付手段】**四个核心决策维度做出选择，完成后由我来为您进行微观人群拟合推演。"})]})}]);return}let S=30,R=[];F==="elder_rural"?(S+=15,R.push("🎯 **定位局限 (冬储客)**：仅锚定罗马尼亚偏远村落冬储老龄客 (Maria 们)。由于她们消费客单承受力脆弱，生鲜熏肉铺 Stefan 和高净值浆果作坊 Elena 完全被放弃了，整体人群商业转化基本受限在较低天花板。")):F==="rough_meat"?(S+=12,R.push("🎯 **定位局限 (肉铺商)**：仅主打带硬骨刺熏肉切配店家 Stefan。虽然其客单价及续购意愿高，但是过滤掉了玫瑰街区日常占比达 70% 的自留地腌渍保鲜主妇，覆盖浓度大大被稀释。")):F==="delicate_gourmet"?(S+=10,R.push("🎯 **定位局限 (精致烘焙)**：仅服务雅致有机鲜果甜品铺 Elena。客群过于狭隘小众，虽好评率高，但由于绝对订货基数过小无法产生裂变起单。")):F==="broad_all"&&(S+=25,R.push("🎯 **高明而高危的宏大定位**：选定了【多元场景全街人群统配定位】！全社区三类家庭和商铺痛点全部网罗在内，这是最佳爆量通道，但也意味着您不能有任何机器适配失误，否则将招致灾难性的退款索赔！")),A==="ultra_strong"?F==="broad_all"?(S-=18,R.push("❌ **吸力硬伤 (Elena 浆爆危机)**：您匹配了“85kPa狂暴暴抽力”！虽然这让粗粗硬硬带刺排骨的 Stefan 肉铺极爽，但是**致命的是它会把 Elena 面包房娇嫩欲滴的有机黑莓瞬间吸捏成一摊稀烂的黑红汁水！**  Elena 信誉投诉率达 100%，极耗口碑！")):F==="delicate_gourmet"?(S-=28,R.push("❌ **物理灾难 (完美捏碎)**：既然打的是精致浆果 Elena 特色牌，还用狂暴强抽，无异于毁尸灭迹，客户痛骂这台机器是‘烂果碎渣机’，口碑崩级！")):(S+=15,R.push("⚡ **技术适配 (吸风优秀)**：强劲吸力对于常规大袋冬储和熟食带刺骨头效果明显，排气干瘪极致。")):A==="eco_mild"?(S-=10,R.push("⚠️ **技术绵软 (胀气隐患)**：选择了‘静音温和吸风 40kPa’。这风力太柔弱软绵了，Stefan 的生鲜肉串和 Maria 十公斤装冬储果蔬根本抽不空！内里残留微量空气在 36 小时内就会氧化反弹变质，引发密集退货潮！")):A==="delicate_pulse"&&(S+=22,R.push("✨ **极致对齐 (阻尼无级气阀)**：极具匠心地注入“柔触点吸无级气阀”控制！它不仅保障能大吸力，面临 Elena 时更允许用极微弱吸风轻触抽真空。Elena 看着被完美、安全呵护的完好草莓，激动地给了 10 星好评，物理矛盾彻底化解！")),B==="on_demand"?(S-=12,R.push("💸 **转化阻力 (耗材荒纠结)**：不送赠品袋，要求后续高客单单购原装袋。全村最能算账的省钱大婶 Maria 拿起放大镜一核算，瞬间选择放弃支付在购物车折返——她恐慌天价耗材开支。")):B==="combo_50"&&(S+=18,R.push("🎁 **Offer 绝杀 (高韧复合礼包)**：买即免费赠送 50 只高材质加厚、Embossed 密集压纹防骨刺大保鲜袋！这瞬间击溃了 Maria 囤积主妇的续买顾虑（直接管够1年冬备！）。加厚网格也让 Stefan 表扬没有被熏肉骨头渣扎漏气！")),P==="online_only"?(S-=20,R.push("💳 **信任冰消 (境外网银障碍)**：卡结算支持仅线上全资卡。对于偏远、受过跨境骗局毒害的罗马尼亚玫瑰街来说这是不信任黑洞——Maria、Stefan 看到要输银行卡和信用卡，弃付跳出率瞬间暴涨至 85%！")):P==="delivery_cod"&&(S+=20,R.push("🚚 **地缘破冰 (COD 货到开箱首发)**：重磅支持罗马尼亚传统的 Plata la livrare (COD，货到后开箱检查，当面满意再付现金给邮差)！直接消除了由于跨境假冒、退款难带来的最后防线，签收闭合极其健康。"));const J=Math.max(30,Math.min(98.2,S));J>=95?se(z=>[...z,{id:`ai-reply-${Date.now()}`,role:"ai",content:r.jsxs("div",{className:"space-y-2.5 text-left font-sans select-none",children:[r.jsx("p",{className:"text-emerald-700 font-extrabold text-[13px] tracking-tight",children:"🎉 🎉 终局通关！微观供需供给侧画像惊天对齐！"}),r.jsxs("div",{className:"bg-emerald-50/50 border border-emerald-100 p-3 rounded-xl text-[11px] text-slate-600 leading-relaxed space-y-1.5 shadow-sm",children:[r.jsx("p",{className:"font-bold text-emerald-800 text-[12px]",children:"✨ 完美的商业匹配成果核对："}),r.jsx("p",{children:"🔹 **全场景复合匹配**：一网打尽了老龄主妇、粗汉肉铺与脆弱有机烘焙作坊。"}),r.jsx("p",{children:"🔹 **阻尼调压气孔**：完美呵护 Elena 的树莓不碎，还能胜任 Stefan 的疯狂打包。"}),r.jsx("p",{children:"🔹 **50加厚防刺耗材赠送**：消除 Maria 余生袋子资费恐慌，防住锋利刺痛。"}),r.jsx("p",{children:"🔹 **Plata la livrare (COD)**：消除陌生品牌疑惧，打通罗马尼亚支付最后一公里！"})]}),r.jsxs("div",{className:"p-2.5 bg-blue-50/50 border border-blue-100 text-[11.5px] text-blue-700 rounded-lg flex justify-between items-center font-mono",children:[r.jsx("span",{children:"📊 动态人群匹配率："}),r.jsx("span",{className:"font-bold text-sm text-blue-600",children:"完美合模 98.2%"})]}),r.jsx("p",{className:"text-[12px] font-bold text-indigo-600 animate-pulse mt-0.5",children:"💡 供需匹配雷达显示：匹配度完美，预估出海转化率已触及峰值！请前往右侧卡片端下“💮 批准盖章核定”即可一键进行二次大投流变现开单！"})]})}]):se(z=>[...z,{id:`ai-reply-${Date.now()}`,role:"ai",content:r.jsxs("div",{className:"space-y-3 text-left font-sans select-none",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"flex h-2.5 w-2.5 rounded-full bg-amber-400 border border-white animate-pulse"}),r.jsxs("p",{className:"text-amber-800 font-bold text-[12px] tracking-tight",children:["📡 人群匹配雷达迭代反馈 (第 ",I.length," 回合调整) :"]})]}),r.jsx("p",{className:"text-[12px] text-slate-600 leading-relaxed",children:"微调引发了系统振荡！推导出了以下地缘客群供需折损物理矛盾："}),r.jsx("div",{className:"space-y-1.5 max-h-[160px] overflow-y-auto pr-1",children:R.map((W,ne)=>r.jsx("div",{className:"text-[10.5px] bg-slate-50 border border-slate-200/50 p-2.5 rounded-lg text-slate-600 leading-normal",children:W},ne))}),r.jsxs("div",{className:"p-2.5 bg-amber-50/50 border border-amber-100 text-[11px] text-amber-800 rounded-lg flex justify-between items-center",children:[r.jsx("span",{children:"📊 当前评估客群匹配指数："}),r.jsxs("span",{className:"font-mono font-black text-rose-600 text-xs",children:[J.toFixed(1),"%"]})]}),r.jsx("p",{className:"text-[11.5px] text-slate-500 italic leading-relaxed",children:"💡 **导师策略校准**：并非每次调整都是正向的。观察上面某些配置在解决 Stefan 的同时，是否残忍揉碎了 Elena 的黑莓？或者是收费门槛不当导致 Maria 弃款。请在右侧修改搭配再次提交重新拟合！"})]})}]);return}if(i==="expert_safeguard"&&(ae.includes("投放")||ae.includes("启动")||ae.includes("开")||ae.includes("冲")||ae.includes("进行"))){ee("funnel2",void 0);return}if(i==="settlement2"&&(ae.includes("提现")||ae.includes("微信")||ae.includes("到账"))){ee("success2",void 0);return}if(i==="part3_intro"){ee("part3_survey");return}if(i==="part3_survey"){let F=fe.trim();F.includes("：【")?F=F.split("：【")[1].split("】")[0]:F.includes("我最熟悉的是：")?F=F.replace("我最熟悉的是：",""):F.includes("我最熟悉/感兴趣的是：")&&(F=F.replace("我最熟悉/感兴趣的是：","")),G(F),ee("part3_searching");return}if(i==="part3_results"){ee("part3_marketing");return}if(i==="part3_marketing"){ee("part3_funnel");return}if(i==="part3_settlement"){ee("part3_success");return}if(i==="part3_success"){pe();return}let _="我是天识科技。你可以输入‘重置’重新来过，或通过下方蓝色的互动推荐按钮快速决策！";se(F=>[...F,{id:`ai-reply-${Date.now()}`,role:"ai",content:_}])},450)},pe=()=>{o("intro1"),h(an[0]),p(!1),T({impressions:0,clicks:0,addCarts:0,orders:0}),O([]),x({targetGroup:"none",vacuumPower:"none",packPlan:"none",trustOffer:"none"}),v(!1),G("欧洲多国罕见高温天气，电费飙升，家庭节能避暑需求大增..."),K([]),$(null),se([{id:"reset-"+Date.now(),role:"ai",content:"🔄 系统控制台和商业账户已完美结算重置！AI 最佳启动预算已重新由平台为您合规极速垫资。第一单我来直接带你跑通！请通过下方的“⚡ 一键挖掘商机”按钮，再次体感极速开单有多简单！"}])},Ce=fe=>{h(fe)};return H.useEffect(()=>{if(i==="settlement"||i==="success"||i==="explore_environment"||i==="socratic_q1"||i==="socratic_q2"||i==="expert_safeguard"||i==="funnel2"||i==="settlement2"||i==="success2")return;if(i==="intro1"||i==="intro2"||i==="scanning"||i==="locked"){T({impressions:0,clicks:0,addCarts:0,orders:0}),O([]);return}if(i==="marketing"){T({impressions:0,clicks:0,addCarts:0,orders:0}),O([]);return}i==="funnel"&&j.impressions===0&&T({impressions:210,clicks:18,addCarts:4,orders:0});const fe=setInterval(()=>{T(ae=>{const _=Math.floor(15+Math.random()*20),F=ae.impressions+_,A=.085+Math.sin(F/600)*.015;let B=Math.round(F*A);B<=ae.clicks&&(B=ae.clicks+(Math.random()<.4?1:0));const P=.38+Math.cos(F/1e3)*.06;let S=Math.round(B*P);return S<=ae.addCarts&&(S=ae.addCarts+(Math.random()<.3?1:0)),{impressions:F,clicks:B,addCarts:S,orders:ae.orders}})},1e3);return()=>clearInterval(fe)},[i]),H.useEffect(()=>{if(i!=="funnel")return;const fe=["📊 **【大盘诊断】** 实时千次展示成本（CPM）表现极为平稳！得益于当前素材和出货标签的高吻合度，**综合点击率（CTR）稳稳维持在完美的 8.5%~10.5% 高水准**。海外峰值时段即将来临，保持广告持续竞价可进一步跑通收益！","💡 **【翻译引擎自适应】** 回传数据表明，东欧消费者对‘先验箱再签收付款（Plata la livrare）’这个关键词产生强热敏反应。系统目前在自适应调节底层关键词权重，以持续提高您的转化留存率！","⚙️ **【物流风控中枢】** 远洋跨境共享前置仓的WMS接口通讯顺畅，所有清送和东欧段通关手续在海关均畅行无阻。由于咱们加入了COD包销保险坏账兜底体系，后续哪怕产生签收退货，亦有资金大盘自动配平，不影响您的分成现金！","📈 **【AI智能优化】** DSP流量池正全天候24小时微调人群竞买比例。当前曝光数与加购点击正按照高加权链路滚动。系统已为您自动锁死佣金点位，您可以安心托管，无需繁杂人工干预！","💵 **【提现通道就绪】** 您的多笔极速分配佣金已汇聚至当前清算池账户中。合规的人民币秒级下发提现系统已被全面激活，见证资金秒级流转回账微信零钱钱包！"],ae=[];if(i==="funnel"){const A=setTimeout(()=>{se(P=>[...P,{id:`ai-init-tip1-${Date.now()}`,role:"ai",content:"📈 **【策略调优】** AI投手检测到，货到付款标签（Plata la livrare）在东欧大受欢迎！您可以直接向我发送命令例如**‘优化广告素材’**或在下方选择以调优投流。"}])},500);ae.push(A);const B=setTimeout(()=>{se(P=>[...P,{id:`ai-init-tip2-${Date.now()}`,role:"ai",content:"⚙️ **【监控操控】** 自动竞投已激活，50 元初始垫资推广预算下发中。如成交量饱和或欲重新选品，您随时可在此发送**‘重新开始’**、**‘重置’**回到起点。"}])},2e3);ae.push(B)}const _=()=>{const A=5e3+Math.random()*5e3,B=setTimeout(()=>{const P=fe[Math.floor(Math.random()*fe.length)];se(R=>{const J=R[R.length-1];return J&&typeof J.content=="string"&&J.content.slice(0,15)===P.slice(0,15)?R:[...R,{id:`ai-running-tip-${Date.now()}`,role:"ai",content:P}]});const S=_();S&&ae.push(S)},A);return ae.push(B),B},F=setTimeout(()=>{_()},7e3);return ae.push(F),()=>{ae.forEach(clearTimeout)}},[i]),H.useEffect(()=>{if(i==="intro1"||i==="intro2"||i==="scanning"||i==="locked"||i==="marketing"||i==="settlement"||i==="success"||i==="explore_environment"||i==="socratic_q1"||i==="socratic_q2"||i==="expert_safeguard"||i==="funnel2"||i==="settlement2"||i==="success2")return;const fe=setTimeout(()=>{T(_=>{if(_.orders===0&&i==="funnel"){const F={id:"#8921",price:f.price,productCost:f.productCost,adCost:f.adCost,shippingCost:f.shippingCost,profit:f.profit,signingRate:f.signingRate,revenue:f.revenue,timeString:new Date().toLocaleTimeString("zh-CN",{hour12:!1})};return O([F]),setTimeout(()=>{ee("settlement","系统发现转化成交！即将进入即时结算单账册")},50),{..._,addCarts:_.addCarts+1,orders:1}}return _})},4200),ae=setInterval(()=>{T(_=>{if(_.orders>=1){const F=_.orders+1,A=.95+Math.random()*.1,B=Number((f.price*A).toFixed(2)),P=Number((f.adCost*(.9+Math.random()*.2)).toFixed(2)),S=Number((f.shippingCost*(.92+Math.random()*.16)).toFixed(2)),R=Number((B-f.productCost-P-S).toFixed(2)),J=Number((R*f.signingRate).toFixed(2)),z={id:`#${Math.floor(8100+Math.random()*880)}`,price:B,productCost:f.productCost,adCost:P,shippingCost:S,profit:R,signingRate:f.signingRate,revenue:J,timeString:new Date().toLocaleTimeString("zh-CN",{hour12:!1})};return O(W=>[...W,z]),{..._,addCarts:_.addCarts+(Math.random()<.7?1:0),orders:F}}return _})},9e3);return()=>{clearTimeout(fe),clearInterval(ae)}},[i,f]),a?r.jsxs("div",{className:"flex h-screen w-full bg-[#FAFAF8] text-[#4A4A4A] font-sans overflow-hidden",children:[r.jsxs("div",{className:"w-[72px] h-full bg-[#FAFAF8] flex flex-col items-center py-6 justify-between shrink-0 z-20 border-r border-slate-200/50",children:[r.jsxs("div",{className:"flex flex-col items-center w-full",children:[r.jsx("div",{className:"w-10 h-10 bg-[#1A1F2B] rounded-xl flex items-center justify-center text-white font-bold text-lg cursor-pointer shadow-sm mb-4",children:"TS"}),r.jsx("div",{className:"text-[10px] text-slate-400 font-bold mb-6",children:"导航"}),r.jsxs("div",{className:"flex flex-col gap-4 w-full px-3",children:[r.jsx("button",{onClick:()=>ee("intro1","我要回到：第一部分 「从新闻发现商业方向」"),title:"I. 大众选商",className:`w-full aspect-square flex flex-col items-center justify-center rounded-xl transition-all ${i==="intro1"||i==="intro2"||i==="scanning"||i==="locked"||i==="marketing"||i==="funnel"||i==="settlement"||i==="success"?"bg-blue-600 text-white shadow-md shadow-blue-500/20":"text-slate-400 hover:text-slate-600 hover:bg-slate-100 border border-transparent"}`,children:r.jsx("span",{className:"font-extrabold text-lg",children:"1"})}),r.jsx("button",{onClick:()=>ee("explore_environment","我要跳转到：第二部分 「玫瑰街区下沉痛点」"),title:"II. 痛点对齐",className:`w-full aspect-square flex flex-col items-center justify-center rounded-xl transition-all ${i==="explore_environment"||i==="socratic_q1"||i==="socratic_q2"||i==="expert_safeguard"||i==="funnel2"||i==="settlement2"||i==="success2"?"bg-emerald-600 text-white shadow-md shadow-emerald-500/20":"text-slate-400 hover:text-slate-600 hover:bg-slate-100 border border-transparent"}`,children:r.jsx("span",{className:"font-extrabold text-lg",children:"2"})}),r.jsx("button",{onClick:()=>ee("part3_intro","我要突破升阶：第三部分 「专属认知非标蓝海」"),title:"III. 非标蓝海",className:`w-full aspect-square flex flex-col items-center justify-center rounded-xl transition-all ${i.startsWith("part3")?"bg-purple-600 text-white shadow-md shadow-purple-500/20":"text-slate-400 hover:text-slate-600 hover:bg-slate-100 border border-transparent"}`,children:r.jsx("span",{className:"font-extrabold text-lg",children:"3"})})]})]}),r.jsx("div",{className:"flex flex-col items-center gap-4 w-full px-3",children:r.jsx("button",{onClick:()=>l(!1),title:"退出系统",className:"w-full aspect-square flex items-center justify-center rounded-xl text-slate-400 hover:text-rose-500 hover:bg-rose-50 transition-colors",children:r.jsx(s5,{className:"w-[20px] h-[20px]",strokeWidth:2})})})]}),r.jsxs("div",{className:"flex flex-col md:flex-row flex-1 overflow-hidden relative shadow-[-10px_0_30px_rgba(0,0,0,0.02)] border-l border-slate-100/80 bg-white",children:[!(i==="intro1"&&I.length<=1)&&r.jsx("div",{className:"w-full md:hidden h-[45vh] bg-[#FAFAF8] relative z-0 border-b border-[#ECEBE9]",children:r.jsx(H0,{step:i,setStep:fe=>ee(fe),transitionTo:ee,onReset:pe,hasWithdrawn:d,selectedProduct:f,setSelectedProduct:Ce,metrics:j,orderBills:E,strategySelections:g,setStrategySelections:x,stampApproved:y,setStampApproved:v,onSendMessage:he,userExpertise:V,setUserExpertise:G,part1Inspirations:Y,part3Options:U,selectedPart3Option:oe,setSelectedPart3Option:$})}),r.jsx("div",{className:i==="intro1"&&I.length<=1?"w-full h-full bg-[#FAFAF8] z-10 flex flex-col items-center justify-center relative shrink-0":"w-full h-[55vh] md:h-full md:w-[40%] xl:w-[35%] bg-white border-r border-slate-100/80 z-10 flex flex-col relative shrink-0 shadow-[4px_0_24px_rgba(0,0,0,0.02)] transition-all duration-300",children:r.jsx(p5,{messages:I,onSendMessage:he,step:i,setStep:fe=>ee(fe),transitionTo:ee,selectedProduct:f,setSelectedProduct:Ce,onReset:pe,userExpertise:V,setUserExpertise:G,part1Inspirations:Y,part3Options:U,selectedPart3Option:oe,setSelectedPart3Option:$})}),!(i==="intro1"&&I.length<=1)&&r.jsx("div",{className:"hidden md:flex flex-col relative z-0 w-full md:w-[60%] xl:w-[65%] h-full bg-[#FAFAF8]",children:r.jsx(H0,{step:i,setStep:fe=>ee(fe),transitionTo:ee,onReset:pe,hasWithdrawn:d,selectedProduct:f,setSelectedProduct:Ce,metrics:j,orderBills:E,strategySelections:g,setStrategySelections:x,stampApproved:y,setStampApproved:v,onSendMessage:he,userExpertise:V,setUserExpertise:G,part1Inspirations:Y,part3Options:U,selectedPart3Option:oe,setSelectedPart3Option:$})})]})]}):r.jsx(O5,{onLogin:()=>l(!0)})}Pg.createRoot(document.getElementById("root")).render(r.jsx(H.StrictMode,{children:r.jsx(L5,{})}))})();
